Commit Graph

1139 Commits

Author SHA1 Message Date
xzdry
f7edb19709 fix(ArrayTable): fix the problem of length exceeding the table 2022-05-31 11:40:40 +08:00
xzdry
363e0d51d5 feat(Select): add filter by text 2022-05-31 11:30:12 +08:00
tanbowensg
5695246404
Merge pull request #422 from webzard-io/feat/windlike-patch
feat(utilMethod): add spec to utilMethod
2022-05-31 11:28:05 +08:00
Bowen Tan
a092fceda4 Merge branch 'yz-patch'
* yz-patch:
  update the collapse component impl
  refine slotElements interface to avoid re-mount
  memomize slotElements to avoid extra re-mount
  adapt new slots spec in editor
  migrate all in-tree components to the new slot spec
  impl #388, support slot props and apply to tabs component

# Conflicts:
#	packages/arco-lib/src/components/Descriptions.tsx
#	packages/arco-lib/src/components/Progress.tsx
#	packages/arco-lib/src/components/Tabs.tsx
#	packages/runtime/src/components/_internal/ImplWrapper/ImplWrapperMain.tsx
#	packages/runtime/src/services/StateManager.ts
2022-05-30 18:59:00 +08:00
MrWindlike
db6e26b067 chore: fix typo 2022-05-30 18:44:07 +08:00
yz-yu
23bcfd0ed5
Merge pull request #423 from webzard-io/refactor/mask-elementfrompoint
Use elementFromPoint api to refactor
2022-05-30 17:33:57 +08:00
Bowen Tan
c4dbcf307a Merge branch 'main' into fix/eval-ignore-error
* main:
  refactor: separate out the logic for filtering component list by version
  feat: increasing the customStyle's priority
  feat: components add filter by version
  chore: fix the type error
  feat: update dependencies when the module mock properties change
  refactor: add useStateValue hook to handle default value
  feat: add datepicker component
  feat(tabs): tab panel support hide
  chore: change `properties` to `exampleProperties`
  feat: add the module mock properties

# Conflicts:
#	packages/runtime/src/services/StateManager.ts
2022-05-30 17:24:18 +08:00
tanbowensg
48a55b7b60
Merge pull request #418 from webzard-io/improve/xzdry
feat: components add filter by version
2022-05-30 16:36:55 +08:00
Bowen Tan
44044d2d8a refactor(editorMask): remove coordinates system 2022-05-30 16:24:11 +08:00
MrWindlike
cc919a94a0 feat(utilMethod): add spec to utilMethod
ISSUES CLOSED: #354

BREAKING CHANGE:
use `type` to replace `name` when calling the method

