Commit graph

134 commits

Author SHA1 Message Date
Fazza Razaq Amiarso
0abe83aea9
feat: sharing config files (#253) 2023-01-11 19:09:35 +01:00
Ayo
944548dc63 docs: update readme example code 2023-01-04 14:11:49 +01:00
Ayo
ad65225131 chore: release form@0.6.7, validator@0.2.7, common@0.1.5 2023-01-04 13:52:57 +01:00
Ayo Ayco
986151fe3e
docs(form): update Form properties and respective documentation (#248)
* chore: project clean up

* feat(form): update Form properties

* docs: update documentation for the Form properties

* fix(demo): update form method demo
2023-01-04 13:43:50 +01:00
Madhav Setia
dd285e72a4
docs: update links to the repository (#247)
* Link to repo updated

* Update introduction.md

* docs: update links to change logs

Co-authored-by: Ayo <ramon.aycojr@gmail.com>
2023-01-04 11:48:37 +01:00
Ayo
814692d9c9 chore: release form@0.6.6, validator@0.2.6, common@0.1.4 2023-01-02 17:52:12 +01:00
Fazza Razaq Amiarso
9bdff22174
fix: change wrong internal package dependencies version (#241) 2023-01-02 17:29:24 +01:00
Woramat Ngamkham
234ffaf38c
feat(form): add form action for submit (#237) 2022-12-27 20:42:34 +01:00
Neil An
c73675710f
chore: create script for updating RELEASE.md before PR (#232)
* added prompt-sync and semver libraries

* added a release update script

* removed semver package as dependency

* removed versioning, updated descriptions

* resolve conflict in package.json
2022-12-16 13:43:48 +01:00
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
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
Ayo
e6dd753196 chore: release form@0.6.5, validator@0.2.5 2022-12-05 21:08:34 +01:00
Ayo
1a19aea1fd chore: release form@0.6.4, validator@0.2.4, common@0.1.3 2022-12-05 20:47:32 +01: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
bcbb517828
test(form): Added test Field.astro to test for category validation prop (#217)
* test(form): Added test Field.astro to test for category validation prop

* test(form): Testing all categories instead of just one for better test coverage
2022-11-29 20:34:11 +01: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
Woramat Ngamkham
2f2c28b13f
fix(validator): use a checked attribute for required validation in checkboxes (#205) 2022-11-25 21:35:42 +01:00
Fazza Razaq Amiarso
0853ca3b8f
fix: extends timeout for timed out test (#208)
* fix: extends timeout for timed out test

* fix: add dependent script to turbo test

* fix: disable threading for test

* fix: add timeout to vitest config

* chore: remove test-ci script

* fix: extends timeout to validator vitest config

* chore: conditionally disabling vitest threading on CI
2022-11-25 14:37:23 +01:00
Ayo Ayco
7d05ecc580
chore(library): implement turporepo (#206) 2022-11-23 20:05:07 +01:00
Fazza Razaq Amiarso
59d76181db
test(migrate): migrate test tooling from chai + mocha to vitest (#203)
* test(migrate): migrate test tooling from chai + mocha to vitest

* fix: fix wrong vitest cli command for watch
2022-11-21 13:15:58 +01:00
Neil An
31884a1757
feat(form): add setValue method to FormGroup class (#191) 2022-11-12 22:15:54 +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
Ayo
6b96cd1e34 chore: update check and build scripts 2022-11-10 19:03:45 +01:00
Ayo
d407f0e379 chore(form): update package homepage 2022-11-10 18:54:33 +01:00
Ayo Ayco
ce1d4df9e8
chore: update deps (#183) 2022-11-08 10:18:25 +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 Ayco
cec0a02c46
docs: initial Form, FormGroup documentation (#176)
* docs: initial structure and form api docs

* feat(docs): warning underconstruction

* docs: initial FormGroup and FormControl docs

* docs: initial example usage

* fix: docs build errors
2022-11-06 20:11:42 +01:00
Ayo
ec19766202 chore: release common, form, validator 2022-11-05 09:23:42 +01:00
Ayo
6ae1bec42f chore: update deps 2022-11-05 08:53:22 +01:00
Ayo
5635c5461e chore: update release notes 2022-11-05 08:51:33 +01:00
Ayo
e089626f81 refactor: make checked optional prop 2022-11-05 08:50:54 +01:00
Ayo
2888c766b7 chore: release form, common, validator 2022-11-05 08:36:47 +01:00
Ayo
9e54d2b0a9 fix: broken types 2022-11-05 08:29:43 +01:00
Ayo
a868e4f550 fix: broken config type 2022-11-05 08:29:16 +01:00
Ayo
e9de68fe49 chore: release patch for wrong dependency version 2022-11-02 21:58:42 +01:00
Ayo
fcf32cb21b chore: update release docs for common@0.1.0 2022-11-02 21:43:36 +01:00
Ayo
f27f96c9dc chore: release validator@0.2.0 2022-11-02 21:33:37 +01:00
Ayo
c28b117fd1 chore: release form@0.6.0 2022-11-02 21:32:32 +01:00
Ayo
33e421fffb chore: release common@0.0.4 2022-11-02 21:28:08 +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
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
Ayo
6d9907a06c chore: update deps 2022-10-29 12:55:34 +02:00
Woramat Ngamkham
5677222258
fix(form): asterisks on Label.astro (#160) 2022-10-28 22:14:50 +02:00
Woramat Ngamkham
304cad0151
feat(form): add Dropdown control (#158) 2022-10-28 19:48:26 +02:00
Ayo
796fb962ae chore: bump patch, update deps 2022-10-28 13:24:39 +02:00
Ayo
42a53522db chore: update deps 2022-10-28 13:23:22 +02:00