Commit Graph

1091 Commits

Author SHA1 Message Date
xzdry
8e8eebb9c7 refactor: make type safe 2022-04-15 17:56:05 +08:00
Bowen Tan
a14b6ed1e3 add HiddenImplWrapper 2022-04-15 17:19:37 +08:00
xzdry
d1312f4d2d refactor(collapse): remove collapseItem component & make type safe 2022-04-15 16:43:21 +08:00
xzdry
9caf29b74a fix(checkbox):fix the bug that events are displayed incorrectly and setCheckedValues does not work 2022-04-15 16:40:20 +08:00
yz-yu
6051753393
Merge pull request #369 from webzard-io/feat/module
Recover explorer and fix module's bugs
2022-04-15 11:57:40 +08:00
tanbowensg
c6975f6a9e
Merge pull request #376 from webzard-io/feat/fetch-trait
Remove hasFetched in fetch trait and add disabled property
2022-04-15 10:28:35 +08:00
tanbowensg
f74b5bfccf
Merge pull request #378 from webzard-io/feat/arco
Feat/arco
2022-04-15 10:28:11 +08:00
xzdry
7267ad4992 add uiProps to initSunmaoEditor 2022-04-14 18:00:16 +08:00
Bowen Tan
f280d54fa8 Merge branch 'main' into feat/module
* main:
  fix: deep make value to be undefined when eval errors
  fix: Not evaled when it isn't an expression
  fix(sdk): display key when property spec has no title

# Conflicts:
#	packages/runtime/src/components/_internal/ModuleRenderer.tsx
#	packages/runtime/src/services/StateManager.ts
2022-04-14 17:34:00 +08:00
Bowen Tan
dfb86b3102 Merge branch 'main' into feat/fetch-trait
* main:
  fix: deep make value to be undefined when eval errors
  fix: Not evaled when it isn't an expression
  fix(sdk): display key when property spec has no title

# Conflicts:
#	packages/runtime/src/components/_internal/ImplWrapper.tsx
2022-04-14 17:06:10 +08:00
xzdry
af04c66ace format 2022-04-14 11:06:01 +08:00
Bowen Tan
13a5894be3 remove hasFetched in fetch trait and add disabled property 2022-04-13 17:58:41 +08:00
Bowen Tan
d4d3309c04 Merge branch 'main' into feat/module
* main:
  let tooltip show on top of modal
  fix schema editor width
  feat(table): add ellipsis and change column width functions
  pref: use re-resizable instead of react-resizable

# Conflicts:
#	packages/editor/src/components/Editor.tsx
2022-04-13 17:44:40 +08:00
Bowen Tan
b36927778c remove move fetch component to the end logic 2022-04-13 17:36:39 +08:00
xzdry
b738f85cc6 feat(badge): use conditional rendering 2022-04-13 17:18:40 +08:00
xzdry
f1ea2edbd2 refactor: refactor the alert component and add events to the alert and avatar components 2022-04-13 16:34:50 +08:00
MrWindlike
99c5c9abcb Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into fix/windlike-patch 2022-04-13 16:14:37 +08:00
MrWindlike
6fe611bbaa Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/windlike-patch 2022-04-13 15:48:09 +08:00
MrWindlike
2ffb4cc84b feat: add refresh button 2022-04-13 15:43:50 +08:00
xzdry
dc463c2651 keep mounted of tab panels' content when not active 2022-04-13 13:18:39 +08:00
Bowen Tan
40466ce565 fix can not delete module bug 2022-04-13 11:23:02 +08:00
Yanzhen Yu
d2b6b189a0 let tooltip show on top of modal 2022-04-13 00:59:11 +08:00
Yanzhen Yu
4579029dd6 fix schema editor width 2022-04-13 00:58:57 +08:00
MrWindlike
62a7932a37 Merge branch 'fix/windlike-patch' of https://github.com/webzard-io/sunmao-ui into fix/windlike-patch 2022-04-11 10:26:04 +08:00
MrWindlike
462db2b8d5 fix: deep make value to be undefined when eval errors 2022-04-11 10:12:57 +08:00
xzdry
178de9c1f3 Merge branch 'main' of github.com:webzard-io/sunmao-ui into feat/arco 2022-04-11 09:33:58 +08:00
Bowen Tan
370ca60d52 add ignoreError param to evalExp function 2022-04-08 12:12:45 +08:00
Bowen Tan
dfce6b7594 Merge branch 'main' into feat/module
* main:
  fix: fix the `CategoryWidget` errors
  refactor avatar component
  Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/windlike-patch
  chore: fix the eslint errors
  feat: improve the event form performance
  feat: make event handlers collapsable
  feat: add handlers sort
  chore: rename variable
  chore: change widgets' name
  chore(arco): change var names from `schema` to `spec`
  chore: change some var names from `schema` to `spec`
  feat(expression): improve the codes
  feat: console the expression errors in `deepEval`
  feat: console the expression errors
  fix: remove the stateManager from the schema validator
  feat: improve the form performance
  style: fix the KeyValueWidth style when string too long
  feat: handle the expression errors

