@luck-design-biz/luckda 0.0.25-1 → 0.0.25-11
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/ComplexItem/index.js +92 -0
- package/es/{lowcode/painter/services/toolbar.js → components/ComplexItem/service.js} +7 -11
- package/es/components/LDActions/index.js +8 -10
- package/es/components/LDActions/index.less +7 -4
- package/es/components/LdAutoForm/index.js +34 -11
- package/es/components/LdFormList/index.js +39 -23
- package/es/components/LdGrid/index.js +21 -7
- package/es/components/LdGridForm/index.js +32 -11
- package/es/components/LdTree/index.js +33 -15
- package/es/helper/FromItems.js +177 -94
- package/es/helper/form.js +55 -14
- package/es/helper/props_config.js +17 -0
- package/es/locales/zh-CN.js +26 -11
- package/es/lowcode/constants/api-url.js +354 -104
- package/es/lowcode/constants/event-topics.js +2 -0
- package/es/lowcode/constants/index.js +4 -2
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +5 -2
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +1 -1
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +5 -2
- package/es/lowcode/engine/meta/box.props.default.json +1 -1
- package/es/lowcode/engine/meta/box.props.json +4 -4
- package/es/lowcode/engine/meta/button.props.json +4 -4
- package/es/lowcode/engine/meta/cardlist.props.json +14 -4
- package/es/lowcode/engine/meta/components-list.json +109 -1
- package/es/lowcode/engine/meta/dialog.props.default.json +11 -5
- package/es/lowcode/engine/meta/dialog.props.json +80 -43
- package/es/lowcode/engine/meta/drawer.props.json +9 -21
- package/es/lowcode/engine/meta/fieldcolor.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldcolor.props.json +63 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +13 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +39 -0
- package/es/lowcode/engine/meta/fielddate.props.default.json +12 -0
- package/es/lowcode/engine/meta/fielddate.props.json +47 -0
- package/es/lowcode/engine/meta/fielddict.props.default.json +14 -0
- package/es/lowcode/engine/meta/fielddict.props.json +44 -0
- package/es/lowcode/engine/meta/fieldeditor.props.default.json +13 -0
- package/es/lowcode/engine/meta/fieldeditor.props.json +44 -0
- package/es/lowcode/engine/meta/fieldgroup.props.default.json +15 -0
- package/es/lowcode/engine/meta/fieldgroup.props.json +73 -0
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +48 -0
- package/es/lowcode/engine/meta/fieldradio.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldradio.props.json +20 -0
- package/es/lowcode/engine/meta/fieldregion.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldregion.props.json +26 -0
- package/es/lowcode/engine/meta/fieldselect.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldselect.props.json +58 -0
- package/es/lowcode/engine/meta/fieldstring.props.default.json +16 -0
- package/es/lowcode/engine/meta/fieldstring.props.json +62 -0
- package/es/lowcode/engine/meta/fieldswitch.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldswitch.props.json +31 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.default.json +13 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.json +49 -0
- package/es/lowcode/engine/meta/fieldupload.props.default.json +15 -0
- package/es/lowcode/engine/meta/fieldupload.props.json +71 -0
- package/es/lowcode/engine/meta/fielduser.props.default.json +16 -0
- package/es/lowcode/engine/meta/fielduser.props.json +82 -0
- package/es/lowcode/engine/meta/fieldyear.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldyear.props.json +37 -0
- package/es/lowcode/engine/meta/form.props.default.json +4 -5
- package/es/lowcode/engine/meta/form.props.json +44 -35
- package/es/lowcode/engine/meta/image.props.json +2 -2
- package/es/lowcode/engine/meta/imex.props.default.json +8 -1
- package/es/lowcode/engine/meta/imex.props.json +54 -22
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +53 -3
- package/es/lowcode/engine/meta/layout.props.json +2 -2
- package/es/lowcode/engine/meta/link.props.json +1 -1
- package/es/lowcode/engine/meta/page.props.json +2 -2
- package/es/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/es/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/es/lowcode/engine/meta/section.props.default.json +4 -6
- package/es/lowcode/engine/meta/section.props.json +52 -49
- package/es/lowcode/engine/meta/split.props.default.json +1 -1
- package/es/lowcode/engine/meta/split.props.json +4 -4
- package/es/lowcode/engine/meta/table.props.json +19 -13
- package/es/lowcode/engine/meta/tabs.props.json +3 -3
- package/es/lowcode/engine/meta/text.props.json +2 -2
- package/es/lowcode/engine/meta/tree.props.default.json +2 -0
- package/es/lowcode/engine/meta/tree.props.json +71 -8
- package/es/lowcode/engine/provider/ContextProvider/index.js +21 -35
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +89 -37
- package/es/lowcode/engine/tools/dataProcess.js +4 -0
- package/es/lowcode/engine/tools/diff.js +60 -0
- package/es/lowcode/engine/tools/helper.js +47 -26
- package/es/lowcode/engine/tools/useCanvasRender.js +8 -9
- package/es/lowcode/engine/tools/usePageDataStore.js +331 -0
- package/es/lowcode/engine/tools/usePromiseState.js +8 -10
- package/es/lowcode/engine/tools/useTodo.js +20 -10
- package/es/lowcode/painter/Design.js +41 -6
- package/es/lowcode/painter/DesignOperator.js +112 -88
- package/es/lowcode/painter/DesignToolbar.js +280 -36
- package/es/lowcode/painter/Outline.js +12 -10
- package/es/lowcode/painter/Panel.js +84 -46
- package/es/lowcode/painter/components/ActionBindModal.js +38 -27
- package/es/lowcode/painter/components/AdvancePanel.js +37 -21
- package/es/lowcode/painter/components/AttrsPanel.js +45 -34
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +5 -2
- package/es/lowcode/painter/components/FieldSelector.js +26 -13
- package/es/lowcode/painter/components/ListEditor.js +8 -2
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +3 -2
- package/es/lowcode/painter/components/code-editor/JSEditor.js +5 -9
- package/es/lowcode/painter/components/field-setting/BatchSetting.js +13 -3
- package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +108 -0
- package/es/lowcode/painter/components/field-setting/CheckRules.js +1 -26
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +33 -13
- package/es/lowcode/painter/components/field-setting/SettingUI.js +182 -31
- package/es/lowcode/painter/components/field-setting/index.js +40 -61
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +53 -0
- package/es/lowcode/painter/index.js +1 -28
- package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +25 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +7 -4
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +4 -3
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +55 -28
- package/es/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/es/lowcode/painter/panel-section/DataSetSelector.js +30 -7
- package/es/lowcode/painter/panel-section/FieldsSetting.js +124 -55
- package/es/lowcode/painter/panel-section/I18nInput.js +20 -0
- package/es/lowcode/painter/panel-section/ImpExp.js +99 -14
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +108 -0
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +95 -0
- package/es/lowcode/painter/panel-section/SerialsSelector.js +4 -2
- package/es/lowcode/painter/panel-section/SplitDisplay.js +25 -110
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +1 -1
- package/es/lowcode/painter/panel-section/StylePanel/index.js +10 -4
- package/es/lowcode/painter/panel-section/TableTopFilter.js +23 -13
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +2 -2
- package/es/lowcode/painter/style/action-bind-modal.less +3 -3
- package/es/lowcode/painter/style/design.less +11 -4
- package/es/lowcode/painter/style/list-editor.less +36 -0
- package/es/lowcode/painter/style/page-layout-display.less +28 -0
- package/es/lowcode/painter/style/panel-item.less +1 -1
- package/es/lowcode/painter/style/split-display.less +0 -9
- package/es/lowcode/preview/index.js +20 -5
- package/es/lowcode/view/Canvas.js +6 -7
- package/es/lowcode/view/Page.js +5 -6
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Box/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Box/meta.json +4 -4
- package/es/lowcode/view/lc-components/Button/index.js +2 -6
- package/es/lowcode/view/lc-components/Button/meta.json +4 -4
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +14 -4
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +3 -12
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +119 -19
- package/es/lowcode/view/lc-components/Dialog/meta.json +73 -43
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +9 -21
- package/es/lowcode/view/lc-components/FieldColor/meta.json +63 -0
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +39 -0
- package/es/lowcode/view/lc-components/FieldDate/meta.json +45 -0
- package/es/lowcode/view/lc-components/FieldDict/meta.json +44 -0
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +44 -0
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +73 -0
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +48 -0
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +20 -0
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +26 -0
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +58 -0
- package/es/lowcode/view/lc-components/FieldString/meta.json +62 -0
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +31 -0
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +49 -0
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +71 -0
- package/es/lowcode/view/lc-components/FieldUser/meta.json +82 -0
- package/es/lowcode/view/lc-components/FieldYear/meta.json +35 -0
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +61 -9
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +9 -1
- package/es/lowcode/view/lc-components/Form/index.js +401 -66
- package/es/lowcode/view/lc-components/Form/meta.json +44 -35
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +9 -3
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +470 -11
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +55 -23
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Image/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Image/meta.json +2 -2
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +13 -21
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +2 -2
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Link/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Link/meta.json +1 -1
- package/es/lowcode/view/lc-components/Page/meta.json +2 -2
- package/es/lowcode/view/lc-components/PageContent/index.js +8 -9
- package/es/lowcode/view/lc-components/PageFooter/index.js +2 -5
- package/es/lowcode/view/lc-components/PageHeader/index.js +5 -6
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +63 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +10 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/PageLayout/index.js +32 -0
- package/es/lowcode/view/lc-components/PageLayout/meta.json +47 -0
- package/es/lowcode/view/lc-components/PageModal/index.js +12 -15
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +25 -2
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Section/index.js +114 -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 +19 -22
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Split/index.js +7 -11
- package/es/lowcode/view/lc-components/Split/meta.json +4 -4
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Table/components/TopFilter.js +78 -57
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +420 -0
- package/es/lowcode/view/lc-components/Table/index.js +294 -47
- package/es/lowcode/view/lc-components/Table/meta.json +19 -13
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +11 -20
- package/es/lowcode/view/lc-components/Tabs/index.js +27 -12
- package/es/lowcode/view/lc-components/Tabs/meta.json +3 -3
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Text/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Text/meta.json +2 -2
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -3
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Tree/index.js +103 -29
- package/es/lowcode/view/lc-components/Tree/meta.json +71 -9
- package/es/lowcode/view/lc-components/Wrapper.js +10 -12
- package/es/services.js +0 -24
- package/es/upload/FilesWall/file.png +0 -0
- package/es/upload/FilesWall/index.js +422 -0
- package/es/upload/FilesWall/index.less +74 -0
- package/es/upload/Form/gridForm.js +10 -5
- package/es/upload/Form/index.js +2 -1
- package/es/upload/FormItem/index.js +8 -9
- package/es/upload/index.js +2 -1
- package/es/utils/action.js +2 -2
- package/es/utils/form.js +16 -3
- package/es/utils/grid.js +8 -5
- package/lib/components/ComplexItem/index.js +100 -0
- package/lib/{lowcode/painter/services/toolbar.js → components/ComplexItem/service.js} +8 -12
- package/lib/components/LDActions/index.js +7 -9
- package/lib/components/LDActions/index.less +7 -4
- package/lib/components/LdAutoForm/index.js +33 -10
- package/lib/components/LdFormList/index.js +38 -22
- package/lib/components/LdGrid/index.js +21 -7
- package/lib/components/LdGridForm/index.js +30 -9
- package/lib/components/LdTree/index.js +33 -15
- package/lib/helper/FromItems.js +175 -92
- package/lib/helper/form.js +53 -13
- package/lib/helper/props_config.js +23 -0
- package/lib/locales/zh-CN.js +26 -11
- package/lib/lowcode/constants/api-url.js +355 -104
- package/lib/lowcode/constants/event-topics.js +3 -1
- package/lib/lowcode/constants/index.js +5 -3
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +7 -4
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +3 -2
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +6 -3
- package/lib/lowcode/engine/meta/box.props.default.json +1 -1
- package/lib/lowcode/engine/meta/box.props.json +4 -4
- package/lib/lowcode/engine/meta/button.props.json +4 -4
- package/lib/lowcode/engine/meta/cardlist.props.json +14 -4
- package/lib/lowcode/engine/meta/components-list.json +109 -1
- package/lib/lowcode/engine/meta/dialog.props.default.json +11 -5
- package/lib/lowcode/engine/meta/dialog.props.json +80 -43
- package/lib/lowcode/engine/meta/drawer.props.json +9 -21
- package/lib/lowcode/engine/meta/fieldcolor.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.json +63 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +13 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +39 -0
- package/lib/lowcode/engine/meta/fielddate.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +47 -0
- package/lib/lowcode/engine/meta/fielddict.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fielddict.props.json +44 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.default.json +13 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.json +44 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.default.json +15 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.json +73 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +48 -0
- package/lib/lowcode/engine/meta/fieldradio.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldradio.props.json +20 -0
- package/lib/lowcode/engine/meta/fieldregion.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldregion.props.json +26 -0
- package/lib/lowcode/engine/meta/fieldselect.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldselect.props.json +58 -0
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fieldstring.props.json +62 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.json +31 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +13 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +49 -0
- package/lib/lowcode/engine/meta/fieldupload.props.default.json +15 -0
- package/lib/lowcode/engine/meta/fieldupload.props.json +71 -0
- package/lib/lowcode/engine/meta/fielduser.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fielduser.props.json +82 -0
- package/lib/lowcode/engine/meta/fieldyear.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldyear.props.json +37 -0
- package/lib/lowcode/engine/meta/form.props.default.json +4 -5
- package/lib/lowcode/engine/meta/form.props.json +44 -35
- package/lib/lowcode/engine/meta/image.props.json +2 -2
- package/lib/lowcode/engine/meta/imex.props.default.json +8 -1
- package/lib/lowcode/engine/meta/imex.props.json +54 -22
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +53 -3
- package/lib/lowcode/engine/meta/layout.props.json +2 -2
- package/lib/lowcode/engine/meta/link.props.json +1 -1
- package/lib/lowcode/engine/meta/page.props.json +2 -2
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/lib/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/lib/lowcode/engine/meta/section.props.default.json +4 -6
- package/lib/lowcode/engine/meta/section.props.json +52 -49
- package/lib/lowcode/engine/meta/split.props.default.json +1 -1
- package/lib/lowcode/engine/meta/split.props.json +4 -4
- package/lib/lowcode/engine/meta/table.props.json +19 -13
- package/lib/lowcode/engine/meta/tabs.props.json +3 -3
- package/lib/lowcode/engine/meta/text.props.json +2 -2
- package/lib/lowcode/engine/meta/tree.props.default.json +2 -0
- package/lib/lowcode/engine/meta/tree.props.json +71 -8
- package/lib/lowcode/engine/provider/ContextProvider/index.js +37 -35
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +86 -34
- package/lib/lowcode/engine/tools/dataProcess.js +4 -0
- package/lib/lowcode/engine/tools/diff.js +67 -0
- package/lib/lowcode/engine/tools/helper.js +48 -25
- package/lib/lowcode/engine/tools/useCanvasRender.js +6 -7
- package/lib/lowcode/engine/tools/usePageDataStore.js +338 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +6 -8
- package/lib/lowcode/engine/tools/useTodo.js +19 -9
- package/lib/lowcode/painter/Design.js +39 -4
- package/lib/lowcode/painter/DesignOperator.js +109 -85
- package/lib/lowcode/painter/DesignToolbar.js +277 -33
- package/lib/lowcode/painter/Outline.js +10 -8
- package/lib/lowcode/painter/Panel.js +82 -44
- package/lib/lowcode/painter/components/ActionBindModal.js +36 -25
- package/lib/lowcode/painter/components/AdvancePanel.js +36 -20
- package/lib/lowcode/painter/components/AttrsPanel.js +44 -33
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +5 -2
- package/lib/lowcode/painter/components/FieldSelector.js +26 -13
- package/lib/lowcode/painter/components/ListEditor.js +8 -2
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +3 -2
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +5 -9
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js +13 -3
- package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +116 -0
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +1 -26
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +34 -13
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +179 -28
- package/lib/lowcode/painter/components/field-setting/index.js +40 -61
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +59 -0
- package/lib/lowcode/painter/index.js +1 -30
- package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +32 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +7 -4
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +4 -3
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +53 -25
- package/lib/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +30 -7
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +121 -52
- package/lib/lowcode/painter/panel-section/I18nInput.js +27 -0
- package/lib/lowcode/painter/panel-section/ImpExp.js +99 -13
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +114 -0
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +103 -0
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +4 -2
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +24 -109
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +5 -4
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +10 -4
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +22 -12
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +2 -2
- package/lib/lowcode/painter/style/action-bind-modal.less +3 -3
- package/lib/lowcode/painter/style/design.less +11 -4
- package/lib/lowcode/painter/style/list-editor.less +36 -0
- package/lib/lowcode/painter/style/page-layout-display.less +28 -0
- package/lib/lowcode/painter/style/panel-item.less +1 -1
- package/lib/lowcode/painter/style/split-display.less +0 -9
- package/lib/lowcode/preview/index.js +21 -5
- package/lib/lowcode/view/Canvas.js +5 -6
- package/lib/lowcode/view/Page.js +5 -6
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Box/meta.json +4 -4
- package/lib/lowcode/view/lc-components/Button/index.js +2 -6
- package/lib/lowcode/view/lc-components/Button/meta.json +4 -4
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/meta.json +14 -4
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -11
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Dialog/index.js +119 -19
- package/lib/lowcode/view/lc-components/Dialog/meta.json +73 -43
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/meta.json +9 -21
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +63 -0
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +39 -0
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +45 -0
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +44 -0
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +44 -0
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +73 -0
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +48 -0
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +20 -0
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +26 -0
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +58 -0
- package/lib/lowcode/view/lc-components/FieldString/meta.json +62 -0
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +31 -0
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +49 -0
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +71 -0
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +82 -0
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +35 -0
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +58 -7
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +9 -1
- package/lib/lowcode/view/lc-components/Form/index.js +396 -61
- package/lib/lowcode/view/lc-components/Form/meta.json +44 -35
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +9 -3
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/index.js +468 -9
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +55 -23
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Image/meta.json +2 -2
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +11 -19
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Layout/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Link/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Page/meta.json +2 -2
- package/lib/lowcode/view/lc-components/PageContent/index.js +7 -8
- package/lib/lowcode/view/lc-components/PageFooter/index.js +2 -5
- package/lib/lowcode/view/lc-components/PageHeader/index.js +4 -5
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +71 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +17 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/PageLayout/index.js +40 -0
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +47 -0
- package/lib/lowcode/view/lc-components/PageModal/index.js +11 -14
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +25 -2
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Section/index.js +113 -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 +18 -21
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Split/index.js +4 -8
- package/lib/lowcode/view/lc-components/Split/meta.json +4 -4
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +75 -55
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +428 -0
- package/lib/lowcode/view/lc-components/Table/index.js +292 -45
- package/lib/lowcode/view/lc-components/Table/meta.json +19 -13
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +9 -18
- package/lib/lowcode/view/lc-components/Tabs/index.js +26 -11
- package/lib/lowcode/view/lc-components/Tabs/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Text/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -3
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Tree/index.js +100 -26
- package/lib/lowcode/view/lc-components/Tree/meta.json +71 -9
- package/lib/lowcode/view/lc-components/Wrapper.js +11 -12
- package/lib/services.js +0 -25
- package/lib/upload/FilesWall/file.png +0 -0
- package/lib/upload/FilesWall/index.js +429 -0
- package/lib/upload/FilesWall/index.less +74 -0
- package/lib/upload/Form/gridForm.js +10 -5
- package/lib/upload/Form/index.js +2 -1
- package/lib/upload/FormItem/index.js +8 -9
- package/lib/upload/index.js +8 -1
- package/lib/utils/action.js +2 -2
- package/lib/utils/form.js +16 -3
- package/lib/utils/grid.js +8 -5
- package/package.json +175 -171
- package/es/lowcode/engine/meta/local/local.zh-cn.js +0 -97
- package/lib/lowcode/engine/meta/local/local.zh-cn.js +0 -103
|
@@ -11,20 +11,20 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
var _luckDesign = require("luck-design");
|
|
13
13
|
var _utils = require("@luck-design-biz/base/utils");
|
|
14
|
-
var
|
|
15
|
-
var _excluded = ["uploadUrl", "moduleCode", "bucket", "tag", "note", "config", "forbiddenTypes", "children", "dataFormat", "listType"];
|
|
14
|
+
var _apiUrl = require("../../lowcode/constants/api-url");
|
|
15
|
+
var _excluded = ["uploadUrl", "moduleCode", "bucket", "tag", "note", "config", "supportTypes", "forbiddenTypes", "children", "dataFormat", "listType"];
|
|
16
16
|
/**
|
|
17
17
|
* 表单类型富文本上传
|
|
18
18
|
* 是否实体字段: 是
|
|
19
19
|
* 是否接受tag: 是
|
|
20
20
|
* 是否虚拟主键: 否
|
|
21
|
-
* 接受参数:
|
|
21
|
+
* 接受参数:
|
|
22
22
|
* name: 附件名称逗号拼接
|
|
23
23
|
* name_virtual: [{...// 附件所有参数}]
|
|
24
24
|
* ### name=name_virtual ###
|
|
25
|
-
* 传参:
|
|
25
|
+
* 传参:
|
|
26
26
|
* name: [{objectName, marker},...]
|
|
27
|
-
* 其他需求:
|
|
27
|
+
* 其他需求:
|
|
28
28
|
* 支持beforeUpload禁止附加类型
|
|
29
29
|
* =>beforeUpload禁止类型全覆盖
|
|
30
30
|
* =>forbiddenTypes和配置管理中禁止类型合并
|
|
@@ -41,17 +41,16 @@ function buildComponent(props) {
|
|
|
41
41
|
note = _props$note === void 0 ? '' : _props$note,
|
|
42
42
|
_props$config = props.config,
|
|
43
43
|
config = _props$config === void 0 ? {} : _props$config,
|
|
44
|
+
supportTypes = props.supportTypes,
|
|
44
45
|
forbiddenTypes = props.forbiddenTypes,
|
|
45
46
|
children = props.children,
|
|
46
47
|
dataFormat = props.dataFormat,
|
|
47
48
|
listType = props.listType,
|
|
48
49
|
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
49
50
|
var getUrl = function getUrl(behaviorKey) {
|
|
50
|
-
return "".concat(
|
|
51
|
+
return "".concat((0, _apiUrl.getBehaviorUrl)(), "?moduleCode=").concat(moduleCode, "&behaviorKey=").concat(behaviorKey, "&bucket=").concat(bucket, "&tag=").concat(tag, "¬e=").concat(note);
|
|
51
52
|
};
|
|
52
|
-
var supportUploadTypes = (0,
|
|
53
|
-
return (0, _utils.getSupportUploadTypes)(forbiddenTypes);
|
|
54
|
-
}, [forbiddenTypes]);
|
|
53
|
+
var supportUploadTypes = (0, _utils.getSupportUploadTypes)(forbiddenTypes, supportTypes);
|
|
55
54
|
return /*#__PURE__*/_react.default.createElement(_luckDesign.BasicFormItem, (0, _extends2.default)({
|
|
56
55
|
extra: "".concat((0, _utils.formatMessage)({
|
|
57
56
|
id: 'app.upload.supportUpload',
|
package/lib/upload/index.js
CHANGED
|
@@ -4,6 +4,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
+
Object.defineProperty(exports, "UploadFilesWall", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _FilesWall.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
7
13
|
Object.defineProperty(exports, "UploadGridCell", {
|
|
8
14
|
enumerable: true,
|
|
9
15
|
get: function get() {
|
|
@@ -24,4 +30,5 @@ Object.defineProperty(exports, "buildUploadFormItem", {
|
|
|
24
30
|
});
|
|
25
31
|
var _Form = _interopRequireDefault(require("./Form"));
|
|
26
32
|
var _FormItem = _interopRequireDefault(require("./FormItem"));
|
|
27
|
-
var _GridCell = _interopRequireDefault(require("./GridCell"));
|
|
33
|
+
var _GridCell = _interopRequireDefault(require("./GridCell"));
|
|
34
|
+
var _FilesWall = _interopRequireDefault(require("./FilesWall"));
|
package/lib/utils/action.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.behaviorCall = behaviorCall;
|
|
|
8
8
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
-
var
|
|
11
|
+
var _apiUrl = require("../lowcode/constants/api-url");
|
|
12
12
|
// 行为请求同一接口
|
|
13
13
|
function behaviorCall() {
|
|
14
14
|
return _behaviorCall.apply(this, arguments);
|
|
@@ -25,7 +25,7 @@ function _behaviorCall() {
|
|
|
25
25
|
get = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
26
26
|
post = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
27
27
|
datasetCode = get.datasetCode;
|
|
28
|
-
return _context.abrupt("return", (0,
|
|
28
|
+
return _context.abrupt("return", (0, _apiUrl.fetchCallBehavior)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, get), {}, {
|
|
29
29
|
datasetCode: datasetCode || Object.keys(post).join(',')
|
|
30
30
|
}), post));
|
|
31
31
|
case 4:
|
package/lib/utils/form.js
CHANGED
|
@@ -40,12 +40,13 @@ function getFormItem() {
|
|
|
40
40
|
var customProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
41
41
|
if (!property) return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
42
42
|
if (property === 'sint' || property === 'number') props.opt_decimal = 0;
|
|
43
|
+
var comType = comName || _form.defaultComName[property];
|
|
43
44
|
var _translator = (0, _form.translator)(props),
|
|
44
45
|
name = _translator.name,
|
|
45
46
|
translateProps = (0, _objectWithoutProperties2.default)(_translator, _excluded2);
|
|
46
47
|
var _merge = (0, _lodash.merge)(
|
|
47
48
|
// 移除type,不能删除type,会导致查询renderInfo的时候报错
|
|
48
|
-
translateProps, (0, _form.formatCustomProps)(customProps)),
|
|
49
|
+
translateProps, (0, _form.formatCustomProps)(comType, customProps)),
|
|
49
50
|
type = _merge.type,
|
|
50
51
|
_props = (0, _objectWithoutProperties2.default)(_merge, _excluded3);
|
|
51
52
|
if (customProps.renderBasicFormItem) {
|
|
@@ -56,7 +57,7 @@ function getFormItem() {
|
|
|
56
57
|
key: name
|
|
57
58
|
}), com.props.children);
|
|
58
59
|
}
|
|
59
|
-
var getFormItemUtils = formItemUtils["get".concat((0, _lodash.capitalize)(
|
|
60
|
+
var getFormItemUtils = formItemUtils["get".concat((0, _lodash.capitalize)(comType), "Item")];
|
|
60
61
|
return getFormItemUtils((0, _objectSpread2.default)((0, _objectSpread2.default)({}, _props), {}, {
|
|
61
62
|
name: name,
|
|
62
63
|
key: name
|
|
@@ -85,9 +86,15 @@ var formItemDataFormat = exports.formItemDataFormat = function formItemDataForma
|
|
|
85
86
|
case 'date':
|
|
86
87
|
result[name] = values["".concat(name, "_virtual")] ? (0, _moment.default)(values["".concat(name, "_virtual")], 'YYYY-MM-DD HH:mm:ss') : undefined;
|
|
87
88
|
break;
|
|
89
|
+
case 'dict':
|
|
90
|
+
if (props.display === 'radio') {
|
|
91
|
+
result[name] = values[name] || void 0;
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
88
94
|
case 'user':
|
|
89
95
|
case 'select':
|
|
90
96
|
case 'group':
|
|
97
|
+
case 'complex':
|
|
91
98
|
if (translatorProps.multiple) {
|
|
92
99
|
result[name] = (0, _form.splitStrToObj)(values[name], values["".concat(name, "_virtual")]);
|
|
93
100
|
} else {
|
|
@@ -155,9 +162,15 @@ var dataFormat = exports.dataFormat = function dataFormat() {
|
|
|
155
162
|
case 'date':
|
|
156
163
|
result[name] = values[name] ? (0, _moment.default)(values[name]).valueOf() : null;
|
|
157
164
|
break;
|
|
165
|
+
case 'dict':
|
|
166
|
+
if (props.display === 'radio') {
|
|
167
|
+
result[name] = values[name] || null;
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
158
170
|
case 'user':
|
|
159
171
|
case 'select':
|
|
160
172
|
case 'group':
|
|
173
|
+
case 'complex':
|
|
161
174
|
if ((0, _lodash.isArray)(values[name])) result[name] = values[name].map(function (v) {
|
|
162
175
|
return v.value || v.key;
|
|
163
176
|
}).join(',');else result[name] = !(0, _lodash.isNil)((_values$name = values[name]) === null || _values$name === void 0 ? void 0 : _values$name.value) ? values[name].value : ((_values$name2 = values[name]) === null || _values$name2 === void 0 ? void 0 : _values$name2.key) || null;
|
|
@@ -218,7 +231,7 @@ var getFormColumn = exports.getFormColumn = function getFormColumn() {
|
|
|
218
231
|
translateProps = (0, _objectWithoutProperties2.default)(_translator2, _excluded8);
|
|
219
232
|
var _merge2 = (0, _lodash.merge)(
|
|
220
233
|
// mode=writer移除type,不能删除type,会导致查询renderInfo的时候报错
|
|
221
|
-
translateProps, (0, _form.formatCustomProps)(formItemRewrite)),
|
|
234
|
+
translateProps, (0, _form.formatCustomProps)(formItemType, formItemRewrite)),
|
|
222
235
|
type = _merge2.type,
|
|
223
236
|
_ = _merge2.name,
|
|
224
237
|
_props = (0, _objectWithoutProperties2.default)(_merge2, _excluded9);
|
package/lib/utils/grid.js
CHANGED
|
@@ -52,6 +52,7 @@ function getColumnRender(name, type) {
|
|
|
52
52
|
case 'user':
|
|
53
53
|
case 'select':
|
|
54
54
|
case 'group':
|
|
55
|
+
case 'complex':
|
|
55
56
|
render = function render(text, record) {
|
|
56
57
|
if (record["".concat(name, "_virtual")]) return record["".concat(name, "_virtual")];
|
|
57
58
|
if ((0, _lodash.isArray)(text)) return text.map(function (i) {
|
|
@@ -123,6 +124,7 @@ var getGridColumn = exports.getGridColumn = function getGridColumn() {
|
|
|
123
124
|
var customProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
124
125
|
var isTreeGrid = arguments.length > 2 ? arguments[2] : undefined;
|
|
125
126
|
var writable = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
127
|
+
var comType = comName || _form.defaultComName[property];
|
|
126
128
|
var _props$isVirtual = props.isVirtual,
|
|
127
129
|
isVirtual = _props$isVirtual === void 0 ? false : _props$isVirtual,
|
|
128
130
|
_props$extra = props.extra,
|
|
@@ -130,7 +132,7 @@ var getGridColumn = exports.getGridColumn = function getGridColumn() {
|
|
|
130
132
|
var _translator = (0, _form.translator)(props),
|
|
131
133
|
name = _translator.name,
|
|
132
134
|
translateProps = (0, _objectWithoutProperties2.default)(_translator, _excluded2);
|
|
133
|
-
var _merge = (0, _lodash.merge)(translateProps, (0, _form.formatCustomProps)(customProps)),
|
|
135
|
+
var _merge = (0, _lodash.merge)(translateProps, (0, _form.formatCustomProps)(comType, customProps)),
|
|
134
136
|
filter = _merge.filter,
|
|
135
137
|
filterParams = _merge.filterParams,
|
|
136
138
|
_props = (0, _objectWithoutProperties2.default)(_merge, _excluded3);
|
|
@@ -140,9 +142,9 @@ var getGridColumn = exports.getGridColumn = function getGridColumn() {
|
|
|
140
142
|
title: _props.label,
|
|
141
143
|
headerAlign: _props.headerAlign || getAlign(_extra, 'sheading_alignment_virtual'),
|
|
142
144
|
align: _props.align || getAlign(_extra, 'scell_alignment_virtual'),
|
|
143
|
-
render: _props.render || getColumnRender(name,
|
|
145
|
+
render: _props.render || getColumnRender(name, comType, _props)
|
|
144
146
|
});
|
|
145
|
-
if (isTreeGrid || isVirtual || (0, _lodash.includes)(['user', 'select', 'group', 'switch', 'color', 'region', 'file'],
|
|
147
|
+
if (isTreeGrid || isVirtual || (0, _lodash.includes)(['user', 'select', 'group', 'switch', 'color', 'region', 'file', 'complex'], comType)) data.sortable = false;
|
|
146
148
|
// data.filter = false;
|
|
147
149
|
if (!(0, _lodash.isNil)(filter)) {
|
|
148
150
|
// 因为后端升级问题,暂时关闭过滤功能
|
|
@@ -155,7 +157,7 @@ var getGridColumn = exports.getGridColumn = function getGridColumn() {
|
|
|
155
157
|
data.filter = 'text';
|
|
156
158
|
return data;
|
|
157
159
|
}
|
|
158
|
-
switch (
|
|
160
|
+
switch (comType) {
|
|
159
161
|
case 'switch':
|
|
160
162
|
data.filter = 'select';
|
|
161
163
|
data.filterParams = {
|
|
@@ -256,7 +258,7 @@ var getGridColumn = exports.getGridColumn = function getGridColumn() {
|
|
|
256
258
|
required: true
|
|
257
259
|
} : true;
|
|
258
260
|
if (_props.cellWriter) data.cellWriter = _props.cellWriter;else {
|
|
259
|
-
var formItemCom = (0, _lodash.capitalize)(
|
|
261
|
+
var formItemCom = (0, _lodash.capitalize)(comType) === 'Textarea' ? 'String' : (0, _lodash.capitalize)(comType);
|
|
260
262
|
var getFormItemUtils = formItemUtils["get".concat(formItemCom, "Item")];
|
|
261
263
|
var formItemProps = {};
|
|
262
264
|
switch (formItemCom) {
|
|
@@ -273,6 +275,7 @@ var getGridColumn = exports.getGridColumn = function getGridColumn() {
|
|
|
273
275
|
case 'user':
|
|
274
276
|
case 'select':
|
|
275
277
|
case 'group':
|
|
278
|
+
case 'complex':
|
|
276
279
|
if (translateProps.multiple) {
|
|
277
280
|
formItemProps = {
|
|
278
281
|
dataFormat: function dataFormat(value) {
|
package/package.json
CHANGED
|
@@ -1,171 +1,175 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@luck-design-biz/luckda",
|
|
3
|
-
"version": "0.0.25-
|
|
4
|
-
"description": "前端配置管理中心业务组件库",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",
|
|
7
|
-
"
|
|
8
|
-
"build
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"test
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"**/*.
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"@
|
|
51
|
-
"@babel/
|
|
52
|
-
"@
|
|
53
|
-
"@dnd-kit/
|
|
54
|
-
"@dnd-kit/
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"@babel/
|
|
76
|
-
"@babel/
|
|
77
|
-
"@babel/
|
|
78
|
-
"@babel/
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"@
|
|
82
|
-
"@
|
|
83
|
-
"@
|
|
84
|
-
"@
|
|
85
|
-
"@
|
|
86
|
-
"@types/
|
|
87
|
-
"@types/
|
|
88
|
-
"@types/
|
|
89
|
-
"@types/
|
|
90
|
-
"@
|
|
91
|
-
"@
|
|
92
|
-
"@
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"react
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"react-
|
|
140
|
-
"react-
|
|
141
|
-
"react-
|
|
142
|
-
"react-
|
|
143
|
-
"react-
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
"
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
"
|
|
171
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@luck-design-biz/luckda",
|
|
3
|
+
"version": "0.0.25-11",
|
|
4
|
+
"description": "前端配置管理中心业务组件库",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",
|
|
7
|
+
"start:test": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=test umi dev",
|
|
8
|
+
"build": "umi build",
|
|
9
|
+
"build-biz": "npm run meta && father build",
|
|
10
|
+
"async": "npm run build-biz && yalc push",
|
|
11
|
+
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx",
|
|
12
|
+
"release": "npm run build-biz && npm publish",
|
|
13
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
14
|
+
"test": "umi-test",
|
|
15
|
+
"test:coverage": "umi-test --coverage",
|
|
16
|
+
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e js,jsx,less --debug -x 'tnpm run async'",
|
|
17
|
+
"meta": "node ./scripts/generateMeta.js && node ./scripts/extractLocals.js && node ./scripts/generateAutoComplete.js"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"es",
|
|
21
|
+
"lib",
|
|
22
|
+
"utils.js",
|
|
23
|
+
"upload.js",
|
|
24
|
+
"lowcode.js"
|
|
25
|
+
],
|
|
26
|
+
"main": "lib/index.js",
|
|
27
|
+
"module": "es/index.js",
|
|
28
|
+
"gitHooks": {
|
|
29
|
+
"pre-commit": "lint-staged"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=16",
|
|
33
|
+
"pnpm": ">=7.14.0"
|
|
34
|
+
},
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/xieyt203/luck-biz-components.git",
|
|
39
|
+
"branch": "main"
|
|
40
|
+
},
|
|
41
|
+
"lint-staged": {
|
|
42
|
+
"**/*.less": "stylelint --syntax less",
|
|
43
|
+
"**/*.{js,jsx,tsx,ts,less,md,json}": [
|
|
44
|
+
"prettier --write",
|
|
45
|
+
"git add"
|
|
46
|
+
],
|
|
47
|
+
"**/*.{js,ts,jsx,tsx}": "npm run lint-staged:js"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@ahooksjs/use-url-state": "^3.5.1",
|
|
51
|
+
"@babel/runtime": "^7.18.9",
|
|
52
|
+
"@babel/standalone": "^7.24.0",
|
|
53
|
+
"@dnd-kit/core": "^6.1.0",
|
|
54
|
+
"@dnd-kit/sortable": "^8.0.0",
|
|
55
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
56
|
+
"ahooks": "^3.7.11",
|
|
57
|
+
"classnames": "^2.3.1",
|
|
58
|
+
"fast-deep-equal": "^3.1.3",
|
|
59
|
+
"lodash": "^4.17.11",
|
|
60
|
+
"lz-string": "^1.5.0",
|
|
61
|
+
"moment": "^2.24.0",
|
|
62
|
+
"monaco-editor": "0.30.*",
|
|
63
|
+
"postcss": "^8.4.38",
|
|
64
|
+
"prop-types": "^15.8.1",
|
|
65
|
+
"querystring": "^0.2.0",
|
|
66
|
+
"react": "^16.12.0",
|
|
67
|
+
"react-color": "^2.19.3",
|
|
68
|
+
"react-error-boundary": "^4.0.13",
|
|
69
|
+
"styled-components": "^6.1.8",
|
|
70
|
+
"zustand": "^4.5.2"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@amap/amap-jsapi-loader": "^0.0.7",
|
|
74
|
+
"@ant-design/pro-cli": "^1.0.28",
|
|
75
|
+
"@babel/core": "^7.20.2",
|
|
76
|
+
"@babel/eslint-parser": "^7.19.1",
|
|
77
|
+
"@babel/parser": "^7.24.4",
|
|
78
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
79
|
+
"@babel/plugin-proposal-decorators": "^7.20.2",
|
|
80
|
+
"@babel/plugin-transform-strict-mode": "^7.18.6",
|
|
81
|
+
"@babel/polyfill": "^7.12.1",
|
|
82
|
+
"@babel/traverse": "^7.24.1",
|
|
83
|
+
"@luck-design-biz/base": "0.0.46-6",
|
|
84
|
+
"@luck-design-biz/bpm": "0.0.5",
|
|
85
|
+
"@luck-helper/ui-design": "0.0.6",
|
|
86
|
+
"@types/classnames": "^2.3.1",
|
|
87
|
+
"@types/express": "^4.17.14",
|
|
88
|
+
"@types/history": "^4.7.11",
|
|
89
|
+
"@types/lodash": "^4.14.189",
|
|
90
|
+
"@types/qs": "^6.9.7",
|
|
91
|
+
"@types/react": "^16.14.34",
|
|
92
|
+
"@types/react-dom": "^16.9.17",
|
|
93
|
+
"@types/react-helmet": "^5.0.20",
|
|
94
|
+
"@umijs/fabric": "^2.14.0",
|
|
95
|
+
"@umijs/plugin-qiankun": "^2.41.0",
|
|
96
|
+
"@umijs/preset-react": "~1.8.31",
|
|
97
|
+
"bpmn-js": "^7.5.0",
|
|
98
|
+
"bpmn-js-properties-panel": "^0.35.0",
|
|
99
|
+
"chalk": "^3.0.0",
|
|
100
|
+
"check-prettier": "^1.0.3",
|
|
101
|
+
"comment-parser": "^1.4.1",
|
|
102
|
+
"compression-webpack-plugin": "^6.1.1",
|
|
103
|
+
"core-js": "^3.26.1",
|
|
104
|
+
"cross-env": "^6.0.3",
|
|
105
|
+
"cross-port-killer": "^1.4.0",
|
|
106
|
+
"cross-var": "^1.1.0",
|
|
107
|
+
"d3-selection": "^1.4.2",
|
|
108
|
+
"dry-dry": "^0.4.0",
|
|
109
|
+
"enzyme": "^3.11.0",
|
|
110
|
+
"eslint": "^7.32.0",
|
|
111
|
+
"eslint-plugin-babel": "^5.3.1",
|
|
112
|
+
"eslint-plugin-react": "^7.31.10",
|
|
113
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
114
|
+
"express": "^4.18.2",
|
|
115
|
+
"father": "^4.3.1",
|
|
116
|
+
"fs-extra": "^11.2.0",
|
|
117
|
+
"gh-pages": "^2.2.0",
|
|
118
|
+
"glob": "^10.3.12",
|
|
119
|
+
"gm-crypt": "^0.0.2",
|
|
120
|
+
"husky": "^7.0.4",
|
|
121
|
+
"import-sort-cli": "^6.0.0",
|
|
122
|
+
"import-sort-parser-babylon": "^6.0.0",
|
|
123
|
+
"import-sort-parser-typescript": "^6.0.0",
|
|
124
|
+
"import-sort-style-module": "^6.0.0",
|
|
125
|
+
"js-cookie": "^2.2.1",
|
|
126
|
+
"jsdom-global": "^3.0.2",
|
|
127
|
+
"lint-staged": "^11.2.6",
|
|
128
|
+
"luck-design": "0.1.77-2",
|
|
129
|
+
"monaco-editor-webpack-plugin": "6.*.*",
|
|
130
|
+
"node-fetch": "^2.6.7",
|
|
131
|
+
"nprogress": "^0.2.0",
|
|
132
|
+
"only-allow": "^1.1.1",
|
|
133
|
+
"prettier": "^2.7.1",
|
|
134
|
+
"pro-download": "1.0.1",
|
|
135
|
+
"promise-sequential": "^1.1.1",
|
|
136
|
+
"qrcode.react": "^1.0.1",
|
|
137
|
+
"qs": "^6.11.0",
|
|
138
|
+
"raphael": "^2.3.0",
|
|
139
|
+
"react-copy-to-clipboard": "^5.1.0",
|
|
140
|
+
"react-device-detect": "^1.17.0",
|
|
141
|
+
"react-dnd": "^9.5.1",
|
|
142
|
+
"react-dnd-html5-backend": "^9.5.1",
|
|
143
|
+
"react-dom": "^16.14.0",
|
|
144
|
+
"react-helmet": "^5.2.1",
|
|
145
|
+
"react-iframe": "^1.8.5",
|
|
146
|
+
"react-loading": "^2.0.3",
|
|
147
|
+
"react-viewer": "^3.2.2",
|
|
148
|
+
"resizable": "^1.2.1",
|
|
149
|
+
"slash2": "^2.0.0",
|
|
150
|
+
"stylelint": "^13.13.1",
|
|
151
|
+
"umi": "^3.5.35",
|
|
152
|
+
"umi-types": "^0.5.14",
|
|
153
|
+
"yorkie": "2.0.0"
|
|
154
|
+
},
|
|
155
|
+
"peerDependencies": {
|
|
156
|
+
"@luck-design-biz/base": ">= 0.0.10",
|
|
157
|
+
"@luck-design-biz/bpm": ">= 0.0.1",
|
|
158
|
+
"luck-design": ">=0.1.51",
|
|
159
|
+
"uuid": "^9.0.1"
|
|
160
|
+
},
|
|
161
|
+
"pnpm": {
|
|
162
|
+
"overrides": {
|
|
163
|
+
"immer": "^2.1.1"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"bugs": {
|
|
167
|
+
"url": "https://github.com/xieyt203/luck-biz-components/issues"
|
|
168
|
+
},
|
|
169
|
+
"homepage": "https://github.com/xieyt203/luck-biz-components#readme",
|
|
170
|
+
"directories": {
|
|
171
|
+
"doc": "docs",
|
|
172
|
+
"lib": "lib"
|
|
173
|
+
},
|
|
174
|
+
"author": ""
|
|
175
|
+
}
|