@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
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["dsid", "defaultValue", "onChange"];
|
|
5
|
+
import React, { useState } from 'react';
|
|
6
|
+
import { Select } from 'luck-design/antd';
|
|
7
|
+
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
8
|
+
var FieldSelector = function FieldSelector(_ref) {
|
|
9
|
+
var dsid = _ref.dsid,
|
|
10
|
+
defaultValue = _ref.defaultValue,
|
|
11
|
+
onChange = _ref.onChange,
|
|
12
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
var _useState = useState([{
|
|
14
|
+
value: 'state',
|
|
15
|
+
label: '状态'
|
|
16
|
+
}, {
|
|
17
|
+
value: 'type',
|
|
18
|
+
label: '类型'
|
|
19
|
+
}, {
|
|
20
|
+
value: 'year',
|
|
21
|
+
label: '年份'
|
|
22
|
+
}, {
|
|
23
|
+
value: 'count',
|
|
24
|
+
label: '次数'
|
|
25
|
+
}]),
|
|
26
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
+
options = _useState2[0],
|
|
28
|
+
setOptions = _useState2[1];
|
|
29
|
+
return /*#__PURE__*/React.createElement(Select, _extends({
|
|
30
|
+
defaultValue: defaultValue,
|
|
31
|
+
onChange: onChange,
|
|
32
|
+
size: "small",
|
|
33
|
+
placeholder: formatMessage({
|
|
34
|
+
id: "luckda.lowcode.painter.panel-section.field-selector.placeholder",
|
|
35
|
+
label: '请选择字段'
|
|
36
|
+
})
|
|
37
|
+
}, props), options.map(function (opt) {
|
|
38
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
39
|
+
key: opt.value,
|
|
40
|
+
value: opt.value
|
|
41
|
+
}, opt.label);
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
export default FieldSelector;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Icon } from 'luck-design/antd';
|
|
3
|
+
import { Icon, Button } from 'luck-design/antd';
|
|
4
4
|
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
5
5
|
import styles from "../style/list-editor.less";
|
|
6
6
|
|
|
@@ -16,19 +16,26 @@ import styles from "../style/list-editor.less";
|
|
|
16
16
|
export var ListEditor = function ListEditor(_ref) {
|
|
17
17
|
var children = _ref.children,
|
|
18
18
|
addText = _ref.addText,
|
|
19
|
-
|
|
19
|
+
addIcon = _ref.addIcon,
|
|
20
|
+
handleAdd = _ref.handleAdd,
|
|
21
|
+
suppressAdd = _ref.suppressAdd,
|
|
22
|
+
addBtnProps = _ref.addBtnProps,
|
|
23
|
+
style = _ref.style;
|
|
20
24
|
return /*#__PURE__*/React.createElement("div", {
|
|
21
|
-
className: styles['lc-painter-panel-section-components-listeditor']
|
|
25
|
+
className: styles['lc-painter-panel-section-components-listeditor'],
|
|
26
|
+
style: style
|
|
22
27
|
}, /*#__PURE__*/React.createElement("div", {
|
|
23
28
|
className: styles['list-box']
|
|
24
29
|
}, children), /*#__PURE__*/React.createElement("div", {
|
|
25
30
|
className: styles['list-actions']
|
|
26
|
-
}, /*#__PURE__*/React.createElement(
|
|
27
|
-
|
|
31
|
+
}, !suppressAdd && /*#__PURE__*/React.createElement(Button, _extends({
|
|
32
|
+
block: true,
|
|
33
|
+
size: "small",
|
|
34
|
+
type: "dashed",
|
|
35
|
+
icon: addIcon || 'plus-circle'
|
|
36
|
+
}, addBtnProps, {
|
|
28
37
|
onClick: handleAdd
|
|
29
|
-
},
|
|
30
|
-
type: "plus-circle"
|
|
31
|
-
}), ' ', addText || formatMessage({
|
|
38
|
+
}), addText || formatMessage({
|
|
32
39
|
id: 'luckda.lowcode.painter.panel-section.components.listeditor.add',
|
|
33
40
|
label: '添加一项'
|
|
34
41
|
}))));
|
|
@@ -60,6 +67,8 @@ export var ListEditorItem = function ListEditorItem(_ref2) {
|
|
|
60
67
|
style = _ref2.style,
|
|
61
68
|
attributes = _ref2.attributes,
|
|
62
69
|
listeners = _ref2.listeners,
|
|
70
|
+
_ref2$sortable = _ref2.sortable,
|
|
71
|
+
sortable = _ref2$sortable === void 0 ? true : _ref2$sortable,
|
|
63
72
|
transform = _ref2.transform,
|
|
64
73
|
transition = _ref2.transition;
|
|
65
74
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -68,7 +77,7 @@ export var ListEditorItem = function ListEditorItem(_ref2) {
|
|
|
68
77
|
className: styles['list-item']
|
|
69
78
|
}, /*#__PURE__*/React.createElement("div", {
|
|
70
79
|
className: styles['list-item-left']
|
|
71
|
-
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
80
|
+
}, sortable && /*#__PURE__*/React.createElement("div", _extends({
|
|
72
81
|
ref: setActivatorNodeRef
|
|
73
82
|
}, attributes, listeners, {
|
|
74
83
|
className: styles['dragicon']
|
|
@@ -55,7 +55,7 @@ export default function (_ref) {
|
|
|
55
55
|
str = "\u5C5E\u6027\uFF1A".concat(field);
|
|
56
56
|
}
|
|
57
57
|
if (desc) {
|
|
58
|
-
str
|
|
58
|
+
str = "".concat(str ? "".concat(str, " | ") : '', "\u8BF4\u660E\uFF1A").concat(desc);
|
|
59
59
|
}
|
|
60
60
|
return str;
|
|
61
61
|
}, [field, desc]);
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["showBtn"];
|
|
2
5
|
import React from 'react';
|
|
3
6
|
import { Popconfirm } from 'luck-design/antd';
|
|
7
|
+
import classNames from 'classnames';
|
|
4
8
|
import styles from "../style/pop-confirm.less";
|
|
5
9
|
|
|
6
10
|
/**
|
|
7
11
|
* 这个组件是对 luck-design/antd 的 Popconfirm 组件的封装。
|
|
8
12
|
* 它提供了一个带有自定义样式的弹出确认框,用于在用户尝试执行重要操作前提示确认信息。
|
|
9
13
|
* 通过传入的 props 可以自定义 Popconfirm 组件的行为和外观。
|
|
10
|
-
*
|
|
14
|
+
*
|
|
11
15
|
* @param {Object} props - 传递给 Popconfirm 组件的属性。这包括所有标准的 Popconfirm 属性,
|
|
12
16
|
* 以及任何额外的属性,如事件处理器或自定义内容。
|
|
13
17
|
* @returns {ReactNode} 返回一个配置了自定义样式和指定属性的 Popconfirm 组件实例。
|
|
14
18
|
*/
|
|
15
|
-
export default function (
|
|
19
|
+
export default function (_ref) {
|
|
20
|
+
var _ref$showBtn = _ref.showBtn,
|
|
21
|
+
showBtn = _ref$showBtn === void 0 ? false : _ref$showBtn,
|
|
22
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
23
|
return /*#__PURE__*/React.createElement(Popconfirm, _extends({
|
|
17
|
-
overlayClassName: styles['lc-painter-panel-section-components-popconfirm'],
|
|
24
|
+
overlayClassName: classNames(styles['lc-painter-panel-section-components-popconfirm'], _defineProperty({}, styles['show-btn'], showBtn)),
|
|
18
25
|
icon: null,
|
|
19
26
|
getPopupContainer: function getPopupContainer() {
|
|
20
27
|
return document.getElementById('lc-design-workspace');
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
1
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["datas", "children", "onChange", "strategy", "onDragEnd"];
|
|
2
5
|
import React, { useState, useEffect } from 'react';
|
|
3
6
|
import { DndContext } from '@dnd-kit/core';
|
|
4
7
|
import { SortableContext, arrayMove, useSortable, verticalListSortingStrategy } from '@dnd-kit/sortable';
|
|
@@ -20,7 +23,9 @@ export var SortBox = function SortBox(_ref) {
|
|
|
20
23
|
var datas = _ref.datas,
|
|
21
24
|
children = _ref.children,
|
|
22
25
|
onChange = _ref.onChange,
|
|
23
|
-
strategy = _ref.strategy
|
|
26
|
+
strategy = _ref.strategy,
|
|
27
|
+
onDragEnd = _ref.onDragEnd,
|
|
28
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
24
29
|
var _useState = useState(datas),
|
|
25
30
|
_useState2 = _slicedToArray(_useState, 2),
|
|
26
31
|
items = _useState2[0],
|
|
@@ -30,21 +35,23 @@ export var SortBox = function SortBox(_ref) {
|
|
|
30
35
|
setItems(datas);
|
|
31
36
|
}, [datas]);
|
|
32
37
|
function handleDragEnd(event) {
|
|
38
|
+
onDragEnd && onDragEnd(event);
|
|
33
39
|
var active = event.active,
|
|
34
40
|
over = event.over;
|
|
41
|
+
if (!active || !over) return;
|
|
35
42
|
if (active.id !== over.id) {
|
|
36
43
|
setItems(function (items) {
|
|
37
44
|
var oldIndex = items.indexOf(active.id);
|
|
38
45
|
var newIndex = items.indexOf(over.id);
|
|
39
46
|
var newSortItem = arrayMove(items, oldIndex, newIndex);
|
|
40
|
-
if (onChange) onChange(newSortItem);
|
|
47
|
+
if (onChange) onChange(newSortItem, oldIndex, newIndex);
|
|
41
48
|
return newSortItem;
|
|
42
49
|
});
|
|
43
50
|
}
|
|
44
51
|
}
|
|
45
|
-
return /*#__PURE__*/React.createElement(DndContext, {
|
|
52
|
+
return /*#__PURE__*/React.createElement(DndContext, _extends({}, rest, {
|
|
46
53
|
onDragEnd: handleDragEnd
|
|
47
|
-
}, /*#__PURE__*/React.createElement(SortableContext, {
|
|
54
|
+
}), /*#__PURE__*/React.createElement(SortableContext, {
|
|
48
55
|
strategy: sortStrategy,
|
|
49
56
|
items: items
|
|
50
57
|
}, children));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import TreeDragDropWrapper from "./DragDrop/TreeDragDropWrapper";
|
|
3
|
+
export default function (_ref) {
|
|
4
|
+
var item = _ref.item;
|
|
5
|
+
var EditorNode = function EditorNode() {
|
|
6
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7
|
+
className: "item"
|
|
8
|
+
}, item.name);
|
|
9
|
+
};
|
|
10
|
+
return /*#__PURE__*/React.createElement(TreeDragDropWrapper, {
|
|
11
|
+
item: item
|
|
12
|
+
}, /*#__PURE__*/React.createElement(EditorNode, null));
|
|
13
|
+
}
|
|
@@ -60,7 +60,19 @@ var BaseEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
60
60
|
value: code,
|
|
61
61
|
language: language,
|
|
62
62
|
automaticLayout: true
|
|
63
|
-
}, options)
|
|
63
|
+
}, options), {
|
|
64
|
+
storageService: {
|
|
65
|
+
get: function get() {},
|
|
66
|
+
getBoolean: function getBoolean(key) {
|
|
67
|
+
if (key === 'expandSuggestionDocs') return true;
|
|
68
|
+
return false;
|
|
69
|
+
},
|
|
70
|
+
remove: function remove() {},
|
|
71
|
+
store: function store() {},
|
|
72
|
+
onWillSaveState: function onWillSaveState() {},
|
|
73
|
+
onDidChangeStorage: function onDidChangeStorage() {}
|
|
74
|
+
}
|
|
75
|
+
});
|
|
64
76
|
editorInstance.current.onDidChangeModelContent(function (event) {
|
|
65
77
|
if (onChange) onChange(editorInstance.current.getValue(), event);
|
|
66
78
|
});
|
|
@@ -78,7 +90,7 @@ var BaseEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
78
90
|
return editorInstance.current;
|
|
79
91
|
}
|
|
80
92
|
};
|
|
81
|
-
});
|
|
93
|
+
}, []);
|
|
82
94
|
|
|
83
95
|
// 根据是否全屏来设置编辑器的样式
|
|
84
96
|
var editorStyle = isFullscreen ? {
|
|
@@ -3,18 +3,32 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
5
5
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
6
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
7
|
var _excluded = ["children"];
|
|
7
8
|
import React, { useEffect, forwardRef } from 'react';
|
|
8
9
|
import BaseEditor from "./BaseEditor";
|
|
9
10
|
import * as monaco from 'monaco-editor';
|
|
11
|
+
import { isNil } from 'lodash';
|
|
12
|
+
function capitalizeFirstLetter(string) {
|
|
13
|
+
if (isNil(string)) return null;
|
|
14
|
+
if (string.length === 0) {
|
|
15
|
+
return ''; // 如果字符串为空,返回空字符串
|
|
16
|
+
}
|
|
17
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
18
|
+
}
|
|
10
19
|
var _provideCompletionItems = function provideCompletionItems(monaco, model, position, module) {
|
|
11
20
|
var textUntilPosition = model.getValueInRange({
|
|
12
|
-
startLineNumber:
|
|
21
|
+
startLineNumber: 1,
|
|
13
22
|
startColumn: 1,
|
|
14
23
|
endLineNumber: position.lineNumber,
|
|
15
24
|
endColumn: position.column
|
|
16
25
|
});
|
|
17
|
-
|
|
26
|
+
|
|
27
|
+
// 正则表达式匹配以 triggerWord 开头的任何单词
|
|
28
|
+
var pattern = new RegExp('\\b' + module.triggerWord + '[\\w.]*', 'i');
|
|
29
|
+
var match = textUntilPosition.match(pattern);
|
|
30
|
+
// console.log('match',match)
|
|
31
|
+
if (match) {
|
|
18
32
|
var word = model.getWordUntilPosition(position);
|
|
19
33
|
var range = {
|
|
20
34
|
startLineNumber: position.lineNumber,
|
|
@@ -22,14 +36,10 @@ var _provideCompletionItems = function provideCompletionItems(monaco, model, pos
|
|
|
22
36
|
startColumn: word.startColumn,
|
|
23
37
|
endColumn: word.endColumn
|
|
24
38
|
};
|
|
25
|
-
|
|
26
|
-
// 从模块中调用 completions 函数获取补全项数组
|
|
27
|
-
// 并动态转换 kind 字段
|
|
28
39
|
return module.completions.map(function (completion) {
|
|
29
|
-
return
|
|
40
|
+
return _objectSpread(_objectSpread({}, completion), {}, {
|
|
30
41
|
range: range,
|
|
31
|
-
|
|
32
|
-
kind: monaco.languages.CompletionItemKind[completion.kind]
|
|
42
|
+
kind: monaco.languages.CompletionItemKind[capitalizeFirstLetter(completion.kind)]
|
|
33
43
|
});
|
|
34
44
|
});
|
|
35
45
|
}
|
|
@@ -45,7 +55,8 @@ var setupAutocomplete = /*#__PURE__*/function () {
|
|
|
45
55
|
return import("../../../engine/meta/js-editor/auto-complete.json");
|
|
46
56
|
case 2:
|
|
47
57
|
autoCompleteModules = _context.sent;
|
|
48
|
-
console.log('autoCompleteModules', autoCompleteModules);
|
|
58
|
+
// console.log('autoCompleteModules', autoCompleteModules);
|
|
59
|
+
|
|
49
60
|
monaco.languages.registerCompletionItemProvider('javascript', _defineProperty({
|
|
50
61
|
triggerCharacters: ['.'],
|
|
51
62
|
provideCompletionItems: function provideCompletionItems(model, position) {
|
|
@@ -61,7 +72,7 @@ var setupAutocomplete = /*#__PURE__*/function () {
|
|
|
61
72
|
};
|
|
62
73
|
}
|
|
63
74
|
}, "triggerCharacters", ['.']));
|
|
64
|
-
case
|
|
75
|
+
case 4:
|
|
65
76
|
case "end":
|
|
66
77
|
return _context.stop();
|
|
67
78
|
}
|
|
@@ -76,7 +87,7 @@ var setupAutocomplete = /*#__PURE__*/function () {
|
|
|
76
87
|
* JSEditor 组件是一个专为 JavaScript 编辑设计的 React 组件,它基于 BaseEditor 组件构建,并集成了自动完成功能。
|
|
77
88
|
* 该组件利用 monaco-editor 提供的 API,通过 setupAutocomplete 函数设置自动完成项,从而增强代码编辑体验。
|
|
78
89
|
* 自动完成逻辑包括从预定义的自动完成模块中加载补全项,以及在编辑器中键入特定字符(如".")时触发补全建议。
|
|
79
|
-
*
|
|
90
|
+
*
|
|
80
91
|
* @component
|
|
81
92
|
* @example
|
|
82
93
|
* <JSEditor
|
|
@@ -85,12 +96,12 @@ var setupAutocomplete = /*#__PURE__*/function () {
|
|
|
85
96
|
* >
|
|
86
97
|
* {`function sayHello() {\n console.log('Hello, World!');\n}`}
|
|
87
98
|
* </JSEditor>
|
|
88
|
-
*
|
|
99
|
+
*
|
|
89
100
|
* @param {Object} props - 组件的属性。
|
|
90
101
|
* @param {React.ReactNode} children - 传递给 BaseEditor 的 children,通常是初始代码或内容。
|
|
91
102
|
* @param {Object} rest - 传递给 BaseEditor 组件的其他属性。
|
|
92
103
|
* @param {React.Ref} ref - React ref 引用,用于在外部组件中访问 BaseEditor 实例的方法。
|
|
93
|
-
*
|
|
104
|
+
*
|
|
94
105
|
* @returns {ReactElement} 返回一个 React 元素,其中包含了一个具有自动完成功能的 JavaScript 编辑器实例。
|
|
95
106
|
*/
|
|
96
107
|
var JSEditor = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
@@ -101,6 +112,6 @@ var JSEditor = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
101
112
|
}, []);
|
|
102
113
|
return /*#__PURE__*/React.createElement(BaseEditor, _extends({
|
|
103
114
|
ref: ref
|
|
104
|
-
}, rest));
|
|
115
|
+
}, rest), children);
|
|
105
116
|
});
|
|
106
117
|
export default /*#__PURE__*/React.memo(JSEditor);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["children"];
|
|
4
|
+
import React, { forwardRef } from 'react';
|
|
5
|
+
import BaseEditor from "./BaseEditor";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* JsonEditor 组件是一个专门用于编辑 CSS 代码的 React 组件,它基于 BaseEditor 组件构建。
|
|
9
|
+
* 该组件通过将 language 属性固定设置为 "css",确保编辑器环境专门用于 CSS 代码编辑。
|
|
10
|
+
* 用户可以传入 CSS 代码作为 children,并通过其他 props 控制 BaseEditor 提供的额外功能。
|
|
11
|
+
*
|
|
12
|
+
* @component
|
|
13
|
+
* @example
|
|
14
|
+
* const handleCssChange = (newCss, event) => {
|
|
15
|
+
* console.log('CSS changed: ', newCss);
|
|
16
|
+
* };
|
|
17
|
+
* <JsonEditor
|
|
18
|
+
* onChange={handleCssChange}
|
|
19
|
+
* isFullscreen={false}
|
|
20
|
+
* width="600px"
|
|
21
|
+
* height="400px"
|
|
22
|
+
* >
|
|
23
|
+
* {`body { margin: 0; font-family: Arial, sans-serif; }`}
|
|
24
|
+
* </JsonEditor>
|
|
25
|
+
*
|
|
26
|
+
* @param {Object} props - 组件的属性。
|
|
27
|
+
* @param {React.ReactNode} children - 子组件,通常是编辑器的初始 CSS 代码。
|
|
28
|
+
* @param {Object} rest - 传递给 BaseEditor 组件的其他属性。
|
|
29
|
+
* @param {React.Ref} ref - React ref 引用,用于外部组件调用编辑器实例的方法。
|
|
30
|
+
*
|
|
31
|
+
* @returns {ReactElement} 返回一个 React 元素,该元素内部是一个专门用于 CSS 编辑的 BaseEditor 组件实例。
|
|
32
|
+
*/
|
|
33
|
+
var JsonEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
34
|
+
var children = _ref.children,
|
|
35
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
36
|
+
return /*#__PURE__*/React.createElement(BaseEditor, _extends({
|
|
37
|
+
ref: ref,
|
|
38
|
+
language: "json"
|
|
39
|
+
}, rest), children);
|
|
40
|
+
});
|
|
41
|
+
export default /*#__PURE__*/React.memo(JsonEditor);
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
+
import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
|
|
5
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { useDebounceFn, useMemoizedFn } from 'ahooks';
|
|
9
|
+
import { dropWhile, startsWith } from 'lodash';
|
|
10
|
+
import { useContext } from "../../../engine/provider/ContextProvider";
|
|
11
|
+
import SettingUI from "./SettingUI";
|
|
12
|
+
import { fetchAddFieldAttrs } from "../../../constants/api-url";
|
|
13
|
+
var _TRUE_FALSE_ = ['__TRUE__', '__FALSE__'];
|
|
14
|
+
var BatchSetting = function BatchSetting(_ref) {
|
|
15
|
+
var dispatch = _ref.dispatch,
|
|
16
|
+
nodeId = _ref.nodeId,
|
|
17
|
+
dataModelKey = _ref.dataModelKey,
|
|
18
|
+
datasetId = _ref.datasetId,
|
|
19
|
+
moduleId = _ref.moduleId,
|
|
20
|
+
component = _ref.component,
|
|
21
|
+
fieldsData = _ref.fieldsData,
|
|
22
|
+
onChange = _ref.onChange;
|
|
23
|
+
var ctx = useContext();
|
|
24
|
+
var handleUIChange = useMemoizedFn(function (key, val) {
|
|
25
|
+
dispatch({
|
|
26
|
+
type: 'batchEdit',
|
|
27
|
+
payload: {
|
|
28
|
+
items: _toConsumableArray(fieldsData.keys()),
|
|
29
|
+
data: _defineProperty({}, key, val)
|
|
30
|
+
},
|
|
31
|
+
callback: function callback(newFields) {
|
|
32
|
+
if (component === 'table') {
|
|
33
|
+
var gridApi = ctx.componentMap.get(nodeId).api.self.ref.current.gridApi;
|
|
34
|
+
var cols = [];
|
|
35
|
+
var _iterator = _createForOfIteratorHelper(fieldsData),
|
|
36
|
+
_step;
|
|
37
|
+
try {
|
|
38
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
39
|
+
var _step$value = _slicedToArray(_step.value, 2),
|
|
40
|
+
fieldData = _step$value[1];
|
|
41
|
+
cols.push(gridApi.columnApi.getColumn(fieldData.field));
|
|
42
|
+
}
|
|
43
|
+
} catch (err) {
|
|
44
|
+
_iterator.e(err);
|
|
45
|
+
} finally {
|
|
46
|
+
_iterator.f();
|
|
47
|
+
}
|
|
48
|
+
if ('headerAlign' === key) {
|
|
49
|
+
cols.forEach(function (col) {
|
|
50
|
+
var _headerClassFunc = col.colDef.headerClass;
|
|
51
|
+
col.colDef.headerClass = function (params) {
|
|
52
|
+
var classes = _headerClassFunc(params);
|
|
53
|
+
var temp = dropWhile(classes, function (c) {
|
|
54
|
+
return startsWith(c, 'luck-header-label-');
|
|
55
|
+
});
|
|
56
|
+
temp.push("luck-header-label-".concat(val));
|
|
57
|
+
return temp;
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
gridApi.api.refreshHeader();
|
|
61
|
+
} else if ('align' === key) {
|
|
62
|
+
var colsField = cols.map(function (col) {
|
|
63
|
+
var _cellStyleFunc = col.colDef.cellStyle;
|
|
64
|
+
col.colDef.cellStyle = function (params) {
|
|
65
|
+
var cellStyle = _cellStyleFunc(params);
|
|
66
|
+
if ('center' === val) {
|
|
67
|
+
cellStyle.justifyContent = 'center';
|
|
68
|
+
cellStyle.textAlign = 'center';
|
|
69
|
+
} else if ('right' === val) {
|
|
70
|
+
cellStyle.justifyContent = 'flex-end';
|
|
71
|
+
cellStyle.textAlign = 'end';
|
|
72
|
+
} else if ('left' === val) {
|
|
73
|
+
cellStyle.justifyContent = 'flex-start';
|
|
74
|
+
cellStyle.textAlign = 'start';
|
|
75
|
+
}
|
|
76
|
+
return cellStyle;
|
|
77
|
+
};
|
|
78
|
+
return col.colId;
|
|
79
|
+
});
|
|
80
|
+
gridApi.api.refreshCells({
|
|
81
|
+
columns: colsField,
|
|
82
|
+
force: true
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
onChange(newFields);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
var _useDebounceFn = useDebounceFn(function (key, val) {
|
|
91
|
+
if (key === 'width') {
|
|
92
|
+
handleUIChange(key, val);
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
wait: 400
|
|
96
|
+
}),
|
|
97
|
+
runDebounce = _useDebounceFn.run;
|
|
98
|
+
var run = useMemoizedFn( /*#__PURE__*/function () {
|
|
99
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(key, val) {
|
|
100
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
101
|
+
while (1) switch (_context.prev = _context.next) {
|
|
102
|
+
case 0:
|
|
103
|
+
if (!(key === 'align' || key === 'headerAlign' || key === 'pinned' || key === 'tip')) {
|
|
104
|
+
_context.next = 4;
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
handleUIChange(key, val);
|
|
108
|
+
_context.next = 6;
|
|
109
|
+
break;
|
|
110
|
+
case 4:
|
|
111
|
+
_context.next = 6;
|
|
112
|
+
return fetchAddFieldAttrs({
|
|
113
|
+
dataModelKey: dataModelKey,
|
|
114
|
+
moduleDatasetUid: datasetId,
|
|
115
|
+
moduleUid: moduleId,
|
|
116
|
+
scope: key,
|
|
117
|
+
ccmOnoffConditions: [{
|
|
118
|
+
conditionType: val ? _TRUE_FALSE_[0] : _TRUE_FALSE_[1],
|
|
119
|
+
config: val ? '是' : '否',
|
|
120
|
+
showconfig: val ? '是' : '否'
|
|
121
|
+
}],
|
|
122
|
+
datasetBusinessUids: _toConsumableArray(fieldsData.keys())
|
|
123
|
+
});
|
|
124
|
+
case 6:
|
|
125
|
+
case "end":
|
|
126
|
+
return _context.stop();
|
|
127
|
+
}
|
|
128
|
+
}, _callee);
|
|
129
|
+
}));
|
|
130
|
+
return function (_x, _x2) {
|
|
131
|
+
return _ref2.apply(this, arguments);
|
|
132
|
+
};
|
|
133
|
+
}());
|
|
134
|
+
return /*#__PURE__*/React.createElement(SettingUI, {
|
|
135
|
+
data: _toConsumableArray(fieldsData.keys()),
|
|
136
|
+
dataModelKey: dataModelKey,
|
|
137
|
+
datasetId: datasetId,
|
|
138
|
+
moduleId: moduleId,
|
|
139
|
+
component: component,
|
|
140
|
+
runDebounce: runDebounce,
|
|
141
|
+
run: run
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
export default BatchSetting;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useMount } from 'ahooks';
|
|
3
|
+
import { Form, Row, Col, Select, Mentions, Input } from 'luck-design/antd';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { reduce, startsWith } from 'lodash';
|
|
6
|
+
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
7
|
+
var _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.fieldsSetting.checkRules';
|
|
8
|
+
var FormItem = styled(Form.Item).withConfig({
|
|
9
|
+
displayName: "FormItem",
|
|
10
|
+
componentId: "luckda-6530__sc-da3g5m-0"
|
|
11
|
+
})(["margin-bottom:0;"]);
|
|
12
|
+
var CheckRules = function CheckRules(_ref) {
|
|
13
|
+
var form = _ref.form,
|
|
14
|
+
condition = _ref.condition,
|
|
15
|
+
fields = _ref.fields,
|
|
16
|
+
rule = _ref.rule;
|
|
17
|
+
useMount(function () {
|
|
18
|
+
if (rule.uid) {
|
|
19
|
+
form.setFieldsValue({
|
|
20
|
+
verifyType: rule.verifyType,
|
|
21
|
+
verifyScope: rule.verifyScope,
|
|
22
|
+
expression: rule.expression,
|
|
23
|
+
errorMsg: rule.errorMsg
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
return /*#__PURE__*/React.createElement(Form, {
|
|
28
|
+
layout: "vertical"
|
|
29
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
30
|
+
gutter: 8
|
|
31
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
32
|
+
span: 12
|
|
33
|
+
}, /*#__PURE__*/React.createElement(FormItem, {
|
|
34
|
+
label: formatMessage({
|
|
35
|
+
id: "".concat(_I18N_PREFIX_, ".verifyType"),
|
|
36
|
+
label: '校验规则'
|
|
37
|
+
})
|
|
38
|
+
}, form.getFieldDecorator('verifyType', {
|
|
39
|
+
rules: [{
|
|
40
|
+
required: true,
|
|
41
|
+
message: formatMessage({
|
|
42
|
+
id: "".concat(_I18N_PREFIX_, ".message.verifyType"),
|
|
43
|
+
label: '请选择校验规则'
|
|
44
|
+
})
|
|
45
|
+
}]
|
|
46
|
+
})( /*#__PURE__*/React.createElement(Select, null, reduce(condition === null || condition === void 0 ? void 0 : condition.options, function (types, val, key) {
|
|
47
|
+
types.push( /*#__PURE__*/React.createElement(Option, {
|
|
48
|
+
key: key,
|
|
49
|
+
value: key
|
|
50
|
+
}, val));
|
|
51
|
+
return types;
|
|
52
|
+
}, []))))), /*#__PURE__*/React.createElement(Col, {
|
|
53
|
+
span: 12
|
|
54
|
+
}, /*#__PURE__*/React.createElement(FormItem, {
|
|
55
|
+
label: formatMessage({
|
|
56
|
+
id: "".concat(_I18N_PREFIX_, ".verifyScope"),
|
|
57
|
+
label: '校验类型'
|
|
58
|
+
})
|
|
59
|
+
}, form.getFieldDecorator('verifyScope', {
|
|
60
|
+
rules: [{
|
|
61
|
+
required: true,
|
|
62
|
+
message: formatMessage({
|
|
63
|
+
id: "".concat(_I18N_PREFIX_, ".message.verifyScope"),
|
|
64
|
+
label: '请选择校验类型'
|
|
65
|
+
})
|
|
66
|
+
}]
|
|
67
|
+
})( /*#__PURE__*/React.createElement(Select, null, /*#__PURE__*/React.createElement(Option, {
|
|
68
|
+
value: 0
|
|
69
|
+
}, formatMessage({
|
|
70
|
+
id: "".concat(_I18N_PREFIX_, ".frontend"),
|
|
71
|
+
label: '前端'
|
|
72
|
+
})), /*#__PURE__*/React.createElement(Option, {
|
|
73
|
+
value: 1
|
|
74
|
+
}, formatMessage({
|
|
75
|
+
id: "".concat(_I18N_PREFIX_, ".backend"),
|
|
76
|
+
label: '后端'
|
|
77
|
+
})))))), /*#__PURE__*/React.createElement(Col, {
|
|
78
|
+
span: 24
|
|
79
|
+
}, /*#__PURE__*/React.createElement(FormItem, {
|
|
80
|
+
label: formatMessage({
|
|
81
|
+
id: 'luckda.lowcode.painter.expression',
|
|
82
|
+
label: '表达式'
|
|
83
|
+
})
|
|
84
|
+
}, form.getFieldDecorator('expression', {
|
|
85
|
+
rules: [{
|
|
86
|
+
required: true,
|
|
87
|
+
message: formatMessage({
|
|
88
|
+
id: 'luckda.lowcode.painter.message.expression',
|
|
89
|
+
label: '请输入表达式'
|
|
90
|
+
})
|
|
91
|
+
}]
|
|
92
|
+
})( /*#__PURE__*/React.createElement(Mentions, {
|
|
93
|
+
rows: 4,
|
|
94
|
+
prefix: "#",
|
|
95
|
+
placeholder: formatMessage({
|
|
96
|
+
id: 'luckda.lowcode.painter.message.expression',
|
|
97
|
+
label: '请输入表达式'
|
|
98
|
+
})
|
|
99
|
+
}, fields.filter(function (_ref2) {
|
|
100
|
+
var id = _ref2.id;
|
|
101
|
+
return !startsWith(id, '-');
|
|
102
|
+
}).map(function (_ref3) {
|
|
103
|
+
var field = _ref3.field;
|
|
104
|
+
return /*#__PURE__*/React.createElement(Mentions.Option, {
|
|
105
|
+
value: field
|
|
106
|
+
}, field);
|
|
107
|
+
}))))), /*#__PURE__*/React.createElement(Col, {
|
|
108
|
+
span: 24
|
|
109
|
+
}, /*#__PURE__*/React.createElement(FormItem, {
|
|
110
|
+
label: formatMessage({
|
|
111
|
+
id: "".concat(_I18N_PREFIX_, ".errorMsg"),
|
|
112
|
+
label: '错误提示'
|
|
113
|
+
})
|
|
114
|
+
}, form.getFieldDecorator('errorMsg', {
|
|
115
|
+
rules: [{
|
|
116
|
+
required: true,
|
|
117
|
+
message: formatMessage({
|
|
118
|
+
id: "".concat(_I18N_PREFIX_, ".message.errorMsg"),
|
|
119
|
+
label: '请输入错误提示'
|
|
120
|
+
})
|
|
121
|
+
}]
|
|
122
|
+
})( /*#__PURE__*/React.createElement(Input.TextArea, {
|
|
123
|
+
rows: 2
|
|
124
|
+
}))))));
|
|
125
|
+
};
|
|
126
|
+
export default CheckRules;
|