Commit Graph

536 Commits

Author SHA1 Message Date
tanbowensg
632fe26e9a
Merge pull request #474 from webzard-io/feat/slotprops-memo
Use shallowCompare to compare slotProps
2022-06-23 17:42:25 +08:00
Bowen Tan
54a757995d Merge branch 'develop' into test/runtime
* develop:
  chore: add the comments
  refactor(trait): use `implementRuntimeTrait` to implement the transformer trait
  fix(mask): fix the bug that mask location is wrong position when editor is scrolled
  feat(runtime, editor): support raw body in fetch trait
  fix(FormSection): fix  the property section not covering the code mirror window
  fix(Checkbox): synchronize the initial state of isCheckedAll & add the disabled property
  feat(arco): don't trigger onRowClicked method when clicking table's radios or checkboxs
  fix: css style string is parsed to char array accidently
  feat(runtime): remove react-grid-layout
  fix: the renaming, types and tests stuffs
  feat: a more comprehensive select component based on rc-select
  feat(editor): chagne the component id reference properties' values when changing the component id
  feat(operation): change the reference expressions when changing the component id

# Conflicts:
#	packages/runtime/src/components/_internal/ImplWrapper/ImplWrapperMain.tsx
2022-06-23 10:43:34 +08:00
tanbowensg
f97b20555f
Merge pull request #472 from webzard-io/fix/widget
refactor(trait): use `implementRuntimeTrait` to implement the transformer trait
2022-06-22 17:34:24 +08:00
tanbowensg
db7a6936f3
Merge pull request #448 from webzard-io/feat/windlike-patch
feat: change the reference properties when changing the component id
2022-06-22 17:19:58 +08:00
Bowen Tan
9cfb133adc perf(ImplWrapper): use shallowCompare to compare slotProps 2022-06-22 17:08:51 +08:00
MrWindlike
9bddf6ccb4 refactor(trait): use implementRuntimeTrait to implement the transformer trait 2022-06-22 16:23:14 +08:00
Yanzhen Yu
320f527edb feat(runtime, editor): support raw body in fetch trait 2022-06-22 14:18:01 +08:00
Bowen Tan
7a6a843f79 refactor(runtime): fix eslint
- @sunmao-ui/arco-lib@0.3.0-alpha.2
- @sunmao-ui/chakra-ui-lib@0.5.0-alpha.2
-
@sunmao-ui/editor-sdk@0.3.0-alpha.2
- @sunmao-ui/editor@0.7.0-alpha.2
-
@sunmao-ui/runtime@0.7.0-alpha.2
- @sunmao-ui/shared@0.2.0-alpha.2
2022-06-21 11:17:46 +08:00
Bowen Tan
38eb90e567 test(moduleRenderer): add module renderer tests 2022-06-21 10:46:29 +08:00
Bowen Tan
8f51facb64 test(list): add core list tests 2022-06-21 10:46:29 +08:00
Bowen Tan
92bcbfbfe8 test(runtime): add async merge state test 2022-06-21 10:46:29 +08:00
Bowen Tan
3381d0b412 test(runtime): add merge state test 2022-06-21 10:46:29 +08:00
Bowen Tan
da066b4519 test(runtime): add hidden trait test
* main:
feat: add the `requestFullscreen` method to the iframe component
feat: add
the
iframe
component
2022-06-21 10:46:29 +08:00
Bowen Tan
bf54a0c4e9 test(runtime): add component schema change test
* main:
feat: add the `requestFullscreen` method to the iframe component
feat: add the
iframe
component
2022-06-21 10:46:28 +08:00
Bowen Tan
e18d3120b8 test(runtime): add single component test
* main:
feat: add the `requestFullscreen` method to the iframe component
feat: add the iframe
component
2022-06-21 10:46:28 +08:00
Bowen Tan
f58411bb83 test(runtime): init runtime test 2022-06-21 10:46:28 +08:00
Bowen Tan
fe68def8da feat(runtime): remove react-grid-layout
BREAKING CHANGE:
remove core/v1/grid-layout component

BREAKING CHANGE:
remove core/v1/grid-layout component (+1 squashed commit)
Squashed commits:
[549fea0] feat(remove react-grid-layout): wip

BREAKING CHANGE:
remove core/v1/grid-layout component
2022-06-20 18:30:30 +08:00
Bowen Tan
fd60c796db chore(*): publish
- @sunmao-ui/arco-lib@0.3.0
 - @sunmao-ui/chakra-ui-lib@0.5.0
 - @sunmao-ui/core@0.7.0
 - @sunmao-ui/editor-sdk@0.3.0
 - @sunmao-ui/editor@0.7.0
 - @sunmao-ui/runtime@0.7.0
 - @sunmao-ui/shared@0.2.0