ISSUES CLOSED: #248
2022-05-30 13:01:50 +08:00
xzdry
c55a7831e8 refactor: separate out the logic for filtering component list by version 2022-05-30 11:57:20 +08:00
Bowen Tan
14e07008a7 use elementFromPoint to locate mouse 2022-05-27 17:32:15 +08:00
Bowen Tan
beb035431e change size widget props type 2022-05-27 16:38:09 +08:00
Bowen Tan
23be46b9f3 improve component form style 2022-05-27 10:46:26 +08:00
Bowen Tan
c4490d789c support size widget 2022-05-26 15:12:22 +08:00
Bowen Tan
8c72160111 add cssProperties in style trait 2022-05-26 14:58:41 +08:00
Bowen Tan
2c913a1d61 style widget 2022-05-26 14:57:03 +08:00
tanbowensg
6a26e1a4e3
Merge pull request #419 from webzard-io/feat/windlike-patch
feat: increasing the customStyle's priority
2022-05-26 14:27:38 +08:00
MrWindlike
11eb61bea7 feat: increasing the customStyle's priority
ISSUES CLOSED: #354
2022-05-26 13:56:43 +08:00
tanbowensg
f75931445f
Merge pull request #414 from webzard-io/feat/arco
Feat/arco
2022-05-26 10:22:50 +08:00
tanbowensg
6cec7d7a88
Merge pull request #415 from webzard-io/feat/module
feat(editor): add module mock properties in the editor
2022-05-26 10:22:33 +08:00
xzdry
1b06d86c4a feat: components add filter by version 2022-05-26 10:04:24 +08:00
Bowen Tan
4d69928cd7 fix: add ignoreEvalError flag in eval function to make nested expression can be evaled partially. 2022-05-25 14:57:46 +08:00
MrWindlike
0537bb60dd chore: fix the type error 2022-05-25 13:49:21 +08:00
MrWindlike
37d498f49f feat: update dependencies when the module mock properties change 2022-05-25 11:33:16 +08:00
yz-yu
3a32c221e1
Merge pull request #412 from webzard-io/mask/scroll-intersection
refactor editor mask
2022-05-25 09:28:24 +08:00
xzdry
51f398adee refactor: add useStateValue hook to handle default value 2022-05-24 19:47:15 +08:00
xzdry
8ae10c38df feat: add datepicker component 2022-05-24 12:18:21 +08:00
xzdry
961f8c342e feat(tabs): tab panel support hide 2022-05-24 12:18:21 +08:00
MrWindlike
8d22b4d8b5 chore: change properties to exampleProperties 2022-05-24 10:22:42 +08:00
MrWindlike
8e455ce184 feat: add the module mock properties 2022-05-23 21:32:02 +08:00
Bowen Tan
4761ee242e Publish
- @sunmao-ui/arco-lib@0.2.0
 - @sunmao-ui/chakra-ui-lib@0.4.0
 - @sunmao-ui/core@0.6.0
 - @sunmao-ui/editor-sdk@0.2.0
 - @sunmao-ui/editor@0.6.0
 - @sunmao-ui/runtime@0.6.0
 - @sunmao-ui/shared@0.1.0
2022-05-23 10:11:58 +08:00
Bowen Tan
26230e6575 refactor mask with mobx store 2022-05-20 18:31:13 +08:00
MrWindlike
4590aa9484 fix: make the auto complete be controllable 2022-05-19 17:01:31 +08:00
MrWindlike
791ed09c2c style: add padding to component placeholder box 2022-05-19 16:53:59 +08:00
MrWindlike
8a68726348 feat: add the component searching 2022-05-19 15:41:40 +08:00
Bowen Tan
fb669a52d6 use intersection observer to filter unvisible elements in mask 2022-05-19 14:08:42 +08:00
yz-yu
e52b6648e9
Merge pull request #409 from webzard-io/publish
Publish
2022-05-19 10:16:41 +08:00
Bowen Tan
2c71f9b2bd listen editor capture scroll event to update mask coordinates system 2022-05-18 17:52:05 +08:00
tanbowensg
7fe0cb8343
Merge pull request #401 from webzard-io/feat/windlike-patch
feat: improve the editor performance
2022-05-18 16:45:00 +08:00
Bowen Tan
c63a94509a Publish
- @sunmao-ui/arco-lib@0.2.0-alpha.3
 - @sunmao-ui/chakra-ui-lib@0.4.0-alpha.3
 - @sunmao-ui/core@0.6.0-alpha.3
 - @sunmao-ui/editor-sdk@0.2.0-alpha.3
 - @sunmao-ui/editor@0.6.0-alpha.3
 - @sunmao-ui/runtime@0.6.0-alpha.3
 - @sunmao-ui/shared@0.1.0-alpha.3
2022-05-18 16:11:17 +08:00
tanbowensg
533ab4723e
Merge pull request #408 from webzard-io/fix/windlike-patch
Fix/windlike patch
2022-05-18 12:07:31 +08:00
MrWindlike
43df599fda chore: add the comment 2022-05-18 11:46:05 +08:00
MrWindlike
5fc7b84803 fix: fallback to undefined when evaluating the expressions fail 2022-05-18 11:15:52 +08:00
MrWindlike
8f13e161d4 fix: reregister the traits when the editor refresh 2022-05-18 11:14:24 +08:00
Bowen Tan
a6851b804d Publish
- @sunmao-ui/arco-lib@0.2.0-alpha.2
 - @sunmao-ui/chakra-ui-lib@0.4.0-alpha.2
 - @sunmao-ui/core@0.6.0-alpha.2
 - @sunmao-ui/editor-sdk@0.2.0-alpha.2
 - @sunmao-ui/editor@0.6.0-alpha.2
 - @sunmao-ui/runtime@0.6.0-alpha.2
 - @sunmao-ui/shared@0.1.0-alpha.2