# Conflicts:
#	packages/runtime/src/components/_internal/ModuleRenderer.tsx
#	packages/runtime/src/services/StateManager.ts
2022-04-08 11:17:22 +08:00
MrWindlike
b9da57c8ad fix: Not evaled when it isn't an expression 2022-04-08 11:09:03 +08:00
tanbowensg
e3f7c4ea62
Merge pull request #370 from webzard-io/feat/handler-sort
Feat/handler sort
2022-04-08 10:59:21 +08:00
MrWindlike
1850625d98 fix: fix the CategoryWidget errors 2022-04-08 10:57:18 +08:00
tanbowensg
da07bd7c84
Merge pull request #371 from webzard-io/feat/avatar
refactor avatar component
2022-04-08 10:45:01 +08:00
MrWindlike
1bedbfdf02 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/handler-sort 2022-04-08 10:42:25 +08:00
xzdry
f802302f5a Merge branch 'main' of github.com:webzard-io/sunmao-ui into feat/avatar 2022-04-08 10:08:58 +08:00
xzdry
49cbe94781 refactor avatar component 2022-04-08 10:02:46 +08:00
MrWindlike
bb93949b8e Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/handler-sort 2022-04-08 09:35:04 +08:00
MrWindlike
203b78d086 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/windlike-patch 2022-04-07 18:06:47 +08:00
MrWindlike
141f3b1b54 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/windlike-patch 2022-04-07 18:01:01 +08:00
MrWindlike
19c2b89809 chore: fix the eslint errors 2022-04-07 17:44:37 +08:00
MrWindlike
9beae266b6 feat: improve the event form performance 2022-04-07 17:43:29 +08:00
MrWindlike
99388ad587 feat: make event handlers collapsable 2022-04-07 17:01:58 +08:00
MrWindlike
04efd82f1d feat: add handlers sort 2022-04-07 16:40:41 +08:00
Bowen Tan
511fd33051 add comments 2022-04-07 15:38:48 +08:00
MrWindlike
0f0dc5827c chore: rename variable 2022-04-07 15:21:38 +08:00
MrWindlike
12c000add5 chore: change widgets' name 2022-04-07 15:15:01 +08:00
Bowen Tan
9efee4e512 fix module bug in list 2022-04-07 15:13:57 +08:00
MrWindlike
4c4efa1cca chore(arco): change var names from schema to spec 2022-04-07 15:10:15 +08:00
MrWindlike
05cf597854 chore: change some var names from schema to spec 2022-04-07 15:02:26 +08:00
MrWindlike
6306cc0340 feat(expression): improve the codes 2022-04-07 14:37:55 +08:00
MrWindlike
388429aa25 feat: console the expression errors in deepEval 2022-04-07 09:14:57 +08:00
MrWindlike
2727dd5716 feat: console the expression errors 2022-04-06 22:46:47 +08:00
MrWindlike
20552960f5 fix: remove the stateManager from the schema validator 2022-04-06 22:40:03 +08:00
Bowen Tan
131bedd97c fix: module will add duplicated moduleId after save meta data 2022-04-06 19:24:03 +08:00
Bowen Tan
0e251fe986 fix moduleContainer mask bug 2022-04-06 17:28:50 +08:00
Bowen Tan
d593a1b2e2 recover explorer 2022-04-06 17:28:34 +08:00
xzdry
b76957da70 feat(table): add ellipsis and change column width functions 2022-04-06 14:12:50 +08:00
xzdry
af0b314a1f pref: use re-resizable instead of react-resizable 2022-04-06 13:39:42 +08:00
MrWindlike
ed9b2c1b7a feat: improve the form performance 2022-04-06 11:24:36 +08:00
MrWindlike
53c5bdb663 style: fix the KeyValueWidth style when string too long 2022-04-02 17:54:50 +08:00
MrWindlike
3d58314d38 feat: handle the expression errors 2022-04-02 16:30:34 +08:00
MrWindlike
badcb92401 feat: implement conditional render 2022-03-30 23:08:25 +08:00
MrWindlike
6eed3fc308 fix(sdk): display key when property spec has no title 2022-03-30 14:26:49 +08:00
xzdry
b6476c5a60 fix: fix incorrect width of tool menu 2022-03-29 13:40:42 +08:00
Yanzhen Yu
428630c1b3 Publish
- @sunmao-ui/arco-lib@0.1.7
 - @sunmao-ui/chakra-ui-lib@0.3.7
 - @sunmao-ui/editor-sdk@0.1.8
 - @sunmao-ui/editor@0.5.8
 - @sunmao-ui/runtime@0.5.6
