@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
|
@@ -73,15 +73,15 @@ var Design = function Design() {
|
|
|
73
73
|
onLangChange: handleLangChange
|
|
74
74
|
}), /*#__PURE__*/React.createElement("div", {
|
|
75
75
|
className: styles['lc-painter-design-workspace']
|
|
76
|
-
}, /*#__PURE__*/React.createElement(
|
|
76
|
+
}, /*#__PURE__*/React.createElement(DesignOperator, {
|
|
77
|
+
canvas: simulatorRef
|
|
78
|
+
}), /*#__PURE__*/React.createElement(ConfigProvider, {
|
|
77
79
|
locale: ((_localeInfo$locale = localeInfo[locale]) === null || _localeInfo$locale === void 0 ? void 0 : _localeInfo$locale.antd) || {}
|
|
78
80
|
}, /*#__PURE__*/React.createElement(RawIntlProvider, {
|
|
79
81
|
value: intl
|
|
80
82
|
}, /*#__PURE__*/React.createElement(Page, {
|
|
81
83
|
ref: simulatorRef,
|
|
82
84
|
className: styles['lc-painter-design-simulator']
|
|
83
|
-
}
|
|
84
|
-
canvas: simulatorRef
|
|
85
|
-
}))))));
|
|
85
|
+
})))));
|
|
86
86
|
};
|
|
87
87
|
export default Design;
|
|
@@ -19,7 +19,7 @@ var getOperatorStyle = function getOperatorStyle(canvas, cellNode) {
|
|
|
19
19
|
cellNodeTop = _cellNode$getBounding.top;
|
|
20
20
|
return {
|
|
21
21
|
left: "".concat(cellNodeLeft - pageLeft, "px"),
|
|
22
|
-
top: "".concat(
|
|
22
|
+
top: "".concat(cellNodeTop - pageTop, "px"),
|
|
23
23
|
width: "".concat(cellNode.offsetWidth, "px"),
|
|
24
24
|
height: "".concat(cellNode.offsetHeight, "px")
|
|
25
25
|
};
|
|
@@ -281,7 +281,8 @@ var DesignToolbar = function DesignToolbar(_ref) {
|
|
|
281
281
|
margin: '0 4px 0 2px'
|
|
282
282
|
},
|
|
283
283
|
onClick: function onClick() {
|
|
284
|
-
|
|
284
|
+
setShowPreview(true);
|
|
285
|
+
context.$publisher(context.topics.COMPONENT_ACTIVE, null);
|
|
285
286
|
}
|
|
286
287
|
}, formatMessage({
|
|
287
288
|
id: 'luckda.lowcode.design.toolbar.preview',
|
|
@@ -291,7 +292,8 @@ var DesignToolbar = function DesignToolbar(_ref) {
|
|
|
291
292
|
type: "primary",
|
|
292
293
|
style: {
|
|
293
294
|
fontSize: 12,
|
|
294
|
-
padding: '0 7px 0 0'
|
|
295
|
+
padding: '0 7px 0 0',
|
|
296
|
+
marginLeft: 2
|
|
295
297
|
}
|
|
296
298
|
}, /*#__PURE__*/React.createElement("div", {
|
|
297
299
|
style: {
|
|
@@ -380,8 +382,9 @@ var DesignToolbar = function DesignToolbar(_ref) {
|
|
|
380
382
|
})))),
|
|
381
383
|
placement: "bottom",
|
|
382
384
|
height: "94vh",
|
|
383
|
-
footer: false
|
|
384
|
-
zIndex
|
|
385
|
+
footer: false
|
|
386
|
+
// zIndex={3000}
|
|
387
|
+
,
|
|
385
388
|
headerStyle: {
|
|
386
389
|
padding: '0 48px 0 24px'
|
|
387
390
|
},
|
|
File without changes
|
|
File without changes
|
|
@@ -103,13 +103,14 @@ var Panel = function Panel() {
|
|
|
103
103
|
before(handleChange);
|
|
104
104
|
}
|
|
105
105
|
task(targetId, newValue).then(function () {
|
|
106
|
+
var _id = isNil(activeNode.$target) ? activeNode.node.id : activeNode.$target.id;
|
|
106
107
|
context.$publisher(context.topics.COMPONENT_MODIFY, {
|
|
107
|
-
id:
|
|
108
|
+
id: _id,
|
|
108
109
|
oldValue: oldValue,
|
|
109
110
|
newValue: newValue
|
|
110
111
|
});
|
|
111
112
|
if (repositioning) context.$publisher(context.topics.COMPONENT_REPOSITIONING, {
|
|
112
|
-
id:
|
|
113
|
+
id: _id
|
|
113
114
|
});
|
|
114
115
|
});
|
|
115
116
|
});
|
|
File without changes
|
|
@@ -6,9 +6,10 @@ import { Modal, Icon, Input, Checkbox, Tooltip } from 'luck-design/antd';
|
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import { reduce } from 'lodash';
|
|
8
8
|
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
9
|
-
import { useRemoteSource } from "../../engine/provider/ContextProvider";
|
|
9
|
+
import { useRemoteSource, useGet } from "../../engine/provider/ContextProvider";
|
|
10
10
|
import { useContext } from "../../engine/provider/ContextProvider";
|
|
11
11
|
import JSEditor from "./code-editor/JSEditor";
|
|
12
|
+
import { extractKeywords } from "../../engine/tools/helper";
|
|
12
13
|
import styles from "../style/action-bind-modal.less";
|
|
13
14
|
var _I18N_PREFIX_ = 'luckda.lowcode.painter.actionBindModal';
|
|
14
15
|
var _ACTION_CATEGORY_ = [{
|
|
@@ -65,6 +66,10 @@ var ActionBindModal = function ActionBindModal(_ref) {
|
|
|
65
66
|
searchValue = _useState6[0],
|
|
66
67
|
setSearchValue = _useState6[1];
|
|
67
68
|
var latestActiveKey = useLatest(activeKey);
|
|
69
|
+
var pageData = useGet();
|
|
70
|
+
var keywords = useCreation(function () {
|
|
71
|
+
return extractKeywords(pageData, ['id', ['dataset', 'code'], 'field']);
|
|
72
|
+
}, []);
|
|
68
73
|
var options = useCreation(function () {
|
|
69
74
|
if (category === 'page-action') {
|
|
70
75
|
return reduce(module.actions, function (ret, actionName, actionKey) {
|
|
@@ -295,6 +300,7 @@ var ActionBindModal = function ActionBindModal(_ref) {
|
|
|
295
300
|
className: styles['code-box']
|
|
296
301
|
}, activeKey ? /*#__PURE__*/React.createElement(JSEditor, {
|
|
297
302
|
ref: editorRef,
|
|
303
|
+
keywords: keywords,
|
|
298
304
|
onChange: handleEditorValueChange
|
|
299
305
|
}) : formatMessage({
|
|
300
306
|
id: "".concat(_I18N_PREFIX_, ".noActionSelected"),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
4
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
5
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
5
6
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
|
-
var _excluded = ["children"];
|
|
7
|
+
var _excluded = ["children", "keywords"];
|
|
7
8
|
import React, { useEffect, forwardRef } from 'react';
|
|
8
9
|
import * as monaco from 'monaco-editor';
|
|
9
10
|
import { isNil } from 'lodash';
|
|
@@ -15,18 +16,24 @@ function capitalizeFirstLetter(string) {
|
|
|
15
16
|
}
|
|
16
17
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
17
18
|
}
|
|
18
|
-
var _provideCompletionItems = function provideCompletionItems(monaco, model, position, module) {
|
|
19
|
+
var _provideCompletionItems = function provideCompletionItems(monaco, model, position, module, ctx) {
|
|
19
20
|
var textUntilPosition = model.getValueInRange({
|
|
20
21
|
startLineNumber: 1,
|
|
21
22
|
startColumn: 1,
|
|
22
23
|
endLineNumber: position.lineNumber,
|
|
23
24
|
endColumn: position.column
|
|
24
25
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
var match;
|
|
27
|
+
if (module.triggerWord) {
|
|
28
|
+
// 正则表达式匹配以 triggerWord 开头的任何单词
|
|
29
|
+
var pattern = new RegExp('\\b' + module.triggerWord + '[\\w.]*', 'i');
|
|
30
|
+
match = textUntilPosition.match(pattern);
|
|
31
|
+
} else {
|
|
32
|
+
var _pattern = new RegExp('\\b[a-zA-Z][\\w.]*', 'i');
|
|
33
|
+
match = ["'", '"'].includes(ctx.triggerCharacter) && textUntilPosition.match(_pattern);
|
|
34
|
+
}
|
|
29
35
|
if (match) {
|
|
36
|
+
var _module$completions;
|
|
30
37
|
var word = model.getWordUntilPosition(position);
|
|
31
38
|
var range = {
|
|
32
39
|
startLineNumber: position.lineNumber,
|
|
@@ -34,7 +41,7 @@ var _provideCompletionItems = function provideCompletionItems(monaco, model, pos
|
|
|
34
41
|
startColumn: word.startColumn,
|
|
35
42
|
endColumn: word.endColumn
|
|
36
43
|
};
|
|
37
|
-
return module.completions.map(function (completion) {
|
|
44
|
+
return (_module$completions = module.completions) === null || _module$completions === void 0 ? void 0 : _module$completions.map(function (completion) {
|
|
38
45
|
return _objectSpread(_objectSpread({}, completion), {}, {
|
|
39
46
|
range: range,
|
|
40
47
|
kind: monaco.languages.CompletionItemKind[capitalizeFirstLetter(completion.kind)]
|
|
@@ -44,7 +51,7 @@ var _provideCompletionItems = function provideCompletionItems(monaco, model, pos
|
|
|
44
51
|
return [];
|
|
45
52
|
};
|
|
46
53
|
var setupAutocomplete = /*#__PURE__*/function () {
|
|
47
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(monaco) {
|
|
54
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(monaco, keywords) {
|
|
48
55
|
var autoCompleteModules;
|
|
49
56
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
50
57
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -54,19 +61,21 @@ var setupAutocomplete = /*#__PURE__*/function () {
|
|
|
54
61
|
case 2:
|
|
55
62
|
autoCompleteModules = _context.sent;
|
|
56
63
|
monaco.languages.registerCompletionItemProvider('javascript', {
|
|
57
|
-
provideCompletionItems: function provideCompletionItems(model, position) {
|
|
64
|
+
provideCompletionItems: function provideCompletionItems(model, position, ctx) {
|
|
58
65
|
var allCompletionItems = [];
|
|
59
66
|
|
|
60
67
|
// 从所有模块收集补全项
|
|
61
|
-
|
|
62
|
-
|
|
68
|
+
[{
|
|
69
|
+
completions: keywords
|
|
70
|
+
}].concat(_toConsumableArray(autoCompleteModules.default)).forEach(function (module) {
|
|
71
|
+
var items = _provideCompletionItems(monaco, model, position, module, ctx);
|
|
63
72
|
allCompletionItems = allCompletionItems.concat(items);
|
|
64
73
|
});
|
|
65
74
|
return {
|
|
66
75
|
suggestions: allCompletionItems
|
|
67
76
|
};
|
|
68
77
|
},
|
|
69
|
-
triggerCharacters: ['.'] // 当用户输入点号时触发补全
|
|
78
|
+
triggerCharacters: ['.', "'", '"'] // 当用户输入点号时触发补全
|
|
70
79
|
});
|
|
71
80
|
case 4:
|
|
72
81
|
case "end":
|
|
@@ -74,7 +83,7 @@ var setupAutocomplete = /*#__PURE__*/function () {
|
|
|
74
83
|
}
|
|
75
84
|
}, _callee);
|
|
76
85
|
}));
|
|
77
|
-
return function setupAutocomplete(_x) {
|
|
86
|
+
return function setupAutocomplete(_x, _x2) {
|
|
78
87
|
return _ref.apply(this, arguments);
|
|
79
88
|
};
|
|
80
89
|
}();
|
|
@@ -102,9 +111,10 @@ var setupAutocomplete = /*#__PURE__*/function () {
|
|
|
102
111
|
*/
|
|
103
112
|
var JSEditor = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
104
113
|
var children = _ref2.children,
|
|
114
|
+
keywords = _ref2.keywords,
|
|
105
115
|
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
106
116
|
useEffect(function () {
|
|
107
|
-
setupAutocomplete(monaco);
|
|
117
|
+
setupAutocomplete(monaco, keywords);
|
|
108
118
|
}, []);
|
|
109
119
|
return /*#__PURE__*/React.createElement(BaseEditor, _extends({
|
|
110
120
|
ref: ref
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -316,7 +316,7 @@ var SettingUI = function SettingUI(_ref) {
|
|
|
316
316
|
onChange: function onChange(val) {
|
|
317
317
|
return run('tip', val);
|
|
318
318
|
}
|
|
319
|
-
}))), component === 'form' && /*#__PURE__*/React.createElement(
|
|
319
|
+
}))), component === 'form' && /*#__PURE__*/React.createElement(PanelItem, {
|
|
320
320
|
label: formatMessage({
|
|
321
321
|
id: "".concat(_I18N_PREFIX_, ".fieldColumn"),
|
|
322
322
|
label: '占列数'
|
|
@@ -334,58 +334,7 @@ var SettingUI = function SettingUI(_ref) {
|
|
|
334
334
|
value: 3
|
|
335
335
|
}, "3"), /*#__PURE__*/React.createElement(Radio, {
|
|
336
336
|
value: 4
|
|
337
|
-
}, "4"))), /*#__PURE__*/React.createElement(PanelItem, {
|
|
338
|
-
label: formatMessage({
|
|
339
|
-
id: "".concat(_I18N_PREFIX_, ".fieldRow"),
|
|
340
|
-
label: '占行数'
|
|
341
|
-
})
|
|
342
|
-
}, /*#__PURE__*/React.createElement(StyledRadio, {
|
|
343
|
-
defaultValue: fieldData.row,
|
|
344
|
-
onChange: function onChange(e) {
|
|
345
|
-
return run('row', e.target.value);
|
|
346
|
-
}
|
|
347
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
348
|
-
value: 1
|
|
349
|
-
}, "1"), /*#__PURE__*/React.createElement(Radio, {
|
|
350
|
-
value: 2
|
|
351
|
-
}, "2"), /*#__PURE__*/React.createElement(Radio, {
|
|
352
|
-
value: 3
|
|
353
|
-
}, "3"), /*#__PURE__*/React.createElement(Radio, {
|
|
354
|
-
value: 4
|
|
355
|
-
}, "4"))), /*#__PURE__*/React.createElement(PanelItem, {
|
|
356
|
-
label: formatMessage({
|
|
357
|
-
id: "".concat(_I18N_PREFIX_, ".fieldNote"),
|
|
358
|
-
label: '字段注释'
|
|
359
|
-
})
|
|
360
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
361
|
-
defaultValue: fieldData.note,
|
|
362
|
-
onChange: function onChange(e) {
|
|
363
|
-
return runDebounce('note', e.target.value);
|
|
364
|
-
},
|
|
365
|
-
size: "small"
|
|
366
|
-
})), /*#__PURE__*/React.createElement(PanelItem, {
|
|
367
|
-
label: formatMessage({
|
|
368
|
-
id: "".concat(_I18N_PREFIX_, ".fieldTip"),
|
|
369
|
-
label: '长说明'
|
|
370
|
-
})
|
|
371
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
372
|
-
defaultValue: fieldData.tip,
|
|
373
|
-
onChange: function onChange(e) {
|
|
374
|
-
return runDebounce('tip', e.target.value);
|
|
375
|
-
},
|
|
376
|
-
size: "small"
|
|
377
|
-
})), /*#__PURE__*/React.createElement(PanelItem, {
|
|
378
|
-
label: formatMessage({
|
|
379
|
-
id: "".concat(_I18N_PREFIX_, ".placeholder"),
|
|
380
|
-
label: '默认提示'
|
|
381
|
-
})
|
|
382
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
383
|
-
defaultValue: fieldData.placeholder,
|
|
384
|
-
onChange: function onChange(e) {
|
|
385
|
-
return runDebounce('placeholder', e.target.value);
|
|
386
|
-
},
|
|
387
|
-
size: "small"
|
|
388
|
-
}))), !isBatch ? /*#__PURE__*/React.createElement(PanelItem, {
|
|
337
|
+
}, "4"))), !isBatch ? /*#__PURE__*/React.createElement(PanelItem, {
|
|
389
338
|
label: formatMessage({
|
|
390
339
|
id: "".concat(_I18N_PREFIX_, ".isEqual"),
|
|
391
340
|
label: '唯一校验'
|
|
@@ -4,8 +4,6 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { useRequest, useSetState, useDebounceFn, useMemoizedFn } from 'ahooks';
|
|
7
|
-
import { Modal } from 'luck-design/antd';
|
|
8
|
-
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
9
7
|
import { dropWhile, startsWith } from 'lodash';
|
|
10
8
|
import { useContext } from "../../../engine/provider/ContextProvider";
|
|
11
9
|
import SettingUI from "./SettingUI";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -28,7 +28,8 @@ var _DISPLAY_OPTIONS_ = [{
|
|
|
28
28
|
value: 'text'
|
|
29
29
|
}];
|
|
30
30
|
var ActionsEditor = function ActionsEditor(_ref) {
|
|
31
|
-
var
|
|
31
|
+
var nodeId = _ref.nodeId,
|
|
32
|
+
defaultValue = _ref.defaultValue,
|
|
32
33
|
onChange = _ref.onChange,
|
|
33
34
|
suppressDisplay = _ref.suppressDisplay,
|
|
34
35
|
suppressMax = _ref.suppressMax,
|
|
@@ -217,6 +218,7 @@ var ActionsEditor = function ActionsEditor(_ref) {
|
|
|
217
218
|
}));
|
|
218
219
|
})))), /*#__PURE__*/React.createElement(ActionBindModal, {
|
|
219
220
|
event: action,
|
|
221
|
+
nodeId: nodeId,
|
|
220
222
|
defaultCode: defaultCode,
|
|
221
223
|
onComfirm: function onComfirm(actionPool) {
|
|
222
224
|
return handleValueChange('action', _objectSpread(_objectSpread({}, omit(action, ['key'])), {}, {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Select } from 'luck-design/antd';
|
|
4
|
+
import { reduce, get } from 'lodash';
|
|
5
|
+
import { useContext } from "../../engine/provider/ContextProvider";
|
|
6
|
+
var ComponentSelector = function ComponentSelector(_ref) {
|
|
7
|
+
var nodeId = _ref.nodeId,
|
|
8
|
+
defaultValue = _ref.defaultValue,
|
|
9
|
+
_onChange = _ref.onChange,
|
|
10
|
+
filter = _ref.filter;
|
|
11
|
+
var ctx = useContext();
|
|
12
|
+
return /*#__PURE__*/React.createElement(Select, {
|
|
13
|
+
size: "small",
|
|
14
|
+
allowClear: true,
|
|
15
|
+
defaultValue: defaultValue,
|
|
16
|
+
onChange: function onChange(val) {
|
|
17
|
+
return _onChange(val);
|
|
18
|
+
}
|
|
19
|
+
}, reduce(ctx.componentList, function (ret, _ref2) {
|
|
20
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
|
21
|
+
compId = _ref3[0],
|
|
22
|
+
comp = _ref3[1];
|
|
23
|
+
if (compId !== nodeId && (!filter || filter.find(function (_ref4) {
|
|
24
|
+
var _ref5 = _slicedToArray(_ref4, 2),
|
|
25
|
+
key = _ref5[0],
|
|
26
|
+
val = _ref5[1];
|
|
27
|
+
return get(comp, key) === val;
|
|
28
|
+
}))) {
|
|
29
|
+
ret.push( /*#__PURE__*/React.createElement(Select.Option, {
|
|
30
|
+
value: compId
|
|
31
|
+
}, comp.meta.name || compId));
|
|
32
|
+
}
|
|
33
|
+
return ret;
|
|
34
|
+
}, []));
|
|
35
|
+
};
|
|
36
|
+
export default ComponentSelector;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
3
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
5
|
import React, { useEffect, useState } from 'react';
|
|
@@ -81,9 +82,11 @@ var DataSetSelector = function DataSetSelector(_ref) {
|
|
|
81
82
|
onChange(_ds, function (exe) {
|
|
82
83
|
var dsFields = res.data.dataSets[value];
|
|
83
84
|
exe(fieldsKey, dsFields.map(function (f) {
|
|
84
|
-
var
|
|
85
|
-
|
|
85
|
+
var restProps = {
|
|
86
|
+
fieldAliasName: f.fieldAliasName
|
|
87
|
+
};
|
|
86
88
|
if (['table', 'tableForm'].includes(component)) {
|
|
89
|
+
var _extra = JSON.parse(f.extra || '{}');
|
|
87
90
|
var alignMapping = {
|
|
88
91
|
0: 'left',
|
|
89
92
|
1: 'center',
|
|
@@ -92,10 +95,10 @@ var DataSetSelector = function DataSetSelector(_ref) {
|
|
|
92
95
|
restProps.align = alignMapping[_extra.scell_alignment];
|
|
93
96
|
restProps.headerAlign = alignMapping[_extra.sheading_alignment];
|
|
94
97
|
}
|
|
95
|
-
return {
|
|
98
|
+
return _objectSpread({
|
|
96
99
|
uid: f.uid,
|
|
97
100
|
field: f.field
|
|
98
|
-
};
|
|
101
|
+
}, restProps);
|
|
99
102
|
}));
|
|
100
103
|
});
|
|
101
104
|
setCurrentDataset(_ds);
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
-
var _excluded = ["fieldAliasName"];
|
|
5
3
|
import React, { useReducer, useState } from 'react';
|
|
6
|
-
import { useMemoizedFn, useRequest,
|
|
4
|
+
import { useMemoizedFn, useRequest, useCreation, useMap, useUpdateEffect } from 'ahooks';
|
|
7
5
|
import { Ellipsis } from 'luck-design';
|
|
8
6
|
import { Spin, Input, Tooltip, Icon, Checkbox, Drawer } from 'luck-design/antd';
|
|
9
7
|
import styled from 'styled-components';
|
|
@@ -14,11 +12,11 @@ import { SortBox, SortItem } from "../components/SortBox";
|
|
|
14
12
|
import { ListEditor, ListEditorItem } from "../components/ListEditor";
|
|
15
13
|
import FieldSetting from "../components/field-setting";
|
|
16
14
|
import BatchSetting from "../components/field-setting/BatchSetting";
|
|
17
|
-
import { fetchFieldsByDataset
|
|
15
|
+
import { fetchFieldsByDataset } from "../../constants/api-url";
|
|
18
16
|
import { listReducer, getLDMetaAttr } from "../../engine/tools/helper";
|
|
19
17
|
import styles from "../style/fields-setting.less";
|
|
20
18
|
var _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.fieldsSetting';
|
|
21
|
-
var _PICK_KEYS_ = ['id', 'uid', 'field', 'width', 'align', 'headerAlign', 'pinned', 'tip', 'col', 'row', 'note', 'placeholder', '
|
|
19
|
+
var _PICK_KEYS_ = ['id', 'uid', 'field', 'width', 'align', 'headerAlign', 'pinned', 'tip', 'col', 'row', 'note', 'placeholder', 'fieldAliasName'];
|
|
22
20
|
var Header = styled.div.withConfig({
|
|
23
21
|
displayName: "Header",
|
|
24
22
|
componentId: "luckda-6530__sc-gcwvp1-0"
|
|
@@ -89,9 +87,11 @@ var FieldsSetting = function FieldsSetting(_ref) {
|
|
|
89
87
|
return ret;
|
|
90
88
|
}, []), list.map(function (id) {
|
|
91
89
|
var _fieldData = detail[id];
|
|
92
|
-
var
|
|
93
|
-
|
|
90
|
+
var restProps = {
|
|
91
|
+
fieldAliasName: _fieldData.fieldAliasName
|
|
92
|
+
};
|
|
94
93
|
if (['table', 'tableForm'].includes(component)) {
|
|
94
|
+
var extra = JSON.parse(_fieldData.extra || '{}');
|
|
95
95
|
var alignMapping = {
|
|
96
96
|
0: 'left',
|
|
97
97
|
1: 'center',
|
|
@@ -123,46 +123,6 @@ var FieldsSetting = function FieldsSetting(_ref) {
|
|
|
123
123
|
return _fieldData._type === 'divider' ? _fieldData : pick(_fieldData, _PICK_KEYS_);
|
|
124
124
|
}));
|
|
125
125
|
});
|
|
126
|
-
var _useRequest2 = useRequest(fetchUpdateFieldAttrs, {
|
|
127
|
-
manual: true
|
|
128
|
-
}),
|
|
129
|
-
runUpdateFieldAttrs = _useRequest2.runAsync;
|
|
130
|
-
var _useDebounceFn = useDebounceFn(function (field, value) {
|
|
131
|
-
var _getLDMetaAttr = getLDMetaAttr(['moduleId', 'dataModelKey']),
|
|
132
|
-
_getLDMetaAttr2 = _slicedToArray(_getLDMetaAttr, 2),
|
|
133
|
-
moduleId = _getLDMetaAttr2[0],
|
|
134
|
-
dataModelKey = _getLDMetaAttr2[1];
|
|
135
|
-
runUpdateFieldAttrs({
|
|
136
|
-
dataModelKey: dataModelKey,
|
|
137
|
-
datasetBusinessUids: [field.uid],
|
|
138
|
-
fieldAliasName: value,
|
|
139
|
-
moduleDatasetUid: datasetUid,
|
|
140
|
-
moduleUid: moduleId,
|
|
141
|
-
scope: 'FIELD_ALIAS_NAME',
|
|
142
|
-
uid: field.uid
|
|
143
|
-
}).then(function () {
|
|
144
|
-
if (component === 'table') {
|
|
145
|
-
var gridApi = ctx.componentMap.get(nodeId).api.self.ref.current.gridApi;
|
|
146
|
-
var col = gridApi.columnApi.getColumn(field.field);
|
|
147
|
-
col.colDef.headerName = value;
|
|
148
|
-
gridApi.api.refreshHeader();
|
|
149
|
-
} else if (['form', 'tableForm'].includes(component)) {
|
|
150
|
-
handleChange(reduce(fields, function (ret, _ref4) {
|
|
151
|
-
var fieldAliasName = _ref4.fieldAliasName,
|
|
152
|
-
_field = _objectWithoutProperties(_ref4, _excluded);
|
|
153
|
-
if (fieldAliasName) {
|
|
154
|
-
ret.push(_objectSpread({
|
|
155
|
-
aliasName: fieldAliasName
|
|
156
|
-
}, _field));
|
|
157
|
-
}
|
|
158
|
-
return ret;
|
|
159
|
-
}, []));
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
}, {
|
|
163
|
-
wait: 500
|
|
164
|
-
}),
|
|
165
|
-
run = _useDebounceFn.run;
|
|
166
126
|
var handleSortChange = useMemoizedFn(function (sortItems, fromIndex, toIndex) {
|
|
167
127
|
dispatch({
|
|
168
128
|
type: 'sort',
|
|
@@ -184,9 +144,19 @@ var FieldsSetting = function FieldsSetting(_ref) {
|
|
|
184
144
|
data: {
|
|
185
145
|
fieldAliasName: value
|
|
186
146
|
}
|
|
147
|
+
},
|
|
148
|
+
callback: function callback(newFields) {
|
|
149
|
+
if (component === 'table') {
|
|
150
|
+
setTimeout(function () {
|
|
151
|
+
var gridApi = ctx.componentMap.get(nodeId).api.self.ref.current.gridApi;
|
|
152
|
+
var col = gridApi.columnApi.getColumn(field.field);
|
|
153
|
+
col.colDef.headerName = value;
|
|
154
|
+
gridApi.api.refreshHeader();
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
handleChange(newFields);
|
|
187
158
|
}
|
|
188
159
|
});
|
|
189
|
-
run(field, value);
|
|
190
160
|
});
|
|
191
161
|
var handleFieldCheckChange = useMemoizedFn(function (e) {
|
|
192
162
|
var _e$target = e.target,
|
|
@@ -220,7 +190,7 @@ var FieldsSetting = function FieldsSetting(_ref) {
|
|
|
220
190
|
uid: groupId,
|
|
221
191
|
id: groupId,
|
|
222
192
|
field: 'divider',
|
|
223
|
-
|
|
193
|
+
fieldName: 'Group',
|
|
224
194
|
_type: 'divider'
|
|
225
195
|
}
|
|
226
196
|
},
|
|
@@ -287,8 +257,8 @@ var FieldsSetting = function FieldsSetting(_ref) {
|
|
|
287
257
|
id: "".concat(_I18N_PREFIX_, ".title"),
|
|
288
258
|
label: '标题'
|
|
289
259
|
}))), /*#__PURE__*/React.createElement(SortBox, {
|
|
290
|
-
datas: fields.map(function (
|
|
291
|
-
var uid =
|
|
260
|
+
datas: fields.map(function (_ref4) {
|
|
261
|
+
var uid = _ref4.uid;
|
|
292
262
|
return uid;
|
|
293
263
|
}),
|
|
294
264
|
onChange: handleSortChange
|
|
@@ -12,7 +12,8 @@ var I18nInput = function I18nInput(_ref) {
|
|
|
12
12
|
return /*#__PURE__*/React.createElement(Input, {
|
|
13
13
|
defaultValue: defaultValue,
|
|
14
14
|
onChange: function onChange(e) {
|
|
15
|
-
|
|
15
|
+
var _e$target$value;
|
|
16
|
+
return run((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim());
|
|
16
17
|
},
|
|
17
18
|
size: size
|
|
18
19
|
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|