Releases: hecrj/composable-form
Releases · hecrj/composable-form
8.0.1
8.0.0
Added
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
Changed
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
Fixed
- 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
7.0.2
7.0.1
7.0.0
6.0.1
6.0.0
Added
Form.section
(thanks to @russelldavies).- Ellie snippet on
README
.
Changed
- Fix optional groups / sections rendering field errors when empty.
5.0.0
Added
- View strategy selector on examples website.
Changed
- 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 { ... }
.
Removed
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.