Commit Graph

837 Commits

Author SHA1 Message Date
MrWindlike
45fcf0d20d fix: remove calling onChange in the useEffect of widgets 2022-03-03 23:58:55 +08:00
MrWindlike
f93c69af9c feat: add the editor SDK package 2022-03-03 22:28:26 +08:00
MrWindlike
bae327d20e feat: chang the widgets according to the proposal 2022-03-02 18:29:59 +08:00
yz-yu
47c761038e
Merge pull request #316 from webzard-io/remove-code-coverage
remove code coverage report
2022-03-01 11:45:19 +08:00
Bowen Tan
766e59ad82 remove code coverage report 2022-03-01 10:04:07 +08:00
yz-yu
6c67c735a7
Merge pull request #315 from webzard-io/fix/warning
fix the warning in console when create a new component
2022-02-28 18:14:36 +08:00
Bowen Tan
370c73c496 fix the warning in console when create a new component 2022-02-28 17:24:14 +08:00
yz-yu
4d377630ea
Merge pull request #314 from webzard-io/fix/eval
fix the bug that expression will re-eval everytime after store updating
2022-02-28 16:22:33 +08:00
Bowen Tan
8256c8ef8b fix the bug that expression will re-eval everytime after store updating 2022-02-28 16:18:53 +08:00
yz-yu
92cee32c74
Merge pull request #310 from webzard-io/feat/statemanager-type
add generic type for eval functions
2022-02-25 22:50:57 +08:00
Bowen Tan
339be0fb41 add generic type for eval functions 2022-02-25 15:49:41 +08:00
yz-yu
d19d665e2b
Merge pull request #307 from webzard-io/feat/event-payload
Make sure event handler is called in sync order and with the lateset state.
2022-02-25 14:16:06 +08:00
Bowen Tan
fe7a719211 convert proxy to raw object in deepEvalAndWatch & fix examples 2022-02-25 13:59:43 +08:00
yz-yu
df5409c180
Merge pull request #306 from webzard-io/feat/windlike-patch
feat: improve expression editor[fix #252]
2022-02-24 18:37:24 +08:00
Bowen Tan
a6b765d34f eval handler before send event to keep the hanlder is the latest 2022-02-24 18:04:23 +08:00
Bowen Tan
9bb7fba7b3 fix: event is async when wait.time is 0 2022-02-24 18:03:31 +08:00
Bowen Tan
3c93faf1b8 fix: the deepeval watch method generates mutable object 2022-02-24 18:03:31 +08:00
MrWindlike
c46dfb102b feat: support tab to change form focus
make tab key down in the compact expression editor to change form focus
2022-02-24 16:05:27 +08:00
MrWindlike
b8bb57f188 feat: set max height for ExpressionWidget 2022-02-24 15:59:39 +08:00
yz-yu
82104673c2
Merge pull request #299 from webzard-io/feat/datasource
feat: improve datasource[fix #289]
2022-02-24 14:23:35 +08:00
yz-yu
d887c05736
Merge pull request #305 from webzard-io/ci
disable coverage commnet in ci
2022-02-24 14:22:47 +08:00
Bowen Tan
65b5dad79b disable coverage commnet in ci 2022-02-24 13:48:58 +08:00
tanbowensg
2636bd8a8f
Merge pull request #293 from webzard-io/feat/property-classification
feat: add a preset order to property categories
2022-02-24 13:44:38 +08:00
MrWindlike
bb573e9a80 fix: change the conditions to show expression btn
don't show button when schema type is `array` or `object`
2022-02-24 11:50:02 +08:00
MrWindlike
83fefbfd1d chore: expose setCode from ExpressionEditor 2022-02-24 11:43:00 +08:00
xzdry
d982fb098a feat: add and export PRESET_PROPERTY_CATEGORY 2022-02-24 10:27:14 +08:00
yz-yu
456a1c5121
Merge pull request #303 from webzard-io/fix/code-mode
fix: cannot save changes from code mode
2022-02-23 15:07:14 +08:00
Bowen Tan
bb997b2ac2 fix: cannot save changes from code mode 2022-02-23 15:00:55 +08:00
yz-yu
f0099ab245
Merge pull request #300 from webzard-io/fix/component-tree
fix component tree bug and improve interaction
2022-02-23 13:48:25 +08:00
xzdry
33a4ed2592 Merge branch 'main' of github.com:webzard-io/sunmao-ui into feat/property-classification 2022-02-23 10:47:54 +08:00
tanbowensg
76d3a749cc
Merge pull request #298 from webzard-io/yz-patch
fix tsconfig to emit declaration files
2022-02-22 14:29:17 +08:00
MrWindlike
f8875ec486 fix: improve KeyValueEditor style
make the height of `StringField` input in the `KeyValueEditor` fixed
2022-02-22 14:26:56 +08:00
Bowen Tan
1a23dde524 fix: component should not be drop to its self or children 2022-02-22 14:16:11 +08:00
MrWindlike
8e5f079d7b fix(editor): change prop defaultCode to code for ExpressionEditor 2022-02-22 13:01:26 +08:00
MrWindlike
2667383969 feat(editor): improve datasource and event form
support expression input and schema filed for datasource and event form
2022-02-22 12:06:33 +08:00
Bowen Tan
ea42b336cc feat: If you drag a component after an expanded component, this component will be append to its child. 2022-02-22 11:19:37 +08:00
Yanzhen Yu
28f556de09 fix tsconfig to emit declaration files 2022-02-22 11:14:08 +08:00
tanbowensg
5a4d58c44a
Merge pull request #297 from webzard-io/yz-patch
improve the expression parser
2022-02-22 09:58:44 +08:00
Yanzhen Yu
1c0d843240 improve the expression parser
By introducing a looking ahead algorithm,
now we can correctly parse expressions like:
{{{a: 1}}}
2022-02-21 19:49:31 +08:00
yz-yu
29b315e403
Merge pull request #295 from webzard-io/yz-patch
small changes
2022-02-21 19:47:47 +08:00
Yanzhen Yu
473458abe3 export local storage manager 2022-02-21 19:13:43 +08:00
yz-yu
51a7de0fb3
Merge pull request #296 from webzard-io/fix/copy-bug
Fix pasting component bug & support pasting component to root level
2022-02-21 19:12:39 +08:00
Bowen Tan
6b5c170691 Support coping component to root level when no component is selected. 2022-02-21 18:18:03 +08:00
Bowen Tan
315f4945ad fix typo 2022-02-21 18:04:20 +08:00
Bowen Tan
abeccd45b4 fix the bug that a component cannot be copied multiple times 2022-02-21 17:54:25 +08:00
Yanzhen Yu
04ec9e6845 remove plain button component 2022-02-21 15:35:13 +08:00
MrWindlike
0a7e91e8c8 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/datasource 2022-02-21 14:06:17 +08:00
xzdry
0a2b2fa3b6 feat: add a preset order to property categories 2022-02-21 13:42:41 +08:00
MrWindlike
b0eb0921e2 fix(editor): prevent API and state form keyboard events to accidentally trigger operation shortcut 2022-02-21 11:22:56 +08:00
tanbowensg
2459bd6c34
Merge pull request #290 from webzard-io/fix/windlike-patch
fix(runtime): remove executing trait from `useState`
2022-02-21 11:10:55 +08:00