All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Improved support for form fields types
- Added
boolean
,string[]
,number[]
, andboolean[]
- Added
- Improved type exports (
/types
) - Added TSDoc comments
- Removed the
FormCreateMixin
(replaced with typedcreateForm
function)- The
FormCreaetMixin
(not truly a mixin...) did not work with TypeScript - The old mixin simply called this function anyway...
- The
- Removed the
FormLeaveGuardMixin
(replaced with typedFormGuardMixin
)- The
FormLeaveGuardMixin
(not truly a mixin...) did not work with TypeScript - There was no need for customizing the leave guard to the extend provided
- The
- Removed the form key/name from the
createForm
function API- This was an unnecessary step that caused more internal work for no gain (simply assign to data)
- Changed the default behaviour of the
setValues
form function (now will not set initial values by default)- This change was made to align with developer expectations (behaviour moved to
setInitial
)
- This change was made to align with developer expectations (behaviour moved to
- Overhauled package to use TypeScript!
- Fully typed
FormGuardMixin
to replaceFormLeaveGuardMixin
(can be customized withformGuards
data key) - New
setInitial
form function to set a form's initial (and current) values (similar to old behaviour ofsetValues
)
NOTE: Some tests were disabled (
FormGuardMixin
) to get a passing build, and test coverage is broken!
- Development instructions and guide
- Removed duplicated
npm-test
step from publish Action
- GitLab testing and release pipeline (#1)
- Test suite implementation and coverage tests (#1)
- Only allow setting form flags that have been defined (#1)
- Reset form data when leaving route in
FormLeaveGuardMixin
- New
FormLeaveGuardMixin
to prevent users from leaving routes with unsaved changes- Does require additional handling (via dialog, etc)
- New
FormCreateMixin
based on the existingcreateForm
function - Customization options to the form creation function/mixin
- Can specify custom
flags
and whether thechanged
flag should be calculated (performance)
- Can specify custom
- Changed
createForm
to a secondary export (instead preferFormCreateMixin
)
- Core
createForm
function to create reactive Vue form data/flags - Basic project (dummy) tests
- Initial project documentation/setup