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,6 +1,3 @@
|
|
|
1
|
-
import "antd/es/message/style";
|
|
2
|
-
import _message from "antd/es/message";
|
|
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,16 +11,20 @@ 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, { useEffect, useRef } from 'react';
|
|
14
|
+
import { message } from 'antd';
|
|
17
15
|
import '@antv/x6-react-shape';
|
|
18
16
|
import { useDrop } from 'react-dnd';
|
|
19
17
|
import classNames from 'classnames';
|
|
20
|
-
import { DRAGGABLE_ALGO_COMPONENT, DRAGGABLE_MODEL } from "
|
|
21
|
-
import { useExperimentGraph } from "
|
|
18
|
+
import { DRAGGABLE_ALGO_COMPONENT, DRAGGABLE_MODEL } from "../../../packages/graph-common/graph";
|
|
19
|
+
import { useExperimentGraph } from "../../../packages/graph-canvas";
|
|
22
20
|
import "./canvas-content.less";
|
|
23
21
|
export var CanvasContent = function CanvasContent(props) {
|
|
24
22
|
var experimentId = props.experimentId,
|
|
25
23
|
className = props.className,
|
|
26
|
-
viewData = props.viewData
|
|
24
|
+
viewData = props.viewData,
|
|
25
|
+
dragEnable = props.dragEnable;
|
|
26
|
+
var viewDataJSON = JSON.stringify(viewData);
|
|
27
|
+
console.log('dragEnable', dragEnable);
|
|
27
28
|
var containerRef = useRef(null);
|
|
28
29
|
var canvasRef = useRef(null);
|
|
29
30
|
var expGraph = useExperimentGraph(experimentId); // 渲染画布
|
|
@@ -31,17 +32,27 @@ export var CanvasContent = function CanvasContent(props) {
|
|
|
31
32
|
useEffect(function () {
|
|
32
33
|
window.requestIdleCallback(function () {
|
|
33
34
|
expGraph.renderGraph(containerRef.current, canvasRef.current);
|
|
34
|
-
|
|
35
|
+
|
|
36
|
+
if (viewData) {
|
|
37
|
+
var _expGraph$graph, _expGraph$graph2, _expGraph$graph2$zoom;
|
|
38
|
+
|
|
39
|
+
// console.log('=====================>>>>>>>>>>>>>>>>', viewData)
|
|
40
|
+
expGraph === null || expGraph === void 0 ? void 0 : (_expGraph$graph = expGraph.graph) === null || _expGraph$graph === void 0 ? void 0 : _expGraph$graph.clearCells();
|
|
41
|
+
expGraph.initPreviewData((viewData === null || viewData === void 0 ? void 0 : viewData.node) || {}).then();
|
|
42
|
+
expGraph === null || expGraph === void 0 ? void 0 : (_expGraph$graph2 = expGraph.graph) === null || _expGraph$graph2 === void 0 ? void 0 : (_expGraph$graph2$zoom = _expGraph$graph2.zoomToFit) === null || _expGraph$graph2$zoom === void 0 ? void 0 : _expGraph$graph2$zoom.call(_expGraph$graph2, {
|
|
43
|
+
padding: 25
|
|
44
|
+
});
|
|
45
|
+
}
|
|
35
46
|
});
|
|
36
|
-
}, [expGraph]);
|
|
47
|
+
}, [expGraph, viewDataJSON]);
|
|
37
48
|
|
|
38
49
|
var checkNodeNumber = function checkNodeNumber(_ref) {
|
|
39
|
-
var _expGraph$
|
|
50
|
+
var _expGraph$graph3;
|
|
40
51
|
|
|
41
52
|
var id = _ref.id,
|
|
42
53
|
number = _ref.number;
|
|
43
54
|
if (!number) return true;
|
|
44
|
-
var nodes = expGraph === null || expGraph === void 0 ? void 0 : (_expGraph$
|
|
55
|
+
var nodes = expGraph === null || expGraph === void 0 ? void 0 : (_expGraph$graph3 = expGraph.graph) === null || _expGraph$graph3 === void 0 ? void 0 : _expGraph$graph3.getNodes();
|
|
45
56
|
console.log('checkNodeNumber nodes', nodes);
|
|
46
57
|
var nodeGroup = (nodes === null || nodes === void 0 ? void 0 : nodes.filter(function (item) {
|
|
47
58
|
var _item$id;
|
|
@@ -72,10 +83,10 @@ export var CanvasContent = function CanvasContent(props) {
|
|
|
72
83
|
nodeMeta: item.component
|
|
73
84
|
});
|
|
74
85
|
} else {
|
|
75
|
-
|
|
86
|
+
message.error("".concat(item.component.name, "\u7EC4\u4EF6\u53EA\u80FD\u5B58\u5728\u4E00\u4E2A"));
|
|
76
87
|
}
|
|
77
88
|
} else {
|
|
78
|
-
|
|
89
|
+
message.info('数据建立中,请稍后再尝试添加节点');
|
|
79
90
|
}
|
|
80
91
|
}
|
|
81
92
|
}),
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface Props {
|
|
4
|
-
/**
|
|
5
|
-
* @description UUID
|
|
6
|
-
* @description.zh-CN 策略唯一识别id
|
|
7
|
-
* @default 1
|
|
8
|
-
*/
|
|
9
|
-
experimentId: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
/**
|
|
12
|
-
* @description viewData
|
|
13
|
-
* @description.zh-CN 策略初始化数据
|
|
14
|
-
*/
|
|
15
|
-
viewData?: any;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface Props {
|
|
4
|
+
/**
|
|
5
|
+
* @description UUID
|
|
6
|
+
* @description.zh-CN 策略唯一识别id
|
|
7
|
+
* @default 1
|
|
8
|
+
*/
|
|
9
|
+
experimentId: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @description viewData
|
|
13
|
+
* @description.zh-CN 策略初始化数据
|
|
14
|
+
*/
|
|
15
|
+
viewData?: any;
|
|
16
|
+
/**
|
|
17
|
+
* @description viewData
|
|
18
|
+
* @description.zh-CN 拖拽可创建
|
|
19
|
+
*/
|
|
20
|
+
dragEnable?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const DAGCanvas: React.FC<Props>;
|
|
23
|
+
export default DAGCanvas;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import { useExperimentGraph, useUnmountExperimentGraph } from "
|
|
3
|
+
import { useExperimentGraph, useUnmountExperimentGraph } from "../../../packages/graph-canvas";
|
|
4
4
|
import { CanvasContent } from "./canvas-content";
|
|
5
5
|
import "./index.less";
|
|
6
6
|
|
|
7
7
|
var DAGCanvas = function DAGCanvas(props) {
|
|
8
8
|
var experimentId = props.experimentId,
|
|
9
9
|
className = props.className,
|
|
10
|
-
viewData = props.viewData
|
|
10
|
+
viewData = props.viewData,
|
|
11
|
+
_props$dragEnable = props.dragEnable,
|
|
12
|
+
dragEnable = _props$dragEnable === void 0 ? true : _props$dragEnable;
|
|
11
13
|
var expGraph = useExperimentGraph(experimentId); // 处理画布卸载
|
|
12
14
|
|
|
13
15
|
useUnmountExperimentGraph(experimentId); // 自定义算法组件的渲染控制
|
|
@@ -21,6 +23,7 @@ var DAGCanvas = function DAGCanvas(props) {
|
|
|
21
23
|
return /*#__PURE__*/React.createElement("div", {
|
|
22
24
|
className: classNames('dag-container', className)
|
|
23
25
|
}, /*#__PURE__*/React.createElement(CanvasContent, {
|
|
26
|
+
dragEnable: dragEnable,
|
|
24
27
|
viewData: viewData,
|
|
25
28
|
experimentId: experimentId,
|
|
26
29
|
className: "canvas-content"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '@antv/x6-react-shape';
|
|
3
|
-
import './canvas-content.less';
|
|
4
|
-
interface Props {
|
|
5
|
-
experimentId: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
viewData?: any;
|
|
8
|
-
}
|
|
9
|
-
declare const CanvasContent: React.FC<Props>;
|
|
10
|
-
export default CanvasContent;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '@antv/x6-react-shape';
|
|
3
|
+
import './canvas-content.less';
|
|
4
|
+
interface Props {
|
|
5
|
+
experimentId: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
viewData?: any;
|
|
8
|
+
}
|
|
9
|
+
declare const CanvasContent: React.FC<Props>;
|
|
10
|
+
export default CanvasContent;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import '@antv/x6-react-shape';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { useExperimentGraph, useUnmountExperimentGraph } from "../../../packages/graph-canvas";
|
|
5
|
+
import "./canvas-content.less";
|
|
6
|
+
|
|
7
|
+
var CanvasContent = function CanvasContent(props) {
|
|
8
|
+
var experimentId = props.experimentId,
|
|
9
|
+
className = props.className,
|
|
10
|
+
viewData = props.viewData;
|
|
11
|
+
var viewDataJSON = JSON.stringify(viewData); // 处理画布卸载
|
|
12
|
+
|
|
13
|
+
useUnmountExperimentGraph(experimentId);
|
|
14
|
+
var containerRef = useRef(null);
|
|
15
|
+
var canvasRef = useRef(null);
|
|
16
|
+
var expGraph = useExperimentGraph(experimentId); // 渲染画布
|
|
17
|
+
|
|
18
|
+
useEffect(function () {
|
|
19
|
+
window.renderForm = expGraph.setActiveAlgoData;
|
|
20
|
+
window.requestIdleCallback(function () {
|
|
21
|
+
var _expGraph$graph, _expGraph$graph2, _expGraph$graph3;
|
|
22
|
+
|
|
23
|
+
expGraph.renderGraph(containerRef.current, canvasRef.current, {
|
|
24
|
+
interacting: false
|
|
25
|
+
});
|
|
26
|
+
expGraph === null || expGraph === void 0 ? void 0 : (_expGraph$graph = expGraph.graph) === null || _expGraph$graph === void 0 ? void 0 : _expGraph$graph.hideGrid();
|
|
27
|
+
expGraph === null || expGraph === void 0 ? void 0 : (_expGraph$graph2 = expGraph.graph) === null || _expGraph$graph2 === void 0 ? void 0 : _expGraph$graph2.disableKeyboard();
|
|
28
|
+
expGraph.onClearSelectNodes();
|
|
29
|
+
expGraph === null || expGraph === void 0 ? void 0 : (_expGraph$graph3 = expGraph.graph) === null || _expGraph$graph3 === void 0 ? void 0 : _expGraph$graph3.clearCells();
|
|
30
|
+
|
|
31
|
+
if (viewData) {
|
|
32
|
+
var _expGraph$graph4, _expGraph$graph4$zoom, _expGraph$graph5;
|
|
33
|
+
|
|
34
|
+
expGraph.initPreviewData((viewData === null || viewData === void 0 ? void 0 : viewData.node) || {}).then();
|
|
35
|
+
expGraph === null || expGraph === void 0 ? void 0 : (_expGraph$graph4 = expGraph.graph) === null || _expGraph$graph4 === void 0 ? void 0 : (_expGraph$graph4$zoom = _expGraph$graph4.zoomToFit) === null || _expGraph$graph4$zoom === void 0 ? void 0 : _expGraph$graph4$zoom.call(_expGraph$graph4, {
|
|
36
|
+
padding: 25
|
|
37
|
+
});
|
|
38
|
+
expGraph === null || expGraph === void 0 ? void 0 : (_expGraph$graph5 = expGraph.graph) === null || _expGraph$graph5 === void 0 ? void 0 : _expGraph$graph5.lockScroller();
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return function () {
|
|
42
|
+
delete window.renderForm;
|
|
43
|
+
};
|
|
44
|
+
}, [expGraph, viewDataJSON]);
|
|
45
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
ref: containerRef,
|
|
47
|
+
className: classNames(className, 'canvas-content')
|
|
48
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
ref: canvasRef
|
|
50
|
+
}));
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export default CanvasContent;
|
|
@@ -1,42 +1,48 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import '
|
|
6
|
-
import '
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @description
|
|
11
|
-
* @
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* @description
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* @description
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
* @description
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
* @description
|
|
32
|
-
* @
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
* @description
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ModeType } from "../../packages/graph-canvas/typings";
|
|
3
|
+
import type { HeaderProps } from './strategy-header';
|
|
4
|
+
import type { paneDataItem } from './component-tree-panel/category-tree';
|
|
5
|
+
import type { configDataItem } from './config-panel';
|
|
6
|
+
import '../../style/default.less';
|
|
7
|
+
import './index.less';
|
|
8
|
+
interface Props extends Omit<HeaderProps, 'experimentId'> {
|
|
9
|
+
/**
|
|
10
|
+
* @description top menu visible state
|
|
11
|
+
* @description.zh-CN 顶部菜单可见状态
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
headerVisible?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @description id
|
|
17
|
+
* @description.zh-CN 唯一识别id
|
|
18
|
+
*/
|
|
19
|
+
experimentId?: string | number;
|
|
20
|
+
/**
|
|
21
|
+
* @description top menu visible state
|
|
22
|
+
* @description.zh-CN 参数面板数据
|
|
23
|
+
*/
|
|
24
|
+
panelData?: paneDataItem[];
|
|
25
|
+
/**
|
|
26
|
+
* @description top menu visible state
|
|
27
|
+
* @description.zh-CN 功能面板参数配置详情
|
|
28
|
+
*/
|
|
29
|
+
configData?: configDataItem;
|
|
30
|
+
/**
|
|
31
|
+
* @description top menu visible state
|
|
32
|
+
* @description.zh-CN 组件展示模式: 搭建平台、展示
|
|
33
|
+
* @default platform
|
|
34
|
+
*/
|
|
35
|
+
mode?: ModeType;
|
|
36
|
+
/**
|
|
37
|
+
* @description viewData
|
|
38
|
+
* @description.zh-CN 预览模式数据源
|
|
39
|
+
*/
|
|
40
|
+
viewData?: any;
|
|
41
|
+
/**
|
|
42
|
+
* @description viewData
|
|
43
|
+
* @description.zh-CN 拖拽可创建
|
|
44
|
+
*/
|
|
45
|
+
dragEnable?: boolean;
|
|
46
|
+
}
|
|
47
|
+
declare const StrategyCanvas: React.FC<Props>;
|
|
48
|
+
export default StrategyCanvas;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
var _excluded = ["experimentId", "headerVisible", "panelData", "configData", "mode", "viewData"];
|
|
1
|
+
var _excluded = ["experimentId", "headerVisible", "panelData", "configData", "mode", "viewData", "dragEnable"];
|
|
2
2
|
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
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; }
|
|
6
|
-
|
|
7
|
-
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; }
|
|
3
|
+
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); }
|
|
8
4
|
|
|
9
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
6
|
|
|
@@ -18,10 +14,12 @@ import StrategyHeader from "./strategy-header";
|
|
|
18
14
|
import ConfigPanel from "./config-panel";
|
|
19
15
|
import DAGCanvas from "./dag-canvas";
|
|
20
16
|
import CanvasPreview from "./dag-canvas/preview";
|
|
21
|
-
import "
|
|
17
|
+
import "../../style/default.less";
|
|
22
18
|
import "./index.less";
|
|
23
19
|
|
|
24
20
|
var StrategyCanvas = function StrategyCanvas(props) {
|
|
21
|
+
var _window, _window2;
|
|
22
|
+
|
|
25
23
|
var _props$experimentId = props.experimentId,
|
|
26
24
|
experimentId = _props$experimentId === void 0 ? '1' : _props$experimentId,
|
|
27
25
|
_props$headerVisible = props.headerVisible,
|
|
@@ -30,9 +28,20 @@ var StrategyCanvas = function StrategyCanvas(props) {
|
|
|
30
28
|
configData = props.configData,
|
|
31
29
|
_props$mode = props.mode,
|
|
32
30
|
mode = _props$mode === void 0 ? 'platform' : _props$mode,
|
|
33
|
-
viewData = props.viewData,
|
|
31
|
+
_props$viewData = props.viewData,
|
|
32
|
+
viewData = _props$viewData === void 0 ? {} : _props$viewData,
|
|
33
|
+
_props$dragEnable = props.dragEnable,
|
|
34
|
+
dragEnable = _props$dragEnable === void 0 ? true : _props$dragEnable,
|
|
34
35
|
rest = _objectWithoutProperties(props, _excluded);
|
|
35
36
|
|
|
37
|
+
console.log('userAgent', (_window = window) === null || _window === void 0 ? void 0 : _window.openDatebase);
|
|
38
|
+
|
|
39
|
+
if ((_window2 = window) !== null && _window2 !== void 0 && _window2.openDatebase) {
|
|
40
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
className: "safari-disabled"
|
|
42
|
+
}, "safari\u6D4F\u89C8\u5668\u6682\u4E0D\u652F\u6301\u7B56\u7565\u529F\u80FD\uFF0C\u8BF7\u4F7F\u7528\u8C37\u6B4C\u6D4F\u89C8\u5668!");
|
|
43
|
+
}
|
|
44
|
+
|
|
36
45
|
return mode === 'view' ? /*#__PURE__*/React.createElement("div", {
|
|
37
46
|
className: "strategy-panel-layout"
|
|
38
47
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -51,7 +60,7 @@ var StrategyCanvas = function StrategyCanvas(props) {
|
|
|
51
60
|
extraConfigData: configData
|
|
52
61
|
})))) : /*#__PURE__*/React.createElement("div", {
|
|
53
62
|
className: "strategy-panel-layout"
|
|
54
|
-
}, headerVisible && /*#__PURE__*/React.createElement(StrategyHeader,
|
|
63
|
+
}, headerVisible && /*#__PURE__*/React.createElement(StrategyHeader, _extends({
|
|
55
64
|
experimentId: "".concat(experimentId)
|
|
56
65
|
}, rest)), /*#__PURE__*/React.createElement("div", {
|
|
57
66
|
className: "strategy-panel-content"
|
|
@@ -67,7 +76,8 @@ var StrategyCanvas = function StrategyCanvas(props) {
|
|
|
67
76
|
}, /*#__PURE__*/React.createElement(DAGCanvas, {
|
|
68
77
|
viewData: viewData,
|
|
69
78
|
experimentId: "".concat(experimentId),
|
|
70
|
-
className: "panel-dag-canvas"
|
|
79
|
+
className: "panel-dag-canvas",
|
|
80
|
+
dragEnable: dragEnable
|
|
71
81
|
})), /*#__PURE__*/React.createElement(ConfigPanel, {
|
|
72
82
|
mode: mode,
|
|
73
83
|
experimentId: "".concat(experimentId),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import "
|
|
1
|
+
@import "../../style/default";
|
|
2
2
|
@black-color: #000;
|
|
3
3
|
|
|
4
4
|
.flex {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: stretch;
|
|
20
20
|
justify-content: space-between;
|
|
21
|
-
height: 100
|
|
21
|
+
height: calc(100% - 45px);
|
|
22
22
|
margin-top: 1px;
|
|
23
23
|
font-size: 12px;
|
|
24
24
|
}
|
|
@@ -1,56 +1,48 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import './style.less';
|
|
4
|
-
export interface HeaderProps {
|
|
5
|
-
/**
|
|
6
|
-
* @description id
|
|
7
|
-
* @description.zh-CN 唯一识别id
|
|
8
|
-
* @default 1
|
|
9
|
-
*/
|
|
10
|
-
experimentId: string;
|
|
11
|
-
/**
|
|
12
|
-
* @description
|
|
13
|
-
* @description.zh-CN
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* @description
|
|
19
|
-
* @
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description
|
|
24
|
-
* @description.zh-CN
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
*
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
extraHeaderData?: {
|
|
50
|
-
name: string;
|
|
51
|
-
imgUrl: string;
|
|
52
|
-
onClick?: () => void;
|
|
53
|
-
}[];
|
|
54
|
-
}
|
|
55
|
-
declare const Index: React.FC<HeaderProps>;
|
|
56
|
-
export default Index;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import "../../../style/position.less";
|
|
3
|
+
import './style.less';
|
|
4
|
+
export interface HeaderProps {
|
|
5
|
+
/**
|
|
6
|
+
* @description id
|
|
7
|
+
* @description.zh-CN 唯一识别id
|
|
8
|
+
* @default 1
|
|
9
|
+
*/
|
|
10
|
+
experimentId: string;
|
|
11
|
+
/**
|
|
12
|
+
* @description available
|
|
13
|
+
* @description.zh-CN 策略是否启用
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
isActive?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @description Switch available state
|
|
19
|
+
* @description.zh-CN 切换测试启用状态函数
|
|
20
|
+
*/
|
|
21
|
+
onActiveSwitch?: (isActive: boolean) => void;
|
|
22
|
+
/**
|
|
23
|
+
* @description Trigger after cancel edit
|
|
24
|
+
* @description.zh-CN 标题
|
|
25
|
+
*/
|
|
26
|
+
title?: React.ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* @description Trigger after cancel edit
|
|
29
|
+
* @description.zh-CN 取消编辑后后回调事件
|
|
30
|
+
*/
|
|
31
|
+
onCancel?: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* @description Trigger after submitting
|
|
34
|
+
* @description.zh-CN 编辑完成后后回调事件
|
|
35
|
+
*/
|
|
36
|
+
onSave?: (type: 'application' | 'data', expGraph?: any) => void;
|
|
37
|
+
/**
|
|
38
|
+
* @description Trigger after cancel edit
|
|
39
|
+
* @description.zh-CN 取消编辑后后回调事件
|
|
40
|
+
*/
|
|
41
|
+
extraHeaderData?: {
|
|
42
|
+
name: string;
|
|
43
|
+
imgUrl: string;
|
|
44
|
+
onClick?: () => void;
|
|
45
|
+
}[];
|
|
46
|
+
}
|
|
47
|
+
declare const Index: React.FC<HeaderProps>;
|
|
48
|
+
export default Index;
|