@truedat/lm 7.5.3 → 7.5.5
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/package.json +4 -4
- package/src/components/ConfirmDeleteRelation.js +7 -2
- package/src/components/RelationTagCards.js +10 -2
- package/src/components/Relations.js +2 -2
- package/src/components/__tests__/__snapshots__/ConfirmDeleteRelation.spec.js.snap +8 -4
- package/src/components/__tests__/__snapshots__/ImplementationLinks.spec.js.snap +16 -8
- package/src/components/__tests__/__snapshots__/RelationTagCards.spec.js.snap +3 -3
- package/src/components/__tests__/__snapshots__/RelationTags.spec.js.snap +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/lm",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.5",
|
|
4
4
|
"description": "Truedat Link Manager",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@testing-library/jest-dom": "^5.16.5",
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@testing-library/user-event": "^13.2.1",
|
|
37
|
-
"@truedat/test": "7.5.
|
|
37
|
+
"@truedat/test": "7.5.5",
|
|
38
38
|
"babel-jest": "^28.1.0",
|
|
39
39
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
40
40
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@truedat/core": "7.5.
|
|
89
|
+
"@truedat/core": "7.5.5",
|
|
90
90
|
"path-to-regexp": "^1.7.0",
|
|
91
91
|
"prop-types": "^15.8.1",
|
|
92
92
|
"react-graph-vis": "1.0.6",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"react-dom": ">= 16.8.6 < 17",
|
|
108
108
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "2a4343b3b2837540358b57d3d647408ab292aa21"
|
|
111
111
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
|
-
import { Icon } from "semantic-ui-react";
|
|
4
|
+
import { Button, Icon } from "semantic-ui-react";
|
|
5
5
|
import { FormattedMessage } from "react-intl";
|
|
6
6
|
import { ConfirmModal } from "@truedat/core/components";
|
|
7
7
|
import { deleteRelation } from "../routines";
|
|
@@ -9,7 +9,12 @@ import { deleteRelation } from "../routines";
|
|
|
9
9
|
export const ConfirmDeleteRelation = ({ id, deleteRelation, resourceType }) => (
|
|
10
10
|
<ConfirmModal
|
|
11
11
|
icon="trash"
|
|
12
|
-
|
|
12
|
+
color="red"
|
|
13
|
+
trigger={
|
|
14
|
+
<Button basic color="red" icon size="mini">
|
|
15
|
+
<Icon name="trash alternate outline" color="red" />
|
|
16
|
+
</Button>
|
|
17
|
+
}
|
|
13
18
|
header={
|
|
14
19
|
<FormattedMessage
|
|
15
20
|
id={`relations.actions.${resourceType}.delete.confirmation.header`}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
|
-
import { Button, Card, Checkbox } from "semantic-ui-react";
|
|
4
|
+
import { Button, Card, Checkbox, Icon } from "semantic-ui-react";
|
|
5
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
6
|
import { ConfirmModal } from "@truedat/core/components";
|
|
7
7
|
import { deleteRelationTag, updateRelationTag } from "../routines";
|
|
@@ -57,7 +57,15 @@ export const RelationTagCards = ({
|
|
|
57
57
|
<div className="ui actions">
|
|
58
58
|
<ConfirmModal
|
|
59
59
|
icon="trash"
|
|
60
|
-
trigger={
|
|
60
|
+
trigger={
|
|
61
|
+
<Button
|
|
62
|
+
icon={
|
|
63
|
+
<Icon name="trash alternate outline" color="red" />
|
|
64
|
+
}
|
|
65
|
+
basic
|
|
66
|
+
color="red"
|
|
67
|
+
/>
|
|
68
|
+
}
|
|
61
69
|
header={
|
|
62
70
|
<FormattedMessage id="relationTag.actions.delete.confirmation.header" />
|
|
63
71
|
}
|
|
@@ -20,7 +20,7 @@ export const Relations = ({ relations, relationsLoading }) =>
|
|
|
20
20
|
<Grid.Column>
|
|
21
21
|
<Table selectable>
|
|
22
22
|
<Table.Body>
|
|
23
|
-
{relations.map(relation => (
|
|
23
|
+
{relations.map((relation) => (
|
|
24
24
|
<RelationRow
|
|
25
25
|
key={relation.id}
|
|
26
26
|
relationContext={relation.context}
|
|
@@ -43,7 +43,7 @@ export const Relations = ({ relations, relationsLoading }) =>
|
|
|
43
43
|
|
|
44
44
|
Relations.propTypes = {
|
|
45
45
|
relationsLoading: PropTypes.bool,
|
|
46
|
-
relations: PropTypes.array
|
|
46
|
+
relations: PropTypes.array,
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
export default Relations;
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`<ConfirmDeleteRelation /> matches the latest snapshot 1`] = `
|
|
4
4
|
<div>
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
<button
|
|
6
|
+
class="ui red mini basic icon button"
|
|
7
|
+
>
|
|
8
|
+
<i
|
|
9
|
+
aria-hidden="true"
|
|
10
|
+
class="red trash alternate outline icon"
|
|
11
|
+
/>
|
|
12
|
+
</button>
|
|
9
13
|
</div>
|
|
10
14
|
`;
|
|
@@ -85,10 +85,14 @@ exports[`<ImplementationLinks /> matches the latest snapshot 1`] = `
|
|
|
85
85
|
<td
|
|
86
86
|
class=""
|
|
87
87
|
>
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
<button
|
|
89
|
+
class="ui red mini basic icon button"
|
|
90
|
+
>
|
|
91
|
+
<i
|
|
92
|
+
aria-hidden="true"
|
|
93
|
+
class="red trash alternate outline icon"
|
|
94
|
+
/>
|
|
95
|
+
</button>
|
|
92
96
|
</td>
|
|
93
97
|
</tr>
|
|
94
98
|
</tbody>
|
|
@@ -168,10 +172,14 @@ exports[`<ImplementationLinks /> matches the latest snapshot when implementation
|
|
|
168
172
|
<td
|
|
169
173
|
class=""
|
|
170
174
|
>
|
|
171
|
-
<
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
+
<button
|
|
176
|
+
class="ui red mini basic icon button"
|
|
177
|
+
>
|
|
178
|
+
<i
|
|
179
|
+
aria-hidden="true"
|
|
180
|
+
class="red trash alternate outline icon"
|
|
181
|
+
/>
|
|
182
|
+
</button>
|
|
175
183
|
</td>
|
|
176
184
|
</tr>
|
|
177
185
|
</tbody>
|
|
@@ -51,7 +51,7 @@ exports[`<RelationTagCards /> matches the latest snapshot 1`] = `
|
|
|
51
51
|
>
|
|
52
52
|
<i
|
|
53
53
|
aria-hidden="true"
|
|
54
|
-
class="trash icon"
|
|
54
|
+
class="red trash alternate outline icon"
|
|
55
55
|
/>
|
|
56
56
|
</button>
|
|
57
57
|
</div>
|
|
@@ -85,7 +85,7 @@ exports[`<RelationTagCards /> matches the latest snapshot 1`] = `
|
|
|
85
85
|
>
|
|
86
86
|
<i
|
|
87
87
|
aria-hidden="true"
|
|
88
|
-
class="trash icon"
|
|
88
|
+
class="red trash alternate outline icon"
|
|
89
89
|
/>
|
|
90
90
|
</button>
|
|
91
91
|
</div>
|
|
@@ -119,7 +119,7 @@ exports[`<RelationTagCards /> matches the latest snapshot 1`] = `
|
|
|
119
119
|
>
|
|
120
120
|
<i
|
|
121
121
|
aria-hidden="true"
|
|
122
|
-
class="trash icon"
|
|
122
|
+
class="red trash alternate outline icon"
|
|
123
123
|
/>
|
|
124
124
|
</button>
|
|
125
125
|
</div>
|
|
@@ -79,7 +79,7 @@ exports[`<RelationTags /> matches the latest snapshot 1`] = `
|
|
|
79
79
|
>
|
|
80
80
|
<i
|
|
81
81
|
aria-hidden="true"
|
|
82
|
-
class="trash icon"
|
|
82
|
+
class="red trash alternate outline icon"
|
|
83
83
|
/>
|
|
84
84
|
</button>
|
|
85
85
|
</div>
|
|
@@ -113,7 +113,7 @@ exports[`<RelationTags /> matches the latest snapshot 1`] = `
|
|
|
113
113
|
>
|
|
114
114
|
<i
|
|
115
115
|
aria-hidden="true"
|
|
116
|
-
class="trash icon"
|
|
116
|
+
class="red trash alternate outline icon"
|
|
117
117
|
/>
|
|
118
118
|
</button>
|
|
119
119
|
</div>
|
|
@@ -147,7 +147,7 @@ exports[`<RelationTags /> matches the latest snapshot 1`] = `
|
|
|
147
147
|
>
|
|
148
148
|
<i
|
|
149
149
|
aria-hidden="true"
|
|
150
|
-
class="trash icon"
|
|
150
|
+
class="red trash alternate outline icon"
|
|
151
151
|
/>
|
|
152
152
|
</button>
|
|
153
153
|
</div>
|