Ayo Ayco
30de5161f2
feat(form): change validate on load to true by default ( #284 )
2023-03-25 09:47:46 +01:00
Fazza Razaq Amiarso
25ce684d23
feat: Types and Intellisense Improvements ( #231 )
2022-12-07 20:56:27 +01:00
Alexander Samaniego
5b539c809c
feat(form): implement FormControl and ControlConfig prop triggerValidationOn
( #224 )
...
* Added ValidationHooks and attribute to FormControl
* Event listener uses data attribute to set type
* Changed default event listener to blur
* Add validation data attribute to other components
* Adjusted querySelector to remove condition
* Added nullish operator to prevent error
* Added optional chaining to validator
2022-12-06 18:44:52 +07:00
Woramat Ngamkham
975b2e821a
feat(form): add validateOnLoad prop ( #213 )
...
* feat(form): add validateOnLoad prop
* feat(form): add FormConfig interface
* refactor(form): refactor FormConfig
* refactor(demo): change params to FormConfig
* chore(demo): remove FormConfig on demo
* feat(form): make validateOnLoad to be false by default
* feat(form): add setValidateOnLoad method
* chore(form): edit comment on validateOnLoad
* feat(form): remove setValidateOnLoad in FormGroup
* revert(form): add FormConfig interface
This reverts commit 44b58d4a43d4d2e8bcd3dc799e3110f9b8f23604.
* revert(demo): change params to FormConfig
This reverts commit 98f8602000505a29d04493617043aa0cfb00a969.
2022-11-30 15:28:48 +07:00
Lalit
965a16aaec
feat(validator): Adding error, warn, info categories support. ( #204 )
2022-11-26 18:34:14 +01:00
Neil An
31884a1757
feat(form): add setValue
method to FormGroup class ( #191 )
2022-11-12 22:15:54 +01:00
Alexander Samaniego
93a8d49f0a
feat(form): implement unique IDs ( #182 )
...
* Added Short Unique ID npm library
* Added unique ID to form-control
* Added unique ID to form-group
* Unique ID added to <form>
* Added unique IDs to control components
* Added IDs to label and fieldset
* Update Form.astro with requested changes
Co-authored-by: Ayo Ayco <ayo@ayco.io>
* Adjustments for requested changes.
Co-authored-by: Ayo Ayco <ayo@ayco.io>
2022-11-08 08:53:22 +01:00
Ayo
9e54d2b0a9
fix: broken types
2022-11-05 08:29:43 +01:00
Woramat Ngamkham
b4c33eec66
refactor(form): deprecate labelPosition ( #172 )
2022-11-01 16:24:29 +01:00
Woramat Ngamkham
f93f8b6484
feat(form): implement TextArea control ( #169 )
2022-11-01 00:21:39 +01:00
Chase Reynolds
c38e5dfbe3
feat(form): add method setValidators to FormControl ( #170 )
2022-10-31 19:27:06 +01:00
Woramat Ngamkham
304cad0151
feat(form): add Dropdown control ( #158 )
2022-10-28 19:48:26 +02:00
Ayo
30fc4f48c9
fix(form): wrong import in form-control.ts
2022-10-28 12:54:18 +02:00
Woramat Ngamkham
ebff4940f2
refactor(form): implement options
prop for Radio ( #147 )
2022-10-25 09:56:06 +02:00
Ayo
6ac9100a2f
docs: update readme and TODO comment
2022-10-24 10:59:43 +02:00
Ayo
715eaaa408
fix(form): import of validator causes error if not installed
2022-10-23 23:23:23 +02:00
Ayo Ayco
3d361fcb5b
refactor: form package cleanup ( #135 )
...
* refactor: form package cleanup
* refactor: organize components folder
2022-10-23 23:04:40 +02:00
Ayo Ayco
d128747240
feat(validator): server-side rendered validation errors ( #123 )
...
* feat(validator): server-side rendered validation errors
* test(form): field should render error
* refactor: remove comment
* fix: incorrect imports
* chore: update deps
* chore: update build commands
2022-10-22 04:35:16 +02:00
Ayo
4fd6f33fe9
core: common directory for packages ( #114 )
2022-10-21 14:05:23 +02:00
Woramat Ngamkham
030752b4cc
feat(form): Add radio ( #111 )
2022-10-20 07:58:40 +02:00
Ayo Ayco
4dc020027f
feat: create astro reactive validator ( #90 )
...
* feat: initial validator component
* chore: fix eslint for validator
* chore: update package info for validator
* chore: remove vscode settings for docs
* chore: put docs and demo into apps
* chore: move package scope @astro-reactive
* test: update tests for validator
* feat: validator functions, hooks
* feat: validator sets haserrors attribute
* feat: use data-validator attributes
* feat: showValidationHints
* feature: add logic for all validators
* refactor: remove Validator component usage
* docs(validator): initial readme
* chore: comment out unsupported validator
* docs(validator): update installation
* chore: package docs and publish
* chore: update deps
* docs: update npm info on docs
* docs(validator): update docs for validator
* fix(form): handle undefined form
* test(validator): update tests
* chore: organize files; update deps
* chore: fix build scripts
2022-10-15 16:32:02 +02:00