bkuhlmann/form-validator/1.2.2

Rerouted (archive, verified). The original repository is gone. This copy comes from an archive (Software Heritage). The Lamdera package server serves a copy recovered from swh:1:rev:6a2c83b4256c217a8ca6ed53c26ee776f9cbb0f6 (Software Heritage, origin https://github.com/bkuhlmann/form-validator).

What we checked: Software Heritage archived tag 1.2.2 of github.com/bkuhlmann/form-validator at commit 6a2c83b4256c; its commit 6a2c83b4256c is from 2022-10-22 22:50 UTC, before the version was published (2022-10-22 22:51 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, made from Software Heritage's copy of the files Elm uses, so its SHA-1 is not the published one.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/bkuhlmann/form-validator/zipball/1.2.2/

FormValidator.Validator

The Form Validator validator which is the main module used to update/validate forms and fields.

init : key -> Validators -> Field key

Initialize a new form field.

fieldValues : key -> Form key -> List String

Answer multiple field values.

fieldValue : key -> Form key -> String

Answer single field value.

fieldErrors : key -> Form key -> Errors

Answer all errors for a field.

updateValues : key -> Values -> Form key -> Form key

Update multiple field values without validation.

updateValuesAndValidate : key -> Values -> Form key -> Form key

Update field values and validate them.

updateValue : key -> Value -> Form key -> Form key

Update single field value without validation.

updateValueAndValidate : key -> Value -> Form key -> Form key

Update field value and validate it.

resetForm : Form key -> Form key

Reset field values and errors for entire form to initial state.

resetField : key -> Form key -> Form key

Reset field value(s) and errors to initial state.

updateAndValidateValues : key -> Values -> Form key -> Form key

DEPRECATED: Will be removed in 2.0.0. Use updateValuesAndValidate instead.

Update field values and validate them.

updateAndValidateValue : key -> Value -> Form key -> Form key

DEPRECATED: Will be removed in 2.0.0. Use updateValueAndValidate instead.

Update field value and validate it.

validateForm : Form key -> Form key

Validate form (including all fields).

validateField : key -> Form key -> Form key

Validate field.

isFormInvalid : Form key -> Bool

Answer if form is invalid.

isFieldInvalid : key -> Form key -> Bool

Answer if field is invalid.