Commit Graph

670 Commits

Author SHA1 Message Date
Bowen Tan
2df5395665 fix typo: hanlder => handler 2022-02-16 11:02:22 +08:00
Bowen Tan
46137aa8d2 Fix the bug that page cannot scroll when chakra dialog is openning. 2022-02-16 10:53:06 +08:00
MrWindlike
363af1b817 fix(runtime): fix deleting state in the wrong time 2022-02-15 16:55:54 +08:00
yz-yu
61d97fc55a
Merge pull request #280 from webzard-io/fix/disable-save-anyway
validation error will not block save anymore
2022-02-15 15:44:01 +08:00
tanbowensg
114babd865
Merge pull request #281 from webzard-io/feat/chakra-properties-category
feat(lib): change properties spec
2022-02-15 15:43:03 +08:00
yz-yu
da43750319
Merge pull request #276 from webzard-io/feat/property-classification
fix: fix bugs with incorrect setting values and incorrect sorting
2022-02-15 15:27:56 +08:00
MrWindlike
79c4c29e95 chore: fix test cases and change some properties' spec 2022-02-15 15:19:05 +08:00
xzdry
0aa55c7ad0 fix: use advance instead of basic and put it at the bottom 2022-02-15 15:12:35 +08:00
MrWindlike
fc15a2dc50 feat(lib): change properties spec 2022-02-15 13:49:36 +08:00
Bowen Tan
f6cafef182 validation error will not block save anymore 2022-02-15 10:22:44 +08:00
Yanzhen Yu
dc271becd9 use auto refresh addon in code mirror 2022-02-14 23:27:07 +08:00
yz-yu
e9a8b0abb9
Merge pull request #278 from webzard-io/fix/wrapper-drop-bug
improve left panel ui tree
2022-02-14 21:58:11 +08:00
Bowen Tan
7b95f04383 improve left panel ui tree 2022-02-14 18:00:46 +08:00
xzdry
eb58535565 fix: fix bugs with incorrect setting values and incorrect sorting 2022-02-14 16:41:23 +08:00
MrWindlike
322654289c fix(editor): fix error of resolving the conflict 2022-02-14 15:22:32 +08:00
MrWindlike
daf3118b70 fix(editor): fix crash after errors hanpened 2022-02-14 15:19:47 +08:00
tanbowensg
a0a5a653a2
Merge pull request #270 from webzard-io/feat/datasource
feat: make the DataSource as an independent panel
2022-02-14 14:01:21 +08:00
tanbowensg
8567a83e28
Merge pull request #273 from webzard-io/feat/property-classification
feat: classify the properties of the components
2022-02-14 10:41:46 +08:00
MrWindlike
82eec7dcd2 fix(runtime): delete the component state when unmounting 2022-02-14 09:49:19 +08:00
Yanzhen Yu
7290a721d5 improve overlay mode and impl editor modal 2022-02-13 14:09:15 +08:00
Yanzhen Yu
b4e1ea2dc3 improve expression editor with codemirror multiplexing and overlay 2022-02-12 15:46:33 +08:00
xzdry
1a03f331e3 feat: classify the properties of the components 2022-02-12 14:21:06 +08:00
yz-yu
7ab7afa6a7
Merge pull request #271 from webzard-io/fix/wrapper-drop-bug
fix can not drop component in mask bug
2022-02-12 00:10:29 +08:00
MrWindlike
13c6196205 chore: eslint fixed 2022-02-11 17:48:31 +08:00
MrWindlike
7e14b0b2c5 chore(DataSource): improve the codes 2022-02-11 17:43:37 +08:00
Bowen Tan
64deb7ef42 fix can not drop component in mask bug 2022-02-11 16:21:33 +08:00
MrWindlike
d670694361 fix(editor): auto change selected component id after id changed
ISSUE: https://github.com/webzard-io/sunmao-ui/issues/264
2022-02-11 16:18:17 +08:00
MrWindlike
5fededd409 feat(editor): improve UI 2022-02-11 10:31:18 +08:00
MrWindlike
7d06ca61e1 fix(editor): fix the API DataSource params replaced wrong 2022-02-11 10:03:41 +08:00
MrWindlike
f27a1b6a64 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/datasource 2022-02-11 09:59:56 +08:00
MrWindlike
4ee2dea836 feat(editor): improve UI interaction 2022-02-11 09:45:01 +08:00
Yanzhen Yu
75cf9d0128 do not reset value when original value is undefined 2022-02-10 23:33:20 +08:00
Bowen Tan
4cbb6f187c rename and add test 2022-02-10 18:17:05 +08:00
MrWindlike
5642fde8dc Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/datasource 2022-02-10 18:12:38 +08:00
MrWindlike
69a1f7cd35 feat: make the DataSource as an independent panel 2022-02-10 18:05:05 +08:00
Bowen Tan
f40c42fa8a add ref to chakra-ui components 2022-02-10 15:34:10 +08:00
Bowen Tan
cb3d7e9dd2 refine code 2022-02-10 15:34:10 +08:00
Bowen Tan
1e29658fef drag component to mask 2022-02-10 15:34:10 +08:00
Bowen Tan
5aecab13b3 use resize observer 2022-02-10 15:34:09 +08:00
Bowen Tan
07a0a0af61 add drop slot area 2022-02-10 15:34:09 +08:00
Bowen Tan
053ca3bc63 add lifecycles 2022-02-10 15:34:09 +08:00
Bowen Tan
9f8a23902d detect mouse position 2022-02-10 15:34:09 +08:00
Bowen Tan
5d182f9a0a render border 2022-02-10 15:34:09 +08:00
Yanzhen Yu
5d2418f8dd improve #225, reset field value when type miss match 2022-02-10 00:02:08 +08:00
Yanzhen Yu
f0810a09f1 customize state viewer theme 2022-02-09 23:49:48 +08:00
Yanzhen Yu
f46df01acc add category annotation to chakra ui lib 2022-02-09 14:50:33 +08:00
Yanzhen Yu
31bfa1fc32 refactor component list with category annotation 2022-02-09 13:41:04 +08:00
Yanzhen Yu
a722dcc34a extend metadata and set category annotation to core components 2022-02-09 12:50:51 +08:00
yz-yu
f68207c91c
Merge pull request #265 from webzard-io/auto-complete
impl #225 trigger auto-complete when typing
2022-02-09 09:36:51 +08:00
Yanzhen Yu
c683619a86 impl #225 trigger auto-complete when typing 2022-02-08 18:27:02 +08:00
yz-yu
96d5bfc76e
Merge pull request #243 from webzard-io/improve/xzdry
feat: change selected componet will automatically jump to the inspect…
2022-02-08 18:25:37 +08:00
tanbowensg
ed913afc94
Merge pull request #260 from webzard-io/feat/windlike-patch
feat(editor): auto-complete the parameters of the method
2022-02-08 11:00:34 +08:00
MrWindlike
ac1c09e98f feat(editor): auto-complete the parameters of the method 2022-02-07 17:24:44 +08:00
xzdry
727718010b fix: use @typescript-eslint/no-unused-vars instead of no-unused-vars to support typescript 2022-02-07 15:58:30 +08:00
xzdry
aba1265b00 fix: correct some typos 2022-02-07 15:54:30 +08:00
Bowen Tan
a0e1a9bf31 fix bug that the editor will crash after change module 2022-02-07 14:32:48 +08:00
Bowen Tan
9e8b9d5c75 rename folder and files name 2022-02-07 13:42:46 +08:00
tanbowensg
dec1a8526a
Merge pull request #238 from webzard-io/feat/xzdry-patch
feat: support top level components reorder
2022-02-07 11:34:28 +08:00
tanbowensg
70873a491f
Merge pull request #244 from webzard-io/yanzhen-patch-2
improve state viewer UX
2022-02-07 10:59:09 +08:00
tanbowensg
cd3a87be5c
Merge pull request #256 from webzard-io/fix/windlike-patch
fix(editor): change some styles and fix the problems of editor
2022-02-07 10:55:51 +08:00
Yanzhen Yu
e92ee94203 improve multiline expression eval 2022-02-04 17:01:45 +08:00
Yanzhen Yu
46fa447432 support expression editor in object values 2022-02-04 16:32:40 +08:00
Yanzhen Yu
8a375861e6 support expression in number and any fields 2022-02-04 15:21:42 +08:00
Yanzhen Yu
fce1d84bbe implement filter for state viewer 2022-01-31 22:12:09 +08:00
MrWindlike
77031a620a fix(editor): fix the problem of removing a module 2022-01-30 15:53:00 +08:00
MrWindlike
02d1a407dd fix(editor): make the created module's name is different 2022-01-30 15:48:12 +08:00
MrWindlike
f5aa1460ba fix(editor): fix can't change module's version and name at same time 2022-01-30 15:18:38 +08:00
Yanzhen Yu
7652f26599 improve state viewer UX
1. watch state change and update the UI
2. use react-json-tree instead of CodeMirror
2022-01-30 13:02:38 +08:00
xzdry
c7142b53e8 refactor: optimized naming 2022-01-30 12:27:31 +08:00
MrWindlike
3417e1ad72 fix(editor): fix the component wrapper's label is invisible in some sitiations 2022-01-30 11:12:09 +08:00
xzdry
58f2ec47ec test: add test case of move top-level component 2022-01-30 10:25:23 +08:00
xzdry
f233881405 feat: change selected componet will automatically jump to the inspect interface 2022-01-29 16:06:26 +08:00
Bowen Tan
7c2e9983a7 fix jest fails loading css file bug 2022-01-29 14:34:30 +08:00
Bowen Tan
d88c9e9b23 Publish
- @sunmao-ui/chakra-ui-lib@0.1.6
 - @sunmao-ui/editor@0.3.13
 - @sunmao-ui/runtime@0.3.12
