@luck-design-biz/luckda 0.0.25-8 → 0.0.25-af-1
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/ComplexItem/index.js +92 -0
- package/es/components/ComplexItem/service.js +21 -0
- package/es/components/LDActions/index.js +15 -16
- package/es/components/LDActions/index.less +48 -68
- package/es/components/LdAutoForm/index.js +9 -27
- package/es/components/LdCom/index.js +1 -2
- package/es/components/LdFormList/index.js +31 -51
- package/es/components/LdGrid/index.js +16 -23
- package/es/components/LdGridForm/index.js +7 -20
- 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 +23 -1
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +44 -30
- 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 +19 -104
- package/es/lowcode/constants/api-url.js +324 -555
- package/es/lowcode/constants/event-topics.js +0 -6
- package/es/lowcode/constants/index.js +4 -31
- 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 +1 -1
- package/es/lowcode/engine/meta/components-list.json +7 -13
- package/es/lowcode/engine/meta/dialog.props.default.json +6 -14
- package/es/lowcode/engine/meta/dialog.props.json +43 -73
- 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 +19 -0
- package/es/lowcode/engine/meta/fieldcolor.props.json +159 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +19 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +142 -0
- package/es/lowcode/engine/meta/fielddate.props.default.json +19 -0
- package/es/lowcode/engine/meta/fielddate.props.json +145 -0
- package/es/lowcode/engine/meta/fielddict.props.default.json +19 -0
- package/es/lowcode/engine/meta/fielddict.props.json +140 -0
- package/es/lowcode/engine/meta/fieldeditor.props.default.json +18 -0
- package/es/lowcode/engine/meta/fieldeditor.props.json +140 -0
- package/es/lowcode/engine/meta/fieldgroup.props.default.json +20 -0
- package/es/lowcode/engine/meta/fieldgroup.props.json +169 -0
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +20 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +145 -0
- package/es/lowcode/engine/meta/fieldradio.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldradio.props.json +117 -0
- package/es/lowcode/engine/meta/fieldregion.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldregion.props.json +123 -0
- package/es/lowcode/engine/meta/fieldselect.props.default.json +19 -0
- package/es/lowcode/engine/meta/fieldselect.props.json +154 -0
- package/es/lowcode/engine/meta/fieldstring.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldstring.props.json +154 -0
- package/es/lowcode/engine/meta/fieldswitch.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldswitch.props.json +127 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.default.json +18 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.json +145 -0
- package/es/lowcode/engine/meta/fieldupload.props.default.json +20 -0
- package/es/lowcode/engine/meta/fieldupload.props.json +167 -0
- package/es/lowcode/engine/meta/fielduser.props.default.json +21 -0
- package/es/lowcode/engine/meta/fielduser.props.json +178 -0
- package/es/lowcode/engine/meta/fieldyear.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldyear.props.json +133 -0
- 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 -214
- package/es/lowcode/engine/provider/ContextProvider/index.js +115 -70
- package/es/lowcode/engine/tools/dataProcess.js +71 -137
- package/es/lowcode/engine/tools/helper.js +20 -70
- 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 +2 -34
- package/es/lowcode/painter/DesignOperator.js +37 -43
- package/es/lowcode/painter/DesignToolbar.js +16 -289
- package/es/lowcode/painter/I18n.js +2 -2
- package/es/lowcode/painter/Outline.js +26 -29
- package/es/lowcode/painter/Panel.js +26 -67
- package/es/lowcode/painter/components/ActionBindModal.js +62 -181
- package/es/lowcode/painter/components/AdvancePanel.js +11 -88
- package/es/lowcode/painter/components/AttrsPanel.js +41 -61
- package/es/lowcode/painter/components/Collapse.js +29 -35
- package/es/lowcode/painter/components/ColorInput.js +27 -29
- 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 +20 -20
- 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 -118
- 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 +6 -93
- 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/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 +14 -15
- 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 -143
- 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 -115
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/es/lowcode/view/lc-components/Dialog/meta.json +120 -143
- 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 +13 -382
- 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 +9 -260
- 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/index.js +217 -399
- 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 -22
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Tree/index.js +51 -344
- package/es/lowcode/view/lc-components/Tree/index.less +1 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +199 -356
- 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 +3 -7
- package/es/upload/Form/index.js +1 -2
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +20 -18
- package/es/upload/index.js +1 -2
- package/es/utils/action.js +2 -2
- package/es/utils/form.js +22 -21
- package/es/utils/grid.js +3 -2
- package/lib/components/Builder/index.js +1 -4
- package/lib/components/ComplexItem/index.js +100 -0
- package/lib/components/ComplexItem/service.js +28 -0
- package/lib/components/LDActions/index.js +14 -15
- package/lib/components/LDActions/index.less +48 -68
- package/lib/components/LdAutoForm/index.js +8 -26
- package/lib/components/LdCom/index.js +1 -2
- package/lib/components/LdFormList/index.js +29 -49
- package/lib/components/LdGrid/index.js +16 -23
- package/lib/components/LdGridForm/index.js +6 -19
- 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 +24 -2
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +43 -29
- 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 +19 -104
- package/lib/lowcode/constants/api-url.js +325 -559
- package/lib/lowcode/constants/event-topics.js +1 -7
- package/lib/lowcode/constants/index.js +5 -32
- 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 +1 -1
- package/lib/lowcode/engine/meta/components-list.json +7 -13
- package/lib/lowcode/engine/meta/dialog.props.default.json +6 -14
- package/lib/lowcode/engine/meta/dialog.props.json +43 -73
- 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 +19 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.json +159 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +142 -0
- package/lib/lowcode/engine/meta/fielddate.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +145 -0
- package/lib/lowcode/engine/meta/fielddict.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fielddict.props.json +140 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.default.json +18 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.json +140 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.default.json +20 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.json +169 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +20 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +145 -0
- package/lib/lowcode/engine/meta/fieldradio.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldradio.props.json +117 -0
- package/lib/lowcode/engine/meta/fieldregion.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldregion.props.json +123 -0
- package/lib/lowcode/engine/meta/fieldselect.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fieldselect.props.json +154 -0
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldstring.props.json +154 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.json +127 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +18 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +145 -0
- package/lib/lowcode/engine/meta/fieldupload.props.default.json +20 -0
- package/lib/lowcode/engine/meta/fieldupload.props.json +167 -0
- package/lib/lowcode/engine/meta/fielduser.props.default.json +21 -0
- package/lib/lowcode/engine/meta/fielduser.props.json +178 -0
- package/lib/lowcode/engine/meta/fieldyear.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldyear.props.json +133 -0
- 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 -214
- package/lib/lowcode/engine/provider/ContextProvider/index.js +114 -85
- package/lib/lowcode/engine/tools/dataProcess.js +70 -137
- package/lib/lowcode/engine/tools/helper.js +20 -72
- 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 +0 -32
- package/lib/lowcode/painter/DesignOperator.js +34 -40
- package/lib/lowcode/painter/DesignToolbar.js +13 -286
- package/lib/lowcode/painter/I18n.js +1 -1
- package/lib/lowcode/painter/Outline.js +24 -27
- package/lib/lowcode/painter/Panel.js +25 -66
- package/lib/lowcode/painter/components/ActionBindModal.js +58 -176
- package/lib/lowcode/painter/components/AdvancePanel.js +9 -86
- package/lib/lowcode/painter/components/AttrsPanel.js +39 -59
- package/lib/lowcode/painter/components/Collapse.js +29 -35
- package/lib/lowcode/painter/components/ColorInput.js +27 -29
- 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 +20 -20
- 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 -115
- 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 +5 -92
- 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/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 +10 -11
- 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 -143
- 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 -115
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/lib/lowcode/view/lc-components/Dialog/meta.json +120 -143
- 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 +12 -381
- 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 +7 -257
- 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/index.js +214 -396
- 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 -21
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Tree/index.js +48 -341
- package/lib/lowcode/view/lc-components/Tree/index.less +1 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +199 -356
- 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 +3 -7
- package/lib/upload/Form/index.js +1 -2
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +20 -18
- package/lib/upload/index.js +1 -8
- package/lib/utils/action.js +2 -2
- package/lib/utils/form.js +22 -21
- package/lib/utils/grid.js +3 -2
- 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/lowcode/engine/meta/local/local.zh-cn.js +0 -97
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +0 -219
- 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 -232
- package/es/lowcode/painter/panel-section/FieldsSetting.js +0 -374
- 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 -109
- 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/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 -138
- 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/lowcode/engine/meta/local/local.zh-cn.js +0 -103
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +0 -227
- 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 -239
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +0 -382
- 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 -115
- 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/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 -145
- 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
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
|
-
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { useRequest, useSetState, useDebounceFn, useMemoizedFn } from 'ahooks';
|
|
7
|
-
import { Modal } from 'luck-design/antd';
|
|
8
|
-
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
9
|
-
import { dropWhile, startsWith } from 'lodash';
|
|
10
|
-
import { useContext } from "../../../engine/provider/ContextProvider";
|
|
11
|
-
import SettingUI from "./SettingUI";
|
|
12
|
-
import { fetchUpdateUniqueField, fetchAttrs, fetchAddFieldAttrs, fetchUpdateFieldAttrs, fetchDelAttrs } from "../../../constants/api-url";
|
|
13
|
-
import { FIELD_SCOPES } from "../../../constants";
|
|
14
|
-
var _TRUE_FALSE_ = ['__TRUE__', '__FALSE__'];
|
|
15
|
-
var FieldSetting = function FieldSetting(_ref) {
|
|
16
|
-
var dispatch = _ref.dispatch,
|
|
17
|
-
nodeId = _ref.nodeId,
|
|
18
|
-
fieldData = _ref.fieldData,
|
|
19
|
-
component = _ref.component,
|
|
20
|
-
datasetId = _ref.datasetId,
|
|
21
|
-
moduleId = _ref.moduleId,
|
|
22
|
-
dataModelKey = _ref.dataModelKey,
|
|
23
|
-
onAliasChange = _ref.onAliasChange,
|
|
24
|
-
onChange = _ref.onChange;
|
|
25
|
-
var ctx = useContext();
|
|
26
|
-
var _useSetState = useSetState({}),
|
|
27
|
-
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
28
|
-
state = _useSetState2[0],
|
|
29
|
-
setState = _useSetState2[1];
|
|
30
|
-
|
|
31
|
-
// 默认值
|
|
32
|
-
var _useRequest = useRequest(fetchAttrs, {
|
|
33
|
-
defaultParams: [{
|
|
34
|
-
uid: fieldData.datasetFieldUid,
|
|
35
|
-
scope: FIELD_SCOPES.DEFAULT_VALUE
|
|
36
|
-
}],
|
|
37
|
-
onSuccess: function onSuccess(_ref2) {
|
|
38
|
-
var code = _ref2.code,
|
|
39
|
-
list = _ref2.list,
|
|
40
|
-
detail = _ref2.detail;
|
|
41
|
-
if (code === 1) {
|
|
42
|
-
var _detail$list$;
|
|
43
|
-
setState({
|
|
44
|
-
fieldDefaultValue: (_detail$list$ = detail[list[0]]) === null || _detail$list$ === void 0 ? void 0 : _detail$list$.ccmModuleFieldDefaultvalue
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}),
|
|
49
|
-
defaultValueLoading = _useRequest.loading,
|
|
50
|
-
defaultValueRefresh = _useRequest.refresh;
|
|
51
|
-
// 必填
|
|
52
|
-
var _useRequest2 = useRequest(fetchAttrs, {
|
|
53
|
-
defaultParams: [{
|
|
54
|
-
uid: fieldData.datasetFieldUid,
|
|
55
|
-
scope: FIELD_SCOPES.FIELD_REQUIRED
|
|
56
|
-
}],
|
|
57
|
-
onSuccess: function onSuccess(_ref3) {
|
|
58
|
-
var code = _ref3.code,
|
|
59
|
-
list = _ref3.list,
|
|
60
|
-
detail = _ref3.detail;
|
|
61
|
-
if (code === 1) {
|
|
62
|
-
var _detail$list$2;
|
|
63
|
-
setState({
|
|
64
|
-
fieldRequired: (_detail$list$2 = detail[list[0]]) === null || _detail$list$2 === void 0 || (_detail$list$2 = _detail$list$2.ccmOnoffConditions) === null || _detail$list$2 === void 0 ? void 0 : _detail$list$2[0]
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}),
|
|
69
|
-
requiredLoading = _useRequest2.loading,
|
|
70
|
-
requiredRefresh = _useRequest2.refresh;
|
|
71
|
-
// 是否可写
|
|
72
|
-
var _useRequest3 = useRequest(fetchAttrs, {
|
|
73
|
-
defaultParams: [{
|
|
74
|
-
uid: fieldData.datasetFieldUid,
|
|
75
|
-
scope: FIELD_SCOPES.FIELD_WRITABLE
|
|
76
|
-
}],
|
|
77
|
-
onSuccess: function onSuccess(_ref4) {
|
|
78
|
-
var code = _ref4.code,
|
|
79
|
-
list = _ref4.list,
|
|
80
|
-
detail = _ref4.detail;
|
|
81
|
-
if (code === 1) {
|
|
82
|
-
var _detail$list$3;
|
|
83
|
-
setState({
|
|
84
|
-
fieldWritable: (_detail$list$3 = detail[list[0]]) === null || _detail$list$3 === void 0 || (_detail$list$3 = _detail$list$3.ccmOnoffConditions) === null || _detail$list$3 === void 0 ? void 0 : _detail$list$3[0]
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}),
|
|
89
|
-
writableLoading = _useRequest3.loading,
|
|
90
|
-
writableRefresh = _useRequest3.refresh;
|
|
91
|
-
// 是否只读
|
|
92
|
-
var _useRequest4 = useRequest(fetchAttrs, {
|
|
93
|
-
defaultParams: [{
|
|
94
|
-
uid: fieldData.datasetFieldUid,
|
|
95
|
-
scope: FIELD_SCOPES.FIELD_READONLY
|
|
96
|
-
}],
|
|
97
|
-
onSuccess: function onSuccess(_ref5) {
|
|
98
|
-
var code = _ref5.code,
|
|
99
|
-
list = _ref5.list,
|
|
100
|
-
detail = _ref5.detail;
|
|
101
|
-
if (code === 1) {
|
|
102
|
-
var _detail$list$4;
|
|
103
|
-
setState({
|
|
104
|
-
fieldReadonly: (_detail$list$4 = detail[list[0]]) === null || _detail$list$4 === void 0 || (_detail$list$4 = _detail$list$4.ccmOnoffConditions) === null || _detail$list$4 === void 0 ? void 0 : _detail$list$4[0]
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}),
|
|
109
|
-
readonlyLoading = _useRequest4.loading,
|
|
110
|
-
readonlyRefresh = _useRequest4.refresh;
|
|
111
|
-
// 表格显示
|
|
112
|
-
var _useRequest5 = useRequest(fetchAttrs, {
|
|
113
|
-
defaultParams: [{
|
|
114
|
-
uid: fieldData.datasetFieldUid,
|
|
115
|
-
scope: FIELD_SCOPES.FIELD_TABLE_DISPLAY
|
|
116
|
-
}],
|
|
117
|
-
onSuccess: function onSuccess(_ref6) {
|
|
118
|
-
var code = _ref6.code,
|
|
119
|
-
list = _ref6.list,
|
|
120
|
-
detail = _ref6.detail;
|
|
121
|
-
if (code === 1) {
|
|
122
|
-
var _detail$list$5;
|
|
123
|
-
setState({
|
|
124
|
-
fieldTable: (_detail$list$5 = detail[list[0]]) === null || _detail$list$5 === void 0 || (_detail$list$5 = _detail$list$5.ccmOnoffConditions) === null || _detail$list$5 === void 0 ? void 0 : _detail$list$5[0]
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}),
|
|
129
|
-
tableLoading = _useRequest5.loading,
|
|
130
|
-
tableRefresh = _useRequest5.refresh;
|
|
131
|
-
// 表单显示
|
|
132
|
-
var _useRequest6 = useRequest(fetchAttrs, {
|
|
133
|
-
defaultParams: [{
|
|
134
|
-
uid: fieldData.datasetFieldUid,
|
|
135
|
-
scope: FIELD_SCOPES.FIELD_FORM_DISPLAY
|
|
136
|
-
}],
|
|
137
|
-
onSuccess: function onSuccess(_ref7) {
|
|
138
|
-
var code = _ref7.code,
|
|
139
|
-
list = _ref7.list,
|
|
140
|
-
detail = _ref7.detail;
|
|
141
|
-
if (code === 1) {
|
|
142
|
-
var _detail$list$6;
|
|
143
|
-
setState({
|
|
144
|
-
fieldForm: (_detail$list$6 = detail[list[0]]) === null || _detail$list$6 === void 0 || (_detail$list$6 = _detail$list$6.ccmOnoffConditions) === null || _detail$list$6 === void 0 ? void 0 : _detail$list$6[0]
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}),
|
|
149
|
-
formLoading = _useRequest6.loading,
|
|
150
|
-
formRefresh = _useRequest6.refresh;
|
|
151
|
-
var _useRequest7 = useRequest(fetchUpdateUniqueField, {
|
|
152
|
-
manual: true
|
|
153
|
-
}),
|
|
154
|
-
runFetchUpdateUniqueField = _useRequest7.runAsync;
|
|
155
|
-
var handleUIChange = useMemoizedFn(function (key, val) {
|
|
156
|
-
dispatch({
|
|
157
|
-
type: 'edit',
|
|
158
|
-
payload: {
|
|
159
|
-
id: fieldData.uid,
|
|
160
|
-
data: _defineProperty({}, key, val)
|
|
161
|
-
},
|
|
162
|
-
callback: function callback(newFields) {
|
|
163
|
-
if (component === 'table') {
|
|
164
|
-
var gridApi = ctx.componentMap.get(nodeId).api.self.ref.current.gridApi;
|
|
165
|
-
var col = gridApi.columnApi.getColumn(fieldData.field);
|
|
166
|
-
if ('headerAlign' === key) {
|
|
167
|
-
var _headerClassFunc = col.colDef.headerClass;
|
|
168
|
-
col.colDef.headerClass = function (params) {
|
|
169
|
-
var classes = _headerClassFunc(params);
|
|
170
|
-
var temp = dropWhile(classes, function (c) {
|
|
171
|
-
return startsWith(c, 'luck-header-label-');
|
|
172
|
-
});
|
|
173
|
-
temp.push("luck-header-label-".concat(val));
|
|
174
|
-
return temp;
|
|
175
|
-
};
|
|
176
|
-
gridApi.api.refreshHeader();
|
|
177
|
-
} else if ('align' === key) {
|
|
178
|
-
var _cellStyleFunc = col.colDef.cellStyle;
|
|
179
|
-
col.colDef.cellStyle = function (params) {
|
|
180
|
-
var cellStyle = _cellStyleFunc(params);
|
|
181
|
-
if ('center' === val) {
|
|
182
|
-
cellStyle.justifyContent = 'center';
|
|
183
|
-
cellStyle.textAlign = 'center';
|
|
184
|
-
} else if ('right' === val) {
|
|
185
|
-
cellStyle.justifyContent = 'flex-end';
|
|
186
|
-
cellStyle.textAlign = 'end';
|
|
187
|
-
} else if ('left' === val) {
|
|
188
|
-
cellStyle.justifyContent = 'flex-start';
|
|
189
|
-
cellStyle.textAlign = 'start';
|
|
190
|
-
}
|
|
191
|
-
return cellStyle;
|
|
192
|
-
};
|
|
193
|
-
gridApi.api.refreshCells({
|
|
194
|
-
columns: [fieldData.field],
|
|
195
|
-
force: true
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
onChange(newFields);
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
});
|
|
203
|
-
var _useDebounceFn = useDebounceFn(function (key, val) {
|
|
204
|
-
if (key === 'width') {
|
|
205
|
-
handleUIChange(key, val);
|
|
206
|
-
} else if (key === 'note' || key === 'tip' || key === 'placeholder') {
|
|
207
|
-
handleUIChange(key, val);
|
|
208
|
-
}
|
|
209
|
-
}, {
|
|
210
|
-
wait: 400
|
|
211
|
-
}),
|
|
212
|
-
runDebounce = _useDebounceFn.run;
|
|
213
|
-
var run = useMemoizedFn( /*#__PURE__*/function () {
|
|
214
|
-
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(key, val) {
|
|
215
|
-
var _yield$fetchDelAttrs, code, mapping, _stateItem, request, c, d, _yield$request, _code;
|
|
216
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
217
|
-
while (1) switch (_context.prev = _context.next) {
|
|
218
|
-
case 0:
|
|
219
|
-
if (!(key === 'isEqual')) {
|
|
220
|
-
_context.next = 5;
|
|
221
|
-
break;
|
|
222
|
-
}
|
|
223
|
-
_context.next = 3;
|
|
224
|
-
return runFetchUpdateUniqueField(_defineProperty({
|
|
225
|
-
moduleDatasetUid: datasetId,
|
|
226
|
-
moduleUid: moduleId
|
|
227
|
-
}, val ? 'uniqueFieldUid' : 'noUniqueFieldUid', fieldData.uid));
|
|
228
|
-
case 3:
|
|
229
|
-
_context.next = 34;
|
|
230
|
-
break;
|
|
231
|
-
case 5:
|
|
232
|
-
if (!(key === 'align' || key === 'headerAlign' || key === 'pinned' || key === 'tip')) {
|
|
233
|
-
_context.next = 9;
|
|
234
|
-
break;
|
|
235
|
-
}
|
|
236
|
-
handleUIChange(key, val);
|
|
237
|
-
_context.next = 34;
|
|
238
|
-
break;
|
|
239
|
-
case 9:
|
|
240
|
-
if (!(key === 'col' || key === 'row')) {
|
|
241
|
-
_context.next = 13;
|
|
242
|
-
break;
|
|
243
|
-
}
|
|
244
|
-
handleUIChange(key, val);
|
|
245
|
-
_context.next = 34;
|
|
246
|
-
break;
|
|
247
|
-
case 13:
|
|
248
|
-
if (!(key === 'delRule')) {
|
|
249
|
-
_context.next = 21;
|
|
250
|
-
break;
|
|
251
|
-
}
|
|
252
|
-
_context.next = 16;
|
|
253
|
-
return fetchDelAttrs({
|
|
254
|
-
moduleDatasetUid: fieldData.datasetFieldUid,
|
|
255
|
-
ccmModuleFieldVerifies: [{
|
|
256
|
-
uid: val
|
|
257
|
-
}],
|
|
258
|
-
scope: FIELD_SCOPES.CHECK_RULES
|
|
259
|
-
});
|
|
260
|
-
case 16:
|
|
261
|
-
_yield$fetchDelAttrs = _context.sent;
|
|
262
|
-
code = _yield$fetchDelAttrs.code;
|
|
263
|
-
return _context.abrupt("return", code === 1);
|
|
264
|
-
case 21:
|
|
265
|
-
mapping = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, FIELD_SCOPES.FIELD_REQUIRED, {
|
|
266
|
-
key: 'fieldRequired',
|
|
267
|
-
refresh: requiredRefresh
|
|
268
|
-
}), FIELD_SCOPES.FIELD_WRITABLE, {
|
|
269
|
-
key: 'fieldWritable',
|
|
270
|
-
refresh: writableRefresh
|
|
271
|
-
}), FIELD_SCOPES.FIELD_READONLY, {
|
|
272
|
-
key: 'fieldReadonly',
|
|
273
|
-
refresh: readonlyRefresh
|
|
274
|
-
}), FIELD_SCOPES.FIELD_TABLE_DISPLAY, {
|
|
275
|
-
key: 'fieldTable',
|
|
276
|
-
refresh: tableRefresh
|
|
277
|
-
}), FIELD_SCOPES.FIELD_FORM_DISPLAY, {
|
|
278
|
-
key: 'fieldForm',
|
|
279
|
-
refresh: formRefresh
|
|
280
|
-
});
|
|
281
|
-
_stateItem = state[mapping[key].key];
|
|
282
|
-
request = !!_stateItem ? fetchUpdateFieldAttrs : fetchAddFieldAttrs;
|
|
283
|
-
setState(_defineProperty({}, mapping[key].key, val));
|
|
284
|
-
c = {
|
|
285
|
-
conditionType: val ? _TRUE_FALSE_[0] : _TRUE_FALSE_[1],
|
|
286
|
-
config: val ? '是' : '否',
|
|
287
|
-
showconfig: val ? '是' : '否'
|
|
288
|
-
};
|
|
289
|
-
if (_stateItem) c.uid = _stateItem.uid;
|
|
290
|
-
d = {
|
|
291
|
-
dataModelKey: dataModelKey,
|
|
292
|
-
moduleDatasetUid: datasetId,
|
|
293
|
-
moduleUid: moduleId,
|
|
294
|
-
scope: key,
|
|
295
|
-
ccmOnoffConditions: [c]
|
|
296
|
-
};
|
|
297
|
-
if (!_stateItem) {
|
|
298
|
-
d.datasetBusinessUids = [fieldData.uid];
|
|
299
|
-
}
|
|
300
|
-
_context.next = 31;
|
|
301
|
-
return request(d);
|
|
302
|
-
case 31:
|
|
303
|
-
_yield$request = _context.sent;
|
|
304
|
-
_code = _yield$request.code;
|
|
305
|
-
if (_code === 1) {
|
|
306
|
-
mapping[key].refresh();
|
|
307
|
-
}
|
|
308
|
-
case 34:
|
|
309
|
-
case "end":
|
|
310
|
-
return _context.stop();
|
|
311
|
-
}
|
|
312
|
-
}, _callee);
|
|
313
|
-
}));
|
|
314
|
-
return function (_x, _x2) {
|
|
315
|
-
return _ref8.apply(this, arguments);
|
|
316
|
-
};
|
|
317
|
-
}());
|
|
318
|
-
var handleFieldAttrsModalClose = useMemoizedFn(function (scope, success) {
|
|
319
|
-
if (success) {
|
|
320
|
-
FIELD_SCOPES.DEFAULT_VALUE === scope && defaultValueRefresh();
|
|
321
|
-
FIELD_SCOPES.FIELD_REQUIRED === scope && requiredRefresh();
|
|
322
|
-
FIELD_SCOPES.FIELD_WRITABLE === scope && writableRefresh();
|
|
323
|
-
FIELD_SCOPES.FIELD_READONLY === scope && readonlyRefresh();
|
|
324
|
-
FIELD_SCOPES.FIELD_TABLE_DISPLAY === scope && tableRefresh();
|
|
325
|
-
FIELD_SCOPES.FIELD_FORM_DISPLAY === scope && formRefresh();
|
|
326
|
-
}
|
|
327
|
-
});
|
|
328
|
-
return /*#__PURE__*/React.createElement(SettingUI, {
|
|
329
|
-
loading: defaultValueLoading || requiredLoading || writableLoading || readonlyLoading || tableLoading || formLoading,
|
|
330
|
-
data: fieldData,
|
|
331
|
-
conditionsValue: state,
|
|
332
|
-
dataModelKey: dataModelKey,
|
|
333
|
-
datasetId: datasetId,
|
|
334
|
-
moduleId: moduleId,
|
|
335
|
-
component: component,
|
|
336
|
-
runDebounce: runDebounce,
|
|
337
|
-
run: run,
|
|
338
|
-
onAliasChange: onAliasChange,
|
|
339
|
-
onFieldAttrsModalClose: handleFieldAttrsModalClose
|
|
340
|
-
});
|
|
341
|
-
};
|
|
342
|
-
export default FieldSetting;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export var getFrontRules = function getFrontRules(property) {
|
|
2
|
-
var rules = [];
|
|
3
|
-
switch (property) {
|
|
4
|
-
case 'number':
|
|
5
|
-
case 'money':
|
|
6
|
-
case 'decimal':
|
|
7
|
-
case 'sint':
|
|
8
|
-
rules = [{
|
|
9
|
-
label: '最小值',
|
|
10
|
-
key: 'min',
|
|
11
|
-
defaultCode: "function min(cValue) { \n return 0; // 返回数字 \n}"
|
|
12
|
-
}, {
|
|
13
|
-
label: '最大值',
|
|
14
|
-
key: 'max',
|
|
15
|
-
defaultCode: "function max(cValue) { \n return 100; // 返回数字 \n}"
|
|
16
|
-
}];
|
|
17
|
-
break;
|
|
18
|
-
case 'string':
|
|
19
|
-
rules = [{
|
|
20
|
-
label: '长度',
|
|
21
|
-
key: 'length',
|
|
22
|
-
defaultCode: "function length(cValue) { \n return 100; // 返回数字 \n}"
|
|
23
|
-
}, {
|
|
24
|
-
label: '邮箱',
|
|
25
|
-
key: 'email',
|
|
26
|
-
noCode: true
|
|
27
|
-
}, {
|
|
28
|
-
label: '身份证',
|
|
29
|
-
key: 'idcard',
|
|
30
|
-
noCode: true
|
|
31
|
-
}, {
|
|
32
|
-
label: '手机号码',
|
|
33
|
-
key: 'mobile',
|
|
34
|
-
noCode: true
|
|
35
|
-
}];
|
|
36
|
-
break;
|
|
37
|
-
case 'text':
|
|
38
|
-
rules = [{
|
|
39
|
-
label: '长度',
|
|
40
|
-
key: 'length',
|
|
41
|
-
defaultCode: "function length(cValue) { \n return 100; // 返回数字 \n}"
|
|
42
|
-
}];
|
|
43
|
-
break;
|
|
44
|
-
default:
|
|
45
|
-
;
|
|
46
|
-
}
|
|
47
|
-
rules.push({
|
|
48
|
-
label: '自定义',
|
|
49
|
-
key: 'rules',
|
|
50
|
-
defaultCode: "function validator(cValue, rule, value, callback) { \n if(!value) callback('errorMsg'); \n callback(); \n}"
|
|
51
|
-
});
|
|
52
|
-
return rules;
|
|
53
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["blockId", "onChange"];
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { useMemoizedFn } from 'ahooks';
|
|
6
|
-
import WidthHeight from "./WidthHeight";
|
|
7
|
-
import { useContext } from "../../engine/provider/ContextProvider";
|
|
8
|
-
var ActionsColumnWidth = function ActionsColumnWidth(_ref) {
|
|
9
|
-
var blockId = _ref.blockId,
|
|
10
|
-
onChange = _ref.onChange,
|
|
11
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
var ctx = useContext();
|
|
13
|
-
var handleChange = useMemoizedFn(function (value) {
|
|
14
|
-
var _ctx$componentMap$get2;
|
|
15
|
-
var _ctx$componentMap$get = (_ctx$componentMap$get2 = ctx.componentMap.get(props.nodeId)) === null || _ctx$componentMap$get2 === void 0 ? void 0 : _ctx$componentMap$get2.api.getForm().getFormRef(blockId).formRef.current,
|
|
16
|
-
gridApi = _ctx$componentMap$get.gridApi;
|
|
17
|
-
var col = gridApi.columnApi.getColumn('luck-actions');
|
|
18
|
-
gridApi.columnApi.setColumnWidth(col, value || 160);
|
|
19
|
-
onChange && onChange(value);
|
|
20
|
-
});
|
|
21
|
-
return /*#__PURE__*/React.createElement(WidthHeight, _extends({
|
|
22
|
-
onChange: handleChange
|
|
23
|
-
}, props));
|
|
24
|
-
};
|
|
25
|
-
export default ActionsColumnWidth;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useMemoizedFn } from 'ahooks';
|
|
3
|
-
import { Icon } from 'luck-design/antd';
|
|
4
|
-
var BlockEditor = function BlockEditor(_ref) {
|
|
5
|
-
var blockName = _ref.blockName,
|
|
6
|
-
blockId = _ref.blockId,
|
|
7
|
-
next = _ref.next;
|
|
8
|
-
var handleClick = useMemoizedFn(function (e) {
|
|
9
|
-
e.stopPropagation();
|
|
10
|
-
next && next({
|
|
11
|
-
blockId: blockId
|
|
12
|
-
});
|
|
13
|
-
});
|
|
14
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
15
|
-
onClick: handleClick,
|
|
16
|
-
style: next ? {
|
|
17
|
-
color: 'var(--ant-primary-color)',
|
|
18
|
-
cursor: 'pointer'
|
|
19
|
-
} : {}
|
|
20
|
-
}, blockName || blockId, next && /*#__PURE__*/React.createElement(Icon, {
|
|
21
|
-
type: "setting",
|
|
22
|
-
style: {
|
|
23
|
-
marginLeft: 4
|
|
24
|
-
}
|
|
25
|
-
}));
|
|
26
|
-
};
|
|
27
|
-
export default BlockEditor;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Icon } from 'luck-design/antd';
|
|
4
|
-
import { isNil } from 'lodash';
|
|
5
|
-
import Collapse from "../../components/Collapse";
|
|
6
|
-
var BlockEditorItem = function BlockEditorItem(_ref) {
|
|
7
|
-
var children = _ref.children,
|
|
8
|
-
onDelete = _ref.onDelete,
|
|
9
|
-
name = _ref.name,
|
|
10
|
-
setNodeRef = _ref.setNodeRef,
|
|
11
|
-
style = _ref.style,
|
|
12
|
-
setActivatorNodeRef = _ref.setActivatorNodeRef,
|
|
13
|
-
attributes = _ref.attributes,
|
|
14
|
-
listeners = _ref.listeners,
|
|
15
|
-
draggable = _ref.draggable;
|
|
16
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
ref: setNodeRef,
|
|
18
|
-
style: style
|
|
19
|
-
}, /*#__PURE__*/React.createElement(Collapse, {
|
|
20
|
-
label: /*#__PURE__*/React.createElement("div", null, draggable ? /*#__PURE__*/React.createElement("span", _extends({
|
|
21
|
-
ref: setActivatorNodeRef
|
|
22
|
-
}, attributes, listeners), /*#__PURE__*/React.createElement("svg", {
|
|
23
|
-
fill: "currentColor",
|
|
24
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
25
|
-
width: "16",
|
|
26
|
-
height: "12",
|
|
27
|
-
viewBox: "0 0 5 12",
|
|
28
|
-
style: {
|
|
29
|
-
verticalAlign: 'middle'
|
|
30
|
-
}
|
|
31
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
32
|
-
d: "M0.499972716,6 L1.50002728,6 C1.77615459,6 2,6.22384541 2,6.49997272 C2,6.77610002 1.77615459,6.99994543 1.50002728,6.99994543 L0.499972716,6.99994543 C0.22384541,6.99994543 3.38158422e-17,6.77610002 0,6.49997272 C-3.38158422e-17,6.22384541 0.22384541,6 0.499972716,6 Z M0.499972716,3 L1.50002728,3 C1.77615459,3 2,3.22384541 2,3.49997272 C2,3.77610002 1.77615459,3.99994543 1.50002728,3.99994543 L0.499972716,3.99994543 C0.22384541,3.99994543 3.38158422e-17,3.77610002 0,3.49997272 C-3.38158422e-17,3.22384541 0.22384541,3 0.499972716,3 Z M0.499972716,7.28787148e-18 L1.50002728,5.55666624e-14 C1.77615459,7.07214574e-14 2,0.22384541 2,0.499972716 C2,0.776100022 1.77615459,0.999945432 1.50002728,0.999945432 L0.499972716,0.999945432 C0.22384541,0.999945432 3.38158422e-17,0.776100022 0,0.499972716 C-3.38158422e-17,0.22384541 0.22384541,5.0723721e-17 0.499972716,0 Z M0.5,9.00002729 L1.5,9.00002729 C1.77614237,9.00002729 2,9.22388491 2,9.50002729 C2,9.77616966 1.77614237,10.0000273 1.5,10.0000273 L0.5,10.0000273 C0.223857625,10.0000273 3.38176876e-17,9.77616966 0,9.50002729 C-3.38176876e-17,9.22388491 0.223857625,9.00002729 0.5,9.00002729 Z M0.5,12.0000273 L1.5,12.0000273 C1.77614237,12.0000273 2,12.2238849 2,12.5000273 C2,12.7761697 1.77614237,13.0000273 1.5,13.0000273 L0.5,13.0000273 C0.223857625,13.0000273 3.38176876e-17,12.7761697 0,12.5000273 C-3.38176876e-17,12.2238849 0.223857625,12.0000273 0.5,12.0000273 Z M0.5,15.0000273 L1.5,15.0000273 C1.77614237,15.0000273 2,15.2238849 2,15.5000273 C2,15.7761697 1.77614237,16.0000273 1.5,16.0000273 L0.5,16.0000273 C0.223857625,16.0000273 3.38176876e-17,15.7761697 0,15.5000273 C-3.38176876e-17,15.2238849 0.223857625,15.0000273 0.5,15.0000273 Z M3.49997272,6 L4.50002728,6 C4.77615459,6 5,6.22384541 5,6.49997272 C5,6.77610002 4.77615459,6.99994543 4.50002728,6.99994543 L3.49997272,6.99994543 C3.22384541,6.99994543 3,6.77610002 3,6.49997272 C3,6.22384541 3.22384541,6 3.49997272,6 Z M3.49997272,3 L4.50002728,3 C4.77615459,3 5,3.22384541 5,3.49997272 C5,3.77610002 4.77615459,3.99994543 4.50002728,3.99994543 L3.49997272,3.99994543 C3.22384541,3.99994543 3,3.77610002 3,3.49997272 C3,3.22384541 3.22384541,3 3.49997272,3 Z M3.49997272,7.28787148e-18 L4.50002728,5.55666624e-14 C4.77615459,7.07214574e-14 5,0.22384541 5,0.499972716 C5,0.776100022 4.77615459,0.999945432 4.50002728,0.999945432 L3.49997272,0.999945432 C3.22384541,0.999945432 3,0.776100022 3,0.499972716 C3,0.22384541 3.22384541,5.0723721e-17 3.49997272,0 Z M3.5,9.00002729 L4.5,9.00002729 C4.77614237,9.00002729 5,9.22388491 5,9.50002729 C5,9.77616966 4.77614237,10.0000273 4.5,10.0000273 L3.5,10.0000273 C3.22385763,10.0000273 3,9.77616966 3,9.50002729 C3,9.22388491 3.22385763,9.00002729 3.5,9.00002729 Z M3.5,12.0000273 L4.5,12.0000273 C4.77614237,12.0000273 5,12.2238849 5,12.5000273 C5,12.7761697 4.77614237,13.0000273 4.5,13.0000273 L3.5,13.0000273 C3.22385763,13.0000273 3,12.7761697 3,12.5000273 C3,12.2238849 3.22385763,12.0000273 3.5,12.0000273 Z M3.5,15.0000273 L4.5,15.0000273 C4.77614237,15.0000273 5,15.2238849 5,15.5000273 C5,15.7761697 4.77614237,16.0000273 4.5,16.0000273 L3.5,16.0000273 C3.22385763,16.0000273 3,15.7761697 3,15.5000273 C3,15.2238849 3.22385763,15.0000273 3.5,15.0000273 Z"
|
|
33
|
-
}))) : null, name),
|
|
34
|
-
extraRender: isNil(onDelete) ? false : function () {
|
|
35
|
-
return /*#__PURE__*/React.createElement(Icon, {
|
|
36
|
-
type: "delete",
|
|
37
|
-
style: {
|
|
38
|
-
color: 'var(--luck-color-danger)'
|
|
39
|
-
},
|
|
40
|
-
onClick: onDelete
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}, children));
|
|
44
|
-
};
|
|
45
|
-
export default BlockEditorItem;
|