@luck-design-biz/luckda 0.0.24-2 → 0.0.25-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +230 -0
- package/es/lowcode/constants/api-url.js +464 -262
- package/es/lowcode/constants/event-topics.js +4 -0
- package/es/lowcode/constants/index.js +31 -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 +4 -3
- package/es/lowcode/engine/meta/box.props.json +2 -4
- package/es/lowcode/engine/meta/button.props.default.json +5 -2
- package/es/lowcode/engine/meta/button.props.json +9 -9
- package/es/lowcode/engine/meta/cardlist.props.default.json +4 -2
- package/es/lowcode/engine/meta/cardlist.props.json +2 -3
- package/es/lowcode/engine/meta/components-list.json +1 -1
- package/es/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/es/lowcode/engine/meta/dialog.props.json +1 -2
- package/es/lowcode/engine/meta/drawer.props.default.json +4 -2
- package/es/lowcode/engine/meta/drawer.props.json +1 -2
- package/es/lowcode/engine/meta/form.props.default.json +52 -4
- package/es/lowcode/engine/meta/form.props.json +596 -64
- 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 +3 -3
- package/es/lowcode/engine/meta/imex.props.default.json +5 -2
- package/es/lowcode/engine/meta/imex.props.json +2 -2
- 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 +3 -3
- 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 +7 -6
- package/es/lowcode/engine/meta/section.props.json +52 -49
- 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 +3 -3
- 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 +177 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +174 -0
- package/es/lowcode/engine/tools/dataProcess.js +64 -2
- package/es/lowcode/engine/tools/helper.js +97 -18
- package/es/lowcode/engine/tools/useCanvasRender.js +73 -0
- package/es/lowcode/engine/tools/usePromiseState.js +23 -12
- 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/Design.js +34 -2
- package/es/lowcode/painter/DesignOperator.js +48 -31
- package/es/lowcode/painter/DesignToolbar.js +324 -16
- package/es/lowcode/painter/I18n.js +2 -2
- package/es/lowcode/painter/Outline.js +31 -26
- package/es/lowcode/painter/Panel.js +99 -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 +50 -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 +26 -11
- 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 +154 -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 +438 -0
- package/es/lowcode/painter/components/field-setting/index.js +373 -0
- package/es/lowcode/painter/index.js +3 -28
- package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +25 -0
- 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 +27 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +45 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +235 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +115 -43
- package/es/lowcode/painter/panel-section/FieldsSetting.js +329 -0
- package/es/lowcode/painter/panel-section/I18nInput.js +20 -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/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 +7 -4
- 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/list-editor.less +36 -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 +27 -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 +2 -4
- 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 +9 -9
- 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 +2 -3
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +16 -24
- 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 +1 -2
- 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 +1 -2
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +93 -2
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Form/index.js +290 -13
- package/es/lowcode/view/lc-components/Form/index.less +5 -0
- package/es/lowcode/view/lc-components/Form/meta.json +546 -64
- 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 +2 -2
- 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 +3 -3
- 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 +23 -22
- 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 +3 -3
- 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/FunctionDesign.js +31 -2
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Section/index.js +115 -24
- package/es/lowcode/view/lc-components/Section/index.less +7 -0
- package/es/lowcode/view/lc-components/Section/meta.json +48 -49
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +57 -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 -48
- package/es/lowcode/view/lc-components/Table/meta.json +229 -55
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +70 -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 +3 -3
- 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/upload/Form/gridForm.js +7 -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 +236 -0
- package/lib/lowcode/constants/api-url.js +465 -263
- package/lib/lowcode/constants/event-topics.js +5 -1
- package/lib/lowcode/constants/index.js +32 -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 +4 -3
- package/lib/lowcode/engine/meta/box.props.json +2 -4
- package/lib/lowcode/engine/meta/button.props.default.json +5 -2
- package/lib/lowcode/engine/meta/button.props.json +9 -9
- package/lib/lowcode/engine/meta/cardlist.props.default.json +4 -2
- package/lib/lowcode/engine/meta/cardlist.props.json +2 -3
- package/lib/lowcode/engine/meta/components-list.json +1 -1
- package/lib/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/lib/lowcode/engine/meta/dialog.props.json +1 -2
- package/lib/lowcode/engine/meta/drawer.props.default.json +4 -2
- package/lib/lowcode/engine/meta/drawer.props.json +1 -2
- package/lib/lowcode/engine/meta/form.props.default.json +52 -4
- package/lib/lowcode/engine/meta/form.props.json +596 -64
- 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 +3 -3
- package/lib/lowcode/engine/meta/imex.props.default.json +5 -2
- package/lib/lowcode/engine/meta/imex.props.json +2 -2
- 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 +3 -3
- 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 +7 -6
- package/lib/lowcode/engine/meta/section.props.json +52 -49
- 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 +3 -3
- 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 +185 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +182 -0
- package/lib/lowcode/engine/tools/dataProcess.js +64 -1
- package/lib/lowcode/engine/tools/helper.js +101 -17
- package/lib/lowcode/engine/tools/useCanvasRender.js +88 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +22 -12
- 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/Design.js +32 -0
- package/lib/lowcode/painter/DesignOperator.js +45 -28
- package/lib/lowcode/painter/DesignToolbar.js +321 -13
- package/lib/lowcode/painter/I18n.js +1 -1
- package/lib/lowcode/painter/Outline.js +29 -24
- package/lib/lowcode/painter/Panel.js +96 -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 +57 -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 +25 -10
- 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 +161 -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 +446 -0
- package/lib/lowcode/painter/components/field-setting/index.js +380 -0
- package/lib/lowcode/painter/index.js +3 -30
- package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +32 -0
- 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 +34 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +52 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +242 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +112 -40
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +337 -0
- package/lib/lowcode/painter/panel-section/I18nInput.js +27 -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/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 +7 -4
- 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/list-editor.less +36 -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 +35 -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 +2 -4
- 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 +9 -9
- 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 +2 -3
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +15 -24
- 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 +1 -2
- 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 +1 -2
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +94 -2
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Form/index.js +289 -12
- package/lib/lowcode/view/lc-components/Form/index.less +5 -0
- package/lib/lowcode/view/lc-components/Form/meta.json +546 -64
- 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 +2 -2
- 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 +3 -3
- 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 +24 -22
- 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 +3 -3
- 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/FunctionDesign.js +31 -2
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Section/index.js +114 -23
- package/lib/lowcode/view/lc-components/Section/index.less +7 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +48 -49
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +58 -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 -47
- package/lib/lowcode/view/lc-components/Table/meta.json +229 -55
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +71 -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 +3 -3
- 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/upload/Form/gridForm.js +7 -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
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard3 = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = useCanvasRender;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
11
|
+
var _interopRequireWildcard2 = _interopRequireDefault(require("@babel/runtime/helpers/interopRequireWildcard"));
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
14
|
+
var _react = _interopRequireWildcard3(require("react"));
|
|
15
|
+
var _umi = require("umi");
|
|
16
|
+
var _ahooks = require("ahooks");
|
|
17
|
+
var _lodash = require("lodash");
|
|
18
|
+
var _ContextProvider = require("../provider/ContextProvider");
|
|
19
|
+
var _constants = require("../../constants");
|
|
20
|
+
var _excluded = ["props", "children"],
|
|
21
|
+
_excluded2 = ["id", "component", "name", "desc", "icon", "group", "groupName", "order"];
|
|
22
|
+
function useCanvasRender(data, deps) {
|
|
23
|
+
var dynamicCompMap = (0, _react.useRef)({});
|
|
24
|
+
var ctx = (0, _ContextProvider.useContext)();
|
|
25
|
+
var render = (0, _ahooks.useMemoizedFn)(function (_ref) {
|
|
26
|
+
var props = _ref.props,
|
|
27
|
+
children = _ref.children,
|
|
28
|
+
childrenMap = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
29
|
+
if (props && !_constants.LC_BUILDIN_UNIT_KEY_LIST.includes(props.id)) {
|
|
30
|
+
var id = props.id,
|
|
31
|
+
component = props.component,
|
|
32
|
+
name = props.name,
|
|
33
|
+
desc = props.desc,
|
|
34
|
+
icon = props.icon,
|
|
35
|
+
group = props.group,
|
|
36
|
+
groupName = props.groupName,
|
|
37
|
+
order = props.order,
|
|
38
|
+
rest = (0, _objectWithoutProperties2.default)(props, _excluded2);
|
|
39
|
+
if (!dynamicCompMap.current[component]) {
|
|
40
|
+
dynamicCompMap.current[component] = (0, _umi.dynamic)({
|
|
41
|
+
loader: function () {
|
|
42
|
+
var _loader = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
|
43
|
+
var _runtime, _yield$import, _Comp;
|
|
44
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
45
|
+
while (1) switch (_context.prev = _context.next) {
|
|
46
|
+
case 0:
|
|
47
|
+
_runtime = (0, _lodash.upperFirst)(ctx.runtime);
|
|
48
|
+
_context.next = 3;
|
|
49
|
+
return function (specifier) {
|
|
50
|
+
return new Promise(function (r) {
|
|
51
|
+
return r(specifier);
|
|
52
|
+
}).then(function (s) {
|
|
53
|
+
return (0, _interopRequireWildcard2.default)(require(s));
|
|
54
|
+
});
|
|
55
|
+
}("../../view/lc-components/".concat(component, "/Function").concat(_runtime));
|
|
56
|
+
case 3:
|
|
57
|
+
_yield$import = _context.sent;
|
|
58
|
+
_Comp = _yield$import.default;
|
|
59
|
+
return _context.abrupt("return", _Comp);
|
|
60
|
+
case 6:
|
|
61
|
+
case "end":
|
|
62
|
+
return _context.stop();
|
|
63
|
+
}
|
|
64
|
+
}, _callee);
|
|
65
|
+
}));
|
|
66
|
+
function loader() {
|
|
67
|
+
return _loader.apply(this, arguments);
|
|
68
|
+
}
|
|
69
|
+
return loader;
|
|
70
|
+
}()
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
var Comp = dynamicCompMap.current[component];
|
|
74
|
+
return /*#__PURE__*/_react.default.createElement(Comp, (0, _extends2.default)({
|
|
75
|
+
key: id,
|
|
76
|
+
id: id
|
|
77
|
+
}, rest), (children === null || children === void 0 ? void 0 : children.length) > 0 ? children.map(function (_id) {
|
|
78
|
+
return render(childrenMap[_id]);
|
|
79
|
+
}) : null);
|
|
80
|
+
}
|
|
81
|
+
return (children === null || children === void 0 ? void 0 : children.length) > 0 ? children.map(function (_id) {
|
|
82
|
+
return render(childrenMap[_id]);
|
|
83
|
+
}) : null;
|
|
84
|
+
});
|
|
85
|
+
return (0, _ahooks.useCreation)(function () {
|
|
86
|
+
return render(data);
|
|
87
|
+
}, deps || [data]);
|
|
88
|
+
}
|
|
@@ -1,31 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.default = void 0;
|
|
8
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
7
|
var _react = require("react");
|
|
10
8
|
var _ahooks = require("ahooks");
|
|
9
|
+
var _lodash = require("lodash");
|
|
11
10
|
var usePromiseState = function usePromiseState(initialState) {
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
var _useHistoryTravel = (0, _ahooks.useHistoryTravel)(initialState),
|
|
12
|
+
value = _useHistoryTravel.value,
|
|
13
|
+
setValue = _useHistoryTravel.setValue,
|
|
14
|
+
backLength = _useHistoryTravel.backLength,
|
|
15
|
+
forwardLength = _useHistoryTravel.forwardLength,
|
|
16
|
+
back = _useHistoryTravel.back,
|
|
17
|
+
forward = _useHistoryTravel.forward;
|
|
16
18
|
var promiseRef = (0, _react.useRef)(null);
|
|
17
|
-
var setStatePromise = (0, _react.useCallback)(function (
|
|
19
|
+
var setStatePromise = (0, _react.useCallback)(function (_value) {
|
|
18
20
|
return new Promise(function (resolve) {
|
|
19
21
|
promiseRef.current = resolve;
|
|
20
|
-
|
|
22
|
+
var _valStr = JSON.stringify(_value);
|
|
23
|
+
if (!(0, _lodash.isEqual)(value, _valStr)) {
|
|
24
|
+
setValue(_valStr);
|
|
25
|
+
}
|
|
21
26
|
});
|
|
22
27
|
}, []);
|
|
23
|
-
(0, _ahooks.
|
|
28
|
+
(0, _ahooks.useUpdateLayoutEffect)(function () {
|
|
24
29
|
if (promiseRef.current) {
|
|
25
|
-
promiseRef.current(
|
|
30
|
+
promiseRef.current(JSON.parse(value));
|
|
26
31
|
promiseRef.current = null;
|
|
27
32
|
}
|
|
28
|
-
}, [
|
|
29
|
-
return [
|
|
33
|
+
}, [value]);
|
|
34
|
+
return [JSON.parse(value), setStatePromise, {
|
|
35
|
+
backLength: backLength - 1,
|
|
36
|
+
forwardLength: forwardLength,
|
|
37
|
+
back: back,
|
|
38
|
+
forward: forward
|
|
39
|
+
}];
|
|
30
40
|
};
|
|
31
41
|
var _default = exports.default = usePromiseState;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
|
+
var _ahooks = require("ahooks");
|
|
13
|
+
var _antd = require("luck-design/antd");
|
|
14
|
+
var _lodash = require("lodash");
|
|
15
|
+
var _helper = require("./helper");
|
|
16
|
+
var _apiUrl = require("../../constants/api-url");
|
|
17
|
+
var _excluded = ["datasetCode"];
|
|
18
|
+
var useTodo = function useTodo() {
|
|
19
|
+
var _useBoolean = (0, _ahooks.useBoolean)(),
|
|
20
|
+
_useBoolean2 = (0, _slicedToArray2.default)(_useBoolean, 2),
|
|
21
|
+
loading = _useBoolean2[0],
|
|
22
|
+
_useBoolean2$ = _useBoolean2[1],
|
|
23
|
+
setTrue = _useBoolean2$.setTrue,
|
|
24
|
+
setFalse = _useBoolean2$.setFalse;
|
|
25
|
+
var callBehavior = (0, _ahooks.useMemoizedFn)(function (_ref, params, data) {
|
|
26
|
+
var moduleCode = _ref.moduleCode,
|
|
27
|
+
datasetCode = _ref.datasetCode,
|
|
28
|
+
behaviorKey = _ref.behaviorKey;
|
|
29
|
+
return (0, _apiUrl.fetchCallBehavior)((0, _objectSpread2.default)({
|
|
30
|
+
moduleCode: moduleCode,
|
|
31
|
+
datasetCode: datasetCode,
|
|
32
|
+
behaviorKey: behaviorKey
|
|
33
|
+
}, params), data);
|
|
34
|
+
});
|
|
35
|
+
var todo = (0, _ahooks.useMemoizedFn)(function (ctx, actionPool) {
|
|
36
|
+
var argsMap = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
37
|
+
if ((0, _lodash.isNil)(actionPool)) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
var dsCode = argsMap.datasetCode,
|
|
41
|
+
args = (0, _objectWithoutProperties2.default)(argsMap, _excluded);
|
|
42
|
+
var argsName = (0, _lodash.keys)(args);
|
|
43
|
+
var _args = argsName.map(function (n) {
|
|
44
|
+
return args[n];
|
|
45
|
+
});
|
|
46
|
+
if (actionPool.length > 0) {
|
|
47
|
+
setTrue();
|
|
48
|
+
var tasks = actionPool.map(function (_ref2) {
|
|
49
|
+
var _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
|
|
50
|
+
actionKey = _ref3[0],
|
|
51
|
+
info = _ref3[1];
|
|
52
|
+
switch (info.category) {
|
|
53
|
+
case 'custom':
|
|
54
|
+
return Promise.resolve(_helper.executeCode.apply(void 0, [ctx, info.code, argsName].concat((0, _toConsumableArray2.default)(_args))));
|
|
55
|
+
case 'page-action':
|
|
56
|
+
{
|
|
57
|
+
var _JSON$parse = JSON.parse(info.code || '{}'),
|
|
58
|
+
moduleCode = _JSON$parse.moduleCode,
|
|
59
|
+
datasetCode = _JSON$parse.datasetCode,
|
|
60
|
+
params = _JSON$parse.params,
|
|
61
|
+
data = _JSON$parse.data;
|
|
62
|
+
var _dscode = datasetCode || dsCode;
|
|
63
|
+
if (!moduleCode || !_dscode) {
|
|
64
|
+
_antd.message.warning('接口重要参数(模块编码或数据集编码)丢失');
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
return callBehavior({
|
|
68
|
+
datasetCode: _dscode,
|
|
69
|
+
moduleCode: moduleCode,
|
|
70
|
+
behaviorKey: actionKey
|
|
71
|
+
}, params, data);
|
|
72
|
+
}
|
|
73
|
+
case 'trigger':
|
|
74
|
+
return Promise.resolve();
|
|
75
|
+
default:
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
return Promise.all(tasks).finally(setFalse);
|
|
80
|
+
}
|
|
81
|
+
return Promise.resolve();
|
|
82
|
+
});
|
|
83
|
+
return [todo, callBehavior, loading];
|
|
84
|
+
};
|
|
85
|
+
var _default = exports.default = useTodo;
|
package/lib/lowcode/index.js
CHANGED
|
@@ -10,6 +10,12 @@ Object.defineProperty(exports, "Painter", {
|
|
|
10
10
|
return _painter.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
+
Object.defineProperty(exports, "Preview", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _preview.default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
13
19
|
Object.defineProperty(exports, "View", {
|
|
14
20
|
enumerable: true,
|
|
15
21
|
get: function get() {
|
|
@@ -19,6 +25,7 @@ Object.defineProperty(exports, "View", {
|
|
|
19
25
|
exports.default = launcher;
|
|
20
26
|
var _painter = _interopRequireDefault(require("./painter"));
|
|
21
27
|
var _view = _interopRequireDefault(require("./view"));
|
|
28
|
+
var _preview = _interopRequireDefault(require("./preview"));
|
|
22
29
|
// export * as dataProcess from './engine/tools/dataProcess';
|
|
23
30
|
|
|
24
31
|
function launcher() {}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -13,8 +14,10 @@ var _antd = require("luck-design/antd");
|
|
|
13
14
|
var _ahooks = require("ahooks");
|
|
14
15
|
var _utils = require("@luck-design-biz/base/utils");
|
|
15
16
|
var _ContextProvider = require("../engine/provider/ContextProvider");
|
|
17
|
+
var _core = require("@dnd-kit/core");
|
|
16
18
|
var _components = _interopRequireDefault(require("./style/components.less"));
|
|
17
19
|
var _componentsList = _interopRequireDefault(require("../engine/meta/components-list.json"));
|
|
20
|
+
var _DragDropContext = require("./components/DragDrop/DragDropContext");
|
|
18
21
|
var TabPane = _antd.Tabs.TabPane;
|
|
19
22
|
var Search = _antd.Input.Search;
|
|
20
23
|
var BaseCom = function BaseCom(_ref) {
|
|
@@ -36,7 +39,7 @@ var BaseCom = function BaseCom(_ref) {
|
|
|
36
39
|
}).filter(function (group) {
|
|
37
40
|
return group.components.length > 0;
|
|
38
41
|
});
|
|
39
|
-
}, [
|
|
42
|
+
}, [searchTerm]);
|
|
40
43
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
41
44
|
className: _components.default['components-search']
|
|
42
45
|
}, /*#__PURE__*/_react.default.createElement(Search, {
|
|
@@ -52,30 +55,53 @@ var BaseCom = function BaseCom(_ref) {
|
|
|
52
55
|
key: group.group,
|
|
53
56
|
className: _components.default['components-wrapper']
|
|
54
57
|
}, /*#__PURE__*/_react.default.createElement("h3", null, group.groupName), group.components.map(function (item) {
|
|
55
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
58
|
+
return /*#__PURE__*/_react.default.createElement(CompItem, {
|
|
56
59
|
key: item.component,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
62
|
-
className: _components.default['icon-wrapper']
|
|
63
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Icon, {
|
|
64
|
-
type: item.icon || 'home'
|
|
65
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
66
|
-
className: _components.default['text-content']
|
|
67
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, item.name)));
|
|
60
|
+
item: item,
|
|
61
|
+
onComponentClick: onComponentClick
|
|
62
|
+
});
|
|
68
63
|
}));
|
|
69
64
|
})));
|
|
70
65
|
};
|
|
66
|
+
var CompItem = function CompItem(_ref2) {
|
|
67
|
+
var item = _ref2.item,
|
|
68
|
+
onComponentClick = _ref2.onComponentClick;
|
|
69
|
+
// console.log('CompItem', item.component);
|
|
70
|
+
var _useDraggable = (0, _core.useDraggable)({
|
|
71
|
+
id: 'comlist-' + item.component,
|
|
72
|
+
data: {
|
|
73
|
+
component: item,
|
|
74
|
+
action: _DragDropContext.Action.ADD
|
|
75
|
+
}
|
|
76
|
+
}),
|
|
77
|
+
attributes = _useDraggable.attributes,
|
|
78
|
+
listeners = _useDraggable.listeners,
|
|
79
|
+
transform = _useDraggable.transform,
|
|
80
|
+
setNodeRef = _useDraggable.setNodeRef;
|
|
81
|
+
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
|
|
82
|
+
ref: setNodeRef
|
|
83
|
+
}, listeners, attributes, {
|
|
84
|
+
key: item.component,
|
|
85
|
+
className: _components.default['components-item'],
|
|
86
|
+
onClick: function onClick() {
|
|
87
|
+
return onComponentClick(item);
|
|
88
|
+
}
|
|
89
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
90
|
+
className: _components.default['icon-wrapper']
|
|
91
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Icon, {
|
|
92
|
+
type: item.icon || 'home'
|
|
93
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
94
|
+
className: _components.default['text-content']
|
|
95
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, item.name)));
|
|
96
|
+
};
|
|
71
97
|
|
|
72
98
|
/**
|
|
73
99
|
* 组件清单
|
|
74
100
|
*/
|
|
75
|
-
var Components = function Components(
|
|
76
|
-
var
|
|
77
|
-
dataset =
|
|
78
|
-
var context = (0, _ContextProvider.
|
|
101
|
+
var Components = function Components(_ref3) {
|
|
102
|
+
var _ref3$dataset = _ref3.dataset,
|
|
103
|
+
dataset = _ref3$dataset === void 0 ? 'test' : _ref3$dataset;
|
|
104
|
+
var context = (0, _ContextProvider.useContext)();
|
|
79
105
|
var onComponentClick = (0, _ahooks.useMemoizedFn)(function (data) {
|
|
80
106
|
context.$publisher(context.topics.COMPONENT_SETTING_CLICK, {
|
|
81
107
|
data: data
|
|
@@ -103,10 +129,10 @@ var Components = function Components(_ref2) {
|
|
|
103
129
|
onComponentClick: onComponentClick
|
|
104
130
|
})), /*#__PURE__*/_react.default.createElement(TabPane, {
|
|
105
131
|
tab: (0, _utils.formatMessage)({
|
|
106
|
-
id: 'ccm.dev.page.set.components.
|
|
107
|
-
label: '
|
|
132
|
+
id: 'ccm.dev.page.set.components.custom',
|
|
133
|
+
label: '自定义组件'
|
|
108
134
|
}),
|
|
109
135
|
key: "dataset"
|
|
110
|
-
})));
|
|
136
|
+
}, "\u656C\u8BF7\u671F\u5F85")));
|
|
111
137
|
};
|
|
112
138
|
var _default = exports.default = Components;
|
|
@@ -12,6 +12,8 @@ var _umi = require("umi");
|
|
|
12
12
|
var _ahooks = require("ahooks");
|
|
13
13
|
var _moment = _interopRequireDefault(require("moment"));
|
|
14
14
|
var _antd = require("luck-design/antd");
|
|
15
|
+
var _utils = require("@luck-design-biz/base/utils");
|
|
16
|
+
var _ContextProvider = require("../engine/provider/ContextProvider");
|
|
15
17
|
var _DesignToolbar = _interopRequireDefault(require("./DesignToolbar"));
|
|
16
18
|
var _DesignOperator = _interopRequireDefault(require("./DesignOperator"));
|
|
17
19
|
var _Page = _interopRequireDefault(require("../view/Page"));
|
|
@@ -19,6 +21,7 @@ var _design = _interopRequireDefault(require("./style/design.less"));
|
|
|
19
21
|
var Design = function Design() {
|
|
20
22
|
var _localeInfo$locale;
|
|
21
23
|
var simulatorRef = (0, _react.useRef)(null);
|
|
24
|
+
var remoteSource = (0, _ContextProvider.useRemoteSource)();
|
|
22
25
|
var _useState = (0, _react.useState)(function () {
|
|
23
26
|
return (0, _umi.getLocale)();
|
|
24
27
|
}),
|
|
@@ -31,6 +34,35 @@ var Design = function Design() {
|
|
|
31
34
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
32
35
|
intl = _useState4[0],
|
|
33
36
|
setIntl = _useState4[1];
|
|
37
|
+
var unblock = (0, _ahooks.useMemoizedFn)(function () {
|
|
38
|
+
if (remoteSource.backLength > 0) return confirm("".concat((0, _utils.formatMessage)({
|
|
39
|
+
id: 'app.base.operate.comfire.leave',
|
|
40
|
+
label: '离开当前页面?'
|
|
41
|
+
}), "\n").concat((0, _utils.formatMessage)({
|
|
42
|
+
id: 'app.base.operate.comfire.message.leave',
|
|
43
|
+
label: '系统可能不会保存您所做的更改。'
|
|
44
|
+
})));
|
|
45
|
+
return true;
|
|
46
|
+
});
|
|
47
|
+
var handleBeforeUnload = (0, _ahooks.useMemoizedFn)(function (event) {
|
|
48
|
+
if (remoteSource.backLength > 0) {
|
|
49
|
+
event.preventDefault();
|
|
50
|
+
event.returnValue = null;
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
(0, _react.useEffect)(function () {
|
|
55
|
+
window.addEventListener('beforeunload', handleBeforeUnload);
|
|
56
|
+
_umi.history.block(function () {
|
|
57
|
+
return unblock();
|
|
58
|
+
});
|
|
59
|
+
return function () {
|
|
60
|
+
window.removeEventListener('beforeunload', handleBeforeUnload);
|
|
61
|
+
_umi.history.block(function () {
|
|
62
|
+
return true;
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
}, []);
|
|
34
66
|
var handleLangChange = (0, _ahooks.useMemoizedFn)(function (_locale) {
|
|
35
67
|
if (_moment.default !== null && _moment.default !== void 0 && _moment.default.locale) {
|
|
36
68
|
var _localeInfo$_locale;
|
|
@@ -18,6 +18,7 @@ var _constants = require("../constants");
|
|
|
18
18
|
var _design = _interopRequireDefault(require("./style/design.less"));
|
|
19
19
|
var _MODAL_COMPONENT_ = ['Dialog', 'Drawer'];
|
|
20
20
|
var getOperatorStyle = function getOperatorStyle(page, cellNode) {
|
|
21
|
+
if (!cellNode) return {};
|
|
21
22
|
var _page$getBoundingClie = page.getBoundingClientRect(),
|
|
22
23
|
pageLeft = _page$getBoundingClie.left,
|
|
23
24
|
pageTop = _page$getBoundingClie.top;
|
|
@@ -34,7 +35,11 @@ var getOperatorStyle = function getOperatorStyle(page, cellNode) {
|
|
|
34
35
|
var DesignOperator = function DesignOperator(_ref) {
|
|
35
36
|
var _getDomById, _getDomById2;
|
|
36
37
|
var target = _ref.target;
|
|
37
|
-
var context = (0, _ContextProvider.
|
|
38
|
+
var context = (0, _ContextProvider.useContext)();
|
|
39
|
+
var _usePageData = (0, _ContextProvider.usePageData)(),
|
|
40
|
+
_usePageData2 = (0, _slicedToArray2.default)(_usePageData, 2),
|
|
41
|
+
pageData = _usePageData2[0],
|
|
42
|
+
setPageData = _usePageData2[1].setPageData;
|
|
38
43
|
var size = (0, _ahooks.useSize)(target);
|
|
39
44
|
var _useState = (0, _react.useState)((0, _utils.suid)()),
|
|
40
45
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -50,7 +55,8 @@ var DesignOperator = function DesignOperator(_ref) {
|
|
|
50
55
|
var lastSelectorId = (0, _ahooks.useLatest)(operatorId.selector);
|
|
51
56
|
var currentModal = (0, _react.useRef)(null);
|
|
52
57
|
var getDomById = (0, _ahooks.useMemoizedFn)(function (id) {
|
|
53
|
-
|
|
58
|
+
var _context$componentMap;
|
|
59
|
+
return (_context$componentMap = context.componentMap.get(id)) === null || _context$componentMap === void 0 ? void 0 : _context$componentMap.api.getSelfDom();
|
|
54
60
|
});
|
|
55
61
|
var handleSelect = (0, _ahooks.useMemoizedFn)(function (_key) {
|
|
56
62
|
context.$publisher(context.topics.COMPONENT_ACTIVE, _key ? {
|
|
@@ -63,34 +69,29 @@ var DesignOperator = function DesignOperator(_ref) {
|
|
|
63
69
|
} : null);
|
|
64
70
|
});
|
|
65
71
|
var handleDelete = (0, _ahooks.useMemoizedFn)(function (_ref2) {
|
|
66
|
-
var id = _ref2.id
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
(0, _dataProcess.deleteById)(cloneData, id);
|
|
71
|
-
context._setPageData(cloneData).then(function (newData) {
|
|
72
|
-
context.$publisher(context.topics.COMPONENT_DELETE, {
|
|
73
|
-
id: id,
|
|
74
|
-
parentId: parentId,
|
|
75
|
-
pageData: newData
|
|
76
|
-
});
|
|
72
|
+
var id = _ref2.id;
|
|
73
|
+
context.$publisher(context.topics.COMPONENT_DELETE, {
|
|
74
|
+
id: id,
|
|
75
|
+
pageData: pageData
|
|
77
76
|
});
|
|
78
77
|
});
|
|
79
78
|
var addComponent = (0, _ahooks.useMemoizedFn)(function (data, targetId) {
|
|
80
79
|
var json = require("../engine/meta/".concat(data.component.toLowerCase(), ".props.default.json"));
|
|
81
80
|
var _id = "".concat(data.component.toLowerCase(), "_").concat((0, _utils.suid)());
|
|
82
|
-
|
|
83
|
-
(0, _dataProcess.add)(cloneData, targetId, _id, json);
|
|
81
|
+
(0, _dataProcess.add)(pageData, targetId, _id, json);
|
|
84
82
|
context.$subscriber(context.topics.COMPONENT_MOUNT).once(function (_ref3) {
|
|
85
83
|
var mountCompId = _ref3.id;
|
|
86
84
|
if (mountCompId === _id) {
|
|
87
85
|
context.$publisher(context.topics.COMPONENT_APPEND, {
|
|
88
86
|
id: _id,
|
|
89
|
-
pageData:
|
|
87
|
+
pageData: pageData
|
|
88
|
+
});
|
|
89
|
+
context.$publisher(context.topics.COMPONENT_ACTIVE, {
|
|
90
|
+
id: _id
|
|
90
91
|
});
|
|
91
92
|
}
|
|
92
93
|
}).watch();
|
|
93
|
-
|
|
94
|
+
setPageData(pageData);
|
|
94
95
|
});
|
|
95
96
|
var acticeProps = (0, _ahooks.useCreation)(function () {
|
|
96
97
|
if (!operatorId.selector) return null;
|
|
@@ -121,7 +122,7 @@ var DesignOperator = function DesignOperator(_ref) {
|
|
|
121
122
|
}, [operatorId.detector]);
|
|
122
123
|
(0, _ahooks.useEventListener)('mousemove', function (event) {
|
|
123
124
|
var elem = event.target;
|
|
124
|
-
var targetCell = elem.closest(".".concat(_constants.
|
|
125
|
+
var targetCell = elem.closest("[".concat(_constants.LC_COMPONENT_UNIT_KEY, "=\"").concat(_constants.LC_COMPONENT_UNIT, "\"]"));
|
|
125
126
|
var targetCellId = targetCell === null || targetCell === void 0 ? void 0 : targetCell.id;
|
|
126
127
|
if (targetCellId && targetCellId !== operatorId.detector && targetCellId !== operatorId.selector) {
|
|
127
128
|
setOperatorId({
|
|
@@ -151,7 +152,7 @@ var DesignOperator = function DesignOperator(_ref) {
|
|
|
151
152
|
});
|
|
152
153
|
(0, _ahooks.useEventListener)('click', function (event) {
|
|
153
154
|
var elem = event.target;
|
|
154
|
-
var targetCell = elem.closest(".".concat(_constants.
|
|
155
|
+
var targetCell = elem.closest("[".concat(_constants.LC_COMPONENT_UNIT_KEY, "=\"").concat(_constants.LC_COMPONENT_UNIT, "\"]"));
|
|
155
156
|
var targetCellId = targetCell === null || targetCell === void 0 ? void 0 : targetCell.id;
|
|
156
157
|
if (!targetCellId || targetCellId === operatorId.selector) return;
|
|
157
158
|
context.$publisher(context.topics.COMPONENT_HOVER, null);
|
|
@@ -175,14 +176,14 @@ var DesignOperator = function DesignOperator(_ref) {
|
|
|
175
176
|
id: compId
|
|
176
177
|
});
|
|
177
178
|
}).watch();
|
|
178
|
-
addComponent(data, _constants.
|
|
179
|
+
addComponent(data, _constants.LC_BUILDIN_UNIT_KEY.PAGE_ROOT);
|
|
179
180
|
return;
|
|
180
181
|
}
|
|
181
182
|
if (!lastSelectorId.current) {
|
|
182
183
|
_antd.message.info('请在右侧画布选择节点');
|
|
183
184
|
return;
|
|
184
185
|
}
|
|
185
|
-
if (context.componentMap.get(lastSelectorId.current).
|
|
186
|
+
if (!_constants.CONTAINER_UNITS.includes(context.componentMap.get(lastSelectorId.current).meta.component)) {
|
|
186
187
|
_antd.message.info('该节点不支持添加子节点');
|
|
187
188
|
return;
|
|
188
189
|
}
|
|
@@ -197,8 +198,11 @@ var DesignOperator = function DesignOperator(_ref) {
|
|
|
197
198
|
}).watch();
|
|
198
199
|
var acid = context.$subscriber(context.topics.COMPONENT_ACTIVE).on(function (payload) {
|
|
199
200
|
if (payload.id) {
|
|
201
|
+
var _context$componentMap2 = context.componentMap.get(payload.id).api.getSelfAndParentLCData(),
|
|
202
|
+
node = _context$componentMap2.node;
|
|
200
203
|
setOperatorId({
|
|
201
204
|
selector: payload.id,
|
|
205
|
+
deletable: node.props.buildIn !== true,
|
|
202
206
|
detector: null
|
|
203
207
|
});
|
|
204
208
|
} else {
|
|
@@ -219,16 +223,29 @@ var DesignOperator = function DesignOperator(_ref) {
|
|
|
219
223
|
currentModal.current = id;
|
|
220
224
|
} else {
|
|
221
225
|
target.current.style.removeProperty('overflow');
|
|
222
|
-
var
|
|
223
|
-
|
|
224
|
-
|
|
226
|
+
var _id = id || currentModal.current;
|
|
227
|
+
if (_id) {
|
|
228
|
+
var _modal2 = context.componentMap.get(_id);
|
|
229
|
+
_modal2.api.doClose();
|
|
230
|
+
currentModal.current = void 0;
|
|
231
|
+
}
|
|
225
232
|
}
|
|
226
233
|
}).watch();
|
|
234
|
+
var cdid = context.$subscriber(context.topics.COMPONENT_DELETE).on(function (_ref7) {
|
|
235
|
+
var id = _ref7.id,
|
|
236
|
+
pageData = _ref7.pageData;
|
|
237
|
+
if (lastSelectorId.current === id) {
|
|
238
|
+
context.$publisher(context.topics.COMPONENT_ACTIVE, null);
|
|
239
|
+
}
|
|
240
|
+
(0, _dataProcess.deleteById)(pageData, id);
|
|
241
|
+
setPageData(pageData);
|
|
242
|
+
});
|
|
227
243
|
return function () {
|
|
228
244
|
context.$unsubscriber(context.topics.COMPONENT_SETTING_CLICK, csid);
|
|
229
245
|
context.$unsubscriber(context.topics.COMPONENT_HOVER, hcid);
|
|
230
246
|
context.$unsubscriber(context.topics.COMPONENT_ACTIVE, acid);
|
|
231
247
|
context.$unsubscriber(context.topics.MODAL_OPEN, cmtid);
|
|
248
|
+
context.$unsubscriber(context.topics.COMPONENT_DELETE, cdid);
|
|
232
249
|
};
|
|
233
250
|
}, []);
|
|
234
251
|
(0, _react.useEffect)(function () {
|
|
@@ -242,7 +259,7 @@ var DesignOperator = function DesignOperator(_ref) {
|
|
|
242
259
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, operatorId.detector && /*#__PURE__*/_react.default.createElement("div", {
|
|
243
260
|
id: "lc-detector",
|
|
244
261
|
className: _design.default['lc-painter-design-detector'],
|
|
245
|
-
style: getOperatorStyle(target.current, getDomById(operatorId.detector))
|
|
262
|
+
style: getOperatorStyle(target.current, getDomById(operatorId.detector), 'detector', operatorId.detector)
|
|
246
263
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
247
264
|
className: _design.default['lc-painter-design-detector-name'],
|
|
248
265
|
style: {
|
|
@@ -252,10 +269,10 @@ var DesignOperator = function DesignOperator(_ref) {
|
|
|
252
269
|
id: "lc-selector",
|
|
253
270
|
key: "".concat((size === null || size === void 0 ? void 0 : size.width) || 0, "-").concat((size === null || size === void 0 ? void 0 : size.height) || 0, "-").concat(positionKey),
|
|
254
271
|
className: _design.default['lc-painter-design-selector'],
|
|
255
|
-
style: getOperatorStyle(target.current, getDomById(operatorId.selector))
|
|
272
|
+
style: getOperatorStyle(target.current, getDomById(operatorId.selector), 'selector', operatorId.selector)
|
|
256
273
|
}, acticeProps && /*#__PURE__*/_react.default.createElement("div", {
|
|
257
274
|
className: _design.default['lc-borders-actions'],
|
|
258
|
-
style: acticeProps.props.id === _constants.
|
|
275
|
+
style: acticeProps.props.id === _constants.LC_BUILDIN_UNIT_KEY.PAGE_ROOT ? {
|
|
259
276
|
top: 0
|
|
260
277
|
} : ((_getDomById2 = getDomById(operatorId.selector)) === null || _getDomById2 === void 0 ? void 0 : _getDomById2.offsetTop) < 23 ? {
|
|
261
278
|
bottom: '-23px'
|
|
@@ -267,7 +284,7 @@ var DesignOperator = function DesignOperator(_ref) {
|
|
|
267
284
|
placement: "bottomLeft"
|
|
268
285
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
269
286
|
className: "instance-node-selector"
|
|
270
|
-
}, acticeProps.props.name)), /*#__PURE__*/_react.default.createElement("div", {
|
|
287
|
+
}, acticeProps.props.name)), operatorId.deletable && /*#__PURE__*/_react.default.createElement("div", {
|
|
271
288
|
onClick: function onClick() {
|
|
272
289
|
return handleDelete(acticeProps.props);
|
|
273
290
|
}
|