Commit Graph

123 Commits

Author SHA1 Message Date
Yanzhen Yu
2bcb02491b update component and trait props type to JSONSchemaObject
related to #54
2021-09-20 16:02:17 +08:00
Yanzhen Yu
084eb33a76 fix component props eval: deep eval only once 2021-09-20 15:55:58 +08:00
yz-yu
3c8b6db9b2
Merge pull request #73 from webzard-io/feat/form
Complete Form Component
2021-09-20 15:54:04 +08:00
Bowen Tan
ae981541bd change form control to horizontal 2021-09-18 18:06:31 +08:00
Bowen Tan
8eaec48b97 add dialog form 2021-09-18 14:38:04 +08:00
Bowen Tan
288a432923 integrate form, table and api 2021-09-18 10:32:53 +08:00
Yanzhen Yu
57c46027e8 update the spec of component ids in the spec
related to #54
If users naming component with id 'input-1', it may be hard to be
used in the expression, because 'input-1' is not a valid JS variable
name.

So we update the spec to make sure component ids are valid JS variable
names.
According to https://stackoverflow.com/a/1661249, valid JS variable
name can be a big set. In this patch, we just force users to pass
a simple and limited RegExp, which keep application simple and readable.

TODO: validate component ids are not keywords.
2021-09-18 00:57:40 +08:00
Bowen Tan
a3bcb4efc3 add Volume Form 2021-09-17 15:40:07 +08:00
Bowen Tan
e5f2f1b8d3 fix form validation 2021-09-17 10:45:44 +08:00
Bowen Tan
b677bf1ecc add resetForm method 2021-09-17 10:45:44 +08:00
Bowen Tan
8ec7837d3d reuse CallMethodSchema 2021-09-17 10:45:44 +08:00
Bowen Tan
aa00c670d6 complete form component 2021-09-17 10:45:44 +08:00
Bowen Tan
b44ae7685f add formControl 2021-09-17 10:45:44 +08:00
Bowen Tan
9521219d55 remove validation trait return props 2021-09-17 10:45:44 +08:00
Bowen Tan
06a3586221 fix validation text does not show in the first render bug 2021-09-17 10:45:44 +08:00
tanbowensg
985f8035b7
Merge pull request #69 from Sczlog/main
add chakra-ui toast.
2021-09-17 10:30:34 +08:00
tanbowensg
7894db3215
Merge pull request #67 from webzard-io/cep/radio
feat: impl radio and radioGroup
2021-09-17 10:11:49 +08:00
Bowen Tan
36cbe2ae25 add eslint 2021-09-17 09:48:40 +08:00
Bowen Tan
01318d0c2a add test for parseTypeBox 2021-09-17 09:41:12 +08:00
Bowen Tan
8ff0c996d4 add checkbox for table 2021-09-17 09:41:12 +08:00
Bowen Tan
6f10569d92 add dialog in table 2021-09-17 09:41:09 +08:00
Bowen Tan
4a8ae01ab5 table multi select 2021-09-17 09:38:27 +08:00
Bowen Tan
d72d4c57fa add displayValue for table 2021-09-17 09:38:27 +08:00
Bowen Tan
07b68d8372 split table file 2021-09-17 09:38:27 +08:00
Bowen Tan
319a7beec6 add dummy query 2021-09-17 09:38:27 +08:00
Bowen Tan
65c4c44816 delete row 2021-09-17 09:38:27 +08:00
Bowen Tan
2f56b4b5b1 add column sort 2021-09-17 09:38:27 +08:00
Bowen Tan
a9d03a0cc6 define table column and add pagination 2021-09-17 09:38:27 +08:00
Bowen Tan
9595eb17db init component state from spec 2021-09-17 09:38:27 +08:00
Bowen Tan
a5b22a8ac1 integrate todolist with api 2021-09-17 09:38:27 +08:00
Bowen Tan
7b6555dc59 refactor: fix trait and component eval order 2021-09-17 09:38:27 +08:00
Sczlog
a5fafc4798 add chakra-ui toast. 2021-09-16 18:51:25 +08:00
chenenpei
56ecfba185 feat: impl radio and radioGroup 2021-09-16 17:06:01 +08:00
chenenpei
3ae95c42a0 modify props of checkbox and checkboxGroup 2021-09-16 17:06:01 +08:00
chenenpei
f23865c6e7 declare state schema for checkbox, checkboxGroup, and select 2021-09-16 17:06:01 +08:00
chenenpei
7d59bdeb0a feat: add more props for checkbox 2021-09-15 14:22:38 +08:00
chenenpei
0157206207 feat: impl select component 2021-09-15 14:22:37 +08:00
Bowen Tan
cad28f5af5 fix dialog import ColorSchemePropertySchema bug 2021-09-13 17:10:14 +08:00
Shengjie Yang
034073d770 fix: use initialValue to replace async setValue 2021-09-13 10:25:44 +08:00
Shengjie Yang
50b07210ed feat: impl dialog component 2021-09-13 10:25:43 +08:00
Bowen Tan
f7da7a15b0 add style trait 2021-09-13 10:09:17 +08:00
yz-yu
646fdf2c89
Merge pull request #53 from webzard-io/feat/list
implement List component
2021-09-12 18:15:15 +08:00
Bowen Tan
25525f9951 implement tooltip component 2021-09-10 17:15:39 +08:00
Bowen Tan
6bba9eb620 fix jest test 2021-09-07 17:27:01 +08:00
Bowen Tan
6566734282 fix parseExpression bug 2021-09-07 17:09:27 +08:00
Bowen Tan
ae564e926b add parseExpression unit test 2021-09-07 13:47:32 +08:00
Bowen Tan
84748086e6 add parseType util file 2021-09-07 11:15:57 +08:00
Chu Bin
e3b38a79e5 feat: chakra image component 2021-09-06 17:57:39 +08:00
Bowen Tan
4fc48f6570 chore: fix code style 2021-09-06 16:16:09 +08:00
Bowen Tan
b799120fd3 remove methods when component destory 2021-09-06 16:13:13 +08:00