2022-03-29 00:13:37 +08:00
yz-yu
7817abe300
Merge pull request #360 from webzard-io/fix/windlike-patch
Fix/windlike patch
2022-03-29 00:11:48 +08:00
MrWindlike
8887031539 fix: don't clear data when refetch 2022-03-28 18:11:00 +08:00
MrWindlike
7a85121e7a chore: add comments 2022-03-28 16:50:08 +08:00
MrWindlike
06dd2bc0c7 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into fix/windlike-patch 2022-03-28 16:47:22 +08:00
MrWindlike
bf046a7d42 fix: eval the raw handler when trigger the events 2022-03-28 16:46:43 +08:00
MrWindlike
c2bdc7a880 fix: avoid the immer errors 2022-03-28 16:28:44 +08:00
xzdry
50f4545e10 add react-resizable to runtime 2022-03-28 15:14:30 +08:00
Yanzhen Yu
aaaf553a65 Publish
- @sunmao-ui/arco-lib@0.1.6
 - @sunmao-ui/chakra-ui-lib@0.3.6
 - @sunmao-ui/core@0.5.4
 - @sunmao-ui/editor-sdk@0.1.7
 - @sunmao-ui/editor@0.5.7
 - @sunmao-ui/runtime@0.5.5
2022-03-28 12:22:41 +08:00
xzdry
bbc484adf2 Merge branch 'main' of github.com:webzard-io/sunmao-ui into improve/xzdry-patch 2022-03-28 11:13:59 +08:00
xzdry
4249192936 feat(tree): add path state 2022-03-28 10:50:38 +08:00
xzdry
026ce4eade feat: add resize function to the menu 2022-03-28 10:49:57 +08:00
Bowen Tan
675ad0d505 Publish
- @sunmao-ui/arco-lib@0.1.5
 - @sunmao-ui/chakra-ui-lib@0.3.5
 - @sunmao-ui/editor-sdk@0.1.6
 - @sunmao-ui/editor@0.5.6
 - @sunmao-ui/runtime@0.5.4
2022-03-25 10:09:40 +08:00
Bowen Tan
d597f934ae Merge branch 'main' into publish
* main:
  trim expression before eval
  fix: add typebox into dependencies
  fix: hide the event type in the API form's handlers
  fix: move the fetch trait components to the last

