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
package/.fatherrc.ts
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
alias: {
|
|
13
|
-
'@': './src',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
[
|
|
18
|
-
'babel-plugin-import',
|
|
19
|
-
{
|
|
20
|
-
libraryName: 'antd',
|
|
21
|
-
libraryDirectory: 'es',
|
|
22
|
-
style: true,
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
],
|
|
26
|
-
};
|
|
1
|
+
import { defineConfig } from 'father';
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
esm: {
|
|
5
|
+
output: 'es',
|
|
6
|
+
},
|
|
7
|
+
cjs: {
|
|
8
|
+
platform: 'browser',
|
|
9
|
+
output: 'lib',
|
|
10
|
+
},
|
|
11
|
+
});
|
package/.umirc.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { defineConfig } from 'dumi';
|
|
2
|
+
import WebpackChain from 'webpack-chain';
|
|
3
|
+
import fs from 'fs';
|
|
4
|
+
import path from 'path';
|
|
2
5
|
const { NODE_ENV } = process.env;
|
|
3
6
|
|
|
4
7
|
const basicBabelPlugin = [
|
|
@@ -26,4 +29,5 @@ export default defineConfig({
|
|
|
26
29
|
['en-US', 'English'],
|
|
27
30
|
],
|
|
28
31
|
extraBabelPlugins,
|
|
32
|
+
lessLoader: {},
|
|
29
33
|
});
|
package/README.md
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
# strategy-panel
|
|
2
|
-
|
|
3
|
-
## Getting Started
|
|
4
|
-
|
|
5
|
-
Install dependencies,
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
$ npm i
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
Start the dev server,
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
$ npm start
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Build documentation,
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
$ npm run docs:build
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Run test,
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
$ npm test
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Build library via `father-build`,
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
$ npm run build
|
|
33
|
-
```
|
|
1
|
+
# strategy-panel
|
|
2
|
+
|
|
3
|
+
## Getting Started
|
|
4
|
+
|
|
5
|
+
Install dependencies,
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
$ npm i
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Start the dev server,
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
$ npm start
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Build documentation,
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
$ npm run docs:build
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Run test,
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
$ npm test
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Build library via `father-build`,
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
$ npm run build
|
|
33
|
+
```
|
package/es/assets/decive.svg
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28px" height="28px" viewBox="0 0 28 28" version="1.1">
|
|
3
3
|
<title>设备管理 (2)</title>
|
|
4
4
|
<g id="全局样式" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.8">
|
|
5
5
|
<g id="Icons" transform="translate(-431.000000, -1228.000000)" fill="#323232" fill-rule="nonzero">
|
package/es/assets/hand.svg
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28px" height="
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28px" height="28px" viewBox="0 0 28 28" version="1.1">
|
|
3
3
|
<title>手动</title>
|
|
4
4
|
<g id="全局样式" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.8">
|
|
5
5
|
<g id="Icons" transform="translate(-582.000000, -1228.000000)" fill="#323232" fill-rule="nonzero">
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24.744" height="31.16" viewBox="0 0 24.744 31.16">
|
|
2
|
+
<defs>
|
|
3
|
+
<style>.a{fill:#595959;}</style>
|
|
4
|
+
</defs>
|
|
5
|
+
<path class="a" d="M46.413,18.491V16.044a5.769,5.769,0,0,0-1.6-4.286,5.734,5.734,0,0,0-4.189-1.57,5.251,5.251,0,0,0-3.955,1.6,5.925,5.925,0,0,0-1.505,4.255v2.446H33.975V15.118a5.507,5.507,0,0,1,.493-2.34,6.22,6.22,0,0,1,1.4-1.949,6.7,6.7,0,0,1,2.141-1.338A7.431,7.431,0,0,1,40.755,9a6.645,6.645,0,0,1,2.5.487,7.207,7.207,0,0,1,2.167,1.356,6.658,6.658,0,0,1,1.488,1.974,5.076,5.076,0,0,1,.524,2.3v3.373Z" transform="translate(-28.35 -7.51)"></path>
|
|
6
|
+
<path class="a" d="M33.245,0a8.872,8.872,0,0,0-3.291.6A8.147,8.147,0,0,0,27.34,2.233,7.665,7.665,0,0,0,25.6,4.648a7.026,7.026,0,0,0-.628,2.961v4.863h4.168V8.534a4.48,4.48,0,0,1,1.092-3.225,3.8,3.8,0,0,1,2.878-1.141,4.282,4.282,0,0,1,3.143,1.141,4.325,4.325,0,0,1,1.158,3.225v3.936h4V7.608a6.6,6.6,0,0,0-.678-2.961,8.107,8.107,0,0,0-1.819-2.415A8.656,8.656,0,0,0,36.3.6a8.087,8.087,0,0,0-3.06-.6" transform="translate(-20.84)"></path>
|
|
7
|
+
<path class="a" d="M21.764,90.293v9.458a1.457,1.457,0,0,1-.1.554,1.351,1.351,0,0,1-.266.429,1,1,0,0,1-.332.231,1.048,1.048,0,0,1-.427.074H3.937a.962.962,0,0,1-.388-.064.936.936,0,0,1-.3-.2.913.913,0,0,1-.186-.307,1.315,1.315,0,0,1-.081-.481V90.293H21.764m.8-2.98H2.15a2.047,2.047,0,0,0-1.522.645A2.128,2.128,0,0,0,0,89.5V99.982a4.273,4.273,0,0,0,.281,1.555,3.846,3.846,0,0,0,3.655,2.481H20.642a3.945,3.945,0,0,0,2.928-1.24,4.311,4.311,0,0,0,.86-1.356,4.412,4.412,0,0,0,.314-1.67V89.5a2.2,2.2,0,0,0-2.183-2.183" transform="translate(0 -72.858)"></path>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentsData: any[];
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
import { COMPONENTS_TYPE, COMMONLY_USED, SCENE_DISPLAY, SIGN_OPERATION, MOTION_OPERATION } from "
|
|
1
|
+
import { COMPONENTS_TYPE, COMMONLY_USED, SCENE_DISPLAY, SIGN_OPERATION, MOTION_OPERATION } from "../../../../packages/graph-canvas/node-types";
|
|
2
|
+
import variate from "../../../../assets/variate.svg";
|
|
3
|
+
import lock from "../../../../assets/lock.svg";
|
|
4
|
+
import device from "../../../../assets/decive.svg";
|
|
5
|
+
import time from "../../../../assets/time.svg";
|
|
6
|
+
import hand from "../../../../assets/hand.svg";
|
|
7
|
+
import relation from "../../../../assets/relation.svg";
|
|
8
|
+
import logical from "../../../../assets/logical.svg";
|
|
9
|
+
import condition from "../../../../assets/condition.svg";
|
|
10
|
+
import alarm from "../../../../assets/alarm.svg";
|
|
11
|
+
import notice from "../../../../assets/notice.svg";
|
|
12
|
+
import order from "../../../../assets/order.svg";
|
|
13
|
+
import control from "../../../../assets/control.svg";
|
|
2
14
|
export var componentsData = [{
|
|
3
15
|
id: COMPONENTS_TYPE.COMMONLY_USED,
|
|
4
16
|
name: '通用组件',
|
|
@@ -6,7 +18,11 @@ export var componentsData = [{
|
|
|
6
18
|
children: [{
|
|
7
19
|
id: COMMONLY_USED.VARIATE,
|
|
8
20
|
name: '变量',
|
|
9
|
-
imgUrl:
|
|
21
|
+
imgUrl: variate
|
|
22
|
+
}, {
|
|
23
|
+
id: COMMONLY_USED.LOCKED,
|
|
24
|
+
name: '服务锁定',
|
|
25
|
+
imgUrl: lock
|
|
10
26
|
}]
|
|
11
27
|
}, {
|
|
12
28
|
id: COMPONENTS_TYPE.SCENE_DISPLAY,
|
|
@@ -15,16 +31,16 @@ export var componentsData = [{
|
|
|
15
31
|
children: [{
|
|
16
32
|
id: SCENE_DISPLAY.EQUIPMENT,
|
|
17
33
|
name: '设备触发',
|
|
18
|
-
imgUrl:
|
|
34
|
+
imgUrl: device,
|
|
19
35
|
number: 1
|
|
20
36
|
}, {
|
|
21
37
|
id: SCENE_DISPLAY.TIME,
|
|
22
38
|
name: '时间触发',
|
|
23
|
-
imgUrl:
|
|
39
|
+
imgUrl: time
|
|
24
40
|
}, {
|
|
25
41
|
id: SCENE_DISPLAY.MANUAL,
|
|
26
42
|
name: '手动按钮',
|
|
27
|
-
imgUrl:
|
|
43
|
+
imgUrl: hand
|
|
28
44
|
}]
|
|
29
45
|
}, {
|
|
30
46
|
id: COMPONENTS_TYPE.SIGN_OPERATION,
|
|
@@ -33,15 +49,15 @@ export var componentsData = [{
|
|
|
33
49
|
children: [{
|
|
34
50
|
id: SIGN_OPERATION.RELATION,
|
|
35
51
|
name: '关系运算',
|
|
36
|
-
imgUrl:
|
|
52
|
+
imgUrl: relation
|
|
37
53
|
}, {
|
|
38
54
|
id: SIGN_OPERATION.LOGICAL,
|
|
39
55
|
name: '逻辑运算',
|
|
40
|
-
imgUrl:
|
|
56
|
+
imgUrl: logical
|
|
41
57
|
}, {
|
|
42
58
|
id: SIGN_OPERATION.CONDITION,
|
|
43
59
|
name: '条件判断',
|
|
44
|
-
imgUrl:
|
|
60
|
+
imgUrl: condition
|
|
45
61
|
}]
|
|
46
62
|
}, {
|
|
47
63
|
id: COMPONENTS_TYPE.MOTION_OPERATION,
|
|
@@ -50,19 +66,19 @@ export var componentsData = [{
|
|
|
50
66
|
children: [{
|
|
51
67
|
id: MOTION_OPERATION.ALARM,
|
|
52
68
|
name: '报警',
|
|
53
|
-
imgUrl:
|
|
69
|
+
imgUrl: alarm
|
|
54
70
|
}, {
|
|
55
71
|
id: MOTION_OPERATION.NOTICE,
|
|
56
72
|
name: '通知',
|
|
57
|
-
imgUrl:
|
|
73
|
+
imgUrl: notice
|
|
58
74
|
}, {
|
|
59
75
|
id: MOTION_OPERATION.ORDER,
|
|
60
76
|
name: '派发工单',
|
|
61
|
-
imgUrl:
|
|
77
|
+
imgUrl: order
|
|
62
78
|
}, {
|
|
63
79
|
id: MOTION_OPERATION.CONTROL,
|
|
64
80
|
name: '远程控制',
|
|
65
|
-
imgUrl:
|
|
81
|
+
imgUrl: control
|
|
66
82
|
}]
|
|
67
83
|
}, {
|
|
68
84
|
id: COMPONENTS_TYPE.APPLICATION,
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface paneDataItem {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
isDir?: boolean;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface paneDataItem {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
isDir?: boolean;
|
|
7
|
+
imgUrl?: string;
|
|
8
|
+
number?: number;
|
|
9
|
+
applicationImgUrl?: string;
|
|
10
|
+
children?: paneDataItem[];
|
|
11
|
+
}
|
|
12
|
+
interface Props {
|
|
13
|
+
sortNum?: number;
|
|
14
|
+
panelData?: paneDataItem[];
|
|
15
|
+
}
|
|
16
|
+
declare const CategoryTree: React.FC<Props>;
|
|
17
|
+
export default CategoryTree;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import "antd/es/col/style";
|
|
2
|
-
import _Col from "antd/es/col";
|
|
3
|
-
import "antd/es/row/style";
|
|
4
|
-
import _Row from "antd/es/row";
|
|
5
|
-
import "antd/es/collapse/style";
|
|
6
|
-
import _Collapse from "antd/es/collapse";
|
|
7
|
-
|
|
8
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; }
|
|
9
2
|
|
|
10
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; }
|
|
@@ -12,10 +5,11 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12
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; }
|
|
13
6
|
|
|
14
7
|
import React from 'react';
|
|
15
|
-
import {
|
|
8
|
+
import { Col, Collapse, Row } from 'antd';
|
|
9
|
+
import { componentsData } from "./category-type";
|
|
16
10
|
import { NodeTitle } from "./node-title";
|
|
17
11
|
import "./index.less";
|
|
18
|
-
var Panel =
|
|
12
|
+
var Panel = Collapse.Panel;
|
|
19
13
|
|
|
20
14
|
var getComponentsData = function getComponentsData(data) {
|
|
21
15
|
return data === null || data === void 0 ? void 0 : data.reduce(function (pre, next) {
|
|
@@ -70,22 +64,28 @@ var CategoryTree = function CategoryTree(props) {
|
|
|
70
64
|
};
|
|
71
65
|
|
|
72
66
|
var currentPanelData = getComponentsData(panelData);
|
|
67
|
+
var omitEmptyData = currentPanelData === null || currentPanelData === void 0 ? void 0 : currentPanelData.filter(function (item) {
|
|
68
|
+
var _item$children;
|
|
69
|
+
|
|
70
|
+
return (item === null || item === void 0 ? void 0 : (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length) > 0;
|
|
71
|
+
});
|
|
73
72
|
var defaultActiveKey = currentPanelData === null || currentPanelData === void 0 ? void 0 : currentPanelData.map(function (item) {
|
|
74
73
|
return item === null || item === void 0 ? void 0 : item.id;
|
|
75
74
|
});
|
|
75
|
+
console.log('xxxxcurrentPanelData', currentPanelData, componentsData);
|
|
76
76
|
return /*#__PURE__*/React.createElement("div", {
|
|
77
77
|
className: "category-tree-list"
|
|
78
|
-
}, /*#__PURE__*/React.createElement(
|
|
78
|
+
}, /*#__PURE__*/React.createElement(Collapse, {
|
|
79
79
|
className: "category-tree-collapse",
|
|
80
80
|
defaultActiveKey: defaultActiveKey
|
|
81
|
-
},
|
|
82
|
-
var _item$
|
|
81
|
+
}, omitEmptyData === null || omitEmptyData === void 0 ? void 0 : omitEmptyData.map(function (item) {
|
|
82
|
+
var _item$children2, _item$children3;
|
|
83
83
|
|
|
84
84
|
return /*#__PURE__*/React.createElement(Panel, {
|
|
85
85
|
header: item.name,
|
|
86
86
|
key: item.id
|
|
87
|
-
}, /*#__PURE__*/React.createElement(
|
|
88
|
-
return /*#__PURE__*/React.createElement(
|
|
87
|
+
}, /*#__PURE__*/React.createElement(Row, null, item !== null && item !== void 0 && (_item$children2 = item.children) !== null && _item$children2 !== void 0 && _item$children2.length ? item === null || item === void 0 ? void 0 : (_item$children3 = item.children) === null || _item$children3 === void 0 ? void 0 : _item$children3.map(function (child, index) {
|
|
88
|
+
return /*#__PURE__*/React.createElement(Col, {
|
|
89
89
|
key: child.id,
|
|
90
90
|
span: 8
|
|
91
91
|
}, /*#__PURE__*/React.createElement(NodeTitle, {
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
@import (reference) '
|
|
2
|
-
|
|
3
|
-
.category-tree-list {
|
|
4
|
-
height: 100%;
|
|
5
|
-
overflow-x: hidden;
|
|
6
|
-
overflow-y: auto;
|
|
7
|
-
background: #fff;
|
|
8
|
-
|
|
9
|
-
.category-tree-collapse {
|
|
10
|
-
border-color: #DCDCDC;
|
|
11
|
-
|
|
12
|
-
.ant-collapse-header {
|
|
13
|
-
height: 36px;
|
|
14
|
-
font-size: 14px;
|
|
15
|
-
line-height: 1 !important;
|
|
16
|
-
background: @light-gray-bg;
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
.ant-collapse-header > div {
|
|
20
|
-
position: absolute;
|
|
21
|
-
right: 0;
|
|
22
|
-
}
|
|
23
|
-
.ant-collapse-header > div > span {
|
|
24
|
-
color: rgba(142, 142, 142, 0.52);
|
|
25
|
-
}
|
|
26
|
-
.ant-collapse-content > .ant-collapse-content-box {
|
|
27
|
-
padding-bottom: 5px;
|
|
28
|
-
}
|
|
29
|
-
.ant-collapse-content {
|
|
30
|
-
border-top: 1px solid #DCDCDC;
|
|
31
|
-
}
|
|
32
|
-
.ant-collapse-item {
|
|
33
|
-
border-bottom: 1px solid #DCDCDC;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
@import (reference) '../../../../style/theme-light';
|
|
2
|
+
|
|
3
|
+
.category-tree-list {
|
|
4
|
+
height: 100%;
|
|
5
|
+
overflow-x: hidden;
|
|
6
|
+
overflow-y: auto;
|
|
7
|
+
background: #fff;
|
|
8
|
+
|
|
9
|
+
.category-tree-collapse {
|
|
10
|
+
border-color: #DCDCDC;
|
|
11
|
+
|
|
12
|
+
.ant-collapse-header {
|
|
13
|
+
height: 36px;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
line-height: 1 !important;
|
|
16
|
+
background: @light-gray-bg;
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
.ant-collapse-header > div {
|
|
20
|
+
position: absolute;
|
|
21
|
+
right: 0;
|
|
22
|
+
}
|
|
23
|
+
.ant-collapse-header > div > span {
|
|
24
|
+
color: rgba(142, 142, 142, 0.52);
|
|
25
|
+
}
|
|
26
|
+
.ant-collapse-content > .ant-collapse-content-box {
|
|
27
|
+
padding-bottom: 5px;
|
|
28
|
+
}
|
|
29
|
+
.ant-collapse-content {
|
|
30
|
+
border-top: 1px solid #DCDCDC;
|
|
31
|
+
}
|
|
32
|
+
.ant-collapse-item {
|
|
33
|
+
border-bottom: 1px solid #DCDCDC;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { ConnectDragPreview, ConnectDragSource } from 'react-dnd';
|
|
2
|
-
import './node-title.less';
|
|
3
|
-
interface Props {
|
|
4
|
-
node: any;
|
|
5
|
-
isRowFirst: boolean;
|
|
6
|
-
sortIndex: number;
|
|
7
|
-
isDragging: boolean;
|
|
8
|
-
connectDragSource: ConnectDragSource;
|
|
9
|
-
connectDragPreview: ConnectDragPreview;
|
|
10
|
-
}
|
|
11
|
-
export declare const NodeTitle: import("react-dnd").DndComponentClass<(props: Props) => JSX.Element, import("react-dnd").Omit<Props, "connectDragSource" | "connectDragPreview" | "isDragging">>;
|
|
12
|
-
export {};
|
|
1
|
+
import type { ConnectDragPreview, ConnectDragSource } from 'react-dnd';
|
|
2
|
+
import './node-title.less';
|
|
3
|
+
interface Props {
|
|
4
|
+
node: any;
|
|
5
|
+
isRowFirst: boolean;
|
|
6
|
+
sortIndex: number;
|
|
7
|
+
isDragging: boolean;
|
|
8
|
+
connectDragSource: ConnectDragSource;
|
|
9
|
+
connectDragPreview: ConnectDragPreview;
|
|
10
|
+
}
|
|
11
|
+
export declare const NodeTitle: import("react-dnd").DndComponentClass<(props: Props) => JSX.Element, import("react-dnd").Omit<Props, "connectDragSource" | "connectDragPreview" | "isDragging">>;
|
|
12
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DragSource } from 'react-dnd';
|
|
3
3
|
import marked from 'marked';
|
|
4
|
-
import { DRAGGABLE_ALGO_COMPONENT } from "
|
|
4
|
+
import { DRAGGABLE_ALGO_COMPONENT } from "../../../../packages/graph-common/graph";
|
|
5
|
+
import application from "../../../../assets/application.svg";
|
|
5
6
|
import "./node-title.less";
|
|
6
7
|
marked.setOptions({
|
|
7
8
|
gfm: true,
|
|
@@ -18,7 +19,8 @@ var InnerNodeTitle = function InnerNodeTitle(props) {
|
|
|
18
19
|
var _node$name = node.name,
|
|
19
20
|
name = _node$name === void 0 ? '' : _node$name,
|
|
20
21
|
isDir = node.isDir,
|
|
21
|
-
imgUrl = node.imgUrl;
|
|
22
|
+
imgUrl = node.imgUrl;
|
|
23
|
+
console.log('InnerNodeTitlexxxx', node); // 文件夹
|
|
22
24
|
|
|
23
25
|
if (isDir) {
|
|
24
26
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -36,7 +38,7 @@ var InnerNodeTitle = function InnerNodeTitle(props) {
|
|
|
36
38
|
}, /*#__PURE__*/React.createElement("img", {
|
|
37
39
|
alt: name,
|
|
38
40
|
className: "node-icon",
|
|
39
|
-
src: imgUrl ||
|
|
41
|
+
src: imgUrl || application
|
|
40
42
|
})))), /*#__PURE__*/React.createElement("span", {
|
|
41
43
|
className: "label"
|
|
42
44
|
}, name));
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { paneDataItem } from './category-tree';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface Props {
|
|
5
|
-
/**
|
|
6
|
-
* @description classname
|
|
7
|
-
* @description.zh-CN classname
|
|
8
|
-
*/
|
|
9
|
-
className?: string;
|
|
10
|
-
/**
|
|
11
|
-
* @description available
|
|
12
|
-
* @description.zh-CN 菜单数据源头
|
|
13
|
-
*/
|
|
14
|
-
panelData?: paneDataItem[];
|
|
15
|
-
}
|
|
16
|
-
declare const ComponentTreePanel: React.FC<Props>;
|
|
17
|
-
export default ComponentTreePanel;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { paneDataItem } from './category-tree';
|
|
3
|
+
import './index.less';
|
|
4
|
+
interface Props {
|
|
5
|
+
/**
|
|
6
|
+
* @description classname
|
|
7
|
+
* @description.zh-CN classname
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @description available
|
|
12
|
+
* @description.zh-CN 菜单数据源头
|
|
13
|
+
*/
|
|
14
|
+
panelData?: paneDataItem[];
|
|
15
|
+
}
|
|
16
|
+
declare const ComponentTreePanel: React.FC<Props>;
|
|
17
|
+
export default ComponentTreePanel;
|
|
@@ -7,6 +7,7 @@ var ComponentTreePanel = function ComponentTreePanel(props) {
|
|
|
7
7
|
var className = props.className,
|
|
8
8
|
_props$panelData = props.panelData,
|
|
9
9
|
panelData = _props$panelData === void 0 ? [] : _props$panelData;
|
|
10
|
+
console.log('ComponentTreePanelxxxxxxxx', panelData);
|
|
10
11
|
return /*#__PURE__*/React.createElement("div", {
|
|
11
12
|
className: classNames(className, 'node-source-tree-container', 'node-source-tree-shadow')
|
|
12
13
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type sourceType = 'device_attr' | 'device_event' | 'model_attr' | 'model_event';
|
|
3
|
-
declare type relationItem = {
|
|
4
|
-
/**
|
|
5
|
-
* @description type
|
|
6
|
-
* @description.zh-CN 类型:设备属性、设备事件、模式属性、模型事件
|
|
7
|
-
*/
|
|
8
|
-
type: 'device' | 'model';
|
|
9
|
-
/**
|
|
10
|
-
* @description type
|
|
11
|
-
* @description.zh-CN 类型:设备属性、设备事件、模式属性、模型事件
|
|
12
|
-
*/
|
|
13
|
-
source: sourceType;
|
|
14
|
-
/**
|
|
15
|
-
* @description targetId
|
|
16
|
-
* @description.zh-CN 设备id/模型id
|
|
17
|
-
*/
|
|
18
|
-
targetId: number | string;
|
|
19
|
-
/**
|
|
20
|
-
* @description targetName
|
|
21
|
-
* @description.zh-CN 设备名称/模型名称
|
|
22
|
-
*/
|
|
23
|
-
targetName: string;
|
|
24
|
-
/**
|
|
25
|
-
* @description modelId
|
|
26
|
-
* @description.zh-CN 属性id/事件id
|
|
27
|
-
*/
|
|
28
|
-
modelId: number | string;
|
|
29
|
-
/**
|
|
30
|
-
* @description modelName
|
|
31
|
-
* @description.zh-CN 属性名称/事件名称
|
|
32
|
-
*/
|
|
33
|
-
modelName: string;
|
|
34
|
-
};
|
|
35
|
-
interface Props {
|
|
36
|
-
defaultValue?: 'fixed' | 'variable';
|
|
37
|
-
relationData: {
|
|
38
|
-
[key: string]: {
|
|
39
|
-
meterAttrList?: relationItem[];
|
|
40
|
-
meterEventList?: relationItem[];
|
|
41
|
-
meterModelAttrs?: relationItem[];
|
|
42
|
-
meterModelEvents?: relationItem[];
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
value?: any;
|
|
46
|
-
onChange?: (value: any) => void;
|
|
47
|
-
}
|
|
48
|
-
declare const DataOrigin: React.FC<Props>;
|
|
49
|
-
export default DataOrigin;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type sourceType = 'device_attr' | 'device_event' | 'model_attr' | 'model_event';
|
|
3
|
+
declare type relationItem = {
|
|
4
|
+
/**
|
|
5
|
+
* @description type
|
|
6
|
+
* @description.zh-CN 类型:设备属性、设备事件、模式属性、模型事件
|
|
7
|
+
*/
|
|
8
|
+
type: 'device' | 'model';
|
|
9
|
+
/**
|
|
10
|
+
* @description type
|
|
11
|
+
* @description.zh-CN 类型:设备属性、设备事件、模式属性、模型事件
|
|
12
|
+
*/
|
|
13
|
+
source: sourceType;
|
|
14
|
+
/**
|
|
15
|
+
* @description targetId
|
|
16
|
+
* @description.zh-CN 设备id/模型id
|
|
17
|
+
*/
|
|
18
|
+
targetId: number | string;
|
|
19
|
+
/**
|
|
20
|
+
* @description targetName
|
|
21
|
+
* @description.zh-CN 设备名称/模型名称
|
|
22
|
+
*/
|
|
23
|
+
targetName: string;
|
|
24
|
+
/**
|
|
25
|
+
* @description modelId
|
|
26
|
+
* @description.zh-CN 属性id/事件id
|
|
27
|
+
*/
|
|
28
|
+
modelId: number | string;
|
|
29
|
+
/**
|
|
30
|
+
* @description modelName
|
|
31
|
+
* @description.zh-CN 属性名称/事件名称
|
|
32
|
+
*/
|
|
33
|
+
modelName: string;
|
|
34
|
+
};
|
|
35
|
+
interface Props {
|
|
36
|
+
defaultValue?: 'fixed' | 'variable';
|
|
37
|
+
relationData: {
|
|
38
|
+
[key: string]: {
|
|
39
|
+
meterAttrList?: relationItem[];
|
|
40
|
+
meterEventList?: relationItem[];
|
|
41
|
+
meterModelAttrs?: relationItem[];
|
|
42
|
+
meterModelEvents?: relationItem[];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
value?: any;
|
|
46
|
+
onChange?: (value: any) => void;
|
|
47
|
+
}
|
|
48
|
+
declare const DataOrigin: React.FC<Props>;
|
|
49
|
+
export default DataOrigin;
|