@luck-design-biz/luckda 0.0.24-2 → 0.0.25-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/es/components/Builder/index.js +6 -4
- package/es/components/IconFont/index.js +5 -0
- package/es/components/LDActions/index.js +133 -0
- package/es/components/LDActions/index.less +65 -0
- package/es/components/LdAutoForm/index.js +1 -1
- package/es/components/LdCom/index.js +2 -1
- package/es/components/LdFormList/index.js +15 -10
- package/es/components/LdGrid/index.js +14 -8
- package/es/components/LdGridForm/index.js +5 -4
- package/es/components/LdRuntimeCom/index.js +20 -7
- package/es/components/LdTree/index.js +112 -31
- package/es/components/LdTree/index.less +6 -1
- package/es/helper/ldBuilder.js +28 -12
- package/es/helper/ldComBuild.js +29 -14
- package/es/index.js +1 -0
- package/es/locales/zh-CN.js +221 -0
- package/es/lowcode/constants/api-url.js +380 -262
- package/es/lowcode/constants/event-topics.js +4 -0
- package/es/lowcode/constants/index.js +30 -2
- package/es/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/es/lowcode/engine/meta/box.props.default.json +3 -2
- package/es/lowcode/engine/meta/box.props.json +1 -3
- package/es/lowcode/engine/meta/button.props.default.json +5 -2
- package/es/lowcode/engine/meta/button.props.json +8 -8
- package/es/lowcode/engine/meta/cardlist.props.default.json +4 -2
- package/es/lowcode/engine/meta/cardlist.props.json +1 -2
- package/es/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/es/lowcode/engine/meta/dialog.props.json +0 -1
- package/es/lowcode/engine/meta/drawer.props.default.json +4 -2
- package/es/lowcode/engine/meta/drawer.props.json +0 -1
- package/es/lowcode/engine/meta/form.props.default.json +53 -4
- package/es/lowcode/engine/meta/form.props.json +584 -55
- package/es/lowcode/engine/meta/iframe.props.default.json +1 -1
- package/es/lowcode/engine/meta/iframe.props.json +1 -1
- package/es/lowcode/engine/meta/image.props.default.json +5 -2
- package/es/lowcode/engine/meta/image.props.json +1 -1
- package/es/lowcode/engine/meta/imex.props.default.json +5 -2
- package/es/lowcode/engine/meta/imex.props.json +1 -1
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +152 -26
- package/es/lowcode/engine/meta/jsx.props.default.json +2 -1
- package/es/lowcode/engine/meta/jsx.props.json +10 -5
- package/es/lowcode/engine/meta/layout.props.default.json +5 -2
- package/es/lowcode/engine/meta/layout.props.json +1 -2
- package/es/lowcode/engine/meta/link.props.default.json +5 -2
- package/es/lowcode/engine/meta/link.props.json +2 -2
- package/es/lowcode/engine/meta/local/local.zh-cn.js +97 -0
- package/es/lowcode/engine/meta/page.props.default.json +12 -0
- package/es/lowcode/engine/meta/page.props.json +49 -0
- package/es/lowcode/engine/meta/pagecontent.props.default.json +6 -0
- package/es/lowcode/engine/meta/pagecontent.props.json +7 -0
- package/es/lowcode/engine/meta/pagefooter.props.default.json +6 -0
- package/es/lowcode/engine/meta/pagefooter.props.json +7 -0
- package/es/lowcode/engine/meta/pageheader.props.default.json +6 -0
- package/es/lowcode/engine/meta/pageheader.props.json +7 -0
- package/es/lowcode/engine/meta/section.props.default.json +5 -2
- package/es/lowcode/engine/meta/section.props.json +1 -1
- package/es/lowcode/engine/meta/split.props.default.json +9 -4
- package/es/lowcode/engine/meta/split.props.json +14 -29
- package/es/lowcode/engine/meta/table.props.default.json +23 -3
- package/es/lowcode/engine/meta/table.props.json +257 -55
- package/es/lowcode/engine/meta/tabs.props.default.json +16 -9
- package/es/lowcode/engine/meta/tabs.props.json +57 -81
- package/es/lowcode/engine/meta/text.props.default.json +5 -2
- package/es/lowcode/engine/meta/text.props.json +1 -1
- package/es/lowcode/engine/meta/tree.props.default.json +20 -7
- package/es/lowcode/engine/meta/tree.props.json +225 -79
- package/es/lowcode/engine/provider/ContextProvider/index.js +169 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +161 -0
- package/es/lowcode/engine/tools/dataProcess.js +64 -2
- package/es/lowcode/engine/tools/helper.js +96 -19
- package/es/lowcode/engine/tools/useCanvasRender.js +75 -0
- package/es/lowcode/engine/tools/usePromiseState.js +8 -6
- package/es/lowcode/engine/tools/useTodo.js +78 -0
- package/es/lowcode/index.js +1 -0
- package/es/lowcode/painter/Components.js +47 -21
- package/es/lowcode/painter/DesignOperator.js +47 -28
- package/es/lowcode/painter/DesignToolbar.js +86 -15
- package/es/lowcode/painter/I18n.js +2 -2
- package/es/lowcode/painter/Outline.js +31 -26
- package/es/lowcode/painter/Panel.js +100 -142
- package/es/lowcode/painter/Ribbon.js +1 -1
- package/es/lowcode/painter/components/ActionBindModal.js +293 -0
- package/es/lowcode/painter/components/AdvancePanel.js +140 -0
- package/es/lowcode/painter/components/AttrsPanel.js +145 -0
- package/es/lowcode/painter/components/Collapse.js +20 -9
- package/es/lowcode/painter/components/ColorInput.js +5 -3
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +137 -0
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +47 -0
- package/es/lowcode/painter/components/DragDrop/Overlay.js +8 -0
- package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +67 -0
- package/es/lowcode/painter/components/FieldSelector.js +44 -0
- package/es/lowcode/painter/components/ListEditor.js +18 -9
- package/es/lowcode/painter/components/PanelItem.js +1 -1
- package/es/lowcode/painter/components/PopConfirm.js +10 -3
- package/es/lowcode/painter/components/SortBox.js +11 -4
- package/es/lowcode/painter/components/TreeEditor.js +13 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +14 -2
- package/es/lowcode/painter/components/code-editor/JSEditor.js +25 -14
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +41 -0
- package/es/lowcode/painter/components/field-setting/BatchSetting.js +144 -0
- package/es/lowcode/painter/components/field-setting/CheckRules.js +126 -0
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +287 -0
- package/es/lowcode/painter/components/field-setting/FieldAttrsModal.js +290 -0
- package/es/lowcode/painter/components/field-setting/FieldDefaultValue.js +63 -0
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +116 -0
- package/es/lowcode/painter/components/field-setting/SettingUI.js +419 -0
- package/es/lowcode/painter/components/field-setting/index.js +363 -0
- package/es/lowcode/painter/index.js +3 -1
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +101 -0
- package/es/lowcode/painter/{components/actions-editor → panel-section/ActionsEditor}/index.js +74 -13
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +24 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +44 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +202 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +115 -43
- package/es/lowcode/painter/panel-section/FieldsSetting.js +308 -0
- package/es/lowcode/painter/panel-section/Icon.js +14 -14
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +111 -0
- package/es/lowcode/painter/panel-section/IconSelector.js +5 -2
- package/es/lowcode/painter/panel-section/ImpExp.js +91 -0
- package/es/lowcode/painter/panel-section/JSEditor.js +49 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +6 -7
- package/es/lowcode/painter/panel-section/SerialsSelector.js +44 -0
- package/es/lowcode/painter/panel-section/SplitDisplay.js +248 -0
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -22
- package/es/lowcode/painter/panel-section/TabItems.js +46 -30
- package/es/lowcode/painter/panel-section/TableTopFilter.js +306 -0
- package/es/lowcode/painter/panel-section/TableZebra.js +66 -6
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +78 -0
- package/es/lowcode/painter/services/toolbar.js +25 -0
- package/es/lowcode/painter/style/action-bind-modal.less +102 -0
- package/es/lowcode/painter/style/collapse.less +6 -0
- package/es/lowcode/painter/style/components.less +5 -4
- package/es/lowcode/painter/style/design.less +2 -3
- package/es/lowcode/painter/style/dragdrop.less +10 -0
- package/es/lowcode/painter/style/fields-setting.less +25 -0
- package/es/lowcode/painter/style/impexp.less +7 -0
- package/es/lowcode/painter/style/panel-attrs.less +43 -0
- package/es/lowcode/painter/style/panel.less +6 -37
- package/es/lowcode/painter/style/pop-confirm.less +9 -2
- package/es/lowcode/painter/style/split-display.less +28 -0
- package/es/lowcode/painter/style/treedragdrop.less +19 -0
- package/es/lowcode/preview/index.js +14 -0
- package/es/lowcode/view/Canvas.js +34 -139
- package/es/lowcode/view/Loading.js +6 -2
- package/es/lowcode/view/Page.js +16 -14
- package/es/lowcode/view/lc-components/Box/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Box/index.js +11 -2
- package/es/lowcode/view/lc-components/Box/index.less +0 -1
- package/es/lowcode/view/lc-components/Box/meta.json +1 -3
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +8 -10
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +3 -6
- package/es/lowcode/view/lc-components/Button/FunctionPreview.js +6 -0
- package/es/lowcode/view/lc-components/Button/index.js +43 -20
- package/es/lowcode/view/lc-components/Button/meta.json +8 -8
- package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/CardList/index.js +1 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +1 -2
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +17 -23
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +1 -0
- package/es/lowcode/view/lc-components/Dialog/meta.json +0 -1
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +4 -2
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +17 -0
- package/es/lowcode/view/lc-components/Drawer/index.less +3 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +0 -1
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +31 -2
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Form/index.js +114 -8
- package/es/lowcode/view/lc-components/Form/index.less +5 -0
- package/es/lowcode/view/lc-components/Form/meta.json +534 -55
- package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +1 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +1 -1
- package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +1 -1
- package/es/lowcode/view/lc-components/Image/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Image/index.js +1 -0
- package/es/lowcode/view/lc-components/Image/meta.json +1 -1
- package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/JSX/index.js +19 -6
- package/es/lowcode/view/lc-components/JSX/meta.json +8 -5
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +19 -17
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +3 -8
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Layout/index.js +1 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +1 -2
- package/es/lowcode/view/lc-components/Link/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Link/index.js +1 -0
- package/es/lowcode/view/lc-components/Link/meta.json +2 -2
- package/es/lowcode/view/lc-components/Page/meta.json +49 -0
- package/es/lowcode/view/lc-components/PageContent/index.js +53 -0
- package/es/lowcode/view/lc-components/PageContent/meta.json +9 -0
- package/es/lowcode/view/lc-components/PageFooter/index.js +38 -0
- package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -0
- package/es/lowcode/view/lc-components/PageHeader/index.js +40 -0
- package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -0
- package/es/lowcode/view/lc-components/PageModal/index.js +23 -0
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Section/index.js +1 -0
- package/es/lowcode/view/lc-components/Section/meta.json +1 -1
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +59 -2
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Split/index.js +46 -7
- package/es/lowcode/view/lc-components/Split/meta.json +10 -29
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +41 -4
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Table/components/TopFilter.js +96 -0
- package/es/lowcode/view/lc-components/Table/index.js +365 -49
- package/es/lowcode/view/lc-components/Table/meta.json +229 -55
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +72 -2
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +113 -10
- package/es/lowcode/view/lc-components/Tabs/meta.json +53 -81
- package/es/lowcode/view/lc-components/Text/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Text/index.js +1 -0
- package/es/lowcode/view/lc-components/Text/meta.json +1 -1
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +63 -3
- package/es/lowcode/view/lc-components/Tree/FunctionPreview.js +26 -0
- package/es/lowcode/view/lc-components/Tree/index.js +323 -8
- package/es/lowcode/view/lc-components/Tree/index.less +5 -0
- package/es/lowcode/view/lc-components/Tree/meta.json +224 -80
- package/es/lowcode/view/lc-components/Wrapper.js +44 -27
- package/es/lowcode/view/style/page.less +3 -0
- package/es/services.js +5 -3
- package/es/utils/grid.js +2 -2
- package/lib/components/Builder/index.js +4 -1
- package/lib/components/IconFont/index.js +11 -0
- package/lib/components/LDActions/index.js +141 -0
- package/lib/components/LDActions/index.less +65 -0
- package/lib/components/LdAutoForm/index.js +1 -1
- package/lib/components/LdCom/index.js +2 -1
- package/lib/components/LdFormList/index.js +14 -9
- package/lib/components/LdGrid/index.js +13 -7
- package/lib/components/LdGridForm/index.js +4 -3
- package/lib/components/LdRuntimeCom/index.js +21 -8
- package/lib/components/LdTree/index.js +112 -31
- package/lib/components/LdTree/index.less +6 -1
- package/lib/helper/ldBuilder.js +28 -12
- package/lib/helper/ldComBuild.js +27 -12
- package/lib/index.js +8 -0
- package/lib/locales/zh-CN.js +227 -0
- package/lib/lowcode/constants/api-url.js +382 -263
- package/lib/lowcode/constants/event-topics.js +5 -1
- package/lib/lowcode/constants/index.js +31 -3
- package/lib/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/lib/lowcode/engine/meta/box.props.default.json +3 -2
- package/lib/lowcode/engine/meta/box.props.json +1 -3
- package/lib/lowcode/engine/meta/button.props.default.json +5 -2
- package/lib/lowcode/engine/meta/button.props.json +8 -8
- package/lib/lowcode/engine/meta/cardlist.props.default.json +4 -2
- package/lib/lowcode/engine/meta/cardlist.props.json +1 -2
- package/lib/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/lib/lowcode/engine/meta/dialog.props.json +0 -1
- package/lib/lowcode/engine/meta/drawer.props.default.json +4 -2
- package/lib/lowcode/engine/meta/drawer.props.json +0 -1
- package/lib/lowcode/engine/meta/form.props.default.json +53 -4
- package/lib/lowcode/engine/meta/form.props.json +584 -55
- package/lib/lowcode/engine/meta/iframe.props.default.json +1 -1
- package/lib/lowcode/engine/meta/iframe.props.json +1 -1
- package/lib/lowcode/engine/meta/image.props.default.json +5 -2
- package/lib/lowcode/engine/meta/image.props.json +1 -1
- package/lib/lowcode/engine/meta/imex.props.default.json +5 -2
- package/lib/lowcode/engine/meta/imex.props.json +1 -1
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +152 -26
- package/lib/lowcode/engine/meta/jsx.props.default.json +2 -1
- package/lib/lowcode/engine/meta/jsx.props.json +10 -5
- package/lib/lowcode/engine/meta/layout.props.default.json +5 -2
- package/lib/lowcode/engine/meta/layout.props.json +1 -2
- package/lib/lowcode/engine/meta/link.props.default.json +5 -2
- package/lib/lowcode/engine/meta/link.props.json +2 -2
- package/lib/lowcode/engine/meta/local/local.zh-cn.js +103 -0
- package/lib/lowcode/engine/meta/page.props.default.json +12 -0
- package/lib/lowcode/engine/meta/page.props.json +49 -0
- package/lib/lowcode/engine/meta/pagecontent.props.default.json +6 -0
- package/lib/lowcode/engine/meta/pagecontent.props.json +7 -0
- package/lib/lowcode/engine/meta/pagefooter.props.default.json +6 -0
- package/lib/lowcode/engine/meta/pagefooter.props.json +7 -0
- package/lib/lowcode/engine/meta/pageheader.props.default.json +6 -0
- package/lib/lowcode/engine/meta/pageheader.props.json +7 -0
- package/lib/lowcode/engine/meta/section.props.default.json +5 -2
- package/lib/lowcode/engine/meta/section.props.json +1 -1
- package/lib/lowcode/engine/meta/split.props.default.json +9 -4
- package/lib/lowcode/engine/meta/split.props.json +14 -29
- package/lib/lowcode/engine/meta/table.props.default.json +23 -3
- package/lib/lowcode/engine/meta/table.props.json +257 -55
- package/lib/lowcode/engine/meta/tabs.props.default.json +16 -9
- package/lib/lowcode/engine/meta/tabs.props.json +57 -81
- package/lib/lowcode/engine/meta/text.props.default.json +5 -2
- package/lib/lowcode/engine/meta/text.props.json +1 -1
- package/lib/lowcode/engine/meta/tree.props.default.json +20 -7
- package/lib/lowcode/engine/meta/tree.props.json +225 -79
- package/lib/lowcode/engine/provider/ContextProvider/index.js +177 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +169 -0
- package/lib/lowcode/engine/tools/dataProcess.js +64 -1
- package/lib/lowcode/engine/tools/helper.js +100 -18
- package/lib/lowcode/engine/tools/useCanvasRender.js +90 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +7 -5
- package/lib/lowcode/engine/tools/useTodo.js +85 -0
- package/lib/lowcode/index.js +7 -0
- package/lib/lowcode/painter/Components.js +46 -20
- package/lib/lowcode/painter/DesignOperator.js +45 -26
- package/lib/lowcode/painter/DesignToolbar.js +82 -11
- package/lib/lowcode/painter/I18n.js +1 -1
- package/lib/lowcode/painter/Outline.js +29 -24
- package/lib/lowcode/painter/Panel.js +97 -139
- package/lib/lowcode/painter/Ribbon.js +1 -1
- package/lib/lowcode/painter/components/ActionBindModal.js +300 -0
- package/lib/lowcode/painter/components/AdvancePanel.js +148 -0
- package/lib/lowcode/painter/components/AttrsPanel.js +153 -0
- package/lib/lowcode/painter/components/Collapse.js +20 -9
- package/lib/lowcode/painter/components/ColorInput.js +5 -3
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +146 -0
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +54 -0
- package/lib/lowcode/painter/components/DragDrop/Overlay.js +15 -0
- package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +75 -0
- package/lib/lowcode/painter/components/FieldSelector.js +52 -0
- package/lib/lowcode/painter/components/ListEditor.js +17 -8
- package/lib/lowcode/painter/components/PanelItem.js +1 -1
- package/lib/lowcode/painter/components/PopConfirm.js +10 -3
- package/lib/lowcode/painter/components/SortBox.js +12 -5
- package/lib/lowcode/painter/components/TreeEditor.js +20 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +14 -2
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +25 -14
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +48 -0
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js +151 -0
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +133 -0
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +295 -0
- package/lib/lowcode/painter/components/field-setting/FieldAttrsModal.js +298 -0
- package/lib/lowcode/painter/components/field-setting/FieldDefaultValue.js +70 -0
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +123 -0
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +427 -0
- package/lib/lowcode/painter/components/field-setting/index.js +370 -0
- package/lib/lowcode/painter/index.js +3 -1
- package/lib/lowcode/painter/{components/actions-editor → panel-section/ActionsEditor}/ActionEditor.js +20 -66
- package/lib/lowcode/painter/{components/actions-editor → panel-section/ActionsEditor}/index.js +71 -10
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +31 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +51 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +208 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +112 -40
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +316 -0
- package/lib/lowcode/painter/panel-section/Icon.js +16 -14
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +119 -0
- package/lib/lowcode/painter/panel-section/IconSelector.js +5 -2
- package/lib/lowcode/painter/panel-section/ImpExp.js +98 -0
- package/lib/lowcode/painter/panel-section/JSEditor.js +57 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +5 -6
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +51 -0
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +256 -0
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +3 -23
- package/lib/lowcode/painter/panel-section/TabItems.js +45 -29
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +314 -0
- package/lib/lowcode/painter/panel-section/TableZebra.js +67 -6
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +86 -0
- package/lib/lowcode/painter/services/toolbar.js +32 -0
- package/lib/lowcode/painter/style/action-bind-modal.less +102 -0
- package/lib/lowcode/painter/style/collapse.less +6 -0
- package/lib/lowcode/painter/style/components.less +5 -4
- package/lib/lowcode/painter/style/design.less +2 -3
- package/lib/lowcode/painter/style/dragdrop.less +10 -0
- package/lib/lowcode/painter/style/fields-setting.less +25 -0
- package/lib/lowcode/painter/style/impexp.less +7 -0
- package/lib/lowcode/painter/style/panel-attrs.less +43 -0
- package/lib/lowcode/painter/style/panel.less +6 -37
- package/lib/lowcode/painter/style/pop-confirm.less +9 -2
- package/lib/lowcode/painter/style/split-display.less +28 -0
- package/lib/lowcode/painter/style/treedragdrop.less +19 -0
- package/lib/lowcode/preview/index.js +21 -0
- package/lib/lowcode/view/Canvas.js +32 -145
- package/lib/lowcode/view/Loading.js +6 -2
- package/lib/lowcode/view/Page.js +12 -10
- package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Box/index.js +11 -2
- package/lib/lowcode/view/lc-components/Box/index.less +0 -1
- package/lib/lowcode/view/lc-components/Box/meta.json +1 -3
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +8 -10
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +3 -6
- package/lib/lowcode/view/lc-components/Button/FunctionPreview.js +13 -0
- package/lib/lowcode/view/lc-components/Button/index.js +41 -18
- package/lib/lowcode/view/lc-components/Button/meta.json +8 -8
- package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +1 -0
- package/lib/lowcode/view/lc-components/CardList/meta.json +1 -2
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +16 -23
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +1 -0
- package/lib/lowcode/view/lc-components/Dialog/meta.json +0 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +4 -2
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +17 -0
- package/lib/lowcode/view/lc-components/Drawer/index.less +3 -0
- package/lib/lowcode/view/lc-components/Drawer/meta.json +0 -1
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +32 -2
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Form/index.js +113 -7
- package/lib/lowcode/view/lc-components/Form/index.less +5 -0
- package/lib/lowcode/view/lc-components/Form/meta.json +534 -55
- package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +1 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +1 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +1 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Image/index.js +1 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +1 -1
- package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +19 -6
- package/lib/lowcode/view/lc-components/JSX/meta.json +8 -5
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +21 -18
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +3 -8
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +1 -0
- package/lib/lowcode/view/lc-components/Layout/meta.json +1 -2
- package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Link/index.js +1 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Page/meta.json +49 -0
- package/lib/lowcode/view/lc-components/PageContent/index.js +61 -0
- package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -0
- package/lib/lowcode/view/lc-components/PageFooter/index.js +46 -0
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -0
- package/lib/lowcode/view/lc-components/PageHeader/index.js +48 -0
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -0
- package/lib/lowcode/view/lc-components/PageModal/index.js +30 -0
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Section/index.js +1 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +60 -2
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Split/index.js +45 -6
- package/lib/lowcode/view/lc-components/Split/meta.json +10 -29
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +43 -5
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +104 -0
- package/lib/lowcode/view/lc-components/Table/index.js +364 -48
- package/lib/lowcode/view/lc-components/Table/meta.json +229 -55
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +73 -2
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Tabs/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +112 -9
- package/lib/lowcode/view/lc-components/Tabs/meta.json +53 -81
- package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Text/index.js +1 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +64 -3
- package/lib/lowcode/view/lc-components/Tree/FunctionPreview.js +33 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +321 -6
- package/lib/lowcode/view/lc-components/Tree/index.less +5 -0
- package/lib/lowcode/view/lc-components/Tree/meta.json +224 -80
- package/lib/lowcode/view/lc-components/Wrapper.js +42 -25
- package/lib/lowcode/view/style/page.less +3 -0
- package/lib/services.js +5 -3
- package/lib/utils/grid.js +2 -2
- package/package.json +12 -7
- package/es/lowcode/engine/provider/ContextProvider.js +0 -169
- package/es/lowcode/painter/components/actions-editor/ActionEditor.js +0 -147
- package/es/lowcode/painter/panel-section/TableActions.js +0 -19
- package/lib/lowcode/engine/provider/ContextProvider.js +0 -177
- package/lib/lowcode/painter/panel-section/TableActions.js +0 -26
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
|
-
import { stringify } from 'querystring';
|
|
4
3
|
import { request } from '@luck-design-biz/base/utils';
|
|
5
4
|
import api from "@/services/ApiConfig";
|
|
6
|
-
import {
|
|
5
|
+
import { DATA_MODEL_CODE_KEY } from "../constants";
|
|
7
6
|
|
|
8
7
|
// icon地址
|
|
9
8
|
export var ICONLIST_URL = '/public/icons/iconfont.json';
|
|
10
9
|
export var ICONLIST_JS = '/public/icons/iconfont.js';
|
|
11
10
|
|
|
12
|
-
// service
|
|
13
|
-
var
|
|
14
|
-
|
|
11
|
+
// service地址前缀
|
|
12
|
+
var API_PREFIX_PAGE = "".concat(api.LUCKDA_HOST, "/page");
|
|
13
|
+
var API_PREFIX_MODULE = "".concat(api.LUCKDA_HOST, "/module");
|
|
14
|
+
var API_RREFIX_DATASET = "".concat(API_PREFIX_MODULE, "/dataset");
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* 通过菜单编码获取page相关数据
|
|
@@ -20,268 +20,18 @@ export var SERVICE_READ_DATASET = "".concat(_API_PREFIX, "/option/noAuthGetDatas
|
|
|
20
20
|
export function fetchPageData(_x) {
|
|
21
21
|
return _fetchPageData.apply(this, arguments);
|
|
22
22
|
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 获取design时模块数据
|
|
26
|
+
* @param {{moduleCode: string}} params
|
|
27
|
+
*/
|
|
23
28
|
function _fetchPageData() {
|
|
24
29
|
_fetchPageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
25
30
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26
31
|
while (1) switch (_context.prev = _context.next) {
|
|
27
32
|
case 0:
|
|
28
|
-
return _context.abrupt("return",
|
|
29
|
-
|
|
30
|
-
var source = compress({
|
|
31
|
-
props: {
|
|
32
|
-
id: 'page_root',
|
|
33
|
-
group: 'build-in',
|
|
34
|
-
component: 'Page',
|
|
35
|
-
name: '页面',
|
|
36
|
-
hasHeder: true,
|
|
37
|
-
hasFooter: true
|
|
38
|
-
},
|
|
39
|
-
children: ['page_header', 'page_content', 'page_footer', 'dialog_ms2o9hj0', 'drawer_ou79jw8c'],
|
|
40
|
-
page_header: {
|
|
41
|
-
props: {
|
|
42
|
-
id: 'page_header',
|
|
43
|
-
parentId: 'page_root',
|
|
44
|
-
group: 'build-in',
|
|
45
|
-
component: 'PageHeader',
|
|
46
|
-
name: '页面头',
|
|
47
|
-
fixed: false
|
|
48
|
-
},
|
|
49
|
-
children: ['text_kju78bvs'],
|
|
50
|
-
text_kju78bvs: {
|
|
51
|
-
props: {
|
|
52
|
-
id: 'text_kju78bvs',
|
|
53
|
-
parentId: 'page_header',
|
|
54
|
-
group: 'basic',
|
|
55
|
-
component: 'Text',
|
|
56
|
-
name: '文本'
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
page_content: {
|
|
61
|
-
props: {
|
|
62
|
-
id: 'page_content',
|
|
63
|
-
parentId: 'page_root',
|
|
64
|
-
group: 'build-in',
|
|
65
|
-
component: 'PageContent',
|
|
66
|
-
name: '页面内容'
|
|
67
|
-
},
|
|
68
|
-
children: ['layout_OL4gi6mr'],
|
|
69
|
-
layout_OL4gi6mr: {
|
|
70
|
-
props: {
|
|
71
|
-
component: 'Layout',
|
|
72
|
-
name: '布局容器',
|
|
73
|
-
icon: 'icon-layout',
|
|
74
|
-
group: 'container',
|
|
75
|
-
groupName: '布局',
|
|
76
|
-
desc: '布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。',
|
|
77
|
-
order: 1,
|
|
78
|
-
style: {},
|
|
79
|
-
columnRatio: '12:3:9',
|
|
80
|
-
columnSpacing: 16,
|
|
81
|
-
lineSpacing: 16,
|
|
82
|
-
id: 'layout_OL4gi6mr'
|
|
83
|
-
},
|
|
84
|
-
children: ['box_xFuKLKBI', 'box_jeVHiHZV', 'box_5KLx4rGb'],
|
|
85
|
-
box_xFuKLKBI: {
|
|
86
|
-
props: {
|
|
87
|
-
component: 'Box',
|
|
88
|
-
name: '盒子',
|
|
89
|
-
desc: '盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。',
|
|
90
|
-
icon: 'icon-box',
|
|
91
|
-
group: 'container',
|
|
92
|
-
groupName: '布局',
|
|
93
|
-
order: 3,
|
|
94
|
-
style: {
|
|
95
|
-
gridColumn: 'span 12',
|
|
96
|
-
height: 'auto'
|
|
97
|
-
},
|
|
98
|
-
id: 'box_xFuKLKBI'
|
|
99
|
-
},
|
|
100
|
-
children: ['button_okj2n87x', 'text_nmu9wqqw'],
|
|
101
|
-
button_okj2n87x: {
|
|
102
|
-
props: {
|
|
103
|
-
id: 'button_okj2n87x',
|
|
104
|
-
parentId: 'box_ihj2n8cv',
|
|
105
|
-
group: 'basic',
|
|
106
|
-
component: 'Button',
|
|
107
|
-
name: '按钮',
|
|
108
|
-
title: '这是一个按钮',
|
|
109
|
-
type: 'primary',
|
|
110
|
-
size: 'large'
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
text_nmu9wqqw: {
|
|
114
|
-
props: {
|
|
115
|
-
id: 'text_nmu9wqqw',
|
|
116
|
-
parentId: 'box_ihj2n8cv',
|
|
117
|
-
group: 'basic',
|
|
118
|
-
component: 'Text',
|
|
119
|
-
name: '文本'
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
box_jeVHiHZV: {
|
|
124
|
-
props: {
|
|
125
|
-
component: 'Box',
|
|
126
|
-
name: '盒子',
|
|
127
|
-
desc: '盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。',
|
|
128
|
-
icon: 'icon-box',
|
|
129
|
-
group: 'container',
|
|
130
|
-
groupName: '布局',
|
|
131
|
-
order: 3,
|
|
132
|
-
style: {
|
|
133
|
-
gridColumn: 'span 3',
|
|
134
|
-
height: '60px'
|
|
135
|
-
},
|
|
136
|
-
id: 'box_jeVHiHZV'
|
|
137
|
-
},
|
|
138
|
-
children: ['tree_hh2b87qs'],
|
|
139
|
-
tree_hh2b87qs: {
|
|
140
|
-
props: {
|
|
141
|
-
id: 'tree_hh2b87qs',
|
|
142
|
-
parentId: 'box_diam9dis',
|
|
143
|
-
group: 'advance',
|
|
144
|
-
component: 'Tree',
|
|
145
|
-
name: '树'
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
box_5KLx4rGb: {
|
|
150
|
-
props: {
|
|
151
|
-
component: 'Box',
|
|
152
|
-
name: '盒子',
|
|
153
|
-
desc: '盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。',
|
|
154
|
-
icon: 'icon-box',
|
|
155
|
-
group: 'container',
|
|
156
|
-
groupName: '布局',
|
|
157
|
-
order: 3,
|
|
158
|
-
style: {
|
|
159
|
-
gridColumn: 'span 9',
|
|
160
|
-
height: '360px'
|
|
161
|
-
},
|
|
162
|
-
id: 'box_5KLx4rGb'
|
|
163
|
-
},
|
|
164
|
-
children: ['table_diam9dis'],
|
|
165
|
-
table_diam9dis: {
|
|
166
|
-
props: {
|
|
167
|
-
id: 'table_diam9dis',
|
|
168
|
-
parentId: 'box_s0j3j08t',
|
|
169
|
-
group: 'advance',
|
|
170
|
-
component: 'Table',
|
|
171
|
-
name: '表格',
|
|
172
|
-
dataset: 'dsWmsMaterialsData',
|
|
173
|
-
width: '100%',
|
|
174
|
-
height: '300px',
|
|
175
|
-
bordered: false,
|
|
176
|
-
zebra: '#e8e8e8',
|
|
177
|
-
autoLoad: true,
|
|
178
|
-
readOnly: false,
|
|
179
|
-
pagination: true,
|
|
180
|
-
pageSize: 5,
|
|
181
|
-
showSizeChanger: true,
|
|
182
|
-
showQuickJumper: true,
|
|
183
|
-
hideOnSinglePage: false,
|
|
184
|
-
paginationSimple: false,
|
|
185
|
-
suppressActions: false,
|
|
186
|
-
actionsColumnWidth: 160,
|
|
187
|
-
actions: {
|
|
188
|
-
display: 'button',
|
|
189
|
-
max: 2,
|
|
190
|
-
todoList: [{
|
|
191
|
-
actionCode: 'console.log(1234)',
|
|
192
|
-
actionPool: ['lucy'],
|
|
193
|
-
id: 'h9ZZuLi6',
|
|
194
|
-
name: '领用',
|
|
195
|
-
riskLevel: 'danger',
|
|
196
|
-
serial: 'read',
|
|
197
|
-
serialEffect: 'hidden'
|
|
198
|
-
}, {
|
|
199
|
-
actionCode: 'console.log(5678)',
|
|
200
|
-
actionPool: ['lucy'],
|
|
201
|
-
id: 'h9ZZuLi4',
|
|
202
|
-
name: '作废',
|
|
203
|
-
riskLevel: 'destroy',
|
|
204
|
-
serial: 'read',
|
|
205
|
-
serialEffect: 'hidden'
|
|
206
|
-
}, {
|
|
207
|
-
actionCode: 'console.log(9999)',
|
|
208
|
-
actionPool: ['lucy'],
|
|
209
|
-
id: 'h9ZZuLi2',
|
|
210
|
-
name: '上报',
|
|
211
|
-
riskLevel: 'default',
|
|
212
|
-
serial: 'read',
|
|
213
|
-
serialEffect: 'hidden'
|
|
214
|
-
}]
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
page_footer: {
|
|
222
|
-
props: {
|
|
223
|
-
id: 'page_footer',
|
|
224
|
-
parentId: 'page_root',
|
|
225
|
-
group: 'build-in',
|
|
226
|
-
component: 'PageFooter',
|
|
227
|
-
name: '页面尾'
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
dialog_ms2o9hj0: {
|
|
231
|
-
props: {
|
|
232
|
-
id: 'dialog_ms2o9hj0',
|
|
233
|
-
parentId: 'page_root',
|
|
234
|
-
group: 'basic',
|
|
235
|
-
component: 'Dialog',
|
|
236
|
-
name: '对话框'
|
|
237
|
-
},
|
|
238
|
-
children: ['form_gyusku8j'],
|
|
239
|
-
form_gyusku8j: {
|
|
240
|
-
props: {
|
|
241
|
-
id: 'form_gyusku8j',
|
|
242
|
-
parentId: 'dialog_ms2o9hj0',
|
|
243
|
-
group: 'advance',
|
|
244
|
-
component: 'Form',
|
|
245
|
-
name: '表单'
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
drawer_ou79jw8c: {
|
|
250
|
-
props: {
|
|
251
|
-
id: 'drawer_ou79jw8c',
|
|
252
|
-
parentId: 'page_root',
|
|
253
|
-
group: 'basic',
|
|
254
|
-
component: 'Drawer',
|
|
255
|
-
name: '抽屉'
|
|
256
|
-
},
|
|
257
|
-
children: ['form_jknbjkun'],
|
|
258
|
-
form_jknbjkun: {
|
|
259
|
-
props: {
|
|
260
|
-
id: 'form_jknbjkun',
|
|
261
|
-
parentId: 'drawer_ou79jw8c',
|
|
262
|
-
group: 'advance',
|
|
263
|
-
component: 'Form',
|
|
264
|
-
name: '表单'
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
resolve({
|
|
270
|
-
code: 1,
|
|
271
|
-
data: {
|
|
272
|
-
dataModelCode: 'Kw9sp87g',
|
|
273
|
-
moduleCode: 'moduleWmsMaterialsData',
|
|
274
|
-
pageCode: 'zj8kB8V5',
|
|
275
|
-
code: 'K1ZbNtiw'
|
|
276
|
-
},
|
|
277
|
-
list: [1],
|
|
278
|
-
detail: {
|
|
279
|
-
1: {
|
|
280
|
-
source: source
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
}, 400);
|
|
33
|
+
return _context.abrupt("return", request("".concat(API_PREFIX_PAGE, "/option/noAuthTransformCodeAndPageData"), {
|
|
34
|
+
params: params
|
|
285
35
|
}));
|
|
286
36
|
case 1:
|
|
287
37
|
case "end":
|
|
@@ -290,4 +40,372 @@ function _fetchPageData() {
|
|
|
290
40
|
}, _callee);
|
|
291
41
|
}));
|
|
292
42
|
return _fetchPageData.apply(this, arguments);
|
|
43
|
+
}
|
|
44
|
+
export function fetchDesignModlueData(_x2, _x3) {
|
|
45
|
+
return _fetchDesignModlueData.apply(this, arguments);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 获取非design时模块数据
|
|
50
|
+
* @param {{moduleCode: string}} params
|
|
51
|
+
*/
|
|
52
|
+
function _fetchDesignModlueData() {
|
|
53
|
+
_fetchDesignModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_, params) {
|
|
54
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
55
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
56
|
+
case 0:
|
|
57
|
+
return _context2.abrupt("return", request("".concat(API_PREFIX_PAGE, "/fetchModuleInfo"), {
|
|
58
|
+
params: params
|
|
59
|
+
}));
|
|
60
|
+
case 1:
|
|
61
|
+
case "end":
|
|
62
|
+
return _context2.stop();
|
|
63
|
+
}
|
|
64
|
+
}, _callee2);
|
|
65
|
+
}));
|
|
66
|
+
return _fetchDesignModlueData.apply(this, arguments);
|
|
67
|
+
}
|
|
68
|
+
export function fetchModlueData(_x4, _x5) {
|
|
69
|
+
return _fetchModlueData.apply(this, arguments);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* 获取数据模型下的所有数据集
|
|
74
|
+
* @param {{ dataModelKey }} params
|
|
75
|
+
*/
|
|
76
|
+
function _fetchModlueData() {
|
|
77
|
+
_fetchModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(dmCode, params) {
|
|
78
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
79
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
80
|
+
case 0:
|
|
81
|
+
return _context3.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/noAuthFetchModule"), {
|
|
82
|
+
params: params
|
|
83
|
+
}));
|
|
84
|
+
case 1:
|
|
85
|
+
case "end":
|
|
86
|
+
return _context3.stop();
|
|
87
|
+
}
|
|
88
|
+
}, _callee3);
|
|
89
|
+
}));
|
|
90
|
+
return _fetchModlueData.apply(this, arguments);
|
|
91
|
+
}
|
|
92
|
+
export function fetchAllDataset(_x6) {
|
|
93
|
+
return _fetchAllDataset.apply(this, arguments);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* 向模块中添加数据集
|
|
98
|
+
* @data {{ uid, dataModelKey, addList: { code, datasetUid }}} body数据
|
|
99
|
+
*/
|
|
100
|
+
function _fetchAllDataset() {
|
|
101
|
+
_fetchAllDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(params) {
|
|
102
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
103
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
104
|
+
case 0:
|
|
105
|
+
return _context4.abrupt("return", request("".concat(API_PREFIX_PAGE, "/option/noAuthGetDataset"), {
|
|
106
|
+
params: params
|
|
107
|
+
}));
|
|
108
|
+
case 1:
|
|
109
|
+
case "end":
|
|
110
|
+
return _context4.stop();
|
|
111
|
+
}
|
|
112
|
+
}, _callee4);
|
|
113
|
+
}));
|
|
114
|
+
return _fetchAllDataset.apply(this, arguments);
|
|
115
|
+
}
|
|
116
|
+
export function fetchAddDataset(_x7) {
|
|
117
|
+
return _fetchAddDataset.apply(this, arguments);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* 获取数据集下的所有字段
|
|
122
|
+
* @param {{datasetUid}} params
|
|
123
|
+
*/
|
|
124
|
+
function _fetchAddDataset() {
|
|
125
|
+
_fetchAddDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(data) {
|
|
126
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
127
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
128
|
+
case 0:
|
|
129
|
+
return _context5.abrupt("return", request("".concat(API_RREFIX_DATASET, "/add"), {
|
|
130
|
+
data: data,
|
|
131
|
+
method: 'POST'
|
|
132
|
+
}));
|
|
133
|
+
case 1:
|
|
134
|
+
case "end":
|
|
135
|
+
return _context5.stop();
|
|
136
|
+
}
|
|
137
|
+
}, _callee5);
|
|
138
|
+
}));
|
|
139
|
+
return _fetchAddDataset.apply(this, arguments);
|
|
140
|
+
}
|
|
141
|
+
export function fetchFieldsByDataset(_x8) {
|
|
142
|
+
return _fetchFieldsByDataset.apply(this, arguments);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* 获取字段配置条件
|
|
147
|
+
* @param {{moduleId,datasetId,moduleFieldId}} params
|
|
148
|
+
* @returns
|
|
149
|
+
*/
|
|
150
|
+
function _fetchFieldsByDataset() {
|
|
151
|
+
_fetchFieldsByDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(params) {
|
|
152
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
153
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
154
|
+
case 0:
|
|
155
|
+
return _context6.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/readAll"), {
|
|
156
|
+
params: params
|
|
157
|
+
}));
|
|
158
|
+
case 1:
|
|
159
|
+
case "end":
|
|
160
|
+
return _context6.stop();
|
|
161
|
+
}
|
|
162
|
+
}, _callee6);
|
|
163
|
+
}));
|
|
164
|
+
return _fetchFieldsByDataset.apply(this, arguments);
|
|
165
|
+
}
|
|
166
|
+
export function fetchFieldCondition(_x9) {
|
|
167
|
+
return _fetchFieldCondition.apply(this, arguments);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* 更新是否标题字段
|
|
172
|
+
* @param {{moduleId,datasetId,moduleFieldId}} params
|
|
173
|
+
*/
|
|
174
|
+
function _fetchFieldCondition() {
|
|
175
|
+
_fetchFieldCondition = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(params) {
|
|
176
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
177
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
178
|
+
case 0:
|
|
179
|
+
return _context7.abrupt("return", request("".concat(API_PREFIX_PAGE, "/readFieldCondition"), {
|
|
180
|
+
params: params
|
|
181
|
+
}));
|
|
182
|
+
case 1:
|
|
183
|
+
case "end":
|
|
184
|
+
return _context7.stop();
|
|
185
|
+
}
|
|
186
|
+
}, _callee7);
|
|
187
|
+
}));
|
|
188
|
+
return _fetchFieldCondition.apply(this, arguments);
|
|
189
|
+
}
|
|
190
|
+
export function fetchUpdateTitleField(_x10) {
|
|
191
|
+
return _fetchUpdateTitleField.apply(this, arguments);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* 更新是否唯一校验
|
|
196
|
+
* @param {*} data
|
|
197
|
+
* @returns
|
|
198
|
+
*/
|
|
199
|
+
function _fetchUpdateTitleField() {
|
|
200
|
+
_fetchUpdateTitleField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(data) {
|
|
201
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
202
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
203
|
+
case 0:
|
|
204
|
+
return _context8.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateTitleField"), {
|
|
205
|
+
method: 'POST',
|
|
206
|
+
data: data
|
|
207
|
+
}));
|
|
208
|
+
case 1:
|
|
209
|
+
case "end":
|
|
210
|
+
return _context8.stop();
|
|
211
|
+
}
|
|
212
|
+
}, _callee8);
|
|
213
|
+
}));
|
|
214
|
+
return _fetchUpdateTitleField.apply(this, arguments);
|
|
215
|
+
}
|
|
216
|
+
export function fetchUpdateUniqueField(_x11) {
|
|
217
|
+
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* 新增字段属性
|
|
222
|
+
* @param {*} data
|
|
223
|
+
*/
|
|
224
|
+
function _fetchUpdateUniqueField() {
|
|
225
|
+
_fetchUpdateUniqueField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(data) {
|
|
226
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
227
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
228
|
+
case 0:
|
|
229
|
+
return _context9.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateUniqueField"), {
|
|
230
|
+
method: 'POST',
|
|
231
|
+
data: data
|
|
232
|
+
}));
|
|
233
|
+
case 1:
|
|
234
|
+
case "end":
|
|
235
|
+
return _context9.stop();
|
|
236
|
+
}
|
|
237
|
+
}, _callee9);
|
|
238
|
+
}));
|
|
239
|
+
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
240
|
+
}
|
|
241
|
+
export function fetchAddFieldAttrs(_x12) {
|
|
242
|
+
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* 删除字段属性
|
|
247
|
+
* @param {*} data
|
|
248
|
+
*/
|
|
249
|
+
function _fetchAddFieldAttrs() {
|
|
250
|
+
_fetchAddFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(data) {
|
|
251
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
252
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
253
|
+
case 0:
|
|
254
|
+
return _context10.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/addAttributes"), {
|
|
255
|
+
data: data,
|
|
256
|
+
method: 'POST'
|
|
257
|
+
}));
|
|
258
|
+
case 1:
|
|
259
|
+
case "end":
|
|
260
|
+
return _context10.stop();
|
|
261
|
+
}
|
|
262
|
+
}, _callee10);
|
|
263
|
+
}));
|
|
264
|
+
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
265
|
+
}
|
|
266
|
+
export function fetchDelAttrs(_x13) {
|
|
267
|
+
return _fetchDelAttrs.apply(this, arguments);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* 更新字段属性
|
|
272
|
+
* @param {*} params
|
|
273
|
+
*/
|
|
274
|
+
function _fetchDelAttrs() {
|
|
275
|
+
_fetchDelAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(data) {
|
|
276
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
277
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
278
|
+
case 0:
|
|
279
|
+
return _context11.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/deleteAttributes"), {
|
|
280
|
+
data: data,
|
|
281
|
+
method: 'POST'
|
|
282
|
+
}));
|
|
283
|
+
case 1:
|
|
284
|
+
case "end":
|
|
285
|
+
return _context11.stop();
|
|
286
|
+
}
|
|
287
|
+
}, _callee11);
|
|
288
|
+
}));
|
|
289
|
+
return _fetchDelAttrs.apply(this, arguments);
|
|
290
|
+
}
|
|
291
|
+
export function fetchUpdateFieldAttrs(_x14) {
|
|
292
|
+
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* 读取字段配置的属性
|
|
297
|
+
* @param {{uid, scope}} params
|
|
298
|
+
* @returns
|
|
299
|
+
*/
|
|
300
|
+
function _fetchUpdateFieldAttrs() {
|
|
301
|
+
_fetchUpdateFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(data) {
|
|
302
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
303
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
304
|
+
case 0:
|
|
305
|
+
return _context12.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateAttributes"), {
|
|
306
|
+
data: data,
|
|
307
|
+
method: 'POST'
|
|
308
|
+
}));
|
|
309
|
+
case 1:
|
|
310
|
+
case "end":
|
|
311
|
+
return _context12.stop();
|
|
312
|
+
}
|
|
313
|
+
}, _callee12);
|
|
314
|
+
}));
|
|
315
|
+
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
316
|
+
}
|
|
317
|
+
export function fetchAttrs(_x15) {
|
|
318
|
+
return _fetchAttrs.apply(this, arguments);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* 读取所有行为
|
|
323
|
+
* @param {{uid}} params
|
|
324
|
+
* @returns
|
|
325
|
+
*/
|
|
326
|
+
function _fetchAttrs() {
|
|
327
|
+
_fetchAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(params) {
|
|
328
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
329
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
330
|
+
case 0:
|
|
331
|
+
return _context13.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/readAttributes"), {
|
|
332
|
+
params: params
|
|
333
|
+
}));
|
|
334
|
+
case 1:
|
|
335
|
+
case "end":
|
|
336
|
+
return _context13.stop();
|
|
337
|
+
}
|
|
338
|
+
}, _callee13);
|
|
339
|
+
}));
|
|
340
|
+
return _fetchAttrs.apply(this, arguments);
|
|
341
|
+
}
|
|
342
|
+
export function fetchAllBehavior(_x16) {
|
|
343
|
+
return _fetchAllBehavior.apply(this, arguments);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* 读取所有资源串
|
|
348
|
+
* @param {{uid}} params
|
|
349
|
+
* @returns
|
|
350
|
+
*/
|
|
351
|
+
function _fetchAllBehavior() {
|
|
352
|
+
_fetchAllBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(params) {
|
|
353
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
354
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
355
|
+
case 0:
|
|
356
|
+
return _context14.abrupt("return", request("".concat(API_PREFIX_MODULE, "/behavior/readAll"), {
|
|
357
|
+
params: params
|
|
358
|
+
}));
|
|
359
|
+
case 1:
|
|
360
|
+
case "end":
|
|
361
|
+
return _context14.stop();
|
|
362
|
+
}
|
|
363
|
+
}, _callee14);
|
|
364
|
+
}));
|
|
365
|
+
return _fetchAllBehavior.apply(this, arguments);
|
|
366
|
+
}
|
|
367
|
+
export function fetchAllSerials(_x17) {
|
|
368
|
+
return _fetchAllSerials.apply(this, arguments);
|
|
369
|
+
}
|
|
370
|
+
function _fetchAllSerials() {
|
|
371
|
+
_fetchAllSerials = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(params) {
|
|
372
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
373
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
374
|
+
case 0:
|
|
375
|
+
return _context15.abrupt("return", request("".concat(API_PREFIX_MODULE, "/Serials/readAll"), {
|
|
376
|
+
params: params
|
|
377
|
+
}));
|
|
378
|
+
case 1:
|
|
379
|
+
case "end":
|
|
380
|
+
return _context15.stop();
|
|
381
|
+
}
|
|
382
|
+
}, _callee15);
|
|
383
|
+
}));
|
|
384
|
+
return _fetchAllSerials.apply(this, arguments);
|
|
385
|
+
}
|
|
386
|
+
export function fetchCallBehavior(_x18, _x19) {
|
|
387
|
+
return _fetchCallBehavior.apply(this, arguments);
|
|
388
|
+
}
|
|
389
|
+
function _fetchCallBehavior() {
|
|
390
|
+
_fetchCallBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(params, data) {
|
|
391
|
+
var mdCode;
|
|
392
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
393
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
394
|
+
case 0:
|
|
395
|
+
mdCode = window[DATA_MODEL_CODE_KEY];
|
|
396
|
+
return _context16.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/to/behavior/call"), {
|
|
397
|
+
method: 'POST',
|
|
398
|
+
data: data,
|
|
399
|
+
params: params,
|
|
400
|
+
headers: {
|
|
401
|
+
'Content-Type': 'application/json;charset=UTF-8'
|
|
402
|
+
}
|
|
403
|
+
}));
|
|
404
|
+
case 2:
|
|
405
|
+
case "end":
|
|
406
|
+
return _context16.stop();
|
|
407
|
+
}
|
|
408
|
+
}, _callee16);
|
|
409
|
+
}));
|
|
410
|
+
return _fetchCallBehavior.apply(this, arguments);
|
|
293
411
|
}
|
|
@@ -25,6 +25,10 @@ export var COMPONENT_MODIFY = 'component-modify';
|
|
|
25
25
|
export var COMPONENT_REPOSITIONING = 'component-repositioning';
|
|
26
26
|
// 模态视图组件开关事件
|
|
27
27
|
export var COMPONENT_MODAL_TOGGLE = 'component-modal-toggle';
|
|
28
|
+
// 组件被拖放时的事件
|
|
29
|
+
export var COMPONENT_DRAG_OVER = 'component-drag-over';
|
|
30
|
+
// 组件拖放完成时的事件
|
|
31
|
+
export var COMPONENT_DRAG_END = 'component-drag-end';
|
|
28
32
|
|
|
29
33
|
/******************************* Design Topic结束 *******************************/
|
|
30
34
|
|