2022-05-17 13:48:33 +08:00
MrWindlike
98e38c387e chore: remove the memo compare function 2022-05-17 10:47:20 +08:00
tanbowensg
f850aa64b8
Merge pull request #402 from webzard-io/feat/arco
Feat/arco
2022-05-17 10:45:00 +08:00
Yanzhen Yu
da033ab695 inline variable has no identifier and should not cause runtime error 2022-05-16 10:28:42 +08:00
xzdry
ebf9f073a1 feat(input): add updateWhenDefaultValueChanges property 2022-05-16 10:12:04 +08:00
xzdry
96b3c98cad refactor(formcontrol): restore the grid layout properties of fromcontrol 2022-05-16 09:58:29 +08:00
xzdry
40e5af4f06 feat(link): add default status 2022-05-16 09:52:38 +08:00
xzdry
6c8b1b678d feat: add arco slider component 2022-05-16 09:51:14 +08:00
Yanzhen Yu
f03641b8e2 update the collapse component impl 2022-05-15 16:19:39 +08:00
Yanzhen Yu
dd9d032774 refine slotElements interface to avoid re-mount 2022-05-15 11:09:52 +08:00
Bowen Tan
7626c3c28a use concat method when merging customStyles 2022-05-13 17:37:40 +08:00
MrWindlike
7c463749e7 feat: avoid the unnecessary render when the selected component changes 2022-05-13 17:03:13 +08:00
MrWindlike
c6c5fae8b2 fix: don't scroll the tree item to top when clicking it 2022-05-13 17:03:07 +08:00
MrWindlike
67fb8a0065 feat: improve the editor's performance
avoid the unnecessary render and add the lazy load to some widgets
2022-05-13 17:02:50 +08:00
Yanzhen Yu
cc41138c8e memomize slotElements to avoid extra re-mount 2022-05-13 01:31:19 +08:00
Bowen Tan
d251c480c8 Publish
- @sunmao-ui/arco-lib@0.2.0-alpha.1
 - @sunmao-ui/chakra-ui-lib@0.4.0-alpha.1
 - @sunmao-ui/core@0.6.0-alpha.1
 - @sunmao-ui/editor-sdk@0.2.0-alpha.1
 - @sunmao-ui/editor@0.6.0-alpha.1
 - @sunmao-ui/runtime@0.6.0-alpha.1
 - @sunmao-ui/shared@0.1.0-alpha.1
2022-05-12 12:23:10 +08:00
Bowen Tan
6900206dff add keywork name to ajv 2022-05-12 12:17:49 +08:00
Yanzhen Yu
3781cecf1f adapt new slots spec in editor 2022-05-12 11:52:25 +08:00
Yanzhen Yu
74bfc5ebf4 migrate all in-tree components to the new slot spec 2022-05-12 11:52:22 +08:00
Yanzhen Yu
9b4cf9be0c impl #388, support slot props and apply to tabs component 2022-05-12 11:51:26 +08:00
tanbowensg
24e7b87c89
Merge pull request #398 from webzard-io/feat/arco
fix some bugs
2022-05-12 10:24:50 +08:00
xzdry
e7a8b5954d fix: fixed the bug where repeatedly clicking on the currently edited application would cause the stateManager's store to be cleared 2022-05-12 10:02:00 +08:00
xzdry
c03707ec41 improve: keep the scroll bar of each panel of explore menu tabs independent 2022-05-12 09:46:04 +08:00
xzdry
2cfd2516ac fix(tabs): add setActiveTab methods 2022-05-12 09:40:51 +08:00
Bowen Tan
56712f18ad Publish
- @sunmao-ui/arco-lib@0.2.0-alpha.0
 - @sunmao-ui/chakra-ui-lib@0.4.0-alpha.0
 - @sunmao-ui/core@0.6.0-alpha.0
 - @sunmao-ui/editor-sdk@0.2.0-alpha.0
 - @sunmao-ui/editor@0.6.0-alpha.0
 - @sunmao-ui/runtime@0.6.0-alpha.0
 - @sunmao-ui/shared@0.1.0-alpha.0