2022-06-20 10:49:51 +08:00
MrWindlike
ec0797bc12 fix: use the isHidden to hide a property instead of shouldRender 2022-06-13 16:33:52 +08:00
MrWindlike
b6b7083e15 feat(editor): chagne the component id reference properties' values when changing the component id
add the `isComponentId` into spec options to declare a property is whether refer to a component id

ISSUES CLOSED: #106
2022-06-13 14:56:47 +08:00
tanbowensg
3a3ea8c446
Merge pull request #428 from webzard-io/feat/style-trait-widget
add font style widget
2022-06-13 10:14:12 +08:00
MrWindlike
67d4e49f5b feat(editor): add the slot trait form
ISSUES CLOSED: #440
2022-06-10 09:58:35 +08:00
Bowen Tan
870fc9144a chore(examples): translate and change text in examples
- @sunmao-ui/arco-lib@0.3.0-alpha.1
- @sunmao-ui/chakra-ui-lib@0.5.0-alpha.1
-
@sunmao-ui/editor-sdk@0.3.0-alpha.1
- @sunmao-ui/editor@0.7.0-alpha.1
-
@sunmao-ui/runtime@0.7.0-alpha.1
- @sunmao-ui/shared@0.2.0-alpha.1
2022-06-09 18:26:12 +08:00
Bowen Tan
987453374e Merge branch 'main' into feat/rendercomponent
* main:
  feat: add the `requestFullscreen` method to the iframe component
  feat: add the iframe component

# Conflicts:
#	packages/runtime/src/services/Registry.tsx
2022-06-08 14:22:32 +08:00
MrWindlike
942fc6c75a feat: add the requestFullscreen method to the iframe component 2022-06-08 11:04:53 +08:00
MrWindlike
6e22f1f852 feat: add the iframe component
ISSUES CLOSED: #396
2022-06-07 14:17:46 +08:00
Bowen Tan
ab9d8fd96f test(list): update list examples 2022-06-06 14:57:20 +08:00
Bowen Tan
51c1ec448f feat(chakra): add component table column 2022-06-06 14:57:20 +08:00
Bowen Tan
0c1b602fcb feat(runtime): use slot pass component 2022-06-06 14:57:18 +08:00
Bowen Tan
de105e3230 add componentRenderer 2022-06-06 14:55:45 +08:00
Bowen Tan
e763766d75 rename ModuleRenderSpec 2022-06-06 14:55:45 +08:00
Bowen Tan
61731f998e Merge branch 'main' into feat/style-trait-widget
* main:
  feat(widget): add the color widget
  fix: fix the type errors
  fix(widget): fix the crash problem when opening the event tab
  refactor(slot): slotSchema -> SlotSpec
  chore(examples): change the util method's examples
  refactor(arco): fix type
  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/editor-sdk/src/components/Widgets/StyleWidgets/SizeWidget.tsx
#	packages/editor-sdk/src/components/Widgets/index.ts
#	packages/editor/src/components/ComponentForm/StyleTraitForm/StyleTraitForm.tsx
2022-06-06 10:33:52 +08:00
Bowen Tan
db8ec36364 Merge branch 'main' into yz-patch
* main:
  chore(examples): change the util method's examples
  feat(table): support for custom filtering, sorting and paging
  change size widget props type
  improve component form style
  support size widget
  add cssProperties in style trait
  style widget
2022-06-01 16:18:32 +08:00
Bowen Tan
59e1e213c7 refactor(slot): slotSchema -> SlotSpec 2022-06-01 16:16:28 +08:00
yz-yu
6372c81a06
Merge pull request #420 from webzard-io/feat/style-widget
Refactor Component Form
2022-06-01 11:46:31 +08:00
Bowen Tan
744e75cd03 Merge branch 'main' into yz-patch
* main:
  fix(editorMask): mask does'nt work because onHTMLElementsUpdated  doesn't run in init
  feat(PreviewModal): fix the length of the component in the PreviewModal exceeds the modal
  fix(ArrayTable): fix the problem of length exceeding the table
  feat(Select): add filter by text
  chore: fix typo
  feat(utilMethod): add spec to utilMethod

# Conflicts:
#	packages/core/src/index.ts
#	packages/editor-sdk/src/components/Widgets/EventWidget.tsx
2022-05-31 17:05:58 +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
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
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
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
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
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
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
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
5fc7b84803 fix: fallback to undefined when evaluating the expressions fail 2022-05-18 11:15:52 +08:00