@luck-design-biz/luckda 1.0.2-4 → 1.0.2-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/Builder/index.js +2 -1
- package/es/components/Builder/index.js.map +1 -0
- package/es/components/ComplexItem/index.js +2 -1
- package/es/components/ComplexItem/index.js.map +1 -0
- package/es/components/ComplexItem/service.js +2 -1
- package/es/components/ComplexItem/service.js.map +1 -0
- package/es/components/IconFont/index.js +2 -1
- package/es/components/IconFont/index.js.map +1 -0
- package/es/components/LDActions/index.js +2 -1
- package/es/components/LDActions/index.js.map +1 -0
- package/es/components/LdAutoForm/index.js +2 -1
- package/es/components/LdAutoForm/index.js.map +1 -0
- package/es/components/LdCard/index.js +2 -1
- package/es/components/LdCard/index.js.map +1 -0
- package/es/components/LdCard/model.js +2 -1
- package/es/components/LdCard/model.js.map +1 -0
- package/es/components/LdCom/index.js +2 -1
- package/es/components/LdCom/index.js.map +1 -0
- package/es/components/LdFormList/index.js +2 -1
- package/es/components/LdFormList/index.js.map +1 -0
- package/es/components/LdFormList/model.js +2 -1
- package/es/components/LdFormList/model.js.map +1 -0
- package/es/components/LdGrid/index.js +2 -1
- package/es/components/LdGrid/index.js.map +1 -0
- package/es/components/LdGrid/model.js +2 -1
- package/es/components/LdGrid/model.js.map +1 -0
- package/es/components/LdGridForm/index.js +2 -1
- package/es/components/LdGridForm/index.js.map +1 -0
- package/es/components/LdInfoPanel/index.js +2 -1
- package/es/components/LdInfoPanel/index.js.map +1 -0
- package/es/components/LdPop/index.js +2 -1
- package/es/components/LdPop/index.js.map +1 -0
- package/es/components/LdTree/index.js +2 -1
- package/es/components/LdTree/index.js.map +1 -0
- package/es/helper/FromItems.js +2 -1
- package/es/helper/FromItems.js.map +1 -0
- package/es/helper/action.js +2 -1
- package/es/helper/action.js.map +1 -0
- package/es/helper/form.js +2 -1
- package/es/helper/form.js.map +1 -0
- package/es/helper/ldBuilder.js +2 -1
- package/es/helper/ldBuilder.js.map +1 -0
- package/es/helper/ldComBuild.js +2 -1
- package/es/helper/ldComBuild.js.map +1 -0
- package/es/helper/props_config.js +2 -1
- package/es/helper/props_config.js.map +1 -0
- package/es/index.js +2 -1
- package/es/index.js.map +1 -0
- package/es/locales/zh-CN.js +2 -1
- package/es/locales/zh-CN.js.map +1 -0
- package/es/lowcode/constants/api-url.js +2 -1
- package/es/lowcode/constants/api-url.js.map +1 -0
- package/es/lowcode/constants/event-topics.js +2 -1
- package/es/lowcode/constants/event-topics.js.map +1 -0
- package/es/lowcode/constants/index.js +2 -1
- package/es/lowcode/constants/index.js.map +1 -0
- package/es/lowcode/engine/factory/DataFactory.js +2 -1
- package/es/lowcode/engine/factory/DataFactory.js.map +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +2 -1
- package/es/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js.map +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +2 -1
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js.map +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +2 -1
- package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js.map +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +2 -1
- package/es/lowcode/engine/factory/panel-item-factory/NumberStrategy.js.map +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/RadioStrategy.js +2 -1
- package/es/lowcode/engine/factory/panel-item-factory/RadioStrategy.js.map +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +2 -1
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js.map +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +2 -1
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js.map +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +2 -1
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js.map +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +2 -1
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js.map +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +2 -1
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js.map +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/index.js +2 -1
- package/es/lowcode/engine/factory/panel-item-factory/index.js.map +1 -0
- package/es/lowcode/engine/launcher.js +2 -1
- package/es/lowcode/engine/launcher.js.map +1 -0
- package/es/lowcode/engine/provider/ContextProvider/index.js +2 -1
- package/es/lowcode/engine/provider/ContextProvider/index.js.map +1 -0
- package/es/lowcode/engine/provider/ContextProvider/router.js +2 -1
- package/es/lowcode/engine/provider/ContextProvider/router.js.map +1 -0
- package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js +2 -1
- package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js.map +1 -0
- package/es/lowcode/engine/provider/ContextProvider/usePageVar.js +2 -1
- package/es/lowcode/engine/provider/ContextProvider/usePageVar.js.map +1 -0
- package/es/lowcode/engine/provider/ContextProvider/useTodo.js +2 -1
- package/es/lowcode/engine/provider/ContextProvider/useTodo.js.map +1 -0
- package/es/lowcode/engine/provider/ContextProvider/utils.js +2 -1
- package/es/lowcode/engine/provider/ContextProvider/utils.js.map +1 -0
- package/es/lowcode/engine/provider/EventBusProvider.js +2 -1
- package/es/lowcode/engine/provider/EventBusProvider.js.map +1 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +2 -1
- package/es/lowcode/engine/provider/RemoteSourceProvider.js.map +1 -0
- package/es/lowcode/engine/tools/dataProcess.js +2 -1
- package/es/lowcode/engine/tools/dataProcess.js.map +1 -0
- package/es/lowcode/engine/tools/diff.js +2 -1
- package/es/lowcode/engine/tools/diff.js.map +1 -0
- package/es/lowcode/engine/tools/helper.js +2 -1
- package/es/lowcode/engine/tools/helper.js.map +1 -0
- package/es/lowcode/engine/tools/initDS.js +2 -1
- package/es/lowcode/engine/tools/initDS.js.map +1 -0
- package/es/lowcode/engine/tools/useCanvasRender.js +2 -1
- package/es/lowcode/engine/tools/useCanvasRender.js.map +1 -0
- package/es/lowcode/engine/tools/useCombinedRefs.js +2 -1
- package/es/lowcode/engine/tools/useCombinedRefs.js.map +1 -0
- package/es/lowcode/engine/tools/usePromiseState.js +2 -1
- package/es/lowcode/engine/tools/usePromiseState.js.map +1 -0
- package/es/lowcode/index.js +2 -1
- package/es/lowcode/index.js.map +1 -0
- package/es/lowcode/painter/Components.js +2 -1
- package/es/lowcode/painter/Components.js.map +1 -0
- package/es/lowcode/painter/Design.js +2 -1
- package/es/lowcode/painter/Design.js.map +1 -0
- package/es/lowcode/painter/DesignOperator.js +2 -1
- package/es/lowcode/painter/DesignOperator.js.map +1 -0
- package/es/lowcode/painter/DesignToolbar.js +2 -1
- package/es/lowcode/painter/DesignToolbar.js.map +1 -0
- package/es/lowcode/painter/I18n.js +2 -1
- package/es/lowcode/painter/I18n.js.map +1 -0
- package/es/lowcode/painter/Outline.js +2 -1
- package/es/lowcode/painter/Outline.js.map +1 -0
- package/es/lowcode/painter/Panel.js +2 -1
- package/es/lowcode/painter/Panel.js.map +1 -0
- package/es/lowcode/painter/Ribbon.js +2 -1
- package/es/lowcode/painter/Ribbon.js.map +1 -0
- package/es/lowcode/painter/components/ActionBindModal.js +2 -1
- package/es/lowcode/painter/components/ActionBindModal.js.map +1 -0
- package/es/lowcode/painter/components/AdvancePanel.js +2 -1
- package/es/lowcode/painter/components/AdvancePanel.js.map +1 -0
- package/es/lowcode/painter/components/AttrsPanel.js +2 -1
- package/es/lowcode/painter/components/AttrsPanel.js.map +1 -0
- package/es/lowcode/painter/components/Collapse.js +2 -1
- package/es/lowcode/painter/components/Collapse.js.map +1 -0
- package/es/lowcode/painter/components/ColorInput.js +2 -1
- package/es/lowcode/painter/components/ColorInput.js.map +1 -0
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +2 -1
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js.map +1 -0
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +2 -1
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js.map +1 -0
- package/es/lowcode/painter/components/DragDrop/Overlay.js +2 -1
- package/es/lowcode/painter/components/DragDrop/Overlay.js.map +1 -0
- package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +2 -1
- package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js.map +1 -0
- package/es/lowcode/painter/components/FieldSelector.js +2 -1
- package/es/lowcode/painter/components/FieldSelector.js.map +1 -0
- package/es/lowcode/painter/components/ListEditor.js +2 -1
- package/es/lowcode/painter/components/ListEditor.js.map +1 -0
- package/es/lowcode/painter/components/NumberInput.js +2 -1
- package/es/lowcode/painter/components/NumberInput.js.map +1 -0
- package/es/lowcode/painter/components/PanelItem.js +2 -1
- package/es/lowcode/painter/components/PanelItem.js.map +1 -0
- package/es/lowcode/painter/components/PopConfirm.js +2 -1
- package/es/lowcode/painter/components/PopConfirm.js.map +1 -0
- package/es/lowcode/painter/components/PopForm.js +2 -1
- package/es/lowcode/painter/components/PopForm.js.map +1 -0
- package/es/lowcode/painter/components/PreviewIframe.js +2 -1
- package/es/lowcode/painter/components/PreviewIframe.js.map +1 -0
- package/es/lowcode/painter/components/RuleInput.js +2 -1
- package/es/lowcode/painter/components/RuleInput.js.map +1 -0
- package/es/lowcode/painter/components/SortBox.js +2 -1
- package/es/lowcode/painter/components/SortBox.js.map +1 -0
- package/es/lowcode/painter/components/TipIcon.js +2 -1
- package/es/lowcode/painter/components/TipIcon.js.map +1 -0
- package/es/lowcode/painter/components/TreeEditor.js +2 -1
- package/es/lowcode/painter/components/TreeEditor.js.map +1 -0
- package/es/lowcode/painter/components/VarEditor.js +2 -1
- package/es/lowcode/painter/components/VarEditor.js.map +1 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +2 -1
- package/es/lowcode/painter/components/code-editor/BaseEditor.js.map +1 -0
- package/es/lowcode/painter/components/code-editor/CssEditor.js +2 -1
- package/es/lowcode/painter/components/code-editor/CssEditor.js.map +1 -0
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +2 -1
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js.map +1 -0
- package/es/lowcode/painter/components/code-editor/JSEditor.js +2 -1
- package/es/lowcode/painter/components/code-editor/JSEditor.js.map +1 -0
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +2 -1
- package/es/lowcode/painter/components/code-editor/JsonEditor.js.map +1 -0
- package/es/lowcode/painter/components/code-editor/VisionEditor.js +2 -1
- package/es/lowcode/painter/components/code-editor/VisionEditor.js.map +1 -0
- package/es/lowcode/painter/components/code-editor/index.js +2 -1
- package/es/lowcode/painter/components/code-editor/index.js.map +1 -0
- package/es/lowcode/painter/components/field-setting/BatchSetting.js +2 -1
- package/es/lowcode/painter/components/field-setting/BatchSetting.js.map +1 -0
- package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +2 -1
- package/es/lowcode/painter/components/field-setting/CheckFrontRules.js.map +1 -0
- package/es/lowcode/painter/components/field-setting/CheckRules.js +2 -1
- package/es/lowcode/painter/components/field-setting/CheckRules.js.map +1 -0
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +2 -1
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js.map +1 -0
- package/es/lowcode/painter/components/field-setting/FieldAttrsModal.js +2 -1
- package/es/lowcode/painter/components/field-setting/FieldAttrsModal.js.map +1 -0
- package/es/lowcode/painter/components/field-setting/FieldDefaultValue.js +2 -1
- package/es/lowcode/painter/components/field-setting/FieldDefaultValue.js.map +1 -0
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +2 -1
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js.map +1 -0
- package/es/lowcode/painter/components/field-setting/SettingUI.js +2 -1
- package/es/lowcode/painter/components/field-setting/SettingUI.js.map +1 -0
- package/es/lowcode/painter/components/field-setting/index.js +2 -1
- package/es/lowcode/painter/components/field-setting/index.js.map +1 -0
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +2 -1
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js.map +1 -0
- package/es/lowcode/painter/expect.js +2 -1
- package/es/lowcode/painter/expect.js.map +1 -0
- package/es/lowcode/painter/index.js +2 -1
- package/es/lowcode/painter/index.js.map +1 -0
- package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +2 -1
- package/es/lowcode/painter/panel-section/ActionsColumnWidth.js.map +1 -0
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +2 -1
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js.map +1 -0
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +2 -1
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js.map +1 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +2 -1
- package/es/lowcode/painter/panel-section/BlockEditor/index.js.map +1 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +2 -1
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js.map +1 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +2 -1
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js.map +1 -0
- package/es/lowcode/painter/panel-section/ButtonType.js +2 -1
- package/es/lowcode/painter/panel-section/ButtonType.js.map +1 -0
- package/es/lowcode/painter/panel-section/ComplexPop.js +2 -1
- package/es/lowcode/painter/panel-section/ComplexPop.js.map +1 -0
- package/es/lowcode/painter/panel-section/ComponentSelector.js +2 -1
- package/es/lowcode/painter/panel-section/ComponentSelector.js.map +1 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +2 -1
- package/es/lowcode/painter/panel-section/DataSetSelector.js.map +1 -0
- package/es/lowcode/painter/panel-section/FieldState.js +2 -1
- package/es/lowcode/painter/panel-section/FieldState.js.map +1 -0
- package/es/lowcode/painter/panel-section/FieldsSetting.js +2 -1
- package/es/lowcode/painter/panel-section/FieldsSetting.js.map +1 -0
- package/es/lowcode/painter/panel-section/GroupClassSelector.js +2 -1
- package/es/lowcode/painter/panel-section/GroupClassSelector.js.map +1 -0
- package/es/lowcode/painter/panel-section/I18nInput.js +2 -1
- package/es/lowcode/painter/panel-section/I18nInput.js.map +1 -0
- package/es/lowcode/painter/panel-section/Icon.js +2 -1
- package/es/lowcode/painter/panel-section/Icon.js.map +1 -0
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +2 -1
- package/es/lowcode/painter/panel-section/IconConditionSelector.js.map +1 -0
- package/es/lowcode/painter/panel-section/IconSelector.js +2 -1
- package/es/lowcode/painter/panel-section/IconSelector.js.map +1 -0
- package/es/lowcode/painter/panel-section/ImpExp.js +2 -1
- package/es/lowcode/painter/panel-section/ImpExp.js.map +1 -0
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +2 -1
- package/es/lowcode/painter/panel-section/ImpExpAlone.js.map +1 -0
- package/es/lowcode/painter/panel-section/JSEditor.js +9 -4
- package/es/lowcode/painter/panel-section/JSEditor.js.map +1 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +2 -1
- package/es/lowcode/painter/panel-section/LayoutRatio.js.map +1 -0
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +2 -1
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js.map +1 -0
- package/es/lowcode/painter/panel-section/PageVars.js +2 -1
- package/es/lowcode/painter/panel-section/PageVars.js.map +1 -0
- package/es/lowcode/painter/panel-section/SerialsSelector.js +2 -1
- package/es/lowcode/painter/panel-section/SerialsSelector.js.map +1 -0
- package/es/lowcode/painter/panel-section/SplitDisplay.js +2 -1
- package/es/lowcode/painter/panel-section/SplitDisplay.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/Border.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/Display.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/Font.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/Size.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js.map +1 -0
- package/es/lowcode/painter/panel-section/StylePanel/index.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/index.js.map +1 -0
- package/es/lowcode/painter/panel-section/TabItems.js +2 -1
- package/es/lowcode/painter/panel-section/TabItems.js.map +1 -0
- package/es/lowcode/painter/panel-section/TableTopFilter.js +2 -1
- package/es/lowcode/painter/panel-section/TableTopFilter.js.map +1 -0
- package/es/lowcode/painter/panel-section/TableZebra.js +2 -1
- package/es/lowcode/painter/panel-section/TableZebra.js.map +1 -0
- package/es/lowcode/painter/panel-section/TextContent.js +2 -1
- package/es/lowcode/painter/panel-section/TextContent.js.map +1 -0
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +2 -1
- package/es/lowcode/painter/panel-section/TreeRootEditor.js.map +1 -0
- package/es/lowcode/painter/panel-section/WidthHeight.js +2 -1
- package/es/lowcode/painter/panel-section/WidthHeight.js.map +1 -0
- package/es/lowcode/painter/services/I18n.js +2 -1
- package/es/lowcode/painter/services/I18n.js.map +1 -0
- package/es/lowcode/painter/services/complexPop.js +2 -1
- package/es/lowcode/painter/services/complexPop.js.map +1 -0
- package/es/lowcode/preview/index.js +2 -1
- package/es/lowcode/preview/index.js.map +1 -0
- package/es/lowcode/view/Canvas.js +2 -1
- package/es/lowcode/view/Canvas.js.map +1 -0
- package/es/lowcode/view/ErrorBoundary.js +17 -15
- package/es/lowcode/view/ErrorBoundary.js.map +1 -0
- package/es/lowcode/view/Loading.js +2 -1
- package/es/lowcode/view/Loading.js.map +1 -0
- package/es/lowcode/view/Page.js +2 -1
- package/es/lowcode/view/Page.js.map +1 -0
- package/es/lowcode/view/index.js +2 -1
- package/es/lowcode/view/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Box/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Box/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Box/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Box/index.js +2 -1
- package/es/lowcode/view/lc-components/Box/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Button/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Button/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Button/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Button/index.js +2 -1
- package/es/lowcode/view/lc-components/Button/index.js.map +1 -0
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/CardList/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/CardList/index.js +2 -1
- package/es/lowcode/view/lc-components/CardList/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +2 -1
- package/es/lowcode/view/lc-components/Dialog/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +2 -1
- package/es/lowcode/view/lc-components/Drawer/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Form/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Form/index.js +2 -1
- package/es/lowcode/view/lc-components/Form/index.js.map +1 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/GroupTree/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/GroupTree/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/GroupTree/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/GroupTree/index.js +2 -1
- package/es/lowcode/view/lc-components/GroupTree/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +2 -1
- package/es/lowcode/view/lc-components/Iframe/index.js.map +1 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +2 -1
- package/es/lowcode/view/lc-components/ImEx/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Image/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Image/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Image/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Image/index.js +2 -1
- package/es/lowcode/view/lc-components/Image/index.js.map +1 -0
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/JSX/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +7 -8
- package/es/lowcode/view/lc-components/JSX/RuntimeComp.js.map +1 -0
- package/es/lowcode/view/lc-components/JSX/index.js +2 -1
- package/es/lowcode/view/lc-components/JSX/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Layout/index.js +2 -1
- package/es/lowcode/view/lc-components/Layout/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Link/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Link/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Link/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Link/index.js +2 -1
- package/es/lowcode/view/lc-components/Link/index.js.map +1 -0
- package/es/lowcode/view/lc-components/PageContent/index.js +2 -1
- package/es/lowcode/view/lc-components/PageContent/index.js.map +1 -0
- package/es/lowcode/view/lc-components/PageFooter/index.js +2 -1
- package/es/lowcode/view/lc-components/PageFooter/index.js.map +1 -0
- package/es/lowcode/view/lc-components/PageHeader/index.js +2 -1
- package/es/lowcode/view/lc-components/PageHeader/index.js.map +1 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/PageLayout/index.js +2 -1
- package/es/lowcode/view/lc-components/PageLayout/index.js.map +1 -0
- package/es/lowcode/view/lc-components/PageModal/index.js +2 -1
- package/es/lowcode/view/lc-components/PageModal/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Section/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Section/index.js +2 -1
- package/es/lowcode/view/lc-components/Section/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Split/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Split/index.js +2 -1
- package/es/lowcode/view/lc-components/Split/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Table/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Table/components/TopFilter.js +2 -1
- package/es/lowcode/view/lc-components/Table/components/TopFilter.js.map +1 -0
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +2 -1
- package/es/lowcode/view/lc-components/Table/components/TopImex.js.map +1 -0
- package/es/lowcode/view/lc-components/Table/index.js +2 -1
- package/es/lowcode/view/lc-components/Table/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Tabs/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +2 -1
- package/es/lowcode/view/lc-components/Tabs/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Text/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Text/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Text/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Text/index.js +2 -1
- package/es/lowcode/view/lc-components/Text/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js.map +1 -0
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +2 -1
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js.map +1 -0
- package/es/lowcode/view/lc-components/Tree/FunctionPreview.js +2 -1
- package/es/lowcode/view/lc-components/Tree/FunctionPreview.js.map +1 -0
- package/es/lowcode/view/lc-components/Tree/index.js +2 -1
- package/es/lowcode/view/lc-components/Tree/index.js.map +1 -0
- package/es/lowcode/view/lc-components/Wrapper.js +2 -1
- package/es/lowcode/view/lc-components/Wrapper.js.map +1 -0
- package/es/services.js +2 -1
- package/es/services.js.map +1 -0
- package/es/upload/FilesWall/index.js +2 -1
- package/es/upload/FilesWall/index.js.map +1 -0
- package/es/upload/Form/gridForm.js +2 -1
- package/es/upload/Form/gridForm.js.map +1 -0
- package/es/upload/Form/index.js +2 -1
- package/es/upload/Form/index.js.map +1 -0
- package/es/upload/FormItem/index.js +2 -1
- package/es/upload/FormItem/index.js.map +1 -0
- package/es/upload/GridCell/index.js +2 -1
- package/es/upload/GridCell/index.js.map +1 -0
- package/es/upload/index.js +2 -1
- package/es/upload/index.js.map +1 -0
- package/es/utils/action.js +2 -1
- package/es/utils/action.js.map +1 -0
- package/es/utils/form.js +2 -1
- package/es/utils/form.js.map +1 -0
- package/es/utils/grid.js +2 -1
- package/es/utils/grid.js.map +1 -0
- package/es/utils/index.js +2 -1
- package/es/utils/index.js.map +1 -0
- package/lib/components/Builder/index.js +2 -1
- package/lib/components/Builder/index.js.map +1 -0
- package/lib/components/ComplexItem/index.js +2 -1
- package/lib/components/ComplexItem/index.js.map +1 -0
- package/lib/components/ComplexItem/service.js +2 -1
- package/lib/components/ComplexItem/service.js.map +1 -0
- package/lib/components/IconFont/index.js +2 -1
- package/lib/components/IconFont/index.js.map +1 -0
- package/lib/components/LDActions/index.js +2 -1
- package/lib/components/LDActions/index.js.map +1 -0
- package/lib/components/LdAutoForm/index.js +2 -1
- package/lib/components/LdAutoForm/index.js.map +1 -0
- package/lib/components/LdCard/index.js +2 -1
- package/lib/components/LdCard/index.js.map +1 -0
- package/lib/components/LdCard/model.js +2 -1
- package/lib/components/LdCard/model.js.map +1 -0
- package/lib/components/LdCom/index.js +2 -1
- package/lib/components/LdCom/index.js.map +1 -0
- package/lib/components/LdFormList/index.js +2 -1
- package/lib/components/LdFormList/index.js.map +1 -0
- package/lib/components/LdFormList/model.js +2 -1
- package/lib/components/LdFormList/model.js.map +1 -0
- package/lib/components/LdGrid/index.js +2 -1
- package/lib/components/LdGrid/index.js.map +1 -0
- package/lib/components/LdGrid/model.js +2 -1
- package/lib/components/LdGrid/model.js.map +1 -0
- package/lib/components/LdGridForm/index.js +2 -1
- package/lib/components/LdGridForm/index.js.map +1 -0
- package/lib/components/LdInfoPanel/index.js +2 -1
- package/lib/components/LdInfoPanel/index.js.map +1 -0
- package/lib/components/LdPop/index.js +2 -1
- package/lib/components/LdPop/index.js.map +1 -0
- package/lib/components/LdTree/index.js +2 -1
- package/lib/components/LdTree/index.js.map +1 -0
- package/lib/helper/FromItems.js +2 -1
- package/lib/helper/FromItems.js.map +1 -0
- package/lib/helper/action.js +2 -1
- package/lib/helper/action.js.map +1 -0
- package/lib/helper/form.js +2 -1
- package/lib/helper/form.js.map +1 -0
- package/lib/helper/ldBuilder.js +2 -1
- package/lib/helper/ldBuilder.js.map +1 -0
- package/lib/helper/ldComBuild.js +2 -1
- package/lib/helper/ldComBuild.js.map +1 -0
- package/lib/helper/props_config.js +2 -1
- package/lib/helper/props_config.js.map +1 -0
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -0
- package/lib/locales/zh-CN.js +2 -1
- package/lib/locales/zh-CN.js.map +1 -0
- package/lib/lowcode/constants/api-url.js +2 -1
- package/lib/lowcode/constants/api-url.js.map +1 -0
- package/lib/lowcode/constants/event-topics.js +2 -1
- package/lib/lowcode/constants/event-topics.js.map +1 -0
- package/lib/lowcode/constants/index.js +2 -1
- package/lib/lowcode/constants/index.js.map +1 -0
- package/lib/lowcode/engine/factory/DataFactory.js +2 -1
- package/lib/lowcode/engine/factory/DataFactory.js.map +1 -0
- package/lib/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +2 -1
- package/lib/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js.map +1 -0
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +2 -1
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js.map +1 -0
- package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +2 -1
- package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js.map +1 -0
- package/lib/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +2 -1
- package/lib/lowcode/engine/factory/panel-item-factory/NumberStrategy.js.map +1 -0
- package/lib/lowcode/engine/factory/panel-item-factory/RadioStrategy.js +2 -1
- package/lib/lowcode/engine/factory/panel-item-factory/RadioStrategy.js.map +1 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +2 -1
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js.map +1 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +2 -1
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js.map +1 -0
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +2 -1
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js.map +1 -0
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +2 -1
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js.map +1 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +2 -1
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js.map +1 -0
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +2 -1
- package/lib/lowcode/engine/factory/panel-item-factory/index.js.map +1 -0
- package/lib/lowcode/engine/launcher.js +2 -1
- package/lib/lowcode/engine/launcher.js.map +1 -0
- package/lib/lowcode/engine/provider/ContextProvider/index.js +2 -1
- package/lib/lowcode/engine/provider/ContextProvider/index.js.map +1 -0
- package/lib/lowcode/engine/provider/ContextProvider/router.js +2 -1
- package/lib/lowcode/engine/provider/ContextProvider/router.js.map +1 -0
- package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js +2 -1
- package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js.map +1 -0
- package/lib/lowcode/engine/provider/ContextProvider/usePageVar.js +2 -1
- package/lib/lowcode/engine/provider/ContextProvider/usePageVar.js.map +1 -0
- package/lib/lowcode/engine/provider/ContextProvider/useTodo.js +2 -1
- package/lib/lowcode/engine/provider/ContextProvider/useTodo.js.map +1 -0
- package/lib/lowcode/engine/provider/ContextProvider/utils.js +2 -1
- package/lib/lowcode/engine/provider/ContextProvider/utils.js.map +1 -0
- package/lib/lowcode/engine/provider/EventBusProvider.js +2 -1
- package/lib/lowcode/engine/provider/EventBusProvider.js.map +1 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +2 -1
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js.map +1 -0
- package/lib/lowcode/engine/tools/dataProcess.js +2 -1
- package/lib/lowcode/engine/tools/dataProcess.js.map +1 -0
- package/lib/lowcode/engine/tools/diff.js +2 -1
- package/lib/lowcode/engine/tools/diff.js.map +1 -0
- package/lib/lowcode/engine/tools/helper.js +2 -1
- package/lib/lowcode/engine/tools/helper.js.map +1 -0
- package/lib/lowcode/engine/tools/initDS.js +2 -1
- package/lib/lowcode/engine/tools/initDS.js.map +1 -0
- package/lib/lowcode/engine/tools/useCanvasRender.js +2 -1
- package/lib/lowcode/engine/tools/useCanvasRender.js.map +1 -0
- package/lib/lowcode/engine/tools/useCombinedRefs.js +2 -1
- package/lib/lowcode/engine/tools/useCombinedRefs.js.map +1 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +2 -1
- package/lib/lowcode/engine/tools/usePromiseState.js.map +1 -0
- package/lib/lowcode/index.js +2 -1
- package/lib/lowcode/index.js.map +1 -0
- package/lib/lowcode/painter/Components.js +2 -1
- package/lib/lowcode/painter/Components.js.map +1 -0
- package/lib/lowcode/painter/Design.js +2 -1
- package/lib/lowcode/painter/Design.js.map +1 -0
- package/lib/lowcode/painter/DesignOperator.js +2 -1
- package/lib/lowcode/painter/DesignOperator.js.map +1 -0
- package/lib/lowcode/painter/DesignToolbar.js +2 -1
- package/lib/lowcode/painter/DesignToolbar.js.map +1 -0
- package/lib/lowcode/painter/I18n.js +2 -1
- package/lib/lowcode/painter/I18n.js.map +1 -0
- package/lib/lowcode/painter/Outline.js +2 -1
- package/lib/lowcode/painter/Outline.js.map +1 -0
- package/lib/lowcode/painter/Panel.js +2 -1
- package/lib/lowcode/painter/Panel.js.map +1 -0
- package/lib/lowcode/painter/Ribbon.js +2 -1
- package/lib/lowcode/painter/Ribbon.js.map +1 -0
- package/lib/lowcode/painter/components/ActionBindModal.js +2 -1
- package/lib/lowcode/painter/components/ActionBindModal.js.map +1 -0
- package/lib/lowcode/painter/components/AdvancePanel.js +2 -1
- package/lib/lowcode/painter/components/AdvancePanel.js.map +1 -0
- package/lib/lowcode/painter/components/AttrsPanel.js +2 -1
- package/lib/lowcode/painter/components/AttrsPanel.js.map +1 -0
- package/lib/lowcode/painter/components/Collapse.js +2 -1
- package/lib/lowcode/painter/components/Collapse.js.map +1 -0
- package/lib/lowcode/painter/components/ColorInput.js +2 -1
- package/lib/lowcode/painter/components/ColorInput.js.map +1 -0
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +2 -1
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js.map +1 -0
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +2 -1
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js.map +1 -0
- package/lib/lowcode/painter/components/DragDrop/Overlay.js +2 -1
- package/lib/lowcode/painter/components/DragDrop/Overlay.js.map +1 -0
- package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +2 -1
- package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js.map +1 -0
- package/lib/lowcode/painter/components/FieldSelector.js +2 -1
- package/lib/lowcode/painter/components/FieldSelector.js.map +1 -0
- package/lib/lowcode/painter/components/ListEditor.js +2 -1
- package/lib/lowcode/painter/components/ListEditor.js.map +1 -0
- package/lib/lowcode/painter/components/NumberInput.js +2 -1
- package/lib/lowcode/painter/components/NumberInput.js.map +1 -0
- package/lib/lowcode/painter/components/PanelItem.js +2 -1
- package/lib/lowcode/painter/components/PanelItem.js.map +1 -0
- package/lib/lowcode/painter/components/PopConfirm.js +2 -1
- package/lib/lowcode/painter/components/PopConfirm.js.map +1 -0
- package/lib/lowcode/painter/components/PopForm.js +2 -1
- package/lib/lowcode/painter/components/PopForm.js.map +1 -0
- package/lib/lowcode/painter/components/PreviewIframe.js +2 -1
- package/lib/lowcode/painter/components/PreviewIframe.js.map +1 -0
- package/lib/lowcode/painter/components/RuleInput.js +2 -1
- package/lib/lowcode/painter/components/RuleInput.js.map +1 -0
- package/lib/lowcode/painter/components/SortBox.js +2 -1
- package/lib/lowcode/painter/components/SortBox.js.map +1 -0
- package/lib/lowcode/painter/components/TipIcon.js +2 -1
- package/lib/lowcode/painter/components/TipIcon.js.map +1 -0
- package/lib/lowcode/painter/components/TreeEditor.js +2 -1
- package/lib/lowcode/painter/components/TreeEditor.js.map +1 -0
- package/lib/lowcode/painter/components/VarEditor.js +2 -1
- package/lib/lowcode/painter/components/VarEditor.js.map +1 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +2 -1
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js.map +1 -0
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +2 -1
- package/lib/lowcode/painter/components/code-editor/CssEditor.js.map +1 -0
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +2 -1
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js.map +1 -0
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +2 -1
- package/lib/lowcode/painter/components/code-editor/JSEditor.js.map +1 -0
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +2 -1
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js.map +1 -0
- package/lib/lowcode/painter/components/code-editor/VisionEditor.js +2 -1
- package/lib/lowcode/painter/components/code-editor/VisionEditor.js.map +1 -0
- package/lib/lowcode/painter/components/code-editor/index.js +2 -1
- package/lib/lowcode/painter/components/code-editor/index.js.map +1 -0
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js +2 -1
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js.map +1 -0
- package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +2 -1
- package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js.map +1 -0
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +2 -1
- package/lib/lowcode/painter/components/field-setting/CheckRules.js.map +1 -0
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +2 -1
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js.map +1 -0
- package/lib/lowcode/painter/components/field-setting/FieldAttrsModal.js +2 -1
- package/lib/lowcode/painter/components/field-setting/FieldAttrsModal.js.map +1 -0
- package/lib/lowcode/painter/components/field-setting/FieldDefaultValue.js +2 -1
- package/lib/lowcode/painter/components/field-setting/FieldDefaultValue.js.map +1 -0
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +2 -1
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js.map +1 -0
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +2 -1
- package/lib/lowcode/painter/components/field-setting/SettingUI.js.map +1 -0
- package/lib/lowcode/painter/components/field-setting/index.js +2 -1
- package/lib/lowcode/painter/components/field-setting/index.js.map +1 -0
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +2 -1
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js.map +1 -0
- package/lib/lowcode/painter/expect.js +2 -1
- package/lib/lowcode/painter/expect.js.map +1 -0
- package/lib/lowcode/painter/index.js +2 -1
- package/lib/lowcode/painter/index.js.map +1 -0
- package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +2 -1
- package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js.map +1 -0
- package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +2 -1
- package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js.map +1 -0
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +2 -1
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js.map +1 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +2 -1
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js.map +1 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +2 -1
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js.map +1 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +2 -1
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js.map +1 -0
- package/lib/lowcode/painter/panel-section/ButtonType.js +2 -1
- package/lib/lowcode/painter/panel-section/ButtonType.js.map +1 -0
- package/lib/lowcode/painter/panel-section/ComplexPop.js +2 -1
- package/lib/lowcode/painter/panel-section/ComplexPop.js.map +1 -0
- package/lib/lowcode/painter/panel-section/ComponentSelector.js +2 -1
- package/lib/lowcode/painter/panel-section/ComponentSelector.js.map +1 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +2 -1
- package/lib/lowcode/painter/panel-section/DataSetSelector.js.map +1 -0
- package/lib/lowcode/painter/panel-section/FieldState.js +2 -1
- package/lib/lowcode/painter/panel-section/FieldState.js.map +1 -0
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +2 -1
- package/lib/lowcode/painter/panel-section/FieldsSetting.js.map +1 -0
- package/lib/lowcode/painter/panel-section/GroupClassSelector.js +2 -1
- package/lib/lowcode/painter/panel-section/GroupClassSelector.js.map +1 -0
- package/lib/lowcode/painter/panel-section/I18nInput.js +2 -1
- package/lib/lowcode/painter/panel-section/I18nInput.js.map +1 -0
- package/lib/lowcode/painter/panel-section/Icon.js +2 -1
- package/lib/lowcode/painter/panel-section/Icon.js.map +1 -0
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +2 -1
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js.map +1 -0
- package/lib/lowcode/painter/panel-section/IconSelector.js +2 -1
- package/lib/lowcode/painter/panel-section/IconSelector.js.map +1 -0
- package/lib/lowcode/painter/panel-section/ImpExp.js +2 -1
- package/lib/lowcode/painter/panel-section/ImpExp.js.map +1 -0
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +2 -1
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js.map +1 -0
- package/lib/lowcode/painter/panel-section/JSEditor.js +9 -4
- package/lib/lowcode/painter/panel-section/JSEditor.js.map +1 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +2 -1
- package/lib/lowcode/painter/panel-section/LayoutRatio.js.map +1 -0
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +2 -1
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js.map +1 -0
- package/lib/lowcode/painter/panel-section/PageVars.js +2 -1
- package/lib/lowcode/painter/panel-section/PageVars.js.map +1 -0
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +2 -1
- package/lib/lowcode/painter/panel-section/SerialsSelector.js.map +1 -0
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +2 -1
- package/lib/lowcode/painter/panel-section/SplitDisplay.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js.map +1 -0
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/index.js.map +1 -0
- package/lib/lowcode/painter/panel-section/TabItems.js +2 -1
- package/lib/lowcode/painter/panel-section/TabItems.js.map +1 -0
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +2 -1
- package/lib/lowcode/painter/panel-section/TableTopFilter.js.map +1 -0
- package/lib/lowcode/painter/panel-section/TableZebra.js +2 -1
- package/lib/lowcode/painter/panel-section/TableZebra.js.map +1 -0
- package/lib/lowcode/painter/panel-section/TextContent.js +2 -1
- package/lib/lowcode/painter/panel-section/TextContent.js.map +1 -0
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +2 -1
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js.map +1 -0
- package/lib/lowcode/painter/panel-section/WidthHeight.js +2 -1
- package/lib/lowcode/painter/panel-section/WidthHeight.js.map +1 -0
- package/lib/lowcode/painter/services/I18n.js +2 -1
- package/lib/lowcode/painter/services/I18n.js.map +1 -0
- package/lib/lowcode/painter/services/complexPop.js +2 -1
- package/lib/lowcode/painter/services/complexPop.js.map +1 -0
- package/lib/lowcode/preview/index.js +2 -1
- package/lib/lowcode/preview/index.js.map +1 -0
- package/lib/lowcode/view/Canvas.js +2 -1
- package/lib/lowcode/view/Canvas.js.map +1 -0
- package/lib/lowcode/view/ErrorBoundary.js +17 -15
- package/lib/lowcode/view/ErrorBoundary.js.map +1 -0
- package/lib/lowcode/view/Loading.js +2 -1
- package/lib/lowcode/view/Loading.js.map +1 -0
- package/lib/lowcode/view/Page.js +2 -1
- package/lib/lowcode/view/Page.js.map +1 -0
- package/lib/lowcode/view/index.js +2 -1
- package/lib/lowcode/view/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Box/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Box/index.js +2 -1
- package/lib/lowcode/view/lc-components/Box/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Button/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Button/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Button/index.js +2 -1
- package/lib/lowcode/view/lc-components/Button/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +2 -1
- package/lib/lowcode/view/lc-components/Dialog/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Form/index.js +2 -1
- package/lib/lowcode/view/lc-components/Form/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/GroupTree/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/GroupTree/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/GroupTree/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/GroupTree/index.js +2 -1
- package/lib/lowcode/view/lc-components/GroupTree/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Image/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Image/index.js +2 -1
- package/lib/lowcode/view/lc-components/Image/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +8 -7
- package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js.map +1 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +2 -1
- package/lib/lowcode/view/lc-components/JSX/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +2 -1
- package/lib/lowcode/view/lc-components/Layout/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Link/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Link/index.js +2 -1
- package/lib/lowcode/view/lc-components/Link/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/PageContent/index.js +2 -1
- package/lib/lowcode/view/lc-components/PageContent/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/PageFooter/index.js +2 -1
- package/lib/lowcode/view/lc-components/PageFooter/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/PageHeader/index.js +2 -1
- package/lib/lowcode/view/lc-components/PageHeader/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/PageLayout/index.js +2 -1
- package/lib/lowcode/view/lc-components/PageLayout/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/PageModal/index.js +2 -1
- package/lib/lowcode/view/lc-components/PageModal/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Section/index.js +2 -1
- package/lib/lowcode/view/lc-components/Section/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Split/index.js +2 -1
- package/lib/lowcode/view/lc-components/Split/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +2 -1
- package/lib/lowcode/view/lc-components/Table/components/TopFilter.js.map +1 -0
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +2 -1
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js.map +1 -0
- package/lib/lowcode/view/lc-components/Table/index.js +2 -1
- package/lib/lowcode/view/lc-components/Table/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Tabs/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +2 -1
- package/lib/lowcode/view/lc-components/Tabs/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Text/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Text/index.js +2 -1
- package/lib/lowcode/view/lc-components/Text/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js.map +1 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js.map +1 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Tree/FunctionPreview.js.map +1 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +2 -1
- package/lib/lowcode/view/lc-components/Tree/index.js.map +1 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +2 -1
- package/lib/lowcode/view/lc-components/Wrapper.js.map +1 -0
- package/lib/services.js +2 -1
- package/lib/services.js.map +1 -0
- package/lib/upload/FilesWall/index.js +2 -1
- package/lib/upload/FilesWall/index.js.map +1 -0
- package/lib/upload/Form/gridForm.js +2 -1
- package/lib/upload/Form/gridForm.js.map +1 -0
- package/lib/upload/Form/index.js +2 -1
- package/lib/upload/Form/index.js.map +1 -0
- package/lib/upload/FormItem/index.js +2 -1
- package/lib/upload/FormItem/index.js.map +1 -0
- package/lib/upload/GridCell/index.js +2 -1
- package/lib/upload/GridCell/index.js.map +1 -0
- package/lib/upload/index.js +2 -1
- package/lib/upload/index.js.map +1 -0
- package/lib/utils/action.js +2 -1
- package/lib/utils/action.js.map +1 -0
- package/lib/utils/form.js +2 -1
- package/lib/utils/form.js.map +1 -0
- package/lib/utils/grid.js +2 -1
- package/lib/utils/grid.js.map +1 -0
- package/lib/utils/index.js +2 -1
- package/lib/utils/index.js.map +1 -0
- package/package.json +1 -1
package/lib/lowcode/index.js
CHANGED
|
@@ -24,4 +24,5 @@ Object.defineProperty(exports, "View", {
|
|
|
24
24
|
});
|
|
25
25
|
var _painter = _interopRequireDefault(require("./painter"));
|
|
26
26
|
var _view = _interopRequireDefault(require("./view"));
|
|
27
|
-
var _preview = _interopRequireDefault(require("./preview"));
|
|
27
|
+
var _preview = _interopRequireDefault(require("./preview"));
|
|
28
|
+
//# sourceMappingURL=index.js
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_painter","_interopRequireDefault","require","_view","_preview"],"sources":["../../luckda/lowcode/index.js"],"sourcesContent":["export { default as Painter } from './painter';\nexport { default as View } from './view';\nexport { default as Preview } from './preview';"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_antd","_ahooks","_utils","_ContextProvider","_core","_components","_interopRequireDefault","_componentsList","_DragDropContext","_expect","TabPane","Tabs","Search","Input","BaseCom","_ref","onComponentClick","_useState","useState","_useState2","_slicedToArray2","default","searchTerm","setSearchTerm","handleSearch","useMemoizedFn","e","target","value","toLowerCase","filteredData","useCreation","data","map","group","_objectSpread2","components","filter","item","name","includes","desc","length","createElement","Fragment","className","styles","placeholder","formatMessage","id","label","onChange","key","groupName","CompItem","component","_ref2","_useDraggable","useDraggable","action","Action","ADD","attributes","listeners","transform","setNodeRef","_extends2","ref","onClick","Icon","type","icon","Components","_ref3","_ref3$dataset","dataset","context","useContext","$publisher","topics","COMPONENT_SETTING_CLICK","style","paddingTop","defaultActiveKey","tab","_default","exports"],"sources":["../../../luckda/lowcode/painter/Components.jsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { Icon, Input, Tabs } from 'luck-design/antd';\nimport { useMemoizedFn, useCreation } from 'ahooks';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport { useContext } from '../engine/provider/ContextProvider';\nimport { useDraggable } from '@dnd-kit/core';\nimport styles from './style/components.less';\nimport data from '../engine/meta/components-list.json';\nimport { Action } from './components/DragDrop/DragDropContext';\nimport Expect from './expect';\n\nconst { TabPane } = Tabs;\nconst { Search } = Input;\n\nconst BaseCom = ({ onComponentClick }) => {\n const [searchTerm, setSearchTerm] = useState('');\n\n const handleSearch = useMemoizedFn((e) => {\n setSearchTerm(e.target.value.toLowerCase());\n });\n\n const filteredData = useCreation(\n () =>\n data\n .map((group) => ({\n ...group,\n components: group.components.filter(\n (item) =>\n item.name.toLowerCase().includes(searchTerm) ||\n item.desc.toLowerCase().includes(searchTerm),\n ),\n }))\n .filter((group) => group.components.length > 0),\n [searchTerm],\n );\n\n return (\n <>\n <div className={styles['components-search']}>\n <Search\n placeholder={formatMessage({\n id: 'luckda.lowcode.painter.components.search',\n label: '搜索组件',\n })}\n onChange={handleSearch}\n />\n </div>\n\n <div className={styles['components-content']}>\n {filteredData.map((group) => (\n <div key={group.group} className={styles['components-wrapper']}>\n <h3>{group.groupName}</h3>\n {group.components.map((item) => (\n <CompItem key={item.component} item={item} onComponentClick={onComponentClick} />\n ))}\n </div>\n ))}\n </div>\n </>\n );\n};\n\nconst CompItem = ({ item, onComponentClick }) => {\n // console.log('CompItem', item.component);\n const { attributes, listeners, transform, setNodeRef } = useDraggable({\n id: 'comlist-' + item.component,\n data: {\n component: item,\n action: Action.ADD,\n },\n });\n\n return (\n <div\n ref={setNodeRef}\n {...listeners}\n {...attributes}\n key={item.component}\n className={styles['components-item']}\n onClick={() => onComponentClick(item)}\n >\n <div className={styles['icon-wrapper']}>\n <Icon type={item.icon || 'home'} />\n </div>\n <div className={styles['text-content']}>\n <span>{item.name}</span>\n </div>\n </div>\n );\n};\n\n/**\n * 组件清单\n */\nconst Components = ({ dataset = 'test' }) => {\n const context = useContext();\n\n const onComponentClick = useMemoizedFn((data) => {\n context.$publisher(context.topics.COMPONENT_SETTING_CLICK, { data });\n });\n\n if (!dataset)\n return (\n <div className={styles['lc-painter-components']} style={{ paddingTop: '16px' }}>\n <BaseCom onComponentClick={onComponentClick} />\n </div>\n );\n\n return (\n <div className={styles['lc-painter-components']}>\n <Tabs defaultActiveKey=\"base\">\n <TabPane\n tab={formatMessage({ id: 'ccm.dev.page.set.components.base', label: '基础组件' })}\n key=\"base\"\n >\n <BaseCom onComponentClick={onComponentClick} />\n </TabPane>\n <TabPane\n tab={formatMessage({ id: 'ccm.dev.page.set.components.custom', label: '自定义组件' })}\n key=\"dataset\"\n >\n <Expect style={{ paddingTop: '80px' }} />\n </TabPane>\n </Tabs>\n </div>\n );\n};\n\nexport default Components;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAC,sBAAA,CAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAD,sBAAA,CAAAP,OAAA;AACA,IAAAS,gBAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAH,sBAAA,CAAAP,OAAA;AAEA,IAAQW,OAAO,GAAKC,UAAI,CAAhBD,OAAO;AACf,IAAQE,MAAM,GAAKC,WAAK,CAAhBD,MAAM;AAEd,IAAME,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|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_umi","_ahooks","_moment","_interopRequireDefault","_antd","_utils","_ContextProvider","_DesignToolbar","_DesignOperator","_Page","_design","Design","_localeInfo$locale","simulatorRef","useRef","_useState","useState","getLocale","_useState2","_slicedToArray2","default","locale","setLocale","_useState3","getIntl","_useState4","intl","setIntl","unblock","useMemoizedFn","getNeedPrompt","confirm","concat","formatMessage","id","label","handleBeforeUnload","event","preventDefault","returnValue","useEffect","window","addEventListener","history","block","removeEventListener","handleLangChange","_locale","moment","_localeInfo$_locale","localeInfo","momentLocale","createElement","className","styles","onLangChange","canvas","ConfigProvider","antd","RawIntlProvider","value","ref","_default","exports"],"sources":["../../../luckda/lowcode/painter/Design.jsx"],"sourcesContent":["import React, { useRef, useState, useEffect } from 'react';\nimport { RawIntlProvider, getLocale, getIntl, localeInfo, history } from 'umi';\nimport { useMemoizedFn } from 'ahooks';\nimport moment from 'moment';\nimport { ConfigProvider } from 'luck-design/antd';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport { getNeedPrompt } from '../engine/provider/ContextProvider';\nimport DesignToolbar from './DesignToolbar';\nimport DesignOperator from './DesignOperator';\nimport Page from '../view/Page';\nimport styles from './style/design.less';\n\nconst Design = () => {\n const simulatorRef = useRef(null);\n\n const [locale, setLocale] = useState(() => getLocale());\n const [intl, setIntl] = useState(() => getIntl(getLocale(), true));\n\n const unblock = useMemoizedFn(() => {\n if (getNeedPrompt())\n return confirm(\n `${formatMessage({\n id: 'app.base.operate.comfire.leave',\n label: '离开当前页面?',\n })}\\n${formatMessage({\n id: 'app.base.operate.comfire.message.leave',\n label: '系统可能不会保存您所做的更改。',\n })}`,\n );\n return true;\n });\n\n const handleBeforeUnload = useMemoizedFn((event) => {\n if (getNeedPrompt()) {\n event.preventDefault();\n event.returnValue = null;\n return null;\n }\n });\n\n useEffect(() => {\n window.addEventListener('beforeunload', handleBeforeUnload);\n history.block(() => unblock());\n\n return () => {\n window.removeEventListener('beforeunload', handleBeforeUnload);\n history.block(() => true);\n };\n }, []);\n\n const handleLangChange = useMemoizedFn((_locale) => {\n if (moment?.locale) {\n moment.locale(localeInfo[_locale]?.momentLocale || 'en');\n }\n setLocale(_locale);\n setIntl(getIntl(_locale));\n });\n\n return (\n <div className={styles['lc-painter-design']}>\n <DesignToolbar locale={locale} onLangChange={handleLangChange} />\n <div id=\"design-workspace\" className={styles['lc-painter-design-workspace']}>\n <DesignOperator canvas={simulatorRef} />\n <ConfigProvider locale={localeInfo[locale]?.antd || {}}>\n <RawIntlProvider value={intl}>\n <Page ref={simulatorRef} className={styles['lc-painter-design-simulator']} />\n </RawIntlProvider>\n </ConfigProvider>\n </div>\n </div>\n );\n};\n\nexport default Design;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,eAAA,GAAAL,sBAAA,CAAAJ,OAAA;AACA,IAAAU,KAAA,GAAAN,sBAAA,CAAAJ,OAAA;AACA,IAAAW,OAAA,GAAAP,sBAAA,CAAAJ,OAAA;AAEA,IAAMY,MAAM,GAAG,SAATA,MAAMA,CAAA,EAAS;EAAA,IAAAC,kBAAA;EACnB,IAAMC,YAAY,GAAG,IAAAC,aAAM,EAAC,IAAI,CAAC;EAEjC,IAAAC,SAAA,GAA4B,IAAAC,eAAQ,EAAC;MAAA,OAAM,IAAAC,cAAS,EAAC,CAAC;IAAA,EAAC;IAAAC,UAAA,OAAAC,eAAA,CAAAC,OAAA,EAAAL,SAAA;IAAhDM,MAAM,GAAAH,UAAA;IAAEI,SAA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AG,EAAEhD,YAAa;IAACwC,SAAS,EAAEC,eAAM,CAAC,6BAA6B;EAAE,CAAE,CAC7D,CACH,CACb,CACF,CAAC;AAEV,CAAC;AAAC,IAAAQ,QAAA,GAAAC,OAAA,CAAA3C,OAAA,GAEaT,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_lodash","_ahooks","_antd","_classnames","_interopRequireDefault","_utils","_ContextProvider","_constants","_design","_MODAL_COMPONENT_","getOperatorStyle","canvas","cellNode","_canvas$getBoundingCl","getBoundingClientRect","pageLeft","left","pageTop","top","_cellNode$getBounding","cellNodeLeft","cellNodeTop","concat","width","offsetWidth","height","offsetHeight","DesignOperator","_ref","_getElement2","context","useContext","size","useSize","_useState","useState","suid","_useState2","_slicedToArray2","default","positionKey","setPositionKey","_useSetState","useSetState","selector","detector","_useSetState2","operatorId","setOperatorId","lastSelectorId","useLatest","currentModal","useRef","getElement","useMemoizedFn","_target","_context$componentMap","isString","componentMap","get","api","getSelfDom","handleSelect","$publisher","topics","COMPONENT_ACTIVE","target","handleHover","COMPONENT_HOVER","handleDelete","_ref2","id","COMPONENT_DELETE","addComponent","data","targetId","$subscriber","COMPONENT_MOUNT","once","_ref3","mountCompId","_id","COMPONENT_APPEND","setTimeout","watch","json","component","toLowerCase","addNode","acticeProps","useCreation","isNil","selectorTarget","ancestorId","levelNodes","getLevelNodes","_operatorId$selectorT","label","push","name","props","last","menu","createElement","className","styles","onMouseLeave","reverse","initial","map","m","key","onClick","onMouseOver","activeDomPosition","_getElement","_canvas$current","targetTop","element","delat","current","lastDetectorName","_last","useKeyPress","deletable","e","preventDefault","DESIGN_OPERATE_SAVE","useEventListener","event","elem","targetFormItem","closest","LC_COMPONENT_UNIT_KEY","LC_FORMITEM_UNIT","targetCell","LC_COMPONENT_UNIT","targetCellId","_fieldName","getAttribute","_fieldLabel","_masterId","_ancestorId","_ancestor","ancestorData","getSelfData","blockIndex","blocks","findIndex","b","fieldIndex","fields","f","field","masterId","keyPath","useEffect","csid","COMPONENT_SETTING_CLICK","on","_ref4","includes","_ref5","compId","COMPONENT_MODAL_TOGGLE","toggle","LC_BUILDIN_UNIT_KEY","PAGE_ROOT","message","info","CONTAINER_UNITS","meta","hcid","payload","detectorSide","side","acid","node","buildIn","cmtid","_ref6","style","setProperty","_modal","_prevModal","doClose","doOpen","_canvas$current2","removeProperty","cdid","_ref7","deleteNode","$unsubscriber","MODAL_OPEN","crid","COMPONENT_REPOSITIONING","Fragment","classNames","offsetTop","Dropdown","overlay","placement","Icon","type","_default","exports"],"sources":["../../../luckda/lowcode/painter/DesignOperator.jsx"],"sourcesContent":["import React, { useRef, useEffect, useState } from 'react';\nimport { last, initial } from 'lodash';\nimport {\n useEventListener,\n useSetState,\n useMemoizedFn,\n useCreation,\n useSize,\n useLatest,\n useKeyPress,\n} from 'ahooks';\nimport { Icon, Dropdown, message } from 'luck-design/antd';\nimport { reverse, isString, isNil } from 'lodash';\nimport classNames from 'classnames';\nimport { suid } from '@luck-design-biz/base/utils';\nimport { useContext, addNode, deleteNode } from '../engine/provider/ContextProvider';\nimport {\n LC_BUILDIN_UNIT_KEY,\n LC_COMPONENT_UNIT_KEY,\n LC_COMPONENT_UNIT,\n LC_FORMITEM_UNIT,\n CONTAINER_UNITS,\n} from '../constants';\nimport styles from './style/design.less';\n\nconst _MODAL_COMPONENT_ = ['Dialog', 'Drawer'];\n\nconst getOperatorStyle = (canvas, cellNode) => {\n if (!cellNode) return {};\n const { left: pageLeft, top: pageTop } = canvas.getBoundingClientRect();\n const { left: cellNodeLeft, top: cellNodeTop } = cellNode.getBoundingClientRect();\n return {\n left: `${cellNodeLeft - pageLeft}px`,\n top: `${cellNodeTop - pageTop}px`,\n width: `${cellNode.offsetWidth}px`,\n height: `${cellNode.offsetHeight}px`,\n };\n};\n\nconst DesignOperator = ({ canvas }) => {\n const context = useContext();\n\n const size = useSize(canvas);\n\n const [positionKey, setPositionKey] = useState(suid());\n const [operatorId, setOperatorId] = useSetState({ selector: null, detector: null });\n\n const lastSelectorId = useLatest(operatorId.selector);\n const currentModal = useRef(null);\n\n const getElement = useMemoizedFn((_target) =>\n isString(_target) ? context.componentMap.get(_target)?.api.getSelfDom() : _target,\n );\n\n const handleSelect = useMemoizedFn((_target) => {\n context.$publisher(context.topics.COMPONENT_ACTIVE, _target ? { target: _target } : null);\n });\n\n const handleHover = useMemoizedFn((_target) => {\n context.$publisher(context.topics.COMPONENT_HOVER, _target ? { target: _target } : null);\n });\n\n const handleDelete = useMemoizedFn(({ id }) => {\n context.$publisher(context.topics.COMPONENT_DELETE, { id });\n });\n\n const addComponent = useMemoizedFn((data, targetId) => {\n context\n .$subscriber(context.topics.COMPONENT_MOUNT)\n .once(({ id: mountCompId }) => {\n if (mountCompId === _id) {\n context.$publisher(context.topics.COMPONENT_APPEND, { id: _id });\n setTimeout(() => {\n handleSelect(_id);\n });\n }\n })\n .watch();\n const json = require(`../engine/meta/${data.component.toLowerCase()}.props.default.json`);\n const _id = `${data.component.toLowerCase()}_${suid()}`;\n addNode(targetId, _id, json);\n });\n\n const acticeProps = useCreation(() => {\n if (!operatorId.selector) return null;\n\n const _id = isNil(operatorId.selectorTarget)\n ? operatorId.selector\n : operatorId.selectorTarget.ancestorId;\n const levelNodes = context.componentMap.get(_id).api.getLevelNodes();\n if (operatorId.selectorTarget) {\n const { id, label } = operatorId.selectorTarget;\n levelNodes.push({ id, name: label });\n }\n return {\n props: last(levelNodes),\n menu: (\n <div className={styles['next-overlay-wrapper']} onMouseLeave={() => handleHover()}>\n {reverse(initial(levelNodes)).map((m) => (\n <div key={m.id}>\n <span onClick={() => handleSelect(m.id)} onMouseOver={() => handleHover(m.id)}>\n {m.name}\n </span>\n </div>\n ))}\n </div>\n ),\n };\n }, [operatorId.selector]);\n\n const activeDomPosition = useCreation(() => {\n if (!operatorId.selector && !operatorId.selectorTarget) return null;\n const targetTop = getElement(\n isNil(operatorId.selectorTarget) ? operatorId.selector : operatorId.selectorTarget.element,\n )?.getBoundingClientRect().top;\n const delat = targetTop - (canvas.current?.getBoundingClientRect().top || 0);\n return { top: delat > 24 ? -24 : 0 };\n }, [operatorId.selector, operatorId.selectorTarget]);\n\n const lastDetectorName = useCreation(\n () =>\n operatorId.detector && isString(operatorId.detector)\n ? last(context.componentMap.get(operatorId.detector).api.getLevelNodes())?.name\n : void 0,\n [operatorId.detector],\n );\n\n useKeyPress(\n 'backspace',\n () => {\n if (operatorId.selector && operatorId.deletable) {\n handleDelete({ id: operatorId.selector });\n }\n },\n {\n target: canvas,\n },\n );\n\n useKeyPress('ctrl.s', (e) => {\n e.preventDefault();\n context.$publisher(context.topics.DESIGN_OPERATE_SAVE);\n });\n\n useEventListener(\n 'mousemove',\n (event) => {\n const elem = event.target;\n const targetFormItem = elem.closest(`[${LC_COMPONENT_UNIT_KEY}=\"${LC_FORMITEM_UNIT}\"]`);\n if (targetFormItem) {\n handleHover(targetFormItem);\n return;\n }\n const targetCell = elem.closest(`[${LC_COMPONENT_UNIT_KEY}=\"${LC_COMPONENT_UNIT}\"]`);\n const targetCellId = targetCell?.id;\n if (\n targetCellId &&\n targetCellId !== operatorId.detector &&\n targetCellId !== operatorId.selector\n ) {\n handleHover(targetCellId);\n } else if (!targetCell || targetCellId === operatorId.selector) {\n handleHover();\n }\n },\n { target: canvas },\n );\n\n useEventListener(\n 'mouseleave',\n () => {\n if (operatorId.detector) {\n handleHover();\n }\n },\n { target: canvas },\n );\n\n useEventListener(\n 'click',\n (event) => {\n const elem = event.target;\n const targetFormItem = elem.closest(`[${LC_COMPONENT_UNIT_KEY}=\"${LC_FORMITEM_UNIT}\"]`);\n if (targetFormItem) {\n const _fieldName = targetFormItem.getAttribute('data-__field');\n const _fieldLabel = targetFormItem.getAttribute('data-__label');\n const _masterId = targetFormItem.getAttribute('data-__master');\n const _ancestorId = targetFormItem\n .closest(`[${LC_COMPONENT_UNIT_KEY}=\"${LC_COMPONENT_UNIT}\"]`)\n .getAttribute('id');\n const _ancestor = context.componentMap.get(_ancestorId);\n const ancestorData = _ancestor.api.getSelfData();\n const blockIndex = ancestorData.props.blocks.findIndex((b) => b.id === _masterId);\n const fieldIndex = ancestorData.props.blocks[blockIndex].fields.findIndex(\n (f) => f.field === _fieldName,\n );\n const _target = {\n element: targetFormItem,\n id: `${_ancestorId}.${_masterId}.${_fieldName}`,\n field: _fieldName,\n label: _fieldLabel,\n masterId: _masterId,\n ancestorId: _ancestorId,\n keyPath: `blocks[${blockIndex}].fields[${fieldIndex}]`,\n };\n handleHover();\n handleSelect(_target);\n return;\n }\n const targetCell = elem.closest(`[${LC_COMPONENT_UNIT_KEY}=\"${LC_COMPONENT_UNIT}\"]`);\n const targetCellId = targetCell?.id;\n if (!targetCellId || targetCellId === operatorId.selector) return;\n handleHover();\n handleSelect(targetCell.id);\n },\n { target: canvas },\n );\n\n useEffect(() => {\n const csid = context\n .$subscriber(context.topics.COMPONENT_SETTING_CLICK)\n .on(({ data }) => {\n if (_MODAL_COMPONENT_.includes(data.component)) {\n context\n .$subscriber(context.topics.COMPONENT_APPEND)\n .once(({ id: compId }) => {\n context.$publisher(context.topics.COMPONENT_MODAL_TOGGLE, {\n toggle: true,\n id: compId,\n });\n handleSelect(compId);\n })\n .watch();\n addComponent(data, LC_BUILDIN_UNIT_KEY.PAGE_ROOT);\n return;\n }\n if (!lastSelectorId.current) {\n message.info('请在右侧画布选择节点');\n return;\n }\n if (\n !CONTAINER_UNITS.includes(context.componentMap.get(lastSelectorId.current).meta.component)\n ) {\n message.info('该节点不支持添加子节点');\n return;\n }\n addComponent(data, lastSelectorId.current);\n })\n .watch();\n const hcid = context\n .$subscriber(context.topics.COMPONENT_HOVER)\n .on((payload) => {\n if (payload.target) setOperatorId({ detector: payload.target, detectorSide: payload.side });\n else setOperatorId({ detector: null, detectorSide: null });\n })\n .watch();\n const acid = context\n .$subscriber(context.topics.COMPONENT_ACTIVE)\n .on((payload) => {\n if (payload.target) {\n if (isString(payload.target)) {\n const node = context.componentMap.get(payload.target).api.getSelfData();\n setOperatorId({\n selector: payload.target,\n selectorTarget: null,\n deletable: !node || node.props.buildIn !== true,\n detector: null,\n detectorSide: null,\n });\n } else {\n setOperatorId({\n selector: payload.target.id,\n selectorTarget: payload.target,\n deletable: false,\n detector: null,\n detectorSide: null,\n });\n }\n } else {\n setOperatorId({ selector: null, selectorTarget: null });\n }\n })\n .watch();\n const cmtid = context\n .$subscriber(context.topics.COMPONENT_MODAL_TOGGLE)\n .on(({ toggle, id }) => {\n if (toggle && id !== currentModal.current) {\n canvas.current.style.setProperty('overflow', 'hidden');\n const _modal = context.componentMap.get(id);\n const _prevModal = currentModal.current\n ? context.componentMap.get(currentModal.current)\n : null;\n _prevModal?.api.doClose();\n _modal.api.doOpen();\n currentModal.current = id;\n } else if (!toggle) {\n canvas.current?.style.removeProperty('overflow');\n const _id = id || currentModal.current;\n if (_id) {\n const _modal = context.componentMap.get(_id);\n _modal.api.doClose();\n currentModal.current = void 0;\n }\n }\n })\n .watch();\n const cdid = context.$subscriber(context.topics.COMPONENT_DELETE).on(({ id }) => {\n if (lastSelectorId.current === id) {\n handleSelect();\n }\n deleteNode(id);\n });\n return () => {\n context.$unsubscriber(context.topics.COMPONENT_SETTING_CLICK, csid);\n context.$unsubscriber(context.topics.COMPONENT_HOVER, hcid);\n context.$unsubscriber(context.topics.COMPONENT_ACTIVE, acid);\n context.$unsubscriber(context.topics.MODAL_OPEN, cmtid);\n context.$unsubscriber(context.topics.COMPONENT_DELETE, cdid);\n };\n }, []);\n\n useEffect(() => {\n const crid = context\n .$subscriber(context.topics.COMPONENT_REPOSITIONING)\n .on((payload) => {\n if (payload.id === operatorId.selector) setPositionKey(suid());\n })\n .watch();\n return () => {\n context.$unsubscriber(context.topics.COMPONENT_REPOSITIONING, crid);\n };\n }, [operatorId.selector]);\n\n return (\n <>\n {operatorId.detector && (\n <div\n id=\"lc-detector\"\n className={classNames(styles['lc-painter-design-detector'], styles[`sider-${operatorId.detectorSide}`])}\n style={getOperatorStyle(canvas.current, getElement(operatorId.detector))}\n >\n <span\n className={styles['lc-painter-design-detector-name']}\n style={{\n top: getElement(operatorId.detector)?.offsetTop < 23 ? 0 : '-23px',\n }}\n >\n {lastDetectorName ? `${lastDetectorName}(${operatorId.detector})` : null}\n </span>\n </div>\n )}\n {operatorId.selector && (\n <div\n id=\"lc-selector\"\n key={`${size?.width || 0}-${size?.height || 0}-${positionKey}`}\n className={styles['lc-painter-design-selector']}\n style={getOperatorStyle(\n canvas.current,\n getElement(\n isNil(operatorId.selectorTarget)\n ? operatorId.selector\n : operatorId.selectorTarget.element,\n ),\n )}\n >\n {acticeProps && (\n <div className={styles['lc-borders-actions']} style={activeDomPosition}>\n <Dropdown overlay={acticeProps.menu} placement=\"bottomLeft\">\n <div className=\"instance-node-selector\">{acticeProps.props.name}</div>\n </Dropdown>\n {operatorId.deletable && (\n <div onClick={() => handleDelete(acticeProps.props)}>\n <Icon type=\"delete\" />\n </div>\n )}\n </div>\n )}\n </div>\n )}\n </>\n );\n};\n\nexport default DesignOperator;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AASA,IAAAG,KAAA,GAAAH,OAAA;AAEA,IAAAI,WAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAOA,IAAAS,OAAA,GAAAJ,sBAAA,CAAAL,OAAA;AAEA,IAAMU,iBAAiB,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC;AAE9C,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,MAAM,EAAEC,QAAQ,EAAK;EAC7C,IAAI,CAACA,QAAQ,EAAE,OAAO,CAAC,CAAC;EACxB,IAAAC,qBAAA,GAAyCF,MAAM,CAACG,q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AW,CAACW,KAAK,CAACD,IAAU,CAC7D,CAAC,EACVpD,UAAU,CAAC6E,SAAS,iBACnB/H,MAAA,CAAA0C,OAAA,CAAAgE,aAAA;IAAKS,OAAO,EAAE,SAAAA,QAAA;MAAA,OAAM3C,YAAY,CAACoB,WAAW,CAACW,KAAK,CAAC;IAAA;EAAC,gBAClDvG,MAAA,CAAA0C,OAAA,CAAAgE,aAAA,CAACrG,KAAA,CAAAwM,IAAI;IAACC,IAAI,EAAC;EAAQ,CAAE,CAClB,CAEJ,CAEJ,CAEP,CAAC;AAEP,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAtK,OAAA,GAEaZ,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_umi","_classnames","_interopRequireDefault","_ahooks","_antd","_utils","_ContextProvider","_JsonEditor","_PreviewIframe","_constants","_design","_apiUrl","_helper","_TipIcon","_excluded","CodeSvg","default","createElement","width","height","viewBox","fill","xmlns","d","DesignToolbar","_ref","locale","onLangChange","location","useLocation","editorRef","useRef","context","useContext","pageData","useGet","_useState","useState","_useState2","_slicedToArray2","langList","setLangList","_useState3","_useState4","activedTarget","setActivedTarget","_useState5","_useState6","show","setShow","_useState7","_useState8","showPreview","setShowPreview","_useState9","_useState10","userOptions","setUserOptions","_useTemporalStore","useTemporalStore","state","undo","redo","pastStates","futureStates","canUndo","canRedo","_useCookieState","useCookieState","COOKIE_VIRTUAL_ACCOUNT_KEY","_useCookieState2","userId","setUserId","_useRequest","useRequest","fetchClearCache","manual","clearCacheLoading","loading","runClearCache","runAsync","_useRequest2","fetchUpdatePageData","debounceWait","updatePageDataLoading","handleSave","useMemoizedFn","_asyncToGenerator2","_regeneratorRuntime2","mark","_callee","_yield$runAsync","code","wrap","_callee$","_context","prev","next","message","content","formatMessage","id","label","key","JSON","stringify","pageCode","getLDMetaAttr","sent","setNeedPrompt","success","error","stop","useEffect","lssid","$subscriber","topics","LANG_SETTING_SELECT","on","_ref3","_langList","console","log","watch","dasid","DESIGN_OPERATE_SAVE","$unsubscriber","handleClearCache","Modal","confirm","title","getContainer","document","getElementById","onOk","moduleCode","handleOk","current","editor","getValue","data","parse","resetPageData","e","warning","_useDebounceFn","useDebounceFn","_ref4","_callee2","value","_yield$fetchSearchUse","list","detail","_callee2$","_context2","fetchSearchUser","sname","map","item","_objectSpread2","concat","indocno","_x","apply","arguments","wait","handleSearch","run","Fragment","className","styles","Select","size","undefined","style","fontSize","onSelect","Option","field","classNames","_defineProperty2","actived","onClick","Icon","type","info","Divider","disabled","transform","cursor","hoverPrimary","$publisher","COMPONENT_ACTIVE","target","LC_BUILDIN_UNIT_KEY","PAGE_ROOT","Button","margin","_callee3","_callee3$","_context3","getNeedPrompt","component","_callee4","_callee4$","_context4","visible","onCancel","ref","Drawer","display","alignItems","justifyContent","marginBottom","placeholder","allowClear","filterOption","labelInValue","showSearch","getPopupContainer","closest","onSearch","onChange","_","_opt","props","sloginid","_ref7","rest","_objectWithoutProperties2","_extends2","placement","footer","headerStyle","padding","bodyStyle","backgroundColor","destroyOnClose","onClose","query","_default","exports"],"sources":["../../../luckda/lowcode/painter/DesignToolbar.jsx"],"sourcesContent":["import React, { useRef, useEffect, useState } from 'react';\nimport { useLocation } from 'umi';\nimport classNames from 'classnames';\nimport { useMemoizedFn, useRequest, useDebounceFn, useCookieState } from 'ahooks';\nimport { Select, Button, Icon, Divider, Modal, message, Drawer } from 'luck-design/antd';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport {\n useContext,\n useGet,\n resetPageData,\n setNeedPrompt,\n getNeedPrompt,\n useTemporalStore,\n} from '../engine/provider/ContextProvider';\nimport JsonEditor from '../painter/components/code-editor/JsonEditor';\nimport PreviewIframe from './components/PreviewIframe';\nimport { LC_BUILDIN_UNIT_KEY, COOKIE_VIRTUAL_ACCOUNT_KEY } from '../constants';\nimport styles from './style/design.less';\nimport { fetchClearCache, fetchUpdatePageData, fetchSearchUser } from '../constants/api-url';\nimport { getLDMetaAttr } from '../engine/tools/helper';\nimport TipIcon from './components/TipIcon';\n\nconst CodeSvg = () => (\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.4749 9.0916L5.45264 6.20703L5.45439 5.93457V4.69707L0.91748 9.0916L5.45439 13.4844V12.2469L5.45264 11.9744L2.4749 9.0916ZM15.2067 9.00723L12.229 6.12441L12.2272 5.85195V4.61445L16.7642 9.00723L12.2272 13.4018V12.1625L12.229 11.89L15.2067 9.00723ZM8.12451 15.0295H6.76045L9.55713 2.80566H10.9212L8.12451 15.0295Z\" fill=\"currentColor\" />\n </svg>\n);\n\nconst DesignToolbar = ({ locale, onLangChange }) => {\n const location = useLocation();\n const editorRef = useRef();\n const context = useContext();\n const pageData = useGet();\n\n const [langList, setLangList] = useState(null);\n const [activedTarget, setActivedTarget] = useState('pc');\n const [show, setShow] = useState(false);\n const [showPreview, setShowPreview] = useState(false);\n const [userOptions, setUserOptions] = useState([]);\n\n const { canUndo, canRedo, undo, redo } = useTemporalStore((state) => ({\n undo: state.undo,\n redo: state.redo,\n pastStates: state.pastStates,\n futureStates: state.futureStates,\n }));\n\n const [userId, setUserId] = useCookieState(COOKIE_VIRTUAL_ACCOUNT_KEY);\n\n const { loading: clearCacheLoading, runAsync: runClearCache } = useRequest(fetchClearCache, {\n manual: true,\n });\n\n const { loading: updatePageDataLoading, runAsync } = useRequest(fetchUpdatePageData, {\n manual: true,\n debounceWait: 300,\n });\n\n const handleSave = useMemoizedFn(async () => {\n message.loading({\n content: formatMessage({ id: 'luckda.lowcode.design.toolbar.save.on', label: '保存中...' }),\n key: 'saveLoading',\n });\n const { code } = await runAsync({\n pageData: JSON.stringify(pageData),\n pageCode: getLDMetaAttr('pageCode'),\n });\n if (code === 1) {\n setNeedPrompt(false);\n message.success({\n content: formatMessage({\n id: 'luckda.lowcode.design.toolbar.save.success',\n label: '保存成功',\n }),\n key: 'saveLoading',\n });\n } else {\n message.error({\n content: formatMessage({\n id: 'luckda.lowcode.design.toolbar.save.error',\n label: '保存失败',\n }),\n key: 'saveLoading',\n });\n }\n }, []);\n\n useEffect(() => {\n const lssid = context\n .$subscriber(context.topics.LANG_SETTING_SELECT)\n .on(({ langList: _langList }) => {\n setLangList(_langList)\n console.log(11111, _langList)\n })\n .watch();\n const dasid = context\n .$subscriber(context.topics.DESIGN_OPERATE_SAVE)\n .on(handleSave)\n .watch();\n return () => {\n context.$unsubscriber(context.topics.LANG_SETTING_SELECT, lssid);\n context.$unsubscriber(context.topics.DESIGN_OPERATE_SAVE, dasid);\n }\n }, []);\n\n useEffect(() => {\n if (!showPreview) {\n setUserId(void 0);\n }\n }, [showPreview]);\n\n const handleClearCache = useMemoizedFn(() => {\n Modal.confirm({\n title: formatMessage({\n id: 'luckda.lowcode.design.toolbar.clear.tip',\n label: '清除提示',\n }),\n content: formatMessage({\n id: 'luckda.lowcode.design.toolbar.clear',\n label: '确定清除当前页面及模块缓存么?',\n }),\n getContainer: () => document.getElementById('lc-design-workspace'),\n onOk: () => runClearCache({ moduleCode: getLDMetaAttr('moduleCode') }),\n });\n });\n\n const handleOk = useMemoizedFn(() => {\n const code = editorRef.current.editor.getValue();\n try {\n const data = JSON.parse(code);\n resetPageData(data);\n setShow(false);\n } catch (e) {\n console.error(e);\n message.warning(\n formatMessage({\n id: 'luckda.lowcode.error.pagedata',\n label: '页面数据错误',\n }),\n );\n }\n });\n\n const { run: handleSearch } = useDebounceFn(\n async (value) => {\n const { code, list, detail } = await fetchSearchUser({ sname: value });\n if (code === 1) {\n setUserOptions(\n list.map((id) => {\n const item = detail[id];\n return { ...item, key: `${item.indocno}`, label: item.sname };\n }),\n );\n }\n },\n { wait: 500 },\n );\n\n return (\n <>\n <div className={styles['lc-painter-design-toolbar']}>\n <Select\n size=\"small\"\n value={langList ? locale : undefined}\n className={styles['i18n-selecter']}\n style={{ fontSize: 12 }}\n onSelect={onLangChange}\n >\n {langList?.map((item) => (\n <Select.Option key={item.field} value={item.field}>\n {item.title}\n </Select.Option>\n ))}\n </Select>\n <span\n className={classNames(styles['toolbar-item'], {\n [styles.actived]: activedTarget === 'pc',\n })}\n onClick={() => setActivedTarget('pc')}\n >\n <Icon type=\"laptop\" />\n </span>\n <span\n className={classNames(styles['toolbar-item'], {\n [styles.actived]: activedTarget === 'mobile',\n })}\n // onClick={() => setActivedTarget('mobile')}\n onClick={() => {\n Modal.info({\n title: formatMessage({\n id: 'luckda.lowcode.not.mobile',\n label: '此功能暂未开放',\n }),\n });\n }}\n >\n <Icon type=\"mobile\" />\n </span>\n <Divider type=\"vertical\" />\n <span\n className={classNames(styles['toolbar-item'], { [styles.disabled]: !canUndo })}\n onClick={() => canUndo && undo()}\n >\n <svg\n viewBox=\"0 0 1024 1024\"\n width=\"20\"\n height=\"20\"\n fill=\"currentColor\"\n style={{ transform: 'rotateY(180deg)' }}\n >\n <path d=\"M946.8 420L651.9 125.1c-19.5-19.5-52.7-5.7-52.7 21.8v174c-79.3-1.8-501.8 14.9-532.3 569.6-0.9 17.2 22.1 24.3 30.6 9.3C255 621 396.6 553.3 599.1 561.5v175.2c0 27.5 33.3 41.3 52.8 21.9l294.8-294.9c12.1-12.1 12.1-31.6 0.1-43.7z\" />\n </svg>\n </span>\n <span\n className={classNames(styles['toolbar-item'], { [styles.disabled]: !canRedo })}\n onClick={() => canRedo && redo()}\n >\n <svg viewBox=\"0 0 1024 1024\" width=\"20\" height=\"20\" fill=\"currentColor\">\n <path d=\"M946.8 420L651.9 125.1c-19.5-19.5-52.7-5.7-52.7 21.8v174c-79.3-1.8-501.8 14.9-532.3 569.6-0.9 17.2 22.1 24.3 30.6 9.3C255 621 396.6 553.3 599.1 561.5v175.2c0 27.5 33.3 41.3 52.8 21.9l294.8-294.9c12.1-12.1 12.1-31.6 0.1-43.7z\" />\n </svg>\n </span>\n <Divider type=\"vertical\" />\n <span\n style={{ width: 'auto', fontSize: 12, cursor: 'pointer' }}\n className={styles.hoverPrimary}\n onClick={() => {\n context.$publisher(context.topics.COMPONENT_ACTIVE, {\n target: LC_BUILDIN_UNIT_KEY.PAGE_ROOT,\n });\n }}\n >\n {formatMessage({\n id: 'luckda.lowcode.design.toolbar.pageAttrs',\n label: '页面属性',\n })}\n </span>\n <Divider type=\"vertical\" />\n <Button\n size=\"small\"\n style={{ fontSize: 14, margin: '0 4px 0 2px' }}\n disabled={clearCacheLoading}\n onClick={handleClearCache}\n >\n {formatMessage({\n id: 'luckda.lowcode.design.toolbar.clear',\n label: '清除缓存',\n })}\n </Button>\n <TipIcon\n title={formatMessage({\n id: 'luckda.lowcode.design.toolbar.debug',\n label: '调试',\n })}\n type='bug'\n style={{ fontSize: 12, margin: '0 8px 0 6px' }}\n className={styles.hoverPrimary}\n onClick={async () => {\n if (!updatePageDataLoading) {\n if (getNeedPrompt()) {\n context.$publisher(context.topics.DESIGN_OPERATE_SAVE);\n }\n context.$publisher(context.topics.COMPONENT_ACTIVE, null);\n setShowPreview(true);\n }\n }}\n />\n <TipIcon\n title={formatMessage({\n id: 'luckda.lowcode.design.toolbar.code',\n label: 'Schema面板',\n })}\n component={CodeSvg}\n className={styles.hoverPrimary}\n style={{ fontSize: 14, margin: '0 8px 0 6px' }}\n onClick={async () => { if (!updatePageDataLoading) setShow(true); }}\n />\n <TipIcon\n title={formatMessage({\n id: 'luckda.lowcode.design.toolbar.save',\n label: '保存',\n })}\n type='save'\n className={styles.hoverPrimary}\n style={{ fontSize: 14, margin: '0 11px 0 5px' }}\n onClick={()=> context.$publisher(context.topics.DESIGN_OPERATE_SAVE)}\n />\n </div>\n <Modal\n visible={show}\n width={1024}\n getContainer={() => document.getElementById('lc-design-workspace')}\n onOk={handleOk}\n onCancel={() => setShow(false)}\n >\n <JsonEditor ref={editorRef} style={{ height: '70vh' }}>\n {JSON.stringify(pageData, null, '\\t')}\n </JsonEditor>\n </Modal>\n <Drawer\n title={\n <div\n id=\"preview-drawer-header\"\n style={{\n display: 'flex',\n height: 54,\n alignItems: 'center',\n justifyContent: 'space-between',\n }}\n >\n <h3 style={{ marginBottom: 0 }}>\n {formatMessage({\n id: 'luckda.lowcode.design.toolbar.pagePreview',\n label: '页面预览',\n })}\n </h3>\n <div>\n <Select\n placeholder={formatMessage({\n id: 'luckda.lowcode.design.toolbar.selectUser',\n label: '请选择模拟登录人',\n })}\n allowClear\n style={{ width: 180 }}\n filterOption={false}\n labelInValue\n showSearch\n getPopupContainer={() =>\n document\n .getElementById('preview-drawer-header')\n .closest('.ant-drawer-wrapper-body')\n }\n onSearch={handleSearch}\n onChange={(_, _opt) => {\n if (_opt) {\n setUserId(_opt.props.sloginid);\n } else {\n setUserId(void 0);\n }\n }}\n >\n {userOptions.map(({ key, label, ...rest }) => (\n <Select.Option key={key} value={key} {...rest}>\n {label}\n </Select.Option>\n ))}\n </Select>\n </div>\n </div>\n }\n placement=\"bottom\"\n height=\"94vh\"\n footer={false}\n headerStyle={{ padding: '0 48px 0 24px' }}\n bodyStyle={{ height: 'calc(100% - 54px)', backgroundColor: 'var(--ant-component-background,#F0F2F5)' }}\n visible={showPreview}\n destroyOnClose\n onClose={() => setShowPreview(false)}\n getContainer={() => document.getElementById('lc-design-workspace')}\n >\n <PreviewIframe code={location.query.code} userId={userId} />\n </Drawer>\n </>\n );\n};\n\nexport default DesignToolbar;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AAQA,IAAAQ,WAAA,GAAAL,sBAAA,CAAAH,OAAA;AACA,IAAAS,cAAA,GAAAN,sBAAA,CAAAH,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AACA,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AEhE,QAAQ,CAACmN,KAAK,CAACnJ,IAAK;IAACrB,MAAM,EAAEA;EAAO,CAAE,CACrD,CACR,CAAC;AAEP,CAAC;AAAC,IAAAyK,QAAA,GAAAC,OAAA,CAAAjO,OAAA,GAEaQ,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_umi","_ahooks","_luckDesign","_lodash","_antd","_utils","_ContextProvider","_I18n","_getDvaApp","Search","Input","_getDvaApp$_store","getDvaApp","_store","dispatch","getLangKey","concat","suid","formatDataFunc","data","_objectSpread3","default","reduce","languages","ret","value","key","I18n","context","useContext","_useState","useState","_useState2","_slicedToArray2","langList","setLangList","_useState3","_useState4","dataSource","setDataSource","useAsyncEffect","_asyncToGenerator2","_regeneratorRuntime2","mark","_callee","_langList","wrap","_callee$","_context","prev","next","type","payload","snamealias","format","list","detail","map","id","title","sname","field","sfactvalue","editable","filter","sent","$publisher","topics","LANG_SETTING_SELECT","doQuery","stop","useMemoizedFn","arguments","length","undefined","readAllLang","classifyKey","then","res","code","actionsColumn","useCreation","width","getActions","wanted","createElement","Icon","action","_data","result","handleAdd","confirm","formatMessage","handleDelete","addItems","langKey","doAddLang","handleValueChange","newValue","oldValue","record","doUpdateLang","indocno","_defineProperty2","doDeleteLang","delList","_ref2","cloneDeep","remove","n","handleSearch","debounce","style","height","padding","placeholder","label","onChange","e","target","allowClear","Button","ghost","size","margin","onClick","GridTable","columns","renderIndex","showStatusBar","onValueChange","operates","bordered","_default","exports"],"sources":["../../../luckda/lowcode/painter/I18n.jsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { getDvaApp } from 'umi';\nimport { useAsyncEffect, useCreation, useMemoizedFn } from 'ahooks';\nimport { GridTable } from 'luck-design';\nimport { reduce, remove, cloneDeep, debounce } from 'lodash';\nimport { Input, Button, Icon } from 'luck-design/antd';\nimport { formatMessage, suid } from '@luck-design-biz/base/utils';\nimport { useContext } from '../engine/provider/ContextProvider';\nimport { readAllLang, doAddLang, doUpdateLang, doDeleteLang } from './services/I18n';\n\nconst { Search } = Input;\n\nconst { dispatch } = getDvaApp()?._store;\n\nconst getLangKey = () => `app.lowcode.${suid()}`;\n\nconst formatDataFunc = (data) => ({\n ...data,\n ...reduce(\n data.languages,\n (ret, value, key) => {\n ret[key] = value;\n return ret;\n },\n {},\n ),\n});\n\nconst I18n = () => {\n const context = useContext();\n\n const [langList, setLangList] = useState([]);\n const [dataSource, setDataSource] = useState([]);\n\n useAsyncEffect(async () => {\n const _langList = await dispatch({\n type: 'global/getDatadic',\n payload: { snamealias: 'base_lang' },\n format: (list, detail) =>\n list.map((id) => ({\n title: detail[id].sname,\n field: detail[id].sfactvalue,\n editable: true,\n filter: false,\n })),\n });\n setLangList(_langList);\n context.$publisher(context.topics.LANG_SETTING_SELECT, { langList: _langList });\n doQuery();\n }, []);\n\n const doQuery = useMemoizedFn((value = {}) => {\n readAllLang({ ...value, classifyKey: '__LOWCODE__' }).then(res => {\n const { code, list, detail } = res;\n if (code === 1) setDataSource(list.map((id) => formatDataFunc(detail[id])));\n });\n });\n\n const actionsColumn = useCreation(\n () => ({\n width: 60,\n getActions: () => [\n {\n wanted: 'update',\n title: <Icon type=\"copy\" />,\n action: (_data) => {\n const data = {\n languages: reduce(langList, (result, value) => {\n result[value.field] = _data[value.field];\n return result;\n }, {})\n };\n handleAdd(data);\n },\n },\n {\n wanted: 'delete',\n title: <Icon type=\"delete\" />,\n confirm: { title: formatMessage({ id: 'app.base.confirm.delete' }) },\n action: handleDelete,\n },\n ],\n }),\n [langList],\n );\n\n const handleAdd = useMemoizedFn((data = {}) => {\n const addItems = { ...data, langKey: getLangKey(), classifyKey: '__LOWCODE__' };\n doAddLang({}, addItems).then(res => {\n const { code, list, detail } = res;\n if (code === 1) setDataSource([formatDataFunc(detail[list[0]])].concat(dataSource));\n });\n })\n\n const handleValueChange = useMemoizedFn((field, newValue, oldValue, record) => {\n doUpdateLang({}, {\n classifyKey: '__LOWCODE__',\n langKey: record.langKey,\n indocno: record.indocno,\n languages: {\n ...reduce(langList, (result, value) => {\n result[value.field] = record[value.field];\n return result;\n }, {}),\n [field]: newValue,\n },\n });\n });\n\n const handleDelete = useMemoizedFn((data) => {\n doDeleteLang({}, { delList: [{ indocno: data.indocno }] }).then(({ code }) => {\n if (code === 1) {\n const _data = cloneDeep(dataSource);\n remove(_data, n => n.indocno === data.indocno);\n setDataSource(_data)\n };\n });\n });\n\n const handleSearch = debounce(doQuery, 300);\n\n return (\n <div style={{ height: '100%', padding: '16px 24px' }}>\n <Search\n placeholder={formatMessage({ id: 'luckda.lowcode.painter.I18n.search', label: '搜索文案' })}\n onChange={e => handleSearch({ value: e.target.value })}\n style={{ width: '100%' }}\n allowClear\n />\n <Button type=\"primary\" ghost size='small' style={{ margin: '16px 0' }} onClick={() => handleAdd()}>\n {formatMessage({ id: 'luckda.lowcode.painter.I18n.add', label: '新增文案' })}\n </Button>\n <GridTable\n height={480}\n columns={langList}\n dataSource={dataSource}\n renderIndex={false}\n showStatusBar={false}\n actionsColumn={actionsColumn}\n onValueChange={handleValueChange}\n operates={['add', 'update', 'delete']}\n bordered={false}\n />\n </div>\n );\n};\n\nexport default I18n;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AAAqF,IAAAS,UAAA;AAErF,IAAQC,MAAM,GAAKC,WAAK,CAAhBD,MAAM;AAEd,IAAAE,iBAAA,IAAAH,UAAA,GAAqB,IAAAI,cAAS,EAAC,CAAC,cAAAJ,UAAA,uBAAXA,UAAA,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CAAC;IACvDuF,KAAK,EAAE;MAAE9B,KAAK,EAAE;IAAO,CAAE;IACzBsC,UAAU;EAAA,CACX,CAAC,eACF3H,MAAA,CAAAwB,OAAA,CAAAgE,aAAA,CAACjF,KAAA,CAAAqH,MAAM;IAACtE,IAAI,EAAC,SAAS;IAACuE,KAAK;IAACC,IAAI,EAAC,OAAO;IAACX,KAAK,EAAE;MAAEY,MAAM,EAAE;IAAS,CAAE;IAACC,OAAO,EAAE,SAAAA,QAAA;MAAA,OAAMnC,SAAS,CAAC,CAAC;IAAA;EAAC,GAC/F,IAAAE,oBAAa,EAAC;IAAElC,EAAE,EAAE,iCAAiC;IAAE0D,KAAK,EAAE;EAAO,CAAC,CACjE,CAAC,eACTvH,MAAA,CAAAwB,OAAA,CAAAgE,aAAA,CAACnF,WAAA,CAAA4H,SAAS;IACRb,MAAM,EAAE,GAAI;IACZc,OAAO,EAAE7F,QAAS;IAClBI,UAAU,EAAEA,UAAW;IACvB0F,WAAW,EAAE,KAAM;IACnBC,aAAa,EAAE,KAAM;IACrBjD,aAAa,EAAEA,aAAc;IAC7BkD,aAAa,EAAEjC,iBAAkB;IACjCkC,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAE;IACtCC,QAAQ,EAAE;EAAM,CACjB,CACE,CAAC;AAEV,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAjH,OAAA,GAEaM,IAAI"}
|
|
@@ -223,4 +223,5 @@ var Outline = function Outline(_ref) {
|
|
|
223
223
|
onExpand: setPageExpandedKeys
|
|
224
224
|
}, pageAndModal === null || pageAndModal === void 0 ? void 0 : pageAndModal.page));
|
|
225
225
|
};
|
|
226
|
-
var _default = exports.default = Outline;
|
|
226
|
+
var _default = exports.default = Outline;
|
|
227
|
+
//# sourceMappingURL=Outline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_lodash","_classnames","_interopRequireDefault","_antd","_utils","_ContextProvider","_constants","_dataProcess","_outline","_TreeEditor","_excluded","TreeNode","Tree","Outline","_ref","open","clickBySelf","useRef","ctx","useContext","pageData","useGet","_useState","useState","_useState2","_slicedToArray2","default","pageAndModal","setPageAndModal","_useState3","_useState4","selectedKey","setSelectedKey","_useState5","_useState6","modalExpandedKeys","setModalExpandedKeys","_useState7","_useState8","pageExpandedKeys","setPageExpandedKeys","latestModalExpandedKeysRef","useLatest","lastPageExpandedKeysRef","useEffect","_id","$subscriber","topics","COMPONENT_ACTIVE","on","payload","isString","target","current","_split","split","getPathById","_split2","_root","LC_BUILDIN_UNIT_KEY_LIST","includes","uniq","concat","_toConsumableArray2","watch","$unsubscriber","handleSelect","useMemoizedFn","_key","$publisher","render","_ref2","props","children","childrenMap","_objectWithoutProperties2","createElement","icon","Icon","type","title","item","key","id","length","map","useDeepCompareLayoutEffect","_reduce","reduce","result","resultKey","push","page","modal","className","styles","classNames","_defineProperty2","LC_BUILDIN_UNIT_KEY","PAGE_ROOT","onClick","style","marginLeft","formatMessage","label","Card","size","hoverable","margin","bodyStyle","padding","showLine","showIcon","blockNode","switcherIcon","selectedKeys","onSelect","_ref3","_ref4","_ref5","selected","node","pos","COMPONENT_MODAL_TOGGLE","toggle","_split3","eventKey","_split4","parentModal","expandedKeys","onExpand","_keys","_ref6","expanded","_ref7","_ref8","_ref9","_default","exports"],"sources":["../../../luckda/lowcode/painter/Outline.jsx"],"sourcesContent":["import React, { useRef, useState, useEffect } from 'react';\nimport { useMemoizedFn, useDeepCompareLayoutEffect, useLatest } from 'ahooks';\nimport { uniq, split, reduce, isString } from 'lodash';\nimport classNames from 'classnames';\nimport { Card, Tree, Icon } from 'luck-design/antd';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport { useContext, useGet } from '../engine/provider/ContextProvider';\nimport { LC_BUILDIN_UNIT_KEY, LC_BUILDIN_UNIT_KEY_LIST } from '../constants';\nimport { getPathById } from '../engine/tools/dataProcess';\nimport styles from './style/outline.less';\nimport TreeEditor from './components/TreeEditor';\n\nconst { TreeNode } = Tree;\n\nconst Outline = ({ open }) => {\n const clickBySelf = useRef(false);\n const ctx = useContext();\n const pageData = useGet();\n const [pageAndModal, setPageAndModal] = useState(null);\n const [selectedKey, setSelectedKey] = useState(null);\n const [modalExpandedKeys, setModalExpandedKeys] = useState([]);\n const [pageExpandedKeys, setPageExpandedKeys] = useState([]);\n const latestModalExpandedKeysRef = useLatest(modalExpandedKeys);\n const lastPageExpandedKeysRef = useLatest(pageExpandedKeys);\n\n useEffect(() => {\n const _id = ctx\n .$subscriber(ctx.topics.COMPONENT_ACTIVE)\n .on((payload) => {\n if (!isString(payload.target)) {\n setSelectedKey(null);\n return;\n }\n setSelectedKey(payload.target);\n if (clickBySelf.current) {\n clickBySelf.current = false;\n return;\n }\n const [_root] = split(getPathById(pageData, payload.target), '/');\n if (!LC_BUILDIN_UNIT_KEY_LIST.includes(_root)) {\n setModalExpandedKeys(\n uniq([\n ...latestModalExpandedKeysRef.current,\n ...split(getPathById(pageData, payload.target), '/'),\n ]),\n );\n } else {\n setPageExpandedKeys(\n uniq([\n ...lastPageExpandedKeysRef.current,\n ...split(getPathById(pageData, payload.target), '/'),\n ]),\n );\n }\n })\n .watch();\n return () => {\n ctx.$unsubscriber(ctx.topics.COMPONENT_ACTIVE, _id);\n };\n }, [pageData]);\n\n const handleSelect = useMemoizedFn((_key) => {\n clickBySelf.current = true;\n ctx.$publisher(ctx.topics.COMPONENT_ACTIVE, _key ? { target: _key } : null);\n });\n\n const render = useMemoizedFn(({ props, children, ...childrenMap }) => {\n if (props) {\n return (\n <TreeNode icon={<Icon type=\"layout\" />} title={<TreeEditor item={props} />} key={props.id}>\n {children?.length && children.map((_id) => render(childrenMap[_id]))}\n </TreeNode>\n );\n }\n return (children || []).map((_id) => render(childrenMap[_id]));\n });\n\n useDeepCompareLayoutEffect(() => {\n if (!pageData) {\n return;\n }\n const { page, modal } = reduce(\n pageData.children,\n (result, _id) => {\n const resultKey = LC_BUILDIN_UNIT_KEY_LIST.includes(_id) ? 'page' : 'modal';\n result[resultKey][_id] = pageData[_id];\n if (!result[resultKey].children) {\n result[resultKey].children = [];\n }\n result[resultKey].children.push(_id);\n return result;\n },\n { page: {}, modal: {} },\n );\n setPageAndModal({\n page: render(page),\n modal: render(modal),\n });\n }, [pageData]);\n\n return (\n <div className={styles['lc-painter-outline']}>\n <div\n className={classNames(styles['page-node'], {\n [styles['page-node-active']]: selectedKey === LC_BUILDIN_UNIT_KEY.PAGE_ROOT,\n })}\n onClick={() => handleSelect(LC_BUILDIN_UNIT_KEY.PAGE_ROOT)}\n >\n <Icon type=\"layout\" />\n <span style={{ marginLeft: 5 }}>\n {formatMessage({ id: 'luckda.lowcode.page', label: '页面' })}\n </span>\n </div>\n <Card\n size=\"small\"\n type=\"inner\"\n hoverable\n title={formatMessage({ id: 'luckda.lowcode.modal', label: '模态视图层' })}\n style={{ margin: 5 }}\n bodyStyle={{ padding: 0 }}\n >\n <Tree\n showLine\n showIcon\n blockNode\n switcherIcon={<Icon type=\"down\" />}\n selectedKeys={[selectedKey]}\n onSelect={([_key], { selected, node }) => {\n if (selected && node.props.pos.split('-').length === 2) {\n // 选中节点是模态视图,则打开模态视图组件\n ctx.$publisher(ctx.topics.COMPONENT_MODAL_TOGGLE, { toggle: true, id: _key });\n handleSelect(_key);\n } else if (!selected && node.props.pos.split('-').length === 2) {\n // 取消选中节点是模态视图,则关闭模态视图\n ctx.$publisher(ctx.topics.COMPONENT_MODAL_TOGGLE, {\n toggle: false,\n id: _key,\n });\n handleSelect(null);\n } else {\n // 选中节点是模态视图下的子组件,则打开该组件的模态视图组件\n const [parentModal] = split(getPathById(pageData, node.props.eventKey), '/');\n ctx.$publisher(ctx.topics.COMPONENT_MODAL_TOGGLE, {\n toggle: true,\n id: parentModal,\n });\n handleSelect(node.props.eventKey);\n }\n }}\n expandedKeys={modalExpandedKeys}\n onExpand={(_keys, { expanded, node }) => {\n if (expanded && node.props.pos.split('-').length === 2) {\n ctx.$publisher(ctx.topics.COMPONENT_MODAL_TOGGLE, {\n toggle: true,\n id: node.props.eventKey,\n });\n handleSelect(node.props.eventKey);\n }\n setModalExpandedKeys(_keys);\n }}\n >\n {pageAndModal?.modal}\n </Tree>\n </Card>\n {open && (\n <Tree\n showLine\n showIcon\n blockNode\n switcherIcon={<Icon type=\"down\" />}\n selectedKeys={[selectedKey]}\n onSelect={([_key], { node }) => {\n ctx.$publisher(ctx.topics.COMPONENT_MODAL_TOGGLE, { toggle: false });\n handleSelect(node.props.eventKey);\n }}\n expandedKeys={pageExpandedKeys}\n onExpand={setPageExpandedKeys}\n >\n {pageAndModal?.page}\n </Tree>\n )}\n </div>\n );\n};\n\nexport default Outline;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAN,sBAAA,CAAAJ,OAAA;AACA,IAAAW,WAAA,GAAAP,sBAAA,CAAAJ,OAAA;AAAiD,IAAAY,SAAA;AAEjD,IAAQC,QAAQ,GAAKC,UAAI,CAAjBD,QAAQ;AAEhB,IAAME,OAAO,GAAG,SAAVA,OAAOA,CAAAC,IAAA,EAAiB;EAAA,IAAXC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EACrB,IAAMC,WAAW,GAAG,IAAAC,aAAM,EAAC,KAAK,CAAC;EACjC,IAAMC,GAAG,GAAG,IAAAC,2BAAU,EAAC,CAAC;EACxB,IAAMC,QAAQ,GAAG,IAAAC,uBAAM,EAAC,CAAC;EACzB,IAAAC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":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_antd","_classnames","_interopRequireDefault","_lodash","_utils","_ContextProvider","_AttrsPanel","_StylePanel","_AdvancePanel","_panel","_constants","_I18N_PREFIX_","_TAB_LIST_","title","formatMessage","id","concat","label","key","Panel","_activeNode$$target","activeTabRef","useRef","underLineRef","_useState","useState","_useState2","_slicedToArray2","default","activeNode","setActiveNode","_useState3","_useState4","activeTabKey","setActiveTabKey","context","useContext","task","useTask","meta","useCreation","isNil","_meta","node","component","toLowerCase","$target","setValueKey","items","forEach","item","next","props","valueKey","keyPath","e","handleChange","useMemoizedFn","field","value","_ref","arguments","length","undefined","repositioning","before","headerMeta","addNode","LC_BUILDIN_UNIT_KEY","PAGE_ROOT","PAGE_HEADER","_objectSpread2","buildIn","deleteNode","footerMeta","PAGE_FOOTER","targetId","ancestorId","componentMap","get","api","getSelfData","oldValue","_defineProperty2","newValue","then","_id","$publisher","topics","COMPONENT_MODIFY","COMPONENT_REPOSITIONING","useEffect","tid","$subscriber","COMPONENT_ACTIVE","on","payload","target","isString","levelNodes","takeRight","getLevelNodes","level","_component","element","getAttribute","ancestor","_toConsumableArray2","name","watch","$unsubscriber","useLayoutEffect","current","style","left","offsetLeft","offsetWidth","createElement","className","styles","classNames","hidden","Breadcrumb","separator","fontSize","map","_ref2","Item","onMouseEnter","COMPONENT_HOVER","onMouseLeave","onClick","headerList","reduce","ret","css","push","advance","_item","ref","actived","underline","nodeId","onChange","params","_","newCss","val","_default","exports"],"sources":["../../../luckda/lowcode/painter/Panel.jsx"],"sourcesContent":["import React, { useRef, useState, useEffect, useLayoutEffect } from 'react';\nimport { useCreation, useMemoizedFn } from 'ahooks';\nimport { Breadcrumb } from 'luck-design/antd';\nimport classNames from 'classnames';\nimport { takeRight, isNil, reduce, get, isString } from 'lodash';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport { useContext, useTask, addNode, deleteNode } from '../engine/provider/ContextProvider';\nimport AttrsPanel from './components/AttrsPanel';\nimport StylePanel from './panel-section/StylePanel';\nimport AdvancePanel from './components/AdvancePanel';\nimport styles from './style/panel.less';\nimport { LC_BUILDIN_UNIT_KEY } from '../constants';\n\nconst _I18N_PREFIX_ = 'luckda.lowcode.painter.panel';\n\nconst _TAB_LIST_ = [\n { title: formatMessage({ id: `${_I18N_PREFIX_}.attrs`, label: '属性' }), key: 'attrs' },\n { title: formatMessage({ id: `${_I18N_PREFIX_}.css`, label: '样式' }), key: 'css' },\n { title: formatMessage({ id: `${_I18N_PREFIX_}.advance`, label: '高级' }), key: 'advance' },\n];\n\nconst Panel = () => {\n const activeTabRef = useRef(null);\n const underLineRef = useRef(null);\n const [activeNode, setActiveNode] = useState(null);\n const [activeTabKey, setActiveTabKey] = useState('attrs');\n const context = useContext();\n const task = useTask('modify');\n\n const meta = useCreation(() => {\n if (isNil(activeNode)) return null;\n try {\n const _meta = require(`../engine/meta/${activeNode.node.component.toLowerCase()}.props.json`);\n if (!isNil(activeNode?.$target)) {\n const setValueKey = (items) => {\n items.forEach((item) => {\n if (item.next) {\n setValueKey(item.next.props);\n } else if (item.props) {\n setValueKey(item.props);\n } else {\n item.valueKey = `${activeNode.$target.keyPath}.${item.key}`;\n }\n });\n };\n setValueKey(_meta.props);\n }\n return _meta;\n } catch (e) {\n return null;\n }\n }, [activeNode]);\n\n const handleChange = useMemoizedFn((field, value, { repositioning, before } = {}) => {\n if (field === 'enableHeader') {\n if (value) {\n const headerMeta = require('../engine/meta/pageheader.props.default.json');\n addNode(LC_BUILDIN_UNIT_KEY.PAGE_ROOT, LC_BUILDIN_UNIT_KEY.PAGE_HEADER, {\n ...headerMeta,\n buildIn: true,\n });\n } else {\n deleteNode(LC_BUILDIN_UNIT_KEY.PAGE_HEADER);\n }\n } else if (field === 'enableFooter') {\n if (value) {\n const footerMeta = require('../engine/meta/pagefooter.props.default.json');\n addNode(LC_BUILDIN_UNIT_KEY.PAGE_ROOT, LC_BUILDIN_UNIT_KEY.PAGE_FOOTER, {\n ...footerMeta,\n buildIn: true,\n });\n } else {\n deleteNode(LC_BUILDIN_UNIT_KEY.PAGE_FOOTER);\n }\n }\n const targetId = isNil(activeNode.$target) ? activeNode.node.id : activeNode.$target.ancestorId;\n const component = context.componentMap.get(targetId);\n const node = component.api.getSelfData();\n const oldValue = { [field]: get(node.props, field) };\n const newValue = { [field]: value };\n if (before) {\n before(handleChange);\n }\n task(targetId, newValue).then(() => {\n const _id = isNil(activeNode.$target) ? activeNode.node.id : activeNode.$target.id;\n context.$publisher(context.topics.COMPONENT_MODIFY, {\n id: _id,\n oldValue,\n newValue,\n });\n if (repositioning || field === 'css') context.$publisher(context.topics.COMPONENT_REPOSITIONING, { id: _id });\n });\n });\n\n useEffect(() => {\n const tid = context\n .$subscriber(context.topics.COMPONENT_ACTIVE)\n .on((payload) => {\n setActiveTabKey('attrs');\n if (!payload.target) {\n setActiveNode(null);\n return;\n }\n if (isString(payload.target)) {\n const component = context.componentMap.get(payload.target);\n const node = component.api.getSelfData();\n const levelNodes = takeRight(component.api.getLevelNodes(), 4);\n setActiveNode({\n node: node.props,\n level: levelNodes,\n });\n } else {\n const _component = payload.target.element.getAttribute('data-__component');\n const ancestor = context.componentMap.get(payload.target.ancestorId);\n const levelNodes = takeRight(ancestor.api.getLevelNodes(), 3);\n\n setActiveNode({\n node: { id: payload.target.id, component: _component },\n level: [...levelNodes, { id: payload.target.id, name: payload.target.label }],\n $target: payload.target,\n });\n }\n })\n .watch();\n return () => context.$unsubscriber(context.topics.COMPONENT_ACTIVE, tid);\n }, []);\n\n useLayoutEffect(() => {\n underLineRef.current.style.left = `${\n activeTabRef.current.offsetLeft + activeTabRef.current.offsetWidth / 2 - 10\n }px`;\n }, [activeTabKey, meta?.component]);\n\n return (\n <div className={styles['lc-painter-panel']}>\n <div\n className={classNames(styles['lc-painter-panel-topbar'], { [styles.hidden]: !activeNode })}\n >\n <Breadcrumb separator=\">\" style={{ fontSize: 12 }}>\n {activeNode?.level.map(({ id, name }) => (\n <Breadcrumb.Item\n key={id}\n className={classNames({ [styles['active-node-level']]: id !== activeNode.node.id })}\n onMouseEnter={() => {\n if (id === activeNode.node.id) return;\n context.$publisher(context.topics.COMPONENT_HOVER, { target: id });\n }}\n onMouseLeave={() => {\n if (id === activeNode.node.id) return;\n context.$publisher(context.topics.COMPONENT_HOVER, null);\n }}\n onClick={() => {\n if (id === activeNode.node.id) return;\n context.$publisher(context.topics.COMPONENT_ACTIVE, { target: id });\n }}\n >\n {name}\n </Breadcrumb.Item>\n ))}\n </Breadcrumb>\n </div>\n <div\n className={classNames(styles['lc-painter-panel-tabbar'], { [styles.hidden]: !activeNode })}\n >\n <ul className={styles.headerList}>\n {reduce(\n _TAB_LIST_,\n (ret, item) => {\n if (item.key === 'css' && !isNil(meta?.css)) {\n ret.push(item);\n } else if (item.key === 'advance' && !isNil(meta?.advance)) {\n ret.push(item);\n } else if (item.key === 'attrs') {\n ret.push(item);\n }\n return ret;\n },\n [],\n ).map((_item) => (\n <li\n key={_item.key}\n ref={activeTabKey === _item.key ? activeTabRef : null}\n className={classNames({ [styles.actived]: activeTabKey === _item.key })}\n onClick={() => setActiveTabKey(_item.key)}\n >\n {_item.title}\n </li>\n ))}\n </ul>\n <div ref={underLineRef} className={styles.underline} />\n </div>\n {activeTabKey === _TAB_LIST_[0].key && (\n <AttrsPanel\n key={activeNode?.node.id}\n nodeId={activeNode?.node.id}\n ancestorId={activeNode?.$target?.ancestorId}\n meta={meta}\n onChange={(field, value, params) => handleChange(field, value, params)}\n />\n )}\n {activeTabKey === _TAB_LIST_[1].key && (\n <StylePanel\n key={activeNode?.node.id}\n nodeId={activeNode?.node.id}\n onChange={(_, newCss) => handleChange('css', newCss)}\n />\n )}\n {activeTabKey === _TAB_LIST_[2].key && (\n <AdvancePanel\n key={activeNode?.node.id}\n nodeId={activeNode?.node.id}\n target={activeNode?.$target}\n meta={meta}\n onChange={(val) =>\n handleChange(\n isNil(activeNode.$target) ? 'advance' : `${activeNode.$target.keyPath}.advance`,\n val,\n )\n }\n />\n )}\n <div\n className={classNames(styles['lc-painter-panel-empty'], { [styles.hidden]: !!activeNode })}\n >\n {formatMessage({ id: `${_I18N_PREFIX_}.empty`, label: '请在左侧画布选中节点' })}\n </div>\n </div>\n );\n};\n\nexport default Panel;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,WAAA,GAAAL,sBAAA,CAAAJ,OAAA;AACA,IAAAU,aAAA,GAAAN,sBAAA,CAAAJ,OAAA;AACA,IAAAW,MAAA,GAAAP,sBAAA,CAAAJ,OAAA;AACA,IAAAY,UAAA,GAAAZ,OAAA;AAEA,IAAMa,aAAa,GAAG,8BAA8B;AAEpD,IAAMC,UAAU,GAAG,CACjB;EAAEC,KAAK,EAAE,IAAAC,oBAAa,EAAC;IAAEC,EAAE,KAAAC,MAAA,CAAKL,aAAa,WAAQ;IAAEM,KAAK,EAAE;EAAK,CAAC,CAAC;EAAEC,GAAG,EAAE;AAAQ,CAAC,EACrF;EAAEL,KAAK,EAAE,IAAAC,oBAAa,EAAC;IAAEC,EAAE,KAAAC,MAAA,CAAKL,aAAa,SAAM;IAAEM,KAAK,EAAE;EAAK,CAAC,CAAC;EAAEC,GAAG,EAAE;AAAM,CAAC,EACjF;EAAEL,KAAK,EAAE,IAAAC,oBAAa,EAAC;IAAEC,EAAE,KAAAC,MAAA,CAAKL,aAAa,aAAU;IAAEM,KAAK,EAAE;EAAK,CAAC,CAAC;EAAEC,GAAG,EAAE;AAAU,CAAC,CAC1F;AAED,IAAMC,KAAK,GAAG,SAAR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AC,KAAK,EAAE0F,MAAM,CAAC;IAAA;EAAC,CACtD,CACF,EACAjH,YAAY,KAAKrB,UAAU,CAAC,CAAC,CAAC,CAACM,GAAG,iBACjCtB,MAAA,CAAAgC,OAAA,CAAAyF,aAAA,CAAC7G,aAAA,CAAAoB,OAAY;IACXV,GAAG,EAAEW,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEc,IAAI,CAAC5B,EAAG;IACzB+H,MAAM,EAAEjH,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEc,IAAI,CAAC5B,EAAG;IAC5BkF,MAAM,EAAEpE,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEiB,OAAQ;IAC5BP,IAAI,EAAEA,IAAK;IACXwG,QAAQ,EAAE,SAAAA,SAACI,GAAG;MAAA,OACZ3F,YAAY,CACV,IAAAf,aAAK,EAACZ,UAAU,CAACiB,OAAO,CAAC,GAAG,SAAS,MAAA9B,MAAA,CAAMa,UAAU,CAACiB,OAAO,CAACQ,OAAO,aAAU,EAC/E6F,GACF,CAAC;IAAA;EACF,CACF,CACF,eACDvJ,MAAA,CAAAgC,OAAA,CAAAyF,aAAA;IACEC,SAAS,EAAE,IAAAE,mBAAU,EAACD,cAAM,CAAC,wBAAwB,CAAC,MAAApC,gBAAA,CAAAvD,OAAA,MAAK2F,cAAM,CAACE,MAAM,EAAG,CAAC,CAAC5F,UAAU,CAAE;EAAE,GAE1F,IAAAf,oBAAa,EAAC;IAAEC,EAAE,KAAAC,MAAA,CAAKL,aAAa,WAAQ;IAAEM,KAAK,EAAE;EAAa,CAAC,CACjE,CACF,CAAC;AAEV,CAAC;AAAC,IAAAmI,QAAA,GAAAC,OAAA,CAAAzH,OAAA,GAEaT,KAAK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_luckDesign","_antd","_Outline","_interopRequireDefault","_Components","_I18n","_utils","_expect","_ribbon","_WIDTH_","_DRAWER_PROPS","placement","mask","getContainer","zIndex","headerStyle","borderBottom","style","position","left","bodyStyle","overflowY","height","padding","_DRAWER_OUTLINE_","width","key","title","fix","_DRAWER_COMPONENTS_","_DRAWER_I18N_","Ribbon","_useState","useState","_useState2","_slicedToArray2","default","drawer","setDrawer","createElement","Fragment","Box","className","styles","heitht","direction","align","marginRight","Tooltip","formatMessage","id","label","Icon","type","color","fontSize","onClick","Drawer","_extends2","concat","visible","onClose","_objectSpread2","display","open","_default","exports"],"sources":["../../../luckda/lowcode/painter/Ribbon.jsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { Box } from 'luck-design';\nimport { Icon, Tooltip, Drawer } from 'luck-design/antd';\nimport Outline from './Outline';\nimport Components from './Components';\nimport I18n from './I18n';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport Expect from './expect';\nimport styles from './style/ribbon.less';\n\nconst _WIDTH_ = 48;\nconst _DRAWER_PROPS = {\n placement: 'left',\n mask: false,\n getContainer: false,\n zIndex: 20,\n headerStyle: { borderBottom: 'none' },\n style: { position: 'absolute', left: _WIDTH_ },\n bodyStyle: { overflowY: 'auto', height: 'calc(100% - 55px)', padding: 0 },\n};\nconst _DRAWER_OUTLINE_ = { width: 300, key: 'outline', title: '大纲树', fix: true };\nconst _DRAWER_COMPONENTS_ = { width: 310, key: 'components', title: '组件', fix: true };\nconst _DRAWER_I18N_ = { width: 450, key: 'i18n', title: '多语言文案管理', fix: false };\n\nconst Ribbon = () => {\n const [drawer, setDrawer] = useState(null);\n\n return (\n <>\n <Box\n className={styles['lc-painter-ribbon']}\n width={_WIDTH_}\n heitht=\"100%\"\n direction=\"column\"\n align=\"center\"\n style={{ marginRight: drawer?.fix ? drawer.width : 0 }}\n >\n <Tooltip\n placement=\"right\"\n title={formatMessage({ id: 'luckda.lowcode.outline', label: _DRAWER_OUTLINE_.title })}\n >\n <Icon\n type=\"apartment\"\n style={{ color: drawer?.key === _DRAWER_OUTLINE_.key && '#1d79f2', fontSize: 20 }}\n onClick={() =>\n setDrawer(drawer?.key === _DRAWER_OUTLINE_.key ? null : _DRAWER_OUTLINE_)\n }\n />\n </Tooltip>\n <Tooltip\n placement=\"right\"\n title={formatMessage({\n id: 'luckda.lowcode.components',\n label: _DRAWER_COMPONENTS_.title,\n })}\n >\n <Icon\n type=\"appstore\"\n style={{ color: drawer?.key === _DRAWER_COMPONENTS_.key && '#1d79f2', fontSize: 20 }}\n onClick={() =>\n setDrawer(drawer?.key === _DRAWER_COMPONENTS_.key ? null : _DRAWER_COMPONENTS_)\n }\n />\n </Tooltip>\n <Tooltip\n placement=\"right\"\n title={formatMessage({ id: 'luckda.lowcode.i18n', label: _DRAWER_I18N_.title })}\n >\n <Icon\n type=\"global\"\n style={{ color: drawer?.key === _DRAWER_I18N_.key && '#1d79f2', fontSize: 20 }}\n onClick={() => setDrawer(drawer?.key === _DRAWER_I18N_.key ? null : _DRAWER_I18N_)}\n />\n </Tooltip>\n </Box>\n <Drawer\n title={\n drawer ? formatMessage({ id: `luckda.lowcode.${drawer.key}`, label: drawer.title }) : ''\n }\n width={drawer?.width || 0}\n visible={drawer?.key === _DRAWER_OUTLINE_.key}\n onClose={() => setDrawer(null)}\n {..._DRAWER_PROPS}\n style={{\n ..._DRAWER_PROPS.style,\n display: drawer?.key === _DRAWER_OUTLINE_.key ? 'block' : 'none',\n }}\n >\n <Outline open={drawer?.key === _DRAWER_OUTLINE_.key} />\n </Drawer>\n <Drawer\n title={\n drawer ? formatMessage({ id: `luckda.lowcode.${drawer.key}`, label: drawer.title }) : ''\n }\n width={drawer?.width || 0}\n visible={drawer?.key === _DRAWER_COMPONENTS_.key}\n onClose={() => setDrawer(null)}\n {..._DRAWER_PROPS}\n style={{\n ..._DRAWER_PROPS.style,\n display: drawer?.key === _DRAWER_COMPONENTS_.key ? 'block' : 'none',\n }}\n >\n <Components />\n </Drawer>\n <Drawer\n title={\n drawer ? formatMessage({ id: `luckda.lowcode.${drawer.key}`, label: drawer.title }) : ''\n }\n width={drawer?.width || 0}\n visible={drawer?.key === _DRAWER_I18N_.key}\n onClose={() => setDrawer(null)}\n {..._DRAWER_PROPS}\n style={{\n ..._DRAWER_PROPS.style,\n display: drawer?.key === _DRAWER_I18N_.key ? 'block' : 'none',\n }}\n >\n {/* <I18n /> */}\n <Expect />\n </Drawer>\n </>\n );\n};\n\nexport default Ribbon;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,KAAA,GAAAF,sBAAA,CAAAJ,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,OAAA,GAAAL,sBAAA,CAAAJ,OAAA;AAEA,IAAMU,OAAO,GAAG,EAAE;AAClB,IAAMC,aAAa,GAAG;EACpBC,SAAS,EAAE,MAAM;EACjBC,IAAI,EAAE,KAAK;EACXC,YAAY,EAAE,KAAK;EACnBC,MAAM,EAAE,EAAE;EACVC,WAAW,EAAE;IAAEC,YAAY,EAAE;EAAO,CAAC;EACrCC,KAAK,EAAE;IAAEC,QAAQ,EAAE,UAAU;IAAEC,IAAI,EAAEV;EAAQ,CAAC;EAC9CW,SAAS,EAAE;IAAEC,SAAS,EAAE,MAAM;IAAEC,MAAM,EAAE,mBAAmB;IAAEC,OAAO,EAAE;EAAE;AAC1E,CAAC;AACD,IAAMC,gBAAgB,GAAG;EAAEC,KAAK,EAAE,GAAG;EAAEC,GAAG,EAAE,SAAS;EAAEC,KAAK,EAAE,KAAK;EAAEC,GAAG,EAAE;AAAK,CAAC;AAChF,IAAMC,mBAAmB,GAAG;EAAEJ,KAAK,EAAE,GAAG;EAAEC,GAAG,EAAE,YAAY;EAAEC,KAAK,EAAE,I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AEyB,KAAK,EAAEd,MAAM,CAACV;IAAM,CAAC,CAAC,GAAG,EACvF;IACDF,KAAK,EAAE,CAAAY,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEZ,KAAK,KAAI,CAAE;IAC1BmC,OAAO,EAAE,CAAAvB,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEX,GAAG,MAAKI,aAAa,CAACJ,GAAI;IAC3CmC,OAAO,EAAE,SAAAA,QAAA;MAAA,OAAMvB,SAAS,CAAC,IAAI,CAAC;IAAA;EAAC,GAC3B5B,aAAa;IACjBO,KAAK,MAAA6C,cAAA,CAAA1B,OAAA,MAAA0B,cAAA,CAAA1B,OAAA,MACA1B,aAAa,CAACO,KAAK;MACtB8C,OAAO,EAAE,CAAA1B,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEX,GAAG,MAAKI,aAAa,CAACJ,GAAG,GAAG,OAAO,GAAG;IAAM;EAC7D,iBAGF7B,MAAA,CAAAuC,OAAA,CAAAG,aAAA,CAAChC,OAAA,CAAA6B,OAAM,MAAE,CACH,CACR,CAAC;AAEP,CAAC;AAAC,IAAA6B,QAAA,GAAAC,OAAA,CAAA9B,OAAA,GAEaL,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_antd","_classnames","_interopRequireDefault","_lodash","_utils","_ContextProvider","_JSEditor","_helper","_actionBindModal","_I18N_PREFIX_","_ACTION_CATEGORY_","key","label","formatMessage","id","concat","_DEFAULT_JSON_CODE_","_DEFAULT_JS_CODE_","ActionBindModal","_ref","nodeId","event","_ref$defaultCode","defaultCode","onComfirm","onClose","context","useContext","_useRemoteSource","useRemoteSource","module","editorRef","useRef","_useMap","useMap","_useMap2","_slicedToArray2","default","actionPool","_useMap2$","set","remove","get","setAll","reset","_useState","useState","_useState2","category","setCategory","_useState3","_useState4","activeKey","setActiveKey","_useState5","_useState6","searchValue","setSearchValue","latestActiveKey","useLatest","pageData","useGet","keywords","useCreation","extractKeywords","options","reduce","actions","ret","actionName","actionKey","push","componentList","_ref2","_ref3","target","api","getSelfData","props","name","useUpdateEffect","_editorRef$current","action","current","editor","setValue","code","_useDebounceFn","useDebounceFn","wait","handleEditorValueChange","run","handleOptionClick","useMemoizedFn","has","func","slice","handleChecked","checked","handleClose","handleComfirm","Array","from","createElement","Modal","className","styles","bodyStyle","marginTop","padding","title","visible","width","closable","maskClosable","getContainer","document","getElementById","onCancel","onOk","classNames","map","_ref4","_defineProperty2","active","onClick","_activeKey","Icon","type","style","height","display","justifyContent","Input","Search","placeholder","size","onChange","e","value","alignSelf","filter","_ref5","toLowerCase","includes","_ref6","Checkbox","marginRight","stopPropagation","Fragment","Tooltip","getPopupContainer","marginLeft","ref","_default","exports"],"sources":["../../../../luckda/lowcode/painter/components/ActionBindModal.jsx"],"sourcesContent":["import React, { useRef, useState } from 'react';\nimport {\n useMemoizedFn,\n useLatest,\n useCreation,\n useMap,\n useUpdateEffect,\n useDebounceFn,\n} from 'ahooks';\nimport { Modal, Icon, Input, Checkbox, Tooltip } from 'luck-design/antd';\nimport classNames from 'classnames';\nimport { reduce } from 'lodash';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport { useRemoteSource, useGet } from '../../engine/provider/ContextProvider';\nimport { useContext } from '../../engine/provider/ContextProvider';\nimport JSEditor from './code-editor/JSEditor';\nimport { extractKeywords } from '../../engine/tools/helper';\nimport styles from '../style/action-bind-modal.less';\n\nconst _I18N_PREFIX_ = 'luckda.lowcode.painter.actionBindModal';\n\nconst _ACTION_CATEGORY_ = [\n {\n key: 'page-action',\n label: formatMessage({ id: `${_I18N_PREFIX_}.pageActions`, label: '页面行为' }),\n },\n // { key: 'trigger', label: formatMessage({ id: `${_I18N_PREFIX_}.trigger`, label: '触发器' }) },\n { key: 'custom', label: formatMessage({ id: `${_I18N_PREFIX_}.custom`, label: '自定义动作' }) },\n];\n\nconst _DEFAULT_JSON_CODE_ = '{\"params\":{},\"data\":{}}';\nconst _DEFAULT_JS_CODE_ = 'function todo() {\\n\\n}';\n\nconst ActionBindModal = ({\n nodeId,\n event,\n defaultCode = _DEFAULT_JS_CODE_,\n onComfirm,\n onClose,\n}) => {\n const context = useContext();\n const { module } = useRemoteSource();\n const editorRef = useRef();\n const [actionPool, { set, remove, get, setAll, reset }] = useMap([]);\n const [category, setCategory] = useState('page-action');\n const [activeKey, setActiveKey] = useState(void 0);\n const [searchValue, setSearchValue] = useState(void 0);\n const latestActiveKey = useLatest(activeKey);\n\n const pageData = useGet();\n const keywords = useCreation(\n () => extractKeywords(pageData, ['id', ['dataset', 'code'], 'field']),\n [],\n );\n\n const options = useCreation(() => {\n if (category === 'page-action') {\n return reduce(\n module.actions,\n (ret, actionName, actionKey) => {\n ret.push({ key: actionKey, label: actionName });\n return ret;\n },\n [],\n );\n } else if (category === 'trigger') {\n return reduce(\n context.componentList,\n (ret, [key, target]) => {\n ret.push({\n key,\n label: `${target.api.getSelfData().props.name}(${key})`,\n });\n return ret;\n },\n [],\n );\n } else if (category === 'custom') {\n return [\n {\n key: 'coding',\n label: formatMessage({ id: `${_I18N_PREFIX_}.coding`, label: '动作编写' }),\n },\n ];\n }\n return [];\n }, [category]);\n\n useUpdateEffect(() => {\n if (activeKey) {\n const action = get(activeKey);\n editorRef.current?.editor.setValue(action?.code);\n }\n }, [category, activeKey]);\n\n useUpdateEffect(() => {\n setAll(event?.actionPool);\n }, [event]);\n\n const { run: handleEditorValueChange } = useDebounceFn(\n (code) => {\n if (latestActiveKey.current) {\n const action = get(latestActiveKey.current);\n action.code = code;\n }\n },\n { wait: 500 },\n );\n\n const handleOptionClick = useMemoizedFn((key) => {\n setActiveKey(key);\n let action;\n if (actionPool.has(key)) {\n action = get(key);\n } else {\n const code =\n event.func ||\n (category === 'custom'\n ? defaultCode\n : `${defaultCode.slice(0, -1)}\\n\\treturn ${_DEFAULT_JSON_CODE_} \\n}`);\n action = { category, key, code };\n set(key, action);\n }\n });\n\n const handleChecked = useMemoizedFn((key, checked) => {\n if (checked) {\n if (activeKey !== key) {\n setActiveKey(key);\n }\n const code =\n event.func ||\n (category === 'custom'\n ? defaultCode\n : `${defaultCode.slice(0, -1)}\\n\\treturn ${_DEFAULT_JSON_CODE_} \\n}`);\n set(key, { category, key, code });\n } else {\n if (activeKey === key) {\n setActiveKey(void 0);\n }\n remove(key);\n }\n });\n\n const handleClose = useMemoizedFn(() => {\n onClose();\n reset();\n setCategory('page-action');\n setActiveKey(void 0);\n setSearchValue(void 0);\n });\n\n const handleComfirm = useMemoizedFn(() => {\n onComfirm(Array.from(actionPool), event);\n handleClose();\n });\n\n return (\n <Modal\n className={styles['lc-painter-panel-action-bind-modal']}\n bodyStyle={{ marginTop: 0, padding: '4px 24px' }}\n title={`${event?.name}(${nodeId})`}\n visible={!!event}\n width=\"70vw\"\n closable={false}\n maskClosable={false}\n getContainer={() => document.getElementById('lc-design-workspace')}\n onCancel={handleClose}\n onOk={handleComfirm}\n >\n <div className={styles['lc-painter-panel-action-bind-modal-body']}>\n <div className={styles['lc-painter-panel-action-bind-modal-body-left']}>\n <p>{formatMessage({ id: `${_I18N_PREFIX_}.bind`, label: '绑定动作' })}</p>\n <div className={styles['selector-box']}>\n <ul className={classNames(styles['selector-box-ul'], styles['action-category'])}>\n {_ACTION_CATEGORY_.map(({ key, label }) => (\n <li\n key={key}\n className={classNames({ [styles.active]: key === category })}\n onClick={() => {\n setCategory(key);\n if ('custom' === key) {\n const _activeKey = 'coding';\n setActiveKey(_activeKey);\n if (!actionPool.has(_activeKey)) {\n set(_activeKey, {\n category: key,\n key: _activeKey,\n code: event.func || defaultCode,\n });\n }\n } else {\n setActiveKey(void 0);\n }\n }}\n >\n {label}\n {key === category && <Icon type=\"check\" className={styles['check-icon']} />}\n </li>\n ))}\n </ul>\n <div className={styles['selecter-items-box']}>\n {category !== 'custom' && (\n <div style={{ height: 42, display: 'flex', justifyContent: 'center' }}>\n <Input.Search\n placeholder={formatMessage({ id: `${_I18N_PREFIX_}.search`, label: '搜索' })}\n size=\"small\"\n onChange={(e) => setSearchValue(e.target.value)}\n style={{ width: 170, alignSelf: 'center' }}\n />\n </div>\n )}\n <ul className={classNames(styles['selector-box-ul'], styles['selecter-items'])}>\n {options\n .filter(\n ({ key, label }) =>\n !searchValue ||\n `${key} ${label}`.toLowerCase().includes(searchValue.toLowerCase()),\n )\n .map(({ key, label }) => (\n <li\n key={key}\n className={classNames({ [styles.active]: key === activeKey })}\n onClick={() => handleOptionClick(key)}\n >\n <Checkbox\n checked={actionPool.has(key)}\n style={{ marginRight: 4 }}\n onChange={(e) => handleChecked(key, e.target.checked)}\n onClick={(e) => e.stopPropagation()}\n />\n {label}\n </li>\n ))}\n </ul>\n </div>\n </div>\n </div>\n <div className={styles['lc-painter-panel-action-bind-modal-body-right']}>\n {category === 'page-action' && (\n <>\n <p>\n {formatMessage({ id: `${_I18N_PREFIX_}.params`, label: '配置参数' })}\n <Tooltip\n title={formatMessage({\n id: `${_I18N_PREFIX_}.params.info`,\n label: '请勿随意修改配置参数结构和参数名称,参数异常可能会导致请求失败',\n })}\n getPopupContainer={() => document.getElementById('lc-design-workspace')}\n >\n <Icon style={{ marginLeft: 4 }} type=\"exclamation-circle\" />\n </Tooltip>\n </p>\n <div className={styles['code-box']}>\n {activeKey ? (\n <JSEditor ref={editorRef} onChange={handleEditorValueChange} />\n ) : (\n formatMessage({\n id: `${_I18N_PREFIX_}.noActionSelected`,\n label: '请在右侧选择行为项',\n })\n )}\n </div>\n </>\n )}\n {category === 'custom' && (\n <>\n <p>{formatMessage({ id: `${_I18N_PREFIX_}.coding`, label: '动作编写' })}</p>\n <div className={styles['code-box']}>\n {activeKey ? (\n <JSEditor\n ref={editorRef}\n keywords={keywords}\n onChange={handleEditorValueChange}\n />\n ) : (\n formatMessage({\n id: `${_I18N_PREFIX_}.noActionSelected`,\n label: '请在右侧选择行为项',\n })\n )}\n </div>\n </>\n )}\n </div>\n </div>\n </Modal>\n );\n};\n\nexport default ActionBindModal;\n"],"mappings":";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wB,CACnC,CAAC,GAEF,IAAA7E,oBAAa,EAAC;IACZC,EAAE,KAAAC,MAAA,CAAKN,aAAa,sBAAmB;IACvCG,KAAK,EAAE;EACT,CAAC,CAEA,CACL,CAED,CACF,CACA,CAAC;AAEZ,CAAC;AAAC,IAAA8I,QAAA,GAAAC,OAAA,CAAAtH,OAAA,GAEanB,eAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_antd","_styledComponents","_interopRequireDefault","_lodash","_ContextProvider","_utils","_Collapse","_PopConfirm","_FullScreenEditor","_JSEditor","_ActionBindModal","_constants","_excluded","_excluded2","_excluded3","_excluded4","_I18N_PREFIX_","EventItem","styled","div","withConfig","displayName","componentId","_DEFAULT_FUNC_","AdvancePanel","_ref","_value$render","_value$render2","meta","nodeId","target","onChange","value","useGet","isNil","id","path","ancestorId","concat","keyPath","editorRef","useRef","_useState","useState","events","_useState2","_slicedToArray2","default","setEvents","_useState3","_useState4","event","setEvent","metaMap","useCreation","_meta$advance","keyBy","advance","_useState5","render","code","_useState6","editorValue","setEditorValue","handleEventClick","useMemoizedFn","e","payload","item","props","_objectSpread3","actionPool","handleDeleteEvent","ek","_ref2","rest","_objectWithoutProperties2","_events","omit","handleComfirm","_ref3","_defineProperty2","key","handleRenderComfirm","val","current","editor","getValue","_ref4","handleRenderChange","checked","_ref5","handleEditorLayoutChange","eventsMenu","_meta$advance2","createElement","Menu","onClick","style","fontSize","reduce","ret","_value$events","push","Item","Tooltip","title","desc","name","placement","getPopupContainer","document","getElementById","width","group","LC_BUILDIN_UNIT_KEY_LIST","includes","field","label","formatMessage","bodyStyle","padding","suppressIcon","extraRender","ref","EditorComponent","JSEditor","onLayoutChange","height","showBtn","onConfirm","Icon","type","Switch","keys","map","Dropdown","overlay","Button","size","block","onComfirm","onClose","_default","exports"],"sources":["../../../../luckda/lowcode/painter/components/AdvancePanel.jsx"],"sourcesContent":["import React, { useState, useRef, useCallback } from 'react';\nimport { useCreation, useMemoizedFn } from 'ahooks';\nimport { Menu, Dropdown, Button, Tooltip, Icon, Switch } from 'luck-design/antd';\nimport styled from 'styled-components';\nimport { isNil, keyBy, keys, omit, reduce } from 'lodash';\nimport { useGet } from '../../engine/provider/ContextProvider';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport Collapse from './Collapse';\nimport PopConfirm from './PopConfirm';\nimport FullScreenEditor from './code-editor/FullScreenEditor';\nimport JSEditor from './code-editor/JSEditor';\nimport ActionBindModal from './ActionBindModal';\nimport { LC_BUILDIN_UNIT_KEY_LIST } from '../../constants';\n\nconst _I18N_PREFIX_ = 'luckda.lowcode.painter.advancePanel';\n\nconst EventItem = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 4px 8px;\n border: 1px solid #e5e6e8;\n border-radius: 6px;\n margin-bottom: 6px;\n font-size: 12px;\n i {\n color: rgba(0, 0, 0, 0.4);\n cursor: pointer;\n }\n i:not(:last-child) {\n margin-right: 6px;\n }\n`;\n\nconst _DEFAULT_FUNC_ = 'function isTrue() {\\n return true; \\n}';\n\nconst AdvancePanel = ({ meta, nodeId, target, onChange }) => {\n const value = useGet(\n isNil(target)\n ? { id: nodeId, path: 'props.advance' }\n : { id: target.ancestorId, path: `props.${target.keyPath}.advance` },\n );\n const editorRef = useRef();\n const [events, setEvents] = useState(value?.events || {});\n const [event, setEvent] = useState(null);\n const metaMap = useCreation(() => keyBy(meta?.advance?.events || [], 'key'), [meta]);\n\n const [editorValue, setEditorValue] = useState(value?.render?.code || _DEFAULT_FUNC_);\n\n const handleEventClick = useMemoizedFn((e) => {\n const { payload } = e.item.props;\n setEvent({ ...payload, actionPool: null });\n });\n\n const handleDeleteEvent = useMemoizedFn((ek) => {\n const { events, ...rest } = value || {};\n const _events = omit(events, [ek]);\n setEvents(_events);\n onChange({ ...rest, events: _events });\n });\n\n const handleComfirm = useMemoizedFn((actionPool) => {\n const { events, ...rest } = value || {};\n const _events = { ...events, [event.key]: actionPool };\n setEvents(_events);\n onChange({ ...rest, events: _events });\n });\n\n const handleRenderComfirm = useMemoizedFn(() => {\n const val = editorRef.current.editor.getValue();\n const { render, ...rest } = value || {};\n onChange({ ...rest, render: { value: isNil(render?.value) ? true : render.value, code: val } });\n });\n\n const handleRenderChange = useMemoizedFn((checked) => {\n const { render, ...rest } = value || {};\n onChange({ ...rest, render: { value: checked, code: render?.code } });\n });\n\n const handleEditorLayoutChange = (code) => {\n setEditorValue(code);\n };\n\n const eventsMenu = useCreation(\n () => (\n <Menu onClick={handleEventClick} style={{ fontSize: 12 }}>\n {reduce(\n meta.advance?.events,\n (ret, event) => {\n if (!value?.events?.[event.key]) {\n ret.push(\n <Menu.Item key={event.key} payload={event}>\n <Tooltip\n title={event.desc || event.name}\n placement=\"left\"\n getPopupContainer={() => document.getElementById('lc-design-workspace')}\n >\n <div style={{ width: '100%', fontSize: 12 }}>{event.name}</div>\n </Tooltip>\n </Menu.Item>,\n );\n }\n return ret;\n },\n [],\n )}\n </Menu>\n ),\n [value],\n );\n\n return (\n <div>\n {meta.group !== 'field' && !LC_BUILDIN_UNIT_KEY_LIST.includes(nodeId) && (\n <Collapse\n field=\"render\"\n label={formatMessage({ id: `${_I18N_PREFIX_}.render`, label: '是否渲染' })}\n bodyStyle={{ padding: '12px 16px' }}\n suppressIcon\n extraRender={() => (\n <PopConfirm\n placement=\"left\"\n title={\n <FullScreenEditor\n ref={editorRef}\n EditorComponent={JSEditor}\n onLayoutChange={handleEditorLayoutChange}\n width=\"600px\"\n height=\"400px\"\n >\n {editorValue}\n </FullScreenEditor>\n }\n showBtn\n onConfirm={handleRenderComfirm}\n >\n <Icon type=\"code\" />\n </PopConfirm>\n )}\n >\n <Switch\n checked={isNil(value?.render?.value) ? true : value.render.value}\n onChange={handleRenderChange}\n />\n </Collapse>\n )}\n <Collapse\n field=\"events\"\n label={formatMessage({ id: `${_I18N_PREFIX_}.events`, label: '事件' })}\n bodyStyle={{ padding: '12px 16px' }}\n >\n {keys(events).map((ek) => (\n <EventItem key={ek}>\n <span>{metaMap[ek].name}</span>\n <div>\n <Tooltip title={formatMessage({ id: 'luckda.lowcode.painter.edit', label: '编辑' })}>\n <Icon\n type=\"edit\"\n onClick={() => setEvent({ ...metaMap[ek], actionPool: events[ek] })}\n />\n </Tooltip>\n <Tooltip\n title={formatMessage({ id: 'luckda.lowcode.painter.delete', label: '删除' })}\n >\n <Icon type=\"delete\" onClick={() => handleDeleteEvent(ek)} />\n </Tooltip>\n </div>\n </EventItem>\n ))}\n <Dropdown\n overlay={eventsMenu}\n placement=\"bottomCenter\"\n getPopupContainer={() => document.getElementById('lc-design-workspace')}\n >\n <Button size=\"small\" block>\n {formatMessage({ id: `${_I18N_PREFIX_}.addEventAction`, label: '添加事件动作' })}\n </Button>\n </Dropdown>\n </Collapse>\n <ActionBindModal\n nodeId={nodeId}\n event={event}\n onComfirm={handleComfirm}\n onClose={() => setEvent(null)}\n />\n </div>\n );\n};\n\nexport default AdvancePanel;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,WAAA,GAAAL,sBAAA,CAAAJ,OAAA;AACA,IAAAU,iBAAA,GAAAN,sBAAA,CAAAJ,OAAA;AACA,IAAAW,SAAA,GAAAP,sBAAA,CAAAJ,OAAA;AACA,IAAAY,gBAAA,GAAAR,sBAAA,CAAAJ,OAAA;AACA,IAAAa,UAAA,GAAAb,OAAA;AAA2D,IAAAc,SAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;AAE3D,IAAM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AAA,GACvB,IAAArB,oBAAa,EAAC;IAAEpF,EAAE,KAAAG,MAAA,CAAKtB,aAAa,oBAAiB;IAAEsG,KAAK,EAAE;EAAS,CAAC,CACnE,CACA,CACF,CAAC,eACX1H,MAAA,CAAAmD,OAAA,CAAAgD,aAAA,CAACrF,gBAAA,CAAAqC,OAAe;IACdlB,MAAM,EAAEA,MAAO;IACfsB,KAAK,EAAEA,KAAM;IACb0F,SAAS,EAAE9D,aAAc;IACzB+D,OAAO,EAAE,SAAAA,QAAA;MAAA,OAAM1F,QAAQ,CAAC,IAAI,CAAC;IAAA;EAAC,CAC/B,CACE,CAAC;AAEV,CAAC;AAAC,IAAA2F,QAAA,GAAAC,OAAA,CAAAjG,OAAA,GAEavB,YAAY"}
|
|
@@ -165,4 +165,5 @@ var AttrsPanel = function AttrsPanel(_ref) {
|
|
|
165
165
|
className: _panelAttrs.default['lc-painter-panel-attrs-next-body']
|
|
166
166
|
}, (_nextRef$current3 = nextRef.current) === null || _nextRef$current3 === void 0 ? void 0 : _nextRef$current3.NextComp))));
|
|
167
167
|
};
|
|
168
|
-
var _default = exports.default = AttrsPanel;
|
|
168
|
+
var _default = exports.default = AttrsPanel;
|
|
169
|
+
//# sourceMappingURL=AttrsPanel.js.map
|