2022-05-10 17:50:20 +08:00
Bowen Tan
67f7f683c6 Merge branch 'main' into publish
* main: (24 commits)
  set the default value of debugStore and debugEvent to be false
  fix test
  feat: scroll the tree item into view when select the component
  fix: switch the scale buttons
  fix: improve the expression result display
  refactor init functions parameters
  feat: add the `clear` method to the fetch trait
  feat(tree): add onSelect events
  fix: correct splicing url
  fix(module): change the widget of property to display correct
  fix: select component to add non-empty judgement
  fix: change the import path
  fix: fix the changing api form's tab problem
  fix: fix the datasource update problems
  chore: make the data type datasource informations as constants
  chore: use the enum to replace the constants
  chore: change `GLOBAL_UTILS_ID` to `GLOBAL_UTIL_METHOD_ID`
  feat: add transformer trait
  chore: use the constant as the widget name
  chore: export `RegistryInterface` instead of `Registry`
  ...

# Conflicts:
#	packages/arco-lib/package.json
#	packages/editor-sdk/package.json
#	packages/editor/package.json
#	packages/runtime/package.json
2022-05-10 17:33:42 +08:00
tanbowensg
4dd67e7d31
Merge pull request #395 from webzard-io/fix/windlike-patch
Fix/windlike patch
2022-05-10 17:08:21 +08:00
yz-yu
2048d3047e
Merge pull request #394 from webzard-io/refactor/init-function
refactor init functions' parameters
2022-05-10 14:08:25 +08:00
tanbowensg
e8988aa8a1
Merge pull request #392 from webzard-io/feat/arco
fix some bugs
2022-05-10 14:03:16 +08:00
Bowen Tan
f088608fe9 set the default value of debugStore and debugEvent to be false 2022-05-10 14:02:08 +08:00
Bowen Tan
56b22d81e8 fix test 2022-05-10 13:56:43 +08:00
MrWindlike
40813e06bc feat: scroll the tree item into view when select the component 2022-05-10 11:32:20 +08:00
MrWindlike
ece9a427b6 fix: switch the scale buttons 2022-05-10 10:33:53 +08:00
MrWindlike
357b233897 fix: improve the expression result display 2022-05-10 10:19:15 +08:00
Bowen Tan
a6c76f0d24 refactor init functions parameters 2022-05-09 18:51:45 +08:00
MrWindlike
f89cf583b2 feat: add the clear method to the fetch trait 2022-05-09 15:35:50 +08:00
xzdry
51dfc2bbc6 Merge branch 'main' of github.com:webzard-io/sunmao-ui into feat/arco 2022-05-09 15:09:27 +08:00
MrWindlike
302ab28abc Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/transformer 2022-05-09 10:30:25 +08:00
xzdry
03f918032b feat(tree): add onSelect events 2022-05-07 18:20:32 +08:00
xzdry
9a45ec04dc fix: correct splicing url 2022-05-07 16:21:45 +08:00
xzdry
d7e36e35f9 fix(module): change the widget of property to display correct 2022-05-07 16:09:00 +08:00
xzdry
59f2554910 fix: select component to add non-empty judgement 2022-05-07 16:05:09 +08:00
xzdry
cecf2fddb8 fix: change the import path 2022-05-07 11:04:37 +08:00
MrWindlike
0c3016c29a fix: fix the changing api form's tab problem 2022-05-06 15:34:51 +08:00
MrWindlike
ea5c930e83 fix: fix the datasource update problems 2022-05-06 15:18:33 +08:00
MrWindlike
0da6af815a chore: make the data type datasource informations as constants 2022-05-06 15:18:10 +08:00
MrWindlike
47d8d11901 chore: use the enum to replace the constants 2022-05-05 22:44:56 +08:00
MrWindlike
71d9c81cb3 chore: change GLOBAL_UTILS_ID to GLOBAL_UTIL_METHOD_ID 2022-05-05 17:35:10 +08:00
MrWindlike
e55820be71 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/shared 2022-05-05 17:32:23 +08:00
MrWindlike
12faf330f3 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/transformer 2022-05-05 17:28:20 +08:00
MrWindlike
ff056772dd feat: add transformer trait 2022-05-05 17:15:35 +08:00
Bowen Tan
3b14a36148 Publish
- @sunmao-ui/arco-lib@0.1.9
 - @sunmao-ui/chakra-ui-lib@0.3.9
 - @sunmao-ui/core@0.5.6
 - @sunmao-ui/editor-sdk@0.1.10
 - @sunmao-ui/editor@0.5.10
 - @sunmao-ui/runtime@0.5.8
