All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
8.0.1 - 2019-07-12
README
example. The newerror
attribute was missing.
8.0.0 - 2019-07-12
Success
variant toForm.View.State
. By default, it can be styled using the.elm-form-success
CSS selector. #26Form.disable
andForm.Base.disable
, which allow disabling the fields of a form. #27
Form.Base.FilledField
has been renamed toForm.Base.CustomField
and itsfield
property has been renamed tostate
. #27- The tuple
( field, Maybe Error )
is replaced with the new recordForm.Base.FilledField
everywhere. #27 - An
error : values -> Maybe String
attribute was added to field configuration. Useful to show server-side validation errors. #29 - The
Error
type was extended with anExternal
variant. It is meant to represent an external error not caused by client-side validation. #29 NumberField
value storage has been changed fromMaybe Float
toString
to fix issues entering values after the decimal point. #25 & #30- The
step
item in theForm.Base.NumberField.Attributes
record has been changed fromnumber
toMaybe number
to allow a step attribute of"any"
. #30
- Default select field in
Form.View
now listens to thechange
event instead ofinput
. Internet Explorer and Edge now should work properly with this field. #28
7.1.0 - 2019-05-07
Form.View.htmlViewConfig
, which allows easy customization of the defaultForm.View.asHtml
function. #23
7.0.2 - 2019-05-04
- Textarea not updating its value properly when using
Form.View.asHtml
. #21
7.0.1 - 2019-04-06
- Stop asking users to copy-paste code in the
Form.Base
docs.
7.0.0 - 2019-01-25
Form.list
andForm.Base.FormList
that allow to build a variable list of forms. Thanks to everyone involved in #7!
- Improved introduction to the
Form
type.
6.0.1 - 2018-11-24
- Fix radio fields being rendered inside a main label when using
Form.View.asHtml
. - Remove
fieldset
parent when rendering radio fields usingForm.View.asHtml
.
6.0.0 - 2018-11-19
Form.section
(thanks to @russelldavies).- Ellie snippet on
README
.
- Fix optional groups / sections rendering field errors when empty.
5.0.0 - 2018-11-07
- View strategy selector on examples website.
- Render fields inside HTML
label
for accessibility inForm.View.asHtml
. The previouslabel
elements are nowdiv
elements with theelm-form-label
class. To migrate, replace your old CSS rules.elm-form label { ... }
with.elm-form .elm-form-label { ... }
.
Form.Value
. Elm 0.19 makes this module unnecessary! The API is simpler now, allowing you to work with your types directly. To migrate, replaceValue a
witha
and initialize your form values explicitly.
4.0.1 - 2018-09-02
- Replace mentions of old
(,)
operator in docs with the newTuple.pair
equivalent in Elm 0.19. - Fix example in
Field
documentation.
4.0.0 - 2018-08-20
Form.Field.mapValues
to easily change thevalue
type of a field- Elm 0.19 support
Form.Value.update
andForm.Value.newest
, these are no longer necessary given that Elm 0.19 allows to trigger synchronous renders of the view on some events.
3.0.1 - 2018-08-08
- Fix CHANGELOG release links.
- Fix
Value.map
documentation example. - Fix
stylish-elephants
custom renderer to work with3.0.0
.
3.0.0 - 2018-08-08
Value.map
to transform value types.- This CHANGELOG! 🎉
Field.update
andValue.update
to allow clearing field values.Form.View.NumberFieldConfig.onChange
andForm.View.RangeFieldConfig.onChange
to allow clearing the values of these fields from view code.- Add
number
type variable toForm.Base.NumberField
andForm.Base.RangeField
to make these more flexible and reusable when building custom fields.
2.2.3 - 2018-07-23
- Replace
InvoiceAddress
withWebsite
in documentation.
2.2.2 - 2018-07-23
- Clarify "type-safe" explanation in README.
2.2.1 - 2018-07-23
- Replace "form renderer" with "custom view code" in documentation.
- Fix composability example (by @russelldavies).
2.2.0 - 2018-07-13
Form.mapValues
Form.Base.mapValues
Form.Base.mapField
stylish-elephants
renderer example
2.1.0 - 2018-07-10
Form.map
Form.Base.map
2.0.1 - 2018-07-07
- Fix examples link in README to work with Elm package website.
2.0.0 - 2018-06-27
- Make
Form.Base.FilledForm
type variable order consistent withForm.Base.Form
.
1.0.3 - 2018-06-27
- Fix outdated docs and inconsistent type signatures.
1.0.2 - 2018-06-26
- Fix
Form.View.State
documentation example.
1.0.1 - 2018-06-26
- Fix documentation details.
- Initial release.