Commit Graph

628 Commits

Author SHA1 Message Date
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
Bowen Tan
dd1d1ec8a1 change default value of Type.Any to undefined 2022-01-27 17:09:43 +08:00
Bowen Tan
b874ca203d check modules when validating expression 2022-01-27 17:09:36 +08:00
Bowen Tan
cc21a427e0 fix some style bugs 2022-01-27 17:09:26 +08:00
xzdry
e815e83e12 fix: will not delete input component which in editing state 2022-01-27 16:46:09 +08:00
MrWindlike
446a15777c fix(editor): make the warning area update immediately 2022-01-27 16:16:42 +08:00
MrWindlike
40b9b5f32f Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into fix/windlike-patch 2022-01-27 16:01:25 +08:00
tanbowensg
84f311982d
Merge pull request #232 from webzard-io/fix/recover-editor
fix(editor): recover app when the runtime errors are fixed
2022-01-27 15:57:03 +08:00
MrWindlike
9f11d4c298 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into fix/windlike-patch 2022-01-27 15:40:38 +08:00
MrWindlike
159dc7aeeb fix(editor): recover app when the runtime errors are fixed 2022-01-27 15:33:49 +08:00
MrWindlike
60c28d7f1d chore: change code style 2022-01-27 11:15:05 +08:00
MrWindlike
663ba650e0 feat(Editor): add $utils to event targets 2022-01-27 10:05:54 +08:00
Bowen Tan
e60cfe6138 Publish
- @sunmao-ui/editor@0.3.11
2022-01-26 18:01:04 +08:00
Bowen Tan
cfe8c60af0 change editor package entry 2022-01-26 17:59:18 +08:00
MrWindlike
5ab4c6988b types(IFieldModel): fix type error 2022-01-26 17:31:24 +08:00
MrWindlike
4cc0aca7bb Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into fix/windlike-patch 2022-01-26 17:30:34 +08:00
Bowen Tan
7c7dca7834 Publish
- @sunmao-ui/chakra-ui-lib@0.1.4
 - @sunmao-ui/core@0.3.6
 - @sunmao-ui/editor@0.3.10
 - @sunmao-ui/runtime@0.3.10
2022-01-26 17:24:58 +08:00
MrWindlike
f96dc66881 fix(editor): make the form update correctly 2022-01-26 17:24:22 +08:00
yz-yu
7437dc7560
Merge pull request #223 from webzard-io/refactor/appModelManager
refactor operationManager with appModel
2022-01-26 16:57:07 +08:00
Bowen Tan
dcc3d7f04d fetch trait defualt method is get 2022-01-26 15:15:53 +08:00
Bowen Tan
f382a83599 event trait form can choose methods from trait 2022-01-26 14:24:36 +08:00
Bowen Tan
14cd570911 properties validator detect window variables 2022-01-26 14:24:36 +08:00
Bowen Tan
16a26aa651 fix style trait width bug 2022-01-26 14:24:36 +08:00
tanbowensg
e60f2e905c
Merge pull request #226 from webzard-io/auto-complete
Auto complete, part 1
2022-01-26 14:22:12 +08:00
yz-yu
b17f662f7a
Merge pull request #227 from webzard-io/zbs-demo
fix some editor bugs
2022-01-26 13:00:17 +08:00
Bowen Tan
ff7506c26b fix cannot add fetch trait bug 2022-01-26 10:00:33 +08:00
Yanzhen Yu
4f393563f2 fix lockfile and type errors 2022-01-26 09:55:58 +08:00
Yanzhen Yu
495afd4f61 impl expression editor with tern 2022-01-25 23:17:32 +08:00
Yanzhen Yu
910f0ec186 support code mode in schema fields 2022-01-25 18:53:54 +08:00
Bowen Tan
c72c34bfa0 fix addModuleId multiple times bug 2022-01-25 17:29:33 +08:00
Bowen Tan
d618d8bd6d add utilMethods to sunmaoLib & implement chakra toast as utilMethod of lib 2022-01-24 11:41:25 +08:00
Bowen Tan
5ad0d6fea5 refactor operationManager with appModel 2022-01-21 16:14:36 +08:00
Bowen Tan
5a89419c5c replace manager 2022-01-21 16:14:09 +08:00
Bowen Tan
e7fb968e06 fix eslint 2022-01-21 16:11:51 +08:00
Bowen Tan
439ff5155b fix playground 2022-01-21 10:27:37 +08:00
Bowen Tan
61665cdca0 move eventBus, appStorage, EditorStore to services directory 2022-01-21 10:17:35 +08:00
Bowen Tan
15bd209be8 decouple localstorage with sunmaoEditor 2022-01-21 10:17:35 +08:00
Bowen Tan
859327f57e add initSunmaoUIEditorProps 2022-01-21 10:17:35 +08:00
Bowen Tan
1c6cca1450 remove editor global instances 2022-01-21 10:17:35 +08:00
Bowen Tan
a5ca6e6898 add removeModuleId test 2022-01-20 17:52:49 +08:00
Bowen Tan
504cdc69e7 update examples 2022-01-20 17:52:49 +08:00
Bowen Tan
dff5ba60c9 move addModuleId to editor 2022-01-20 17:52:49 +08:00
MrWindlike
be17136666 fix(editor): fix can't create multiple events
Refs: #218
2022-01-20 15:49:14 +08:00