2022-04-29 17:16:17 +08:00
yz-yu
df14fe5e1f
Merge pull request #387 from webzard-io/improve-ui
Improve UI Style
2022-04-29 14:10:59 +08:00
Bowen Tan
5dd5e6885d auto select first component when app first renders 2022-04-29 10:59:38 +08:00
Bowen Tan
b291089c62 improve left tree style 2022-04-28 19:06:13 +08:00
Bowen Tan
ef5b5873c0 add code mode modal 2022-04-28 17:21:24 +08:00
xzdry
632e20ff97 improve core stack component 2022-04-27 14:00:46 +08:00
xzdry
36ef824714 change some property title 2022-04-27 11:18:57 +08:00
xzdry
1416699bc8 Merge branch 'main' of github.com:webzard-io/sunmao-ui into feat/arco 2022-04-27 09:18:49 +08:00
xzdry
67d843e319 feat: add grid components and remove the layout property of formcontrol 2022-04-26 21:07:02 +08:00
xzdry
4eb334a5d1 fix: improve timeline property and make the state of treeSelect correct 2022-04-26 17:04:03 +08:00
xzdry
5be9a68f6d feat(table): add onRowClick event 2022-04-26 16:46:45 +08:00
xzdry
1a4b6ee713 remove form and using conditional rendering improve table property 2022-04-26 16:36:59 +08:00
MrWindlike
4d54d8a4c2 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/shared 2022-04-26 15:59:18 +08:00
tanbowensg
f70feb15ab
Merge pull request #384 from webzard-io/refactor/localstorage
refactor localstorage trait
2022-04-26 15:40:35 +08:00
MrWindlike
f304529899 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/shared 2022-04-26 14:09:17 +08:00
xzdry
b3a2d62f8a fix: make the value of mergeState up-to-date & fix ref reference error 2022-04-26 11:36:31 +08:00
Bowen Tan
aad0600d92 fix tests && hasUnmount -> beforeRender 2022-04-26 11:35:53 +08:00
MrWindlike
f000c653fb chore: use the constant as the widget name 2022-04-26 10:44:23 +08:00
xzdry
c6ae78b1e9 refactor localstorage trait 2022-04-26 09:48:55 +08:00
Bowen Tan
56e14a0524 improve code style 2022-04-25 18:08:16 +08:00
Bowen Tan
68fb739ed3 add unmount trait annotation 2022-04-25 17:32:51 +08:00
Bowen Tan
79cab1d333 complete hidden 2022-04-25 17:32:51 +08:00
Bowen Tan
0da51400bc add HiddenImplWrapper 2022-04-25 17:32:51 +08:00
MrWindlike
d0da83c546 chore: export RegistryInterface instead of Registry 2022-04-25 17:18:42 +08:00
MrWindlike
e881722aa7 chore: improve the fetch trait 2022-04-25 17:01:03 +08:00
MrWindlike
ee73f0fe25 fix: change the wrong traits' names 2022-04-25 17:00:35 +08:00
MrWindlike
d8dc5d4a6e chore: use the constants as the component names 2022-04-25 16:38:08 +08:00
MrWindlike
bc2b9ae154 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/shared 2022-04-25 16:36:08 +08:00
MrWindlike
3903fdc6f7 feat: add @sunmao-ui/shared 2022-04-25 16:15:46 +08:00
xzdry
093abf0108 refactor: improve select and radio 2022-04-25 14:38:16 +08:00
xzdry
fc15befa56 feat: improve progress and add animation property 2022-04-25 13:20:31 +08:00
xzdry
79168b6eda refactor: improve popover and tooltip 2022-04-25 13:19:36 +08:00
xzdry
d37986a19d feat: optimise modal and pagination 2022-04-25 13:17:55 +08:00
xzdry
a49e7d0d53 feat: add events to mentions & add defaultOpen property to modal 2022-04-24 18:42:08 +08:00
xzdry
b127c703e9 feat: add events to input components 2022-04-24 17:44:38 +08:00
xzdry
a03489e2c8 feat: add image group & optimise dropdown 2022-04-24 16:46:39 +08:00
Bowen Tan
134180ac95 fix: component does not change after its traits being modified in editor 2022-04-24 16:24:05 +08:00
Bowen Tan
05e0ad34aa add clear functions to componentDidUpdate and componentDidMount 2022-04-24 16:04:10 +08:00
xzdry
0efb3824ea Merge branch 'main' of github.com:webzard-io/sunmao-ui into feat/arco 2022-04-24 13:37:20 +08:00
xzdry
c83a1bf4ac feat: add descriptions component & add dropdown demo 2022-04-24 13:17:01 +08:00
Bowen Tan
63af70dccb improve code style 2022-04-22 18:30:00 +08:00
Bowen Tan
f74040cc50 add useUnmount and useUpdate 2022-04-22 18:00:55 +08:00
Bowen Tan
8964ffd45e improve merge trait result method 2022-04-22 17:14:52 +08:00
Bowen Tan
0edbfdb6e7 Merge branch 'main' into feat/new-trait
* main:
  Publish
  fix: fix changing wrong tab when drag the component
  feat: add refresh button

