strategy-panel 1.0.1 → 1.0.2
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/.fatherrc.ts +11 -26
- package/.umirc.ts +4 -0
- package/README.md +33 -33
- package/es/assets/decive.svg +1 -1
- package/es/assets/hand.svg +1 -1
- package/es/assets/lock.svg +8 -0
- package/es/components/canvas/component-tree-panel/category-tree/category-type.d.ts +1 -0
- package/es/{common/graph-common → components/canvas/component-tree-panel/category-tree}/category-type.js +28 -12
- package/es/{pages → components/canvas}/component-tree-panel/category-tree/index.d.ts +17 -16
- package/es/{pages → components/canvas}/component-tree-panel/category-tree/index.js +14 -14
- package/es/{pages → components/canvas}/component-tree-panel/category-tree/index.less +36 -36
- package/es/{pages → components/canvas}/component-tree-panel/category-tree/node-title.d.ts +12 -12
- package/es/{pages → components/canvas}/component-tree-panel/category-tree/node-title.js +5 -3
- package/es/{pages → components/canvas}/component-tree-panel/index.d.ts +17 -17
- package/es/{pages → components/canvas}/component-tree-panel/index.js +1 -0
- package/es/{pages → components/canvas}/component-tree-panel/index.less +1 -0
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/data-origin.d.ts +49 -49
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/data-origin.js +26 -34
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/index.d.ts +11 -11
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/index.js +15 -23
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/style.less +1 -1
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/cross-line.d.ts +9 -9
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/cross-line.js +6 -10
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/index.d.ts +10 -9
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/index.js +17 -13
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/style.less +74 -74
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/components/cycle-time.d.ts +9 -9
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/components/cycle-time.js +24 -33
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/components/time-horizon.d.ts +10 -10
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/components/time-horizon.js +18 -28
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/delay-time.d.ts +9 -9
- package/es/components/canvas/config-panel/components/time-trigger/effective-time.d.ts +7 -0
- package/es/components/canvas/config-panel/components/time-trigger/effective-time.js +43 -0
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/index.d.ts +9 -8
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/index.js +18 -17
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/interval-time.d.ts +9 -9
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/interval-time.js +4 -8
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/persistent-time.d.ts +9 -9
- package/es/components/canvas/config-panel/components/time-trigger/section-Detail.d.ts +10 -0
- package/es/components/canvas/config-panel/components/time-trigger/section-Detail.js +125 -0
- package/es/components/canvas/config-panel/components/time-trigger/section-time.d.ts +9 -0
- package/es/components/canvas/config-panel/components/time-trigger/section-time.js +81 -0
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/timing-time.d.ts +9 -9
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/timing-time.js +7 -11
- package/es/{pages → components/canvas}/config-panel/config-common.d.ts +38 -37
- package/es/{pages → components/canvas}/config-panel/config-common.js +9 -15
- package/es/{pages → components/canvas}/config-panel/index.d.ts +14 -13
- package/es/{pages → components/canvas}/config-panel/index.js +2 -2
- package/es/{pages → components/canvas}/config-panel/node-form.d.ts +23 -22
- package/es/{pages → components/canvas}/config-panel/node-form.js +14 -16
- package/es/{pages → components/canvas}/config-panel/style.less +90 -81
- package/es/{pages → components/canvas}/dag-canvas/canvas-content.d.ts +11 -10
- package/es/{pages → components/canvas}/dag-canvas/canvas-content.js +23 -12
- package/es/{pages → components/canvas}/dag-canvas/index.d.ts +23 -18
- package/es/{pages → components/canvas}/dag-canvas/index.js +5 -2
- package/es/{pages → components/canvas}/dag-canvas/preview.d.ts +10 -10
- package/es/components/canvas/dag-canvas/preview.js +53 -0
- package/es/{pages → components/canvas}/index.d.ts +48 -42
- package/es/{pages → components/canvas}/index.js +20 -10
- package/es/{pages → components/canvas}/index.less +2 -2
- package/es/{pages → components/canvas}/strategy-header/index.d.ts +48 -56
- package/es/components/canvas/strategy-header/index.js +210 -0
- package/es/{pages → components/canvas}/strategy-header/style.less +4 -3
- package/es/{pages → components/canvas}/strategy-header/theme-switch/index.d.ts +4 -4
- package/es/{pages → components/canvas}/strategy-header/theme-switch/index.js +2 -3
- package/es/index.d.ts +9 -8
- package/es/index.js +8 -7
- package/es/packages/graph-canvas/graph-common.d.ts +19 -0
- package/es/packages/graph-canvas/graph-common.js +19 -0
- package/es/packages/graph-canvas/graph-model/edge/group-edge/index.d.ts +4 -0
- package/es/packages/graph-canvas/graph-model/edge/group-edge/index.js +63 -0
- package/es/packages/graph-canvas/graph-model/edge/index.d.ts +2 -0
- package/es/packages/graph-canvas/graph-model/edge/index.js +2 -0
- package/es/packages/graph-canvas/graph-model/node/application-node/application-element.d.ts +9 -0
- package/es/packages/graph-canvas/graph-model/node/application-node/application-element.js +20 -0
- package/es/packages/graph-canvas/graph-model/node/application-node/application-element.less +17 -0
- package/es/packages/graph-canvas/graph-model/node/application-node/index.d.ts +7 -0
- package/es/{common/graph-common/shape/nodes/GroupNode.js → packages/graph-canvas/graph-model/node/application-node/index.js} +42 -22
- package/es/{common/graph-common/shape/nodes/CommonNode.d.ts → packages/graph-canvas/graph-model/node/common-node/index.d.ts} +7 -5
- package/es/{common/graph-common/shape/nodes/CommonNode.js → packages/graph-canvas/graph-model/node/common-node/index.js} +8 -7
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/common-node}/node-element.d.ts +9 -9
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/common-node}/node-element.js +16 -14
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/common-node}/node-element.less +4 -4
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/condition-node}/condition-element.d.ts +9 -9
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/condition-node}/condition-element.js +20 -15
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/condition-node}/condition-element.less +76 -81
- package/es/packages/graph-canvas/graph-model/node/condition-node/images/rhombus.svg +3 -0
- package/es/{common/graph-common/shape/nodes/ConditionJudgment.d.ts → packages/graph-canvas/graph-model/node/condition-node/index.d.ts} +5 -5
- package/es/{common/graph-common/shape/nodes/ConditionJudgment.js → packages/graph-canvas/graph-model/node/condition-node/index.js} +7 -6
- package/es/packages/graph-canvas/graph-model/node/index.d.ts +5 -0
- package/es/packages/graph-canvas/graph-model/node/index.js +5 -0
- package/es/packages/graph-canvas/graph-model/node/logical-node/images/AND.svg +11 -0
- package/es/packages/graph-canvas/graph-model/node/logical-node/images/OR.svg +11 -0
- package/es/packages/graph-canvas/graph-model/node/logical-node/images/XOR.svg +11 -0
- package/es/packages/graph-canvas/graph-model/node/logical-node/images/locking.svg +5 -0
- package/es/packages/graph-canvas/graph-model/node/logical-node/images/unlock.svg +5 -0
- package/es/packages/graph-canvas/graph-model/node/logical-node/index.d.ts +6 -0
- package/es/{common/graph-common/shape/nodes/LogicalNode.js → packages/graph-canvas/graph-model/node/logical-node/index.js} +15 -15
- package/es/packages/graph-canvas/graph-model/node/logical-node/logical-element.d.ts +9 -0
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/logical-node}/logical-element.js +36 -19
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/logical-node}/logical-element.less +4 -9
- package/es/packages/graph-canvas/graph-model/node/style.less +8 -0
- package/es/{common → packages/graph-canvas}/graph-utils/graph.d.ts +87 -83
- package/es/{common → packages/graph-canvas}/graph-utils/graph.js +8 -4
- package/es/{pages/rx-models/experiment-graph.d.ts → packages/graph-canvas/index.d.ts} +79 -82
- package/es/{pages/rx-models/experiment-graph.js → packages/graph-canvas/index.js} +285 -252
- package/es/packages/graph-canvas/node-types.d.ts +6 -0
- package/es/packages/graph-canvas/node-types.js +54 -0
- package/es/packages/graph-canvas/typings.d.ts +5 -0
- package/es/{common/constants → packages/graph-common}/global.d.ts +1 -1
- package/es/{common/constants → packages/graph-common}/graph.d.ts +12 -10
- package/es/{common/constants → packages/graph-common}/graph.js +4 -2
- package/es/{pages/rx-models → packages/graph-core}/graph-util.d.ts +182 -186
- package/es/{pages/rx-models → packages/graph-core}/graph-util.js +8 -15
- package/es/{pages/rx-models/graph-core.d.ts → packages/graph-core/index.d.ts} +96 -96
- package/es/{pages/rx-models/graph-core.js → packages/graph-core/index.js} +119 -87
- package/es/packages/graph-core/typing.d.ts +107 -0
- package/es/{common/graph-common → packages/graph-model}/connector/index.d.ts +1 -1
- package/es/packages/graph-model/connector/index.js +14 -0
- package/es/packages/graph-model/edge/edge.less +8 -0
- package/es/packages/graph-model/edge/index.d.ts +5 -0
- package/es/{common/graph-common/shape/edge.js → packages/graph-model/edge/index.js} +10 -61
- package/es/packages/graph-model/node/index.d.ts +7 -0
- package/es/{common/graph-common/shape/nodes/BaseNode.js → packages/graph-model/node/index.js} +12 -3
- package/es/{common/graph-common/node-element/common-element.less → packages/graph-model/node/node-basic.less} +1 -0
- package/es/{hooks → packages/hooks}/useObservableState.d.ts +3 -3
- package/es/packages/hooks/withMode.d.ts +3 -0
- package/es/packages/hooks/withMode.js +12 -0
- package/es/style/default.less +8 -0
- package/es/style/svgRaw.d.ts +1 -0
- package/es/style/svgRaw.js +1 -0
- package/es/typings.d.ts +2 -8
- package/es/utils/utils.d.ts +1 -1
- package/lib/assets/AND.svg +11 -0
- package/lib/assets/OR.svg +11 -0
- package/lib/assets/XOR.svg +11 -0
- package/lib/assets/add.svg +13 -0
- package/lib/assets/alarm.svg +11 -0
- package/lib/assets/application.svg +11 -0
- package/lib/assets/cancel.svg +13 -0
- package/lib/assets/check.svg +12 -0
- package/lib/assets/condition.svg +12 -0
- package/lib/assets/control.svg +11 -0
- package/lib/assets/decive.svg +11 -0
- package/lib/assets/delete.svg +11 -0
- package/lib/assets/device.svg +11 -0
- package/lib/assets/edit.svg +11 -0
- package/lib/assets/hand.svg +11 -0
- package/lib/assets/link.svg +11 -0
- package/lib/assets/lock.svg +8 -0
- package/lib/assets/logical.svg +12 -0
- package/lib/assets/notice.svg +11 -0
- package/lib/assets/order.svg +11 -0
- package/lib/assets/relation.svg +11 -0
- package/lib/assets/rhombus.svg +3 -0
- package/lib/assets/save.svg +13 -0
- package/lib/assets/time.svg +11 -0
- package/lib/assets/variate.svg +12 -0
- package/lib/components/canvas/component-tree-panel/category-tree/category-type.d.ts +1 -0
- package/lib/components/canvas/component-tree-panel/category-tree/category-type.js +111 -0
- package/lib/components/canvas/component-tree-panel/category-tree/index.d.ts +17 -0
- package/lib/components/canvas/component-tree-panel/category-tree/index.js +115 -0
- package/lib/components/canvas/component-tree-panel/category-tree/index.less +36 -0
- package/lib/components/canvas/component-tree-panel/category-tree/node-title.d.ts +12 -0
- package/lib/components/canvas/component-tree-panel/category-tree/node-title.js +75 -0
- package/lib/components/canvas/component-tree-panel/category-tree/node-title.less +113 -0
- package/lib/components/canvas/component-tree-panel/index.d.ts +17 -0
- package/lib/components/canvas/component-tree-panel/index.js +33 -0
- package/lib/components/canvas/component-tree-panel/index.less +52 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/data-origin.d.ts +49 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/data-origin.js +229 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/index.d.ts +11 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/index.js +187 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/style.less +13 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/cross-line.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/cross-line.js +57 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/index.d.ts +10 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/index.js +216 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/style.less +74 -0
- package/lib/components/canvas/config-panel/components/time-trigger/components/cycle-time.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/time-trigger/components/cycle-time.js +108 -0
- package/lib/components/canvas/config-panel/components/time-trigger/components/time-horizon.d.ts +10 -0
- package/lib/components/canvas/config-panel/components/time-trigger/components/time-horizon.js +78 -0
- package/lib/components/canvas/config-panel/components/time-trigger/delay-time.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/time-trigger/delay-time.js +33 -0
- package/lib/components/canvas/config-panel/components/time-trigger/effective-time.d.ts +7 -0
- package/lib/components/canvas/config-panel/components/time-trigger/effective-time.js +58 -0
- package/lib/components/canvas/config-panel/components/time-trigger/index.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/time-trigger/index.js +114 -0
- package/lib/components/canvas/config-panel/components/time-trigger/interval-time.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/time-trigger/interval-time.js +63 -0
- package/lib/components/canvas/config-panel/components/time-trigger/persistent-time.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/time-trigger/persistent-time.js +33 -0
- package/lib/components/canvas/config-panel/components/time-trigger/section-Detail.d.ts +10 -0
- package/lib/components/canvas/config-panel/components/time-trigger/section-Detail.js +140 -0
- package/lib/components/canvas/config-panel/components/time-trigger/section-time.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/time-trigger/section-time.js +96 -0
- package/lib/components/canvas/config-panel/components/time-trigger/timing-time.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/time-trigger/timing-time.js +65 -0
- package/lib/components/canvas/config-panel/config-common.d.ts +38 -0
- package/lib/components/canvas/config-panel/config-common.js +152 -0
- package/lib/components/canvas/config-panel/index.d.ts +14 -0
- package/lib/components/canvas/config-panel/index.js +68 -0
- package/lib/components/canvas/config-panel/node-form.d.ts +23 -0
- package/lib/components/canvas/config-panel/node-form.js +97 -0
- package/lib/components/canvas/config-panel/style.less +90 -0
- package/lib/components/canvas/dag-canvas/canvas-content.d.ts +11 -0
- package/lib/components/canvas/dag-canvas/canvas-content.js +130 -0
- package/lib/components/canvas/dag-canvas/canvas-content.less +5 -0
- package/lib/components/canvas/dag-canvas/index.d.ts +23 -0
- package/lib/components/canvas/dag-canvas/index.js +53 -0
- package/lib/components/canvas/dag-canvas/index.less +11 -0
- package/lib/components/canvas/dag-canvas/preview.d.ts +10 -0
- package/lib/components/canvas/dag-canvas/preview.js +73 -0
- package/lib/components/canvas/index.d.ts +48 -0
- package/lib/components/canvas/index.js +107 -0
- package/lib/components/canvas/index.less +50 -0
- package/lib/components/canvas/strategy-header/index.d.ts +48 -0
- package/lib/components/canvas/strategy-header/index.js +229 -0
- package/lib/components/canvas/strategy-header/style.less +23 -0
- package/lib/components/canvas/strategy-header/theme-switch/index.d.ts +4 -0
- package/lib/components/canvas/strategy-header/theme-switch/index.js +30 -0
- package/lib/components/canvas/strategy-header/theme-switch/style.less +11 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.js +71 -0
- package/lib/packages/graph-canvas/graph-common.d.ts +19 -0
- package/lib/packages/graph-canvas/graph-common.js +27 -0
- package/lib/packages/graph-canvas/graph-model/edge/group-edge/edge.less +8 -0
- package/lib/packages/graph-canvas/graph-model/edge/group-edge/index.d.ts +4 -0
- package/lib/packages/graph-canvas/graph-model/edge/group-edge/index.js +74 -0
- package/lib/packages/graph-canvas/graph-model/edge/index.d.ts +2 -0
- package/lib/packages/graph-canvas/graph-model/edge/index.js +15 -0
- package/lib/packages/graph-canvas/graph-model/node/application-node/application-element.d.ts +9 -0
- package/lib/packages/graph-canvas/graph-model/node/application-node/application-element.js +31 -0
- package/lib/packages/graph-canvas/graph-model/node/application-node/application-element.less +17 -0
- package/lib/packages/graph-canvas/graph-model/node/application-node/index.d.ts +7 -0
- package/lib/packages/graph-canvas/graph-model/node/application-node/index.js +133 -0
- package/lib/packages/graph-canvas/graph-model/node/common-node/index.d.ts +7 -0
- package/lib/packages/graph-canvas/graph-model/node/common-node/index.js +133 -0
- package/lib/packages/graph-canvas/graph-model/node/common-node/node-element.d.ts +9 -0
- package/lib/packages/graph-canvas/graph-model/node/common-node/node-element.js +69 -0
- package/lib/packages/graph-canvas/graph-model/node/common-node/node-element.less +48 -0
- package/{es/common/graph-common/node-element/logical-element.d.ts → lib/packages/graph-canvas/graph-model/node/condition-node/condition-element.d.ts} +9 -9
- package/lib/packages/graph-canvas/graph-model/node/condition-node/condition-element.js +81 -0
- package/lib/packages/graph-canvas/graph-model/node/condition-node/condition-element.less +76 -0
- package/lib/packages/graph-canvas/graph-model/node/condition-node/images/rhombus.svg +3 -0
- package/{es/common/graph-common/shape/nodes/LogicalNode.d.ts → lib/packages/graph-canvas/graph-model/node/condition-node/index.d.ts} +5 -5
- package/lib/packages/graph-canvas/graph-model/node/condition-node/index.js +143 -0
- package/lib/packages/graph-canvas/graph-model/node/index.d.ts +5 -0
- package/lib/packages/graph-canvas/graph-model/node/index.js +39 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/images/AND.svg +11 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/images/OR.svg +11 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/images/XOR.svg +11 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/images/locking.svg +5 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/images/unlock.svg +5 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/index.d.ts +6 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/index.js +143 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/logical-element.d.ts +9 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/logical-element.js +98 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/logical-element.less +49 -0
- package/lib/packages/graph-canvas/graph-model/node/style.less +8 -0
- package/lib/packages/graph-canvas/graph-utils/graph.d.ts +87 -0
- package/lib/packages/graph-canvas/graph-utils/graph.js +124 -0
- package/lib/packages/graph-canvas/index.d.ts +79 -0
- package/lib/packages/graph-canvas/index.js +1292 -0
- package/lib/packages/graph-canvas/node-types.d.ts +6 -0
- package/lib/packages/graph-canvas/node-types.js +66 -0
- package/lib/packages/graph-canvas/typings.d.ts +5 -0
- package/lib/packages/graph-common/global.d.ts +1 -0
- package/lib/packages/graph-common/global.js +8 -0
- package/lib/packages/graph-common/graph.d.ts +12 -0
- package/lib/packages/graph-common/graph.js +37 -0
- package/lib/packages/graph-core/graph-util.d.ts +182 -0
- package/lib/packages/graph-core/graph-util.js +368 -0
- package/lib/packages/graph-core/index.d.ts +96 -0
- package/lib/packages/graph-core/index.js +798 -0
- package/lib/packages/graph-core/typing.d.ts +107 -0
- package/lib/packages/graph-model/connector/index.d.ts +1 -0
- package/lib/packages/graph-model/connector/index.js +17 -0
- package/lib/packages/graph-model/edge/edge.less +8 -0
- package/lib/packages/graph-model/edge/index.d.ts +5 -0
- package/lib/packages/graph-model/edge/index.js +73 -0
- package/lib/packages/graph-model/node/index.d.ts +7 -0
- package/lib/packages/graph-model/node/index.js +63 -0
- package/lib/packages/graph-model/node/node-basic.less +118 -0
- package/lib/packages/hooks/useObservableState.d.ts +3 -0
- package/lib/packages/hooks/useObservableState.js +55 -0
- package/lib/packages/hooks/withMode.d.ts +3 -0
- package/lib/packages/hooks/withMode.js +22 -0
- package/lib/style/basic.less +12 -0
- package/lib/style/default.less +10 -0
- package/lib/style/position.less +25 -0
- package/lib/style/svgRaw.d.ts +1 -0
- package/lib/style/svgRaw.js +8 -0
- package/lib/style/theme-light.less +7 -0
- package/lib/style/variable.less +3 -0
- package/lib/typings.d.ts +8 -0
- package/lib/utils/utils.d.ts +1 -0
- package/lib/utils/utils.js +13 -0
- package/package.json +38 -37
- package/tsconfig.json +1 -1
- package/es/common/graph-common/category-type.d.ts +0 -16
- package/es/common/graph-common/connector/index.js +0 -14
- package/es/common/graph-common/node-element/node-group.d.ts +0 -8
- package/es/common/graph-common/node-element/node-group.js +0 -395
- package/es/common/graph-common/node-element/node-group.less +0 -53
- package/es/common/graph-common/node-popover/index.d.ts +0 -7
- package/es/common/graph-common/node-popover/index.js +0 -11
- package/es/common/graph-common/node-popover/index.less +0 -5
- package/es/common/graph-common/node-types.d.ts +0 -28
- package/es/common/graph-common/node-types.js +0 -60
- package/es/common/graph-common/shape/edge.d.ts +0 -10
- package/es/common/graph-common/shape/node.d.ts +0 -6
- package/es/common/graph-common/shape/node.js +0 -6
- package/es/common/graph-common/shape/nodes/BaseNode.d.ts +0 -4
- package/es/common/graph-common/shape/nodes/GroupNode.d.ts +0 -4
- package/es/component/cut.d.ts +0 -10
- package/es/component/cut.js +0 -34
- package/es/component/cut.less +0 -6
- package/es/component/item-name.d.ts +0 -6
- package/es/component/item-name.js +0 -30
- package/es/component/keyword.d.ts +0 -9
- package/es/component/keyword.js +0 -26
- package/es/component/keyword.less +0 -11
- package/es/component/rx-component/rx-input.d.ts +0 -8
- package/es/component/rx-component/rx-input.js +0 -47
- package/es/hooks/withMode.d.ts +0 -1
- package/es/hooks/withMode.js +0 -16
- package/es/pages/dag-canvas/preview.js +0 -42
- package/es/pages/rx-models/graph-core.less +0 -14
- package/es/pages/rx-models/typing.d.ts +0 -126
- package/es/pages/strategy-header/index.js +0 -154
- /package/es/{pages → components/canvas}/component-tree-panel/category-tree/node-title.less +0 -0
- /package/es/{pages → components/canvas}/config-panel/components/time-trigger/delay-time.js +0 -0
- /package/es/{pages → components/canvas}/config-panel/components/time-trigger/persistent-time.js +0 -0
- /package/es/{pages → components/canvas}/dag-canvas/canvas-content.less +0 -0
- /package/es/{pages → components/canvas}/dag-canvas/index.less +0 -0
- /package/es/{pages → components/canvas}/strategy-header/theme-switch/style.less +0 -0
- /package/es/{common/graph-common/shape → packages/graph-canvas/graph-model/edge/group-edge}/edge.less +0 -0
- /package/es/{common/constants → packages/graph-common}/global.js +0 -0
- /package/es/{hooks → packages/hooks}/useObservableState.js +0 -0
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import "antd/es/date-picker/style";
|
|
2
|
-
import _DatePicker from "antd/es/date-picker";
|
|
3
|
-
import "antd/es/input-number/style";
|
|
4
|
-
import _InputNumber from "antd/es/input-number";
|
|
5
|
-
import "antd/es/select/style";
|
|
6
|
-
import _Select from "antd/es/select";
|
|
7
|
-
import "antd/es/radio/style";
|
|
8
|
-
import _Radio from "antd/es/radio";
|
|
9
|
-
|
|
10
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11
2
|
|
|
12
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."); }
|
|
@@ -26,6 +17,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
26
17
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
27
18
|
|
|
28
19
|
import React from 'react';
|
|
20
|
+
import { DatePicker, InputNumber, Radio, Select } from 'antd';
|
|
29
21
|
import moment from 'moment';
|
|
30
22
|
import { keys } from 'lodash-es';
|
|
31
23
|
var nameMap = {
|
|
@@ -104,14 +96,14 @@ var DataOrigin = function DataOrigin(props) {
|
|
|
104
96
|
|
|
105
97
|
var relationList = keys(relationData);
|
|
106
98
|
console.log('relationData relationList', relationData);
|
|
107
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(
|
|
99
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
108
100
|
value: (value === null || value === void 0 ? void 0 : value.valuesType) || defaultValue,
|
|
109
101
|
onChange: handleValueTypeChange
|
|
110
|
-
}, /*#__PURE__*/React.createElement(
|
|
102
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
111
103
|
value: "fixed"
|
|
112
|
-
}, "\u56FA\u5B9A\u503C"), /*#__PURE__*/React.createElement(
|
|
104
|
+
}, "\u56FA\u5B9A\u503C"), /*#__PURE__*/React.createElement(Radio, {
|
|
113
105
|
value: "variable"
|
|
114
|
-
}, "\u53D8\u91CF")), (value === null || value === void 0 ? void 0 : value.valuesType) === 'variable' && /*#__PURE__*/React.createElement(
|
|
106
|
+
}, "\u53D8\u91CF")), (value === null || value === void 0 ? void 0 : value.valuesType) === 'variable' && /*#__PURE__*/React.createElement(Select, {
|
|
115
107
|
style: {
|
|
116
108
|
marginTop: 15
|
|
117
109
|
},
|
|
@@ -120,56 +112,56 @@ var DataOrigin = function DataOrigin(props) {
|
|
|
120
112
|
}, relationList === null || relationList === void 0 ? void 0 : relationList.map(function (item) {
|
|
121
113
|
var _relationData$item, _relationData$item4, _relationData$item7, _relationData$item10;
|
|
122
114
|
|
|
123
|
-
if ((_relationData$item = relationData[item])
|
|
115
|
+
if ((_relationData$item = relationData[item]) !== null && _relationData$item !== void 0 && _relationData$item.meterAttrList) {
|
|
124
116
|
var _relationData$item2, _relationData$item3, _relationData$item3$m;
|
|
125
117
|
|
|
126
|
-
return ((_relationData$item2 = relationData[item]) === null || _relationData$item2 === void 0 ? void 0 : _relationData$item2.meterAttrList) && /*#__PURE__*/React.createElement(
|
|
118
|
+
return ((_relationData$item2 = relationData[item]) === null || _relationData$item2 === void 0 ? void 0 : _relationData$item2.meterAttrList) && /*#__PURE__*/React.createElement(Select.OptGroup, {
|
|
127
119
|
key: "".concat(item, "-device-attr"),
|
|
128
120
|
label: "".concat(item, " - \u8BBE\u5907\u5C5E\u6027")
|
|
129
121
|
}, (_relationData$item3 = relationData[item]) === null || _relationData$item3 === void 0 ? void 0 : (_relationData$item3$m = _relationData$item3.meterAttrList) === null || _relationData$item3$m === void 0 ? void 0 : _relationData$item3$m.map(function (child) {
|
|
130
|
-
return /*#__PURE__*/React.createElement(
|
|
122
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
131
123
|
key: "".concat(item, "^").concat(child.source, "^").concat(child.targetId, "^").concat(child.modelId),
|
|
132
124
|
value: "".concat(item, "^").concat(child.source, "^").concat(child.targetId, "^").concat(child.modelId)
|
|
133
125
|
}, child.targetName, "-", child === null || child === void 0 ? void 0 : child.modelName);
|
|
134
126
|
}));
|
|
135
127
|
}
|
|
136
128
|
|
|
137
|
-
if ((_relationData$item4 = relationData[item])
|
|
129
|
+
if ((_relationData$item4 = relationData[item]) !== null && _relationData$item4 !== void 0 && _relationData$item4.meterEventList) {
|
|
138
130
|
var _relationData$item5, _relationData$item6, _relationData$item6$m;
|
|
139
131
|
|
|
140
|
-
return ((_relationData$item5 = relationData[item]) === null || _relationData$item5 === void 0 ? void 0 : _relationData$item5.meterEventList) && /*#__PURE__*/React.createElement(
|
|
132
|
+
return ((_relationData$item5 = relationData[item]) === null || _relationData$item5 === void 0 ? void 0 : _relationData$item5.meterEventList) && /*#__PURE__*/React.createElement(Select.OptGroup, {
|
|
141
133
|
key: "".concat(item, "-device-attr"),
|
|
142
134
|
label: "".concat(item, " - \u8BBE\u5907\u5C5E\u6027")
|
|
143
135
|
}, (_relationData$item6 = relationData[item]) === null || _relationData$item6 === void 0 ? void 0 : (_relationData$item6$m = _relationData$item6.meterEventList) === null || _relationData$item6$m === void 0 ? void 0 : _relationData$item6$m.map(function (child) {
|
|
144
|
-
return /*#__PURE__*/React.createElement(
|
|
136
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
145
137
|
key: "".concat(item, "^").concat(child.source, "^").concat(child.targetId, "^").concat(child.modelId),
|
|
146
138
|
value: "".concat(item, "^").concat(child.source, "^").concat(child.targetId, "^").concat(child.modelId)
|
|
147
139
|
}, child.targetName, "-", child === null || child === void 0 ? void 0 : child.modelName);
|
|
148
140
|
}));
|
|
149
141
|
}
|
|
150
142
|
|
|
151
|
-
if ((_relationData$item7 = relationData[item])
|
|
143
|
+
if ((_relationData$item7 = relationData[item]) !== null && _relationData$item7 !== void 0 && _relationData$item7.meterModelAttrs) {
|
|
152
144
|
var _relationData$item8, _relationData$item9, _relationData$item9$m;
|
|
153
145
|
|
|
154
|
-
return ((_relationData$item8 = relationData[item]) === null || _relationData$item8 === void 0 ? void 0 : _relationData$item8.meterModelAttrs) && /*#__PURE__*/React.createElement(
|
|
146
|
+
return ((_relationData$item8 = relationData[item]) === null || _relationData$item8 === void 0 ? void 0 : _relationData$item8.meterModelAttrs) && /*#__PURE__*/React.createElement(Select.OptGroup, {
|
|
155
147
|
key: "".concat(item, "--device-attr"),
|
|
156
148
|
label: "".concat(item, " - \u8BBE\u5907\u5C5E\u6027")
|
|
157
149
|
}, (_relationData$item9 = relationData[item]) === null || _relationData$item9 === void 0 ? void 0 : (_relationData$item9$m = _relationData$item9.meterModelAttrs) === null || _relationData$item9$m === void 0 ? void 0 : _relationData$item9$m.map(function (child) {
|
|
158
|
-
return /*#__PURE__*/React.createElement(
|
|
150
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
159
151
|
key: "".concat(item, "^").concat(child.source, "^").concat(child.targetId, "^").concat(child.modelId),
|
|
160
152
|
value: "".concat(item, "^").concat(child.source, "^").concat(child.targetId, "^").concat(child.modelId)
|
|
161
153
|
}, child.targetName, "-", child === null || child === void 0 ? void 0 : child.modelName);
|
|
162
154
|
}));
|
|
163
155
|
}
|
|
164
156
|
|
|
165
|
-
if ((_relationData$item10 = relationData[item])
|
|
157
|
+
if ((_relationData$item10 = relationData[item]) !== null && _relationData$item10 !== void 0 && _relationData$item10.meterModelEvents) {
|
|
166
158
|
var _relationData$item11, _relationData$item12, _relationData$item12$;
|
|
167
159
|
|
|
168
|
-
return ((_relationData$item11 = relationData[item]) === null || _relationData$item11 === void 0 ? void 0 : _relationData$item11.meterModelEvents) && /*#__PURE__*/React.createElement(
|
|
160
|
+
return ((_relationData$item11 = relationData[item]) === null || _relationData$item11 === void 0 ? void 0 : _relationData$item11.meterModelEvents) && /*#__PURE__*/React.createElement(Select.OptGroup, {
|
|
169
161
|
key: "".concat(item, "--device-attr"),
|
|
170
162
|
label: "".concat(item, " - \u8BBE\u5907\u5C5E\u6027")
|
|
171
163
|
}, (_relationData$item12 = relationData[item]) === null || _relationData$item12 === void 0 ? void 0 : (_relationData$item12$ = _relationData$item12.meterModelEvents) === null || _relationData$item12$ === void 0 ? void 0 : _relationData$item12$.map(function (child) {
|
|
172
|
-
return /*#__PURE__*/React.createElement(
|
|
164
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
173
165
|
key: "".concat(item, "^").concat(child.source, "^").concat(child.targetId, "^").concat(child.modelId),
|
|
174
166
|
value: "".concat(item, "^").concat(child.source, "^").concat(child.targetId, "^").concat(child.modelId)
|
|
175
167
|
}, child.targetName, "-", child === null || child === void 0 ? void 0 : child.modelName);
|
|
@@ -181,34 +173,34 @@ var DataOrigin = function DataOrigin(props) {
|
|
|
181
173
|
style: {
|
|
182
174
|
marginTop: 15
|
|
183
175
|
}
|
|
184
|
-
}, /*#__PURE__*/React.createElement(
|
|
176
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
185
177
|
value: value === null || value === void 0 ? void 0 : value.type,
|
|
186
178
|
onChange: handleTypeChange
|
|
187
|
-
}, /*#__PURE__*/React.createElement(
|
|
179
|
+
}, /*#__PURE__*/React.createElement(Select.Option, {
|
|
188
180
|
value: "number"
|
|
189
|
-
}, "\u6570\u503C\u578B"), /*#__PURE__*/React.createElement(
|
|
181
|
+
}, "\u6570\u503C\u578B"), /*#__PURE__*/React.createElement(Select.Option, {
|
|
190
182
|
value: "boolean"
|
|
191
|
-
}, "\u5E03\u5C14\u503C"), /*#__PURE__*/React.createElement(
|
|
183
|
+
}, "\u5E03\u5C14\u503C"), /*#__PURE__*/React.createElement(Select.Option, {
|
|
192
184
|
value: "time"
|
|
193
|
-
}, "\u65F6\u95F4\u578B")), (value === null || value === void 0 ? void 0 : value.type) === 'number' && /*#__PURE__*/React.createElement(
|
|
185
|
+
}, "\u65F6\u95F4\u578B")), (value === null || value === void 0 ? void 0 : value.type) === 'number' && /*#__PURE__*/React.createElement(InputNumber, {
|
|
194
186
|
value: value === null || value === void 0 ? void 0 : value.value,
|
|
195
187
|
onChange: handleValueChange,
|
|
196
188
|
style: {
|
|
197
189
|
width: '100%',
|
|
198
190
|
marginTop: 15
|
|
199
191
|
}
|
|
200
|
-
}), (value === null || value === void 0 ? void 0 : value.type) === 'boolean' && /*#__PURE__*/React.createElement(
|
|
192
|
+
}), (value === null || value === void 0 ? void 0 : value.type) === 'boolean' && /*#__PURE__*/React.createElement(Select, {
|
|
201
193
|
value: value === null || value === void 0 ? void 0 : value.value,
|
|
202
194
|
onChange: handleBooleanChange,
|
|
203
195
|
style: {
|
|
204
196
|
width: '100%',
|
|
205
197
|
marginTop: 15
|
|
206
198
|
}
|
|
207
|
-
}, /*#__PURE__*/React.createElement(
|
|
199
|
+
}, /*#__PURE__*/React.createElement(Select.Option, {
|
|
208
200
|
value: 1
|
|
209
|
-
}, "True"), /*#__PURE__*/React.createElement(
|
|
201
|
+
}, "True"), /*#__PURE__*/React.createElement(Select.Option, {
|
|
210
202
|
value: 0
|
|
211
|
-
}, "False")), (value === null || value === void 0 ? void 0 : value.type) === 'time' && /*#__PURE__*/React.createElement(
|
|
203
|
+
}, "False")), (value === null || value === void 0 ? void 0 : value.type) === 'time' && /*#__PURE__*/React.createElement(DatePicker, {
|
|
212
204
|
showTime: true,
|
|
213
205
|
value: (value === null || value === void 0 ? void 0 : value.value) && moment(value === null || value === void 0 ? void 0 : value.value),
|
|
214
206
|
placeholder: "",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './style.less';
|
|
3
|
-
interface Props {
|
|
4
|
-
visible: boolean;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
relationData: any;
|
|
7
|
-
onSubmit: (payload: any) => void;
|
|
8
|
-
configureInfo: any;
|
|
9
|
-
}
|
|
10
|
-
declare const ConfigureModal: React.FC<Props>;
|
|
11
|
-
export default ConfigureModal;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.less';
|
|
3
|
+
interface Props {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
relationData: any;
|
|
7
|
+
onSubmit: (payload: any) => void;
|
|
8
|
+
configureInfo: any;
|
|
9
|
+
}
|
|
10
|
+
declare const ConfigureModal: React.FC<Props>;
|
|
11
|
+
export default ConfigureModal;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import "antd/es/button/style";
|
|
2
|
-
import _Button from "antd/es/button";
|
|
3
|
-
import "antd/es/select/style";
|
|
4
|
-
import _Select from "antd/es/select";
|
|
5
|
-
import "antd/es/modal/style";
|
|
6
|
-
import _Modal from "antd/es/modal";
|
|
7
|
-
import "antd/es/form/style";
|
|
8
|
-
import _Form from "antd/es/form";
|
|
9
|
-
|
|
10
1
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
2
|
|
|
12
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -26,6 +17,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
26
17
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
18
|
|
|
28
19
|
import React, { useCallback, useEffect } from 'react';
|
|
20
|
+
import { Form, Modal, Select, Button } from 'antd';
|
|
29
21
|
import { omit } from 'lodash-es';
|
|
30
22
|
import DataOrigin from "./data-origin";
|
|
31
23
|
import "./style.less";
|
|
@@ -37,7 +29,7 @@ var ConfigureModal = function ConfigureModal(props) {
|
|
|
37
29
|
relationData = props.relationData,
|
|
38
30
|
configureInfo = props.configureInfo;
|
|
39
31
|
|
|
40
|
-
var _Form$useForm =
|
|
32
|
+
var _Form$useForm = Form.useForm(),
|
|
41
33
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
42
34
|
form = _Form$useForm2[0];
|
|
43
35
|
|
|
@@ -89,17 +81,17 @@ var ConfigureModal = function ConfigureModal(props) {
|
|
|
89
81
|
if (visible && configureInfo) {
|
|
90
82
|
var _configureInfo$store, _configureInfo$store2, _configureInfo$store3;
|
|
91
83
|
|
|
92
|
-
var
|
|
84
|
+
var _payload = {
|
|
93
85
|
pre: formReset(configureInfo === null || configureInfo === void 0 ? void 0 : (_configureInfo$store = configureInfo.store) === null || _configureInfo$store === void 0 ? void 0 : _configureInfo$store[0]),
|
|
94
86
|
compare: configureInfo === null || configureInfo === void 0 ? void 0 : (_configureInfo$store2 = configureInfo.store) === null || _configureInfo$store2 === void 0 ? void 0 : _configureInfo$store2[1],
|
|
95
87
|
next: formReset(configureInfo === null || configureInfo === void 0 ? void 0 : (_configureInfo$store3 = configureInfo.store) === null || _configureInfo$store3 === void 0 ? void 0 : _configureInfo$store3[2])
|
|
96
88
|
};
|
|
97
|
-
form.setFieldsValue(
|
|
98
|
-
console.log('========================>',
|
|
89
|
+
form.setFieldsValue(_payload);
|
|
90
|
+
console.log('========================>', _payload);
|
|
99
91
|
}
|
|
100
92
|
}, [visible]);
|
|
101
93
|
console.log('relationData', relationData);
|
|
102
|
-
return /*#__PURE__*/React.createElement(
|
|
94
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
103
95
|
width: 400,
|
|
104
96
|
visible: visible,
|
|
105
97
|
footer: null,
|
|
@@ -113,12 +105,12 @@ var ConfigureModal = function ConfigureModal(props) {
|
|
|
113
105
|
className: "condition-modal-title"
|
|
114
106
|
}, "\u6761\u4EF6\u914D\u7F6E"), /*#__PURE__*/React.createElement("div", {
|
|
115
107
|
className: "condition-modal-body"
|
|
116
|
-
}, /*#__PURE__*/React.createElement(
|
|
108
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
117
109
|
form: form,
|
|
118
110
|
layout: "vertical",
|
|
119
111
|
initialValues: initialValues,
|
|
120
112
|
onFinish: handleSubmit
|
|
121
|
-
}, /*#__PURE__*/React.createElement(
|
|
113
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
122
114
|
name: "pre",
|
|
123
115
|
label: "\u9009\u62E9\u7528\u4E8E\u6BD4\u8F83\u7684\u6570\u636E\u6E90",
|
|
124
116
|
rules: [{
|
|
@@ -130,7 +122,7 @@ var ConfigureModal = function ConfigureModal(props) {
|
|
|
130
122
|
}
|
|
131
123
|
}, /*#__PURE__*/React.createElement(DataOrigin, {
|
|
132
124
|
relationData: relationData === null || relationData === void 0 ? void 0 : relationData.equipment
|
|
133
|
-
})), /*#__PURE__*/React.createElement(
|
|
125
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
134
126
|
name: "compare",
|
|
135
127
|
label: "\u9009\u62E9\u6BD4\u8F83\u65B9\u5F0F",
|
|
136
128
|
rules: [{
|
|
@@ -140,12 +132,12 @@ var ConfigureModal = function ConfigureModal(props) {
|
|
|
140
132
|
style: {
|
|
141
133
|
marginBottom: 15
|
|
142
134
|
}
|
|
143
|
-
}, /*#__PURE__*/React.createElement(
|
|
144
|
-
return /*#__PURE__*/React.createElement(
|
|
135
|
+
}, /*#__PURE__*/React.createElement(Select, null, compareMode === null || compareMode === void 0 ? void 0 : compareMode.map(function (item) {
|
|
136
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
145
137
|
key: item,
|
|
146
138
|
value: item
|
|
147
139
|
}, item);
|
|
148
|
-
}))), /*#__PURE__*/React.createElement(
|
|
140
|
+
}))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
149
141
|
name: "next",
|
|
150
142
|
label: "\u9009\u62E9\u7528\u4E8E\u6BD4\u8F83\u7684\u6570\u636E\u6E90",
|
|
151
143
|
rules: [{
|
|
@@ -157,15 +149,15 @@ var ConfigureModal = function ConfigureModal(props) {
|
|
|
157
149
|
}
|
|
158
150
|
}, /*#__PURE__*/React.createElement(DataOrigin, {
|
|
159
151
|
relationData: relationData === null || relationData === void 0 ? void 0 : relationData.equipment
|
|
160
|
-
})), /*#__PURE__*/React.createElement(
|
|
152
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
161
153
|
style: {
|
|
162
154
|
textAlign: 'right',
|
|
163
155
|
marginBottom: 10
|
|
164
156
|
}
|
|
165
|
-
}, /*#__PURE__*/React.createElement(
|
|
157
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
166
158
|
onClick: handleClose,
|
|
167
159
|
className: "mr-15 condition-form-btn"
|
|
168
|
-
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(
|
|
160
|
+
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
169
161
|
type: "primary",
|
|
170
162
|
htmlType: "submit",
|
|
171
163
|
className: "condition-form-btn"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './style.less';
|
|
3
|
-
interface Props {
|
|
4
|
-
value: any;
|
|
5
|
-
onRelationChange?: (value: any) => void;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const CrossLine: React.FC<Props>;
|
|
9
|
-
export default CrossLine;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.less';
|
|
3
|
+
interface Props {
|
|
4
|
+
value: any;
|
|
5
|
+
onRelationChange?: (value: any) => void;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const CrossLine: React.FC<Props>;
|
|
9
|
+
export default CrossLine;
|
package/es/{pages → components/canvas}/config-panel/components/condition-configuration/cross-line.js
RENAMED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import "antd/es/select/style";
|
|
2
|
-
import _Select from "antd/es/select";
|
|
3
|
-
import "antd/es/divider/style";
|
|
4
|
-
import _Divider from "antd/es/divider";
|
|
5
|
-
|
|
6
1
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
2
|
|
|
8
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -10,6 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
6
|
|
|
12
7
|
import React from 'react';
|
|
8
|
+
import { Divider, Select } from 'antd';
|
|
13
9
|
import "./style.less";
|
|
14
10
|
|
|
15
11
|
var CrossLine = function CrossLine(props) {
|
|
@@ -25,11 +21,11 @@ var CrossLine = function CrossLine(props) {
|
|
|
25
21
|
|
|
26
22
|
return /*#__PURE__*/React.createElement("div", {
|
|
27
23
|
className: "condition-cross-line"
|
|
28
|
-
}, /*#__PURE__*/React.createElement(
|
|
24
|
+
}, /*#__PURE__*/React.createElement(Divider, {
|
|
29
25
|
style: {
|
|
30
26
|
margin: 0
|
|
31
27
|
}
|
|
32
|
-
}, /*#__PURE__*/React.createElement(
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
33
29
|
disabled: disabled,
|
|
34
30
|
style: {
|
|
35
31
|
width: 60
|
|
@@ -37,11 +33,11 @@ var CrossLine = function CrossLine(props) {
|
|
|
37
33
|
bordered: false,
|
|
38
34
|
value: (value === null || value === void 0 ? void 0 : value.relation) || null,
|
|
39
35
|
onChange: handleChange
|
|
40
|
-
}, /*#__PURE__*/React.createElement(
|
|
36
|
+
}, /*#__PURE__*/React.createElement(Select.Option, {
|
|
41
37
|
value: null
|
|
42
|
-
}, "\u65E0"), /*#__PURE__*/React.createElement(
|
|
38
|
+
}, "\u65E0"), /*#__PURE__*/React.createElement(Select.Option, {
|
|
43
39
|
value: "AND"
|
|
44
|
-
}, "AND"), /*#__PURE__*/React.createElement(
|
|
40
|
+
}, "AND"), /*#__PURE__*/React.createElement(Select.Option, {
|
|
45
41
|
value: "OR"
|
|
46
42
|
}, "OR"))));
|
|
47
43
|
};
|
package/es/{pages → components/canvas}/config-panel/components/condition-configuration/index.d.ts
RENAMED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PanelComponentProps } from "../../../../../packages/graph-canvas/typings";
|
|
3
|
+
import './style.less';
|
|
4
|
+
interface Props extends PanelComponentProps {
|
|
5
|
+
experimentId: string;
|
|
6
|
+
value?: any;
|
|
7
|
+
onChange?: (value: any) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const ConditionConfiguration: React.FC<Props>;
|
|
10
|
+
export default ConditionConfiguration;
|
package/es/{pages → components/canvas}/config-panel/components/condition-configuration/index.js
RENAMED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import "antd/es/popconfirm/style";
|
|
2
|
-
import _Popconfirm from "antd/es/popconfirm";
|
|
3
|
-
|
|
4
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5
2
|
|
|
6
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."); }
|
|
@@ -14,18 +11,22 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
14
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
12
|
|
|
16
13
|
import React, { useCallback, useState } from 'react';
|
|
14
|
+
import { Popconfirm } from 'antd';
|
|
17
15
|
import { ReactSVG } from 'react-svg';
|
|
18
16
|
import classNames from 'classnames';
|
|
19
17
|
import { cloneDeep, isNil } from 'lodash-es';
|
|
20
|
-
import { useExperimentGraph } from "
|
|
21
|
-
import {
|
|
18
|
+
import { useExperimentGraph } from "../../../../../packages/graph-canvas";
|
|
19
|
+
import { useObservableState } from "../../../../../packages/hooks/useObservableState";
|
|
20
|
+
import { COMMONLY_USED, SCENE_DISPLAY } from "../../../../../packages/graph-canvas/node-types";
|
|
22
21
|
import ConfigureModal from "./configure-modal";
|
|
23
22
|
import CrossLine from "./cross-line";
|
|
23
|
+
import editSvg from "../../../../../assets/edit.svg";
|
|
24
|
+
import deleteSvg from "../../../../../assets/delete.svg";
|
|
25
|
+
import addSvg from "../../../../../assets/add.svg";
|
|
24
26
|
import "./style.less";
|
|
25
|
-
import { useObservableState } from "../../../../hooks/useObservableState";
|
|
26
27
|
|
|
27
28
|
var getRelationData = function getRelationData(expGraph, nodeId) {
|
|
28
|
-
var _expGraph$graph, _equipment$
|
|
29
|
+
var _expGraph$graph, _equipment$getData, _equipment$getData2;
|
|
29
30
|
|
|
30
31
|
if (!nodeId) return;
|
|
31
32
|
var nodes = expGraph === null || expGraph === void 0 ? void 0 : (_expGraph$graph = expGraph.graph) === null || _expGraph$graph === void 0 ? void 0 : _expGraph$graph.getNodes();
|
|
@@ -39,9 +40,12 @@ var getRelationData = function getRelationData(expGraph, nodeId) {
|
|
|
39
40
|
|
|
40
41
|
return (item === null || item === void 0 ? void 0 : (_item$id2 = item.id) === null || _item$id2 === void 0 ? void 0 : _item$id2.indexOf(COMMONLY_USED.VARIATE)) > -1;
|
|
41
42
|
});
|
|
43
|
+
var nodeData = equipment === null || equipment === void 0 ? void 0 : (_equipment$getData = equipment.getData()) === null || _equipment$getData === void 0 ? void 0 : _equipment$getData.nodeData;
|
|
44
|
+
console.log('getRelationData', equipment === null || equipment === void 0 ? void 0 : (_equipment$getData2 = equipment.getData()) === null || _equipment$getData2 === void 0 ? void 0 : _equipment$getData2.nodeData); // const variate = nodes?.find((item: any) => item?.id?.indexOf('COMMONLY_USED_VARIATE') > -1);
|
|
45
|
+
|
|
42
46
|
console.log('equipmentData', equipment === null || equipment === void 0 ? void 0 : equipment.getData());
|
|
43
47
|
console.log('equipmentData', variate === null || variate === void 0 ? void 0 : variate.getData());
|
|
44
|
-
return
|
|
48
|
+
return typeof nodeData === 'string' ? JSON.parse(nodeData) : nodeData;
|
|
45
49
|
};
|
|
46
50
|
|
|
47
51
|
var ConditionConfiguration = function ConditionConfiguration(props) {
|
|
@@ -107,7 +111,7 @@ var ConditionConfiguration = function ConditionConfiguration(props) {
|
|
|
107
111
|
var result = value ? cloneDeep(value) : [];
|
|
108
112
|
var configureIndex = configureInfo === null || configureInfo === void 0 ? void 0 : configureInfo.index;
|
|
109
113
|
|
|
110
|
-
if (!isNil(configureIndex) &&
|
|
114
|
+
if (!isNil(configureIndex) && result !== null && result !== void 0 && result[configureIndex]) {
|
|
111
115
|
result[configureIndex] = payload;
|
|
112
116
|
}
|
|
113
117
|
|
|
@@ -144,9 +148,9 @@ var ConditionConfiguration = function ConditionConfiguration(props) {
|
|
|
144
148
|
onClick: function onClick() {
|
|
145
149
|
return handleOpenEdit(item, index);
|
|
146
150
|
},
|
|
147
|
-
src:
|
|
151
|
+
src: editSvg,
|
|
148
152
|
className: classNames('icon', 'mr-10')
|
|
149
|
-
}), /*#__PURE__*/React.createElement(
|
|
153
|
+
}), /*#__PURE__*/React.createElement(Popconfirm, {
|
|
150
154
|
placement: "left",
|
|
151
155
|
okText: "\u786E\u5B9A",
|
|
152
156
|
cancelText: "\u53D6\u6D88",
|
|
@@ -155,7 +159,7 @@ var ConditionConfiguration = function ConditionConfiguration(props) {
|
|
|
155
159
|
return handleRemoveCondition(index);
|
|
156
160
|
}
|
|
157
161
|
}, /*#__PURE__*/React.createElement(ReactSVG, {
|
|
158
|
-
src:
|
|
162
|
+
src: deleteSvg,
|
|
159
163
|
className: "icon"
|
|
160
164
|
})))), index !== value.length - 1 && /*#__PURE__*/React.createElement(CrossLine, {
|
|
161
165
|
disabled: modeDisabled,
|
|
@@ -169,7 +173,7 @@ var ConditionConfiguration = function ConditionConfiguration(props) {
|
|
|
169
173
|
className: "condition-edit-box",
|
|
170
174
|
onClick: handleOpenConfigure
|
|
171
175
|
}, /*#__PURE__*/React.createElement(ReactSVG, {
|
|
172
|
-
src:
|
|
176
|
+
src: addSvg,
|
|
173
177
|
className: "icon"
|
|
174
178
|
}), "\u6DFB\u52A0"), /*#__PURE__*/React.createElement(ConfigureModal, {
|
|
175
179
|
visible: visible,
|
package/es/{pages → components/canvas}/config-panel/components/condition-configuration/style.less
RENAMED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
@import "
|
|
2
|
-
@import "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
@icon-color: #0052D9;
|
|
6
|
-
@configure-title-bg: #F2F2F2;
|
|
7
|
-
@configure-title-border: #F2F2F2;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
.condition-edit-box{
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: row;
|
|
13
|
-
align-items: center;
|
|
14
|
-
color: @icon-color;
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
|
|
17
|
-
& .icon{
|
|
18
|
-
width: 22px;
|
|
19
|
-
height: 22px;
|
|
20
|
-
margin-right: 6px;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
div{
|
|
23
|
-
height: 22px;
|
|
24
|
-
}
|
|
25
|
-
svg {
|
|
26
|
-
width: 22px;
|
|
27
|
-
height: 22px;
|
|
28
|
-
path {
|
|
29
|
-
fill: @icon-color;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.configure-line{
|
|
36
|
-
.title{
|
|
37
|
-
padding: 5px 12px;
|
|
38
|
-
background: #F2F2F2;
|
|
39
|
-
border: 1px solid #D3D3D3;
|
|
40
|
-
border-radius: 4px;
|
|
41
|
-
overflow: hidden;
|
|
42
|
-
word-break: break-all;
|
|
43
|
-
}
|
|
44
|
-
.icon{
|
|
45
|
-
width: 20px;
|
|
46
|
-
height: 20px;
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
div{
|
|
49
|
-
height: 20px;
|
|
50
|
-
}
|
|
51
|
-
svg {
|
|
52
|
-
width: 20px;
|
|
53
|
-
height: 20px;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.condition-cross-line{
|
|
60
|
-
.ant-select-single.ant-select-show-arrow .ant-select-selection-item,
|
|
61
|
-
.ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder{
|
|
62
|
-
padding-right: 0;
|
|
63
|
-
text-align: center;
|
|
64
|
-
}
|
|
65
|
-
.ant-select-arrow{
|
|
66
|
-
display: none;
|
|
67
|
-
}
|
|
68
|
-
.ant-divider-inner-text{
|
|
69
|
-
padding: 0;
|
|
70
|
-
}
|
|
71
|
-
.ant-select:not(.ant-select-customize-input) .ant-select-selector{
|
|
72
|
-
background: transparent !important;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
1
|
+
@import "../../../../../style/position";
|
|
2
|
+
@import "../../../../../style/basic";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@icon-color: #0052D9;
|
|
6
|
+
@configure-title-bg: #F2F2F2;
|
|
7
|
+
@configure-title-border: #F2F2F2;
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
.condition-edit-box{
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
align-items: center;
|
|
14
|
+
color: @icon-color;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
|
|
17
|
+
& .icon{
|
|
18
|
+
width: 22px;
|
|
19
|
+
height: 22px;
|
|
20
|
+
margin-right: 6px;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
div{
|
|
23
|
+
height: 22px;
|
|
24
|
+
}
|
|
25
|
+
svg {
|
|
26
|
+
width: 22px;
|
|
27
|
+
height: 22px;
|
|
28
|
+
path {
|
|
29
|
+
fill: @icon-color;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.configure-line{
|
|
36
|
+
.title{
|
|
37
|
+
padding: 5px 12px;
|
|
38
|
+
background: #F2F2F2;
|
|
39
|
+
border: 1px solid #D3D3D3;
|
|
40
|
+
border-radius: 4px;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
word-break: break-all;
|
|
43
|
+
}
|
|
44
|
+
.icon{
|
|
45
|
+
width: 20px;
|
|
46
|
+
height: 20px;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
div{
|
|
49
|
+
height: 20px;
|
|
50
|
+
}
|
|
51
|
+
svg {
|
|
52
|
+
width: 20px;
|
|
53
|
+
height: 20px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.condition-cross-line{
|
|
60
|
+
.ant-select-single.ant-select-show-arrow .ant-select-selection-item,
|
|
61
|
+
.ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder{
|
|
62
|
+
padding-right: 0;
|
|
63
|
+
text-align: center;
|
|
64
|
+
}
|
|
65
|
+
.ant-select-arrow{
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
.ant-divider-inner-text{
|
|
69
|
+
padding: 0;
|
|
70
|
+
}
|
|
71
|
+
.ant-select:not(.ant-select-customize-input) .ant-select-selector{
|
|
72
|
+
background: transparent !important;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '
|
|
3
|
-
interface Props {
|
|
4
|
-
value?: any;
|
|
5
|
-
onChange?: (value: any) => void;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const CycleTime: React.FC<Props>;
|
|
9
|
-
export default CycleTime;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../../../style.less';
|
|
3
|
+
interface Props {
|
|
4
|
+
value?: any;
|
|
5
|
+
onChange?: (value: any) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const CycleTime: React.FC<Props>;
|
|
9
|
+
export default CycleTime;
|