Releases: hecrj/composable-form
Releases · hecrj/composable-form
8.0.1
8.0.0
Added
Successvariant toForm.View.State. By default, it can be styled using the.elm-form-successCSS selector. #26Form.disableandForm.Base.disable, which allow disabling the fields of a form. #27
Changed
Form.Base.FilledFieldhas been renamed toForm.Base.CustomFieldand itsfieldproperty has been renamed tostate. #27- The tuple
( field, Maybe Error )is replaced with the new recordForm.Base.FilledFieldeverywhere. #27 - An
error : values -> Maybe Stringattribute was added to field configuration. Useful to show server-side validation errors. #29 - The
Errortype was extended with anExternalvariant. It is meant to represent an external error not caused by client-side validation. #29 NumberFieldvalue storage has been changed fromMaybe FloattoStringto fix issues entering values after the decimal point. #25 & #30- The
stepitem in theForm.Base.NumberField.Attributesrecord has been changed fromnumbertoMaybe numberto allow a step attribute of"any". #30
Fixed
- Default select field in
Form.Viewnow listens to thechangeevent 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
labelfor accessibility inForm.View.asHtml. The previouslabelelements are nowdivelements with theelm-form-labelclass. 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 awithaand initialize your form values explicitly.