Commit graph

157 commits

Author SHA1 Message Date
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
Ayo
9513ef2134 chore: bump patch and publish common 2022-10-28 13:17:46 +02:00
Ayo
606e455e6e chore: bump patch and publish form 2022-10-28 12:57:00 +02:00
Ayo
30fc4f48c9 fix(form): wrong import in form-control.ts 2022-10-28 12:54:18 +02:00
Ayo
54e4287b5f chore: bump patch and publish form, validator 2022-10-28 12:49:07 +02:00
Ayo
3cba6e8e9c chore: bump patch and publish common 2022-10-28 12:46:49 +02:00
Ayo
79882fd9b1 refactor: use @astro-reactive/common 2022-10-28 12:41:32 +02:00
Ayo
40dba08c6a chore: initialize common package 2022-10-28 12:34:30 +02:00
Woramat Ngamkham
ebff4940f2
refactor(form): implement options prop for Radio (#147) 2022-10-25 09:56:06 +02:00
Woramat Ngamkham
c8ace159da
fix(form): asterisks ::before pseudoclass (#131) 2022-10-25 08:35:34 +02:00
Ayo
6ac9100a2f docs: update readme and TODO comment 2022-10-24 10:59:43 +02:00
Ayo
819d6e4526 chore: bump patch form 2022-10-23 23:25:58 +02:00
Ayo
715eaaa408 fix(form): import of validator causes error if not installed 2022-10-23 23:23:23 +02:00
Ayo
66ba7fa292 chore: bump minor version for form, validator 2022-10-23 23:13: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
b9995b8a63 docs: update project and packages readme 2022-10-23 20:26:32 +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
82c121a85d fix(form): incorrect imports 2022-10-21 15:21:50 +02:00
Ayo
ddccd5cf80 chore: remove test step for packages/common 2022-10-21 14:10:35 +02:00
Ayo
4fd6f33fe9 core: common directory for packages (#114) 2022-10-21 14:05:23 +02:00
Lalit
0cb3167a04
test(packages/form): Added some tests for Field and FieldSet components (#119) 2022-10-20 16:14:33 +02:00
Lalit
97a5edd746
chore: Shared eslint + prettier for packages (#117) 2022-10-20 11:59:04 +02:00
Woramat Ngamkham
030752b4cc
feat(form): Add radio (#111) 2022-10-20 07:58:40 +02:00
Ayo Ayco
964e800dae
chore: patch packages (#108) 2022-10-18 12:16:58 +02:00
Ayo
98c4b77648 chore: update packages homepages 2022-10-17 11:33:59 +02:00
Ayo
685ba32d82 docs(form): remove typo on readme 2022-10-16 13:36:35 +02:00
Ayo
0aa0deac32 chore(packages): bump patch 2022-10-16 10:33:35 +02:00
Ayo Ayco
5e1a44c79e
docs(apps,packages): update content (#93)
* docs(apps,packages): update content

* chore: update pull request template
2022-10-16 10:26:20 +02:00
Ayo
36742b7239 docs(package): update release docs 2022-10-15 19:35:16 +02:00
Ayo Ayco
4f1578aa72
Chore update project for new package validator (#91)
* chore: updates for new validator package and landing-page app

* docs: update packages examples

* chore: bump patch, update docs
2022-10-15 19:16:48 +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
Ayo
d6a7f98e3f chore: bump minor version for astro-reactive-form 2022-10-13 17:34:44 +02:00
Ayo
8fe968fbc6 feat: new type for control configuration ControlConfig 2022-10-13 17:29:20 +02:00
Ayo Ayco
7db1be51e6
docs:update email (#85) 2022-10-13 13:55:38 +02:00
Ayo Ayco
1b27b1553c
chore: update release docs (#84) 2022-10-13 10:17:11 +02:00
Ayo Ayco
d8577871b4
docs: update readmes (#83) 2022-10-13 10:10:31 +02:00
Ayo Ayco
a18fc82c89
docs: update project logo (#82)
* chore: organize assets

* docs: update logo in readme docs

* update logo

* readme formatting

* readme formatting

* add min-banner

* update banner

* update readmes
2022-10-13 10:03:31 +02:00
Ayo Ayco
ddbd910981
feat: update release notes (#75) 2022-10-08 23:04:32 +02:00
Ayo Ayco
d41738776d
devops: prioritize tests over linting (#74)
* devops: prioritize tests over linting

* docs: update release
2022-10-08 22:53:48 +02:00
Ayo Ayco
9a35744142
chore: bump patch, update commands (#73) 2022-10-08 22:51:08 +02:00
Ayo Ayco
06f53bc78f
docs: update astro-reactive-form readme (#72)
* docs: update astro-reactive-form readme

* docs: formatting
2022-10-08 22:46:21 +02:00
Ayo Ayco
0acc1968c1
feat: support single form group (#71) 2022-10-08 22:29:08 +02:00
Fazza Razaq Amiarso
1491135302
[feat]: Implement form theme (#69) 2022-10-07 21:23:32 +02:00
Fazza Razaq Amiarso
2fd25b7d93
feat: initial form control state (#60)
* Form control tries

* feat: implement form-control state

* fix: organize client methods

* fix(client): return undefined instead of throwing error

* fix: fix exports and lint

* fix: Change implementation of setting isPristine with proxy
2022-10-07 07:35:01 +02:00
Fazza Razaq Amiarso
a002593b02
[feat]:Form control state #4 (#58) 2022-10-06 23:19:49 +02:00
Ayo Ayco
2da037944b
feat: implement only one submit control (#59)
* feat: implement submit control

* refactor: remove label
2022-10-06 17:57:39 +02:00
Ayo Ayco
7c31381d76
devops: set up package tsc build check (#56) 2022-10-06 16:46:44 +02:00
Ayo Ayco
a5d5b35376
fix: linting errors (#54) 2022-10-06 16:10:49 +02:00
jmakhack
97128a0816
feat: implement form submit button limit (#47)
* feat: implement form submit button limit

* feat: add submit control to form
2022-10-06 16:07:02 +02:00
Ayo Ayco
f1485808c9
devops: set up package linting (#53) 2022-10-06 16:01:23 +02:00
Ayo Ayco
955b9ca27c
refactor: form-control types (#52) 2022-10-06 15:58:12 +02:00
Fazza Razaq Amiarso
a8bfaaa964
feat: Form control placeholder attribute (#48)
* feat: Add placeholder attribute

* fix: remove wrong interface

* fix: fix spacing issue

Co-authored-by: Ayo Ayco <ramon.aycojr@gmail.com>

Co-authored-by: Ayo Ayco <ramon.aycojr@gmail.com>
2022-10-05 18:30:47 +02:00
Ayo Ayco
3c1ab5c40e
Chore project clean up (#42)
* chore: project clean up

* docs: update package release
2022-10-04 19:18:17 +02:00
Amit Kumar Sharma
29abefd605
refactor: astro-reactive-form types (#40)
* [refactor]: astro-reactive-form types
* cleanup: comments and empty lines
Co-authored-by: Amit Kumar Sharma <91947037+amit-2k1@users.noreply.github.com>
2022-10-04 18:26:09 +02:00
Ayo Ayco
66d782bdf0
chore: bump patch; update script (#39) 2022-10-04 17:36:15 +02:00
Ayo Ayco
ca9cd27b0d
chore: update deps (#38) 2022-10-04 17:32:30 +02:00
Ayo Ayco
49d2e17ca1
Docs update readme (#36)
* docs: display last commit badge
* chore: simplify pull request template
2022-10-04 17:13:34 +02:00
Ayo
6e96ce5b52 fix: main branch tests 2022-10-04 16:12:19 +02:00
Ayo
b3dd15b781 experiment: breaking commit 2022-10-04 14:47:10 +02:00
Ayo
d2a9c77724 chore: update project command scripts 2022-10-04 14:30:00 +02:00
Ayo
509cece7d5 docs: update astro-reactive-form RELEASE 2022-10-04 14:04:35 +02:00
Ayo
b386cbb006 chore: bump patch astro-reactive-form 2022-10-04 13:52:54 +02:00
Ayo
fd11d674ea chore: update library and package readme; update license; add assets 2022-10-04 13:51:30 +02:00
Ayo
8514727e1d style: initial dark and light style scaffold 2022-10-04 13:17:05 +02:00
Ayo
9fe00b3ac7 docs: clean up readme, move release to package 2022-10-04 13:04:25 +02:00
Ayo
7809a2728d fix: removed default export 2022-10-03 07:56:52 +02:00
Amit Kumar Sharma
ea594da817
[feat]: export all from Form.astro (#20)
[feat]: export all from Form.astro (#20)
2022-10-03 07:38:13 +02:00
Shivam Chourasia
5fb10d9b8c
Fix #6: refactored IFormControl to FormControlBase and added radio prop. 2022-10-02 20:41:47 +05:30
Ayo
c1dfdb8a8d docs: move the contributing.md 2022-10-01 21:53:20 +02:00
Ayo
431493cb16 docs: initial CONTRIBUTING.md 2022-10-01 21:52:10 +02:00
Ayo
32dd989fdf refactor(Field.astro): handling of labelPosition 2022-10-01 20:33:47 +02:00
Ayo
8a9f70a254 docs: update reactive form future plans 2022-10-01 20:23:59 +02:00
Ayo
43bef7ab36 deps: bump version 2022-10-01 19:37:00 +02:00
Ayo
56806e8225 docs: update readme example 2022-10-01 19:36:14 +02:00
Ayo
63868e4587 feat: update demo app and package readme 2022-10-01 19:32:55 +02:00
Ayo
d85810621b feat: FormGroup.get(), FormControl.setValue() 2022-10-01 19:25:08 +02:00
Ayo
a3da67c90c fix: linting errors 2022-10-01 17:15:00 +02:00
Ayo
d00c7bc5d5 chore: fix repository links 2022-10-01 16:48:20 +02:00