ronds-metadata 1.1.11 → 1.1.14
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/es/comps/DynamicPorts/comps/ContextMenu.js +2 -2
- package/es/comps/DynamicPorts/comps/{ContextMenu.css → ContextMenu.less} +0 -0
- package/es/comps/DynamicPorts/comps/DragNode.js +1 -1
- package/es/comps/DynamicPorts/comps/GraphHandler/index.js +1 -1
- package/es/comps/DynamicPorts/comps/GraphHandler/{index.css → index.less} +17 -10
- package/es/comps/DynamicPorts/comps/NodeElement.js +1 -1
- package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.js +1 -1
- package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/{index.css → index.less} +0 -0
- package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.js +1 -1
- package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.less +40 -0
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.js +1 -1
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.less +42 -0
- package/es/comps/DynamicPorts/comps/shape/edge.js +1 -1
- package/es/comps/DynamicPorts/comps/shape/edge.less +8 -0
- package/es/comps/DynamicPorts/graph.d.ts +1 -0
- package/es/comps/DynamicPorts/graph.js +71 -0
- package/es/comps/DynamicPorts/index.js +1 -1
- package/es/comps/DynamicPorts/index.less +198 -0
- package/es/comps/Editable/comps/EditableCell.js +1 -1
- package/es/comps/Editable/comps/EditableHeardCell.js +1 -1
- package/es/comps/Editable/comps/Texty.js +1 -1
- package/es/comps/Editable/comps/{Texty.css → Texty.less} +4 -0
- package/es/comps/Editable/comps/{index.css → index.less} +5 -0
- package/es/comps/Editable/index.js +1 -1
- package/es/comps/Editable/index.less +97 -0
- package/es/comps/JsonEdit/index.js +1 -1
- package/es/comps/JsonEdit/{index.css → index.less} +6 -0
- package/es/comps/JsonView/index.js +1 -1
- package/es/comps/JsonView/{index.css → index.less} +41 -41
- package/es/comps/MdEdit/index.js +1 -1
- package/es/comps/MdEdit/{index.css → index.less} +0 -0
- package/es/comps/MetadataEdit/index.js +1 -1
- package/es/comps/MetadataEdit/index.less +10 -0
- package/es/comps/MetadataEdit/type.d.ts +20 -20
- package/es/comps/MetadataEditV2/index.js +1 -1
- package/es/comps/MetadataEditV2/index.less +11 -0
- package/es/comps/MetadataForm/HOC/index.js +1 -1
- package/es/comps/MetadataForm/HOC/index.less +25 -0
- package/es/comps/MetadataForm/index.d.ts +1 -1
- package/es/comps/MetadataForm/index.js +1 -1
- package/es/comps/MetadataForm/index.less +11 -0
- package/es/comps/MetadataForm/interface.d.ts +1 -1
- package/es/comps/MetadataForm/interface.js +1 -1
- package/es/comps/MetadataForm/utils.js +15 -2
- package/es/framework/graph/index.d.ts +7 -0
- package/es/framework/graph/index.js +101 -11
- package/es/framework/graph/{index.css → index.less} +2 -0
- package/es/framework/libs/iconfont/iconfont.css +19 -3
- package/es/framework/libs/iconfont/iconfont.ttf +0 -0
- package/es/framework/libs/iconfont/iconfont.woff +0 -0
- package/es/framework/libs/iconfont/iconfont.woff2 +0 -0
- package/es/index.js +1 -1
- package/es/theme.less +69 -0
- package/package.json +87 -86
- package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.css +0 -21
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.css +0 -23
- package/es/comps/DynamicPorts/comps/shape/edge.css +0 -4
- package/es/comps/DynamicPorts/index.css +0 -169
- package/es/comps/Editable/index.css +0 -75
- package/es/comps/MetadataEdit/index.css +0 -10
- package/es/comps/MetadataEditV2/index.css +0 -11
- package/es/comps/MetadataForm/HOC/index.css +0 -25
- package/es/comps/MetadataForm/index.css +0 -9
- package/es/theme.css +0 -56
@@ -5,11 +5,11 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
* @Date: 2022-05-27 09:56:39
|
6
6
|
* @LastEditTime: 2022-05-27 16:16:25
|
7
7
|
*/
|
8
|
-
import useObservable from '@/framework/rxjs-hooks/useObservable';
|
9
8
|
import React from 'react';
|
10
9
|
import NodeContextMenu from './contextMenu/NodeContextMenu';
|
11
|
-
import
|
10
|
+
import './ContextMenu.less';
|
12
11
|
import { EdgeContextMenu } from './contextMenu/EdgeContextMenu';
|
12
|
+
import useObservable from '../../../framework/rxjs-hooks/useObservable';
|
13
13
|
|
14
14
|
var ContextMenu = function ContextMenu(props) {
|
15
15
|
var _graph$factory$;
|
File without changes
|
@@ -9,7 +9,7 @@ import { DragSource } from 'react-dnd';
|
|
9
9
|
import { GlobalOutlined } from '@ant-design/icons';
|
10
10
|
import Icon from '../../../comps/Icons';
|
11
11
|
import { DRAGGABLE_COMPONENT } from '../constant';
|
12
|
-
import
|
12
|
+
import '../index.less';
|
13
13
|
|
14
14
|
var InnerNodeTitle = function InnerNodeTitle(props) {
|
15
15
|
var data = props.data,
|
@@ -9,7 +9,7 @@ import _Popover from "antd/es/popover";
|
|
9
9
|
import React from 'react';
|
10
10
|
import { CompressOutlined, OneToOneOutlined, ZoomInOutlined, ZoomOutOutlined } from '@ant-design/icons';
|
11
11
|
import classNames from 'classnames';
|
12
|
-
import
|
12
|
+
import './index.less';
|
13
13
|
import { tr } from '../../../../framework/locale';
|
14
14
|
export var GraphHandler = function GraphHandler(props) {
|
15
15
|
var className = props.className,
|
@@ -13,15 +13,22 @@
|
|
13
13
|
border: 1px solid rgba(0, 0, 0, 0.04);
|
14
14
|
border-radius: 3px;
|
15
15
|
box-shadow: 0 0 20px rgba(0, 0, 0, 0.01);
|
16
|
+
|
17
|
+
.item {
|
18
|
+
text-align: center;
|
19
|
+
cursor: pointer;
|
20
|
+
|
21
|
+
&:hover {
|
22
|
+
color: #000;
|
23
|
+
background-color: #e0e0e0;
|
24
|
+
}
|
25
|
+
}
|
16
26
|
}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
.popover :global .ant-popover-inner-content {
|
26
|
-
padding: 3px 8px;
|
27
|
+
|
28
|
+
.popover {
|
29
|
+
:global {
|
30
|
+
.ant-popover-inner-content {
|
31
|
+
padding: 3px 8px;
|
32
|
+
}
|
33
|
+
}
|
27
34
|
}
|
@@ -6,7 +6,7 @@ import React from "react";
|
|
6
6
|
* @LastEditTime: 2022-05-28 11:09:22
|
7
7
|
*/
|
8
8
|
import { GlobalOutlined } from '@ant-design/icons';
|
9
|
-
import
|
9
|
+
import '../index.less';
|
10
10
|
import Icon from '../../../comps/Icons';
|
11
11
|
|
12
12
|
var NodeElement = function NodeElement(props) {
|
@@ -10,7 +10,7 @@ import React, { useCallback, useRef } from 'react';
|
|
10
10
|
import { DeleteOutlined } from '@ant-design/icons';
|
11
11
|
import { useClickAway } from 'ahooks';
|
12
12
|
import { graphPointToOffsetPoint } from '../../../utils';
|
13
|
-
import
|
13
|
+
import './index.less';
|
14
14
|
import { tr } from '../../../../../framework/locale';
|
15
15
|
export var EdgeContextMenu = function EdgeContextMenu(props) {
|
16
16
|
var graph = props.graph,
|
File without changes
|
@@ -11,7 +11,7 @@ import { ReloadOutlined } from '@ant-design/icons';
|
|
11
11
|
import { useClickAway } from 'ahooks';
|
12
12
|
import { graphPointToOffsetPoint } from '../../../utils';
|
13
13
|
import { tr } from '../../../../../framework/locale';
|
14
|
-
import
|
14
|
+
import './index.less';
|
15
15
|
export var GraphContextMenu = function GraphContextMenu(props) {
|
16
16
|
var graph = props.graph,
|
17
17
|
data = props.data;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
.graphContextMenu {
|
2
|
+
position: absolute;
|
3
|
+
z-index: 1;
|
4
|
+
background-color: #fff;
|
5
|
+
}
|
6
|
+
|
7
|
+
.loadExperimentModal {
|
8
|
+
:global {
|
9
|
+
.ant-modal-title {
|
10
|
+
font-size: 14px;
|
11
|
+
}
|
12
|
+
|
13
|
+
.ant-btn {
|
14
|
+
font-size: 12px;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.versionTable {
|
19
|
+
:global {
|
20
|
+
.ant-table.ant-table-small {
|
21
|
+
font-size: 12px;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.operations {
|
26
|
+
:global {
|
27
|
+
.ant-btn {
|
28
|
+
&:first-of-type {
|
29
|
+
padding-left: 0;
|
30
|
+
border-left: 0;
|
31
|
+
}
|
32
|
+
|
33
|
+
&.ant-btn-sm {
|
34
|
+
font-size: 12px;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
7
7
|
import { useClickAway } from 'ahooks';
|
8
8
|
import { graphPointToOffsetPoint } from '../../../utils';
|
9
9
|
import { tr } from '../../../../../framework/locale';
|
10
|
-
import
|
10
|
+
import './index.less';
|
11
11
|
|
12
12
|
var NodeContextMenu = function NodeContextMenu(props) {
|
13
13
|
var graph = props.graph,
|
@@ -0,0 +1,42 @@
|
|
1
|
+
.graphContextMenu {
|
2
|
+
position: absolute;
|
3
|
+
z-index: 1;
|
4
|
+
width: 100px;
|
5
|
+
background-color: #fff;
|
6
|
+
box-shadow: 0 2px 10px rgb(0 0 0 1);
|
7
|
+
}
|
8
|
+
|
9
|
+
.loadExperimentModal {
|
10
|
+
:global {
|
11
|
+
.ant-modal-title {
|
12
|
+
font-size: 14px;
|
13
|
+
}
|
14
|
+
|
15
|
+
.ant-btn {
|
16
|
+
font-size: 12px;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
.versionTable {
|
21
|
+
:global {
|
22
|
+
.ant-table.ant-table-small {
|
23
|
+
font-size: 12px;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.operations {
|
28
|
+
:global {
|
29
|
+
.ant-btn {
|
30
|
+
&:first-of-type {
|
31
|
+
padding-left: 0;
|
32
|
+
border-left: 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
&.ant-btn-sm {
|
36
|
+
font-size: 12px;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
@@ -9,7 +9,7 @@ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
9
9
|
* @LastEditTime: 2022-05-24 10:43:18
|
10
10
|
*/
|
11
11
|
import { Shape, Edge } from '@antv/x6';
|
12
|
-
import
|
12
|
+
import './edge.less';
|
13
13
|
export var BaseEdge = /*#__PURE__*/function (_Shape$Edge) {
|
14
14
|
_inherits(BaseEdge, _Shape$Edge);
|
15
15
|
|
@@ -54,6 +54,7 @@ declare class DPGraph extends GraphCore<BaseNode, BaseEdge> {
|
|
54
54
|
}): void;
|
55
55
|
onContextMenu(data: ContextMenuInfo): any;
|
56
56
|
clearContextMenuInfo: () => void;
|
57
|
+
onMoveNodes(movedNodes: any[]): Promise<void>;
|
57
58
|
dispose(): void;
|
58
59
|
}
|
59
60
|
export declare let gDPGraph: DPGraph;
|
@@ -16,6 +16,7 @@ import React from 'react';
|
|
16
16
|
import ReactDOM from 'react-dom';
|
17
17
|
import { BehaviorSubject } from 'rxjs/internal/BehaviorSubject';
|
18
18
|
import { filter, take } from 'rxjs/operators';
|
19
|
+
import { round } from 'lodash-es';
|
19
20
|
import { GraphCore } from '../../framework/graph';
|
20
21
|
import NodeElement from './comps/NodeElement';
|
21
22
|
import { DPEdge } from './comps/shape/edge';
|
@@ -559,6 +560,76 @@ var DPGraph = /*#__PURE__*/function (_GraphCore) {
|
|
559
560
|
this.factory$.contextMenuInfo.next(data);
|
560
561
|
} // 清空右键菜单信息
|
561
562
|
|
563
|
+
}, {
|
564
|
+
key: "onMoveNodes",
|
565
|
+
value: function () {
|
566
|
+
var _onMoveNodes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(movedNodes) {
|
567
|
+
var _this2 = this;
|
568
|
+
|
569
|
+
var targetNodes, newPos, oldGraph, newGraph;
|
570
|
+
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
571
|
+
while (1) {
|
572
|
+
switch (_context6.prev = _context6.next) {
|
573
|
+
case 0:
|
574
|
+
targetNodes = movedNodes.filter(function (arg) {
|
575
|
+
var node = arg.node;
|
576
|
+
return !node.isGroup();
|
577
|
+
});
|
578
|
+
|
579
|
+
if (targetNodes === null || targetNodes === void 0 ? void 0 : targetNodes.length) {
|
580
|
+
newPos = targetNodes.map(function (moveNode) {
|
581
|
+
var current = moveNode.current,
|
582
|
+
node = moveNode.node;
|
583
|
+
var x = current.x,
|
584
|
+
y = current.y;
|
585
|
+
var id = node.id;
|
586
|
+
|
587
|
+
_this2.updateNodeById(id, function (node) {
|
588
|
+
node.setData({
|
589
|
+
x: x,
|
590
|
+
y: y
|
591
|
+
});
|
592
|
+
});
|
593
|
+
|
594
|
+
return {
|
595
|
+
nodeInstanceId: id,
|
596
|
+
posX: round(x),
|
597
|
+
posY: round(y)
|
598
|
+
};
|
599
|
+
});
|
600
|
+
oldGraph = this.factory$.dpGraph.getValue();
|
601
|
+
newGraph = produce(oldGraph, function (nextGraph) {
|
602
|
+
newPos.forEach(function (position) {
|
603
|
+
var nodeInstanceId = position.nodeInstanceId,
|
604
|
+
posX = position.posX,
|
605
|
+
posY = position.posY;
|
606
|
+
var matchNode = nextGraph.nodes.find(function (item) {
|
607
|
+
return item.id.toString() === nodeInstanceId.toString();
|
608
|
+
});
|
609
|
+
|
610
|
+
if (matchNode) {
|
611
|
+
matchNode.x = posX;
|
612
|
+
matchNode.y = posY;
|
613
|
+
}
|
614
|
+
});
|
615
|
+
});
|
616
|
+
this.factory$.dpGraph.next(newGraph);
|
617
|
+
}
|
618
|
+
|
619
|
+
case 2:
|
620
|
+
case "end":
|
621
|
+
return _context6.stop();
|
622
|
+
}
|
623
|
+
}
|
624
|
+
}, _callee6, this);
|
625
|
+
}));
|
626
|
+
|
627
|
+
function onMoveNodes(_x4) {
|
628
|
+
return _onMoveNodes.apply(this, arguments);
|
629
|
+
}
|
630
|
+
|
631
|
+
return onMoveNodes;
|
632
|
+
}()
|
562
633
|
}, {
|
563
634
|
key: "dispose",
|
564
635
|
value: function dispose() {
|
@@ -9,7 +9,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
9
9
|
import React from 'react';
|
10
10
|
import { filter } from 'rxjs';
|
11
11
|
import { useDrop } from 'react-dnd';
|
12
|
-
import
|
12
|
+
import './index.less';
|
13
13
|
import './comps/shape/connector';
|
14
14
|
import { useDPGraph, useUnmountDPGraph } from './graph';
|
15
15
|
import { DRAGGABLE_COMPONENT, DRAGGABLE_MODEL } from './constant';
|
@@ -0,0 +1,198 @@
|
|
1
|
+
.node-element {
|
2
|
+
display: flex;
|
3
|
+
align-items: center;
|
4
|
+
box-sizing: border-box;
|
5
|
+
width: 180px;
|
6
|
+
height: 32px;
|
7
|
+
overflow: hidden;
|
8
|
+
background-color: var(--ronds-metadata-color-bg-4);
|
9
|
+
color: var(--ronds-metadata-color-text-1);
|
10
|
+
border-radius: 4px;
|
11
|
+
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
|
12
|
+
|
13
|
+
&.selected,
|
14
|
+
&:hover {
|
15
|
+
background-color: var(--ronds-metadata-color-bg-4);
|
16
|
+
color: var(--ronds-metadata-color-text-1);
|
17
|
+
border: 1px solid #1890ff;
|
18
|
+
box-shadow: 0 0 3px 3px rgba(64, 169, 255, 0.2);
|
19
|
+
|
20
|
+
.icon {
|
21
|
+
width: 32px;
|
22
|
+
height: 30px;
|
23
|
+
margin: 0 1px 0 -1px;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
& > * {
|
28
|
+
flex-grow: 1;
|
29
|
+
}
|
30
|
+
|
31
|
+
.icon {
|
32
|
+
display: inline-flex;
|
33
|
+
flex-grow: 0;
|
34
|
+
align-items: center;
|
35
|
+
justify-content: center;
|
36
|
+
width: 32px;
|
37
|
+
height: 32px;
|
38
|
+
background-color: var(--ronds-metadata-color-bg-2);
|
39
|
+
border-radius: 4px 0 0 4px;
|
40
|
+
}
|
41
|
+
|
42
|
+
.notation {
|
43
|
+
display: inline-flex;
|
44
|
+
align-items: center;
|
45
|
+
width: calc(100% - 32px);
|
46
|
+
padding: 0 8px;
|
47
|
+
user-select: none;
|
48
|
+
|
49
|
+
& > * {
|
50
|
+
flex-grow: 1;
|
51
|
+
}
|
52
|
+
|
53
|
+
.name {
|
54
|
+
overflow-x: hidden;
|
55
|
+
color: var(--ronds-metadata-color-text-1);
|
56
|
+
font-size: 12px;
|
57
|
+
white-space: nowrap;
|
58
|
+
text-overflow: ellipsis;
|
59
|
+
vertical-align: middle;
|
60
|
+
}
|
61
|
+
|
62
|
+
.statusIcon {
|
63
|
+
display: inline-flex;
|
64
|
+
flex-grow: 0;
|
65
|
+
align-items: center;
|
66
|
+
font-size: 14px;
|
67
|
+
transform: translateZ(0);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
.dynamic-ports {
|
73
|
+
position: relative;
|
74
|
+
.x6-node [magnet='true'] {
|
75
|
+
cursor: crosshair;
|
76
|
+
transition: none;
|
77
|
+
}
|
78
|
+
|
79
|
+
.x6-node [magnet='true']:hover {
|
80
|
+
opacity: 1;
|
81
|
+
}
|
82
|
+
|
83
|
+
.x6-node [magnet='true'][port-group='in'] {
|
84
|
+
cursor: move;
|
85
|
+
stroke: none;
|
86
|
+
}
|
87
|
+
|
88
|
+
.x6-port-body > span {
|
89
|
+
display: block;
|
90
|
+
}
|
91
|
+
|
92
|
+
.x6-node-selected {
|
93
|
+
.node-element {
|
94
|
+
background-color: var(--ronds-metadata-color-bg-4);
|
95
|
+
border: 1px solid #1890ff;
|
96
|
+
box-shadow: 0 0 3px 3px rgba(64, 169, 255, 0.2);
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
.dp-port {
|
101
|
+
width: 100%;
|
102
|
+
height: 100%;
|
103
|
+
border: 1px solid #808080;
|
104
|
+
border-radius: 100%;
|
105
|
+
background: #fff;
|
106
|
+
display: block;
|
107
|
+
}
|
108
|
+
|
109
|
+
.dp-port.connected {
|
110
|
+
width: 0;
|
111
|
+
height: 0;
|
112
|
+
margin-top: 3px;
|
113
|
+
margin-left: -1px;
|
114
|
+
border-width: 5px 4px 0;
|
115
|
+
border-style: solid;
|
116
|
+
border-color: #808080 transparent transparent;
|
117
|
+
border-radius: 0;
|
118
|
+
background-color: transparent;
|
119
|
+
}
|
120
|
+
|
121
|
+
.x6-port-body.available {
|
122
|
+
overflow: visible;
|
123
|
+
}
|
124
|
+
|
125
|
+
.x6-port-body.available body {
|
126
|
+
overflow: visible;
|
127
|
+
}
|
128
|
+
|
129
|
+
.x6-port-body.available span {
|
130
|
+
overflow: visible;
|
131
|
+
display: block;
|
132
|
+
}
|
133
|
+
|
134
|
+
.x6-port-body.available body > span::before {
|
135
|
+
content: ' ';
|
136
|
+
float: left;
|
137
|
+
width: 20px;
|
138
|
+
height: 20px;
|
139
|
+
margin-top: -6px;
|
140
|
+
margin-left: -6px;
|
141
|
+
border-radius: 50%;
|
142
|
+
background-color: rgba(57, 202, 116, 0.6);
|
143
|
+
box-sizing: border-box;
|
144
|
+
}
|
145
|
+
|
146
|
+
.x6-port-body.available body > span::after {
|
147
|
+
content: ' ';
|
148
|
+
float: left;
|
149
|
+
clear: both;
|
150
|
+
width: 10px;
|
151
|
+
height: 10px;
|
152
|
+
margin-top: -15px;
|
153
|
+
margin-left: -1px;
|
154
|
+
border-radius: 50%;
|
155
|
+
background-color: #fff;
|
156
|
+
border: 1px solid #39ca74;
|
157
|
+
// position: relative;
|
158
|
+
z-index: 10;
|
159
|
+
box-sizing: border-box;
|
160
|
+
// transform: translateZ(0);
|
161
|
+
// position: relative
|
162
|
+
}
|
163
|
+
|
164
|
+
.x6-port-body.adsorbed {
|
165
|
+
overflow: visible;
|
166
|
+
}
|
167
|
+
|
168
|
+
.x6-port-body.adsorbed body {
|
169
|
+
overflow: visible;
|
170
|
+
}
|
171
|
+
|
172
|
+
.x6-port-body.adsorbed body > span::before {
|
173
|
+
content: ' ';
|
174
|
+
float: left;
|
175
|
+
width: 28px;
|
176
|
+
height: 28px;
|
177
|
+
margin-top: -9px;
|
178
|
+
margin-left: -10px;
|
179
|
+
border-radius: 50%;
|
180
|
+
background-color: rgba(57, 202, 116, 0.6);
|
181
|
+
box-sizing: border-box;
|
182
|
+
}
|
183
|
+
|
184
|
+
.x6-port-body.adsorbed body > span::after {
|
185
|
+
content: ' ';
|
186
|
+
float: left;
|
187
|
+
clear: both;
|
188
|
+
width: 10px;
|
189
|
+
height: 10px;
|
190
|
+
margin-top: -19px;
|
191
|
+
border-radius: 50%;
|
192
|
+
background-color: #fff;
|
193
|
+
border: 1px solid #39ca74;
|
194
|
+
// position: relative;
|
195
|
+
z-index: 10;
|
196
|
+
box-sizing: border-box;
|
197
|
+
}
|
198
|
+
}
|
@@ -6,7 +6,7 @@ var _excluded = ["title", "isAddColumn", "editable", "record", "editableType", "
|
|
6
6
|
import React from 'react';
|
7
7
|
import { EditableContext } from '../interface';
|
8
8
|
import { getDataCell, isFreeEditCell, isFreeEditRow } from '../utils';
|
9
|
-
import
|
9
|
+
import './index.less';
|
10
10
|
import Texty from './Texty';
|
11
11
|
import { tr } from '../../../framework/locale';
|
12
12
|
|
@@ -15,7 +15,7 @@ import { PlusSquareOutlined, DeleteOutlined } from '@ant-design/icons';
|
|
15
15
|
import React from 'react';
|
16
16
|
import { EditableContext } from '../interface';
|
17
17
|
import { tr } from '../../../framework/locale';
|
18
|
-
import
|
18
|
+
import './index.less';
|
19
19
|
import Texty from './Texty';
|
20
20
|
|
21
21
|
var EditableHeardCell = function EditableHeardCell(props) {
|
@@ -9,7 +9,7 @@ var _excluded = ["tagName", "children", "placement", "innerRef", "showDelay", "h
|
|
9
9
|
import React from 'react';
|
10
10
|
import ReactDom from 'react-dom';
|
11
11
|
import { Popper } from 'react-popper';
|
12
|
-
import
|
12
|
+
import './Texty.less';
|
13
13
|
var modifiers = [{
|
14
14
|
name: 'preventOverflow',
|
15
15
|
options: {
|
@@ -5,6 +5,7 @@
|
|
5
5
|
text-overflow: ellipsis;
|
6
6
|
white-space: nowrap;
|
7
7
|
}
|
8
|
+
|
8
9
|
[data-texty-tooltip] {
|
9
10
|
margin: 6px 0;
|
10
11
|
padding: 4px 10px;
|
@@ -13,6 +14,7 @@
|
|
13
14
|
color: #fff;
|
14
15
|
z-index: 99999;
|
15
16
|
}
|
17
|
+
|
16
18
|
[data-texty-arrow] {
|
17
19
|
position: absolute;
|
18
20
|
bottom: -6px;
|
@@ -22,11 +24,13 @@
|
|
22
24
|
border-width: 6px 6px 0;
|
23
25
|
border-color: #222 transparent transparent;
|
24
26
|
}
|
27
|
+
|
25
28
|
[data-texty-arrow*='bottom'] {
|
26
29
|
top: -6px;
|
27
30
|
bottom: inherit;
|
28
31
|
transform: rotate(180deg);
|
29
32
|
}
|
33
|
+
|
30
34
|
/* disable the builtin tooltip for truncated text on Safari */
|
31
35
|
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
32
36
|
@supports (not (-ms-ime-align: auto)) {
|
@@ -1,6 +1,7 @@
|
|
1
1
|
.ant-table-th {
|
2
2
|
position: relative;
|
3
3
|
}
|
4
|
+
|
4
5
|
.editable-th-hover-add {
|
5
6
|
position: absolute;
|
6
7
|
right: -3px;
|
@@ -11,15 +12,19 @@
|
|
11
12
|
right: 15px;
|
12
13
|
top: -8px;
|
13
14
|
}
|
15
|
+
|
14
16
|
.display-none {
|
15
17
|
display: none;
|
16
18
|
}
|
19
|
+
|
17
20
|
.border-right {
|
18
21
|
border-right: 1px solid var(--antd-wave-shadow-color) !important;
|
19
22
|
}
|
23
|
+
|
20
24
|
.border-top {
|
21
25
|
border-top: 1px solid var(--antd-wave-shadow-color) !important;
|
22
26
|
}
|
27
|
+
|
23
28
|
.font-bold {
|
24
29
|
font-weight: bold;
|
25
30
|
}
|
@@ -19,7 +19,7 @@ import EditableHeardCell from './comps/EditableHeardCell';
|
|
19
19
|
import useMemoSubject from '../../framework/rxjs-hooks/useMemoSubject';
|
20
20
|
import useObservable from '../../framework/rxjs-hooks/useObservable';
|
21
21
|
import { tr } from '../../framework/locale';
|
22
|
-
import
|
22
|
+
import './index.less';
|
23
23
|
|
24
24
|
var Editable = function Editable(props) {
|
25
25
|
var _props$type = props.type,
|