2022-01-29 11:51:54 +08:00
Bowen Tan
6e178104d0 Merge branch 'main' into publish
* main:
  fix(editor): disabled trait created when it is exist
  chore(editor): logic improve
  fix(trait): fix no `onComplete` on fetch trait form when it created
  fix(editor): fix that can't find the component by id after change its id
  fix(editor): fix production error by tsup
  test(editor): add FieldModel test cases
2022-01-29 11:50:12 +08:00
tanbowensg
3edfbc16ab
Merge pull request #240 from webzard-io/fix/fetch
fix(editor): fix trait form problems
2022-01-29 11:49:45 +08:00
MrWindlike
cb57c197c5 fix(editor): disabled trait created when it is exist 2022-01-29 11:45:18 +08:00
tanbowensg
c886327f06
Merge pull request #237 from webzard-io/fix/windlike-patch
fix(editor): fix some errors and add test cases
2022-01-29 11:40:11 +08:00
MrWindlike
44645b19ec chore(editor): logic improve 2022-01-29 11:28:15 +08:00
MrWindlike
8c677de77a fix(trait): fix no onComplete on fetch trait form when it created 2022-01-29 10:16:59 +08:00
xzdry
482642a15e feat: support top level components reorder 2022-01-28 17:15:37 +08:00
MrWindlike
1232db2659 fix(editor): fix that can't find the component by id after change its id 2022-01-28 17:14:03 +08:00
MrWindlike
0136cce5ee fix(editor): fix production error by tsup
tsup transforms json properties to variable which may make some mistakes
2022-01-28 16:50:06 +08:00
MrWindlike
0b3bc0f912 test(editor): add FieldModel test cases 2022-01-28 15:36:40 +08:00
Bowen Tan
620fc212aa Publish
- @sunmao-ui/chakra-ui-lib@0.1.5
 - @sunmao-ui/editor@0.3.12
 - @sunmao-ui/runtime@0.3.11
