coolcare-lite-scada-component 1.0.0
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/README.md +21 -0
- package/es/app.js +52 -0
- package/es/componentIndex.js +7 -0
- package/es/components/BoxShadowPicker/index.css +22 -0
- package/es/components/BoxShadowPicker/index.js +114 -0
- package/es/components/BoxShadowPicker/index.less.d.ts +9 -0
- package/es/components/Button/index.js +6 -0
- package/es/components/ColorPalette/index.js +12 -0
- package/es/components/ColorPicker/index.css +38 -0
- package/es/components/ColorPicker/index.js +103 -0
- package/es/components/ColorPicker/util.js +31 -0
- package/es/components/DeviceSelect/DeviceTable.js +320 -0
- package/es/components/DeviceSelect/index.css +6 -0
- package/es/components/DeviceSelect/index.js +112 -0
- package/es/components/DialogExpression/ImagePicker/index.css +13 -0
- package/es/components/DialogExpression/ImagePicker/index.js +44 -0
- package/es/components/DialogExpression/index.css +9 -0
- package/es/components/DialogExpression/index.js +270 -0
- package/es/components/DialogHistory/index.css +10 -0
- package/es/components/DialogHistory/index.js +383 -0
- package/es/components/DialogIconPicker/data.js +179 -0
- package/es/components/DialogIconPicker/index.css +30 -0
- package/es/components/DialogIconPicker/index.js +101 -0
- package/es/components/DialogImagePicker/Gallery/index.css +0 -0
- package/es/components/DialogImagePicker/Gallery/index.js +96 -0
- package/es/components/DialogImagePicker/GroupPanel/index.css +3 -0
- package/es/components/DialogImagePicker/GroupPanel/index.js +89 -0
- package/es/components/DialogImagePicker/index.css +25 -0
- package/es/components/DialogImagePicker/index.js +85 -0
- package/es/components/DialogPointWrite/PointItem.js +91 -0
- package/es/components/DialogPointWrite/index.js +124 -0
- package/es/components/ECharts/index.css +5 -0
- package/es/components/ECharts/index.js +94 -0
- package/es/components/ExpressionFormat/index.css +22 -0
- package/es/components/ExpressionFormat/index.js +50 -0
- package/es/components/FontFamilySelect/index.js +25 -0
- package/es/components/FontFamilySelect/list.js +2194 -0
- package/es/components/FontStyleForm/index.css +3 -0
- package/es/components/FontStyleForm/index.js +170 -0
- package/es/components/FormBindPoint/FreedomScene.js +207 -0
- package/es/components/FormBindPoint/ProductionOrDeviceScene.js +172 -0
- package/es/components/FormBindPoint/index.css +0 -0
- package/es/components/FormBindPoint/index.js +17 -0
- package/es/components/FormIconSelect/index.js +62 -0
- package/es/components/FormNodeData/index.js +82 -0
- package/es/components/FormNodeData/utils/valueUtil.js +8 -0
- package/es/components/Icon/index.js +6 -0
- package/es/components/ImageUploader/index.js +172 -0
- package/es/components/LockBtn/index.css +4 -0
- package/es/components/LockBtn/index.js +45 -0
- package/es/components/Margin_Padding/index.css +3 -0
- package/es/components/Margin_Padding/index.js +155 -0
- package/es/components/MouseTooltip/index.css +7 -0
- package/es/components/MouseTooltip/index.js +57 -0
- package/es/components/NeedBindPointHint/index.css +12 -0
- package/es/components/NeedBindPointHint/index.js +15 -0
- package/es/components/PaddingPicker/index.css +22 -0
- package/es/components/PaddingPicker/index.js +95 -0
- package/es/components/PageLoading/index.css +29 -0
- package/es/components/PageLoading/index.js +30 -0
- package/es/components/PointEnumNameFormat/index.css +4 -0
- package/es/components/PointEnumNameFormat/index.js +9 -0
- package/es/components/PointInfoTip/index.css +3 -0
- package/es/components/PointInfoTip/index.js +193 -0
- package/es/components/PointSelect/DevicePointTable.js +128 -0
- package/es/components/PointSelect/ProductPointTable.js +98 -0
- package/es/components/PointSelect/index.css +9 -0
- package/es/components/PointSelect/index.js +278 -0
- package/es/components/Prompt/index.js +126 -0
- package/es/components/SliderWithInput/index.css +11 -0
- package/es/components/SliderWithInput/index.js +67 -0
- package/es/components/Switch/index.js +69 -0
- package/es/components/TranslateButton/index.js +26 -0
- package/es/constant.js +16 -0
- package/es/edge/EdgeLinePort/PropsSet/Flow.js +173 -0
- package/es/edge/EdgeLinePort/PropsSet/Line.js +73 -0
- package/es/edge/EdgeLinePort/PropsSet/Marker.js +81 -0
- package/es/edge/EdgeLinePort/PropsSet/index.js +25 -0
- package/es/edge/EdgeLinePort/index.js +91 -0
- package/es/edge/EdgePipe/PropsSet/Flow.js +173 -0
- package/es/edge/EdgePipe/PropsSet/Pipe.js +73 -0
- package/es/edge/EdgePipe/PropsSet/index.js +34 -0
- package/es/edge/EdgePipe/index.css +10 -0
- package/es/edge/EdgePipe/index.js +181 -0
- package/es/edge/register.js +6 -0
- package/es/element/BasicShape/Circle/index.js +81 -0
- package/es/element/BasicShape/CommentBox/index.js +77 -0
- package/es/element/BasicShape/CommentBox2/index.js +78 -0
- package/es/element/BasicShape/Ellipse/index.js +80 -0
- package/es/element/BasicShape/Heart/index.js +75 -0
- package/es/element/BasicShape/Lightning/index.js +75 -0
- package/es/element/BasicShape/PropsForm/index.css +0 -0
- package/es/element/BasicShape/PropsForm/index.js +80 -0
- package/es/element/BasicShape/Rectangle/index.js +78 -0
- package/es/element/BasicShape/Star/index.js +75 -0
- package/es/element/BorderBox/BorderBox1/Component.js +74 -0
- package/es/element/BorderBox/BorderBox1/index.css +27 -0
- package/es/element/BorderBox/BorderBox1/index.js +51 -0
- package/es/element/BorderBox/BorderBox10/Component.js +61 -0
- package/es/element/BorderBox/BorderBox10/index.css +28 -0
- package/es/element/BorderBox/BorderBox10/index.js +51 -0
- package/es/element/BorderBox/BorderBox12/Component.js +109 -0
- package/es/element/BorderBox/BorderBox12/index.css +17 -0
- package/es/element/BorderBox/BorderBox12/index.js +51 -0
- package/es/element/BorderBox/BorderBox13/Component.js +55 -0
- package/es/element/BorderBox/BorderBox13/index.css +17 -0
- package/es/element/BorderBox/BorderBox13/index.js +51 -0
- package/es/element/BorderBox/BorderBox2/Component.js +65 -0
- package/es/element/BorderBox/BorderBox2/index.css +21 -0
- package/es/element/BorderBox/BorderBox2/index.js +51 -0
- package/es/element/BorderBox/BorderBox3/Component.js +55 -0
- package/es/element/BorderBox/BorderBox3/index.css +26 -0
- package/es/element/BorderBox/BorderBox3/index.js +51 -0
- package/es/element/BorderBox/BorderBox4/Component.js +81 -0
- package/es/element/BorderBox/BorderBox4/index.css +66 -0
- package/es/element/BorderBox/BorderBox4/index.js +51 -0
- package/es/element/BorderBox/BorderBox5/Component.js +65 -0
- package/es/element/BorderBox/BorderBox5/index.css +35 -0
- package/es/element/BorderBox/BorderBox5/index.js +51 -0
- package/es/element/BorderBox/BorderBox6/Component.js +95 -0
- package/es/element/BorderBox/BorderBox6/index.css +21 -0
- package/es/element/BorderBox/BorderBox6/index.js +51 -0
- package/es/element/BorderBox/BorderBox7/Component.js +70 -0
- package/es/element/BorderBox/BorderBox7/index.css +27 -0
- package/es/element/BorderBox/BorderBox7/index.js +51 -0
- package/es/element/BorderBox/BorderBox8/Component.js +113 -0
- package/es/element/BorderBox/BorderBox8/index.css +17 -0
- package/es/element/BorderBox/BorderBox8/index.js +51 -0
- package/es/element/BorderBox/BorderBox9/Component.js +137 -0
- package/es/element/BorderBox/BorderBox9/index.css +17 -0
- package/es/element/BorderBox/BorderBox9/index.js +51 -0
- package/es/element/BorderBox/PropsSet/ColorSet.js +60 -0
- package/es/element/BorderBox/PropsSet/index.js +21 -0
- package/es/element/BorderBox/util/index.js +7 -0
- package/es/element/BorderBox/util/typings.d.ts +9 -0
- package/es/element/Decoration/Decoration1/Component.js +126 -0
- package/es/element/Decoration/Decoration1/index.css +7 -0
- package/es/element/Decoration/Decoration1/index.js +51 -0
- package/es/element/Decoration/Decoration10/Component.js +171 -0
- package/es/element/Decoration/Decoration10/index.css +5 -0
- package/es/element/Decoration/Decoration10/index.js +51 -0
- package/es/element/Decoration/Decoration2/Component.js +81 -0
- package/es/element/Decoration/Decoration2/index.css +10 -0
- package/es/element/Decoration/Decoration2/index.js +51 -0
- package/es/element/Decoration/Decoration3/Component.js +81 -0
- package/es/element/Decoration/Decoration3/index.css +7 -0
- package/es/element/Decoration/Decoration3/index.js +51 -0
- package/es/element/Decoration/Decoration4/Component.js +54 -0
- package/es/element/Decoration/Decoration4/index.css +43 -0
- package/es/element/Decoration/Decoration4/index.js +51 -0
- package/es/element/Decoration/Decoration5/Component.js +86 -0
- package/es/element/Decoration/Decoration5/index.css +4 -0
- package/es/element/Decoration/Decoration5/index.js +51 -0
- package/es/element/Decoration/Decoration6/Component.js +120 -0
- package/es/element/Decoration/Decoration6/index.css +7 -0
- package/es/element/Decoration/Decoration6/index.js +51 -0
- package/es/element/Decoration/Decoration8/Component.js +62 -0
- package/es/element/Decoration/Decoration8/index.css +5 -0
- package/es/element/Decoration/Decoration8/index.js +51 -0
- package/es/element/Decoration/PropsSet/ColorSet.js +60 -0
- package/es/element/Decoration/PropsSet/index.js +21 -0
- package/es/element/Decoration/util/index.js +33 -0
- package/es/element/Decoration/util/typings.d.ts +9 -0
- package/es/element/EleButton/Component.js +49 -0
- package/es/element/EleButton/PropsSet/TextPropsSet/index.js +27 -0
- package/es/element/EleButton/PropsSet/index.js +25 -0
- package/es/element/EleButton/index.css +15 -0
- package/es/element/EleButton/index.js +66 -0
- package/es/element/EleClock/Component.js +60 -0
- package/es/element/EleClock/PropsSet/index.js +46 -0
- package/es/element/EleClock/index.css +7 -0
- package/es/element/EleClock/index.js +55 -0
- package/es/element/EleContainer/Component.js +22 -0
- package/es/element/EleContainer/PropsSet/OtherPropsSet/index.js +63 -0
- package/es/element/EleContainer/PropsSet/index.js +29 -0
- package/es/element/EleContainer/index.css +4 -0
- package/es/element/EleContainer/index.js +54 -0
- package/es/element/EleDeviceName/Component.js +81 -0
- package/es/element/EleDeviceName/PropsSet/FormBindDevice/index.js +52 -0
- package/es/element/EleDeviceName/PropsSet/index.js +26 -0
- package/es/element/EleDeviceName/index.css +11 -0
- package/es/element/EleDeviceName/index.js +57 -0
- package/es/element/EleDeviceState/Component.js +103 -0
- package/es/element/EleDeviceState/PropsSet/FormBindDevice/index.js +53 -0
- package/es/element/EleDeviceState/PropsSet/index.js +26 -0
- package/es/element/EleDeviceState/index.css +13 -0
- package/es/element/EleDeviceState/index.js +62 -0
- package/es/element/EleDeviceUpdateTime/Component.js +94 -0
- package/es/element/EleDeviceUpdateTime/PropsSet/FormBindDateFormat/index.js +32 -0
- package/es/element/EleDeviceUpdateTime/PropsSet/FormBindDevice/index.js +52 -0
- package/es/element/EleDeviceUpdateTime/PropsSet/index.js +27 -0
- package/es/element/EleDeviceUpdateTime/index.css +9 -0
- package/es/element/EleDeviceUpdateTime/index.js +57 -0
- package/es/element/EleFan/Component.js +74 -0
- package/es/element/EleFan/PropsSet/FormBindDevice/index.js +46 -0
- package/es/element/EleFan/PropsSet/FormBindPoint/FaultQuestion.js +18 -0
- package/es/element/EleFan/PropsSet/FormBindPoint/FrostQuestion.js +18 -0
- package/es/element/EleFan/PropsSet/FormBindPoint/RefrigerationQuestion.js +18 -0
- package/es/element/EleFan/PropsSet/FormBindPoint/SwitchQuestion.js +12 -0
- package/es/element/EleFan/PropsSet/FormBindPoint/index.js +519 -0
- package/es/element/EleFan/PropsSet/index.js +66 -0
- package/es/element/EleFan/Tooltip.js +8 -0
- package/es/element/EleFan/index.css +25 -0
- package/es/element/EleFan/index.js +113 -0
- package/es/element/EleFanBySvg/PropsSet/FormBindPoint/FaultQuestion.js +18 -0
- package/es/element/EleFanBySvg/PropsSet/FormBindPoint/FrostQuestion.js +18 -0
- package/es/element/EleFanBySvg/PropsSet/FormBindPoint/RefrigerationQuestion.js +18 -0
- package/es/element/EleFanBySvg/PropsSet/FormBindPoint/SwitchQuestion.js +12 -0
- package/es/element/EleFanBySvg/PropsSet/FormBindPoint/index.js +473 -0
- package/es/element/EleFanBySvg/PropsSet/index.js +25 -0
- package/es/element/EleFanBySvg/Tooltip.js +8 -0
- package/es/element/EleFanBySvg/index.js +320 -0
- package/es/element/EleGauge/Component.js +128 -0
- package/es/element/EleGauge/PropsSet/OtherPropsSet/index.js +92 -0
- package/es/element/EleGauge/PropsSet/index.js +29 -0
- package/es/element/EleGauge/index.css +7 -0
- package/es/element/EleGauge/index.js +66 -0
- package/es/element/EleIcon/Component.js +53 -0
- package/es/element/EleIcon/PropsSet/IconPropsSet/index.js +105 -0
- package/es/element/EleIcon/PropsSet/index.js +29 -0
- package/es/element/EleIcon/index.css +13 -0
- package/es/element/EleIcon/index.js +58 -0
- package/es/element/EleImage/PropsSet/ImagePropsSet/index.js +56 -0
- package/es/element/EleImage/PropsSet/index.js +21 -0
- package/es/element/EleImage/index.js +61 -0
- package/es/element/EleIndicatorLight/Component.js +57 -0
- package/es/element/EleIndicatorLight/PropsSet/ColorPropsSet/index.js +63 -0
- package/es/element/EleIndicatorLight/PropsSet/index.js +29 -0
- package/es/element/EleIndicatorLight/index.css +4 -0
- package/es/element/EleIndicatorLight/index.js +66 -0
- package/es/element/ElePointImage/Component.js +60 -0
- package/es/element/ElePointImage/PropsSet/ImagePropsSet/index.js +84 -0
- package/es/element/ElePointImage/PropsSet/index.js +29 -0
- package/es/element/ElePointImage/index.css +9 -0
- package/es/element/ElePointImage/index.js +58 -0
- package/es/element/ElePointList/Component.js +142 -0
- package/es/element/ElePointList/PropsSet/index.js +25 -0
- package/es/element/ElePointList/index.css +22 -0
- package/es/element/ElePointList/index.js +67 -0
- package/es/element/ElePointState/Component.js +71 -0
- package/es/element/ElePointState/PropsSet/IconPropsSet/index.js +140 -0
- package/es/element/ElePointState/PropsSet/index.js +29 -0
- package/es/element/ElePointState/index.css +10 -0
- package/es/element/ElePointState/index.js +60 -0
- package/es/element/ElePointValue/Component.js +79 -0
- package/es/element/ElePointValue/PropsSet/GlobalPropSet/index.js +60 -0
- package/es/element/ElePointValue/PropsSet/TitlePropsSet/index.js +42 -0
- package/es/element/ElePointValue/PropsSet/UnitPropsSet/index.js +54 -0
- package/es/element/ElePointValue/PropsSet/ValuePropsSet/index.js +119 -0
- package/es/element/ElePointValue/PropsSet/index.js +41 -0
- package/es/element/ElePointValue/index.css +30 -0
- package/es/element/ElePointValue/index.js +63 -0
- package/es/element/EleShine/Component.js +61 -0
- package/es/element/EleShine/PropsSet/OtherPropsSet/index.js +63 -0
- package/es/element/EleShine/PropsSet/index.js +29 -0
- package/es/element/EleShine/index.css +15 -0
- package/es/element/EleShine/index.js +70 -0
- package/es/element/EleState/Tooltip.js +8 -0
- package/es/element/EleState/index.js +115 -0
- package/es/element/EleSvg/index.js +35 -0
- package/es/element/EleSwitch/Component.js +66 -0
- package/es/element/EleSwitch/PropsSet/OtherPropsSet/index.js +49 -0
- package/es/element/EleSwitch/PropsSet/index.js +25 -0
- package/es/element/EleSwitch/index.css +6 -0
- package/es/element/EleSwitch/index.js +62 -0
- package/es/element/EleText/Component.js +19 -0
- package/es/element/EleText/index.css +6 -0
- package/es/element/EleText/index.js +69 -0
- package/es/element/PipeNodes/NodeBL/index.js +74 -0
- package/es/element/PipeNodes/NodeBR/index.js +75 -0
- package/es/element/PipeNodes/NodeBottom/index.js +82 -0
- package/es/element/PipeNodes/NodeCenter/index.js +89 -0
- package/es/element/PipeNodes/NodeHorizontal/index.js +72 -0
- package/es/element/PipeNodes/NodeLeft/index.js +81 -0
- package/es/element/PipeNodes/NodeRight/index.js +81 -0
- package/es/element/PipeNodes/NodeTL/index.js +74 -0
- package/es/element/PipeNodes/NodeTL.TEMP/index.js +151 -0
- package/es/element/PipeNodes/NodeTR/index.js +74 -0
- package/es/element/PipeNodes/NodeTop/index.js +81 -0
- package/es/element/PipeNodes/NodeVertical/index.js +72 -0
- package/es/element/PipeNodes/portStyle.js +18 -0
- package/es/element/PointCard/PointCard1/Component.js +97 -0
- package/es/element/PointCard/PointCard1/PropsSet/IconPropsSet/index.js +147 -0
- package/es/element/PointCard/PointCard1/PropsSet/PointValuePropsSet/index.js +120 -0
- package/es/element/PointCard/PointCard1/PropsSet/TitlePropsSet/index.js +43 -0
- package/es/element/PointCard/PointCard1/PropsSet/index.js +37 -0
- package/es/element/PointCard/PointCard1/index.css +44 -0
- package/es/element/PointCard/PointCard1/index.js +88 -0
- package/es/element/PointCard/PointCard2/Component/PointItem.js +87 -0
- package/es/element/PointCard/PointCard2/Component/PointItemPlaceholder.js +33 -0
- package/es/element/PointCard/PointCard2/Component/index.css +30 -0
- package/es/element/PointCard/PointCard2/Component/index.js +53 -0
- package/es/element/PointCard/PointCard2/PropsSet/GlobalPropSet/index.js +14 -0
- package/es/element/PointCard/PointCard2/PropsSet/IconPropsSet/index.js +32 -0
- package/es/element/PointCard/PointCard2/PropsSet/PointItemSetDrawer/index.css +7 -0
- package/es/element/PointCard/PointCard2/PropsSet/PointItemSetDrawer/index.js +175 -0
- package/es/element/PointCard/PointCard2/PropsSet/TitlePropsSet/index.js +31 -0
- package/es/element/PointCard/PointCard2/PropsSet/index.js +52 -0
- package/es/element/PointCard/PointCard2/index.js +79 -0
- package/es/element/PointCard/PointCard3/Component.js +107 -0
- package/es/element/PointCard/PointCard3/PropsSet/IconPropsSet/index.js +178 -0
- package/es/element/PointCard/PointCard3/PropsSet/TitlePropsSet/index.js +43 -0
- package/es/element/PointCard/PointCard3/PropsSet/index.js +33 -0
- package/es/element/PointCard/PointCard3/index.css +26 -0
- package/es/element/PointCard/PointCard3/index.js +79 -0
- package/es/element/PointCard/PointListCard/Component.js +169 -0
- package/es/element/PointCard/PointListCard/PropsSet/GlobalPropSet/index.js +14 -0
- package/es/element/PointCard/PointListCard/PropsSet/LabelPropsSet/index.js +31 -0
- package/es/element/PointCard/PointListCard/PropsSet/TitlePropsSet/index.js +43 -0
- package/es/element/PointCard/PointListCard/PropsSet/ValuePropsSet/index.js +31 -0
- package/es/element/PointCard/PointListCard/PropsSet/index.js +41 -0
- package/es/element/PointCard/PointListCard/index.css +24 -0
- package/es/element/PointCard/PointListCard/index.js +87 -0
- package/es/element/PointControl/PointControl1/Component.js +110 -0
- package/es/element/PointControl/PointControl1/PropsSet/GlobalPropsSet/index.js +16 -0
- package/es/element/PointControl/PointControl1/PropsSet/PointValuePropsSet/index.js +31 -0
- package/es/element/PointControl/PointControl1/PropsSet/TitlePropsSet/index.js +43 -0
- package/es/element/PointControl/PointControl1/PropsSet/index.js +33 -0
- package/es/element/PointControl/PointControl1/index.css +21 -0
- package/es/element/PointControl/PointControl1/index.js +83 -0
- package/es/element/PointControl/PointControl3/Component.js +123 -0
- package/es/element/PointControl/PointControl3/PropsSet/IconPropsSet/index.js +147 -0
- package/es/element/PointControl/PointControl3/PropsSet/SubTitlePropsSet/index.js +53 -0
- package/es/element/PointControl/PointControl3/PropsSet/SwitchPropsSet/index.js +49 -0
- package/es/element/PointControl/PointControl3/PropsSet/TitlePropsSet/index.js +43 -0
- package/es/element/PointControl/PointControl3/PropsSet/index.js +41 -0
- package/es/element/PointControl/PointControl3/index.css +8 -0
- package/es/element/PointControl/PointControl3/index.js +94 -0
- package/es/element/nodeBase.js +48 -0
- package/es/element/reactShapeBase.js +47 -0
- package/es/element/register.js +131 -0
- package/es/element/type.d.ts +143 -0
- package/es/element/utils/getValueByExpression.js +22 -0
- package/es/element/utils/handleEleEvent.js +60 -0
- package/es/element/utils/index.js +4 -0
- package/es/element/utils/pointWrite.js +197 -0
- package/es/element/utils/shapeReactComponentShouldUpdate.js +7 -0
- package/es/global.css +162 -0
- package/es/graph/graphCore.js +501 -0
- package/es/graph/tools/ToolTipTool.js +139 -0
- package/es/graph/tools/registerX6Tool.js +1 -0
- package/es/hooks/index.js +7 -0
- package/es/hooks/useCMDKey.js +19 -0
- package/es/hooks/useEleEventHandle.js +36 -0
- package/es/hooks/useFirstMountState.js +9 -0
- package/es/hooks/useForceUpdate.js +23 -0
- package/es/hooks/useMittNamespace.js +7 -0
- package/es/hooks/usePointWatch.js +30 -0
- package/es/hooks/useQuery.js +6 -0
- package/es/models/useEditor.js +185 -0
- package/es/models/useElePanel.js +23 -0
- package/es/pages/display/Player/index.css +15 -0
- package/es/pages/display/Player/index.js +434 -0
- package/es/pages/display/components/Empty/index.css +9 -0
- package/es/pages/display/components/Empty/index.js +22 -0
- package/es/pages/display/components/Tools/index.js +86 -0
- package/es/pages/display/index.css +4 -0
- package/es/pages/display/index.js +231 -0
- package/es/pages/document.ejs +77 -0
- package/es/pages/editor/Palette/PaletteDropdown/index.css +9 -0
- package/es/pages/editor/Palette/PaletteDropdown/index.js +178 -0
- package/es/pages/editor/Palette/index.css +13 -0
- package/es/pages/editor/Palette/index.js +86 -0
- package/es/pages/editor/PanelLeft/BasicShapeList/index.js +32 -0
- package/es/pages/editor/PanelLeft/BasicShapeList/listData.js +63 -0
- package/es/pages/editor/PanelLeft/BorderBoxEleList/index.css +9 -0
- package/es/pages/editor/PanelLeft/BorderBoxEleList/index.js +19 -0
- package/es/pages/editor/PanelLeft/BorderBoxEleList/index.less.d.ts +7 -0
- package/es/pages/editor/PanelLeft/BorderBoxEleList/listData.js +49 -0
- package/es/pages/editor/PanelLeft/DecorationEleList/index.css +12 -0
- package/es/pages/editor/PanelLeft/DecorationEleList/index.js +21 -0
- package/es/pages/editor/PanelLeft/DecorationEleList/index.less.d.ts +7 -0
- package/es/pages/editor/PanelLeft/DecorationEleList/listData.js +65 -0
- package/es/pages/editor/PanelLeft/GroupManageDialog/index.css +32 -0
- package/es/pages/editor/PanelLeft/GroupManageDialog/index.js +300 -0
- package/es/pages/editor/PanelLeft/ImgConfigDialog/index.css +0 -0
- package/es/pages/editor/PanelLeft/ImgConfigDialog/index.js +220 -0
- package/es/pages/editor/PanelLeft/ImgGroup/index.css +62 -0
- package/es/pages/editor/PanelLeft/ImgGroup/index.js +317 -0
- package/es/pages/editor/PanelLeft/MetaEleList/index.js +37 -0
- package/es/pages/editor/PanelLeft/MetaEleList/listData.js +88 -0
- package/es/pages/editor/PanelLeft/MineImgGroup/index.css +0 -0
- package/es/pages/editor/PanelLeft/MineImgGroup/index.js +163 -0
- package/es/pages/editor/PanelLeft/PipeEleList/index.css +0 -0
- package/es/pages/editor/PanelLeft/PipeEleList/index.js +33 -0
- package/es/pages/editor/PanelLeft/PipeEleList/listData.js +69 -0
- package/es/pages/editor/PanelLeft/PointCardEleList/index.js +31 -0
- package/es/pages/editor/PanelLeft/PointCardEleList/listData.js +37 -0
- package/es/pages/editor/PanelLeft/RecommendEleList/index.js +37 -0
- package/es/pages/editor/PanelLeft/RecommendEleList/listData.js +27 -0
- package/es/pages/editor/PanelLeft/SystemImgGroupList/index.css +6 -0
- package/es/pages/editor/PanelLeft/SystemImgGroupList/index.js +119 -0
- package/es/pages/editor/PanelLeft/index.css +100 -0
- package/es/pages/editor/PanelLeft/index.js +200 -0
- package/es/pages/editor/PanelLeft/index.less.d.ts +11 -0
- package/es/pages/editor/PanelRight/components/FormBindEvent/index.js +202 -0
- package/es/pages/editor/PanelRight/components/FormEleBorderStyle/index.js +145 -0
- package/es/pages/editor/PanelRight/components/FormEleLayout/index.css +8 -0
- package/es/pages/editor/PanelRight/components/FormEleLayout/index.js +214 -0
- package/es/pages/editor/PanelRight/components/FormElePadding/index.js +11 -0
- package/es/pages/editor/PanelRight/components/FormFillStyle/index.js +92 -0
- package/es/pages/editor/PanelRight/components/FormFontStyle/index.js +186 -0
- package/es/pages/editor/PanelRight/components/FormLayer/index.js +222 -0
- package/es/pages/editor/PanelRight/index.css +26 -0
- package/es/pages/editor/PanelRight/index.js +164 -0
- package/es/pages/editor/PanelRight/index.less.d.ts +7 -0
- package/es/pages/editor/PanelTop/FullScreen/index.js +31 -0
- package/es/pages/editor/PanelTop/HistoryControl/index.js +78 -0
- package/es/pages/editor/PanelTop/HotKeyDescribe/index.css +35 -0
- package/es/pages/editor/PanelTop/HotKeyDescribe/index.js +114 -0
- package/es/pages/editor/PanelTop/HotKeyDescribe/index.less.d.ts +10 -0
- package/es/pages/editor/PanelTop/Save/index.js +179 -0
- package/es/pages/editor/PanelTop/ZoomControl/index.css +0 -0
- package/es/pages/editor/PanelTop/ZoomControl/index.js +100 -0
- package/es/pages/editor/PanelTop/index.css +57 -0
- package/es/pages/editor/PanelTop/index.js +321 -0
- package/es/pages/editor/index.css +39 -0
- package/es/pages/editor/index.js +298 -0
- package/es/provider/index.js +2 -0
- package/es/provider/mittMeat.js +4 -0
- package/es/services/common/Uploader.js +45 -0
- package/es/services/common/index.js +8 -0
- package/es/services/common/typings.d.ts +15 -0
- package/es/services/gateway/CompanyConfiguration.js +87 -0
- package/es/services/gateway/Device.js +437 -0
- package/es/services/gateway/DeviceAuthorizationApply.js +111 -0
- package/es/services/gateway/DeviceGroup.js +137 -0
- package/es/services/gateway/Gateway.js +442 -0
- package/es/services/gateway/GatewayGroup.js +112 -0
- package/es/services/gateway/Point.js +137 -0
- package/es/services/gateway/UserDevice.js +112 -0
- package/es/services/gateway/index.js +22 -0
- package/es/services/gateway/typings.d.ts +1674 -0
- package/es/services/master/Func.js +33 -0
- package/es/services/master/Role.js +153 -0
- package/es/services/master/User.js +244 -0
- package/es/services/master/index.js +12 -0
- package/es/services/master/typings.d.ts +362 -0
- package/es/services/product/ConfigurationImg.js +87 -0
- package/es/services/product/ConfigurationImgGroup.js +87 -0
- package/es/services/product/DeviceType.js +37 -0
- package/es/services/product/Identifier.js +33 -0
- package/es/services/product/PointEnum.js +87 -0
- package/es/services/product/PointGroup.js +112 -0
- package/es/services/product/Product.js +351 -0
- package/es/services/product/ProductCompany.js +183 -0
- package/es/services/product/index.js +22 -0
- package/es/services/product/typings.d.ts +1045 -0
- package/es/services/project/ProjectGateway.js +62 -0
- package/es/services/project/ProjectResource.js +205 -0
- package/es/services/project/ProjectRole.js +302 -0
- package/es/services/project/ProjectUserPermission.js +217 -0
- package/es/services/project/Subarea.js +236 -0
- package/es/services/project/UserSubarea.js +62 -0
- package/es/services/project/index.js +18 -0
- package/es/services/project/typings.d.ts +1609 -0
- package/es/services/request.js +196 -0
- package/es/shims.x6.d.ts +15 -0
- package/es/typings.d.ts +182 -0
- package/es/utils/auth.js +90 -0
- package/es/utils/cssStyle.js +11 -0
- package/es/utils/decomposeMatrix.js +46 -0
- package/es/utils/events.js +7 -0
- package/es/utils/getMittMeta.js +14 -0
- package/es/utils/index.js +163 -0
- package/es/utils/isInIframe.js +8 -0
- package/es/utils/queryToObject.js +19 -0
- package/es/utils/svg.js +46 -0
- package/es/utils/type.js +3 -0
- package/es/x6Reset.css +36 -0
- package/package.json +84 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { Form, InputNumber, Select } from 'antd';
|
|
10
|
+
import { useModel } from 'umi';
|
|
11
|
+
import { useEffect, useState } from 'react';
|
|
12
|
+
import ColorPicker from "../../../components/ColorPicker";
|
|
13
|
+
import TranslateButton from "../../../components/TranslateButton";
|
|
14
|
+
import DialogExpressionBind from "../../../components/DialogExpression";
|
|
15
|
+
import { directions, flowStates } from "../index";
|
|
16
|
+
var Option = Select.Option;
|
|
17
|
+
var formLayout = {
|
|
18
|
+
wrapperCol: {
|
|
19
|
+
span: 18
|
|
20
|
+
},
|
|
21
|
+
labelCol: {
|
|
22
|
+
span: 5
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var FlowPropsForm = function FlowPropsForm() {
|
|
26
|
+
var _useState = useState(false),
|
|
27
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
28
|
+
visibleDirectionExpression = _useState2[0],
|
|
29
|
+
setVisibleDirectionExpression = _useState2[1];
|
|
30
|
+
var _useState3 = useState([]),
|
|
31
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
32
|
+
expressionsDirection = _useState4[0],
|
|
33
|
+
setExpressionsDirection = _useState4[1];
|
|
34
|
+
var _useState5 = useState(false),
|
|
35
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
36
|
+
visibleIsFlowExpression = _useState6[0],
|
|
37
|
+
setVisibleIsFlowExpression = _useState6[1];
|
|
38
|
+
var _useState7 = useState([]),
|
|
39
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
40
|
+
expressionsIsFlow = _useState8[0],
|
|
41
|
+
setExpressionsIsFlow = _useState8[1];
|
|
42
|
+
var _Form$useForm = Form.useForm(),
|
|
43
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
44
|
+
form = _Form$useForm2[0];
|
|
45
|
+
var _useModel = useModel('useEditor', function (model) {
|
|
46
|
+
return {
|
|
47
|
+
activeEdge: model.activeEdge
|
|
48
|
+
};
|
|
49
|
+
}),
|
|
50
|
+
activeEdge = _useModel.activeEdge;
|
|
51
|
+
useEffect(function () {
|
|
52
|
+
if (!activeEdge) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
var data = activeEdge.getData().flow;
|
|
56
|
+
form.setFieldsValue({
|
|
57
|
+
direction: data.direction,
|
|
58
|
+
color: activeEdge.getAttrByPath(['flow', 'stroke']),
|
|
59
|
+
width: activeEdge.getAttrByPath(['flow', 'strokeWidth']),
|
|
60
|
+
isFlow: data.isFlow
|
|
61
|
+
});
|
|
62
|
+
setExpressionsDirection(data.directionExpressions || []);
|
|
63
|
+
setExpressionsIsFlow(data.isFlowExpressions || []);
|
|
64
|
+
}, [activeEdge, form]);
|
|
65
|
+
var onValuesChange = function onValuesChange(changedValues, values) {
|
|
66
|
+
if (!activeEdge) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
var color = values.color,
|
|
70
|
+
width = values.width,
|
|
71
|
+
direction = values.direction,
|
|
72
|
+
stream = values.isFlow;
|
|
73
|
+
activeEdge.setAttrs({
|
|
74
|
+
flow: {
|
|
75
|
+
stroke: color,
|
|
76
|
+
strokeWidth: width,
|
|
77
|
+
style: {
|
|
78
|
+
animation: stream === '流动' ? "".concat(direction === '正向' ? 'line-animate' : 'line-animate-reverse', " 50s infinite linear") : ''
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
var handleChangeDirectionExpression = function handleChangeDirectionExpression(expressions) {
|
|
84
|
+
activeEdge === null || activeEdge === void 0 ? void 0 : activeEdge.setData({
|
|
85
|
+
flow: {
|
|
86
|
+
directionExpressions: expressions
|
|
87
|
+
}
|
|
88
|
+
}, {
|
|
89
|
+
deep: true
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
var handleChangeIsFlowExpression = function handleChangeIsFlowExpression(expressions) {
|
|
93
|
+
activeEdge === null || activeEdge === void 0 ? void 0 : activeEdge.setData({
|
|
94
|
+
flow: {
|
|
95
|
+
IsFlowExpressions: expressions
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
deep: true
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form, _extends({
|
|
102
|
+
size: "small",
|
|
103
|
+
colon: false,
|
|
104
|
+
onValuesChange: onValuesChange,
|
|
105
|
+
form: form
|
|
106
|
+
}, formLayout), /*#__PURE__*/React.createElement(Form.Item, {
|
|
107
|
+
name: "width",
|
|
108
|
+
label: "\u5BBD\u5EA6"
|
|
109
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
110
|
+
min: 1,
|
|
111
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
112
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
113
|
+
name: "color",
|
|
114
|
+
label: "\u989C\u8272"
|
|
115
|
+
}, /*#__PURE__*/React.createElement(ColorPicker, {
|
|
116
|
+
style: {
|
|
117
|
+
width: 90
|
|
118
|
+
}
|
|
119
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
120
|
+
className: "relative"
|
|
121
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
122
|
+
name: "direction",
|
|
123
|
+
wrapperCol: {
|
|
124
|
+
span: 10
|
|
125
|
+
},
|
|
126
|
+
label: "\u65B9\u5411"
|
|
127
|
+
}, /*#__PURE__*/React.createElement(Select, null, directions.map(function (direction) {
|
|
128
|
+
return /*#__PURE__*/React.createElement(Option, {
|
|
129
|
+
key: direction,
|
|
130
|
+
value: direction
|
|
131
|
+
}, direction);
|
|
132
|
+
}))), /*#__PURE__*/React.createElement(TranslateButton, {
|
|
133
|
+
onClick: function onClick() {
|
|
134
|
+
return setVisibleDirectionExpression(true);
|
|
135
|
+
},
|
|
136
|
+
className: "absolute right-[55px] top-0"
|
|
137
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
138
|
+
className: "relative"
|
|
139
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
140
|
+
name: "isFlow",
|
|
141
|
+
wrapperCol: {
|
|
142
|
+
span: 10
|
|
143
|
+
},
|
|
144
|
+
label: "\u6D41\u52A8"
|
|
145
|
+
}, /*#__PURE__*/React.createElement(Select, null, flowStates.map(function (state) {
|
|
146
|
+
return /*#__PURE__*/React.createElement(Option, {
|
|
147
|
+
key: state,
|
|
148
|
+
value: state
|
|
149
|
+
}, state);
|
|
150
|
+
}))), /*#__PURE__*/React.createElement(TranslateButton, {
|
|
151
|
+
onClick: function onClick() {
|
|
152
|
+
return setVisibleIsFlowExpression(true);
|
|
153
|
+
},
|
|
154
|
+
className: "absolute right-[55px] top-0"
|
|
155
|
+
}))), /*#__PURE__*/React.createElement(DialogExpressionBind, {
|
|
156
|
+
visible: visibleDirectionExpression,
|
|
157
|
+
expressions: expressionsDirection,
|
|
158
|
+
onCancel: function onCancel() {
|
|
159
|
+
return setVisibleDirectionExpression(false);
|
|
160
|
+
},
|
|
161
|
+
valueType: "text",
|
|
162
|
+
onChange: handleChangeDirectionExpression
|
|
163
|
+
}), /*#__PURE__*/React.createElement(DialogExpressionBind, {
|
|
164
|
+
visible: visibleIsFlowExpression,
|
|
165
|
+
expressions: expressionsIsFlow,
|
|
166
|
+
onCancel: function onCancel() {
|
|
167
|
+
return setVisibleIsFlowExpression(false);
|
|
168
|
+
},
|
|
169
|
+
valueType: "text",
|
|
170
|
+
onChange: handleChangeIsFlowExpression
|
|
171
|
+
}));
|
|
172
|
+
};
|
|
173
|
+
export default FlowPropsForm;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { Form, InputNumber } from 'antd';
|
|
10
|
+
import { useModel } from 'umi';
|
|
11
|
+
import { useEffect } from 'react';
|
|
12
|
+
import ColorPicker from "../../../components/ColorPicker";
|
|
13
|
+
var formLayout = {
|
|
14
|
+
wrapperCol: {
|
|
15
|
+
span: 18
|
|
16
|
+
},
|
|
17
|
+
labelCol: {
|
|
18
|
+
span: 5
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
var FlowPropsForm = function FlowPropsForm() {
|
|
22
|
+
var _Form$useForm = Form.useForm(),
|
|
23
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
24
|
+
form = _Form$useForm2[0];
|
|
25
|
+
var _useModel = useModel('useEditor', function (model) {
|
|
26
|
+
return {
|
|
27
|
+
activeEdge: model.activeEdge
|
|
28
|
+
};
|
|
29
|
+
}),
|
|
30
|
+
activeEdge = _useModel.activeEdge;
|
|
31
|
+
useEffect(function () {
|
|
32
|
+
if (!activeEdge) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
form.setFieldsValue({
|
|
36
|
+
color: activeEdge.getAttrByPath(['line', 'stroke']),
|
|
37
|
+
width: activeEdge.getAttrByPath(['line', 'strokeWidth'])
|
|
38
|
+
});
|
|
39
|
+
}, [activeEdge, form]);
|
|
40
|
+
var onValuesChange = function onValuesChange(changedValues, values) {
|
|
41
|
+
if (!activeEdge) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
var color = values.color,
|
|
45
|
+
width = values.width;
|
|
46
|
+
activeEdge.setAttrs({
|
|
47
|
+
line: {
|
|
48
|
+
stroke: color,
|
|
49
|
+
strokeWidth: width
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
return /*#__PURE__*/React.createElement(Form, _extends({
|
|
54
|
+
size: "small",
|
|
55
|
+
colon: false,
|
|
56
|
+
onValuesChange: onValuesChange,
|
|
57
|
+
form: form
|
|
58
|
+
}, formLayout), /*#__PURE__*/React.createElement(Form.Item, {
|
|
59
|
+
name: "width",
|
|
60
|
+
label: "\u5BBD\u5EA6"
|
|
61
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
62
|
+
min: 1,
|
|
63
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
64
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
65
|
+
name: "color",
|
|
66
|
+
label: "\u989C\u8272"
|
|
67
|
+
}, /*#__PURE__*/React.createElement(ColorPicker, {
|
|
68
|
+
style: {
|
|
69
|
+
width: 90
|
|
70
|
+
}
|
|
71
|
+
})));
|
|
72
|
+
};
|
|
73
|
+
export default FlowPropsForm;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { Form, InputNumber } from 'antd';
|
|
10
|
+
import { useModel } from 'umi';
|
|
11
|
+
import { useEffect } from 'react';
|
|
12
|
+
import ColorPicker from "../../../components/ColorPicker";
|
|
13
|
+
var formLayout = {
|
|
14
|
+
wrapperCol: {
|
|
15
|
+
span: 18
|
|
16
|
+
},
|
|
17
|
+
labelCol: {
|
|
18
|
+
span: 5
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
var FlowPropsForm = function FlowPropsForm() {
|
|
22
|
+
var _Form$useForm = Form.useForm(),
|
|
23
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
24
|
+
form = _Form$useForm2[0];
|
|
25
|
+
var _useModel = useModel('useEditor', function (model) {
|
|
26
|
+
return {
|
|
27
|
+
activeEdge: model.activeEdge
|
|
28
|
+
};
|
|
29
|
+
}),
|
|
30
|
+
activeEdge = _useModel.activeEdge;
|
|
31
|
+
useEffect(function () {
|
|
32
|
+
if (!activeEdge) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
form.setFieldsValue({
|
|
36
|
+
radius: activeEdge.getAttrByPath(['line', 'sourceMarker', 'r']),
|
|
37
|
+
color: activeEdge.getAttrByPath(['line', 'sourceMarker', 'fill'])
|
|
38
|
+
});
|
|
39
|
+
}, [activeEdge, form]);
|
|
40
|
+
var onValuesChange = function onValuesChange(changedValues, values) {
|
|
41
|
+
if (!activeEdge) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
var radius = values.radius,
|
|
45
|
+
color = values.color;
|
|
46
|
+
activeEdge.setAttrs({
|
|
47
|
+
line: {
|
|
48
|
+
targetMarker: {
|
|
49
|
+
r: radius,
|
|
50
|
+
fill: color,
|
|
51
|
+
stroke: color
|
|
52
|
+
},
|
|
53
|
+
sourceMarker: {
|
|
54
|
+
fill: color,
|
|
55
|
+
stroke: color,
|
|
56
|
+
r: radius
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
return /*#__PURE__*/React.createElement(Form, _extends({
|
|
62
|
+
size: "small",
|
|
63
|
+
colon: false,
|
|
64
|
+
onValuesChange: onValuesChange,
|
|
65
|
+
form: form
|
|
66
|
+
}, formLayout), /*#__PURE__*/React.createElement(Form.Item, {
|
|
67
|
+
name: "radius",
|
|
68
|
+
label: "\u534A\u5F84"
|
|
69
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
70
|
+
min: 1,
|
|
71
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
72
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
73
|
+
name: "color",
|
|
74
|
+
label: "\u989C\u8272"
|
|
75
|
+
}, /*#__PURE__*/React.createElement(ColorPicker, {
|
|
76
|
+
style: {
|
|
77
|
+
width: 90
|
|
78
|
+
}
|
|
79
|
+
})));
|
|
80
|
+
};
|
|
81
|
+
export default FlowPropsForm;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Collapse } from 'antd';
|
|
3
|
+
import { CaretRightOutlined } from '@ant-design/icons';
|
|
4
|
+
import Line from "./Line";
|
|
5
|
+
import Marker from "./Marker";
|
|
6
|
+
var Panel = Collapse.Panel;
|
|
7
|
+
var PropsSet = function PropsSet() {
|
|
8
|
+
return /*#__PURE__*/React.createElement(Collapse, {
|
|
9
|
+
defaultActiveKey: ['1', '2', '3'],
|
|
10
|
+
ghost: true,
|
|
11
|
+
expandIcon: function expandIcon(_ref) {
|
|
12
|
+
var isActive = _ref.isActive;
|
|
13
|
+
return /*#__PURE__*/React.createElement(CaretRightOutlined, {
|
|
14
|
+
rotate: isActive ? 90 : 0
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Panel, {
|
|
18
|
+
header: "\u7EBF\u6761",
|
|
19
|
+
key: "2"
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Line, null)), /*#__PURE__*/React.createElement(Panel, {
|
|
21
|
+
header: "\u7BAD\u5934",
|
|
22
|
+
key: "3"
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Marker, null)));
|
|
24
|
+
};
|
|
25
|
+
export default PropsSet;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
5
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
6
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
11
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
14
|
+
import { Edge } from '@antv/x6';
|
|
15
|
+
import { PRIMARY_COLOR } from "../../constant";
|
|
16
|
+
export var shapeName = 'edge-line-port';
|
|
17
|
+
var defaultColor = PRIMARY_COLOR;
|
|
18
|
+
var defaultLineWidth = 1;
|
|
19
|
+
var EdgeLinePort = /*#__PURE__*/function (_Edge) {
|
|
20
|
+
_inherits(EdgeLinePort, _Edge);
|
|
21
|
+
var _super = _createSuper(EdgeLinePort);
|
|
22
|
+
function EdgeLinePort() {
|
|
23
|
+
var _this;
|
|
24
|
+
_classCallCheck(this, EdgeLinePort);
|
|
25
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
26
|
+
args[_key] = arguments[_key];
|
|
27
|
+
}
|
|
28
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
29
|
+
_this.shapeName = shapeName;
|
|
30
|
+
return _this;
|
|
31
|
+
} // constructor(metadata?: Edge.Metadata) {
|
|
32
|
+
// super(metadata);
|
|
33
|
+
// }
|
|
34
|
+
return _createClass(EdgeLinePort);
|
|
35
|
+
}(Edge);
|
|
36
|
+
EdgeLinePort.shapeName = shapeName;
|
|
37
|
+
export var defaultConfig = {
|
|
38
|
+
width: defaultLineWidth,
|
|
39
|
+
height: 60,
|
|
40
|
+
shape: shapeName,
|
|
41
|
+
data: {}
|
|
42
|
+
};
|
|
43
|
+
EdgeLinePort.config({
|
|
44
|
+
shape: shapeName,
|
|
45
|
+
connector: {
|
|
46
|
+
name: 'rounded'
|
|
47
|
+
},
|
|
48
|
+
markup: [{
|
|
49
|
+
tagName: 'path',
|
|
50
|
+
selector: 'wrap',
|
|
51
|
+
attrs: {
|
|
52
|
+
fill: 'none',
|
|
53
|
+
cursor: 'pointer',
|
|
54
|
+
stroke: 'transparent',
|
|
55
|
+
strokeLinecap: 'round'
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
tagName: 'path',
|
|
59
|
+
selector: 'line',
|
|
60
|
+
attrs: {
|
|
61
|
+
fill: 'none',
|
|
62
|
+
pointerEvents: 'none'
|
|
63
|
+
}
|
|
64
|
+
}],
|
|
65
|
+
attrs: {
|
|
66
|
+
wrap: {
|
|
67
|
+
connection: true,
|
|
68
|
+
strokeWidth: 10,
|
|
69
|
+
strokeLinejoin: 'round'
|
|
70
|
+
},
|
|
71
|
+
line: {
|
|
72
|
+
connection: true,
|
|
73
|
+
stroke: defaultColor,
|
|
74
|
+
strokeWidth: defaultLineWidth,
|
|
75
|
+
targetMarker: {
|
|
76
|
+
name: 'circle',
|
|
77
|
+
r: 2,
|
|
78
|
+
fill: defaultColor,
|
|
79
|
+
stroke: defaultColor
|
|
80
|
+
},
|
|
81
|
+
sourceMarker: {
|
|
82
|
+
name: 'circle',
|
|
83
|
+
r: 2,
|
|
84
|
+
fill: defaultColor,
|
|
85
|
+
stroke: defaultColor
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
data: {}
|
|
90
|
+
});
|
|
91
|
+
export default EdgeLinePort;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { Form, InputNumber, Select } from 'antd';
|
|
10
|
+
import { useModel } from 'umi';
|
|
11
|
+
import { useEffect, useState } from 'react';
|
|
12
|
+
import ColorPicker from "../../../components/ColorPicker";
|
|
13
|
+
import TranslateButton from "../../../components/TranslateButton";
|
|
14
|
+
import DialogExpressionBind from "../../../components/DialogExpression";
|
|
15
|
+
import { directions, flowStates } from "../index";
|
|
16
|
+
var Option = Select.Option;
|
|
17
|
+
var formLayout = {
|
|
18
|
+
wrapperCol: {
|
|
19
|
+
span: 18
|
|
20
|
+
},
|
|
21
|
+
labelCol: {
|
|
22
|
+
span: 5
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var FlowPropsForm = function FlowPropsForm() {
|
|
26
|
+
var _useState = useState(false),
|
|
27
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
28
|
+
visibleDirectionExpression = _useState2[0],
|
|
29
|
+
setVisibleDirectionExpression = _useState2[1];
|
|
30
|
+
var _useState3 = useState([]),
|
|
31
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
32
|
+
expressionsDirection = _useState4[0],
|
|
33
|
+
setExpressionsDirection = _useState4[1];
|
|
34
|
+
var _useState5 = useState(false),
|
|
35
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
36
|
+
visibleIsFlowExpression = _useState6[0],
|
|
37
|
+
setVisibleIsFlowExpression = _useState6[1];
|
|
38
|
+
var _useState7 = useState([]),
|
|
39
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
40
|
+
expressionsIsFlow = _useState8[0],
|
|
41
|
+
setExpressionsIsFlow = _useState8[1];
|
|
42
|
+
var _Form$useForm = Form.useForm(),
|
|
43
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
44
|
+
form = _Form$useForm2[0];
|
|
45
|
+
var _useModel = useModel('useEditor', function (model) {
|
|
46
|
+
return {
|
|
47
|
+
activeEdge: model.activeEdge
|
|
48
|
+
};
|
|
49
|
+
}),
|
|
50
|
+
activeEdge = _useModel.activeEdge;
|
|
51
|
+
useEffect(function () {
|
|
52
|
+
if (!activeEdge) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
var data = activeEdge.getData().flow;
|
|
56
|
+
form.setFieldsValue({
|
|
57
|
+
direction: data.direction,
|
|
58
|
+
color: activeEdge.getAttrByPath(['flow', 'stroke']),
|
|
59
|
+
width: activeEdge.getAttrByPath(['flow', 'strokeWidth']),
|
|
60
|
+
isFlow: data.isFlow
|
|
61
|
+
});
|
|
62
|
+
setExpressionsDirection(data.directionExpressions || []);
|
|
63
|
+
setExpressionsIsFlow(data.isFlowExpressions || []);
|
|
64
|
+
}, [activeEdge, form]);
|
|
65
|
+
var onValuesChange = function onValuesChange(changedValues, values) {
|
|
66
|
+
if (!activeEdge) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
var color = values.color,
|
|
70
|
+
width = values.width,
|
|
71
|
+
direction = values.direction,
|
|
72
|
+
stream = values.isFlow;
|
|
73
|
+
activeEdge.setAttrs({
|
|
74
|
+
flow: {
|
|
75
|
+
stroke: color,
|
|
76
|
+
strokeWidth: width,
|
|
77
|
+
style: {
|
|
78
|
+
animation: stream === '流动' ? "".concat(direction === '正向' ? 'line-animate' : 'line-animate-reverse', " 50s infinite linear") : ''
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
var handleChangeDirectionExpression = function handleChangeDirectionExpression(expressions) {
|
|
84
|
+
activeEdge === null || activeEdge === void 0 ? void 0 : activeEdge.setData({
|
|
85
|
+
flow: {
|
|
86
|
+
directionExpressions: expressions
|
|
87
|
+
}
|
|
88
|
+
}, {
|
|
89
|
+
deep: true
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
var handleChangeIsFlowExpression = function handleChangeIsFlowExpression(expressions) {
|
|
93
|
+
activeEdge === null || activeEdge === void 0 ? void 0 : activeEdge.setData({
|
|
94
|
+
flow: {
|
|
95
|
+
IsFlowExpressions: expressions
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
deep: true
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form, _extends({
|
|
102
|
+
size: "small",
|
|
103
|
+
colon: false,
|
|
104
|
+
onValuesChange: onValuesChange,
|
|
105
|
+
form: form
|
|
106
|
+
}, formLayout), /*#__PURE__*/React.createElement(Form.Item, {
|
|
107
|
+
name: "width",
|
|
108
|
+
label: "\u5BBD\u5EA6"
|
|
109
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
110
|
+
min: 1,
|
|
111
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
112
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
113
|
+
name: "color",
|
|
114
|
+
label: "\u989C\u8272"
|
|
115
|
+
}, /*#__PURE__*/React.createElement(ColorPicker, {
|
|
116
|
+
style: {
|
|
117
|
+
width: 90
|
|
118
|
+
}
|
|
119
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
120
|
+
className: "relative"
|
|
121
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
122
|
+
name: "direction",
|
|
123
|
+
wrapperCol: {
|
|
124
|
+
span: 10
|
|
125
|
+
},
|
|
126
|
+
label: "\u65B9\u5411"
|
|
127
|
+
}, /*#__PURE__*/React.createElement(Select, null, directions.map(function (direction) {
|
|
128
|
+
return /*#__PURE__*/React.createElement(Option, {
|
|
129
|
+
key: direction,
|
|
130
|
+
value: direction
|
|
131
|
+
}, direction);
|
|
132
|
+
}))), /*#__PURE__*/React.createElement(TranslateButton, {
|
|
133
|
+
onClick: function onClick() {
|
|
134
|
+
return setVisibleDirectionExpression(true);
|
|
135
|
+
},
|
|
136
|
+
className: "absolute right-[55px] top-0"
|
|
137
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
138
|
+
className: "relative"
|
|
139
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
140
|
+
name: "isFlow",
|
|
141
|
+
wrapperCol: {
|
|
142
|
+
span: 10
|
|
143
|
+
},
|
|
144
|
+
label: "\u6D41\u52A8"
|
|
145
|
+
}, /*#__PURE__*/React.createElement(Select, null, flowStates.map(function (state) {
|
|
146
|
+
return /*#__PURE__*/React.createElement(Option, {
|
|
147
|
+
key: state,
|
|
148
|
+
value: state
|
|
149
|
+
}, state);
|
|
150
|
+
}))), /*#__PURE__*/React.createElement(TranslateButton, {
|
|
151
|
+
onClick: function onClick() {
|
|
152
|
+
return setVisibleIsFlowExpression(true);
|
|
153
|
+
},
|
|
154
|
+
className: "absolute right-[55px] top-0"
|
|
155
|
+
}))), /*#__PURE__*/React.createElement(DialogExpressionBind, {
|
|
156
|
+
visible: visibleDirectionExpression,
|
|
157
|
+
expressions: expressionsDirection,
|
|
158
|
+
onCancel: function onCancel() {
|
|
159
|
+
return setVisibleDirectionExpression(false);
|
|
160
|
+
},
|
|
161
|
+
valueType: "text",
|
|
162
|
+
onChange: handleChangeDirectionExpression
|
|
163
|
+
}), /*#__PURE__*/React.createElement(DialogExpressionBind, {
|
|
164
|
+
visible: visibleIsFlowExpression,
|
|
165
|
+
expressions: expressionsIsFlow,
|
|
166
|
+
onCancel: function onCancel() {
|
|
167
|
+
return setVisibleIsFlowExpression(false);
|
|
168
|
+
},
|
|
169
|
+
valueType: "text",
|
|
170
|
+
onChange: handleChangeIsFlowExpression
|
|
171
|
+
}));
|
|
172
|
+
};
|
|
173
|
+
export default FlowPropsForm;
|