# Conflicts:
#	packages/runtime/src/components/_internal/ImplWrapper.tsx
#	packages/runtime/src/components/core/Dummy.tsx
#	packages/runtime/src/traits/core/State.tsx
#	packages/runtime/src/types/trait.ts
2022-04-22 16:33:36 +08:00
Bowen Tan
2a9fc72c59 Publish
- @sunmao-ui/arco-lib@0.1.8
 - @sunmao-ui/chakra-ui-lib@0.3.8
 - @sunmao-ui/core@0.5.5
 - @sunmao-ui/editor-sdk@0.1.9
 - @sunmao-ui/editor@0.5.9
 - @sunmao-ui/runtime@0.5.7
2022-04-21 17:53:12 +08:00
MrWindlike
a66f95cfc1 fix: fix changing wrong tab when drag the component 2022-04-21 10:25:10 +08:00
MrWindlike
b64777f1ca Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/windlike-patch 2022-04-21 10:23:27 +08:00
Bowen Tan
487d810156 refactor ImplWrapper 2022-04-20 18:56:29 +08:00
Bowen Tan
882581a8b6 wip: disable hidden trait wrapper 2022-04-20 16:50:09 +08:00
Bowen Tan
9542720895 move hooks into ImplWrapper 2022-04-20 11:18:51 +08:00
Bowen Tan
89777796c1 add lifecycle hooks 2022-04-18 17:25:29 +08:00
xzdry
1ae52e24ca feat: add divider demo & add new properties to collapse 2022-04-18 10:53:10 +08:00
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