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
|
@@ -0,0 +1,81 @@
|
|
|
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; }
|
|
2
|
+
|
|
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; }
|
|
4
|
+
|
|
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; }
|
|
6
|
+
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import classNames from 'classnames';
|
|
9
|
+
import { Form, Select } from 'antd';
|
|
10
|
+
import EffectiveTime from "./effective-time";
|
|
11
|
+
import SectionDetail from "./section-Detail";
|
|
12
|
+
import "../../style.less";
|
|
13
|
+
|
|
14
|
+
var SectionTime = function SectionTime(props) {
|
|
15
|
+
var value = props.value,
|
|
16
|
+
onChange = props.onChange,
|
|
17
|
+
disabled = props.disabled;
|
|
18
|
+
|
|
19
|
+
var handleDatesChange = function handleDatesChange(effectDates) {
|
|
20
|
+
console.log('xxxxxxxxxxxxxxxxxxxx handleDatesChange', effectDates);
|
|
21
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, value), {}, {
|
|
22
|
+
effectDates: effectDates
|
|
23
|
+
}));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var handleUnitChange = function handleUnitChange(unit) {
|
|
27
|
+
if (unit !== (value === null || value === void 0 ? void 0 : value.unit)) {
|
|
28
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, value), {}, {
|
|
29
|
+
unit: unit,
|
|
30
|
+
list: [{}]
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var handleValueChange = function handleValueChange(list) {
|
|
36
|
+
console.log('xxxxxxxxxxxxxxxxxxxx handleValueChange', list);
|
|
37
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, value), {}, {
|
|
38
|
+
list: list
|
|
39
|
+
}));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
className: classNames('border-bottom', 'inner-bottom-box')
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
45
|
+
label: "\u89E6\u53D1\u6A21\u5F0F",
|
|
46
|
+
required: true,
|
|
47
|
+
className: "no-margin-bottom"
|
|
48
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
49
|
+
disabled: disabled,
|
|
50
|
+
allowClear: true,
|
|
51
|
+
value: value === null || value === void 0 ? void 0 : value.unit,
|
|
52
|
+
onChange: handleUnitChange
|
|
53
|
+
}, /*#__PURE__*/React.createElement(Select.Option, {
|
|
54
|
+
value: "HOURS"
|
|
55
|
+
}, "\u5C0F\u65F6\u533A\u95F4"), /*#__PURE__*/React.createElement(Select.Option, {
|
|
56
|
+
value: "DAYS"
|
|
57
|
+
}, "\u65E5\u5468\u671F"), /*#__PURE__*/React.createElement(Select.Option, {
|
|
58
|
+
value: "MONTHS"
|
|
59
|
+
}, "\u6708\u533A\u95F4")))), (value === null || value === void 0 ? void 0 : value.unit) && /*#__PURE__*/React.createElement("div", {
|
|
60
|
+
className: classNames('border-bottom', 'inner-bottom-box')
|
|
61
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
62
|
+
label: "\u65F6\u95F4\u533A\u95F4",
|
|
63
|
+
required: true,
|
|
64
|
+
className: "no-margin-bottom"
|
|
65
|
+
}, /*#__PURE__*/React.createElement(SectionDetail, {
|
|
66
|
+
mode: value === null || value === void 0 ? void 0 : value.unit,
|
|
67
|
+
disabled: disabled,
|
|
68
|
+
value: value === null || value === void 0 ? void 0 : value.list,
|
|
69
|
+
onChange: handleValueChange
|
|
70
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
className: classNames('border-bottom', 'inner-bottom-box')
|
|
72
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
73
|
+
label: "\u751F\u6548\u65F6\u95F4\u533A\u95F4",
|
|
74
|
+
className: "no-margin-bottom"
|
|
75
|
+
}, /*#__PURE__*/React.createElement(EffectiveTime, {
|
|
76
|
+
value: value === null || value === void 0 ? void 0 : value.effectDates,
|
|
77
|
+
onChange: handleDatesChange
|
|
78
|
+
}))));
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export default SectionTime;
|
package/es/{pages → components/canvas}/config-panel/components/time-trigger/timing-time.d.ts
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
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 TimingTime: React.FC<Props>;
|
|
9
|
-
export default TimingTime;
|
|
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 TimingTime: React.FC<Props>;
|
|
9
|
+
export default TimingTime;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import "antd/es/select/style";
|
|
2
|
-
import _Select from "antd/es/select";
|
|
3
|
-
import "antd/es/form/style";
|
|
4
|
-
import _Form from "antd/es/form";
|
|
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 { Form, Select } from 'antd';
|
|
13
9
|
import classNames from 'classnames';
|
|
14
10
|
import CycleTime from "./components/cycle-time";
|
|
15
11
|
import "../../style.less";
|
|
@@ -29,21 +25,21 @@ var TimingTime = function TimingTime(props) {
|
|
|
29
25
|
|
|
30
26
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
31
27
|
className: classNames('border-bottom', 'inner-bottom-box')
|
|
32
|
-
}, /*#__PURE__*/React.createElement(
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
33
29
|
label: "\u89E6\u53D1\u5468\u671F",
|
|
34
30
|
required: true,
|
|
35
31
|
className: "no-margin-bottom",
|
|
36
|
-
validateStatus:
|
|
37
|
-
}, /*#__PURE__*/React.createElement(
|
|
32
|
+
validateStatus: value !== null && value !== void 0 && value.cycle ? 'success' : 'error'
|
|
33
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
38
34
|
disabled: disabled,
|
|
39
35
|
allowClear: true,
|
|
40
36
|
value: value === null || value === void 0 ? void 0 : value.cycle,
|
|
41
37
|
onChange: cycleChange
|
|
42
|
-
}, /*#__PURE__*/React.createElement(
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Select.Option, {
|
|
43
39
|
value: "day"
|
|
44
|
-
}, "\u65E5"), /*#__PURE__*/React.createElement(
|
|
40
|
+
}, "\u65E5"), /*#__PURE__*/React.createElement(Select.Option, {
|
|
45
41
|
value: "week"
|
|
46
|
-
}, "\u5468"), /*#__PURE__*/React.createElement(
|
|
42
|
+
}, "\u5468"), /*#__PURE__*/React.createElement(Select.Option, {
|
|
47
43
|
value: "month"
|
|
48
44
|
}, "\u6708")))), (value === null || value === void 0 ? void 0 : value.cycle) && /*#__PURE__*/React.createElement(CycleTime, {
|
|
49
45
|
disabled: disabled,
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
|
|
1
|
+
import type { ModeType } from "../../../packages/graph-canvas/typings";
|
|
2
|
+
import './style.less';
|
|
3
|
+
export declare const getComponentConfig: (experimentId: string) => {
|
|
4
|
+
[x: number]: {
|
|
5
|
+
name: string;
|
|
6
|
+
label: string;
|
|
7
|
+
type: string;
|
|
8
|
+
required: boolean;
|
|
9
|
+
selectData: {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
}[] | {
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
component: JSX.Element;
|
|
17
|
+
}[] | {
|
|
18
|
+
name: string;
|
|
19
|
+
label: string;
|
|
20
|
+
required: boolean;
|
|
21
|
+
type: string;
|
|
22
|
+
component: JSX.Element;
|
|
23
|
+
}[] | ({
|
|
24
|
+
name: string;
|
|
25
|
+
label: string;
|
|
26
|
+
type: string;
|
|
27
|
+
selectData?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
name: string;
|
|
30
|
+
label: string;
|
|
31
|
+
type: string;
|
|
32
|
+
selectData: {
|
|
33
|
+
label: string;
|
|
34
|
+
value: string;
|
|
35
|
+
}[];
|
|
36
|
+
})[];
|
|
37
|
+
};
|
|
38
|
+
export declare const getFormatComponent: (data: any, mode: ModeType) => JSX.Element | undefined;
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import "antd/es/input/style";
|
|
2
|
-
import _Input from "antd/es/input";
|
|
3
|
-
import "antd/es/form/style";
|
|
4
|
-
import _Form from "antd/es/form";
|
|
5
|
-
import "antd/es/select/style";
|
|
6
|
-
import _Select from "antd/es/select";
|
|
7
|
-
|
|
8
1
|
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; }
|
|
9
2
|
|
|
10
3
|
import React from 'react';
|
|
11
|
-
import {
|
|
4
|
+
import { Form, Input, Select } from 'antd';
|
|
5
|
+
import { withMode } from "../../../packages/hooks/withMode";
|
|
12
6
|
import { MOTION_OPERATION, // COMPONENTS_TYPE,
|
|
13
7
|
// COMMONLY_USED,
|
|
14
8
|
SCENE_DISPLAY, SIGN_OPERATION // MOTION_OPERATION,
|
|
15
|
-
} from "
|
|
9
|
+
} from "../../../packages/graph-canvas/node-types";
|
|
16
10
|
import TimeTrigger from "./components/time-trigger";
|
|
17
11
|
import ConditionConfiguration from "./components/condition-configuration";
|
|
18
12
|
import "./style.less";
|
|
19
|
-
var Option =
|
|
13
|
+
var Option = Select.Option;
|
|
20
14
|
export var getComponentConfig = function getComponentConfig(experimentId) {
|
|
21
15
|
var _ref;
|
|
22
16
|
|
|
@@ -92,12 +86,12 @@ export var getFormatComponent = function getFormatComponent(data, mode) {
|
|
|
92
86
|
formComponent = /*#__PURE__*/React.createElement("div", {
|
|
93
87
|
className: "border-bottom",
|
|
94
88
|
key: name
|
|
95
|
-
}, /*#__PURE__*/React.createElement(
|
|
89
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
96
90
|
label: label,
|
|
97
91
|
name: name,
|
|
98
92
|
rules: rules,
|
|
99
93
|
className: "no-margin-bottom"
|
|
100
|
-
}, /*#__PURE__*/React.createElement(
|
|
94
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
101
95
|
disabled: mode === 'view' ? true : disabled
|
|
102
96
|
})));
|
|
103
97
|
break;
|
|
@@ -106,12 +100,12 @@ export var getFormatComponent = function getFormatComponent(data, mode) {
|
|
|
106
100
|
formComponent = /*#__PURE__*/React.createElement("div", {
|
|
107
101
|
className: "border-bottom",
|
|
108
102
|
key: name
|
|
109
|
-
}, /*#__PURE__*/React.createElement(
|
|
103
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
110
104
|
label: label,
|
|
111
105
|
name: name,
|
|
112
106
|
rules: rules,
|
|
113
107
|
className: "no-margin-bottom"
|
|
114
|
-
}, /*#__PURE__*/React.createElement(
|
|
108
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
115
109
|
disabled: mode === 'view' ? true : disabled
|
|
116
110
|
}, selectData === null || selectData === void 0 ? void 0 : selectData.map(function (item) {
|
|
117
111
|
return /*#__PURE__*/React.createElement(Option, {
|
|
@@ -125,7 +119,7 @@ export var getFormatComponent = function getFormatComponent(data, mode) {
|
|
|
125
119
|
formComponent = /*#__PURE__*/React.createElement("div", {
|
|
126
120
|
className: "border-bottom",
|
|
127
121
|
key: name
|
|
128
|
-
}, /*#__PURE__*/React.createElement(
|
|
122
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
129
123
|
key: name,
|
|
130
124
|
label: label,
|
|
131
125
|
name: name,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { configDataItem } from './node-form';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { configDataItem } from './node-form';
|
|
3
|
+
import type { ModeType } from "../../../packages/graph-canvas/typings";
|
|
4
|
+
import './style.less';
|
|
5
|
+
interface Props {
|
|
6
|
+
experimentId: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
extraConfigData?: configDataItem;
|
|
9
|
+
activeNodeId?: string;
|
|
10
|
+
mode?: ModeType;
|
|
11
|
+
}
|
|
12
|
+
declare const ConfigPanel: React.FC<Props>;
|
|
13
|
+
export default ConfigPanel;
|
|
14
|
+
export type { configDataItem };
|
|
@@ -12,8 +12,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
12
12
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
|
-
import { useObservableState } from "
|
|
16
|
-
import { useExperimentGraph } from "
|
|
15
|
+
import { useObservableState } from "../../../packages/hooks/useObservableState";
|
|
16
|
+
import { useExperimentGraph } from "../../../packages/graph-canvas";
|
|
17
17
|
import NodeForm from "./node-form";
|
|
18
18
|
import "./style.less";
|
|
19
19
|
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}[]
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ModeType } from "../../../packages/graph-canvas/typings";
|
|
3
|
+
import './style.less';
|
|
4
|
+
export declare type configDataItem = Record<string, {
|
|
5
|
+
name: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
type: 'input' | 'select' | 'auto';
|
|
8
|
+
required?: boolean;
|
|
9
|
+
component?: React.ReactNode;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
selectData?: {
|
|
12
|
+
label: string;
|
|
13
|
+
value: any;
|
|
14
|
+
}[];
|
|
15
|
+
}[]>;
|
|
16
|
+
export interface Props {
|
|
17
|
+
experimentId: string;
|
|
18
|
+
nodeId: string;
|
|
19
|
+
extraConfigData?: configDataItem;
|
|
20
|
+
mode: ModeType;
|
|
21
|
+
}
|
|
22
|
+
declare const NodeForm: React.FC<Props>;
|
|
23
|
+
export default NodeForm;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import "antd/es/input/style";
|
|
2
|
-
import _Input from "antd/es/input";
|
|
3
|
-
import "antd/es/form/style";
|
|
4
|
-
import _Form from "antd/es/form";
|
|
5
|
-
|
|
6
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
7
2
|
|
|
8
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."); }
|
|
@@ -16,14 +11,15 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
16
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
12
|
|
|
18
13
|
import React, { useEffect } from 'react';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
14
|
+
import { Form, Input } from 'antd';
|
|
15
|
+
import { useObservableState } from "../../../packages/hooks/useObservableState";
|
|
16
|
+
import { useExperimentGraph } from "../../../packages/graph-canvas";
|
|
21
17
|
import { getComponentConfig } from "./config-common";
|
|
22
18
|
import { getFormatComponent } from "./config-common";
|
|
23
19
|
import "./style.less";
|
|
24
20
|
|
|
25
21
|
var NodeForm = function NodeForm(_ref) {
|
|
26
|
-
var _nodeId$split;
|
|
22
|
+
var _nodeId$split, _node$id, _node$id$split;
|
|
27
23
|
|
|
28
24
|
var nodeId = _ref.nodeId,
|
|
29
25
|
experimentId = _ref.experimentId,
|
|
@@ -31,7 +27,7 @@ var NodeForm = function NodeForm(_ref) {
|
|
|
31
27
|
extraConfigData = _ref$extraConfigData === void 0 ? {} : _ref$extraConfigData,
|
|
32
28
|
mode = _ref.mode;
|
|
33
29
|
|
|
34
|
-
var _Form$useForm =
|
|
30
|
+
var _Form$useForm = Form.useForm(),
|
|
35
31
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
36
32
|
form = _Form$useForm2[0];
|
|
37
33
|
|
|
@@ -54,26 +50,28 @@ var NodeForm = function NodeForm(_ref) {
|
|
|
54
50
|
var allConfigData = Object.assign({}, componentConfig, extraConfigData);
|
|
55
51
|
var configData = allConfigData === null || allConfigData === void 0 ? void 0 : allConfigData[nodeType];
|
|
56
52
|
useEffect(function () {
|
|
57
|
-
if (node
|
|
53
|
+
if (node !== null && node !== void 0 && node.nodeData) {
|
|
58
54
|
var nodeData = typeof node.nodeData === 'string' ? JSON.parse(node === null || node === void 0 ? void 0 : node.nodeData) : node.nodeData;
|
|
59
55
|
console.log('NodeForm useEffect', node.nodeData);
|
|
60
56
|
form.setFieldsValue(nodeData);
|
|
61
57
|
}
|
|
62
58
|
}, [node === null || node === void 0 ? void 0 : node.nodeData]);
|
|
63
|
-
return /*#__PURE__*/React.createElement(
|
|
59
|
+
return /*#__PURE__*/React.createElement(Form, {
|
|
64
60
|
form: form,
|
|
65
61
|
className: "config-panel-form",
|
|
66
62
|
layout: "vertical",
|
|
67
63
|
onValuesChange: onValuesChange
|
|
68
64
|
}, /*#__PURE__*/React.createElement("div", {
|
|
69
65
|
className: "border-bottom"
|
|
70
|
-
}, /*#__PURE__*/React.createElement(
|
|
66
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: "config-title"
|
|
68
|
+
}, "\u7EC4\u4EF6\u7C7B\u578B: ", node === null || node === void 0 ? void 0 : node.name), /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
className: "id-line"
|
|
70
|
+
}, "id: ", node === null || node === void 0 ? void 0 : (_node$id = node.id) === null || _node$id === void 0 ? void 0 : (_node$id$split = _node$id.split('-')) === null || _node$id$split === void 0 ? void 0 : _node$id$split[1]), /*#__PURE__*/React.createElement(Form.Item, {
|
|
71
|
+
name: "realName",
|
|
71
72
|
label: "\u7EC4\u4EF6\u540D\u79F0",
|
|
72
73
|
className: "no-margin-bottom"
|
|
73
|
-
}, /*#__PURE__*/React.createElement(
|
|
74
|
-
disabled: true,
|
|
75
|
-
value: node === null || node === void 0 ? void 0 : node.name
|
|
76
|
-
}))), configData === null || configData === void 0 ? void 0 : configData.map(function (item) {
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Input, null))), configData === null || configData === void 0 ? void 0 : configData.map(function (item) {
|
|
77
75
|
return getFormatComponent(item, mode);
|
|
78
76
|
}));
|
|
79
77
|
};
|
|
@@ -1,81 +1,90 @@
|
|
|
1
|
-
@e9-color: #e9e9e9;
|
|
2
|
-
@f2-color: #F2F2F2;
|
|
3
|
-
@black-color: #323232;
|
|
4
|
-
|
|
5
|
-
.config-panel {
|
|
6
|
-
width:
|
|
7
|
-
min-width:
|
|
8
|
-
margin-top: -1px;
|
|
9
|
-
margin-right: -
|
|
10
|
-
border: 1px solid @e9-color;
|
|
11
|
-
transition: margin-right 0.3s ease-out;
|
|
12
|
-
&.selected {
|
|
13
|
-
margin-right: 0;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.setting {
|
|
18
|
-
height: 100%;
|
|
19
|
-
.form {
|
|
20
|
-
flex-grow: 1;
|
|
21
|
-
height: 100%;
|
|
22
|
-
padding: 10px 0;
|
|
23
|
-
overflow-x: hidden;
|
|
24
|
-
overflow-y: auto;
|
|
25
|
-
background: #fff;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.no-margin-bottom {
|
|
30
|
-
margin-bottom: 0 !important;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.config-panel-form{
|
|
34
|
-
& > .border-bottom:last-child{
|
|
35
|
-
margin-bottom: 50px;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.border-bottom {
|
|
40
|
-
margin-bottom: 6px;
|
|
41
|
-
padding: 0 10px 12px;
|
|
42
|
-
border-bottom: 1px solid @e9-color;
|
|
43
|
-
&.inner-bottom-box{
|
|
44
|
-
margin: 0 -10px -13px;
|
|
45
|
-
}
|
|
46
|
-
&.inner-bottom-box:not(:first-child) {
|
|
47
|
-
margin-top: 18px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.ant-form-item-with-help .ant-form-item-explain {
|
|
51
|
-
display: none;
|
|
52
|
-
}
|
|
53
|
-
.ant-input,
|
|
54
|
-
.ant-input-number,
|
|
55
|
-
.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number,
|
|
56
|
-
.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:hover{
|
|
57
|
-
border-radius: 4px;
|
|
58
|
-
color: @black-color !important;
|
|
59
|
-
background: @f2-color !important;
|
|
60
|
-
}
|
|
61
|
-
.ant-picker,
|
|
62
|
-
.ant-picker:not([disabled]):hover,
|
|
63
|
-
.ant-picker-status-error.ant-picker, .ant-picker-status-error.ant-picker:not([disabled]):hover{
|
|
64
|
-
border-radius: 4px;
|
|
65
|
-
color: @black-color !important;
|
|
66
|
-
background: @f2-color !important;
|
|
67
|
-
}
|
|
68
|
-
.ant-form-item-has-error .ant-input-number:not([disabled]):hover,
|
|
69
|
-
.ant-form-item-has-error .ant-picker:not([disabled]):hover,
|
|
70
|
-
.ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector{
|
|
71
|
-
border-radius: 4px;
|
|
72
|
-
color: @black-color !important;
|
|
73
|
-
background: @f2-color !important;
|
|
74
|
-
}
|
|
75
|
-
.ant-select:not(.ant-select-customize-input) .ant-select-selector{
|
|
76
|
-
border-radius: 4px;
|
|
77
|
-
color: @black-color !important;
|
|
78
|
-
background: @f2-color !important;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
1
|
+
@e9-color: #e9e9e9;
|
|
2
|
+
@f2-color: #F2F2F2;
|
|
3
|
+
@black-color: #323232;
|
|
4
|
+
|
|
5
|
+
.config-panel {
|
|
6
|
+
width: 350px;
|
|
7
|
+
min-width: 350px;
|
|
8
|
+
margin-top: -1px;
|
|
9
|
+
margin-right: -360px;
|
|
10
|
+
border: 1px solid @e9-color;
|
|
11
|
+
transition: margin-right 0.3s ease-out;
|
|
12
|
+
&.selected {
|
|
13
|
+
margin-right: 0;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.setting {
|
|
18
|
+
height: 100%;
|
|
19
|
+
.form {
|
|
20
|
+
flex-grow: 1;
|
|
21
|
+
height: 100%;
|
|
22
|
+
padding: 10px 0;
|
|
23
|
+
overflow-x: hidden;
|
|
24
|
+
overflow-y: auto;
|
|
25
|
+
background: #fff;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.no-margin-bottom {
|
|
30
|
+
margin-bottom: 0 !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.config-panel-form{
|
|
34
|
+
& > .border-bottom:last-child{
|
|
35
|
+
margin-bottom: 50px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.border-bottom {
|
|
40
|
+
margin-bottom: 6px;
|
|
41
|
+
padding: 0 10px 12px;
|
|
42
|
+
border-bottom: 1px solid @e9-color;
|
|
43
|
+
&.inner-bottom-box{
|
|
44
|
+
margin: 0 -10px -13px;
|
|
45
|
+
}
|
|
46
|
+
&.inner-bottom-box:not(:first-child) {
|
|
47
|
+
margin-top: 18px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.ant-form-item-with-help .ant-form-item-explain {
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
.ant-input,
|
|
54
|
+
.ant-input-number,
|
|
55
|
+
.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number,
|
|
56
|
+
.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:hover{
|
|
57
|
+
border-radius: 4px;
|
|
58
|
+
color: @black-color !important;
|
|
59
|
+
background: @f2-color !important;
|
|
60
|
+
}
|
|
61
|
+
.ant-picker,
|
|
62
|
+
.ant-picker:not([disabled]):hover,
|
|
63
|
+
.ant-picker-status-error.ant-picker, .ant-picker-status-error.ant-picker:not([disabled]):hover{
|
|
64
|
+
border-radius: 4px;
|
|
65
|
+
color: @black-color !important;
|
|
66
|
+
background: @f2-color !important;
|
|
67
|
+
}
|
|
68
|
+
.ant-form-item-has-error .ant-input-number:not([disabled]):hover,
|
|
69
|
+
.ant-form-item-has-error .ant-picker:not([disabled]):hover,
|
|
70
|
+
.ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector{
|
|
71
|
+
border-radius: 4px;
|
|
72
|
+
color: @black-color !important;
|
|
73
|
+
background: @f2-color !important;
|
|
74
|
+
}
|
|
75
|
+
.ant-select:not(.ant-select-customize-input) .ant-select-selector{
|
|
76
|
+
border-radius: 4px;
|
|
77
|
+
color: @black-color !important;
|
|
78
|
+
background: @f2-color !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.id-line{
|
|
82
|
+
margin-top: 5px;
|
|
83
|
+
text-align: right;
|
|
84
|
+
user-select: all;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.section-detail-select{
|
|
89
|
+
display: flex;
|
|
90
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
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
|
-
|
|
10
|
-
export
|
|
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
|
+
dragEnable: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const CanvasContent: React.FC<Props>;
|
|
11
|
+
export {};
|