2022-01-28 15:06:18 +08:00
Bowen Tan
22fc280702 export css for editor 2022-01-28 15:00:17 +08:00
Bowen Tan
cdcc8f5e6d Merge branch 'main' into publish
* main:
  fix cannot addModuleId to stateMap bug
  chore(editor): fix type error
  chore(editor): change code style
  fix(editor): forbid drop to component which has no slots
  fix(editor): fix display errors when set event's target to `$utils`
  fix(editor): make the warning area update immediately
  fix(editor): fix display errors when set event's target to `$utils`
  change default value of  Type.Any to undefined
  check modules when validating expression
  fix some style bugs
  fix: will not delete input component which in editing state
  fix(editor): make the warning area update immediately
  fix(editor): recover app when the runtime errors are fixed
  chore: change code style
  feat(Editor): add `$utils` to event targets
  types(IFieldModel): fix type error
  fix(editor): make the form update correctly
2022-01-28 14:18:33 +08:00
yz-yu
8b1a8a7845
Merge pull request #236 from webzard-io/fix/bug
fix cannot addModuleId to stateMap bug
2022-01-28 13:39:23 +08:00
tanbowensg
87e6289747
Merge pull request #229 from webzard-io/fix/windlike-patch
fix(editor): make the form update correctly
2022-01-28 13:36:05 +08:00
tanbowensg
5639ca0d05
Merge pull request #231 from webzard-io/bugfix
fix: Fix the bug that the component will be deleted when editing in the Input
2022-01-28 13:34:39 +08:00
tanbowensg
f1ec4515a2
Merge pull request #233 from webzard-io/fix/warning-area
fix(editor): make the warning area update immediately
2022-01-28 13:34:00 +08:00
Bowen Tan
b0968231e8 fix cannot addModuleId to stateMap bug 2022-01-28 12:47:51 +08:00
MrWindlike
8fbb6a7f9c chore(editor): fix type error 2022-01-28 09:28:53 +08:00
MrWindlike
d83ff4169b chore(editor): change code style 2022-01-28 09:14:03 +08:00
MrWindlike
3eabd7ae4a Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into fix/windlike-patch 2022-01-27 18:32:44 +08:00
MrWindlike
26ebd7b24c fix(editor): forbid drop to component which has no slots 2022-01-27 18:22:21 +08:00
MrWindlike
4b99a4bc24 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into fix/warning-area 2022-01-27 17:44:56 +08:00
MrWindlike
e0f2083df5 fix(editor): fix display errors when set event's target to $utils 2022-01-27 17:20:31 +08:00
MrWindlike
95186a8b64 fix(editor): make the warning area update immediately 2022-01-27 17:20:22 +08:00
MrWindlike
dbd16d311b fix(editor): fix display errors when set event's target to $utils 2022-01-27 17:18:54 +08:00