Commit Graph

192 Commits

Author SHA1 Message Date
Bowen Tan
584d7b1798 split App.tsx & combine ImplWrapper props 2021-09-27 15:03:53 +08:00
Bowen Tan
6d1712de67 add selected component wrapper 2021-09-27 13:43:55 +08:00
Bowen Tan
6c7ad81e03 decouple apiService 2021-09-27 10:14:28 +08:00
Bowen Tan
1cbc257e75 decouple globalHandlerMap 2021-09-26 15:25:13 +08:00
Bowen Tan
85134a4c73 decouple stateStore 2021-09-26 15:17:16 +08:00
Bowen Tan
0c8c97ef91 decouple registry 2021-09-26 12:02:22 +08:00
Bowen Tan
41ec9c1910 add componentList & structureTree 2021-09-26 10:45:58 +08:00
Bowen Tan
21471d0abf use jsxImportSource in tsconfig 2021-09-24 10:11:11 +08:00
Bowen Tan
92a11a1458 support cross package import @mata-io/runtime 2021-09-24 10:06:09 +08:00
Bowen Tan
0546d60a2f init editor project 2021-09-24 10:06:07 +08:00
Bowen Tan
c3429e19bb editor init 2021-09-24 10:05:45 +08:00
Bowen Tan
35f33e0073 cancel trait side effect 2021-09-24 10:04:43 +08:00
yz-yu
161b3bf237
Merge pull request #71 from webzard-io/yinsw/ci
Add github action for test and build
2021-09-23 11:47:28 +08:00
Sczlog
4f7aa17b92 correct github action payload 2021-09-23 11:17:38 +08:00
Sczlog
df5081917d update ci
1. add coverage comment action
2. remove build due to it was executed after install dependencies
2021-09-23 11:11:48 +08:00
Sczlog
39f3517d50 update lock file
change to public registry
2021-09-23 09:48:51 +08:00
Sczlog
b05daada2e Update ci.yml 2021-09-23 09:38:28 +08:00
ShenWen Yin
06d8f66f7e update ci test configuration 2021-09-23 09:38:28 +08:00
Sczlog
18fc31e7a7 use prepublish to replace build command 2021-09-23 09:38:28 +08:00
yinshenwen
e6d3b08597 1. update yarn.lock to public registry
2. update ci workflow to use yarn.
2021-09-23 09:38:28 +08:00
yinshenwen
e8d49d94d4 1. add github action to test and build file 2021-09-23 09:38:28 +08:00
yz-yu
84d4b53c03
Merge pull request #75 from webzard-io/runtime
hotfix: revert the change to value initialization
2021-09-20 17:11:26 +08:00
Yanzhen Yu
102853a777 hotfix: revert the change to value initialization 2021-09-20 17:09:13 +08:00
yz-yu
6a8bd9ae92
Merge pull request #74 from webzard-io/runtime
update component and trait props type to JSONSchemaObject
2021-09-20 17:03:27 +08:00
Yanzhen Yu
6d8f7d5fc1 migrate all the code to new props type
related to #54
2021-09-20 17:00:54 +08:00
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
tanbowensg
0a47ef746d
Merge pull request #72 from webzard-io/spec
update the spec of component ids in the spec
2021-09-18 10:13:03 +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
yz-yu
66b8b8a9d3
Merge pull request #70 from webzard-io/refactor/eslint
add eslint
2021-09-17 10:11:33 +08:00
Bowen Tan
36cbe2ae25 add eslint 2021-09-17 09:48:40 +08:00
tanbowensg
fabd5c8aaf
Merge pull request #61 from webzard-io/feat/table
implement table
2021-09-17 09:41:43 +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