@luck-design-biz/luckda 0.0.25-9 → 0.0.25-af-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +40 -40
- package/es/components/Builder/index.js +4 -6
- package/es/components/LDActions/index.js +15 -16
- package/es/components/LDActions/index.less +48 -68
- package/es/components/LdAutoForm/index.js +12 -35
- package/es/components/LdCom/index.js +1 -2
- package/es/components/LdFormList/index.js +32 -53
- package/es/components/LdGrid/index.js +16 -30
- package/es/components/LdGridForm/index.js +12 -34
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdRuntimeCom/index.js +11 -24
- package/es/components/LdTree/index.js +40 -112
- package/es/components/LdTree/index.less +40 -40
- package/es/helper/FromItems.js +106 -166
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +28 -48
- package/es/helper/index.less +7 -7
- package/es/helper/ldBuilder.js +12 -28
- package/es/helper/ldComBuild.js +14 -29
- package/es/locales/zh-CN.js +20 -105
- package/es/lowcode/constants/api-url.js +324 -633
- package/es/lowcode/constants/event-topics.js +0 -6
- package/es/lowcode/constants/index.js +4 -30
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +2 -5
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +1 -1
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +2 -5
- package/es/lowcode/engine/meta/box.props.default.json +2 -5
- package/es/lowcode/engine/meta/box.props.json +4 -4
- package/es/lowcode/engine/meta/button.props.default.json +1 -4
- package/es/lowcode/engine/meta/button.props.json +9 -9
- package/es/lowcode/engine/meta/cardlist.props.default.json +1 -4
- package/es/lowcode/engine/meta/cardlist.props.json +4 -14
- package/es/lowcode/engine/meta/components-list.json +7 -115
- package/es/lowcode/engine/meta/dialog.props.default.json +6 -15
- package/es/lowcode/engine/meta/dialog.props.json +43 -80
- package/es/lowcode/engine/meta/drawer.props.default.json +1 -4
- package/es/lowcode/engine/meta/drawer.props.json +21 -9
- package/es/lowcode/engine/meta/fieldcolor.props.default.json +5 -0
- package/es/lowcode/engine/meta/fieldcolor.props.json +99 -3
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +6 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +104 -1
- package/es/lowcode/engine/meta/fielddate.props.default.json +7 -0
- package/es/lowcode/engine/meta/fielddate.props.json +101 -3
- package/es/lowcode/engine/meta/fielddict.props.default.json +5 -0
- package/es/lowcode/engine/meta/fielddict.props.json +97 -1
- package/es/lowcode/engine/meta/fieldeditor.props.default.json +5 -0
- package/es/lowcode/engine/meta/fieldeditor.props.json +97 -1
- package/es/lowcode/engine/meta/fieldgroup.props.default.json +5 -0
- package/es/lowcode/engine/meta/fieldgroup.props.json +97 -1
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +6 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +101 -4
- package/es/lowcode/engine/meta/fieldradio.props.default.json +5 -0
- package/es/lowcode/engine/meta/fieldradio.props.json +101 -4
- package/es/lowcode/engine/meta/fieldregion.props.default.json +5 -0
- package/es/lowcode/engine/meta/fieldregion.props.json +101 -4
- package/es/lowcode/engine/meta/fieldselect.props.default.json +5 -0
- package/es/lowcode/engine/meta/fieldselect.props.json +99 -3
- package/es/lowcode/engine/meta/fieldstring.props.default.json +5 -4
- package/es/lowcode/engine/meta/fieldstring.props.json +105 -13
- package/es/lowcode/engine/meta/fieldswitch.props.default.json +5 -0
- package/es/lowcode/engine/meta/fieldswitch.props.json +98 -2
- package/es/lowcode/engine/meta/fieldtextarea.props.default.json +5 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.json +101 -5
- package/es/lowcode/engine/meta/fieldupload.props.default.json +5 -0
- package/es/lowcode/engine/meta/fieldupload.props.json +98 -2
- package/es/lowcode/engine/meta/fielduser.props.default.json +6 -1
- package/es/lowcode/engine/meta/fielduser.props.json +98 -2
- package/es/lowcode/engine/meta/fieldyear.props.default.json +5 -0
- package/es/lowcode/engine/meta/fieldyear.props.json +116 -3
- package/es/lowcode/engine/meta/form.props.default.json +3 -52
- package/es/lowcode/engine/meta/form.props.json +63 -602
- package/es/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/es/lowcode/engine/meta/grouptree.props.json +89 -0
- package/es/lowcode/engine/meta/image.props.default.json +1 -4
- package/es/lowcode/engine/meta/image.props.json +2 -2
- package/es/lowcode/engine/meta/imex.props.default.json +2 -12
- package/es/lowcode/engine/meta/imex.props.json +22 -54
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +13 -83
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -2
- package/es/lowcode/engine/meta/jsx.props.json +5 -10
- package/es/lowcode/engine/meta/layout.props.default.json +1 -4
- package/es/lowcode/engine/meta/layout.props.json +3 -2
- package/es/lowcode/engine/meta/link.props.default.json +1 -4
- package/es/lowcode/engine/meta/link.props.json +2 -2
- package/es/lowcode/engine/meta/page.props.json +18 -6
- package/es/lowcode/engine/meta/pagelayout.props.default.json +3 -1
- package/es/lowcode/engine/meta/pagelayout.props.json +13 -1
- package/es/lowcode/engine/meta/proxy.props.default.json +15 -0
- package/es/lowcode/engine/meta/proxy.props.json +66 -0
- package/es/lowcode/engine/meta/section.props.default.json +6 -7
- package/es/lowcode/engine/meta/section.props.json +49 -52
- package/es/lowcode/engine/meta/split.props.default.json +4 -9
- package/es/lowcode/engine/meta/split.props.json +32 -17
- package/es/lowcode/engine/meta/table.props.default.json +1 -5
- package/es/lowcode/engine/meta/table.props.json +34 -67
- package/es/lowcode/engine/meta/tabs.props.default.json +8 -16
- package/es/lowcode/engine/meta/tabs.props.json +80 -57
- package/es/lowcode/engine/meta/text.props.default.json +1 -4
- package/es/lowcode/engine/meta/text.props.json +2 -2
- package/es/lowcode/engine/meta/tree.props.default.json +6 -16
- package/es/lowcode/engine/meta/tree.props.json +58 -221
- package/es/lowcode/engine/provider/ContextProvider/index.js +115 -71
- package/es/lowcode/engine/tools/dataProcess.js +71 -137
- package/es/lowcode/engine/tools/helper.js +22 -94
- package/es/lowcode/engine/tools/usePromiseState.js +9 -8
- package/es/lowcode/index.js +0 -1
- package/es/lowcode/painter/Components.js +23 -49
- package/es/lowcode/painter/Design.js +6 -38
- package/es/lowcode/painter/DesignOperator.js +92 -135
- package/es/lowcode/painter/DesignToolbar.js +14 -285
- package/es/lowcode/painter/I18n.js +2 -2
- package/es/lowcode/painter/Outline.js +29 -36
- package/es/lowcode/painter/Panel.js +41 -120
- package/es/lowcode/painter/components/ActionBindModal.js +62 -186
- package/es/lowcode/painter/components/AdvancePanel.js +26 -114
- package/es/lowcode/painter/components/AttrsPanel.js +41 -63
- package/es/lowcode/painter/components/Collapse.js +29 -35
- package/es/lowcode/painter/components/ColorInput.js +27 -29
- package/es/lowcode/painter/components/FieldSelector.js +13 -26
- package/es/lowcode/painter/components/ListEditor.js +33 -46
- package/es/lowcode/painter/components/NumberInput.js +28 -28
- package/es/lowcode/painter/components/PanelItem.js +25 -25
- package/es/lowcode/painter/components/PopConfirm.js +8 -8
- package/es/lowcode/painter/components/PopForm.js +27 -27
- package/es/lowcode/painter/components/RuleInput.js +30 -30
- package/es/lowcode/painter/components/SortBox.js +26 -33
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +34 -35
- package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/es/lowcode/painter/components/code-editor/JSEditor.js +29 -25
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/es/lowcode/painter/index.js +28 -3
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +69 -16
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +6 -39
- package/es/lowcode/painter/panel-section/ButtonType.js +2 -4
- package/es/lowcode/painter/panel-section/DataSetSelector.js +43 -138
- package/es/lowcode/painter/panel-section/Icon.js +35 -35
- package/es/lowcode/painter/panel-section/IconSelector.js +18 -21
- package/es/lowcode/painter/panel-section/ImpExp.js +14 -99
- package/es/lowcode/painter/panel-section/JSEditor.js +2 -3
- package/es/lowcode/painter/panel-section/LayoutRatio.js +28 -27
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +24 -4
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/index.js +16 -22
- package/es/lowcode/painter/panel-section/TabItems.js +30 -46
- package/es/lowcode/painter/panel-section/TableTopFilter.js +13 -23
- package/es/lowcode/painter/panel-section/TableZebra.js +6 -66
- package/es/lowcode/painter/style/action-bind-modal.less +99 -102
- package/es/lowcode/painter/style/actions-editor.less +15 -15
- package/es/lowcode/painter/style/border-editor.less +36 -36
- package/es/lowcode/painter/style/border-radius-selector.less +42 -42
- package/es/lowcode/painter/style/border-selector.less +39 -39
- package/es/lowcode/painter/style/button-type.less +5 -5
- package/es/lowcode/painter/style/collapse.less +22 -28
- package/es/lowcode/painter/style/color-input.less +19 -19
- package/es/lowcode/painter/style/components.less +90 -91
- package/es/lowcode/painter/style/design.less +149 -152
- package/es/lowcode/painter/style/display.less +17 -17
- package/es/lowcode/painter/style/font-editor.less +9 -9
- package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/es/lowcode/painter/style/icon-selector.less +22 -22
- package/es/lowcode/painter/style/icon.less +10 -10
- package/es/lowcode/painter/style/impexp.less +7 -7
- package/es/lowcode/painter/style/index.less +6 -6
- package/es/lowcode/painter/style/layout-ratio.less +51 -51
- package/es/lowcode/painter/style/list-editor.less +59 -95
- package/es/lowcode/painter/style/number-input.less +17 -17
- package/es/lowcode/painter/style/outline.less +28 -28
- package/es/lowcode/painter/style/panel-attrs.less +43 -43
- package/es/lowcode/painter/style/panel-item.less +54 -54
- package/es/lowcode/painter/style/panel.less +98 -98
- package/es/lowcode/painter/style/pop-confirm.less +17 -17
- package/es/lowcode/painter/style/pop-form.less +19 -19
- package/es/lowcode/painter/style/radio.less +24 -24
- package/es/lowcode/painter/style/ribbon.less +5 -5
- package/es/lowcode/painter/style/rule-input.less +12 -12
- package/es/lowcode/painter/style/style-panel.less +37 -37
- package/es/lowcode/painter/style/tabitems.less +90 -90
- package/es/lowcode/view/Canvas.js +139 -33
- package/es/lowcode/view/Loading.js +2 -6
- package/es/lowcode/view/Page.js +15 -16
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +2 -3
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Box/index.js +17 -10
- package/es/lowcode/view/lc-components/Box/index.less +14 -14
- package/es/lowcode/view/lc-components/Box/meta.json +40 -40
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +10 -8
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +6 -3
- package/es/lowcode/view/lc-components/Button/index.js +53 -72
- package/es/lowcode/view/lc-components/Button/meta.json +127 -127
- package/es/lowcode/view/lc-components/Button/style.less +2 -2
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/CardList/index.js +0 -1
- package/es/lowcode/view/lc-components/CardList/meta.json +143 -153
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +27 -12
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Dialog/index.js +19 -117
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/es/lowcode/view/lc-components/Dialog/meta.json +120 -150
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +2 -5
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Drawer/index.js +12 -13
- package/es/lowcode/view/lc-components/Drawer/index.less +6 -9
- package/es/lowcode/view/lc-components/Drawer/meta.json +143 -131
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +2 -83
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Form/index.js +12 -453
- package/es/lowcode/view/lc-components/Form/meta.json +116 -605
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Iframe/index.js +0 -1
- package/es/lowcode/view/lc-components/Iframe/meta.json +32 -32
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +3 -9
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/ImEx/index.js +10 -470
- package/es/lowcode/view/lc-components/ImEx/meta.json +82 -114
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Image/index.js +0 -1
- package/es/lowcode/view/lc-components/Image/meta.json +114 -114
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/JSX/index.js +6 -19
- package/es/lowcode/view/lc-components/JSX/meta.json +25 -28
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +24 -21
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +8 -3
- package/es/lowcode/view/lc-components/Layout/index.js +16 -17
- package/es/lowcode/view/lc-components/Layout/index.less +5 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +108 -107
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Link/index.js +0 -1
- package/es/lowcode/view/lc-components/Link/meta.json +112 -112
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +2 -25
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Section/index.js +24 -115
- package/es/lowcode/view/lc-components/Section/meta.json +108 -107
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +2 -56
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Split/index.js +7 -42
- package/es/lowcode/view/lc-components/Split/meta.json +72 -53
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +3 -7
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Table/components/TopFilter.js +57 -78
- package/es/lowcode/view/lc-components/Table/index.js +219 -562
- package/es/lowcode/view/lc-components/Table/meta.json +372 -405
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +2 -63
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Tabs/index.js +10 -115
- package/es/lowcode/view/lc-components/Tabs/meta.json +140 -113
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Text/index.js +0 -1
- package/es/lowcode/view/lc-components/Text/meta.json +66 -66
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +6 -20
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Tree/index.js +51 -369
- package/es/lowcode/view/lc-components/Tree/index.less +1 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +199 -363
- package/es/lowcode/view/lc-components/Wrapper.js +32 -47
- package/es/lowcode/view/style/canvas.less +5 -5
- package/es/lowcode/view/style/loading.less +84 -84
- package/es/lowcode/view/style/page.less +5 -8
- package/es/services.js +26 -4
- package/es/upload/Form/gridForm.js +5 -10
- package/es/upload/Form/index.js +1 -2
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +21 -20
- package/es/upload/index.js +1 -2
- package/es/utils/action.js +2 -2
- package/es/utils/form.js +24 -36
- package/es/utils/grid.js +7 -9
- package/lib/components/Builder/index.js +1 -4
- package/lib/components/LDActions/index.js +14 -15
- package/lib/components/LDActions/index.less +48 -68
- package/lib/components/LdAutoForm/index.js +11 -34
- package/lib/components/LdCom/index.js +1 -2
- package/lib/components/LdFormList/index.js +30 -51
- package/lib/components/LdGrid/index.js +16 -30
- package/lib/components/LdGridForm/index.js +11 -33
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdRuntimeCom/index.js +12 -25
- package/lib/components/LdTree/index.js +41 -113
- package/lib/components/LdTree/index.less +40 -40
- package/lib/helper/FromItems.js +104 -164
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +27 -46
- package/lib/helper/index.less +7 -7
- package/lib/helper/ldBuilder.js +12 -28
- package/lib/helper/ldComBuild.js +12 -27
- package/lib/locales/zh-CN.js +20 -105
- package/lib/lowcode/constants/api-url.js +325 -636
- package/lib/lowcode/constants/event-topics.js +1 -7
- package/lib/lowcode/constants/index.js +5 -31
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -7
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +2 -3
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +3 -6
- package/lib/lowcode/engine/meta/box.props.default.json +2 -5
- package/lib/lowcode/engine/meta/box.props.json +4 -4
- package/lib/lowcode/engine/meta/button.props.default.json +1 -4
- package/lib/lowcode/engine/meta/button.props.json +9 -9
- package/lib/lowcode/engine/meta/cardlist.props.default.json +1 -4
- package/lib/lowcode/engine/meta/cardlist.props.json +4 -14
- package/lib/lowcode/engine/meta/components-list.json +7 -115
- package/lib/lowcode/engine/meta/dialog.props.default.json +6 -15
- package/lib/lowcode/engine/meta/dialog.props.json +43 -80
- package/lib/lowcode/engine/meta/drawer.props.default.json +1 -4
- package/lib/lowcode/engine/meta/drawer.props.json +21 -9
- package/lib/lowcode/engine/meta/fieldcolor.props.default.json +5 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.json +99 -3
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +6 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +104 -1
- package/lib/lowcode/engine/meta/fielddate.props.default.json +7 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +101 -3
- package/lib/lowcode/engine/meta/fielddict.props.default.json +5 -0
- package/lib/lowcode/engine/meta/fielddict.props.json +97 -1
- package/lib/lowcode/engine/meta/fieldeditor.props.default.json +5 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.json +97 -1
- package/lib/lowcode/engine/meta/fieldgroup.props.default.json +5 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.json +97 -1
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +6 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +101 -4
- package/lib/lowcode/engine/meta/fieldradio.props.default.json +5 -0
- package/lib/lowcode/engine/meta/fieldradio.props.json +101 -4
- package/lib/lowcode/engine/meta/fieldregion.props.default.json +5 -0
- package/lib/lowcode/engine/meta/fieldregion.props.json +101 -4
- package/lib/lowcode/engine/meta/fieldselect.props.default.json +5 -0
- package/lib/lowcode/engine/meta/fieldselect.props.json +99 -3
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +5 -4
- package/lib/lowcode/engine/meta/fieldstring.props.json +105 -13
- package/lib/lowcode/engine/meta/fieldswitch.props.default.json +5 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.json +98 -2
- package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +5 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +101 -5
- package/lib/lowcode/engine/meta/fieldupload.props.default.json +5 -0
- package/lib/lowcode/engine/meta/fieldupload.props.json +98 -2
- package/lib/lowcode/engine/meta/fielduser.props.default.json +6 -1
- package/lib/lowcode/engine/meta/fielduser.props.json +98 -2
- package/lib/lowcode/engine/meta/fieldyear.props.default.json +5 -0
- package/lib/lowcode/engine/meta/fieldyear.props.json +116 -3
- package/lib/lowcode/engine/meta/form.props.default.json +3 -52
- package/lib/lowcode/engine/meta/form.props.json +63 -602
- package/lib/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/lib/lowcode/engine/meta/grouptree.props.json +89 -0
- package/lib/lowcode/engine/meta/image.props.default.json +1 -4
- package/lib/lowcode/engine/meta/image.props.json +2 -2
- package/lib/lowcode/engine/meta/imex.props.default.json +2 -12
- package/lib/lowcode/engine/meta/imex.props.json +22 -54
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +13 -83
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -2
- package/lib/lowcode/engine/meta/jsx.props.json +5 -10
- package/lib/lowcode/engine/meta/layout.props.default.json +1 -4
- package/lib/lowcode/engine/meta/layout.props.json +3 -2
- package/lib/lowcode/engine/meta/link.props.default.json +1 -4
- package/lib/lowcode/engine/meta/link.props.json +2 -2
- package/lib/lowcode/engine/meta/page.props.json +18 -6
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +3 -1
- package/lib/lowcode/engine/meta/pagelayout.props.json +13 -1
- package/lib/lowcode/engine/meta/proxy.props.default.json +15 -0
- package/lib/lowcode/engine/meta/proxy.props.json +66 -0
- package/lib/lowcode/engine/meta/section.props.default.json +6 -7
- package/lib/lowcode/engine/meta/section.props.json +49 -52
- package/lib/lowcode/engine/meta/split.props.default.json +4 -9
- package/lib/lowcode/engine/meta/split.props.json +32 -17
- package/lib/lowcode/engine/meta/table.props.default.json +1 -5
- package/lib/lowcode/engine/meta/table.props.json +34 -67
- package/lib/lowcode/engine/meta/tabs.props.default.json +8 -16
- package/lib/lowcode/engine/meta/tabs.props.json +80 -57
- package/lib/lowcode/engine/meta/text.props.default.json +1 -4
- package/lib/lowcode/engine/meta/text.props.json +2 -2
- package/lib/lowcode/engine/meta/tree.props.default.json +6 -16
- package/lib/lowcode/engine/meta/tree.props.json +58 -221
- package/lib/lowcode/engine/provider/ContextProvider/index.js +114 -86
- package/lib/lowcode/engine/tools/dataProcess.js +70 -137
- package/lib/lowcode/engine/tools/helper.js +21 -97
- package/lib/lowcode/engine/tools/usePromiseState.js +7 -6
- package/lib/lowcode/index.js +0 -7
- package/lib/lowcode/painter/Components.js +22 -48
- package/lib/lowcode/painter/Design.js +4 -36
- package/lib/lowcode/painter/DesignOperator.js +89 -132
- package/lib/lowcode/painter/DesignToolbar.js +11 -282
- package/lib/lowcode/painter/I18n.js +1 -1
- package/lib/lowcode/painter/Outline.js +26 -33
- package/lib/lowcode/painter/Panel.js +40 -119
- package/lib/lowcode/painter/components/ActionBindModal.js +58 -181
- package/lib/lowcode/painter/components/AdvancePanel.js +24 -112
- package/lib/lowcode/painter/components/AttrsPanel.js +39 -61
- package/lib/lowcode/painter/components/Collapse.js +29 -35
- package/lib/lowcode/painter/components/ColorInput.js +27 -29
- package/lib/lowcode/painter/components/FieldSelector.js +13 -26
- package/lib/lowcode/painter/components/ListEditor.js +32 -45
- package/lib/lowcode/painter/components/NumberInput.js +28 -28
- package/lib/lowcode/painter/components/PanelItem.js +25 -25
- package/lib/lowcode/painter/components/PopConfirm.js +8 -8
- package/lib/lowcode/painter/components/PopForm.js +27 -27
- package/lib/lowcode/painter/components/RuleInput.js +30 -30
- package/lib/lowcode/painter/components/SortBox.js +27 -34
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +34 -35
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +29 -25
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/lib/lowcode/painter/index.js +30 -3
- package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +67 -14
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +4 -37
- package/lib/lowcode/painter/panel-section/ButtonType.js +2 -4
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +40 -135
- package/lib/lowcode/painter/panel-section/Icon.js +35 -37
- package/lib/lowcode/painter/panel-section/IconSelector.js +18 -21
- package/lib/lowcode/painter/panel-section/ImpExp.js +13 -99
- package/lib/lowcode/painter/panel-section/JSEditor.js +2 -3
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +27 -26
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +29 -10
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +16 -22
- package/lib/lowcode/painter/panel-section/TabItems.js +29 -45
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +12 -22
- package/lib/lowcode/painter/panel-section/TableZebra.js +6 -67
- package/lib/lowcode/painter/style/action-bind-modal.less +99 -102
- package/lib/lowcode/painter/style/actions-editor.less +15 -15
- package/lib/lowcode/painter/style/border-editor.less +36 -36
- package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
- package/lib/lowcode/painter/style/border-selector.less +39 -39
- package/lib/lowcode/painter/style/button-type.less +5 -5
- package/lib/lowcode/painter/style/collapse.less +22 -28
- package/lib/lowcode/painter/style/color-input.less +19 -19
- package/lib/lowcode/painter/style/components.less +90 -91
- package/lib/lowcode/painter/style/design.less +149 -152
- package/lib/lowcode/painter/style/display.less +17 -17
- package/lib/lowcode/painter/style/font-editor.less +9 -9
- package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/lib/lowcode/painter/style/icon-selector.less +22 -22
- package/lib/lowcode/painter/style/icon.less +10 -10
- package/lib/lowcode/painter/style/impexp.less +7 -7
- package/lib/lowcode/painter/style/index.less +6 -6
- package/lib/lowcode/painter/style/layout-ratio.less +51 -51
- package/lib/lowcode/painter/style/list-editor.less +59 -95
- package/lib/lowcode/painter/style/number-input.less +17 -17
- package/lib/lowcode/painter/style/outline.less +28 -28
- package/lib/lowcode/painter/style/panel-attrs.less +43 -43
- package/lib/lowcode/painter/style/panel-item.less +54 -54
- package/lib/lowcode/painter/style/panel.less +98 -98
- package/lib/lowcode/painter/style/pop-confirm.less +17 -17
- package/lib/lowcode/painter/style/pop-form.less +19 -19
- package/lib/lowcode/painter/style/radio.less +24 -24
- package/lib/lowcode/painter/style/ribbon.less +5 -5
- package/lib/lowcode/painter/style/rule-input.less +12 -12
- package/lib/lowcode/painter/style/style-panel.less +37 -37
- package/lib/lowcode/painter/style/tabitems.less +90 -90
- package/lib/lowcode/view/Canvas.js +145 -31
- package/lib/lowcode/view/Loading.js +2 -6
- package/lib/lowcode/view/Page.js +11 -12
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +2 -3
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Box/index.js +15 -9
- package/lib/lowcode/view/lc-components/Box/index.less +14 -14
- package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +10 -8
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +6 -3
- package/lib/lowcode/view/lc-components/Button/index.js +51 -70
- package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
- package/lib/lowcode/view/lc-components/Button/style.less +2 -2
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -1
- package/lib/lowcode/view/lc-components/CardList/meta.json +143 -153
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +27 -11
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Dialog/index.js +19 -117
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/lib/lowcode/view/lc-components/Dialog/meta.json +120 -150
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +3 -6
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Drawer/index.js +12 -13
- package/lib/lowcode/view/lc-components/Drawer/index.less +6 -9
- package/lib/lowcode/view/lc-components/Drawer/meta.json +143 -131
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +2 -83
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Form/index.js +10 -451
- package/lib/lowcode/view/lc-components/Form/meta.json +116 -605
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Iframe/index.js +0 -1
- package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -32
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +3 -9
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/ImEx/index.js +8 -468
- package/lib/lowcode/view/lc-components/ImEx/meta.json +82 -114
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Image/index.js +0 -1
- package/lib/lowcode/view/lc-components/Image/meta.json +114 -114
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/JSX/index.js +6 -19
- package/lib/lowcode/view/lc-components/JSX/meta.json +25 -28
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +24 -22
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +8 -3
- package/lib/lowcode/view/lc-components/Layout/index.js +16 -17
- package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +108 -107
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Link/index.js +0 -1
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -112
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +2 -25
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Section/index.js +23 -114
- package/lib/lowcode/view/lc-components/Section/meta.json +108 -107
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +2 -57
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Split/index.js +6 -41
- package/lib/lowcode/view/lc-components/Split/meta.json +72 -53
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +3 -7
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +55 -75
- package/lib/lowcode/view/lc-components/Table/index.js +216 -559
- package/lib/lowcode/view/lc-components/Table/meta.json +372 -405
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +2 -64
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Tabs/index.js +9 -114
- package/lib/lowcode/view/lc-components/Tabs/meta.json +140 -113
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Text/index.js +0 -1
- package/lib/lowcode/view/lc-components/Text/meta.json +66 -66
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +5 -19
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Tree/index.js +48 -366
- package/lib/lowcode/view/lc-components/Tree/index.less +1 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +199 -363
- package/lib/lowcode/view/lc-components/Wrapper.js +30 -46
- package/lib/lowcode/view/style/canvas.less +5 -5
- package/lib/lowcode/view/style/loading.less +84 -84
- package/lib/lowcode/view/style/page.less +5 -8
- package/lib/services.js +27 -4
- package/lib/upload/Form/gridForm.js +5 -10
- package/lib/upload/Form/index.js +1 -2
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +21 -20
- package/lib/upload/index.js +1 -8
- package/lib/utils/action.js +2 -2
- package/lib/utils/form.js +24 -36
- package/lib/utils/grid.js +7 -9
- package/lowcode.js +1 -1
- package/package.json +171 -172
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/es/components/IconFont/index.js +0 -5
- package/es/helper/props_config.js +0 -17
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +0 -213
- package/es/lowcode/engine/tools/useCanvasRender.js +0 -74
- package/es/lowcode/engine/tools/usePageDataStore.js +0 -176
- package/es/lowcode/engine/tools/useTodo.js +0 -88
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +0 -137
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +0 -50
- package/es/lowcode/painter/components/DragDrop/Overlay.js +0 -8
- package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +0 -67
- package/es/lowcode/painter/components/TreeEditor.js +0 -13
- package/es/lowcode/painter/components/field-setting/BatchSetting.js +0 -154
- package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +0 -108
- package/es/lowcode/painter/components/field-setting/CheckRules.js +0 -101
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +0 -287
- package/es/lowcode/painter/components/field-setting/FieldAttrsModal.js +0 -290
- package/es/lowcode/painter/components/field-setting/FieldDefaultValue.js +0 -63
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +0 -136
- package/es/lowcode/painter/components/field-setting/SettingUI.js +0 -570
- package/es/lowcode/painter/components/field-setting/index.js +0 -342
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +0 -53
- package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +0 -25
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +0 -27
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +0 -45
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +0 -229
- package/es/lowcode/painter/panel-section/FieldsSetting.js +0 -377
- package/es/lowcode/painter/panel-section/I18nInput.js +0 -20
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +0 -111
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +0 -108
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +0 -95
- package/es/lowcode/painter/panel-section/SerialsSelector.js +0 -46
- package/es/lowcode/painter/panel-section/SplitDisplay.js +0 -163
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +0 -78
- package/es/lowcode/painter/style/dragdrop.less +0 -10
- package/es/lowcode/painter/style/fields-setting.less +0 -25
- package/es/lowcode/painter/style/page-layout-display.less +0 -28
- package/es/lowcode/painter/style/split-display.less +0 -19
- package/es/lowcode/painter/style/treedragdrop.less +0 -19
- package/es/lowcode/preview/index.js +0 -29
- package/es/lowcode/view/lc-components/Box/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Button/FunctionPreview.js +0 -6
- package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/FieldColor/meta.json +0 -63
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +0 -39
- package/es/lowcode/view/lc-components/FieldDate/meta.json +0 -45
- package/es/lowcode/view/lc-components/FieldDict/meta.json +0 -44
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +0 -44
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +0 -73
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +0 -48
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +0 -20
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +0 -26
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +0 -58
- package/es/lowcode/view/lc-components/FieldString/meta.json +0 -62
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +0 -31
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +0 -49
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +0 -71
- package/es/lowcode/view/lc-components/FieldUser/meta.json +0 -82
- package/es/lowcode/view/lc-components/FieldYear/meta.json +0 -20
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +0 -17
- package/es/lowcode/view/lc-components/Form/index.less +0 -5
- package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/ImEx/index.less +0 -7
- package/es/lowcode/view/lc-components/Image/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Link/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Page/meta.json +0 -49
- package/es/lowcode/view/lc-components/PageContent/index.js +0 -52
- package/es/lowcode/view/lc-components/PageContent/meta.json +0 -9
- package/es/lowcode/view/lc-components/PageFooter/index.js +0 -35
- package/es/lowcode/view/lc-components/PageFooter/meta.json +0 -9
- package/es/lowcode/view/lc-components/PageHeader/index.js +0 -39
- package/es/lowcode/view/lc-components/PageHeader/meta.json +0 -9
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +0 -63
- package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +0 -10
- package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/PageLayout/index.js +0 -32
- package/es/lowcode/view/lc-components/PageLayout/meta.json +0 -47
- package/es/lowcode/view/lc-components/PageModal/index.js +0 -20
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Section/index.less +0 -7
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +0 -420
- package/es/lowcode/view/lc-components/Tabs/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Text/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Tree/FunctionPreview.js +0 -26
- package/es/upload/FilesWall/file.png +0 -0
- package/es/upload/FilesWall/index.js +0 -422
- package/es/upload/FilesWall/index.less +0 -74
- package/lib/components/IconFont/index.js +0 -11
- package/lib/helper/props_config.js +0 -23
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +0 -221
- package/lib/lowcode/engine/tools/useCanvasRender.js +0 -89
- package/lib/lowcode/engine/tools/usePageDataStore.js +0 -183
- package/lib/lowcode/engine/tools/useTodo.js +0 -95
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +0 -146
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +0 -57
- package/lib/lowcode/painter/components/DragDrop/Overlay.js +0 -15
- package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +0 -75
- package/lib/lowcode/painter/components/TreeEditor.js +0 -20
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js +0 -161
- package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +0 -116
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +0 -108
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +0 -295
- package/lib/lowcode/painter/components/field-setting/FieldAttrsModal.js +0 -298
- package/lib/lowcode/painter/components/field-setting/FieldDefaultValue.js +0 -70
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +0 -144
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +0 -578
- package/lib/lowcode/painter/components/field-setting/index.js +0 -349
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +0 -59
- package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +0 -32
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +0 -34
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +0 -52
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +0 -236
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +0 -385
- package/lib/lowcode/painter/panel-section/I18nInput.js +0 -27
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +0 -119
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +0 -114
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +0 -103
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +0 -53
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +0 -171
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +0 -86
- package/lib/lowcode/painter/style/dragdrop.less +0 -10
- package/lib/lowcode/painter/style/fields-setting.less +0 -25
- package/lib/lowcode/painter/style/page-layout-display.less +0 -28
- package/lib/lowcode/painter/style/split-display.less +0 -19
- package/lib/lowcode/painter/style/treedragdrop.less +0 -19
- package/lib/lowcode/preview/index.js +0 -37
- package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Button/FunctionPreview.js +0 -13
- package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +0 -63
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +0 -39
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +0 -45
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +0 -44
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +0 -44
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +0 -73
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +0 -48
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +0 -20
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +0 -26
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +0 -58
- package/lib/lowcode/view/lc-components/FieldString/meta.json +0 -62
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +0 -31
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +0 -49
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +0 -71
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +0 -82
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +0 -20
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +0 -24
- package/lib/lowcode/view/lc-components/Form/index.less +0 -5
- package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/ImEx/index.less +0 -7
- package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Page/meta.json +0 -49
- package/lib/lowcode/view/lc-components/PageContent/index.js +0 -60
- package/lib/lowcode/view/lc-components/PageContent/meta.json +0 -9
- package/lib/lowcode/view/lc-components/PageFooter/index.js +0 -43
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +0 -9
- package/lib/lowcode/view/lc-components/PageHeader/index.js +0 -47
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +0 -9
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +0 -71
- package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +0 -17
- package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/PageLayout/index.js +0 -40
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +0 -47
- package/lib/lowcode/view/lc-components/PageModal/index.js +0 -27
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Section/index.less +0 -7
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +0 -428
- package/lib/lowcode/view/lc-components/Tabs/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Tree/FunctionPreview.js +0 -33
- package/lib/upload/FilesWall/file.png +0 -0
- package/lib/upload/FilesWall/index.js +0 -429
- package/lib/upload/FilesWall/index.less +0 -74
|
@@ -7,20 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.executeCode = executeCode;
|
|
8
8
|
exports.getCtx = getCtx;
|
|
9
9
|
exports.getFuncBody = getFuncBody;
|
|
10
|
-
exports.getLDMetaAttr = getLDMetaAttr;
|
|
11
|
-
exports.isColor = isColor;
|
|
12
10
|
exports.isPromise = isPromise;
|
|
13
11
|
exports.listReducer = listReducer;
|
|
14
12
|
exports.omitBadProps = omitBadProps;
|
|
15
|
-
exports.parseCSS = parseCSS;
|
|
16
|
-
exports.setLDMetaAttrs = setLDMetaAttrs;
|
|
17
13
|
var _construct2 = _interopRequireDefault(require("@babel/runtime/helpers/construct"));
|
|
18
14
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
19
15
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
20
16
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
21
17
|
var _lodash = require("lodash");
|
|
22
|
-
var _postcss = _interopRequireDefault(require("postcss"));
|
|
23
|
-
var _constants = require("../../constants");
|
|
24
18
|
function isPromise(value) {
|
|
25
19
|
return !!value && (0, _typeof2.default)(value) === 'object' && typeof value.then === 'function';
|
|
26
20
|
}
|
|
@@ -30,91 +24,69 @@ function omitBadProps(props) {
|
|
|
30
24
|
}
|
|
31
25
|
function listReducer(state, action) {
|
|
32
26
|
switch (action.type) {
|
|
33
|
-
case '
|
|
27
|
+
case 'add':
|
|
34
28
|
{
|
|
35
29
|
var _action$callback;
|
|
36
|
-
var newState = (0, _toConsumableArray2.default)(state);
|
|
37
|
-
newState.splice(action.payload.index + 1, 0, action.payload.data);
|
|
30
|
+
var newState = [].concat((0, _toConsumableArray2.default)(state), [action.payload]);
|
|
38
31
|
(_action$callback = action.callback) === null || _action$callback === void 0 || _action$callback.call(action, newState);
|
|
39
32
|
return newState;
|
|
40
33
|
}
|
|
41
|
-
case '
|
|
34
|
+
case 'delete':
|
|
42
35
|
{
|
|
43
36
|
var _action$callback2;
|
|
44
|
-
var _newState =
|
|
37
|
+
var _newState = state.filter(function (item) {
|
|
38
|
+
return item.id !== action.payload;
|
|
39
|
+
});
|
|
45
40
|
(_action$callback2 = action.callback) === null || _action$callback2 === void 0 || _action$callback2.call(action, _newState);
|
|
46
41
|
return _newState;
|
|
47
42
|
}
|
|
48
|
-
case '
|
|
43
|
+
case 'edit':
|
|
49
44
|
{
|
|
50
45
|
var _action$callback3;
|
|
51
|
-
var _newState2 = state.
|
|
52
|
-
return item.id
|
|
46
|
+
var _newState2 = state.map(function (item) {
|
|
47
|
+
return item.id === action.payload.id ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), action.payload.data) : item;
|
|
53
48
|
});
|
|
54
49
|
(_action$callback3 = action.callback) === null || _action$callback3 === void 0 || _action$callback3.call(action, _newState2);
|
|
55
50
|
return _newState2;
|
|
56
51
|
}
|
|
57
|
-
case '
|
|
52
|
+
case 'active':
|
|
58
53
|
{
|
|
59
54
|
var _action$callback4;
|
|
60
55
|
var _newState3 = state.map(function (item) {
|
|
56
|
+
item.active = false;
|
|
61
57
|
return item.id === action.payload.id ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), action.payload.data) : item;
|
|
62
58
|
});
|
|
63
59
|
(_action$callback4 = action.callback) === null || _action$callback4 === void 0 || _action$callback4.call(action, _newState3);
|
|
64
60
|
return _newState3;
|
|
65
61
|
}
|
|
66
|
-
case '
|
|
62
|
+
case 'new':
|
|
67
63
|
{
|
|
68
64
|
var _action$callback5;
|
|
69
|
-
var _newState4 =
|
|
70
|
-
var newItem = action.payload.items.find(function (_id) {
|
|
71
|
-
return _id === item.id;
|
|
72
|
-
});
|
|
73
|
-
if (newItem) {
|
|
74
|
-
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), action.payload.data);
|
|
75
|
-
}
|
|
76
|
-
return item;
|
|
77
|
-
});
|
|
65
|
+
var _newState4 = (0, _toConsumableArray2.default)(action.payload);
|
|
78
66
|
(_action$callback5 = action.callback) === null || _action$callback5 === void 0 || _action$callback5.call(action, _newState4);
|
|
79
67
|
return _newState4;
|
|
80
68
|
}
|
|
81
|
-
case 'active':
|
|
82
|
-
{
|
|
83
|
-
var _action$callback6;
|
|
84
|
-
var _newState5 = state.map(function (item) {
|
|
85
|
-
item.active = false;
|
|
86
|
-
return item.id === action.payload.id ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), action.payload.data) : item;
|
|
87
|
-
});
|
|
88
|
-
(_action$callback6 = action.callback) === null || _action$callback6 === void 0 || _action$callback6.call(action, _newState5);
|
|
89
|
-
return _newState5;
|
|
90
|
-
}
|
|
91
|
-
case 'init':
|
|
92
|
-
case 'new':
|
|
93
|
-
{
|
|
94
|
-
var _action$callback7;
|
|
95
|
-
(_action$callback7 = action.callback) === null || _action$callback7 === void 0 || _action$callback7.call(action, action.payload);
|
|
96
|
-
return action.payload;
|
|
97
|
-
}
|
|
98
69
|
case 'sort':
|
|
99
70
|
{
|
|
100
|
-
var _action$
|
|
71
|
+
var _action$callback6;
|
|
101
72
|
var sortItems = action.payload;
|
|
102
73
|
var newItems = state.sort(function (a, b) {
|
|
103
74
|
var indexA = sortItems.indexOf(a.id);
|
|
104
75
|
var indexB = sortItems.indexOf(b.id);
|
|
105
76
|
return indexA - indexB;
|
|
106
77
|
});
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
return
|
|
78
|
+
(_action$callback6 = action.callback) === null || _action$callback6 === void 0 || _action$callback6.call(action, _newState5);
|
|
79
|
+
var _newState5 = (0, _toConsumableArray2.default)(newItems);
|
|
80
|
+
return _newState5;
|
|
110
81
|
}
|
|
111
82
|
default:
|
|
112
83
|
throw new Error();
|
|
113
84
|
}
|
|
114
85
|
}
|
|
115
86
|
function getCtx(context) {
|
|
116
|
-
return context
|
|
117
|
-
|
|
87
|
+
return (0, _lodash.omitBy)(context, function (_, key) {
|
|
88
|
+
return (0, _lodash.startsWith)(key, '_');
|
|
89
|
+
});
|
|
118
90
|
}
|
|
119
91
|
function getFuncBody(funcCode) {
|
|
120
92
|
var regex = /{([\s\S]*?)}(?![\s\S]*})/;
|
|
@@ -137,52 +109,4 @@ function executeCode(context, code, argsName) {
|
|
|
137
109
|
var ctx = getCtx(context);
|
|
138
110
|
var func = (0, _construct2.default)(Function, (0, _toConsumableArray2.default)(argsName || []).concat(['ctx', getFuncBody(code)]));
|
|
139
111
|
return func.apply(void 0, args.concat([ctx]));
|
|
140
|
-
}
|
|
141
|
-
function parseCSS(cssString) {
|
|
142
|
-
// 创建一个空对象来存储解析后的样式
|
|
143
|
-
var parsedStyles = {};
|
|
144
|
-
if (cssString) {
|
|
145
|
-
try {
|
|
146
|
-
// 解析CSS字符串
|
|
147
|
-
var ast = _postcss.default.parse(cssString);
|
|
148
|
-
|
|
149
|
-
// 遍历AST中的每个规则
|
|
150
|
-
ast.walkDecls(function (decl) {
|
|
151
|
-
// 将每个声明的属性和值存储在对象中
|
|
152
|
-
parsedStyles[decl.prop] = decl.value;
|
|
153
|
-
});
|
|
154
|
-
} catch (e) {
|
|
155
|
-
console.error(e);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// 返回包含所有样式的对象
|
|
160
|
-
return parsedStyles;
|
|
161
|
-
}
|
|
162
|
-
;
|
|
163
|
-
function isColor(str) {
|
|
164
|
-
var hexRegex = /^#(?:[A-Fa-f0-9]{3,4}){1,2}$/;
|
|
165
|
-
var rgbaRegex = /^rgba?\(\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(,\s*(0|1|0?\.\d+))?\s*\)$/;
|
|
166
|
-
return hexRegex.test(str) || rgbaRegex.test(str);
|
|
167
|
-
}
|
|
168
|
-
function setLDMetaAttrs(data) {
|
|
169
|
-
var meta = document.querySelector("meta[name=\"".concat(_constants.META_TAG_NAME, "\"]"));
|
|
170
|
-
if (!meta) {
|
|
171
|
-
meta = document.createElement('meta');
|
|
172
|
-
}
|
|
173
|
-
meta.name = _constants.META_TAG_NAME;
|
|
174
|
-
meta.content = new URLSearchParams(data).toString().replaceAll('&', ',');
|
|
175
|
-
document.head.appendChild(meta);
|
|
176
|
-
}
|
|
177
|
-
function getLDMetaAttr(name) {
|
|
178
|
-
if ((0, _lodash.isNil)(name)) return void 0;
|
|
179
|
-
var meta = document.querySelector("meta[name=\"".concat(_constants.META_TAG_NAME, "\"]"));
|
|
180
|
-
var params = new URLSearchParams(meta.content.replaceAll(',', '&'));
|
|
181
|
-
if ((0, _lodash.isArray)(name)) {
|
|
182
|
-
return name.map(function (n) {
|
|
183
|
-
return params.get(n);
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
return params.get(name);
|
|
187
|
-
}
|
|
188
|
-
;
|
|
112
|
+
}
|
|
@@ -9,10 +9,11 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _ahooks = require("ahooks");
|
|
11
11
|
var usePromiseState = function usePromiseState(initialState) {
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
state =
|
|
15
|
-
setState =
|
|
12
|
+
var _useResetState = (0, _ahooks.useResetState)(initialState),
|
|
13
|
+
_useResetState2 = (0, _slicedToArray2.default)(_useResetState, 3),
|
|
14
|
+
state = _useResetState2[0],
|
|
15
|
+
setState = _useResetState2[1],
|
|
16
|
+
resetState = _useResetState2[2];
|
|
16
17
|
var promiseRef = (0, _react.useRef)(null);
|
|
17
18
|
var setStatePromise = (0, _react.useCallback)(function (_state) {
|
|
18
19
|
return new Promise(function (resolve) {
|
|
@@ -20,12 +21,12 @@ var usePromiseState = function usePromiseState(initialState) {
|
|
|
20
21
|
setState(_state);
|
|
21
22
|
});
|
|
22
23
|
}, []);
|
|
23
|
-
(0, _ahooks.
|
|
24
|
+
(0, _ahooks.useDeepCompareEffect)(function () {
|
|
24
25
|
if (promiseRef.current) {
|
|
25
26
|
promiseRef.current(state);
|
|
26
27
|
promiseRef.current = null;
|
|
27
28
|
}
|
|
28
29
|
}, [state]);
|
|
29
|
-
return [state, setStatePromise];
|
|
30
|
+
return [state, setStatePromise, resetState];
|
|
30
31
|
};
|
|
31
32
|
var _default = exports.default = usePromiseState;
|
package/lib/lowcode/index.js
CHANGED
|
@@ -10,12 +10,6 @@ Object.defineProperty(exports, "Painter", {
|
|
|
10
10
|
return _painter.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
Object.defineProperty(exports, "Preview", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _preview.default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
13
|
Object.defineProperty(exports, "View", {
|
|
20
14
|
enumerable: true,
|
|
21
15
|
get: function get() {
|
|
@@ -25,7 +19,6 @@ Object.defineProperty(exports, "View", {
|
|
|
25
19
|
exports.default = launcher;
|
|
26
20
|
var _painter = _interopRequireDefault(require("./painter"));
|
|
27
21
|
var _view = _interopRequireDefault(require("./view"));
|
|
28
|
-
var _preview = _interopRequireDefault(require("./preview"));
|
|
29
22
|
// export * as dataProcess from './engine/tools/dataProcess';
|
|
30
23
|
|
|
31
24
|
function launcher() {}
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -14,10 +13,8 @@ var _antd = require("luck-design/antd");
|
|
|
14
13
|
var _ahooks = require("ahooks");
|
|
15
14
|
var _utils = require("@luck-design-biz/base/utils");
|
|
16
15
|
var _ContextProvider = require("../engine/provider/ContextProvider");
|
|
17
|
-
var _core = require("@dnd-kit/core");
|
|
18
16
|
var _components = _interopRequireDefault(require("./style/components.less"));
|
|
19
17
|
var _componentsList = _interopRequireDefault(require("../engine/meta/components-list.json"));
|
|
20
|
-
var _DragDropContext = require("./components/DragDrop/DragDropContext");
|
|
21
18
|
var TabPane = _antd.Tabs.TabPane;
|
|
22
19
|
var Search = _antd.Input.Search;
|
|
23
20
|
var BaseCom = function BaseCom(_ref) {
|
|
@@ -39,7 +36,7 @@ var BaseCom = function BaseCom(_ref) {
|
|
|
39
36
|
}).filter(function (group) {
|
|
40
37
|
return group.components.length > 0;
|
|
41
38
|
});
|
|
42
|
-
}, [
|
|
39
|
+
}, [_componentsList.default]);
|
|
43
40
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
44
41
|
className: _components.default['components-search']
|
|
45
42
|
}, /*#__PURE__*/_react.default.createElement(Search, {
|
|
@@ -55,53 +52,30 @@ var BaseCom = function BaseCom(_ref) {
|
|
|
55
52
|
key: group.group,
|
|
56
53
|
className: _components.default['components-wrapper']
|
|
57
54
|
}, /*#__PURE__*/_react.default.createElement("h3", null, group.groupName), group.components.map(function (item) {
|
|
58
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
55
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
59
56
|
key: item.component,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
className: _components.default['components-item'],
|
|
58
|
+
onClick: function onClick() {
|
|
59
|
+
return onComponentClick(item);
|
|
60
|
+
}
|
|
61
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
62
|
+
className: _components.default['icon-wrapper']
|
|
63
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Icon, {
|
|
64
|
+
type: item.icon || 'home'
|
|
65
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
66
|
+
className: _components.default['text-content']
|
|
67
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, item.name)));
|
|
63
68
|
}));
|
|
64
69
|
})));
|
|
65
70
|
};
|
|
66
|
-
var CompItem = function CompItem(_ref2) {
|
|
67
|
-
var item = _ref2.item,
|
|
68
|
-
onComponentClick = _ref2.onComponentClick;
|
|
69
|
-
// console.log('CompItem', item.component);
|
|
70
|
-
var _useDraggable = (0, _core.useDraggable)({
|
|
71
|
-
id: 'comlist-' + item.component,
|
|
72
|
-
data: {
|
|
73
|
-
component: item,
|
|
74
|
-
action: _DragDropContext.Action.ADD
|
|
75
|
-
}
|
|
76
|
-
}),
|
|
77
|
-
attributes = _useDraggable.attributes,
|
|
78
|
-
listeners = _useDraggable.listeners,
|
|
79
|
-
transform = _useDraggable.transform,
|
|
80
|
-
setNodeRef = _useDraggable.setNodeRef;
|
|
81
|
-
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
|
|
82
|
-
ref: setNodeRef
|
|
83
|
-
}, listeners, attributes, {
|
|
84
|
-
key: item.component,
|
|
85
|
-
className: _components.default['components-item'],
|
|
86
|
-
onClick: function onClick() {
|
|
87
|
-
return onComponentClick(item);
|
|
88
|
-
}
|
|
89
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
90
|
-
className: _components.default['icon-wrapper']
|
|
91
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Icon, {
|
|
92
|
-
type: item.icon || 'home'
|
|
93
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
94
|
-
className: _components.default['text-content']
|
|
95
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, item.name)));
|
|
96
|
-
};
|
|
97
71
|
|
|
98
|
-
/**
|
|
99
|
-
* 组件清单
|
|
72
|
+
/**
|
|
73
|
+
* 组件清单
|
|
100
74
|
*/
|
|
101
|
-
var Components = function Components(
|
|
102
|
-
var
|
|
103
|
-
dataset =
|
|
104
|
-
var context = (0, _ContextProvider.
|
|
75
|
+
var Components = function Components(_ref2) {
|
|
76
|
+
var _ref2$dataset = _ref2.dataset,
|
|
77
|
+
dataset = _ref2$dataset === void 0 ? 'test' : _ref2$dataset;
|
|
78
|
+
var context = (0, _ContextProvider.useLDContext)();
|
|
105
79
|
var onComponentClick = (0, _ahooks.useMemoizedFn)(function (data) {
|
|
106
80
|
context.$publisher(context.topics.COMPONENT_SETTING_CLICK, {
|
|
107
81
|
data: data
|
|
@@ -129,10 +103,10 @@ var Components = function Components(_ref3) {
|
|
|
129
103
|
onComponentClick: onComponentClick
|
|
130
104
|
})), /*#__PURE__*/_react.default.createElement(TabPane, {
|
|
131
105
|
tab: (0, _utils.formatMessage)({
|
|
132
|
-
id: 'ccm.dev.page.set.components.
|
|
133
|
-
label: '
|
|
106
|
+
id: 'ccm.dev.page.set.components.dataset',
|
|
107
|
+
label: '数据集字段'
|
|
134
108
|
}),
|
|
135
109
|
key: "dataset"
|
|
136
|
-
}
|
|
110
|
+
})));
|
|
137
111
|
};
|
|
138
112
|
var _default = exports.default = Components;
|
|
@@ -12,8 +12,6 @@ var _umi = require("umi");
|
|
|
12
12
|
var _ahooks = require("ahooks");
|
|
13
13
|
var _moment = _interopRequireDefault(require("moment"));
|
|
14
14
|
var _antd = require("luck-design/antd");
|
|
15
|
-
var _utils = require("@luck-design-biz/base/utils");
|
|
16
|
-
var _ContextProvider = require("../engine/provider/ContextProvider");
|
|
17
15
|
var _DesignToolbar = _interopRequireDefault(require("./DesignToolbar"));
|
|
18
16
|
var _DesignOperator = _interopRequireDefault(require("./DesignOperator"));
|
|
19
17
|
var _Page = _interopRequireDefault(require("../view/Page"));
|
|
@@ -21,7 +19,6 @@ var _design = _interopRequireDefault(require("./style/design.less"));
|
|
|
21
19
|
var Design = function Design() {
|
|
22
20
|
var _localeInfo$locale;
|
|
23
21
|
var simulatorRef = (0, _react.useRef)(null);
|
|
24
|
-
var remoteSource = (0, _ContextProvider.useRemoteSource)();
|
|
25
22
|
var _useState = (0, _react.useState)(function () {
|
|
26
23
|
return (0, _umi.getLocale)();
|
|
27
24
|
}),
|
|
@@ -34,35 +31,6 @@ var Design = function Design() {
|
|
|
34
31
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
35
32
|
intl = _useState4[0],
|
|
36
33
|
setIntl = _useState4[1];
|
|
37
|
-
var unblock = (0, _ahooks.useMemoizedFn)(function () {
|
|
38
|
-
if (remoteSource.backLength > 0) return confirm("".concat((0, _utils.formatMessage)({
|
|
39
|
-
id: 'app.base.operate.comfire.leave',
|
|
40
|
-
label: '离开当前页面?'
|
|
41
|
-
}), "\n").concat((0, _utils.formatMessage)({
|
|
42
|
-
id: 'app.base.operate.comfire.message.leave',
|
|
43
|
-
label: '系统可能不会保存您所做的更改。'
|
|
44
|
-
})));
|
|
45
|
-
return true;
|
|
46
|
-
});
|
|
47
|
-
var handleBeforeUnload = (0, _ahooks.useMemoizedFn)(function (event) {
|
|
48
|
-
if (remoteSource.backLength > 0) {
|
|
49
|
-
event.preventDefault();
|
|
50
|
-
event.returnValue = null;
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
(0, _react.useEffect)(function () {
|
|
55
|
-
window.addEventListener('beforeunload', handleBeforeUnload);
|
|
56
|
-
_umi.history.block(function () {
|
|
57
|
-
return unblock();
|
|
58
|
-
});
|
|
59
|
-
return function () {
|
|
60
|
-
window.removeEventListener('beforeunload', handleBeforeUnload);
|
|
61
|
-
_umi.history.block(function () {
|
|
62
|
-
return true;
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
}, []);
|
|
66
34
|
var handleLangChange = (0, _ahooks.useMemoizedFn)(function (_locale) {
|
|
67
35
|
if (_moment.default !== null && _moment.default !== void 0 && _moment.default.locale) {
|
|
68
36
|
var _localeInfo$_locale;
|
|
@@ -78,15 +46,15 @@ var Design = function Design() {
|
|
|
78
46
|
onLangChange: handleLangChange
|
|
79
47
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
80
48
|
className: _design.default['lc-painter-design-workspace']
|
|
81
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement(_DesignOperator.default, {
|
|
50
|
+
target: simulatorRef
|
|
51
|
+
}), /*#__PURE__*/_react.default.createElement(_antd.ConfigProvider, {
|
|
82
52
|
locale: ((_localeInfo$locale = _umi.localeInfo[locale]) === null || _localeInfo$locale === void 0 ? void 0 : _localeInfo$locale.antd) || {}
|
|
83
53
|
}, /*#__PURE__*/_react.default.createElement(_umi.RawIntlProvider, {
|
|
84
54
|
value: intl
|
|
85
55
|
}, /*#__PURE__*/_react.default.createElement(_Page.default, {
|
|
86
56
|
ref: simulatorRef,
|
|
87
57
|
className: _design.default['lc-painter-design-simulator']
|
|
88
|
-
}
|
|
89
|
-
canvas: simulatorRef
|
|
90
|
-
}))))));
|
|
58
|
+
})))));
|
|
91
59
|
};
|
|
92
60
|
var _default = exports.default = Design;
|