ronds-metadata 1.1.13 → 1.1.16
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 +1 -1
- 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/index.js +1 -1
- package/es/comps/DynamicPorts/index.less +198 -0
- package/es/comps/Editable/comps/EditableAction.js +8 -4
- package/es/comps/Editable/comps/EditableCell.js +1 -1
- package/es/comps/Editable/comps/EditableHeardCell.js +1 -1
- package/es/comps/Editable/comps/EditableRow.js +12 -2
- 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.d.ts +4 -0
- package/es/comps/Editable/index.js +6 -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/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.js +1 -1
- package/es/comps/MetadataForm/index.less +11 -0
- package/es/framework/graph/index.js +1 -1
- 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 +3 -2
- 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
@@ -7,7 +7,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
7
7
|
*/
|
8
8
|
import React from 'react';
|
9
9
|
import NodeContextMenu from './contextMenu/NodeContextMenu';
|
10
|
-
import
|
10
|
+
import './ContextMenu.less';
|
11
11
|
import { EdgeContextMenu } from './contextMenu/EdgeContextMenu';
|
12
12
|
import useObservable from '../../../framework/rxjs-hooks/useObservable';
|
13
13
|
|
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
|
|
@@ -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
|
+
}
|
@@ -17,14 +17,16 @@ var EditableAction = function EditableAction(props) {
|
|
17
17
|
editableStream = _ref.editableStream,
|
18
18
|
editConfig = _ref.editConfig;
|
19
19
|
|
20
|
-
var onEdit = function onEdit() {
|
20
|
+
var onEdit = function onEdit(e) {
|
21
|
+
e.stopPropagation();
|
21
22
|
editableStream.next({
|
22
23
|
type: 'editRowKey',
|
23
24
|
payload: record
|
24
25
|
});
|
25
26
|
};
|
26
27
|
|
27
|
-
var onCancel = function onCancel() {
|
28
|
+
var onCancel = function onCancel(e) {
|
29
|
+
e.stopPropagation();
|
28
30
|
editableStream.next({
|
29
31
|
type: 'editRowKey',
|
30
32
|
payload: {
|
@@ -33,7 +35,8 @@ var EditableAction = function EditableAction(props) {
|
|
33
35
|
});
|
34
36
|
};
|
35
37
|
|
36
|
-
var onSave = function onSave() {
|
38
|
+
var onSave = function onSave(e) {
|
39
|
+
e.stopPropagation();
|
37
40
|
editableStream.next({
|
38
41
|
type: 'onSingleSave',
|
39
42
|
payload: record
|
@@ -47,7 +50,8 @@ var EditableAction = function EditableAction(props) {
|
|
47
50
|
});
|
48
51
|
};
|
49
52
|
|
50
|
-
var onDelete = function onDelete() {
|
53
|
+
var onDelete = function onDelete(e) {
|
54
|
+
e.stopPropagation();
|
51
55
|
editableStream.next({
|
52
56
|
type: 'onDelete',
|
53
57
|
payload: record
|
@@ -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) {
|
@@ -35,6 +35,15 @@ var EditableRow = function EditableRow(props) {
|
|
35
35
|
}
|
36
36
|
};
|
37
37
|
|
38
|
+
var onRowClick = function onRowClick() {
|
39
|
+
editableStream.next({
|
40
|
+
type: 'onRowClick',
|
41
|
+
payload: {
|
42
|
+
record: record
|
43
|
+
}
|
44
|
+
});
|
45
|
+
};
|
46
|
+
|
38
47
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Form, {
|
39
48
|
name: "editable_".concat(record === null || record === void 0 ? void 0 : record._rowKey_, "_"),
|
40
49
|
form: form,
|
@@ -42,10 +51,11 @@ var EditableRow = function EditableRow(props) {
|
|
42
51
|
onValuesChange: onValuesChange,
|
43
52
|
component: false
|
44
53
|
}, /*#__PURE__*/React.createElement("tr", _extends({}, props, {
|
45
|
-
className: "".concat(
|
54
|
+
className: "".concat(index % 2 === 0 || props['data-row-key'] ? 'ant-table-row--even' : 'ant-table-row--odd', " ").concat(className, " "),
|
46
55
|
style: {
|
47
56
|
height: '30px'
|
48
|
-
}
|
57
|
+
},
|
58
|
+
onClick: onRowClick
|
49
59
|
}))));
|
50
60
|
};
|
51
61
|
|
@@ -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,
|
@@ -33,6 +33,7 @@ var Editable = function Editable(props) {
|
|
33
33
|
_props$isAddColumn = props.isAddColumn,
|
34
34
|
isAddColumn = _props$isAddColumn === void 0 ? false : _props$isAddColumn,
|
35
35
|
tableProps = props.tableProps,
|
36
|
+
onRowClick = props.onRowClick,
|
36
37
|
onRowConfirm = props.onRowConfirm,
|
37
38
|
onRowDelete = props.onRowDelete,
|
38
39
|
onMulChange = props.onMulChange,
|
@@ -120,6 +121,10 @@ var Editable = function Editable(props) {
|
|
120
121
|
setEditHeardCellkey(data.payload);
|
121
122
|
break;
|
122
123
|
|
124
|
+
case 'onRowClick':
|
125
|
+
onRowClick && onRowClick(data.payload);
|
126
|
+
break;
|
127
|
+
|
123
128
|
case 'onSingleSave':
|
124
129
|
if (lastValueRef.current && lastValueRef.current.rowIdx === data.payload._rowKey_) {
|
125
130
|
onRowConfirm && onRowConfirm({
|