@luck-design-biz/luckda 0.0.25-11 → 0.0.25-13
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 +0 -0
- package/README.md +0 -0
- package/es/components/Builder/index.js +0 -0
- package/es/components/ComplexItem/index.js +0 -0
- package/es/components/ComplexItem/service.js +0 -0
- package/es/components/IconFont/index.js +0 -0
- package/es/components/LDActions/index.js +0 -0
- package/es/components/LDActions/index.less +0 -0
- package/es/components/LdAutoForm/index.js +26 -4
- package/es/components/LdCard/index.js +0 -0
- package/es/components/LdCard/model.js +0 -0
- package/es/components/LdCom/index.js +0 -0
- package/es/components/LdFormList/index.js +6 -2
- package/es/components/LdFormList/model.js +0 -0
- package/es/components/LdGrid/index.js +2 -1
- package/es/components/LdGrid/model.js +0 -0
- package/es/components/LdGridForm/index.js +6 -2
- package/es/components/LdGridForm/index.less +0 -0
- package/es/components/LdInfoPanel/index.js +0 -0
- package/es/components/LdPop/index.js +0 -0
- package/es/components/LdTree/index.js +27 -5
- package/es/components/LdTree/index.less +0 -0
- package/es/helper/FromItems.js +0 -0
- package/es/helper/action.js +0 -0
- package/es/helper/form.js +1 -1
- package/es/helper/index.less +0 -0
- package/es/helper/ldBuilder.js +0 -0
- package/es/helper/ldComBuild.js +0 -0
- package/es/helper/props_config.js +0 -0
- package/es/index.js +0 -1
- package/es/locales/zh-CN.js +0 -4
- package/es/lowcode/constants/api-url.js +0 -0
- package/es/lowcode/constants/event-topics.js +1 -0
- package/es/lowcode/constants/index.js +0 -0
- package/es/lowcode/engine/factory/DataFactory.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/RadioStrategy.js +53 -0
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +1 -1
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/es/lowcode/engine/launcher.js +5 -0
- package/es/lowcode/engine/meta/box.props.default.json +1 -1
- package/es/lowcode/engine/meta/box.props.json +1 -1
- package/es/lowcode/engine/meta/button.props.default.json +0 -0
- package/es/lowcode/engine/meta/button.props.json +0 -0
- package/es/lowcode/engine/meta/cardlist.props.default.json +0 -0
- package/es/lowcode/engine/meta/cardlist.props.json +0 -0
- package/es/lowcode/engine/meta/components-list.json +102 -102
- package/es/lowcode/engine/meta/dialog.props.default.json +0 -0
- package/es/lowcode/engine/meta/dialog.props.json +1 -1
- package/es/lowcode/engine/meta/drawer.props.default.json +0 -0
- package/es/lowcode/engine/meta/drawer.props.json +0 -0
- package/es/lowcode/engine/meta/fieldcolor.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldcolor.props.json +86 -3
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +84 -1
- package/es/lowcode/engine/meta/fielddate.props.default.json +2 -0
- package/es/lowcode/engine/meta/fielddate.props.json +84 -1
- package/es/lowcode/engine/meta/fielddict.props.default.json +2 -0
- package/es/lowcode/engine/meta/fielddict.props.json +84 -1
- package/es/lowcode/engine/meta/fieldeditor.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldeditor.props.json +84 -1
- package/es/lowcode/engine/meta/fieldgroup.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldgroup.props.json +84 -1
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +85 -2
- package/es/lowcode/engine/meta/fieldradio.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldradio.props.json +88 -4
- package/es/lowcode/engine/meta/fieldregion.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldregion.props.json +88 -4
- package/es/lowcode/engine/meta/fieldselect.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldselect.props.json +86 -3
- package/es/lowcode/engine/meta/fieldstring.props.default.json +2 -4
- package/es/lowcode/engine/meta/fieldstring.props.json +92 -13
- package/es/lowcode/engine/meta/fieldswitch.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldswitch.props.json +85 -2
- package/es/lowcode/engine/meta/fieldtextarea.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.json +88 -5
- package/es/lowcode/engine/meta/fieldupload.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldupload.props.json +85 -2
- package/es/lowcode/engine/meta/fielduser.props.default.json +2 -0
- package/es/lowcode/engine/meta/fielduser.props.json +84 -1
- package/es/lowcode/engine/meta/fieldyear.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldyear.props.json +85 -2
- package/es/lowcode/engine/meta/form.props.default.json +0 -0
- package/es/lowcode/engine/meta/form.props.json +22 -2
- package/es/lowcode/engine/meta/iframe.props.default.json +0 -0
- package/es/lowcode/engine/meta/iframe.props.json +0 -0
- package/es/lowcode/engine/meta/image.props.default.json +0 -0
- package/es/lowcode/engine/meta/image.props.json +0 -0
- package/es/lowcode/engine/meta/imex.props.default.json +0 -0
- package/es/lowcode/engine/meta/imex.props.json +0 -0
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +4 -4
- package/es/lowcode/engine/meta/jsx.props.default.json +0 -0
- package/es/lowcode/engine/meta/jsx.props.json +0 -0
- package/es/lowcode/engine/meta/layout.props.default.json +0 -0
- package/es/lowcode/engine/meta/layout.props.json +0 -0
- package/es/lowcode/engine/meta/link.props.default.json +0 -0
- package/es/lowcode/engine/meta/link.props.json +0 -0
- package/es/lowcode/engine/meta/page.props.default.json +0 -0
- package/es/lowcode/engine/meta/page.props.json +6 -6
- package/es/lowcode/engine/meta/pagecontent.props.default.json +0 -0
- package/es/lowcode/engine/meta/pagecontent.props.json +0 -0
- package/es/lowcode/engine/meta/pagefooter.props.default.json +0 -0
- package/es/lowcode/engine/meta/pagefooter.props.json +0 -0
- package/es/lowcode/engine/meta/pageheader.props.default.json +0 -0
- package/es/lowcode/engine/meta/pageheader.props.json +0 -0
- package/es/lowcode/engine/meta/pagelayout.props.default.json +0 -0
- package/es/lowcode/engine/meta/pagelayout.props.json +0 -0
- package/es/lowcode/engine/meta/section.props.default.json +0 -0
- package/es/lowcode/engine/meta/section.props.json +0 -0
- package/es/lowcode/engine/meta/split.props.default.json +0 -0
- package/es/lowcode/engine/meta/split.props.json +0 -0
- package/es/lowcode/engine/meta/table.props.default.json +0 -0
- package/es/lowcode/engine/meta/table.props.json +0 -0
- package/es/lowcode/engine/meta/tabs.props.default.json +0 -0
- package/es/lowcode/engine/meta/tabs.props.json +0 -0
- package/es/lowcode/engine/meta/text.props.default.json +0 -0
- package/es/lowcode/engine/meta/text.props.json +0 -0
- package/es/lowcode/engine/meta/tree.props.default.json +0 -0
- package/es/lowcode/engine/meta/tree.props.json +0 -0
- package/es/lowcode/engine/provider/ContextProvider/index.js +1 -1
- package/es/lowcode/engine/provider/EventBusProvider.js +0 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +30 -8
- package/es/lowcode/engine/tools/dataProcess.js +0 -0
- package/es/lowcode/engine/tools/diff.js +0 -0
- package/es/lowcode/engine/tools/helper.js +60 -3
- package/es/lowcode/engine/tools/useCanvasRender.js +0 -0
- package/es/lowcode/engine/tools/usePageDataStore.js +10 -5
- package/es/lowcode/engine/tools/usePromiseState.js +0 -0
- package/es/lowcode/engine/tools/useTodo.js +0 -0
- package/es/lowcode/index.js +1 -4
- package/es/lowcode/painter/Components.js +0 -0
- package/es/lowcode/painter/Design.js +4 -4
- package/es/lowcode/painter/DesignOperator.js +1 -1
- package/es/lowcode/painter/DesignToolbar.js +7 -4
- package/es/lowcode/painter/I18n.js +0 -0
- package/es/lowcode/painter/Outline.js +0 -0
- package/es/lowcode/painter/Panel.js +3 -2
- package/es/lowcode/painter/Ribbon.js +0 -0
- package/es/lowcode/painter/components/ActionBindModal.js +7 -1
- package/es/lowcode/painter/components/AdvancePanel.js +0 -0
- package/es/lowcode/painter/components/AttrsPanel.js +0 -0
- package/es/lowcode/painter/components/Collapse.js +0 -0
- package/es/lowcode/painter/components/ColorInput.js +0 -0
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +0 -0
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +0 -0
- package/es/lowcode/painter/components/DragDrop/Overlay.js +0 -0
- package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +0 -0
- package/es/lowcode/painter/components/FieldSelector.js +0 -0
- package/es/lowcode/painter/components/ListEditor.js +0 -0
- package/es/lowcode/painter/components/NumberInput.js +0 -0
- package/es/lowcode/painter/components/PanelItem.js +0 -0
- package/es/lowcode/painter/components/PopConfirm.js +0 -0
- package/es/lowcode/painter/components/PopForm.js +0 -0
- package/es/lowcode/painter/components/RuleInput.js +0 -1
- package/es/lowcode/painter/components/SortBox.js +0 -0
- package/es/lowcode/painter/components/TreeEditor.js +0 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +0 -0
- package/es/lowcode/painter/components/code-editor/CssEditor.js +0 -0
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -0
- package/es/lowcode/painter/components/code-editor/JSEditor.js +24 -14
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +0 -0
- package/es/lowcode/painter/components/code-editor/index.js +0 -0
- package/es/lowcode/painter/components/field-setting/BatchSetting.js +0 -0
- package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +0 -0
- package/es/lowcode/painter/components/field-setting/CheckRules.js +0 -0
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +0 -0
- package/es/lowcode/painter/components/field-setting/FieldAttrsModal.js +0 -0
- package/es/lowcode/painter/components/field-setting/FieldDefaultValue.js +0 -0
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +0 -0
- package/es/lowcode/painter/components/field-setting/SettingUI.js +2 -53
- package/es/lowcode/painter/components/field-setting/index.js +0 -2
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +0 -0
- package/es/lowcode/painter/index.js +0 -0
- package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +0 -0
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +0 -0
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +3 -1
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +0 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +0 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +0 -0
- package/es/lowcode/painter/panel-section/ButtonType.js +0 -0
- package/es/lowcode/painter/panel-section/ComponentSelector.js +36 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +7 -4
- package/es/lowcode/painter/panel-section/FieldsSetting.js +21 -51
- package/es/lowcode/painter/panel-section/I18nInput.js +2 -1
- package/es/lowcode/painter/panel-section/Icon.js +0 -0
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +0 -0
- package/es/lowcode/painter/panel-section/IconSelector.js +0 -0
- package/es/lowcode/painter/panel-section/ImpExp.js +0 -0
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +0 -0
- package/es/lowcode/painter/panel-section/JSEditor.js +0 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +0 -0
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +0 -0
- package/es/lowcode/painter/panel-section/SerialsSelector.js +0 -0
- package/es/lowcode/painter/panel-section/SplitDisplay.js +3 -2
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/index.js +0 -0
- package/es/lowcode/painter/panel-section/TabItems.js +0 -0
- package/es/lowcode/painter/panel-section/TableTopFilter.js +0 -0
- package/es/lowcode/painter/panel-section/TableZebra.js +0 -0
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +10 -2
- package/es/lowcode/painter/panel-section/WidthHeight.js +0 -0
- package/es/lowcode/painter/services/I18n.js +0 -0
- package/es/lowcode/painter/style/action-bind-modal.less +0 -0
- package/es/lowcode/painter/style/actions-editor.less +0 -0
- package/es/lowcode/painter/style/border-editor.less +0 -0
- package/es/lowcode/painter/style/border-radius-selector.less +0 -0
- package/es/lowcode/painter/style/border-selector.less +0 -0
- package/es/lowcode/painter/style/button-type.less +0 -0
- package/es/lowcode/painter/style/collapse.less +0 -0
- package/es/lowcode/painter/style/color-input.less +0 -0
- package/es/lowcode/painter/style/components.less +0 -0
- package/es/lowcode/painter/style/design.less +3 -0
- package/es/lowcode/painter/style/display.less +0 -0
- package/es/lowcode/painter/style/dragdrop.less +0 -0
- package/es/lowcode/painter/style/fields-setting.less +0 -0
- package/es/lowcode/painter/style/font-editor.less +0 -0
- package/es/lowcode/painter/style/fullscreen-editor.less +0 -0
- package/es/lowcode/painter/style/icon-selector.less +0 -0
- package/es/lowcode/painter/style/icon.less +0 -0
- package/es/lowcode/painter/style/impexp.less +0 -0
- package/es/lowcode/painter/style/index.less +0 -0
- package/es/lowcode/painter/style/layout-ratio.less +0 -0
- package/es/lowcode/painter/style/list-editor.less +0 -0
- package/es/lowcode/painter/style/number-input.less +0 -0
- package/es/lowcode/painter/style/outline.less +0 -0
- package/es/lowcode/painter/style/page-layout-display.less +0 -0
- package/es/lowcode/painter/style/panel-attrs.less +0 -0
- package/es/lowcode/painter/style/panel-item.less +0 -0
- package/es/lowcode/painter/style/panel.less +0 -0
- package/es/lowcode/painter/style/pop-confirm.less +0 -0
- package/es/lowcode/painter/style/pop-form.less +0 -0
- package/es/lowcode/painter/style/radio.less +0 -0
- package/es/lowcode/painter/style/ribbon.less +0 -0
- package/es/lowcode/painter/style/rule-input.less +0 -0
- package/es/lowcode/painter/style/split-display.less +0 -0
- package/es/lowcode/painter/style/style-panel.less +0 -0
- package/es/lowcode/painter/style/tabitems.less +0 -0
- package/es/lowcode/painter/style/treedragdrop.less +0 -0
- package/es/lowcode/preview/index.js +0 -0
- package/es/lowcode/view/Canvas.js +20 -6
- package/es/lowcode/view/Loading.js +0 -0
- package/es/lowcode/view/Page.js +3 -4
- package/es/lowcode/view/index.js +0 -0
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +7 -2
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Box/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Box/index.js +0 -0
- package/es/lowcode/view/lc-components/Box/index.less +0 -0
- package/es/lowcode/view/lc-components/Box/meta.json +1 -1
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Button/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Button/index.js +0 -0
- package/es/lowcode/view/lc-components/Button/meta.json +0 -0
- package/es/lowcode/view/lc-components/Button/style.less +0 -0
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/CardList/index.js +0 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +0 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +30 -6
- package/es/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/es/lowcode/view/lc-components/Dialog/meta.json +1 -1
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +3 -0
- package/es/lowcode/view/lc-components/Drawer/index.less +0 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +0 -0
- package/es/lowcode/view/lc-components/FieldColor/meta.json +86 -3
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +84 -1
- package/es/lowcode/view/lc-components/FieldDate/meta.json +84 -1
- package/es/lowcode/view/lc-components/FieldDict/meta.json +84 -1
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +84 -1
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +84 -1
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +85 -2
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +88 -4
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +88 -4
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +86 -3
- package/es/lowcode/view/lc-components/FieldString/meta.json +92 -13
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +85 -2
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +88 -5
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +85 -2
- package/es/lowcode/view/lc-components/FieldUser/meta.json +84 -1
- package/es/lowcode/view/lc-components/FieldYear/meta.json +85 -2
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Form/index.js +126 -22
- package/es/lowcode/view/lc-components/Form/index.less +0 -0
- package/es/lowcode/view/lc-components/Form/meta.json +15 -4
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +0 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +4 -4
- package/es/lowcode/view/lc-components/ImEx/index.less +0 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +0 -0
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Image/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Image/index.js +0 -0
- package/es/lowcode/view/lc-components/Image/meta.json +0 -0
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +0 -0
- package/es/{components/LdRuntimeCom/index.js → lowcode/view/lc-components/JSX/RuntimeComp.js} +8 -11
- package/es/lowcode/view/lc-components/JSX/index.js +5 -6
- package/es/lowcode/view/lc-components/JSX/meta.json +0 -0
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Layout/index.js +3 -1
- package/es/lowcode/view/lc-components/Layout/index.less +0 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +0 -0
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Link/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Link/index.js +3 -0
- package/es/lowcode/view/lc-components/Link/meta.json +0 -0
- package/es/lowcode/view/lc-components/Page/meta.json +6 -6
- package/es/lowcode/view/lc-components/PageContent/index.js +3 -1
- package/es/lowcode/view/lc-components/PageContent/meta.json +0 -0
- package/es/lowcode/view/lc-components/PageFooter/index.js +3 -0
- package/es/lowcode/view/lc-components/PageFooter/meta.json +0 -0
- package/es/lowcode/view/lc-components/PageHeader/index.js +3 -0
- package/es/lowcode/view/lc-components/PageHeader/meta.json +0 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/PageLayout/index.js +3 -0
- package/es/lowcode/view/lc-components/PageLayout/meta.json +0 -0
- package/es/lowcode/view/lc-components/PageModal/index.js +0 -0
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Section/index.js +6 -3
- package/es/lowcode/view/lc-components/Section/index.less +0 -0
- package/es/lowcode/view/lc-components/Section/meta.json +0 -0
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Split/index.js +3 -0
- package/es/lowcode/view/lc-components/Split/meta.json +0 -0
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Table/components/TopFilter.js +0 -0
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +3 -1
- package/es/lowcode/view/lc-components/Table/index.js +25 -32
- package/es/lowcode/view/lc-components/Table/meta.json +0 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +2 -2
- package/es/lowcode/view/lc-components/Tabs/meta.json +0 -0
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Text/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Text/index.js +3 -0
- package/es/lowcode/view/lc-components/Text/meta.json +0 -0
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Tree/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Tree/index.js +0 -0
- package/es/lowcode/view/lc-components/Tree/index.less +0 -0
- package/es/lowcode/view/lc-components/Tree/meta.json +0 -0
- package/es/lowcode/view/lc-components/Wrapper.js +1 -0
- package/es/lowcode/view/style/canvas.less +0 -0
- package/es/lowcode/view/style/loading.less +0 -0
- package/es/lowcode/view/style/page.less +0 -0
- package/es/services.js +0 -0
- package/es/upload/FilesWall/file.png +0 -0
- package/es/upload/FilesWall/index.js +0 -0
- package/es/upload/FilesWall/index.less +0 -0
- package/es/upload/Form/gridForm.js +0 -0
- package/es/upload/Form/index.js +0 -0
- package/es/upload/Form/index.less +0 -0
- package/es/upload/FormItem/index.js +0 -0
- package/es/upload/GridCell/index.js +0 -0
- package/es/upload/index.js +0 -0
- package/es/utils/action.js +0 -0
- package/es/utils/form.js +0 -0
- package/es/utils/grid.js +2 -2
- package/es/utils/index.js +0 -0
- package/lib/components/Builder/index.js +0 -0
- package/lib/components/ComplexItem/index.js +0 -0
- package/lib/components/ComplexItem/service.js +0 -0
- package/lib/components/IconFont/index.js +0 -0
- package/lib/components/LDActions/index.js +0 -0
- package/lib/components/LDActions/index.less +0 -0
- package/lib/components/LdAutoForm/index.js +25 -3
- package/lib/components/LdCard/index.js +0 -0
- package/lib/components/LdCard/model.js +0 -0
- package/lib/components/LdCom/index.js +0 -0
- package/lib/components/LdFormList/index.js +6 -2
- package/lib/components/LdFormList/model.js +0 -0
- package/lib/components/LdGrid/index.js +2 -1
- package/lib/components/LdGrid/model.js +0 -0
- package/lib/components/LdGridForm/index.js +6 -2
- package/lib/components/LdGridForm/index.less +0 -0
- package/lib/components/LdInfoPanel/index.js +0 -0
- package/lib/components/LdPop/index.js +0 -0
- package/lib/components/LdTree/index.js +25 -3
- package/lib/components/LdTree/index.less +0 -0
- package/lib/helper/FromItems.js +0 -0
- package/lib/helper/action.js +0 -0
- package/lib/helper/form.js +1 -1
- package/lib/helper/index.less +0 -0
- package/lib/helper/ldBuilder.js +0 -0
- package/lib/helper/ldComBuild.js +0 -0
- package/lib/helper/props_config.js +0 -0
- package/lib/index.js +1 -9
- package/lib/locales/zh-CN.js +0 -4
- package/lib/lowcode/constants/api-url.js +0 -0
- package/lib/lowcode/constants/event-topics.js +2 -1
- package/lib/lowcode/constants/index.js +0 -0
- package/lib/lowcode/engine/factory/DataFactory.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/RadioStrategy.js +59 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +1 -1
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/lib/lowcode/engine/launcher.js +11 -0
- package/lib/lowcode/engine/meta/box.props.default.json +1 -1
- package/lib/lowcode/engine/meta/box.props.json +1 -1
- package/lib/lowcode/engine/meta/button.props.default.json +0 -0
- package/lib/lowcode/engine/meta/button.props.json +0 -0
- package/lib/lowcode/engine/meta/cardlist.props.default.json +0 -0
- package/lib/lowcode/engine/meta/cardlist.props.json +0 -0
- package/lib/lowcode/engine/meta/components-list.json +102 -102
- package/lib/lowcode/engine/meta/dialog.props.default.json +0 -0
- package/lib/lowcode/engine/meta/dialog.props.json +1 -1
- package/lib/lowcode/engine/meta/drawer.props.default.json +0 -0
- package/lib/lowcode/engine/meta/drawer.props.json +0 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.json +86 -3
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +84 -1
- package/lib/lowcode/engine/meta/fielddate.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +84 -1
- package/lib/lowcode/engine/meta/fielddict.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fielddict.props.json +84 -1
- package/lib/lowcode/engine/meta/fieldeditor.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.json +84 -1
- package/lib/lowcode/engine/meta/fieldgroup.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.json +84 -1
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +85 -2
- package/lib/lowcode/engine/meta/fieldradio.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldradio.props.json +88 -4
- package/lib/lowcode/engine/meta/fieldregion.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldregion.props.json +88 -4
- package/lib/lowcode/engine/meta/fieldselect.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldselect.props.json +86 -3
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +2 -4
- package/lib/lowcode/engine/meta/fieldstring.props.json +92 -13
- package/lib/lowcode/engine/meta/fieldswitch.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.json +85 -2
- package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +88 -5
- package/lib/lowcode/engine/meta/fieldupload.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldupload.props.json +85 -2
- package/lib/lowcode/engine/meta/fielduser.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fielduser.props.json +84 -1
- package/lib/lowcode/engine/meta/fieldyear.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldyear.props.json +85 -2
- package/lib/lowcode/engine/meta/form.props.default.json +0 -0
- package/lib/lowcode/engine/meta/form.props.json +22 -2
- package/lib/lowcode/engine/meta/iframe.props.default.json +0 -0
- package/lib/lowcode/engine/meta/iframe.props.json +0 -0
- package/lib/lowcode/engine/meta/image.props.default.json +0 -0
- package/lib/lowcode/engine/meta/image.props.json +0 -0
- package/lib/lowcode/engine/meta/imex.props.default.json +0 -0
- package/lib/lowcode/engine/meta/imex.props.json +0 -0
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +4 -4
- package/lib/lowcode/engine/meta/jsx.props.default.json +0 -0
- package/lib/lowcode/engine/meta/jsx.props.json +0 -0
- package/lib/lowcode/engine/meta/layout.props.default.json +0 -0
- package/lib/lowcode/engine/meta/layout.props.json +0 -0
- package/lib/lowcode/engine/meta/link.props.default.json +0 -0
- package/lib/lowcode/engine/meta/link.props.json +0 -0
- package/lib/lowcode/engine/meta/page.props.default.json +0 -0
- package/lib/lowcode/engine/meta/page.props.json +6 -6
- package/lib/lowcode/engine/meta/pagecontent.props.default.json +0 -0
- package/lib/lowcode/engine/meta/pagecontent.props.json +0 -0
- package/lib/lowcode/engine/meta/pagefooter.props.default.json +0 -0
- package/lib/lowcode/engine/meta/pagefooter.props.json +0 -0
- package/lib/lowcode/engine/meta/pageheader.props.default.json +0 -0
- package/lib/lowcode/engine/meta/pageheader.props.json +0 -0
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +0 -0
- package/lib/lowcode/engine/meta/pagelayout.props.json +0 -0
- package/lib/lowcode/engine/meta/section.props.default.json +0 -0
- package/lib/lowcode/engine/meta/section.props.json +0 -0
- package/lib/lowcode/engine/meta/split.props.default.json +0 -0
- package/lib/lowcode/engine/meta/split.props.json +0 -0
- package/lib/lowcode/engine/meta/table.props.default.json +0 -0
- package/lib/lowcode/engine/meta/table.props.json +0 -0
- package/lib/lowcode/engine/meta/tabs.props.default.json +0 -0
- package/lib/lowcode/engine/meta/tabs.props.json +0 -0
- package/lib/lowcode/engine/meta/text.props.default.json +0 -0
- package/lib/lowcode/engine/meta/text.props.json +0 -0
- package/lib/lowcode/engine/meta/tree.props.default.json +0 -0
- package/lib/lowcode/engine/meta/tree.props.json +0 -0
- package/lib/lowcode/engine/provider/ContextProvider/index.js +1 -1
- package/lib/lowcode/engine/provider/EventBusProvider.js +0 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +30 -8
- package/lib/lowcode/engine/tools/dataProcess.js +0 -0
- package/lib/lowcode/engine/tools/diff.js +0 -0
- package/lib/lowcode/engine/tools/helper.js +61 -2
- package/lib/lowcode/engine/tools/useCanvasRender.js +0 -0
- package/lib/lowcode/engine/tools/usePageDataStore.js +9 -4
- package/lib/lowcode/engine/tools/usePromiseState.js +0 -0
- package/lib/lowcode/engine/tools/useTodo.js +0 -0
- package/lib/lowcode/index.js +1 -5
- package/lib/lowcode/painter/Components.js +0 -0
- package/lib/lowcode/painter/Design.js +4 -4
- package/lib/lowcode/painter/DesignOperator.js +1 -1
- package/lib/lowcode/painter/DesignToolbar.js +7 -4
- package/lib/lowcode/painter/I18n.js +0 -0
- package/lib/lowcode/painter/Outline.js +0 -0
- package/lib/lowcode/painter/Panel.js +3 -2
- package/lib/lowcode/painter/Ribbon.js +0 -0
- package/lib/lowcode/painter/components/ActionBindModal.js +6 -0
- package/lib/lowcode/painter/components/AdvancePanel.js +0 -0
- package/lib/lowcode/painter/components/AttrsPanel.js +0 -0
- package/lib/lowcode/painter/components/Collapse.js +0 -0
- package/lib/lowcode/painter/components/ColorInput.js +0 -0
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +0 -0
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +0 -0
- package/lib/lowcode/painter/components/DragDrop/Overlay.js +0 -0
- package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +0 -0
- package/lib/lowcode/painter/components/FieldSelector.js +0 -0
- package/lib/lowcode/painter/components/ListEditor.js +0 -0
- package/lib/lowcode/painter/components/NumberInput.js +0 -0
- package/lib/lowcode/painter/components/PanelItem.js +0 -0
- package/lib/lowcode/painter/components/PopConfirm.js +0 -0
- package/lib/lowcode/painter/components/PopForm.js +0 -0
- package/lib/lowcode/painter/components/RuleInput.js +0 -1
- package/lib/lowcode/painter/components/SortBox.js +0 -0
- package/lib/lowcode/painter/components/TreeEditor.js +0 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +0 -0
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +0 -0
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -0
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +24 -14
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +0 -0
- package/lib/lowcode/painter/components/code-editor/index.js +0 -0
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js +0 -0
- package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +0 -0
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +0 -0
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +0 -0
- package/lib/lowcode/painter/components/field-setting/FieldAttrsModal.js +0 -0
- package/lib/lowcode/painter/components/field-setting/FieldDefaultValue.js +0 -0
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +0 -0
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +2 -53
- package/lib/lowcode/painter/components/field-setting/index.js +0 -2
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +0 -0
- package/lib/lowcode/painter/index.js +0 -0
- package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +0 -0
- package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +0 -0
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +3 -1
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +0 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +0 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +0 -0
- package/lib/lowcode/painter/panel-section/ButtonType.js +0 -0
- package/lib/lowcode/painter/panel-section/ComponentSelector.js +43 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +7 -4
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +20 -50
- package/lib/lowcode/painter/panel-section/I18nInput.js +2 -1
- package/lib/lowcode/painter/panel-section/Icon.js +0 -0
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/IconSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/ImpExp.js +0 -0
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +0 -0
- package/lib/lowcode/painter/panel-section/JSEditor.js +0 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +0 -0
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +0 -0
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +3 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +0 -0
- package/lib/lowcode/painter/panel-section/TabItems.js +0 -0
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +0 -0
- package/lib/lowcode/painter/panel-section/TableZebra.js +0 -0
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +10 -2
- package/lib/lowcode/painter/panel-section/WidthHeight.js +0 -0
- package/lib/lowcode/painter/services/I18n.js +0 -0
- package/lib/lowcode/painter/style/action-bind-modal.less +0 -0
- package/lib/lowcode/painter/style/actions-editor.less +0 -0
- package/lib/lowcode/painter/style/border-editor.less +0 -0
- package/lib/lowcode/painter/style/border-radius-selector.less +0 -0
- package/lib/lowcode/painter/style/border-selector.less +0 -0
- package/lib/lowcode/painter/style/button-type.less +0 -0
- package/lib/lowcode/painter/style/collapse.less +0 -0
- package/lib/lowcode/painter/style/color-input.less +0 -0
- package/lib/lowcode/painter/style/components.less +0 -0
- package/lib/lowcode/painter/style/design.less +3 -0
- package/lib/lowcode/painter/style/display.less +0 -0
- package/lib/lowcode/painter/style/dragdrop.less +0 -0
- package/lib/lowcode/painter/style/fields-setting.less +0 -0
- package/lib/lowcode/painter/style/font-editor.less +0 -0
- package/lib/lowcode/painter/style/fullscreen-editor.less +0 -0
- package/lib/lowcode/painter/style/icon-selector.less +0 -0
- package/lib/lowcode/painter/style/icon.less +0 -0
- package/lib/lowcode/painter/style/impexp.less +0 -0
- package/lib/lowcode/painter/style/index.less +0 -0
- package/lib/lowcode/painter/style/layout-ratio.less +0 -0
- package/lib/lowcode/painter/style/list-editor.less +0 -0
- package/lib/lowcode/painter/style/number-input.less +0 -0
- package/lib/lowcode/painter/style/outline.less +0 -0
- package/lib/lowcode/painter/style/page-layout-display.less +0 -0
- package/lib/lowcode/painter/style/panel-attrs.less +0 -0
- package/lib/lowcode/painter/style/panel-item.less +0 -0
- package/lib/lowcode/painter/style/panel.less +0 -0
- package/lib/lowcode/painter/style/pop-confirm.less +0 -0
- package/lib/lowcode/painter/style/pop-form.less +0 -0
- package/lib/lowcode/painter/style/radio.less +0 -0
- package/lib/lowcode/painter/style/ribbon.less +0 -0
- package/lib/lowcode/painter/style/rule-input.less +0 -0
- package/lib/lowcode/painter/style/split-display.less +0 -0
- package/lib/lowcode/painter/style/style-panel.less +0 -0
- package/lib/lowcode/painter/style/tabitems.less +0 -0
- package/lib/lowcode/painter/style/treedragdrop.less +0 -0
- package/lib/lowcode/preview/index.js +0 -0
- package/lib/lowcode/view/Canvas.js +20 -5
- package/lib/lowcode/view/Loading.js +0 -0
- package/lib/lowcode/view/Page.js +3 -4
- package/lib/lowcode/view/index.js +0 -0
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +7 -2
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Box/index.js +0 -0
- package/lib/lowcode/view/lc-components/Box/index.less +0 -0
- package/lib/lowcode/view/lc-components/Box/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Button/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Button/index.js +0 -0
- package/lib/lowcode/view/lc-components/Button/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Button/style.less +0 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
- package/lib/lowcode/view/lc-components/CardList/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +29 -5
- package/lib/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/lib/lowcode/view/lc-components/Dialog/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +3 -0
- package/lib/lowcode/view/lc-components/Drawer/index.less +0 -0
- package/lib/lowcode/view/lc-components/Drawer/meta.json +0 -0
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +86 -3
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +84 -1
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +84 -1
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +84 -1
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +84 -1
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +84 -1
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +85 -2
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +88 -4
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +88 -4
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +86 -3
- package/lib/lowcode/view/lc-components/FieldString/meta.json +92 -13
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +85 -2
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +88 -5
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +85 -2
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +84 -1
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +85 -2
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Form/index.js +125 -21
- package/lib/lowcode/view/lc-components/Form/index.less +0 -0
- package/lib/lowcode/view/lc-components/Form/meta.json +15 -4
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +0 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +4 -4
- package/lib/lowcode/view/lc-components/ImEx/index.less +0 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Image/index.js +0 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +0 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +0 -0
- package/lib/{components/LdRuntimeCom/index.js → lowcode/view/lc-components/JSX/RuntimeComp.js} +9 -12
- package/lib/lowcode/view/lc-components/JSX/index.js +5 -6
- package/lib/lowcode/view/lc-components/JSX/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +3 -1
- package/lib/lowcode/view/lc-components/Layout/index.less +0 -0
- package/lib/lowcode/view/lc-components/Layout/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Link/index.js +3 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Page/meta.json +6 -6
- package/lib/lowcode/view/lc-components/PageContent/index.js +2 -0
- package/lib/lowcode/view/lc-components/PageContent/meta.json +0 -0
- package/lib/lowcode/view/lc-components/PageFooter/index.js +3 -0
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +0 -0
- package/lib/lowcode/view/lc-components/PageHeader/index.js +3 -0
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +0 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/PageLayout/index.js +3 -0
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +0 -0
- package/lib/lowcode/view/lc-components/PageModal/index.js +0 -0
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Section/index.js +6 -3
- package/lib/lowcode/view/lc-components/Section/index.less +0 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Split/index.js +3 -0
- package/lib/lowcode/view/lc-components/Split/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +0 -0
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +3 -1
- package/lib/lowcode/view/lc-components/Table/index.js +25 -32
- package/lib/lowcode/view/lc-components/Table/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +2 -2
- package/lib/lowcode/view/lc-components/Tabs/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Text/index.js +3 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/index.less +0 -0
- package/lib/lowcode/view/lc-components/Tree/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +1 -0
- package/lib/lowcode/view/style/canvas.less +0 -0
- package/lib/lowcode/view/style/loading.less +0 -0
- package/lib/lowcode/view/style/page.less +0 -0
- package/lib/services.js +0 -0
- package/lib/upload/FilesWall/file.png +0 -0
- package/lib/upload/FilesWall/index.js +0 -0
- package/lib/upload/FilesWall/index.less +0 -0
- package/lib/upload/Form/gridForm.js +0 -0
- package/lib/upload/Form/index.js +0 -0
- package/lib/upload/Form/index.less +0 -0
- package/lib/upload/FormItem/index.js +0 -0
- package/lib/upload/GridCell/index.js +0 -0
- package/lib/upload/index.js +0 -0
- package/lib/utils/action.js +0 -0
- package/lib/utils/form.js +0 -0
- package/lib/utils/grid.js +2 -2
- package/lib/utils/index.js +0 -0
- package/lowcode.js +0 -0
- package/package.json +174 -175
- package/upload.js +0 -0
- package/utils.js +0 -0
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,12 +4,24 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
var _excluded = ["columns", "resources", "actions", "doAction", "ldId", "dataSetKey", "filedsRewrite", "mainFormLdId", "mainDataSetKey", "onValueChange", "onQuery", "onAdd", "onUpdate", "moduleCode", "defaultDataSourceFormat", "ticketData", "relationKey", "fields", "setVerifyRules"];
|
|
6
6
|
import React, { createRef, useContext } from 'react';
|
|
7
|
-
import { reduce, keyBy, isEmpty, pick, union, omit } from 'lodash';
|
|
7
|
+
import { reduce, keyBy, isEmpty, pick, union, omit, forEach, debounce } from 'lodash';
|
|
8
8
|
import { BasicDivider } from 'luck-design';
|
|
9
9
|
import { AutoForm } from '@luck-design-biz/base/FormList';
|
|
10
10
|
import ldBuilder from "../../helper/ldBuilder";
|
|
11
11
|
import { getFormItem, formItemDataFormat, dataFormat, behaviorCall } from "../../utils";
|
|
12
12
|
import { LuckDaContext } from "../Builder";
|
|
13
|
+
var didMount = false;
|
|
14
|
+
var debounceFunc = debounce(function (fields, changedValues, allValues, props) {
|
|
15
|
+
forEach(changedValues, function (val, key) {
|
|
16
|
+
var _field$events;
|
|
17
|
+
var field = fields.find(function (f) {
|
|
18
|
+
return f.field === key;
|
|
19
|
+
});
|
|
20
|
+
if (field !== null && field !== void 0 && (_field$events = field.events) !== null && _field$events !== void 0 && _field$events.onValueChange) {
|
|
21
|
+
field.events.onValueChange(val, key, allValues, props);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}, 300);
|
|
13
25
|
var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
14
26
|
var _ref$columns = _ref.columns,
|
|
15
27
|
columns = _ref$columns === void 0 ? [] : _ref$columns,
|
|
@@ -59,7 +71,7 @@ var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
|
59
71
|
var col = columnsObj[key];
|
|
60
72
|
if ((setting === null || setting === void 0 ? void 0 : setting._type) === 'divider') {
|
|
61
73
|
result.push( /*#__PURE__*/React.createElement(BasicDivider, {
|
|
62
|
-
title: setting === null || setting === void 0 ? void 0 : setting.
|
|
74
|
+
title: setting === null || setting === void 0 ? void 0 : setting.fieldAliasName
|
|
63
75
|
}));
|
|
64
76
|
} else if (col !== null && col !== void 0 && col.isShowInForm) {
|
|
65
77
|
var customFiled = filedsRewrite.find(function (_field) {
|
|
@@ -69,7 +81,7 @@ var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
|
69
81
|
var defaultSet = ['col', 'row', 'note', 'tip', 'placeholder'];
|
|
70
82
|
var newCol = _objectSpread(_objectSpread({}, col), {}, {
|
|
71
83
|
setVerifyRules: setVerifyRules,
|
|
72
|
-
fieldName: (setting === null || setting === void 0 ? void 0 : setting.
|
|
84
|
+
fieldName: (setting === null || setting === void 0 ? void 0 : setting.fieldAliasName) || col.fieldName
|
|
73
85
|
}, pick(setting, defaultSet));
|
|
74
86
|
result.push(getFormItem(newCol, _objectSpread(_objectSpread({
|
|
75
87
|
formId: ldId,
|
|
@@ -130,6 +142,9 @@ var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
|
130
142
|
});
|
|
131
143
|
};
|
|
132
144
|
return /*#__PURE__*/React.createElement(AutoForm, _extends({}, props, {
|
|
145
|
+
onDataLoaded: function onDataLoaded() {
|
|
146
|
+
didMount = true;
|
|
147
|
+
},
|
|
133
148
|
onQuery: _objectSpread(_objectSpread({
|
|
134
149
|
api: behaviorCall,
|
|
135
150
|
get: function get(formData) {
|
|
@@ -149,7 +164,14 @@ var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
|
149
164
|
})
|
|
150
165
|
// onAdd={onOperate(onAdd, 'add')}
|
|
151
166
|
,
|
|
152
|
-
onUpdate: onOperate(onUpdate, 'update')
|
|
167
|
+
onUpdate: onOperate(onUpdate, 'update'),
|
|
168
|
+
formOption: {
|
|
169
|
+
onValuesChange: function onValuesChange(props, changedValues, allValues) {
|
|
170
|
+
if (didMount) {
|
|
171
|
+
debounceFunc(fields, changedValues, allValues, props);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
153
175
|
}, formConfig), basicItems);
|
|
154
176
|
};
|
|
155
177
|
export default ldBuilder(buildLdAutoForm);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
6
6
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
7
7
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
8
8
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
9
|
-
var _excluded = ["namespace", "formState", "formMode", "formOperates", "loading", "wrapperRef", "readOnly", "mainFormLdId", "renderFormList", "renderAffixLeft", "renderAffixRight", "beforeSubmit", "showSaveBtn", "saveBtnTitle", "affixLayout", "onValueChange", "afterSubmit", "renderFormExtra", "bpmButtonProps", "setVerifyRules"],
|
|
9
|
+
var _excluded = ["namespace", "formState", "formMode", "formOperates", "loading", "wrapperRef", "readOnly", "mainFormLdId", "renderFormList", "renderAffixLeft", "renderAffixRight", "beforeSubmit", "showSaveBtn", "saveBtnTitle", "affixLayout", "getContainer", "onValueChange", "afterSubmit", "renderFormExtra", "bpmButtonProps", "setVerifyRules", "afterSubmitLoading"],
|
|
10
10
|
_excluded2 = ["dataSets", "doAction", "resources"],
|
|
11
11
|
_excluded3 = ["id", "header", "title", "readOnly", "extraConfig", "renderTopLeft", "serial"],
|
|
12
12
|
_excluded4 = ["ldId", "initData", "overModel"];
|
|
@@ -46,6 +46,7 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
46
46
|
showSaveBtn = _ref.showSaveBtn,
|
|
47
47
|
saveBtnTitle = _ref.saveBtnTitle,
|
|
48
48
|
affixLayout = _ref.affixLayout,
|
|
49
|
+
getContainer = _ref.getContainer,
|
|
49
50
|
_ref$onValueChange = _ref.onValueChange,
|
|
50
51
|
onValueChange = _ref$onValueChange === void 0 ? function () {} : _ref$onValueChange,
|
|
51
52
|
afterSubmit = _ref.afterSubmit,
|
|
@@ -56,6 +57,7 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
56
57
|
_ref$bpmButtonProps = _ref.bpmButtonProps,
|
|
57
58
|
bpmButtonProps = _ref$bpmButtonProps === void 0 ? {} : _ref$bpmButtonProps,
|
|
58
59
|
setVerifyRules = _ref.setVerifyRules,
|
|
60
|
+
afterSubmitLoading = _ref.afterSubmitLoading,
|
|
59
61
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
60
62
|
var PRIMARY = window.appConfig.constraintKeys.PRIMARY;
|
|
61
63
|
var currentValueRef = useRef(null);
|
|
@@ -208,6 +210,7 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
208
210
|
formUid: formUid,
|
|
209
211
|
mainDataSetKey: mainDataSetKey
|
|
210
212
|
}, function (success, mainKey, res) {
|
|
213
|
+
afterSubmitLoading && afterSubmitLoading(res);
|
|
211
214
|
setSubmitLoading(false);
|
|
212
215
|
if (success) {
|
|
213
216
|
var mainFormData = res.detail[res.list[0]];
|
|
@@ -270,7 +273,8 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
270
273
|
renderLeft: renderAffixLeft,
|
|
271
274
|
renderRight: isCustomRenderAffixRight ? renderAffixRightCustom : renderAffixRight,
|
|
272
275
|
title: saveBtnTitle,
|
|
273
|
-
layout: affixLayout || defaultLayout
|
|
276
|
+
layout: affixLayout || defaultLayout,
|
|
277
|
+
getContainer: getContainer
|
|
274
278
|
}), sortBy([].concat(_toConsumableArray(formList), _toConsumableArray(formExtra)), function (o) {
|
|
275
279
|
var _o$props;
|
|
276
280
|
return o.order || ((_o$props = o.props) === null || _o$props === void 0 ? void 0 : _o$props.order);
|
|
File without changes
|
|
@@ -190,10 +190,11 @@ var LdIndex = function LdIndex(_ref2) {
|
|
|
190
190
|
var _getDvaApp2, _getDvaApp3;
|
|
191
191
|
(_getDvaApp2 = getDvaApp()) === null || _getDvaApp2 === void 0 || _getDvaApp2.unmodel(namespace);
|
|
192
192
|
if (!((_getDvaApp3 = getDvaApp()) !== null && _getDvaApp3 !== void 0 && _getDvaApp3._store.getState()[namespace])) {
|
|
193
|
-
var _getDvaApp4;
|
|
193
|
+
var _getDvaApp4, _props$pagination;
|
|
194
194
|
(_getDvaApp4 = getDvaApp()) === null || _getDvaApp4 === void 0 || _getDvaApp4.model(createModel(namespace, _objectSpread(_objectSpread({
|
|
195
195
|
behaviorKey: isTreeGrid ? 'readTree' : 'readGrid'
|
|
196
196
|
}, overModel), {}, {
|
|
197
|
+
pageSize: overModel.pageSize || ((_props$pagination = props.pagination) === null || _props$pagination === void 0 ? void 0 : _props$pagination.pageSize) || props.pageSize,
|
|
197
198
|
isFlow: isTreeGrid || !!props.isFlow,
|
|
198
199
|
moduleCode: moduleCode,
|
|
199
200
|
dataSetKey: props.dataSetKey,
|
|
File without changes
|
|
@@ -84,7 +84,7 @@ var buildLdGridForm = function buildLdGridForm(_ref) {
|
|
|
84
84
|
_defaultValues = _objectSpread(_objectSpread({}, _defaultValues), {}, _defineProperty(_defineProperty({}, col.aliaName, col['optDefaultValue']), "".concat(col.aliaName, "_virtual"), col['optDefaultValueCvt']));
|
|
85
85
|
var newCol = _objectSpread(_objectSpread({}, col), {}, {
|
|
86
86
|
setVerifyRules: setVerifyRules,
|
|
87
|
-
fieldName: (setting === null || setting === void 0 ? void 0 : setting.
|
|
87
|
+
fieldName: (setting === null || setting === void 0 ? void 0 : setting.fieldAliasName) || col.fieldName
|
|
88
88
|
});
|
|
89
89
|
var defaultSet = ['width', 'align', 'headerAlign', 'pinned', 'tip'];
|
|
90
90
|
result.push(getFormColumn(type, newCol, _objectSpread(_objectSpread(_objectSpread({}, pick(setting, defaultSet)), customColumn), {}, {
|
|
@@ -142,7 +142,11 @@ var buildLdGridForm = function buildLdGridForm(_ref) {
|
|
|
142
142
|
var _submitData = data.map(function (item) {
|
|
143
143
|
return behaviorKey === 'add' ? _objectSpread(_objectSpread({}, dataFormat(gridColumns, item)), {}, _defineProperty({}, window.appConfig.constraintKeys.PRIMARY, null)) : dataFormat(gridColumns, item);
|
|
144
144
|
});
|
|
145
|
-
if (_onOperate !== null && _onOperate !== void 0 && _onOperate.post) return _onOperate.post(
|
|
145
|
+
if (_onOperate !== null && _onOperate !== void 0 && _onOperate.post) return _onOperate.post({
|
|
146
|
+
values: data,
|
|
147
|
+
submitData: _submitData,
|
|
148
|
+
behaviorKey: behaviorKey
|
|
149
|
+
}); // 以预设为主
|
|
146
150
|
return _defineProperty({}, dataSetKey, _defineProperty({}, "".concat(behaviorKey, "List"), _submitData));
|
|
147
151
|
}
|
|
148
152
|
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
4
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
5
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
6
6
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
7
7
|
var _excluded = ["columns", "resources", "actions", "doAction", "wrapperRef", "ldId", "dataSetKey", "defaultParmas", "moduleCode", "readOnly", "title", "rowKey", "treeNodeTitle", "unselectableNodes", "rightMenus", "defaultExpandDeep", "draggable", "onDrop", "className", "treeClassName", "rootAdd", "suppressInit", "afterQuery", "afterInit", "isTree", "service", "dataToTreeFormat", "boxRef", "doubleClickExpand", "onNodeDoubleClick", "width", "height", "treeNodeCheckable", "treeNodeDisableCheckbox", "treeNodeDisable", "treeNodeIcon", "asyncLoad", "parentKey", "onMount", "onUnmount", "onDataSetChange", "onTreeNodeRender", "onlyRoot"],
|
|
8
8
|
_excluded2 = ["onClick"];
|
|
9
9
|
import React, { useState, useRef, useImperativeHandle, forwardRef, useLayoutEffect } from 'react';
|
|
10
|
-
import { isFunction, isNumber, transform, includes, remove, cloneDeep, isNil } from 'lodash';
|
|
10
|
+
import { isFunction, isNumber, transform, includes, remove, cloneDeep, isNil, differenceBy } from 'lodash';
|
|
11
11
|
import { useRequest, useMemoizedFn, useCreation } from 'ahooks';
|
|
12
12
|
import PropTypes from 'prop-types';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { Icon, Popover } from 'luck-design/antd';
|
|
15
15
|
import { LuckTree } from 'luck-design';
|
|
16
|
-
import { formatMessage, dataToTree, dragTreeData } from '@luck-design-biz/base/utils';
|
|
16
|
+
import { formatMessage, dataToTree, dragTreeData, flattenTree } from '@luck-design-biz/base/utils';
|
|
17
17
|
import { TreeBox } from '@luck-design-biz/base';
|
|
18
18
|
import ldBuilder from "../../helper/ldBuilder";
|
|
19
19
|
import { behaviorCall } from "../../utils";
|
|
@@ -127,9 +127,32 @@ var LdTree = function LdTree(_ref) {
|
|
|
127
127
|
var _params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
128
128
|
run(_objectSpread(_objectSpread(_objectSpread({}, params[0]), _params), defaultParams[0]));
|
|
129
129
|
});
|
|
130
|
+
var handleUpdateTree = function handleUpdateTree(type, nodes) {
|
|
131
|
+
var data = [];
|
|
132
|
+
var flattenData = flattenTree(dataSource);
|
|
133
|
+
switch (type) {
|
|
134
|
+
case 'delete':
|
|
135
|
+
data = differenceBy(flattenData, nodes, window.appConfig.constraintKeys.PRIMARY);
|
|
136
|
+
break;
|
|
137
|
+
case 'add':
|
|
138
|
+
data = [].concat(_toConsumableArray(flattenData), _toConsumableArray(nodes));
|
|
139
|
+
break;
|
|
140
|
+
default:
|
|
141
|
+
data = flattenData.map(function (i) {
|
|
142
|
+
var findNode = nodes.find(function (n) {
|
|
143
|
+
return n[PRIMARY] === i[PRIMARY];
|
|
144
|
+
});
|
|
145
|
+
if (findNode) return _objectSpread(_objectSpread({}, i), findNode);
|
|
146
|
+
return i;
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
var treeData = dataToTreeFormat ? dataToTreeFormat(data) : dataToTree(data, null, window.appConfig.constraintKeys.PRIMARY, window.appConfig.constraintKeys.PARENT);
|
|
150
|
+
setDataSource(treeData);
|
|
151
|
+
};
|
|
130
152
|
useImperativeHandle(wrapperRef, function () {
|
|
131
153
|
return _objectSpread(_objectSpread({}, treeRef.current), {}, {
|
|
132
|
-
onLdQuery: onLdQuery
|
|
154
|
+
onLdQuery: onLdQuery,
|
|
155
|
+
updateTree: handleUpdateTree
|
|
133
156
|
});
|
|
134
157
|
});
|
|
135
158
|
useLayoutEffect(function () {
|
|
@@ -246,7 +269,6 @@ var LdTree = function LdTree(_ref) {
|
|
|
246
269
|
}, [readOnly, rootAdd, resources]);
|
|
247
270
|
var onLoadData = useMemoizedFn(function (treeNode) {
|
|
248
271
|
return new Promise(function (resolve) {
|
|
249
|
-
console.log('treeNode.props.children', treeNode.props.children);
|
|
250
272
|
if (treeNode.props.isLeaf) {
|
|
251
273
|
resolve();
|
|
252
274
|
return;
|
|
File without changes
|
package/es/helper/FromItems.js
CHANGED
|
File without changes
|
package/es/helper/action.js
CHANGED
|
File without changes
|
package/es/helper/form.js
CHANGED
|
@@ -138,7 +138,7 @@ export function formatCustomProps(comType, props) {
|
|
|
138
138
|
var propsSetting = ((_props_config$comType = props_config[comType]) === null || _props_config$comType === void 0 ? void 0 : _props_config$comType.propsSetting) || [];
|
|
139
139
|
var propsEvents = ((_props_config$comType2 = props_config[comType]) === null || _props_config$comType2 === void 0 ? void 0 : _props_config$comType2.propsEvents) || [];
|
|
140
140
|
props = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, props), pick(setting, propsSetting)), pick(setting.events, propsEvents)), {}, {
|
|
141
|
-
config: _objectSpread(_objectSpread(_objectSpread({}, props.config || {}), omit(setting, [].concat(_toConsumableArray(propsSetting), ['events']))), omit(setting.events, propsEvents))
|
|
141
|
+
config: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, props.config || {}), setting.config || {}), omit(setting, [].concat(_toConsumableArray(propsSetting), ['events']))), omit(setting.events, propsEvents))
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
return props;
|
package/es/helper/index.less
CHANGED
|
File without changes
|
package/es/helper/ldBuilder.js
CHANGED
|
File without changes
|
package/es/helper/ldComBuild.js
CHANGED
|
File without changes
|
|
File without changes
|
package/es/index.js
CHANGED
|
@@ -7,5 +7,4 @@ export { default as buildLdGridForm } from "./components/LdGridForm";
|
|
|
7
7
|
export { default as LdInfoPanel } from "./components/LdInfoPanel";
|
|
8
8
|
export { default as LdCard } from "./components/LdCard";
|
|
9
9
|
export { default as LDActions } from "./components/LDActions";
|
|
10
|
-
export { default as LdRuntimeCom } from "./components/LdRuntimeCom";
|
|
11
10
|
export * from "./components/LdCom";
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -197,10 +197,6 @@ export default {
|
|
|
197
197
|
"luckda.lowcode.painter.panel-section.fieldsSetting.pinned": "固定列",
|
|
198
198
|
"luckda.lowcode.painter.panel-section.fieldsSetting.tip": "过长提示",
|
|
199
199
|
"luckda.lowcode.painter.panel-section.fieldsSetting.fieldColumn": "占列数",
|
|
200
|
-
"luckda.lowcode.painter.panel-section.fieldsSetting.fieldRow": "占行数",
|
|
201
|
-
"luckda.lowcode.painter.panel-section.fieldsSetting.fieldNote": "字段注释",
|
|
202
|
-
"luckda.lowcode.painter.panel-section.fieldsSetting.fieldTip": "长说明",
|
|
203
|
-
"luckda.lowcode.painter.panel-section.fieldsSetting.placeholder": "默认提示",
|
|
204
200
|
"luckda.lowcode.painter.panel-section.fieldsSetting.isEqual": "唯一校验",
|
|
205
201
|
"luckda.lowcode.painter.panel-section.fieldsSetting.required": "是否必填",
|
|
206
202
|
"luckda.lowcode.painter.panel-section.fieldsSetting.table.display": "表格中显示",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
4
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { Radio } from 'luck-design/antd';
|
|
8
|
+
import Strategy from "./Strategy";
|
|
9
|
+
var _TYPE_ = 'radio';
|
|
10
|
+
var RadioComp = function RadioComp(_ref) {
|
|
11
|
+
var _onChange = _ref.onChange,
|
|
12
|
+
defaultValue = _ref.defaultValue,
|
|
13
|
+
size = _ref.size,
|
|
14
|
+
options = _ref.options;
|
|
15
|
+
return /*#__PURE__*/React.createElement(Radio.Group, {
|
|
16
|
+
onChange: function onChange(e) {
|
|
17
|
+
return _onChange(e.target.value);
|
|
18
|
+
},
|
|
19
|
+
defaultValue: defaultValue,
|
|
20
|
+
size: size
|
|
21
|
+
}, options.map(function (_ref2) {
|
|
22
|
+
var value = _ref2.value,
|
|
23
|
+
label = _ref2.label;
|
|
24
|
+
return /*#__PURE__*/React.createElement(Radio, {
|
|
25
|
+
key: value,
|
|
26
|
+
value: value
|
|
27
|
+
}, label);
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
30
|
+
var RadioStrategy = /*#__PURE__*/function (_Strategy) {
|
|
31
|
+
_inherits(RadioStrategy, _Strategy);
|
|
32
|
+
var _super = _createSuper(RadioStrategy);
|
|
33
|
+
function RadioStrategy(factory) {
|
|
34
|
+
var _this;
|
|
35
|
+
_classCallCheck(this, RadioStrategy);
|
|
36
|
+
_this = _super.call(this, _TYPE_);
|
|
37
|
+
factory.register(_TYPE_, _assertThisInitialized(_this));
|
|
38
|
+
return _this;
|
|
39
|
+
}
|
|
40
|
+
_createClass(RadioStrategy, [{
|
|
41
|
+
key: "match",
|
|
42
|
+
value: function match(type) {
|
|
43
|
+
return type === _TYPE_;
|
|
44
|
+
}
|
|
45
|
+
}, {
|
|
46
|
+
key: "builder",
|
|
47
|
+
value: function builder() {
|
|
48
|
+
return RadioComp;
|
|
49
|
+
}
|
|
50
|
+
}]);
|
|
51
|
+
return RadioStrategy;
|
|
52
|
+
}(Strategy);
|
|
53
|
+
export { RadioStrategy as default };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -14,7 +14,7 @@ var StringComp = function StringComp(_ref) {
|
|
|
14
14
|
size = _ref.size,
|
|
15
15
|
disabled = _ref.disabled;
|
|
16
16
|
var handleChange = useRef(debounce(function (newValue) {
|
|
17
|
-
onChange(newValue);
|
|
17
|
+
onChange(newValue.trim());
|
|
18
18
|
}, 400));
|
|
19
19
|
return /*#__PURE__*/React.createElement(Input, {
|
|
20
20
|
onChange: function onChange(e) {
|
|
File without changes
|
|
@@ -6,6 +6,7 @@ import SelectStrategy from "./SelectStrategy";
|
|
|
6
6
|
import SwitchStrategy from "./SwitchStrategy";
|
|
7
7
|
import CheckboxStrategy from "./CheckboxStrategy";
|
|
8
8
|
import SegmentedStrategy from "./SegmentedStrategy";
|
|
9
|
+
import RadioStrategy from "./RadioStrategy";
|
|
9
10
|
import DynamicStrategy from "./DynamicStrategy";
|
|
10
11
|
import GroupStrategy from "./GroupStrategy";
|
|
11
12
|
var Factory = /*#__PURE__*/function () {
|
|
@@ -23,6 +24,7 @@ var Factory = /*#__PURE__*/function () {
|
|
|
23
24
|
new SelectStrategy(this);
|
|
24
25
|
new CheckboxStrategy(this);
|
|
25
26
|
new SegmentedStrategy(this);
|
|
27
|
+
new RadioStrategy(this);
|
|
26
28
|
new SwitchStrategy(this);
|
|
27
29
|
new GroupStrategy(this);
|
|
28
30
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { loadScript } from "./tools/helper";
|
|
2
|
+
export default function launcher() {
|
|
3
|
+
console.log('%c LuckdaLowCodeEngine %c v'.concat(BIZ_VERSION, ' '), 'padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #606060; font-weight: bold;', 'padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;');
|
|
4
|
+
window.loadScript = loadScript;
|
|
5
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|