# Conflicts:
#	packages/editor/package.json
2022-03-25 10:02:43 +08:00
tanbowensg
2a4d4d9dba
Merge pull request #351 from webzard-io/fix/windlike-patch
Fix/windlike patch
2022-03-25 09:59:11 +08:00
Bowen Tan
5d18607d3f trim expression before eval 2022-03-23 16:54:51 +08:00
MrWindlike
ed9905dd88 chore: add @sinclair/typebox to peerDependencies 2022-03-22 15:50:57 +08:00
MrWindlike
44e7eefa6e fix: add typebox into dependencies
prevent inject typebox's codes into production files
2022-03-21 11:25:48 +08:00
MrWindlike
16824e29f7 fix: hide the event type in the API form's handlers 2022-03-18 10:54:38 +08:00
MrWindlike
1b1df68fc9 fix: move the fetch trait components to the last
fetch trait executed unexpectedly when it depends on the state behind it
2022-03-18 10:52:44 +08:00
Bowen Tan
57b69914d3 Publish
- @sunmao-ui/arco-lib@0.1.4
 - @sunmao-ui/chakra-ui-lib@0.3.4
 - @sunmao-ui/editor-sdk@0.1.5
 - @sunmao-ui/editor@0.5.5
2022-03-18 09:52:12 +08:00
Bowen Tan
d7f3b7f11a Merge branch 'main' into publish
* main:
  chore: remove `renderField`
  fix: show the state type by real initial value
  feat: improve the trait form
  fix: change the expression styles
  fix: fix no event type in the event widget
  adjust the editor area
  feat(table): add row click
  feat: add the TableColumn widget

# Conflicts:
#	packages/chakra-ui-lib/package.json
2022-03-18 09:45:34 +08:00
tanbowensg
58156b8da3
Merge pull request #350 from webzard-io/fix/windlike-patch
Fix/windlike patch
2022-03-18 09:44:01 +08:00
MrWindlike
b85d3583c3 chore: remove renderField 2022-03-18 09:24:20 +08:00
MrWindlike
4b174d6f52 fix: show the state type by real initial value 2022-03-17 20:24:32 +08:00
MrWindlike
7d03a2dd51 feat: improve the trait form 2022-03-17 17:41:52 +08:00
MrWindlike
f7513c1a07 fix: change the expression styles 2022-03-17 15:31:54 +08:00
tanbowensg
250f9eea72
Merge pull request #348 from webzard-io/improve/xzdry-patch
improve table component and editor area
2022-03-17 11:46:01 +08:00
tanbowensg
91a393bac5
Merge pull request #347 from webzard-io/feat/custom-widget
feat: add the TableColumn widget
2022-03-16 17:08:28 +08:00
MrWindlike
726fca3815 fix: fix no event type in the event widget 2022-03-16 16:48:27 +08:00
xzdry
44b11cda6f adjust the editor area 2022-03-16 13:23:28 +08:00
xzdry
94d17f2643 feat(table): add row click 2022-03-16 13:19:51 +08:00
Bowen Tan
d72bd0c806 Publish
- @sunmao-ui/arco-lib@0.1.3
 - @sunmao-ui/chakra-ui-lib@0.3.3
 - @sunmao-ui/core@0.5.3
 - @sunmao-ui/editor-sdk@0.1.4
 - @sunmao-ui/editor@0.5.4
 - @sunmao-ui/runtime@0.5.3
2022-03-16 11:27:08 +08:00
MrWindlike
320e7ac6bb feat: add the TableColumn widget 2022-03-16 09:30:24 +08:00
tanbowensg
4f5b764c15
Merge pull request #346 from webzard-io/fix/windlike-patch
Fix/windlike patch
2022-03-15 16:09:27 +08:00
MrWindlike
7b92fe5030 fix: fix the crashing when the component id is wrong 2022-03-15 15:28:07 +08:00
MrWindlike
be4a9758d5 feat: add setValue method to localStorage trait 2022-03-15 15:26:43 +08:00
MrWindlike
733b965fd2 feat: support expression for API form's body 2022-03-15 15:05:46 +08:00
MrWindlike
b27bc72011 feat: improve the event and fetch traits
make the `disabled` can be expression
2022-03-15 13:44:27 +08:00
MrWindlike
f5fb8b9ffb fix: make the widgets change value correctly 2022-03-15 11:15:12 +08:00
Bowen Tan
d5f2e5bc5e Publish
- @sunmao-ui/arco-lib@0.1.2
 - @sunmao-ui/chakra-ui-lib@0.3.2
 - @sunmao-ui/core@0.5.2
 - @sunmao-ui/editor-sdk@0.1.3
 - @sunmao-ui/editor@0.5.3
 - @sunmao-ui/runtime@0.5.2
