- Update to Specma 2.3.5, allowing better selection definitions;
- Update
specma
so that selection takes spread into account;
- Update
specma
so that selection omitsundefined
props, ensuring better change detection;
- Expose a
submit
method on children and onpredCheckable
that activates the store (validation), then executes a function only if result is valid;
- Return the activation promise when activating children or main
subscribable
;
- Expose
clearResponse
method;
- Clear response when deactivating;
- Add
resetActive
andresetResponse
options tosubmitable
'sreset
; - Allow specifying an
afterSubmit
callback that receives the response and form methods;
- Use
reset
with initial value insubmitable
;
- Reset
response
toundefined
(instead of{}
) on each submit;
- Deep clone initial value (instead of a mere shallow copy) before passing it to
onReset
callback;
- Remove default export;
- Add
submitable
store, that facilitates usage ofcheckable
in forms;
- Allow defining
required
as functions so that they can be combined like specs.
- Check for non required undefined values in
predCheckable
, not incollCheckable
, as undefined value could eventually change, but spec would still be fixed to always true.
- Complete refactoring to get a working set of
checkable
stores.
Initial working code.