- added
getValues
api method - added
values
result intoonSuccess
form callback - added
warningsEnabled
option - cover custom errors store with additional e2e tests
- fix custom errors structure form validation events
- rename
typeCheck
method and errorsCode totype
- added
useCustomErrorsStore
option
- add number own required rule
- makes empty arrays optional by default
- refactored spies paradigm. From now on global spies run once per type
- fix readme example
- fix
main
/module
fields inpackage.json
- makes
email
typeCheck
valid on empty string
- fixed preventing validation in store input event
- add builder on demo page
- FIXED optional-required-presence behavior
- unit tests for types and spies
abort
method for spiesaddSpy
will now returnremoveSpy
function- adding extending to
ensureType
- unit tests for validator
- add
presence
options - add
trim
option - add
boolean
type - renamed/refactored
input
->form-element
- allowed entry has a multi inputs
- add radio demo
- add
array
type - replaced lib class with closure
- merge
typeCheck
flow with all rules - rename phaseEnum with
ListenInputEventsEnum
- rename
min/maxLength
intomin/max
- moved
demo
todocs
- add
postcss
for demo purpose - renamed
validateOn
(array) option tovalidateOnEvents
(object) - renamed
clearOn
(array) option toclearErrorsOnEvents
(object) formElement
has specific events. Not all are supportedoptional
number
with empty string isvalid
- renamed
validateStore
tovalidateValueStore
- split store to two stores (errors, value), so increased createEntry return array by one
- input event now works as subscription on value store
- add
includeAllEntries
option - function into
equal
rule - remove destroy api method because opf useless
- add between rule to string and number
- update demo page
- add builder
- update default validateOn event from
input
tochange
(updated big amount of e2e tests) - totally refactored build process
clearOn
andvalidateOn
options for main class are ensured with empty array- added
destroy
method to main class (it destroys allInputs
classes available) preventEvents
method inInput
class now compareinitialPhase
with a current one, instead of takenot equal
- added optional param to
validate
andclearErrors
apis - added
reset
event toclearOn
option by default
- initial commit
- core validation functionality
- integrate validation to svelte