2022-03-10 18:39:08 +08:00
tanbowensg
e29e58dbb4
Merge pull request #344 from webzard-io/feat/custom-widget
fix: fix the widget change value wrong
2022-03-10 18:35:21 +08:00
MrWindlike
c41f533f8e fix: fix the widget change value wrong 2022-03-10 18:27:55 +08:00
tanbowensg
a08294d72e
Merge pull request #338 from webzard-io/feat/localstorage
feat: add localstorage to datasource
2022-03-10 17:10:20 +08:00
tanbowensg
a53744da49
Merge pull request #335 from webzard-io/feat/custom-widget
feat: add the popover widget
2022-03-10 17:07:11 +08:00
Bowen Tan
8e7ab37c7f Publish
- @sunmao-ui/arco-lib@0.1.1
 - @sunmao-ui/chakra-ui-lib@0.3.1
 - @sunmao-ui/core@0.5.1
 - @sunmao-ui/editor-sdk@0.1.2
 - @sunmao-ui/editor@0.5.2
 - @sunmao-ui/runtime@0.5.1
2022-03-10 10:55:53 +08:00
Bowen Tan
50a68c77f8 remove stack border and minHeight minWidth 2022-03-10 10:54:07 +08:00
MrWindlike
fe664a4005 feat: improve the display of API's response 2022-03-09 22:26:48 +08:00
MrWindlike
5f3e365225 chore(sdk): improve the codes 2022-03-09 20:20:02 +08:00
Bowen Tan
60ae70e4ea Publish
- @sunmao-ui/editor-sdk@0.1.1
 - @sunmao-ui/editor@0.5.1
2022-03-09 17:12:05 +08:00
Bowen Tan
be0b3f7a98 modify editor-sdk package.json 2022-03-09 17:09:27 +08:00
Bowen Tan
c2510d7767 Publish
- @sunmao-ui/arco-lib@0.1.0
 - @sunmao-ui/chakra-ui-lib@0.3.0
 - @sunmao-ui/core@0.5.0
 - @sunmao-ui/editor-sdk@0.1.0
 - @sunmao-ui/editor@0.5.0
 - @sunmao-ui/runtime@0.5.0
