@truedat/df 6.14.0 → 6.15.0
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 +5 -5
- package/src/components/hierarchies/HierarchiesView.js +32 -23
- package/src/components/hierarchies/HierarchyView.js +8 -2
- package/src/templates/components/NewTemplate.js +7 -1
- package/src/templates/components/Template.js +12 -4
- package/src/templates/components/TemplateCard.js +9 -2
- package/src/templates/components/Templates.js +9 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/df",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.15.0",
|
|
4
4
|
"description": "Truedat Web Data Quality Module",
|
|
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": "6.
|
|
37
|
+
"@truedat/test": "6.15.0",
|
|
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",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"@apollo/client": "^3.7.1",
|
|
90
|
-
"@truedat/auth": "6.
|
|
91
|
-
"@truedat/core": "6.
|
|
90
|
+
"@truedat/auth": "6.15.0",
|
|
91
|
+
"@truedat/core": "6.15.0",
|
|
92
92
|
"decode-uri-component": "^0.2.2",
|
|
93
93
|
"path-to-regexp": "^1.7.0",
|
|
94
94
|
"prop-types": "^15.8.1",
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"react-dom": ">= 16.8.6 < 17",
|
|
110
110
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "82830ba952924ed48c558abe06b3a01880c3e17e"
|
|
113
113
|
}
|
|
@@ -1,32 +1,41 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Button, Header, Icon, Segment } from "semantic-ui-react";
|
|
3
3
|
import { Link } from "react-router-dom";
|
|
4
|
-
import { FormattedMessage } from "react-intl";
|
|
4
|
+
import { FormattedMessage, useIntl } from "react-intl";
|
|
5
5
|
import { HIERARCHY_CREATE } from "@truedat/core/routes";
|
|
6
6
|
import Hierarchies from "./Hierarchies";
|
|
7
7
|
|
|
8
|
-
export const HierarchiesView = () =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
8
|
+
export const HierarchiesView = () => {
|
|
9
|
+
const { formatMessage } = useIntl();
|
|
10
|
+
return (
|
|
11
|
+
<Segment>
|
|
12
|
+
<Header as="h2">
|
|
13
|
+
<Button
|
|
14
|
+
floated="right"
|
|
15
|
+
primary
|
|
16
|
+
as={Link}
|
|
17
|
+
to={HIERARCHY_CREATE}
|
|
18
|
+
content={<FormattedMessage id="hierarchy.create" />}
|
|
19
|
+
/>
|
|
20
|
+
<Icon
|
|
21
|
+
circular
|
|
22
|
+
name={formatMessage({
|
|
23
|
+
id: "hierarchies.header.icon",
|
|
24
|
+
defaultMessage: "tree",
|
|
25
|
+
})}
|
|
26
|
+
/>
|
|
27
|
+
<Header.Content>
|
|
28
|
+
<FormattedMessage id="hierarchies.header" />
|
|
29
|
+
<Header.Subheader>
|
|
30
|
+
<FormattedMessage id="hierarchies.subheader" />
|
|
31
|
+
</Header.Subheader>
|
|
32
|
+
</Header.Content>
|
|
33
|
+
</Header>
|
|
34
|
+
<Segment attached="bottom">
|
|
35
|
+
<Hierarchies />
|
|
36
|
+
</Segment>
|
|
28
37
|
</Segment>
|
|
29
|
-
|
|
30
|
-
|
|
38
|
+
);
|
|
39
|
+
};
|
|
31
40
|
|
|
32
41
|
export default HierarchiesView;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import React, { useState, useEffect } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
|
-
import { Button, Header, Icon, Segment
|
|
4
|
+
import { Button, Header, Icon, Segment } from "semantic-ui-react";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { Link } from "react-router-dom";
|
|
7
7
|
import { linkTo } from "@truedat/core/routes";
|
|
@@ -229,7 +229,13 @@ export const HierarchyView = ({
|
|
|
229
229
|
)}
|
|
230
230
|
</div>
|
|
231
231
|
</div>
|
|
232
|
-
<Icon
|
|
232
|
+
<Icon
|
|
233
|
+
circular
|
|
234
|
+
name={formatMessage({
|
|
235
|
+
id: "hierarchies.header.icon",
|
|
236
|
+
defaultMessage: "tree",
|
|
237
|
+
})}
|
|
238
|
+
/>
|
|
233
239
|
<Header.Content>
|
|
234
240
|
{hierarchy.name
|
|
235
241
|
? hierarchy.name
|
|
@@ -16,7 +16,13 @@ export const NewTemplate = ({ createTemplate }) => {
|
|
|
16
16
|
/>
|
|
17
17
|
<Segment>
|
|
18
18
|
<Header as="h2">
|
|
19
|
-
<Icon
|
|
19
|
+
<Icon
|
|
20
|
+
name={formatMessage({
|
|
21
|
+
id: "templates.header.icon",
|
|
22
|
+
defaultMessage: "file code outline",
|
|
23
|
+
})}
|
|
24
|
+
circular
|
|
25
|
+
/>
|
|
20
26
|
<Header.Content>
|
|
21
27
|
<FormattedMessage id="templates.actions.create" />
|
|
22
28
|
</Header.Content>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
|
-
import { FormattedMessage } from "react-intl";
|
|
4
|
+
import { FormattedMessage, useIntl } from "react-intl";
|
|
5
5
|
import {
|
|
6
6
|
Button,
|
|
7
7
|
Header,
|
|
@@ -22,15 +22,22 @@ export const Template = ({
|
|
|
22
22
|
deleteTemplate,
|
|
23
23
|
templateDeleting,
|
|
24
24
|
templateSaving,
|
|
25
|
-
}) =>
|
|
26
|
-
|
|
25
|
+
}) => {
|
|
26
|
+
const { formatMessage } = useIntl();
|
|
27
|
+
return _.isUndefined(template.id) ? null : (
|
|
27
28
|
<>
|
|
28
29
|
<TemplateCrumbs name={template?.label} />
|
|
29
30
|
<Segment>
|
|
30
31
|
<Grid>
|
|
31
32
|
<Grid.Column width={8}>
|
|
32
33
|
<Header as="h2">
|
|
33
|
-
<Icon
|
|
34
|
+
<Icon
|
|
35
|
+
name={formatMessage({
|
|
36
|
+
id: "templates.header.icon",
|
|
37
|
+
defaultMessage: "file code outline",
|
|
38
|
+
})}
|
|
39
|
+
circular
|
|
40
|
+
/>
|
|
34
41
|
<Header.Content>
|
|
35
42
|
{template?.label}
|
|
36
43
|
<Header.Subheader>{template?.name}</Header.Subheader>
|
|
@@ -70,6 +77,7 @@ export const Template = ({
|
|
|
70
77
|
</Segment>
|
|
71
78
|
</>
|
|
72
79
|
);
|
|
80
|
+
};
|
|
73
81
|
|
|
74
82
|
Template.propTypes = {
|
|
75
83
|
deleteTemplate: PropTypes.func,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
|
-
import {
|
|
3
|
+
import { useIntl } from "react-intl";
|
|
4
4
|
import { useHistory } from "react-router-dom";
|
|
5
5
|
import { Icon, Card } from "semantic-ui-react";
|
|
6
6
|
import { linkTo } from "@truedat/core/routes";
|
|
7
7
|
|
|
8
8
|
export const TemplateCard = ({ template: { id, name, label } }) => {
|
|
9
9
|
const history = useHistory();
|
|
10
|
+
const { formatMessage } = useIntl();
|
|
10
11
|
return (
|
|
11
12
|
<Card
|
|
12
13
|
key={id}
|
|
@@ -15,7 +16,13 @@ export const TemplateCard = ({ template: { id, name, label } }) => {
|
|
|
15
16
|
>
|
|
16
17
|
<Card.Content>
|
|
17
18
|
<Card.Header>
|
|
18
|
-
<Icon
|
|
19
|
+
<Icon
|
|
20
|
+
name={formatMessage({
|
|
21
|
+
id: "templates.header.icon",
|
|
22
|
+
defaultMessage: "file code outline",
|
|
23
|
+
})}
|
|
24
|
+
/>{" "}
|
|
25
|
+
{name}
|
|
19
26
|
</Card.Header>
|
|
20
27
|
<Card.Description>{label}</Card.Description>
|
|
21
28
|
</Card.Content>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { FormattedMessage } from "react-intl";
|
|
2
|
+
import { FormattedMessage, useIntl } from "react-intl";
|
|
3
3
|
import {
|
|
4
4
|
Header,
|
|
5
5
|
Icon,
|
|
@@ -14,10 +14,17 @@ import TemplateFilters from "./TemplateFilters";
|
|
|
14
14
|
import TemplatesTable from "./TemplatesTable";
|
|
15
15
|
|
|
16
16
|
export default function Templates() {
|
|
17
|
+
const { formatMessage } = useIntl();
|
|
17
18
|
return (
|
|
18
19
|
<Segment>
|
|
19
20
|
<Header as="h2">
|
|
20
|
-
<Icon
|
|
21
|
+
<Icon
|
|
22
|
+
circular
|
|
23
|
+
name={formatMessage({
|
|
24
|
+
id: "templates.header.icon",
|
|
25
|
+
defaultMessage: "file code outline",
|
|
26
|
+
})}
|
|
27
|
+
/>
|
|
21
28
|
<Header.Content>
|
|
22
29
|
<FormattedMessage id="templates.header" />
|
|
23
30
|
<Header.Subheader>
|