Commit graph

13 commits

Author SHA1 Message Date
Alexander Samaniego
5aa7c19874
feat(validator): add validation support for RadioGroup (#234)
* Removed div element from RadioGroup

* Fixed first RadioGroup unit test
2022-12-12 20:54:03 +07: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
Ayo Ayco
1d77e18f31
refactor(form): validation attributes set null instead of false (#215) 2022-11-28 19:46:22 +01:00
Lalit
965a16aaec
feat(validator): Adding error, warn, info categories support. (#204) 2022-11-26 18:34:14 +01:00
Ayo Ayco
a0a20c33b2
feat(form): add index to radio group item id (#193)
* feat(form): add index to radio group item id

* feat(form): radio-option label for prop

* fe-test(form): update tests for radio group
2022-11-12 07:57:31 +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
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
Allan Siqueira
f502e6ca24
feat(form): readOnly flag (#166)
* feat: add readOnly flag on form

* fix: resolve PR coments

* fix: add flag disabled to fields that dont have effect on readonly attr
2022-10-31 17:27:43 +01:00
Woramat Ngamkham
304cad0151
feat(form): add Dropdown control (#158) 2022-10-28 19:48:26 +02:00
Ayo
79882fd9b1 refactor: use @astro-reactive/common 2022-10-28 12:41:32 +02:00
Woramat Ngamkham
ebff4940f2
refactor(form): implement options prop for Radio (#147) 2022-10-25 09:56:06 +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