2022-03-09 17:02:14 +08:00
yz-yu
d1671d5f63
Merge pull request #329 from webzard-io/improve-arco
Improve arco components
2022-03-09 16:52:24 +08:00
tanbowensg
05275637db
Merge pull request #340 from webzard-io/fix/xzdry-patch
fix: fix tabs not displaying properly
2022-03-09 16:46:56 +08:00
xzdry
c571dc357b fix: fix tabs not displaying properly 2022-03-09 11:38:26 +08:00
yz-yu
ae5ee1a623
Merge pull request #339 from webzard-io/feat/form-type
show component type in form
2022-03-09 10:57:21 +08:00
Bowen Tan
6a8b2217a0 show component type in form 2022-03-09 10:49:37 +08:00
xzdry
04c68b77bc feat: add localstorage to datasource 2022-03-09 09:48:06 +08:00
MrWindlike
3770aa9e5d Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/custom-widget 2022-03-08 21:16:43 +08:00
tanbowensg
4c00b8b38c
Merge pull request #336 from webzard-io/feat/upload-file
Add FileInput Component
2022-03-08 18:14:37 +08:00
Yanzhen Yu
c414381563 fix stringify undefined value 2022-03-08 15:58:17 +08:00
Bowen Tan
d6490a7788 improve input & select 2022-03-08 14:54:41 +08:00
Bowen Tan
6c96da9722 imporve checkbox & radio 2022-03-08 14:54:39 +08:00
Bowen Tan
1159ef3ee1 add default style for stack 2022-03-08 14:51:23 +08:00
Bowen Tan
07d4f3a48e improve FileInput 2022-03-08 14:21:33 +08:00
Bowen Tan
74081ea612 implement FileUploader & fetch trait supports bodyType 2022-03-08 14:12:19 +08:00
MrWindlike
8ff97f2190 feat: add the popover widget 2022-03-08 13:57:40 +08:00
MrWindlike
8ad33d6938 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/custom-widget 2022-03-07 19:04:23 +08:00
MrWindlike
4eca2c342c fix: fix some widgets' problems 2022-03-07 18:52:32 +08:00
yz-yu
797db6bde1
Merge pull request #332 from webzard-io/feat/trait-factory
add TraitImplFactory
2022-03-07 18:37:04 +08:00
Bowen Tan
8acdefa4a5 improve editor mask label 2022-03-07 16:07:18 +08:00
Bowen Tan
b19010e9ae add TraitImplFactory 2022-03-07 14:42:33 +08:00
MrWindlike
5ec71b1fcd Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/custom-widget 2022-03-07 11:19:41 +08:00
xzdry
326f692821 fix: fix a bug where two updates to the store do not trigger a view refresh 2022-03-07 10:05:46 +08:00
xzdry
630fc87ea6 feat: implement localstorage trait 2022-03-07 09:59:52 +08:00
MrWindlike
213cd7cf7f Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/custom-widget 2022-03-07 09:10:05 +08:00
MrWindlike
95fd1cf3c6 chore: import components from chakra instead of SDK 2022-03-07 09:03:59 +08:00
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
yz-yu
85f88b5ec3
Merge pull request #328 from webzard-io/improve-arco
Improve arco components & add examples
2022-03-03 21:37:05 +08:00
Bowen Tan
94098eda4e rename table rowSelectionType 2022-03-03 18:16:13 +08:00
Bowen Tan
9543d3e3e1 improve table & add table examples 2022-03-03 17:52:22 +08:00
Bowen Tan
e7b5c293f1 improve tab component and add example 2022-03-03 17:03:08 +08:00
tanbowensg
28ee98f2d7
Merge pull request #327 from webzard-io/fix/windlike-patch
fix(editor): fix the API's response doesn't display
2022-03-03 15:29:03 +08:00
Bowen Tan
41764fc209 improve menu and layout component & add layout with menu example 2022-03-03 15:27:08 +08:00
Bowen Tan
10d0447299 add postcss for arco-lib 2022-03-03 15:18:18 +08:00
MrWindlike
eba99423c3 fix(editor): fix the API's response doesn't display 2022-03-03 14:04:36 +08:00
Bowen Tan
3d1b1549c5 remove editor from arco-lib's dependencies 2022-03-03 11:18:51 +08:00
Bowen Tan
208737c98f add peer dependencies 2022-03-03 11:03:34 +08:00
MrWindlike
bae327d20e feat: chang the widgets according to the proposal 2022-03-02 18:29:59 +08:00
Bowen Tan
b359f8c37d Publish
- @sunmao-ui/arco-lib@0.0.7
 - @sunmao-ui/chakra-ui-lib@0.2.1
 - @sunmao-ui/core@0.4.1
 - @sunmao-ui/editor@0.4.1
 - @sunmao-ui/runtime@0.4.1
