@truedat/bg 4.58.0 → 4.58.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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/bg",
|
|
3
|
-
"version": "4.58.
|
|
3
|
+
"version": "4.58.2",
|
|
4
4
|
"description": "Truedat Web Business Glossary",
|
|
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": "4.58.
|
|
37
|
+
"@truedat/test": "4.58.2",
|
|
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,8 +86,8 @@
|
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@truedat/core": "4.58.
|
|
90
|
-
"@truedat/df": "4.58.
|
|
89
|
+
"@truedat/core": "4.58.2",
|
|
90
|
+
"@truedat/df": "4.58.2",
|
|
91
91
|
"file-saver": "^2.0.5",
|
|
92
92
|
"moment": "^2.29.4",
|
|
93
93
|
"path-to-regexp": "^1.7.0",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"react-dom": ">= 16.8.6 < 17",
|
|
109
109
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "2e7042f380612d48784dc5641085fbe6dba7c7d1"
|
|
112
112
|
}
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
CONCEPT_EDIT,
|
|
15
15
|
CONCEPT_VERSION,
|
|
16
16
|
} from "@truedat/core/routes";
|
|
17
|
+
import { useIntl } from "react-intl";
|
|
17
18
|
import Concept from "./Concept";
|
|
18
19
|
import ConceptCrumbs from "./ConceptCrumbs";
|
|
19
20
|
import ConceptEdit from "./ConceptEdit";
|
|
@@ -39,6 +40,7 @@ const RelationsGraphLoader = React.lazy(() =>
|
|
|
39
40
|
);
|
|
40
41
|
|
|
41
42
|
export const ConceptRoutes = ({ concept, conceptLoaded, templatesLoaded }) => {
|
|
43
|
+
const { formatMessage } = useIntl();
|
|
42
44
|
const authorized = useAuthorized([
|
|
43
45
|
"business_glossary_view",
|
|
44
46
|
"business_glossary_management",
|
|
@@ -60,8 +62,8 @@ export const ConceptRoutes = ({ concept, conceptLoaded, templatesLoaded }) => {
|
|
|
60
62
|
<ConceptsLoader defaultFilters={pendingConceptsDefaultFilters} />
|
|
61
63
|
<ConceptUserFiltersLoader />
|
|
62
64
|
<Concepts
|
|
63
|
-
header="concepts.header.manage"
|
|
64
|
-
subheader="concepts.subheader.manage"
|
|
65
|
+
header={formatMessage({ id: "concepts.header.manage" })}
|
|
66
|
+
subheader={formatMessage({ id: "concepts.subheader.manage" })}
|
|
65
67
|
icon="edit"
|
|
66
68
|
create
|
|
67
69
|
upload
|
|
@@ -88,11 +90,7 @@ export const ConceptRoutes = ({ concept, conceptLoaded, templatesLoaded }) => {
|
|
|
88
90
|
<ConceptFiltersLoader defaultFilters={defaultFilters} />
|
|
89
91
|
<ConceptsLoader defaultFilters={defaultFilters} />
|
|
90
92
|
<ConceptUserFiltersLoader />
|
|
91
|
-
<Concepts
|
|
92
|
-
header="concepts.header.manage"
|
|
93
|
-
subheader="concepts.subheader.manage"
|
|
94
|
-
icon="tags"
|
|
95
|
-
/>
|
|
93
|
+
<Concepts header={subscope} icon="tags" />
|
|
96
94
|
</>
|
|
97
95
|
) : (
|
|
98
96
|
<Unauthorized />
|
|
@@ -129,8 +127,10 @@ export const ConceptRoutes = ({ concept, conceptLoaded, templatesLoaded }) => {
|
|
|
129
127
|
/>
|
|
130
128
|
<ConceptUserFiltersLoader />
|
|
131
129
|
<Concepts
|
|
132
|
-
header="concepts.header"
|
|
133
|
-
subheader=
|
|
130
|
+
header={formatMessage({ id: "concepts.header" })}
|
|
131
|
+
subheader={formatMessage({
|
|
132
|
+
id: "concepts.subheader.view",
|
|
133
|
+
})}
|
|
134
134
|
icon="tags"
|
|
135
135
|
/>
|
|
136
136
|
</>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { Header, Icon, Segment } from "semantic-ui-react";
|
|
4
|
-
import { FormattedMessage } from "react-intl";
|
|
5
4
|
import ConceptCrumbs from "./ConceptCrumbs";
|
|
6
5
|
import ConceptsPanel from "./ConceptsPanel";
|
|
7
6
|
|
|
@@ -12,10 +11,8 @@ export const Concepts = ({ header, subheader, icon, ...actions }) => (
|
|
|
12
11
|
<Header as="h2">
|
|
13
12
|
<Icon circular name={icon} />
|
|
14
13
|
<Header.Content>
|
|
15
|
-
|
|
16
|
-
<Header.Subheader>
|
|
17
|
-
<FormattedMessage id={subheader} />
|
|
18
|
-
</Header.Subheader>
|
|
14
|
+
{header}
|
|
15
|
+
<Header.Subheader>{subheader}</Header.Subheader>
|
|
19
16
|
</Header.Content>
|
|
20
17
|
</Header>
|
|
21
18
|
<Segment attached="bottom">
|
|
@@ -13,13 +13,9 @@ exports[`<Concepts /> matches the latest snapshot 1`] = `
|
|
|
13
13
|
name="edit"
|
|
14
14
|
/>
|
|
15
15
|
<HeaderContent>
|
|
16
|
-
|
|
17
|
-
id="concepts.header.manage"
|
|
18
|
-
/>
|
|
16
|
+
concepts.header.manage
|
|
19
17
|
<HeaderSubheader>
|
|
20
|
-
|
|
21
|
-
id="concepts.subheader.manage"
|
|
22
|
-
/>
|
|
18
|
+
concepts.subheader.manage
|
|
23
19
|
</HeaderSubheader>
|
|
24
20
|
</HeaderContent>
|
|
25
21
|
</Header>
|