Bowen Tan
878eb6b318
fix merge code bug
2021-08-31 14:17:11 +08:00
Bowen Tan
7361aa38a2
refactor fetch trait
2021-08-31 14:05:18 +08:00
Bowen Tan
25d780747e
eval trait properties and run trait at the same time
2021-08-31 14:05:06 +08:00
Bowen Tan
50c07a19e6
refactor state trait
2021-08-31 14:05:04 +08:00
Bowen Tan
bdfe076e65
refactor event trait
2021-08-31 14:03:58 +08:00
Bowen Tan
88b1aad48e
complete validation trait with new trait
2021-08-31 14:01:32 +08:00
Bowen Tan
f50d201b0d
refactor hidden
2021-08-31 14:01:32 +08:00
Bowen Tan
ba37d56b45
input support style property
2021-08-31 14:01:28 +08:00
Bowen Tan
e9ba677dc4
refactor trait implementation
2021-08-31 14:01:04 +08:00
Bowen Tan
983d97715a
format all code
2021-08-31 11:18:11 +08:00
Sczlog
5eeac0bcca
replace route trait by slot trait
...
1. replace route trait by slot trait
2. update example
2021-08-25 10:57:19 +08:00
Sczlog
6acd38906b
refactor router component
...
1. refactor most of the component from wouter.
2. add support for route parameter
3. add support for strict and exact matching
4. modify the createRouter function of wouter to remove the top level RouterProvider
5. move matcher to route level not the top level
2021-08-24 16:34:11 +08:00
Sczlog
5bfc886b31
misc update on router
...
1. update example page's title
2. pass params to ImplWrapper(currently not pass it to the component, need discussion on it)
2021-08-23 15:32:09 +08:00
Sczlog
619e86e526
implement nested hash router
2021-08-23 15:32:09 +08:00
Sczlog
c993c0eb86
hash router
...
1. update example with hash router
(not work good with nested hash router)
2021-08-23 15:31:55 +08:00
Sczlog
575e999785
implement nested router
2021-08-12 18:44:49 +08:00
Sczlog
61b9e897c6
fix redirect and implement default
...
1. fix redirect
2. implement default route
2021-08-12 16:29:03 +08:00
Sczlog
197f043a52
implement router function
...
1. router component
2. route trait
2021-08-12 15:33:18 +08:00
Yanzhen Yu
a7a863930c
define UI API service, related to #9
...
Implemented the API service feature on top of event emitter with
a concise protocol.
The protocol will use JSON as message format and only have one
type 'uiMethod' at this moment.
2021-08-11 17:13:58 +08:00
Yanzhen Yu
a0f89c7f87
fix legacy useExpression
2021-08-11 16:04:04 +08:00
Yanzhen Yu
f8898c39ce
experimental editor component
2021-08-11 13:33:20 +08:00
yz-yu
c386460c1b
Merge pull request #33 from webzard-io/runtime
...
impl expression evalutaion v2
2021-08-10 16:51:49 +08:00
Yanzhen Yu
d976e2d526
migrate components and traits to v2 eval
2021-08-10 15:48:12 +08:00
Yanzhen Yu
e790ab1604
impl expression evalutaion v2 #30
...
Use @vue/reactivity lib to implement a runtime proxy-based state
store.
With the new state store, we can get rid of the limitations React
hook. As a result, we can do the evalutaion of props in the
<ImplWrapper> component.
2021-08-10 15:42:29 +08:00
chenenpei
794ff2e7da
implement chakra ui stack #5
2021-08-09 18:29:03 +08:00
chenenpei
0b8bdbb9aa
implement chakra checkbox #5
2021-08-09 17:18:50 +08:00
Shengjie Yang
56763dfa7f
impl number input component
2021-08-04 13:54:20 +08:00
Yanzhen Yu
8532338706
check component target slot
...
only wrap a div to the component when the target slot is a grid
layout container
2021-08-03 17:41:30 +08:00
Yanzhen Yu
cbe3d0234e
impl keyboard component
2021-08-03 17:40:50 +08:00
Yanzhen Yu
011ccde187
impl basic grid layout
2021-08-03 16:31:33 +08:00
chenenpei
a72ad31a10
add chakra box component
2021-07-30 14:50:15 +08:00
Shengjie Yang
5d27c6d85a
add initial chakra input component
2021-07-29 18:10:40 +08:00
Yanzhen Yu
4cb14215d3
add uesExpression in table component #5
2021-07-29 11:29:56 +08:00
Yanzhen Yu
49e71a5dfc
impl static table component #5
2021-07-29 11:15:20 +08:00
Yanzhen Yu
6be1af76dc
add dayjs to eval context
2021-07-29 11:11:31 +08:00
Sczlog
46960fd4e5
remove wrong files
2021-07-29 11:00:30 +08:00
yz-yu
381346aa8a
Merge pull request #22 from Sczlog/main
...
initialize fetch trait
2021-07-28 22:32:20 +08:00
Sczlog
e50836300a
update fetch trait.
...
1. only subscribe non lazy fetch trigger action
2. update trigger function name
2021-07-28 18:14:17 +08:00
Sczlog
2aa537e458
initialize fetch trait
...
1. first version of fetch trait.
2. example of lazy and non-lazy.
2021-07-28 17:33:16 +08:00
Sczlog
d0db026a6f
fetch trait init
2021-07-27 21:27:51 +08:00
Yanzhen Yu
0776e944b4
add chakra-ui root component
2021-07-27 11:35:35 +08:00
Yanzhen Yu
0f7825613a
close #18 impl hidden trait
2021-07-27 10:44:29 +08:00
Yanzhen Yu
617784bdf2
let trait return a HOC as the wrapper of the component
2021-07-27 10:43:46 +08:00
Yanzhen Yu
010a70f5f3
rename traits
2021-07-27 10:43:12 +08:00
Yanzhen Yu
5850de1b33
impl slot trait
...
To implement slot trait, we do the following changes
1. Nestable components should embed <Slot /> inside itself.
2. Attachable components should use the slot trait to indicate which container they will be attached to.
During app render, we will resolve the nested relation by traversing the components spec. This process will return top-level components and a resolved slots tree.
Top-level components will be rendered directly. The resolved slots tree will be passed into every <Slot />, so the embed <Slot /> can render which has been attached to itself.
2021-07-26 16:30:36 +08:00
Yanzhen Yu
df84613296
refactor expression eval
2021-07-26 16:30:16 +08:00
Yanzhen Yu
7db050d812
impl #5 add chakra UI tabs component
2021-07-26 14:57:53 +08:00
Yanzhen Yu
cad320dd1b
use JSONSchema7 instead of JSONSchema4
2021-07-26 14:43:47 +08:00
Yanzhen Yu
96e409f1dc
close #6 Use typebox to build JSON schema
2021-07-26 13:40:07 +08:00
Yanzhen Yu
aaa8caa998
add chakra-ui button component
2021-07-18 23:07:44 +08:00