2022-03-02 18:09:31 +08:00
tanbowensg
ea9f331fa7
Merge pull request #322 from webzard-io/feat/arco-form
feat: implement FormStack and FormControl
2022-03-02 17:41:49 +08:00
xzdry
dfb4993941 refactor: Optimised form styles 2022-03-02 17:27:22 +08:00
Bowen Tan
af76eb8609 add utilMethodManager 2022-03-02 16:39:20 +08:00
Bowen Tan
9f5d9147ec add scrollToComponent utilMethod 2022-03-02 16:08:02 +08:00
tanbowensg
e119fcb60a
Merge pull request #311 from webzard-io/feat/space
feat: implement core space component
2022-03-02 13:47:39 +08:00
xzdry
f69f6bbac2 feat: add arco lib 2022-03-02 13:33:55 +08:00
xzdry
1a4cd734b9 feat: implement FormStack and FormControl 2022-03-02 13:26:48 +08:00
yz-yu
bb6aba3f83
Merge pull request #320 from webzard-io/feat/dialog-mask
EditorMask support components in dialog
2022-03-02 10:36:57 +08:00
Bowen Tan
ba25194287 change hook didDomUpdate name 2022-03-02 10:09:43 +08:00
Bowen Tan
ef0383e8e9 import arco lib 2022-03-01 18:30:07 +08:00
tanbowensg
809bfa5015 Merge pull request #37 from webzard-io/table
add displayValue for table column & eval $listItem for td
2022-03-01 17:51:47 +08:00
tanbowensg
91958f9364 Merge pull request #38 from webzard-io/feat/modal
update modal for new EditorMask
2022-03-01 17:51:47 +08:00
tanbowensg
75b3778f48 Merge pull request #36 from webzard-io/form
add tabs component
2022-03-01 17:51:47 +08:00
tanbowensg
f12d05de8e Merge pull request #35 from webzard-io/example
table example
2022-03-01 17:51:47 +08:00
tanbowensg
4581d2a7f7 Merge pull request #34 from webzard-io/yz-patch
refine layout component
2022-03-01 17:51:46 +08:00
tanbowensg
ee47da58fd Merge pull request #33 from webzard-io/example
refactor: use expression widget to show data
2022-03-01 17:51:46 +08:00
xzdry
f58cd197c9 Merge pull request #32 from webzard-io/feat/tree
add tree component
2022-03-01 17:51:46 +08:00
tanbowensg
38c4ee0c29 Merge pull request #31 from webzard-io/improve
Improve components
2022-03-01 17:51:46 +08:00
Bowen Tan
585a412c45 v0.0.6 2022-03-01 17:51:46 +08:00
tanbowensg
64a798ecf2 Merge pull request #28 from webzard-io/fix/arco-ref
fix some components ref bug
2022-03-01 17:51:46 +08:00
tanbowensg
78056ad930 Merge pull request #27 from webzard-io/improve
fix some bugs
2022-03-01 17:51:46 +08:00
tanbowensg
ab5d437d73 Merge pull request #26 from webzard-io/arco-ref
add ref for arco components
2022-03-01 17:51:46 +08:00
tanbowensg
3b15fc4e33 Merge pull request #25 from webzard-io/improve
expand components property spec
2022-03-01 17:51:45 +08:00
MrWindlike
19f09a7067 Merge pull request #24 from webzard-io/improve
feat(table): expand properties spec
2022-03-01 17:51:45 +08:00
xzdry
69ba766ab6 Merge pull request #22 from webzard-io/improve
Improve component and component props
2022-03-01 17:51:45 +08:00
MrWindlike
f78ce70b4a Merge pull request #19 from webzard-io/component-improve
refactor: improve some components
2022-03-01 17:51:45 +08:00
MrWindlike
d6f9bc26f1 Merge pull request #21 from webzard-io/bugfix
fix(table): add pagesize
2022-03-01 17:51:45 +08:00
xzdry
62a4723956 Merge pull request #20 from webzard-io/radio
feat(Radio): add Radio component
2022-03-01 17:51:45 +08:00
Bowen Tan
7e8bfff6c6 0.0.5 2022-03-01 17:51:45 +08:00
tanbowensg
8bdbb81470 Merge pull request #18 from webzard-io/bugfix
key of the table should support string type & fix treeselect schema
2022-03-01 17:51:45 +08:00
Bowen Tan
74190264ca 0.0.4 2022-03-01 17:51:45 +08:00
tanbowensg
9721130538 Merge pull request #17 from webzard-io/bugfix
fix(table): use sunmao runtime's module and event schmea
2022-03-01 17:51:45 +08:00
Bowen Tan
e8f371aaf9 0.0.3 2022-03-01 17:51:45 +08:00
tanbowensg
a10e6f7345 Merge pull request #16 from webzard-io/bugfix
Fixed a bug that reset all states when canceling one of the multiple selections
2022-03-01 17:51:45 +08:00
Bowen Tan
7c8731405b 0.0.2 2022-03-01 17:51:44 +08:00
tanbowensg
64750873e1 Merge pull request #15 from webzard-io/component-table
Component table
2022-03-01 17:51:44 +08:00
tanbowensg
a96d6d583d Merge pull request #13 from webzard-io/component-pagination
feat: implement pagination
2022-03-01 17:51:44 +08:00
tanbowensg
289ed6598a Merge pull request #14 from webzard-io/checkbox
feat(Checkbox): implement checkbox
2022-03-01 17:51:44 +08:00
Bowen Tan
c837077f33 add lib in package 2022-03-01 17:51:44 +08:00
Bowen Tan
ace3a8ed1c prepare publish 2022-03-01 17:51:44 +08:00
xzdry
7847a36587 Merge pull request #11 from webzard-io/feat/demo
add button demo
2022-03-01 17:51:44 +08:00
tanbowensg
31a8c74a7c Merge pull request #12 from webzard-io/component-steps
feat: implement steps
2022-03-01 17:51:44 +08:00
tanbowensg
b4fa03a442 Merge pull request #10 from webzard-io/component-modal
feat: implement modal
2022-03-01 17:51:44 +08:00
tanbowensg
78473df7fe Merge pull request #8 from webzard-io/dropdown
feat: implement dropdown
2022-03-01 17:51:44 +08:00
tanbowensg
79a9d5c30e Merge pull request #5 from webzard-io/improve
refactor: remove unnecessary component states and optimize components
2022-03-01 17:51:44 +08:00
Bowen Tan
0fd1f30e5d fix string union type 2022-03-01 17:51:44 +08:00
tanbowensg
f5d3ffdcc7 Merge pull request #6 from webzard-io/component-treelike
implement treeselect & timeline
2022-03-01 17:51:43 +08:00
tanbowensg
4d6b95ab48 Merge pull request #9 from webzard-io/feat/icon
add Icon Component
2022-03-01 17:51:43 +08:00
tanbowensg
3f1b4297b6 Merge pull request #7 from webzard-io/component-simple
implement alert & link
2022-03-01 17:51:43 +08:00
tanbowensg
02baff5b32 Merge pull request #4 from webzard-io/refactor/add-eslint
add eslint
2022-03-01 17:51:43 +08:00
tanbowensg
5ac40e0785 Merge pull request #3 from webzard-io/mentions
update editor version and implement part of component
2022-03-01 17:51:43 +08:00
yz-yu
2b40c905d8 Merge pull request #2 from webzard-io/date-picker
refactor: upgrade sunmao-ui version and adapt to the new spec type
2022-03-01 17:51:43 +08:00
Yanzhen Yu
351ad47255 component: avatar 2022-03-01 17:51:43 +08:00
Yanzhen Yu
eab659f2fa component: divider 2022-03-01 17:51:43 +08:00
Yanzhen Yu
c9b1d0de29 use sunmao editor as playground 2022-03-01 17:51:43 +08:00
Yanzhen Yu
11d4b64d0a upgrade sunmao-ui 2022-03-01 17:51:43 +08:00
Yanzhen Yu
ebebe8af66 impl Input component 2022-03-01 17:51:43 +08:00
Yanzhen Yu
b74bee8117 impl Dropdown and Space components 2022-03-01 17:51:42 +08:00
Yanzhen Yu
df2cba12be impl menu component 2022-03-01 17:51:42 +08:00
Yanzhen Yu
4b630cbf55 impl simple select 2022-03-01 17:51:42 +08:00
Yanzhen Yu
b024400c90 impl image component 2022-03-01 17:51:42 +08:00
Yanzhen Yu
ede3c1964e impl layout components 2022-03-01 17:51:42 +08:00
Yanzhen Yu
c819032bd4 rename typegen props 2022-03-01 17:51:42 +08:00
Yanzhen Yu
56ddc6527c add props schema typegen 2022-03-01 17:51:42 +08:00
Yanzhen Yu
8718df4598 init arco-lib 2022-03-01 17:51:42 +08:00
Yanzhen Yu
5cf68fe60c first commit 2022-03-01 17:51:42 +08:00
xzdry
82e45d12b2 refactor: change name to stack 2022-03-01 15:37:04 +08:00
Bowen Tan
405a46dcef Editor mask support components in dialog 2022-03-01 14:25:36 +08:00
Bowen Tan
22a777dac8 fix: cannot drop component after components which have no slots 2022-03-01 14:20:02 +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
Bowen Tan
8256c8ef8b fix the bug that expression will re-eval everytime after store updating 2022-02-28 16:18:53 +08:00
xzdry
065cdf438b feat: implement core space component 2022-02-28 10:07:06 +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
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
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
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
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
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