@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
|
@@ -13,14 +13,12 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _ahooks = require("ahooks");
|
|
15
15
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
16
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
16
|
var _lodash = require("lodash");
|
|
18
17
|
var _antd = require("luck-design/antd");
|
|
19
18
|
var _utils = require("@luck-design-biz/base/utils");
|
|
20
19
|
var _RuleInput = _interopRequireDefault(require("../components/RuleInput"));
|
|
21
20
|
var _PanelItem = _interopRequireDefault(require("../components/PanelItem"));
|
|
22
21
|
var _splitDisplay = _interopRequireDefault(require("../style/split-display.less"));
|
|
23
|
-
var _TYPES_ = ['normal', 'lr', 'lmr', 'ltb'];
|
|
24
22
|
var _OPTIONS_ = [{
|
|
25
23
|
label: (0, _utils.formatMessage)({
|
|
26
24
|
id: 'luckda.lowcode.painter.panel-section.splitdisplay.splitVertical',
|
|
@@ -37,10 +35,10 @@ var _OPTIONS_ = [{
|
|
|
37
35
|
var _RULES_ = [{
|
|
38
36
|
func: function func(value) {
|
|
39
37
|
// 首先,检查value是否为字符串
|
|
40
|
-
if (!(0, _lodash.isString)(value)) return false;
|
|
38
|
+
if (!(0, _lodash.isString)(value) || value === '') return false;
|
|
41
39
|
|
|
42
40
|
// 使用正则表达式检查字符串是否只包含数字和冒号,并且不以冒号开始或结束
|
|
43
|
-
return /^[
|
|
41
|
+
return /^[1-9]+(:[1-9]+)+$/.test(value);
|
|
44
42
|
},
|
|
45
43
|
err: (0, _utils.formatMessage)({
|
|
46
44
|
id: 'luckda.lowcode.painter.panel-section.splitdisplay.err',
|
|
@@ -61,47 +59,27 @@ var SplitDisplay = function SplitDisplay(_ref) {
|
|
|
61
59
|
var defaultValue = _ref.defaultValue,
|
|
62
60
|
onChange = _ref.onChange;
|
|
63
61
|
var valueRef = (0, _react.useRef)(defaultValue);
|
|
64
|
-
var _useState = (0, _react.useState)(defaultValue.
|
|
62
|
+
var _useState = (0, _react.useState)(defaultValue.split || 'vertical'),
|
|
65
63
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
var _useState3 = (0, _react.useState)(defaultValue.
|
|
64
|
+
split = _useState2[0],
|
|
65
|
+
setSplit = _useState2[1];
|
|
66
|
+
var _useState3 = (0, _react.useState)(defaultValue.ratio || '1:1'),
|
|
69
67
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
var _useState5 = (0, _react.useState)(defaultValue.ratio || '1:1'),
|
|
73
|
-
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
74
|
-
ratio = _useState6[0],
|
|
75
|
-
setRatio = _useState6[1];
|
|
68
|
+
ratio = _useState4[0],
|
|
69
|
+
setRatio = _useState4[1];
|
|
76
70
|
var ratioArr = (0, _ahooks.useCreation)(function () {
|
|
77
71
|
return ratio.split(':').map(function (r) {
|
|
78
72
|
return parseInt(r);
|
|
79
73
|
});
|
|
80
74
|
}, [ratio]);
|
|
81
|
-
var
|
|
75
|
+
var _useState5 = (0, _react.useState)(function () {
|
|
82
76
|
return (0, _lodash.drop)(ratioArr).map(function () {
|
|
83
77
|
return split === 'vertical' ? 'right' : 'down';
|
|
84
78
|
});
|
|
85
79
|
}),
|
|
86
|
-
|
|
87
|
-
fastTo =
|
|
88
|
-
setFastTo =
|
|
89
|
-
var handleTypeChange = (0, _ahooks.useMemoizedFn)(function (value) {
|
|
90
|
-
setActiveType(value);
|
|
91
|
-
if (value === 'normal') {
|
|
92
|
-
valueRef.current = {
|
|
93
|
-
type: value,
|
|
94
|
-
fastTo: fastTo,
|
|
95
|
-
split: split,
|
|
96
|
-
ratio: ratio
|
|
97
|
-
};
|
|
98
|
-
} else {
|
|
99
|
-
valueRef.current = {
|
|
100
|
-
type: value
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
onChange(valueRef.current);
|
|
104
|
-
});
|
|
80
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
81
|
+
fastTo = _useState6[0],
|
|
82
|
+
setFastTo = _useState6[1];
|
|
105
83
|
var handleFastToItemClick = (0, _ahooks.useMemoizedFn)(function (d, i) {
|
|
106
84
|
var _fastTo = (0, _toConsumableArray2.default)(fastTo);
|
|
107
85
|
_fastTo[i] = _FAST_TO_MAPPING_[d];
|
|
@@ -120,6 +98,7 @@ var SplitDisplay = function SplitDisplay(_ref) {
|
|
|
120
98
|
onChange((0, _objectSpread2.default)({}, valueRef.current));
|
|
121
99
|
});
|
|
122
100
|
var handleInputChange = (0, _ahooks.useMemoizedFn)(function (_, value) {
|
|
101
|
+
console.log('handleInputChange', value);
|
|
123
102
|
var _fastTo = (0, _lodash.drop)(value.split(':')).map(function () {
|
|
124
103
|
return split === 'vertical' ? 'right' : 'down';
|
|
125
104
|
});
|
|
@@ -133,84 +112,20 @@ var SplitDisplay = function SplitDisplay(_ref) {
|
|
|
133
112
|
className: _splitDisplay.default['lc-painter-panel-section-splitdisplay']
|
|
134
113
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
135
114
|
className: _splitDisplay.default['display-type-box']
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
}, _type === 'normal' && ratioArr.map(function (r, i) {
|
|
149
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
150
|
-
key: i,
|
|
151
|
-
style: (0, _defineProperty2.default)({
|
|
152
|
-
flex: r
|
|
153
|
-
}, split === 'horizontal' ? 'borderBottom' : 'borderRight', i < ratioArr.length - 1 ? '1px solid #eee' : 'none'),
|
|
154
|
-
className: _splitDisplay.default['item-block']
|
|
155
|
-
});
|
|
156
|
-
}), _type === 'lr' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
157
|
-
style: {
|
|
158
|
-
flex: 1,
|
|
159
|
-
marginRight: 4
|
|
160
|
-
},
|
|
161
|
-
className: _splitDisplay.default['item-block']
|
|
162
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
163
|
-
style: {
|
|
164
|
-
flex: 3
|
|
165
|
-
},
|
|
166
|
-
className: _splitDisplay.default['item-block']
|
|
167
|
-
})), _type === 'lmr' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
168
|
-
style: {
|
|
169
|
-
flex: 1,
|
|
170
|
-
marginRight: 4
|
|
171
|
-
},
|
|
172
|
-
className: _splitDisplay.default['item-block']
|
|
173
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
174
|
-
style: {
|
|
175
|
-
flex: 3,
|
|
176
|
-
display: 'flex'
|
|
177
|
-
}
|
|
178
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
179
|
-
style: {
|
|
180
|
-
width: '50%',
|
|
181
|
-
borderRight: '1px solid #eee'
|
|
182
|
-
},
|
|
183
|
-
className: _splitDisplay.default['item-block']
|
|
184
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
185
|
-
style: {
|
|
186
|
-
width: '50%'
|
|
187
|
-
},
|
|
188
|
-
className: _splitDisplay.default['item-block']
|
|
189
|
-
}))), _type === 'ltb' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
190
|
-
style: {
|
|
191
|
-
flex: 1,
|
|
192
|
-
marginRight: 4
|
|
193
|
-
},
|
|
194
|
-
className: _splitDisplay.default['item-block']
|
|
195
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
196
|
-
style: {
|
|
197
|
-
flex: 3,
|
|
198
|
-
display: 'flex',
|
|
199
|
-
flexDirection: 'column'
|
|
200
|
-
}
|
|
201
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
202
|
-
style: {
|
|
203
|
-
height: '50%',
|
|
204
|
-
borderBottom: '1px solid #eee'
|
|
205
|
-
},
|
|
206
|
-
className: _splitDisplay.default['item-block']
|
|
207
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
208
|
-
style: {
|
|
209
|
-
height: '50%'
|
|
210
|
-
},
|
|
115
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
116
|
+
className: _splitDisplay.default['display-type-item'],
|
|
117
|
+
style: {
|
|
118
|
+
flexDirection: split === 'horizontal' ? 'column' : 'row'
|
|
119
|
+
}
|
|
120
|
+
}, ratioArr.map(function (r, i) {
|
|
121
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
122
|
+
key: i,
|
|
123
|
+
style: (0, _defineProperty2.default)({
|
|
124
|
+
flex: r
|
|
125
|
+
}, split === 'horizontal' ? 'borderBottom' : 'borderRight', i < ratioArr.length - 1 ? '1px solid #eee' : 'none'),
|
|
211
126
|
className: _splitDisplay.default['item-block']
|
|
212
|
-
})
|
|
213
|
-
})),
|
|
127
|
+
});
|
|
128
|
+
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
214
129
|
style: {
|
|
215
130
|
marginTop: 8
|
|
216
131
|
}
|
|
@@ -222,6 +137,7 @@ var SplitDisplay = function SplitDisplay(_ref) {
|
|
|
222
137
|
suppressPadding: true
|
|
223
138
|
}, /*#__PURE__*/_react.default.createElement(FastToBox, null, fastTo.map(function (d, i) {
|
|
224
139
|
return /*#__PURE__*/_react.default.createElement(_antd.Icon, {
|
|
140
|
+
key: i,
|
|
225
141
|
type: "arrow-".concat(d),
|
|
226
142
|
onClick: function onClick() {
|
|
227
143
|
return handleFastToItemClick(d, i);
|
|
@@ -16,8 +16,8 @@ var _HighLightPanel = _interopRequireDefault(require("./HighLightPanel"));
|
|
|
16
16
|
var _HightLightSvg = _interopRequireDefault(require("./HightLightSvg"));
|
|
17
17
|
var textRelatedStyles = ['background-color'];
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* 背景设置控件
|
|
19
|
+
/**
|
|
20
|
+
* 背景设置控件
|
|
21
21
|
*/
|
|
22
22
|
function _default() {
|
|
23
23
|
return /*#__PURE__*/_react.default.createElement(_HighLightPanel.default, {
|
|
@@ -19,8 +19,8 @@ var borderMainProps = ['border-radius'];
|
|
|
19
19
|
var borderSideProps = ['border-top-right-radius', 'border-top-left-radius', 'border-bottom-left-radius', 'border-bottom-right-radius'];
|
|
20
20
|
var textRelatedStyles = [].concat(borderMainProps, borderSideProps);
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* 圆角样式设置控件
|
|
22
|
+
/**
|
|
23
|
+
* 圆角样式设置控件
|
|
24
24
|
*/
|
|
25
25
|
function _default() {
|
|
26
26
|
return /*#__PURE__*/_react.default.createElement(_HighLightPanel.default, {
|
|
@@ -9,8 +9,8 @@ exports.default = _default;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _borderRadiusSelector = _interopRequireDefault(require("../../style/border-radius-selector.less"));
|
|
12
|
-
/**
|
|
13
|
-
* 圆角设置组件
|
|
12
|
+
/**
|
|
13
|
+
* 圆角设置组件
|
|
14
14
|
*/
|
|
15
15
|
function _default(_ref) {
|
|
16
16
|
var onChange = _ref.onChange;
|
|
@@ -9,8 +9,8 @@ exports.default = _default;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _borderSelector = _interopRequireDefault(require("../../style/border-selector.less"));
|
|
12
|
-
/**
|
|
13
|
-
* 边框选择组件
|
|
12
|
+
/**
|
|
13
|
+
* 边框选择组件
|
|
14
14
|
*/
|
|
15
15
|
function _default(_ref) {
|
|
16
16
|
var onChange = _ref.onChange;
|
|
@@ -15,8 +15,8 @@ var _StyleContext = require("./StyleContext");
|
|
|
15
15
|
var _HighLightPanel = _interopRequireDefault(require("./HighLightPanel"));
|
|
16
16
|
var textRelatedStyles = ['display', 'flex-direction', 'align-items', 'justify-content'];
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* 显示样式设置控件
|
|
18
|
+
/**
|
|
19
|
+
* 显示样式设置控件
|
|
20
20
|
*/
|
|
21
21
|
function _default(_ref) {
|
|
22
22
|
var label = _ref.label;
|
|
@@ -18,8 +18,8 @@ var _HighLightPanel = _interopRequireDefault(require("./HighLightPanel"));
|
|
|
18
18
|
var Option = _antd.Select.Option;
|
|
19
19
|
var textRelatedStyles = ['font-weight', 'font-style', 'color', 'font-size', 'line-height', 'text-align', 'text-decoration'];
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* 文字设置组件
|
|
21
|
+
/**
|
|
22
|
+
* 文字设置组件
|
|
23
23
|
*/
|
|
24
24
|
function _default() {
|
|
25
25
|
var style = (0, _StyleContext.useStyle)();
|
|
@@ -18,8 +18,8 @@ var _Size = _interopRequireDefault(require("./Size"));
|
|
|
18
18
|
var _HightLightSvg = _interopRequireDefault(require("./HightLightSvg"));
|
|
19
19
|
var Option = _antd.Select.Option;
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* 文字详细编辑组件
|
|
21
|
+
/**
|
|
22
|
+
* 文字详细编辑组件
|
|
23
23
|
*/
|
|
24
24
|
function _default() {
|
|
25
25
|
var _style$fontWeight;
|
|
@@ -11,8 +11,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _PanelItem = _interopRequireDefault(require("../../components/PanelItem"));
|
|
12
12
|
var _HighLigthtSpan = _interopRequireDefault(require("./HighLigthtSpan"));
|
|
13
13
|
var _excluded = ["children", "label", "highLightFields", "customStyle"];
|
|
14
|
-
/**
|
|
15
|
-
* 标签自动高亮控件
|
|
14
|
+
/**
|
|
15
|
+
* 标签自动高亮控件
|
|
16
16
|
*/
|
|
17
17
|
function _default(_ref) {
|
|
18
18
|
var children = _ref.children,
|
|
@@ -11,8 +11,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _StyleContext = require("./StyleContext");
|
|
12
12
|
var _stylePanel = _interopRequireDefault(require("../../style/style-panel.less"));
|
|
13
13
|
var _excluded = ["children", "highLightFields", "customStyle"];
|
|
14
|
-
/**
|
|
15
|
-
* 标签自动高亮控件
|
|
14
|
+
/**
|
|
15
|
+
* 标签自动高亮控件
|
|
16
16
|
*/
|
|
17
17
|
function _default(_ref) {
|
|
18
18
|
var children = _ref.children,
|
|
@@ -11,8 +11,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _StyleContext = require("./StyleContext");
|
|
12
12
|
var _stylePanel = _interopRequireDefault(require("../../style/style-panel.less"));
|
|
13
13
|
var _excluded = ["children", "field", "label", "highLightFields"];
|
|
14
|
-
/**
|
|
15
|
-
* 标签自动高亮SVG
|
|
14
|
+
/**
|
|
15
|
+
* 标签自动高亮SVG
|
|
16
16
|
*/
|
|
17
17
|
function _default(_ref) {
|
|
18
18
|
var children = _ref.children,
|
|
@@ -26,8 +26,8 @@ var _BorderRadius = _interopRequireDefault(require("./BorderRadius"));
|
|
|
26
26
|
var _Shadow = _interopRequireDefault(require("./Shadow"));
|
|
27
27
|
var _Opacity = _interopRequireDefault(require("./Opacity"));
|
|
28
28
|
var _Pointer = _interopRequireDefault(require("./Pointer"));
|
|
29
|
-
/**
|
|
30
|
-
* 主样式面板
|
|
29
|
+
/**
|
|
30
|
+
* 主样式面板
|
|
31
31
|
*/
|
|
32
32
|
var MainPanel = function MainPanel() {
|
|
33
33
|
var style = (0, _StyleContext.useStyle)();
|
|
@@ -86,11 +86,11 @@ var MainPanel = function MainPanel() {
|
|
|
86
86
|
}), /*#__PURE__*/_react.default.createElement(_WidthHeight.default, {
|
|
87
87
|
field: "height",
|
|
88
88
|
label: (0, _utils.formatMessage)({
|
|
89
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.
|
|
89
|
+
id: 'luckda.lowcode.painter.panel-section.style-panel.height',
|
|
90
90
|
label: '高'
|
|
91
91
|
}),
|
|
92
92
|
placeholder: (0, _utils.formatMessage)({
|
|
93
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.
|
|
93
|
+
id: 'luckda.lowcode.painter.panel-section.style-panel.height',
|
|
94
94
|
label: '请输入宽高度'
|
|
95
95
|
})
|
|
96
96
|
}), /*#__PURE__*/_react.default.createElement(_Display.default, {
|
|
@@ -13,8 +13,8 @@ var _lodash = require("lodash");
|
|
|
13
13
|
var _HighLightPanel = _interopRequireDefault(require("./HighLightPanel"));
|
|
14
14
|
var field = 'opacity';
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* 透明度设置组件
|
|
16
|
+
/**
|
|
17
|
+
* 透明度设置组件
|
|
18
18
|
*/
|
|
19
19
|
function _default() {
|
|
20
20
|
var style = (0, _StyleContext.useStyle)();
|
|
@@ -13,8 +13,8 @@ var _HighLightPanel = _interopRequireDefault(require("./HighLightPanel"));
|
|
|
13
13
|
var textRelatedStyles = ['padding', 'padding-top', 'padding-right', 'padding-bottom', 'padding-left'];
|
|
14
14
|
var field = 'padding';
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* 间距样式设置组件
|
|
16
|
+
/**
|
|
17
|
+
* 间距样式设置组件
|
|
18
18
|
*/
|
|
19
19
|
function _default() {
|
|
20
20
|
var style = (0, _StyleContext.useStyle)();
|
|
@@ -12,8 +12,8 @@ var _antd = require("luck-design/antd");
|
|
|
12
12
|
var _HighLightPanel = _interopRequireDefault(require("./HighLightPanel"));
|
|
13
13
|
var Option = _antd.Select.Option;
|
|
14
14
|
var field = 'cursor';
|
|
15
|
-
/**
|
|
16
|
-
* 指针样式设置组件
|
|
15
|
+
/**
|
|
16
|
+
* 指针样式设置组件
|
|
17
17
|
*/
|
|
18
18
|
function _default() {
|
|
19
19
|
var _style$field;
|
|
@@ -11,8 +11,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _StyleContext = require("./StyleContext");
|
|
12
12
|
var _NumberInput = _interopRequireDefault(require("../../components/NumberInput"));
|
|
13
13
|
var _excluded = ["field", "onChange", "placeholder", "customValue", "customOption"];
|
|
14
|
-
/**
|
|
15
|
-
* Size设置通用组件
|
|
14
|
+
/**
|
|
15
|
+
* Size设置通用组件
|
|
16
16
|
*/
|
|
17
17
|
function _default(_ref) {
|
|
18
18
|
var field = _ref.field,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
@@ -12,7 +13,7 @@ exports.useStyleDispatch = useStyleDispatch;
|
|
|
12
13
|
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
|
13
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
14
15
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
15
|
-
var _react = require("react");
|
|
16
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
16
17
|
var _postcss = _interopRequireDefault(require("postcss"));
|
|
17
18
|
var _lodash = require("lodash");
|
|
18
19
|
var _ahooks = require("ahooks");
|
|
@@ -21,8 +22,8 @@ var StyleContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
|
21
22
|
var StyleDispatchContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
22
23
|
var EditorContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
23
24
|
|
|
24
|
-
/**
|
|
25
|
-
* 样式上下文组件
|
|
25
|
+
/**
|
|
26
|
+
* 样式上下文组件
|
|
26
27
|
*/
|
|
27
28
|
function StyleProvider(_ref) {
|
|
28
29
|
var onChange = _ref.onChange,
|
|
@@ -66,11 +67,11 @@ function StyleProvider(_ref) {
|
|
|
66
67
|
if (onChange) onChange(style, removeRootBrackets(css));
|
|
67
68
|
}
|
|
68
69
|
}, [style]);
|
|
69
|
-
return /*#__PURE__*/
|
|
70
|
+
return /*#__PURE__*/_react.default.createElement(StyleContext.Provider, {
|
|
70
71
|
value: style
|
|
71
|
-
}, /*#__PURE__*/
|
|
72
|
+
}, /*#__PURE__*/_react.default.createElement(EditorContext.Provider, {
|
|
72
73
|
value: editorRef
|
|
73
|
-
}, /*#__PURE__*/
|
|
74
|
+
}, /*#__PURE__*/_react.default.createElement(StyleDispatchContext.Provider, {
|
|
74
75
|
value: dispatch
|
|
75
76
|
}, children)));
|
|
76
77
|
}
|
|
@@ -10,8 +10,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _stylePanel = _interopRequireDefault(require("../../style/style-panel.less"));
|
|
12
12
|
var _excluded = ["children"];
|
|
13
|
-
/**
|
|
14
|
-
* 样式行通用组件
|
|
13
|
+
/**
|
|
14
|
+
* 样式行通用组件
|
|
15
15
|
*/
|
|
16
16
|
function _default(_ref) {
|
|
17
17
|
var children = _ref.children,
|
|
@@ -6,30 +6,36 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _ContextProvider = require("../../../engine/provider/ContextProvider");
|
|
9
10
|
var _StyleContext = require("./StyleContext");
|
|
10
11
|
var _MainPanel = _interopRequireDefault(require("./MainPanel"));
|
|
11
|
-
/**
|
|
12
|
-
* StylePanel 组件是一个 React 组件,用于提供样式设置主面板。
|
|
13
|
-
* 该组件通过 StyleProvider 将样式变更和当前样式值传递给其子组件。
|
|
14
|
-
*
|
|
15
|
-
* @component
|
|
16
|
-
* @example
|
|
17
|
-
* const handleChange = (newValue) => console.log(newValue);
|
|
18
|
-
* const initialValue = "dark";
|
|
19
|
-
* <StylePanel onChange={handleChange} value={initialValue} />
|
|
20
|
-
*
|
|
21
|
-
* @param {Object} props - 组件的属性。
|
|
22
|
-
* @param {Function} props.onChange - 当样式变更时调用的函数,该函数接受新的样式值作为参数。
|
|
23
|
-
* @param {any} props.value - 样式字符串
|
|
24
|
-
*
|
|
25
|
-
* @returns {ReactElement} 返回一个 React 元素,其中包含了 StyleProvider 和 MainPanel 组件。
|
|
12
|
+
/**
|
|
13
|
+
* StylePanel 组件是一个 React 组件,用于提供样式设置主面板。
|
|
14
|
+
* 该组件通过 StyleProvider 将样式变更和当前样式值传递给其子组件。
|
|
15
|
+
*
|
|
16
|
+
* @component
|
|
17
|
+
* @example
|
|
18
|
+
* const handleChange = (newValue) => console.log(newValue);
|
|
19
|
+
* const initialValue = "dark";
|
|
20
|
+
* <StylePanel onChange={handleChange} value={initialValue} />
|
|
21
|
+
*
|
|
22
|
+
* @param {Object} props - 组件的属性。
|
|
23
|
+
* @param {Function} props.onChange - 当样式变更时调用的函数,该函数接受新的样式值作为参数。
|
|
24
|
+
* @param {any} props.value - 样式字符串
|
|
25
|
+
*
|
|
26
|
+
* @returns {ReactElement} 返回一个 React 元素,其中包含了 StyleProvider 和 MainPanel 组件。
|
|
26
27
|
*/
|
|
27
28
|
var StylePanel = function StylePanel(_ref) {
|
|
28
29
|
var onChange = _ref.onChange,
|
|
30
|
+
nodeId = _ref.nodeId,
|
|
29
31
|
value = _ref.value;
|
|
32
|
+
var _value = (0, _ContextProvider.useGet)({
|
|
33
|
+
id: nodeId,
|
|
34
|
+
path: 'props.css'
|
|
35
|
+
});
|
|
30
36
|
return /*#__PURE__*/_react.default.createElement(_StyleContext.StyleProvider, {
|
|
31
37
|
onChange: onChange,
|
|
32
|
-
value: value
|
|
38
|
+
value: value || _value
|
|
33
39
|
}, /*#__PURE__*/_react.default.createElement(_MainPanel.default, null));
|
|
34
40
|
};
|
|
35
41
|
var _default = exports.default = StylePanel;
|
|
@@ -13,6 +13,7 @@ var _ahooks = require("ahooks");
|
|
|
13
13
|
var _antd = require("luck-design/antd");
|
|
14
14
|
var _lodash = require("lodash");
|
|
15
15
|
var _utils = require("@luck-design-biz/base/utils");
|
|
16
|
+
var _ContextProvider = require("../../engine/provider/ContextProvider");
|
|
16
17
|
var _SortBox = require("../components/SortBox");
|
|
17
18
|
var _ListEditor = require("../components/ListEditor");
|
|
18
19
|
var _PopConfirm = _interopRequireDefault(require("../components/PopConfirm"));
|
|
@@ -27,7 +28,9 @@ var _RADIO_STYLE_ = {
|
|
|
27
28
|
};
|
|
28
29
|
var TableTopFilter = function TableTopFilter(_ref) {
|
|
29
30
|
var defaultValue = _ref.defaultValue,
|
|
30
|
-
_onChange = _ref.onChange
|
|
31
|
+
_onChange = _ref.onChange,
|
|
32
|
+
nodeId = _ref.nodeId;
|
|
33
|
+
var ctx = (0, _ContextProvider.useContext)();
|
|
31
34
|
var _useState = (0, _react.useState)(function () {
|
|
32
35
|
if ((0, _lodash.isNil)(defaultValue)) return 'nil';
|
|
33
36
|
if ((0, _lodash.isString)(defaultValue)) return 'customApi';
|
|
@@ -49,6 +52,17 @@ var TableTopFilter = function TableTopFilter(_ref) {
|
|
|
49
52
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
50
53
|
apiUrl = _useState4[0],
|
|
51
54
|
setApiUrl = _useState4[1];
|
|
55
|
+
var _useDebounceFn = (0, _ahooks.useDebounceFn)(function (val) {
|
|
56
|
+
setDict({
|
|
57
|
+
key: val
|
|
58
|
+
});
|
|
59
|
+
if (dict !== null && dict !== void 0 && dict.field) _onChange((0, _objectSpread2.default)((0, _objectSpread2.default)({}, dict), {}, {
|
|
60
|
+
key: val
|
|
61
|
+
}));
|
|
62
|
+
}, {
|
|
63
|
+
wait: 400
|
|
64
|
+
}),
|
|
65
|
+
handleDictChange = _useDebounceFn.run;
|
|
52
66
|
var handleAdd = (0, _ahooks.useMemoizedFn)(function () {
|
|
53
67
|
var id = (0, _utils.suid)();
|
|
54
68
|
dispatch({
|
|
@@ -56,7 +70,7 @@ var TableTopFilter = function TableTopFilter(_ref) {
|
|
|
56
70
|
payload: {
|
|
57
71
|
id: id,
|
|
58
72
|
value: id,
|
|
59
|
-
field:
|
|
73
|
+
field: void 0,
|
|
60
74
|
label: "\u8FC7\u6EE4\u9879".concat(options.length + 1)
|
|
61
75
|
},
|
|
62
76
|
callback: function callback(newOptions) {
|
|
@@ -145,9 +159,10 @@ var TableTopFilter = function TableTopFilter(_ref) {
|
|
|
145
159
|
id: "".concat(_I18N_PREFIX_, ".field"),
|
|
146
160
|
label: '字段'
|
|
147
161
|
})), /*#__PURE__*/_react.default.createElement(_PopForm.PopFormItemRight, null, /*#__PURE__*/_react.default.createElement(_FieldSelector.default, {
|
|
162
|
+
dsid: ctx.componentMap.get(nodeId).api.getSelfData().props.dataset.uid,
|
|
148
163
|
defaultValue: opt.field,
|
|
149
164
|
style: {
|
|
150
|
-
width: '
|
|
165
|
+
width: '100%'
|
|
151
166
|
},
|
|
152
167
|
placeholder: (0, _utils.formatMessage)({
|
|
153
168
|
id: "".concat(_I18N_PREFIX_, ".field.placeholder"),
|
|
@@ -211,7 +226,7 @@ var TableTopFilter = function TableTopFilter(_ref) {
|
|
|
211
226
|
}
|
|
212
227
|
}, /*#__PURE__*/_react.default.createElement(_antd.Input, {
|
|
213
228
|
size: "small",
|
|
214
|
-
|
|
229
|
+
defaultValue: dict === null || dict === void 0 ? void 0 : dict.key,
|
|
215
230
|
style: {
|
|
216
231
|
width: '50%'
|
|
217
232
|
},
|
|
@@ -220,15 +235,10 @@ var TableTopFilter = function TableTopFilter(_ref) {
|
|
|
220
235
|
label: '请输入字典key'
|
|
221
236
|
}),
|
|
222
237
|
onChange: function onChange(e) {
|
|
223
|
-
|
|
224
|
-
setDict({
|
|
225
|
-
key: key
|
|
226
|
-
});
|
|
227
|
-
if (dict !== null && dict !== void 0 && dict.field) _onChange((0, _objectSpread2.default)((0, _objectSpread2.default)({}, dict), {}, {
|
|
228
|
-
key: key
|
|
229
|
-
}));
|
|
238
|
+
return handleDictChange(e.target.value);
|
|
230
239
|
}
|
|
231
240
|
}), /*#__PURE__*/_react.default.createElement(_FieldSelector.default, {
|
|
241
|
+
dsid: ctx.componentMap.get(nodeId).api.getSelfData().props.dataset.uid,
|
|
232
242
|
style: {
|
|
233
243
|
width: '50%'
|
|
234
244
|
},
|
|
@@ -286,7 +296,7 @@ var TableTopFilter = function TableTopFilter(_ref) {
|
|
|
286
296
|
size: "small",
|
|
287
297
|
value: apiUrl,
|
|
288
298
|
placeholder: (0, _utils.formatMessage)({
|
|
289
|
-
id: "".concat(_I18N_PREFIX_, ".
|
|
299
|
+
id: "".concat(_I18N_PREFIX_, ".customApi.placeholder"),
|
|
290
300
|
label: '请输入接口地址'
|
|
291
301
|
}),
|
|
292
302
|
style: {
|