@luck-design-biz/luckda 0.0.25-2 → 0.0.25-21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +40 -40
- package/es/components/ComplexItem/index.js +92 -0
- package/es/components/ComplexItem/service.js +21 -0
- package/es/components/LDActions/index.js +8 -10
- package/es/components/LDActions/index.less +68 -65
- package/es/components/LdAutoForm/index.js +57 -12
- package/es/components/LdFormList/index.js +50 -28
- package/es/components/LdGrid/index.js +23 -11
- package/es/components/LdGridForm/index.js +37 -12
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdTree/index.js +59 -19
- package/es/components/LdTree/index.less +40 -40
- package/es/helper/FromItems.js +177 -94
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +69 -28
- package/es/helper/index.less +7 -7
- package/es/helper/props_config.js +17 -0
- package/es/index.js +0 -1
- package/es/locales/zh-CN.js +22 -17
- package/es/lowcode/constants/api-url.js +269 -98
- package/es/lowcode/constants/event-topics.js +3 -0
- package/es/lowcode/constants/index.js +2 -1
- package/es/lowcode/engine/factory/panel-item-factory/RadioStrategy.js +53 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +5 -2
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +2 -2
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +5 -2
- package/es/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/es/lowcode/engine/launcher.js +7 -0
- 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 +3 -3
- package/es/lowcode/engine/meta/cardlist.props.json +13 -3
- package/es/lowcode/engine/meta/components-list.json +116 -8
- package/es/lowcode/engine/meta/dialog.props.default.json +11 -5
- package/es/lowcode/engine/meta/dialog.props.json +79 -42
- package/es/lowcode/engine/meta/drawer.props.json +8 -20
- package/es/lowcode/engine/meta/fieldcolor.props.default.json +16 -0
- package/es/lowcode/engine/meta/fieldcolor.props.json +146 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +15 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +122 -0
- package/es/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
- package/es/lowcode/engine/meta/fielddatadic.props.json +73 -0
- package/es/lowcode/engine/meta/fielddate.props.default.json +14 -0
- package/es/lowcode/engine/meta/fielddate.props.json +130 -0
- package/es/lowcode/engine/meta/fielddict.props.default.json +16 -0
- package/es/lowcode/engine/meta/fielddict.props.json +127 -0
- package/es/lowcode/engine/meta/fieldeditor.props.default.json +15 -0
- package/es/lowcode/engine/meta/fieldeditor.props.json +127 -0
- package/es/lowcode/engine/meta/fieldgroup.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldgroup.props.json +156 -0
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +16 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +131 -0
- package/es/lowcode/engine/meta/fieldradio.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldradio.props.json +104 -0
- package/es/lowcode/engine/meta/fieldregion.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldregion.props.json +110 -0
- package/es/lowcode/engine/meta/fieldselect.props.default.json +16 -0
- package/es/lowcode/engine/meta/fieldselect.props.json +141 -0
- package/es/lowcode/engine/meta/fieldstring.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldstring.props.json +141 -0
- package/es/lowcode/engine/meta/fieldswitch.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldswitch.props.json +114 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.default.json +15 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.json +132 -0
- package/es/lowcode/engine/meta/fieldupload.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldupload.props.json +154 -0
- package/es/lowcode/engine/meta/fielduser.props.default.json +18 -0
- package/es/lowcode/engine/meta/fielduser.props.json +165 -0
- package/es/lowcode/engine/meta/fieldyear.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldyear.props.json +120 -0
- package/es/lowcode/engine/meta/form.props.default.json +2 -2
- package/es/lowcode/engine/meta/form.props.json +36 -16
- 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 +106 -14
- package/es/lowcode/engine/meta/layout.props.json +2 -2
- package/es/lowcode/engine/meta/page.props.json +12 -6
- 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.json +2 -2
- 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.default.json +2 -1
- package/es/lowcode/engine/meta/table.props.json +27 -14
- package/es/lowcode/engine/meta/tabs.props.json +3 -3
- package/es/lowcode/engine/meta/tree.props.default.json +7 -5
- package/es/lowcode/engine/meta/tree.props.json +112 -55
- package/es/lowcode/engine/provider/ContextProvider/index.js +104 -86
- package/es/lowcode/engine/provider/ContextProvider/usePageState.js +21 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +96 -49
- package/es/lowcode/engine/tools/dataProcess.js +80 -76
- package/es/lowcode/engine/tools/diff.js +60 -0
- package/es/lowcode/engine/tools/helper.js +92 -7
- package/es/lowcode/engine/tools/useCanvasRender.js +3 -2
- package/es/lowcode/engine/tools/useCombinedRefs.js +14 -0
- package/es/lowcode/engine/tools/usePageDataStore.js +350 -0
- package/es/lowcode/engine/tools/usePromiseState.js +12 -23
- package/es/lowcode/engine/tools/useTodo.js +20 -10
- package/es/lowcode/index.js +1 -4
- package/es/lowcode/painter/Components.js +2 -2
- package/es/lowcode/painter/Design.js +8 -5
- package/es/lowcode/painter/DesignOperator.js +111 -85
- package/es/lowcode/painter/DesignToolbar.js +85 -47
- package/es/lowcode/painter/Outline.js +12 -10
- package/es/lowcode/painter/Panel.js +85 -45
- package/es/lowcode/painter/components/ActionBindModal.js +45 -28
- package/es/lowcode/painter/components/AdvancePanel.js +37 -21
- package/es/lowcode/painter/components/AttrsPanel.js +40 -29
- package/es/lowcode/painter/components/Collapse.js +26 -26
- package/es/lowcode/painter/components/ColorInput.js +24 -24
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/es/lowcode/painter/components/FieldSelector.js +26 -13
- package/es/lowcode/painter/components/ListEditor.js +24 -24
- package/es/lowcode/painter/components/NumberInput.js +28 -28
- package/es/lowcode/painter/components/PanelItem.js +24 -24
- package/es/lowcode/painter/components/PopConfirm.js +8 -8
- package/es/lowcode/painter/components/PopForm.js +27 -27
- package/es/lowcode/painter/components/PreviewIframe.js +19 -0
- package/es/lowcode/painter/components/RuleInput.js +30 -31
- package/es/lowcode/painter/components/SortBox.js +22 -22
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +35 -34
- package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/es/lowcode/painter/components/code-editor/JSEditor.js +48 -42
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- 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 +158 -77
- package/es/lowcode/painter/components/field-setting/index.js +32 -65
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +53 -0
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +3 -1
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +11 -17
- package/es/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/es/lowcode/painter/panel-section/ComponentSelector.js +36 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +33 -7
- package/es/lowcode/painter/panel-section/FieldsSetting.js +72 -54
- package/es/lowcode/painter/panel-section/I18nInput.js +2 -1
- package/es/lowcode/painter/panel-section/Icon.js +23 -23
- package/es/lowcode/painter/panel-section/IconSelector.js +16 -16
- package/es/lowcode/painter/panel-section/ImpExp.js +131 -37
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +124 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +112 -0
- package/es/lowcode/painter/panel-section/SerialsSelector.js +4 -2
- package/es/lowcode/painter/panel-section/SplitDisplay.js +28 -112
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +4 -4
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +3 -3
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/index.js +22 -16
- package/es/lowcode/painter/panel-section/TableTopFilter.js +23 -13
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +12 -4
- package/es/lowcode/painter/style/action-bind-modal.less +102 -102
- package/es/lowcode/painter/style/actions-editor.less +15 -15
- package/es/lowcode/painter/style/border-editor.less +36 -36
- package/es/lowcode/painter/style/border-radius-selector.less +42 -42
- package/es/lowcode/painter/style/border-selector.less +39 -39
- package/es/lowcode/painter/style/button-type.less +5 -5
- package/es/lowcode/painter/style/collapse.less +28 -28
- package/es/lowcode/painter/style/color-input.less +19 -19
- package/es/lowcode/painter/style/components.less +91 -91
- package/es/lowcode/painter/style/design.less +159 -152
- package/es/lowcode/painter/style/display.less +17 -17
- package/es/lowcode/painter/style/dragdrop.less +10 -10
- package/es/lowcode/painter/style/fields-setting.less +25 -25
- package/es/lowcode/painter/style/font-editor.less +9 -9
- package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/es/lowcode/painter/style/icon-selector.less +22 -22
- package/es/lowcode/painter/style/icon.less +10 -10
- package/es/lowcode/painter/style/impexp.less +7 -7
- package/es/lowcode/painter/style/index.less +6 -6
- package/es/lowcode/painter/style/layout-ratio.less +51 -51
- package/es/lowcode/painter/style/list-editor.less +95 -95
- package/es/lowcode/painter/style/number-input.less +17 -17
- package/es/lowcode/painter/style/outline.less +28 -28
- package/es/lowcode/painter/style/page-layout-display.less +28 -0
- package/es/lowcode/painter/style/panel-attrs.less +43 -43
- package/es/lowcode/painter/style/panel-item.less +54 -54
- package/es/lowcode/painter/style/panel.less +98 -98
- package/es/lowcode/painter/style/pop-confirm.less +17 -17
- package/es/lowcode/painter/style/pop-form.less +19 -19
- package/es/lowcode/painter/style/radio.less +24 -24
- package/es/lowcode/painter/style/ribbon.less +5 -5
- package/es/lowcode/painter/style/rule-input.less +12 -12
- package/es/lowcode/painter/style/split-display.less +18 -27
- package/es/lowcode/painter/style/style-panel.less +37 -37
- package/es/lowcode/painter/style/tabitems.less +90 -90
- package/es/lowcode/painter/style/treedragdrop.less +19 -19
- package/es/lowcode/view/Canvas.js +34 -8
- package/es/lowcode/view/Page.js +2 -4
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +8 -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/index.js +4 -4
- package/es/lowcode/view/lc-components/Box/index.less +14 -14
- package/es/lowcode/view/lc-components/Box/meta.json +40 -40
- package/es/lowcode/view/lc-components/Button/index.js +35 -39
- package/es/lowcode/view/lc-components/Button/meta.json +127 -127
- package/es/lowcode/view/lc-components/Button/style.less +2 -2
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +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 +153 -143
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +3 -10
- 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 +143 -19
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/es/lowcode/view/lc-components/Dialog/meta.json +150 -120
- 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/index.js +15 -12
- package/es/lowcode/view/lc-components/Drawer/index.less +9 -9
- package/es/lowcode/view/lc-components/Drawer/meta.json +131 -143
- package/es/lowcode/view/lc-components/FieldColor/meta.json +146 -0
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +122 -0
- package/es/lowcode/view/lc-components/FieldDate/meta.json +128 -0
- package/es/lowcode/view/lc-components/FieldDict/meta.json +127 -0
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +127 -0
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +156 -0
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +131 -0
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +104 -0
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +110 -0
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +141 -0
- package/es/lowcode/view/lc-components/FieldString/meta.json +141 -0
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +114 -0
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +132 -0
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +154 -0
- package/es/lowcode/view/lc-components/FieldUser/meta.json +165 -0
- package/es/lowcode/view/lc-components/FieldYear/meta.json +118 -0
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +23 -33
- 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 +345 -80
- package/es/lowcode/view/lc-components/Form/index.less +4 -4
- package/es/lowcode/view/lc-components/Form/meta.json +610 -599
- 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/Iframe/meta.json +32 -32
- 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 +114 -82
- 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 +114 -114
- 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/{components/LdRuntimeCom/index.js → lowcode/view/lc-components/JSX/RuntimeComp.js} +12 -15
- package/es/lowcode/view/lc-components/JSX/index.js +5 -6
- package/es/lowcode/view/lc-components/JSX/meta.json +28 -28
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +12 -19
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Layout/index.js +19 -17
- package/es/lowcode/view/lc-components/Layout/index.less +5 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
- 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/index.js +3 -0
- package/es/lowcode/view/lc-components/Link/meta.json +112 -112
- package/es/lowcode/view/lc-components/Page/meta.json +55 -49
- package/es/lowcode/view/lc-components/PageContent/index.js +11 -10
- package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageFooter/index.js +5 -5
- package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageHeader/index.js +8 -6
- package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +68 -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 +37 -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 +3 -9
- 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 +6 -3
- package/es/lowcode/view/lc-components/Section/index.less +7 -7
- package/es/lowcode/view/lc-components/Section/meta.json +107 -107
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +19 -20
- 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 +8 -9
- package/es/lowcode/view/lc-components/Split/meta.json +53 -53
- 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 +425 -0
- package/es/lowcode/view/lc-components/Table/index.js +426 -202
- package/es/lowcode/view/lc-components/Table/meta.json +451 -399
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +11 -18
- package/es/lowcode/view/lc-components/Tabs/index.js +52 -37
- package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
- 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/index.js +3 -0
- package/es/lowcode/view/lc-components/Text/meta.json +66 -66
- 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 +173 -119
- package/es/lowcode/view/lc-components/Tree/index.less +4 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +357 -301
- package/es/lowcode/view/lc-components/Wrapper.js +11 -12
- package/es/lowcode/view/style/canvas.less +5 -5
- package/es/lowcode/view/style/loading.less +84 -84
- package/es/lowcode/view/style/page.less +7 -7
- 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 +3 -2
- package/es/upload/Form/index.js +2 -1
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +20 -21
- package/es/upload/index.js +2 -1
- package/es/utils/action.js +2 -2
- package/es/utils/form.js +37 -24
- package/es/utils/grid.js +10 -7
- package/lib/components/ComplexItem/index.js +100 -0
- package/lib/components/ComplexItem/service.js +28 -0
- package/lib/components/LDActions/index.js +7 -9
- package/lib/components/LDActions/index.less +68 -65
- package/lib/components/LdAutoForm/index.js +56 -11
- package/lib/components/LdFormList/index.js +49 -27
- package/lib/components/LdGrid/index.js +23 -11
- package/lib/components/LdGridForm/index.js +35 -10
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdTree/index.js +57 -17
- package/lib/components/LdTree/index.less +40 -40
- package/lib/helper/FromItems.js +175 -92
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +67 -27
- package/lib/helper/index.less +7 -7
- package/lib/helper/props_config.js +23 -0
- package/lib/index.js +1 -9
- package/lib/locales/zh-CN.js +22 -17
- package/lib/lowcode/constants/api-url.js +270 -97
- package/lib/lowcode/constants/event-topics.js +4 -1
- package/lib/lowcode/constants/index.js +3 -2
- package/lib/lowcode/engine/factory/panel-item-factory/RadioStrategy.js +59 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +7 -4
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +4 -3
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +6 -3
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/lib/lowcode/engine/launcher.js +13 -0
- 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 +3 -3
- package/lib/lowcode/engine/meta/cardlist.props.json +13 -3
- package/lib/lowcode/engine/meta/components-list.json +116 -8
- package/lib/lowcode/engine/meta/dialog.props.default.json +11 -5
- package/lib/lowcode/engine/meta/dialog.props.json +79 -42
- package/lib/lowcode/engine/meta/drawer.props.json +8 -20
- package/lib/lowcode/engine/meta/fieldcolor.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.json +146 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +15 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +122 -0
- package/lib/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fielddatadic.props.json +73 -0
- package/lib/lowcode/engine/meta/fielddate.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +130 -0
- package/lib/lowcode/engine/meta/fielddict.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fielddict.props.json +127 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.default.json +15 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.json +127 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.json +156 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +131 -0
- package/lib/lowcode/engine/meta/fieldradio.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldradio.props.json +104 -0
- package/lib/lowcode/engine/meta/fieldregion.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldregion.props.json +110 -0
- package/lib/lowcode/engine/meta/fieldselect.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fieldselect.props.json +141 -0
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldstring.props.json +141 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.json +114 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +15 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +132 -0
- package/lib/lowcode/engine/meta/fieldupload.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldupload.props.json +154 -0
- package/lib/lowcode/engine/meta/fielduser.props.default.json +18 -0
- package/lib/lowcode/engine/meta/fielduser.props.json +165 -0
- package/lib/lowcode/engine/meta/fieldyear.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldyear.props.json +120 -0
- package/lib/lowcode/engine/meta/form.props.default.json +2 -2
- package/lib/lowcode/engine/meta/form.props.json +36 -16
- 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 +106 -14
- package/lib/lowcode/engine/meta/layout.props.json +2 -2
- package/lib/lowcode/engine/meta/page.props.json +12 -6
- 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.json +2 -2
- 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.default.json +2 -1
- package/lib/lowcode/engine/meta/table.props.json +27 -14
- package/lib/lowcode/engine/meta/tabs.props.json +3 -3
- package/lib/lowcode/engine/meta/tree.props.default.json +7 -5
- package/lib/lowcode/engine/meta/tree.props.json +112 -55
- package/lib/lowcode/engine/provider/ContextProvider/index.js +120 -86
- package/lib/lowcode/engine/provider/ContextProvider/usePageState.js +28 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +93 -46
- package/lib/lowcode/engine/tools/dataProcess.js +80 -76
- package/lib/lowcode/engine/tools/diff.js +67 -0
- package/lib/lowcode/engine/tools/helper.js +96 -6
- package/lib/lowcode/engine/tools/useCanvasRender.js +3 -2
- package/lib/lowcode/engine/tools/useCombinedRefs.js +20 -0
- package/lib/lowcode/engine/tools/usePageDataStore.js +357 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +11 -21
- package/lib/lowcode/engine/tools/useTodo.js +19 -9
- package/lib/lowcode/index.js +1 -5
- package/lib/lowcode/painter/Components.js +2 -2
- package/lib/lowcode/painter/Design.js +7 -4
- package/lib/lowcode/painter/DesignOperator.js +108 -82
- package/lib/lowcode/painter/DesignToolbar.js +83 -45
- package/lib/lowcode/painter/Outline.js +10 -8
- package/lib/lowcode/painter/Panel.js +83 -43
- package/lib/lowcode/painter/components/ActionBindModal.js +42 -25
- package/lib/lowcode/painter/components/AdvancePanel.js +36 -20
- package/lib/lowcode/painter/components/AttrsPanel.js +39 -28
- package/lib/lowcode/painter/components/Collapse.js +26 -26
- package/lib/lowcode/painter/components/ColorInput.js +24 -24
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/lib/lowcode/painter/components/FieldSelector.js +26 -13
- package/lib/lowcode/painter/components/ListEditor.js +24 -24
- package/lib/lowcode/painter/components/NumberInput.js +28 -28
- package/lib/lowcode/painter/components/PanelItem.js +24 -24
- package/lib/lowcode/painter/components/PopConfirm.js +8 -8
- package/lib/lowcode/painter/components/PopForm.js +27 -27
- package/lib/lowcode/painter/components/PreviewIframe.js +26 -0
- package/lib/lowcode/painter/components/RuleInput.js +30 -31
- package/lib/lowcode/painter/components/SortBox.js +22 -22
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +35 -34
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +48 -42
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- 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 +155 -74
- package/lib/lowcode/painter/components/field-setting/index.js +32 -65
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +59 -0
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +3 -1
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +10 -16
- package/lib/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/lib/lowcode/painter/panel-section/ComponentSelector.js +43 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +33 -7
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +69 -51
- package/lib/lowcode/painter/panel-section/I18nInput.js +2 -1
- package/lib/lowcode/painter/panel-section/Icon.js +23 -23
- package/lib/lowcode/painter/panel-section/IconSelector.js +16 -16
- package/lib/lowcode/painter/panel-section/ImpExp.js +131 -36
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +130 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +120 -0
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +4 -2
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +27 -111
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +4 -4
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +7 -6
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +22 -16
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +22 -12
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +12 -4
- package/lib/lowcode/painter/style/action-bind-modal.less +102 -102
- package/lib/lowcode/painter/style/actions-editor.less +15 -15
- package/lib/lowcode/painter/style/border-editor.less +36 -36
- package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
- package/lib/lowcode/painter/style/border-selector.less +39 -39
- package/lib/lowcode/painter/style/button-type.less +5 -5
- package/lib/lowcode/painter/style/collapse.less +28 -28
- package/lib/lowcode/painter/style/color-input.less +19 -19
- package/lib/lowcode/painter/style/components.less +91 -91
- package/lib/lowcode/painter/style/design.less +159 -152
- package/lib/lowcode/painter/style/display.less +17 -17
- package/lib/lowcode/painter/style/dragdrop.less +10 -10
- package/lib/lowcode/painter/style/fields-setting.less +25 -25
- package/lib/lowcode/painter/style/font-editor.less +9 -9
- package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/lib/lowcode/painter/style/icon-selector.less +22 -22
- package/lib/lowcode/painter/style/icon.less +10 -10
- package/lib/lowcode/painter/style/impexp.less +7 -7
- package/lib/lowcode/painter/style/index.less +6 -6
- package/lib/lowcode/painter/style/layout-ratio.less +51 -51
- package/lib/lowcode/painter/style/list-editor.less +95 -95
- package/lib/lowcode/painter/style/number-input.less +17 -17
- package/lib/lowcode/painter/style/outline.less +28 -28
- package/lib/lowcode/painter/style/page-layout-display.less +28 -0
- package/lib/lowcode/painter/style/panel-attrs.less +43 -43
- package/lib/lowcode/painter/style/panel-item.less +54 -54
- package/lib/lowcode/painter/style/panel.less +98 -98
- package/lib/lowcode/painter/style/pop-confirm.less +17 -17
- package/lib/lowcode/painter/style/pop-form.less +19 -19
- package/lib/lowcode/painter/style/radio.less +24 -24
- package/lib/lowcode/painter/style/ribbon.less +5 -5
- package/lib/lowcode/painter/style/rule-input.less +12 -12
- package/lib/lowcode/painter/style/split-display.less +18 -27
- package/lib/lowcode/painter/style/style-panel.less +37 -37
- package/lib/lowcode/painter/style/tabitems.less +90 -90
- package/lib/lowcode/painter/style/treedragdrop.less +19 -19
- package/lib/lowcode/view/Canvas.js +34 -7
- package/lib/lowcode/view/Page.js +2 -4
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +8 -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/index.js +4 -4
- package/lib/lowcode/view/lc-components/Box/index.less +14 -14
- package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
- package/lib/lowcode/view/lc-components/Button/index.js +35 -39
- package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
- package/lib/lowcode/view/lc-components/Button/style.less +2 -2
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +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 +153 -143
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -9
- 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 +143 -19
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/lib/lowcode/view/lc-components/Dialog/meta.json +150 -120
- 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/index.js +15 -12
- package/lib/lowcode/view/lc-components/Drawer/index.less +9 -9
- package/lib/lowcode/view/lc-components/Drawer/meta.json +131 -143
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +146 -0
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +122 -0
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +128 -0
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +127 -0
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +127 -0
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +156 -0
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +131 -0
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +104 -0
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +110 -0
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +141 -0
- package/lib/lowcode/view/lc-components/FieldString/meta.json +141 -0
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +114 -0
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +132 -0
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +154 -0
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +165 -0
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +118 -0
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +20 -31
- 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 +341 -76
- package/lib/lowcode/view/lc-components/Form/index.less +4 -4
- package/lib/lowcode/view/lc-components/Form/meta.json +610 -599
- 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/Iframe/meta.json +32 -32
- 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 +114 -82
- 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 +114 -114
- 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/{components/LdRuntimeCom/index.js → lowcode/view/lc-components/JSX/RuntimeComp.js} +13 -16
- package/lib/lowcode/view/lc-components/JSX/index.js +5 -6
- package/lib/lowcode/view/lc-components/JSX/meta.json +28 -28
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +11 -18
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Layout/index.js +19 -17
- package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
- 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/index.js +3 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -112
- package/lib/lowcode/view/lc-components/Page/meta.json +55 -49
- package/lib/lowcode/view/lc-components/PageContent/index.js +9 -8
- package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageFooter/index.js +5 -5
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageHeader/index.js +7 -5
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +76 -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 +45 -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 +2 -8
- 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 +6 -3
- package/lib/lowcode/view/lc-components/Section/index.less +7 -7
- package/lib/lowcode/view/lc-components/Section/meta.json +107 -107
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +19 -20
- 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 +5 -6
- package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
- 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 +433 -0
- package/lib/lowcode/view/lc-components/Table/index.js +422 -198
- package/lib/lowcode/view/lc-components/Table/meta.json +451 -399
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +12 -19
- package/lib/lowcode/view/lc-components/Tabs/index.js +51 -36
- package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
- 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/index.js +3 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +66 -66
- 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 +170 -116
- package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +357 -301
- package/lib/lowcode/view/lc-components/Wrapper.js +12 -12
- package/lib/lowcode/view/style/canvas.less +5 -5
- package/lib/lowcode/view/style/loading.less +84 -84
- package/lib/lowcode/view/style/page.less +7 -7
- 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 +3 -2
- package/lib/upload/Form/index.js +2 -1
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +20 -21
- package/lib/upload/index.js +8 -1
- package/lib/utils/action.js +2 -2
- package/lib/utils/form.js +37 -24
- package/lib/utils/grid.js +10 -7
- package/lowcode.js +1 -1
- package/package.json +173 -171
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/es/lowcode/engine/meta/local/local.zh-cn.js +0 -97
- package/lib/lowcode/engine/meta/local/local.zh-cn.js +0 -103
|
@@ -5,14 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ICONLIST_URL = exports.ICONLIST_JS = void 0;
|
|
8
|
+
exports.exportExcel = exportExcel;
|
|
8
9
|
exports.fetchAddDataset = fetchAddDataset;
|
|
9
10
|
exports.fetchAddFieldAttrs = fetchAddFieldAttrs;
|
|
10
11
|
exports.fetchAllBehavior = fetchAllBehavior;
|
|
12
|
+
exports.fetchAllBehaviorEx = fetchAllBehaviorEx;
|
|
11
13
|
exports.fetchAllDataset = fetchAllDataset;
|
|
12
14
|
exports.fetchAllSerials = fetchAllSerials;
|
|
13
15
|
exports.fetchAttrs = fetchAttrs;
|
|
14
16
|
exports.fetchCallBehavior = fetchCallBehavior;
|
|
15
17
|
exports.fetchClearCache = fetchClearCache;
|
|
18
|
+
exports.fetchDataDic = fetchDataDic;
|
|
16
19
|
exports.fetchDelAttrs = fetchDelAttrs;
|
|
17
20
|
exports.fetchDesignModlueData = fetchDesignModlueData;
|
|
18
21
|
exports.fetchFieldCondition = fetchFieldCondition;
|
|
@@ -24,10 +27,17 @@ exports.fetchUpdateFieldAttrs = fetchUpdateFieldAttrs;
|
|
|
24
27
|
exports.fetchUpdatePageData = fetchUpdatePageData;
|
|
25
28
|
exports.fetchUpdateTitleField = fetchUpdateTitleField;
|
|
26
29
|
exports.fetchUpdateUniqueField = fetchUpdateUniqueField;
|
|
30
|
+
exports.getBehaviorUrl = getBehaviorUrl;
|
|
31
|
+
exports.getFindexcelstate = getFindexcelstate;
|
|
32
|
+
exports.noAuthGetTemplateUrl = noAuthGetTemplateUrl;
|
|
33
|
+
exports.uploadTemplate = uploadTemplate;
|
|
34
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
35
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
27
36
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
28
37
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
29
38
|
var _utils = require("@luck-design-biz/base/utils");
|
|
30
39
|
var _ApiConfig = _interopRequireDefault(require("@/services/ApiConfig"));
|
|
40
|
+
var _helper = require("../engine/tools/helper");
|
|
31
41
|
var _constants = require("../constants");
|
|
32
42
|
// icon地址
|
|
33
43
|
var ICONLIST_URL = exports.ICONLIST_URL = '/public/icons/iconfont.json';
|
|
@@ -38,16 +48,16 @@ var API_PREFIX_PAGE = "".concat(_ApiConfig.default.LUCKDA_HOST, "/page");
|
|
|
38
48
|
var API_PREFIX_MODULE = "".concat(_ApiConfig.default.LUCKDA_HOST, "/module");
|
|
39
49
|
var API_RREFIX_DATASET = "".concat(API_PREFIX_MODULE, "/dataset");
|
|
40
50
|
|
|
41
|
-
/**
|
|
42
|
-
* 通过菜单编码获取page相关数据
|
|
43
|
-
* @param {{code: string}} -code: 菜单编码
|
|
51
|
+
/**
|
|
52
|
+
* 通过菜单编码获取page相关数据
|
|
53
|
+
* @param {{code: string}} -code: 菜单编码
|
|
44
54
|
*/
|
|
45
55
|
function fetchPageData(_x) {
|
|
46
56
|
return _fetchPageData.apply(this, arguments);
|
|
47
57
|
}
|
|
48
|
-
/**
|
|
49
|
-
* 获取design时模块数据
|
|
50
|
-
* @param {{moduleCode: string}} params
|
|
58
|
+
/**
|
|
59
|
+
* 获取design时模块数据
|
|
60
|
+
* @param {{moduleCode: string}} params
|
|
51
61
|
*/
|
|
52
62
|
function _fetchPageData() {
|
|
53
63
|
_fetchPageData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(params) {
|
|
@@ -68,11 +78,11 @@ function _fetchPageData() {
|
|
|
68
78
|
function fetchDesignModlueData(_x2, _x3) {
|
|
69
79
|
return _fetchDesignModlueData.apply(this, arguments);
|
|
70
80
|
}
|
|
71
|
-
/**
|
|
72
|
-
* 获取preview时模块数据
|
|
73
|
-
* @param {*} dmCode
|
|
74
|
-
* @param {*} params
|
|
75
|
-
* @returns
|
|
81
|
+
/**
|
|
82
|
+
* 获取preview时模块数据
|
|
83
|
+
* @param {*} dmCode
|
|
84
|
+
* @param {*} params
|
|
85
|
+
* @returns
|
|
76
86
|
*/
|
|
77
87
|
function _fetchDesignModlueData() {
|
|
78
88
|
_fetchDesignModlueData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(_, params) {
|
|
@@ -80,7 +90,8 @@ function _fetchDesignModlueData() {
|
|
|
80
90
|
while (1) switch (_context2.prev = _context2.next) {
|
|
81
91
|
case 0:
|
|
82
92
|
return _context2.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/fetchModuleInfo"), {
|
|
83
|
-
params: params
|
|
93
|
+
params: params,
|
|
94
|
+
headers: (0, _defineProperty2.default)({}, _constants.COOKIE_RUNTIME_KEY, (0, _helper.getMetaAttr)(_constants.COOKIE_RUNTIME_KEY))
|
|
84
95
|
}));
|
|
85
96
|
case 1:
|
|
86
97
|
case "end":
|
|
@@ -93,9 +104,9 @@ function _fetchDesignModlueData() {
|
|
|
93
104
|
function fetchPreviewModlueData(_x4, _x5) {
|
|
94
105
|
return _fetchPreviewModlueData.apply(this, arguments);
|
|
95
106
|
}
|
|
96
|
-
/**
|
|
97
|
-
* 获取live时模块数据
|
|
98
|
-
* @param {{moduleCode: string}} params
|
|
107
|
+
/**
|
|
108
|
+
* 获取live时模块数据
|
|
109
|
+
* @param {{moduleCode: string}} params
|
|
99
110
|
*/
|
|
100
111
|
function _fetchPreviewModlueData() {
|
|
101
112
|
_fetchPreviewModlueData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3(dmCode, params) {
|
|
@@ -103,7 +114,8 @@ function _fetchPreviewModlueData() {
|
|
|
103
114
|
while (1) switch (_context3.prev = _context3.next) {
|
|
104
115
|
case 0:
|
|
105
116
|
return _context3.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(dmCode, "/ui/builder/fetchModuleForPreview"), {
|
|
106
|
-
params: params
|
|
117
|
+
params: params,
|
|
118
|
+
headers: (0, _defineProperty2.default)({}, _constants.COOKIE_RUNTIME_KEY, (0, _helper.getMetaAttr)(_constants.COOKIE_RUNTIME_KEY))
|
|
107
119
|
}));
|
|
108
120
|
case 1:
|
|
109
121
|
case "end":
|
|
@@ -116,9 +128,9 @@ function _fetchPreviewModlueData() {
|
|
|
116
128
|
function fetchModlueData(_x6, _x7) {
|
|
117
129
|
return _fetchModlueData.apply(this, arguments);
|
|
118
130
|
}
|
|
119
|
-
/**
|
|
120
|
-
* 获取数据模型下的所有数据集
|
|
121
|
-
* @param {{ dataModelKey }} params
|
|
131
|
+
/**
|
|
132
|
+
* 获取数据模型下的所有数据集
|
|
133
|
+
* @param {{ dataModelKey }} params
|
|
122
134
|
*/
|
|
123
135
|
function _fetchModlueData() {
|
|
124
136
|
_fetchModlueData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4(dmCode, params) {
|
|
@@ -126,7 +138,8 @@ function _fetchModlueData() {
|
|
|
126
138
|
while (1) switch (_context4.prev = _context4.next) {
|
|
127
139
|
case 0:
|
|
128
140
|
return _context4.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(dmCode, "/ui/builder/noAuthFetchModule"), {
|
|
129
|
-
params: params
|
|
141
|
+
params: params,
|
|
142
|
+
headers: (0, _defineProperty2.default)({}, _constants.COOKIE_RUNTIME_KEY, (0, _helper.getMetaAttr)(_constants.COOKIE_RUNTIME_KEY))
|
|
130
143
|
}));
|
|
131
144
|
case 1:
|
|
132
145
|
case "end":
|
|
@@ -139,9 +152,9 @@ function _fetchModlueData() {
|
|
|
139
152
|
function fetchAllDataset(_x8) {
|
|
140
153
|
return _fetchAllDataset.apply(this, arguments);
|
|
141
154
|
}
|
|
142
|
-
/**
|
|
143
|
-
* 向模块中添加数据集
|
|
144
|
-
* @data {{ uid, dataModelKey, addList: { code, datasetUid }}} body数据
|
|
155
|
+
/**
|
|
156
|
+
* 向模块中添加数据集
|
|
157
|
+
* @data {{ uid, dataModelKey, addList: { code, datasetUid }}} body数据
|
|
145
158
|
*/
|
|
146
159
|
function _fetchAllDataset() {
|
|
147
160
|
_fetchAllDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee5(params) {
|
|
@@ -162,9 +175,9 @@ function _fetchAllDataset() {
|
|
|
162
175
|
function fetchAddDataset(_x9) {
|
|
163
176
|
return _fetchAddDataset.apply(this, arguments);
|
|
164
177
|
}
|
|
165
|
-
/**
|
|
166
|
-
* 获取数据集下的所有字段
|
|
167
|
-
* @param {{datasetUid}} params
|
|
178
|
+
/**
|
|
179
|
+
* 获取数据集下的所有字段
|
|
180
|
+
* @param {{datasetUid}} params
|
|
168
181
|
*/
|
|
169
182
|
function _fetchAddDataset() {
|
|
170
183
|
_fetchAddDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee6(data) {
|
|
@@ -186,10 +199,10 @@ function _fetchAddDataset() {
|
|
|
186
199
|
function fetchFieldsByDataset(_x10) {
|
|
187
200
|
return _fetchFieldsByDataset.apply(this, arguments);
|
|
188
201
|
}
|
|
189
|
-
/**
|
|
190
|
-
* 获取字段配置条件
|
|
191
|
-
* @param {{moduleId,datasetId,moduleFieldId}} params
|
|
192
|
-
* @returns
|
|
202
|
+
/**
|
|
203
|
+
* 获取字段配置条件
|
|
204
|
+
* @param {{moduleId,datasetId,moduleFieldId}} params
|
|
205
|
+
* @returns
|
|
193
206
|
*/
|
|
194
207
|
function _fetchFieldsByDataset() {
|
|
195
208
|
_fetchFieldsByDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee7(params) {
|
|
@@ -210,9 +223,9 @@ function _fetchFieldsByDataset() {
|
|
|
210
223
|
function fetchFieldCondition(_x11) {
|
|
211
224
|
return _fetchFieldCondition.apply(this, arguments);
|
|
212
225
|
}
|
|
213
|
-
/**
|
|
214
|
-
* 更新是否标题字段
|
|
215
|
-
* @param {{moduleId,datasetId,moduleFieldId}} params
|
|
226
|
+
/**
|
|
227
|
+
* 更新是否标题字段
|
|
228
|
+
* @param {{moduleId,datasetId,moduleFieldId}} params
|
|
216
229
|
*/
|
|
217
230
|
function _fetchFieldCondition() {
|
|
218
231
|
_fetchFieldCondition = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee8(params) {
|
|
@@ -233,10 +246,10 @@ function _fetchFieldCondition() {
|
|
|
233
246
|
function fetchUpdateTitleField(_x12) {
|
|
234
247
|
return _fetchUpdateTitleField.apply(this, arguments);
|
|
235
248
|
}
|
|
236
|
-
/**
|
|
237
|
-
* 更新是否唯一校验
|
|
238
|
-
* @param {*} data
|
|
239
|
-
* @returns
|
|
249
|
+
/**
|
|
250
|
+
* 更新是否唯一校验
|
|
251
|
+
* @param {*} data
|
|
252
|
+
* @returns
|
|
240
253
|
*/
|
|
241
254
|
function _fetchUpdateTitleField() {
|
|
242
255
|
_fetchUpdateTitleField = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee9(data) {
|
|
@@ -258,9 +271,9 @@ function _fetchUpdateTitleField() {
|
|
|
258
271
|
function fetchUpdateUniqueField(_x13) {
|
|
259
272
|
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
260
273
|
}
|
|
261
|
-
/**
|
|
262
|
-
* 新增字段属性
|
|
263
|
-
* @param {*} data
|
|
274
|
+
/**
|
|
275
|
+
* 新增字段属性
|
|
276
|
+
* @param {*} data
|
|
264
277
|
*/
|
|
265
278
|
function _fetchUpdateUniqueField() {
|
|
266
279
|
_fetchUpdateUniqueField = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee10(data) {
|
|
@@ -282,9 +295,9 @@ function _fetchUpdateUniqueField() {
|
|
|
282
295
|
function fetchAddFieldAttrs(_x14) {
|
|
283
296
|
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
284
297
|
}
|
|
285
|
-
/**
|
|
286
|
-
* 删除字段属性
|
|
287
|
-
* @param {*} data
|
|
298
|
+
/**
|
|
299
|
+
* 删除字段属性
|
|
300
|
+
* @param {*} data
|
|
288
301
|
*/
|
|
289
302
|
function _fetchAddFieldAttrs() {
|
|
290
303
|
_fetchAddFieldAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee11(data) {
|
|
@@ -306,9 +319,9 @@ function _fetchAddFieldAttrs() {
|
|
|
306
319
|
function fetchDelAttrs(_x15) {
|
|
307
320
|
return _fetchDelAttrs.apply(this, arguments);
|
|
308
321
|
}
|
|
309
|
-
/**
|
|
310
|
-
* 更新字段属性
|
|
311
|
-
* @param {*} params
|
|
322
|
+
/**
|
|
323
|
+
* 更新字段属性
|
|
324
|
+
* @param {*} params
|
|
312
325
|
*/
|
|
313
326
|
function _fetchDelAttrs() {
|
|
314
327
|
_fetchDelAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee12(data) {
|
|
@@ -330,10 +343,10 @@ function _fetchDelAttrs() {
|
|
|
330
343
|
function fetchUpdateFieldAttrs(_x16) {
|
|
331
344
|
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
332
345
|
}
|
|
333
|
-
/**
|
|
334
|
-
* 读取字段配置的属性
|
|
335
|
-
* @param {{uid, scope}} params
|
|
336
|
-
* @returns
|
|
346
|
+
/**
|
|
347
|
+
* 读取字段配置的属性
|
|
348
|
+
* @param {{uid, scope}} params
|
|
349
|
+
* @returns
|
|
337
350
|
*/
|
|
338
351
|
function _fetchUpdateFieldAttrs() {
|
|
339
352
|
_fetchUpdateFieldAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee13(data) {
|
|
@@ -355,10 +368,10 @@ function _fetchUpdateFieldAttrs() {
|
|
|
355
368
|
function fetchAttrs(_x17) {
|
|
356
369
|
return _fetchAttrs.apply(this, arguments);
|
|
357
370
|
}
|
|
358
|
-
/**
|
|
359
|
-
* 读取所有行为
|
|
360
|
-
* @param {{uid}} params
|
|
361
|
-
* @returns
|
|
371
|
+
/**
|
|
372
|
+
* 读取所有行为
|
|
373
|
+
* @param {{uid}} params
|
|
374
|
+
* @returns
|
|
362
375
|
*/
|
|
363
376
|
function _fetchAttrs() {
|
|
364
377
|
_fetchAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee14(params) {
|
|
@@ -379,10 +392,10 @@ function _fetchAttrs() {
|
|
|
379
392
|
function fetchAllBehavior(_x18) {
|
|
380
393
|
return _fetchAllBehavior.apply(this, arguments);
|
|
381
394
|
}
|
|
382
|
-
/**
|
|
383
|
-
* 读取所有资源串
|
|
384
|
-
* @param {{uid}} params
|
|
385
|
-
* @returns
|
|
395
|
+
/**
|
|
396
|
+
* 读取所有资源串
|
|
397
|
+
* @param {{uid}} params
|
|
398
|
+
* @returns
|
|
386
399
|
*/
|
|
387
400
|
function _fetchAllBehavior() {
|
|
388
401
|
_fetchAllBehavior = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee15(params) {
|
|
@@ -403,11 +416,10 @@ function _fetchAllBehavior() {
|
|
|
403
416
|
function fetchAllSerials(_x19) {
|
|
404
417
|
return _fetchAllSerials.apply(this, arguments);
|
|
405
418
|
}
|
|
406
|
-
/**
|
|
407
|
-
*
|
|
408
|
-
* @param {
|
|
409
|
-
* @
|
|
410
|
-
* @returns
|
|
419
|
+
/**
|
|
420
|
+
* 读取导入导出数据源
|
|
421
|
+
* @param {{moduleCode, behaviorMode:[IMPORT, EXPORT]}} params
|
|
422
|
+
* @returns
|
|
411
423
|
*/
|
|
412
424
|
function _fetchAllSerials() {
|
|
413
425
|
_fetchAllSerials = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee16(params) {
|
|
@@ -425,78 +437,239 @@ function _fetchAllSerials() {
|
|
|
425
437
|
}));
|
|
426
438
|
return _fetchAllSerials.apply(this, arguments);
|
|
427
439
|
}
|
|
428
|
-
function
|
|
440
|
+
function fetchAllBehaviorEx(_x20) {
|
|
441
|
+
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
442
|
+
}
|
|
443
|
+
function _fetchAllBehaviorEx() {
|
|
444
|
+
_fetchAllBehaviorEx = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee17(params) {
|
|
445
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee17$(_context17) {
|
|
446
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
447
|
+
case 0:
|
|
448
|
+
return _context17.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/option/noAuthGetBehavior"), {
|
|
449
|
+
params: params
|
|
450
|
+
}));
|
|
451
|
+
case 1:
|
|
452
|
+
case "end":
|
|
453
|
+
return _context17.stop();
|
|
454
|
+
}
|
|
455
|
+
}, _callee17);
|
|
456
|
+
}));
|
|
457
|
+
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
458
|
+
}
|
|
459
|
+
function getBehaviorUrl() {
|
|
460
|
+
var mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
461
|
+
return "".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/to/behavior/call");
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* 执行行为
|
|
466
|
+
* @param {*} params
|
|
467
|
+
* @param {*} data
|
|
468
|
+
* @returns
|
|
469
|
+
*/
|
|
470
|
+
function fetchCallBehavior(_x21, _x22) {
|
|
429
471
|
return _fetchCallBehavior.apply(this, arguments);
|
|
430
472
|
}
|
|
431
|
-
/**
|
|
432
|
-
* 清除当前模块缓存
|
|
433
|
-
* @param {{moduleCode}} params
|
|
434
|
-
* @returns
|
|
473
|
+
/**
|
|
474
|
+
* 清除当前模块缓存
|
|
475
|
+
* @param {{moduleCode}} params
|
|
476
|
+
* @returns
|
|
435
477
|
*/
|
|
436
478
|
function _fetchCallBehavior() {
|
|
437
|
-
_fetchCallBehavior = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
while (1) switch (_context17.prev = _context17.next) {
|
|
479
|
+
_fetchCallBehavior = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee18(params, data) {
|
|
480
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee18$(_context18) {
|
|
481
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
441
482
|
case 0:
|
|
442
|
-
|
|
443
|
-
return _context17.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/to/behavior/call"), {
|
|
483
|
+
return _context18.abrupt("return", (0, _utils.request)(getBehaviorUrl(), {
|
|
444
484
|
method: 'POST',
|
|
445
485
|
data: data,
|
|
446
486
|
params: params,
|
|
447
|
-
headers: {
|
|
487
|
+
headers: (0, _defineProperty2.default)({
|
|
448
488
|
'Content-Type': 'application/json;charset=UTF-8'
|
|
449
|
-
}
|
|
489
|
+
}, _constants.COOKIE_RUNTIME_KEY, (0, _helper.getMetaAttr)(_constants.COOKIE_RUNTIME_KEY))
|
|
450
490
|
}));
|
|
451
|
-
case
|
|
491
|
+
case 1:
|
|
452
492
|
case "end":
|
|
453
|
-
return
|
|
493
|
+
return _context18.stop();
|
|
454
494
|
}
|
|
455
|
-
},
|
|
495
|
+
}, _callee18);
|
|
456
496
|
}));
|
|
457
497
|
return _fetchCallBehavior.apply(this, arguments);
|
|
458
498
|
}
|
|
459
|
-
function fetchClearCache(
|
|
499
|
+
function fetchClearCache(_x23) {
|
|
460
500
|
return _fetchClearCache.apply(this, arguments);
|
|
461
501
|
}
|
|
462
|
-
/**
|
|
463
|
-
* 更新页面配置数据
|
|
464
|
-
* @param {*} data
|
|
465
|
-
* @returns
|
|
502
|
+
/**
|
|
503
|
+
* 更新页面配置数据
|
|
504
|
+
* @param {*} data
|
|
505
|
+
* @returns
|
|
466
506
|
*/
|
|
467
507
|
function _fetchClearCache() {
|
|
468
|
-
_fetchClearCache = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
469
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
470
|
-
while (1) switch (
|
|
508
|
+
_fetchClearCache = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee19(params) {
|
|
509
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee19$(_context19) {
|
|
510
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
471
511
|
case 0:
|
|
472
|
-
return
|
|
512
|
+
return _context19.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.LUCKDA_HOST, "/cache/manage/noAuthModuleConfigClear"), {
|
|
473
513
|
params: params
|
|
474
514
|
}));
|
|
475
515
|
case 1:
|
|
476
516
|
case "end":
|
|
477
|
-
return
|
|
517
|
+
return _context19.stop();
|
|
478
518
|
}
|
|
479
|
-
},
|
|
519
|
+
}, _callee19);
|
|
480
520
|
}));
|
|
481
521
|
return _fetchClearCache.apply(this, arguments);
|
|
482
522
|
}
|
|
483
|
-
function fetchUpdatePageData(
|
|
523
|
+
function fetchUpdatePageData(_x24) {
|
|
484
524
|
return _fetchUpdatePageData.apply(this, arguments);
|
|
485
525
|
}
|
|
526
|
+
/**
|
|
527
|
+
* 获取数据字典
|
|
528
|
+
* @param {{snamealias}} params
|
|
529
|
+
* @returns
|
|
530
|
+
*/
|
|
486
531
|
function _fetchUpdatePageData() {
|
|
487
|
-
_fetchUpdatePageData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
488
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
489
|
-
while (1) switch (
|
|
532
|
+
_fetchUpdatePageData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee20(data) {
|
|
533
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee20$(_context20) {
|
|
534
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
490
535
|
case 0:
|
|
491
|
-
return
|
|
536
|
+
return _context20.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/data/update"), {
|
|
492
537
|
method: 'POST',
|
|
493
538
|
data: data
|
|
494
539
|
}));
|
|
495
540
|
case 1:
|
|
496
541
|
case "end":
|
|
497
|
-
return
|
|
542
|
+
return _context20.stop();
|
|
498
543
|
}
|
|
499
|
-
},
|
|
544
|
+
}, _callee20);
|
|
500
545
|
}));
|
|
501
546
|
return _fetchUpdatePageData.apply(this, arguments);
|
|
547
|
+
}
|
|
548
|
+
function fetchDataDic(_x25) {
|
|
549
|
+
return _fetchDataDic.apply(this, arguments);
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* 导出excel
|
|
553
|
+
* @param {*} data
|
|
554
|
+
* @returns
|
|
555
|
+
*/
|
|
556
|
+
function _fetchDataDic() {
|
|
557
|
+
_fetchDataDic = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee21(params) {
|
|
558
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee21$(_context21) {
|
|
559
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
560
|
+
case 0:
|
|
561
|
+
return _context21.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.BASE_HOST, "/datadic/sysDatadic/noAuthReadAll"), {
|
|
562
|
+
params: params
|
|
563
|
+
}));
|
|
564
|
+
case 1:
|
|
565
|
+
case "end":
|
|
566
|
+
return _context21.stop();
|
|
567
|
+
}
|
|
568
|
+
}, _callee21);
|
|
569
|
+
}));
|
|
570
|
+
return _fetchDataDic.apply(this, arguments);
|
|
571
|
+
}
|
|
572
|
+
function exportExcel(_x26, _x27) {
|
|
573
|
+
return _exportExcel.apply(this, arguments);
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* 导入
|
|
577
|
+
* @param {*} params, data
|
|
578
|
+
* @returns
|
|
579
|
+
*/
|
|
580
|
+
function _exportExcel() {
|
|
581
|
+
_exportExcel = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee22(params, data) {
|
|
582
|
+
var mdCode, FUNC_NAME;
|
|
583
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee22$(_context22) {
|
|
584
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
585
|
+
case 0:
|
|
586
|
+
mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
587
|
+
FUNC_NAME = params;
|
|
588
|
+
return _context22.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthExport").concat(FUNC_NAME), {
|
|
589
|
+
method: 'POST',
|
|
590
|
+
data: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
|
|
591
|
+
gatewayUrl: "".concat(window.location.origin).concat(_ApiConfig.default.API_HOST)
|
|
592
|
+
})
|
|
593
|
+
}));
|
|
594
|
+
case 3:
|
|
595
|
+
case "end":
|
|
596
|
+
return _context22.stop();
|
|
597
|
+
}
|
|
598
|
+
}, _callee22);
|
|
599
|
+
}));
|
|
600
|
+
return _exportExcel.apply(this, arguments);
|
|
601
|
+
}
|
|
602
|
+
function uploadTemplate(_x28, _x29) {
|
|
603
|
+
return _uploadTemplate.apply(this, arguments);
|
|
604
|
+
} // var successCount = 10;
|
|
605
|
+
// 获取导入进度数据
|
|
606
|
+
function _uploadTemplate() {
|
|
607
|
+
_uploadTemplate = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee23(params, data) {
|
|
608
|
+
var mdCode, FUNC_NAME;
|
|
609
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee23$(_context23) {
|
|
610
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
611
|
+
case 0:
|
|
612
|
+
mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
613
|
+
FUNC_NAME = params;
|
|
614
|
+
return _context23.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthImport").concat(FUNC_NAME), {
|
|
615
|
+
method: 'POST',
|
|
616
|
+
data: data
|
|
617
|
+
}));
|
|
618
|
+
case 3:
|
|
619
|
+
case "end":
|
|
620
|
+
return _context23.stop();
|
|
621
|
+
}
|
|
622
|
+
}, _callee23);
|
|
623
|
+
}));
|
|
624
|
+
return _uploadTemplate.apply(this, arguments);
|
|
625
|
+
}
|
|
626
|
+
function getFindexcelstate(_x30, _x31) {
|
|
627
|
+
return _getFindexcelstate.apply(this, arguments);
|
|
628
|
+
}
|
|
629
|
+
function _getFindexcelstate() {
|
|
630
|
+
_getFindexcelstate = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee24(params, data) {
|
|
631
|
+
var mdCode, FUNC_NAME;
|
|
632
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee24$(_context24) {
|
|
633
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
634
|
+
case 0:
|
|
635
|
+
mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
636
|
+
FUNC_NAME = params;
|
|
637
|
+
return _context24.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetProgress").concat(FUNC_NAME), {
|
|
638
|
+
method: 'POST',
|
|
639
|
+
data: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
|
|
640
|
+
gatewayUrl: "".concat(window.location.origin).concat(_ApiConfig.default.API_HOST)
|
|
641
|
+
})
|
|
642
|
+
}));
|
|
643
|
+
case 3:
|
|
644
|
+
case "end":
|
|
645
|
+
return _context24.stop();
|
|
646
|
+
}
|
|
647
|
+
}, _callee24);
|
|
648
|
+
}));
|
|
649
|
+
return _getFindexcelstate.apply(this, arguments);
|
|
650
|
+
}
|
|
651
|
+
function noAuthGetTemplateUrl(_x32) {
|
|
652
|
+
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
653
|
+
}
|
|
654
|
+
function _noAuthGetTemplateUrl() {
|
|
655
|
+
_noAuthGetTemplateUrl = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee25(params) {
|
|
656
|
+
var mdCode;
|
|
657
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee25$(_context25) {
|
|
658
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
659
|
+
case 0:
|
|
660
|
+
mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
661
|
+
return _context25.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetTemplateUrl"), {
|
|
662
|
+
method: 'POST',
|
|
663
|
+
data: {
|
|
664
|
+
gatewayUrl: "".concat(window.location.origin).concat(_ApiConfig.default.API_HOST),
|
|
665
|
+
templateId: params
|
|
666
|
+
}
|
|
667
|
+
}));
|
|
668
|
+
case 2:
|
|
669
|
+
case "end":
|
|
670
|
+
return _context25.stop();
|
|
671
|
+
}
|
|
672
|
+
}, _callee25);
|
|
673
|
+
}));
|
|
674
|
+
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
502
675
|
}
|
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.LANG_SETTING_SELECT = exports.COMPONENT_UNMOUNT = exports.COMPONENT_SETTING_CLICK = exports.COMPONENT_REPOSITIONING = exports.COMPONENT_MOUNT = exports.COMPONENT_MODIFY = exports.COMPONENT_MODAL_TOGGLE = exports.COMPONENT_HOVER = exports.COMPONENT_DRAG_OVER = exports.COMPONENT_DRAG_END = exports.COMPONENT_DELETE = exports.COMPONENT_APPEND = exports.COMPONENT_ACTIVE = void 0;
|
|
6
|
+
exports.PAGE_STATE_CHANGED = exports.PAGE_LOAD_MOUNT = exports.LANG_SETTING_SELECT = exports.COMPONENT_UNMOUNT = exports.COMPONENT_SETTING_CLICK = exports.COMPONENT_REPOSITIONING = exports.COMPONENT_MOUNT = exports.COMPONENT_MODIFY = exports.COMPONENT_MODAL_TOGGLE = exports.COMPONENT_HOVER = exports.COMPONENT_DRAG_OVER = exports.COMPONENT_DRAG_END = exports.COMPONENT_DELETE = exports.COMPONENT_APPEND = exports.COMPONENT_ACTIVE = void 0;
|
|
7
7
|
/******************************** 通用Topic开始 ********************************/
|
|
8
8
|
|
|
9
|
+
var PAGE_LOAD_MOUNT = exports.PAGE_LOAD_MOUNT = 'page-load-mount';
|
|
9
10
|
// 组件的加载完成事件
|
|
10
11
|
var COMPONENT_MOUNT = exports.COMPONENT_MOUNT = 'component-mount';
|
|
11
12
|
// 组件的卸载事件
|
|
12
13
|
var COMPONENT_UNMOUNT = exports.COMPONENT_UNMOUNT = 'component-unmount';
|
|
14
|
+
// 页面公共资源变化事件
|
|
15
|
+
var PAGE_STATE_CHANGED = exports.PAGE_STATE_CHANGED = 'page-state-changed';
|
|
13
16
|
|
|
14
17
|
/******************************** 通用Topic结束 ********************************/
|
|
15
18
|
|
|
@@ -3,17 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.RUNTIME = exports.NO_DROPABLE = exports.NO_DRAGABLE = exports.LC_COMPONENT_UNIT_KEY = exports.LC_COMPONENT_UNIT = exports.LC_BUILDIN_UNIT_KEY_LIST = exports.LC_BUILDIN_UNIT_KEY = exports.FIELD_SCOPES = exports.
|
|
6
|
+
exports.RUNTIME = exports.NO_DROPABLE = exports.NO_DRAGABLE = exports.META_TAG_NAME = exports.LC_FORMITEM_UNIT = exports.LC_COMPONENT_UNIT_KEY = exports.LC_COMPONENT_UNIT = exports.LC_BUILDIN_UNIT_KEY_LIST = exports.LC_BUILDIN_UNIT_KEY = exports.FIELD_SCOPES = exports.COOKIE_VIRTUAL_ACCOUNT_KEY = exports.COOKIE_RUNTIME_KEY = exports.CONTAINER_UNITS = void 0;
|
|
7
7
|
var RUNTIME = exports.RUNTIME = {
|
|
8
8
|
LIVE: 'live',
|
|
9
9
|
DESIGN: 'design',
|
|
10
10
|
PREVIEW: 'preview'
|
|
11
11
|
};
|
|
12
|
+
var META_TAG_NAME = exports.META_TAG_NAME = 'luckda-lcpage';
|
|
12
13
|
var COOKIE_RUNTIME_KEY = exports.COOKIE_RUNTIME_KEY = 'Lowcode-Runtime';
|
|
13
14
|
var COOKIE_VIRTUAL_ACCOUNT_KEY = exports.COOKIE_VIRTUAL_ACCOUNT_KEY = 'Lowcode-Account';
|
|
14
|
-
var DATA_MODEL_CODE_KEY = exports.DATA_MODEL_CODE_KEY = 'Lowcode-Data-Model-Code';
|
|
15
15
|
var LC_COMPONENT_UNIT_KEY = exports.LC_COMPONENT_UNIT_KEY = 'luckda-unitmark';
|
|
16
16
|
var LC_COMPONENT_UNIT = exports.LC_COMPONENT_UNIT = 'lc-component';
|
|
17
|
+
var LC_FORMITEM_UNIT = exports.LC_FORMITEM_UNIT = 'lc-formitem';
|
|
17
18
|
var LC_BUILDIN_UNIT_KEY = exports.LC_BUILDIN_UNIT_KEY = {
|
|
18
19
|
PAGE_ROOT: 'page_root',
|
|
19
20
|
PAGE_HEADER: 'page_header',
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
11
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
|
+
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
13
|
+
var _react = _interopRequireDefault(require("react"));
|
|
14
|
+
var _antd = require("luck-design/antd");
|
|
15
|
+
var _Strategy2 = _interopRequireDefault(require("./Strategy"));
|
|
16
|
+
var _TYPE_ = 'radio';
|
|
17
|
+
var RadioComp = function RadioComp(_ref) {
|
|
18
|
+
var _onChange = _ref.onChange,
|
|
19
|
+
defaultValue = _ref.defaultValue,
|
|
20
|
+
size = _ref.size,
|
|
21
|
+
options = _ref.options;
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Radio.Group, {
|
|
23
|
+
onChange: function onChange(e) {
|
|
24
|
+
return _onChange(e.target.value);
|
|
25
|
+
},
|
|
26
|
+
defaultValue: defaultValue,
|
|
27
|
+
size: size
|
|
28
|
+
}, options.map(function (_ref2) {
|
|
29
|
+
var value = _ref2.value,
|
|
30
|
+
label = _ref2.label;
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Radio, {
|
|
32
|
+
key: value,
|
|
33
|
+
value: value
|
|
34
|
+
}, label);
|
|
35
|
+
}));
|
|
36
|
+
};
|
|
37
|
+
var RadioStrategy = exports.default = /*#__PURE__*/function (_Strategy) {
|
|
38
|
+
(0, _inherits2.default)(RadioStrategy, _Strategy);
|
|
39
|
+
var _super = (0, _createSuper2.default)(RadioStrategy);
|
|
40
|
+
function RadioStrategy(factory) {
|
|
41
|
+
var _this;
|
|
42
|
+
(0, _classCallCheck2.default)(this, RadioStrategy);
|
|
43
|
+
_this = _super.call(this, _TYPE_);
|
|
44
|
+
factory.register(_TYPE_, (0, _assertThisInitialized2.default)(_this));
|
|
45
|
+
return _this;
|
|
46
|
+
}
|
|
47
|
+
(0, _createClass2.default)(RadioStrategy, [{
|
|
48
|
+
key: "match",
|
|
49
|
+
value: function match(type) {
|
|
50
|
+
return type === _TYPE_;
|
|
51
|
+
}
|
|
52
|
+
}, {
|
|
53
|
+
key: "builder",
|
|
54
|
+
value: function builder() {
|
|
55
|
+
return RadioComp;
|
|
56
|
+
}
|
|
57
|
+
}]);
|
|
58
|
+
return RadioStrategy;
|
|
59
|
+
}(_Strategy2.default);
|