@truedat/core 5.2.1 → 5.2.3
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 +12 -0
- package/package.json +3 -3
- package/src/components/GlossaryMenu.js +10 -1
- package/src/components/__tests__/__snapshots__/GlossaryMenu.spec.js.snap +13 -0
- package/src/messages/en.js +1 -0
- package/src/messages/es.js +1 -0
- package/src/routes.js +2 -0
- package/src/routines.js +1 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/core",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.3",
|
|
4
4
|
"description": "Truedat Web Core",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@testing-library/jest-dom": "^5.16.5",
|
|
36
36
|
"@testing-library/react": "^12.0.0",
|
|
37
37
|
"@testing-library/user-event": "^13.2.1",
|
|
38
|
-
"@truedat/test": "5.2.
|
|
38
|
+
"@truedat/test": "5.2.3",
|
|
39
39
|
"babel-jest": "^28.1.0",
|
|
40
40
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
41
41
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"react-dom": ">= 16.8.6 < 17",
|
|
118
118
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "fecedbbb623fc091ced1eebf41bdcea30f2800fa"
|
|
121
121
|
}
|
|
@@ -6,7 +6,11 @@ import PropTypes from "prop-types";
|
|
|
6
6
|
import { makeGetSubscopes } from "@truedat/df/selectors/subscopedTemplates";
|
|
7
7
|
import { linkTo } from "@truedat/core/routes";
|
|
8
8
|
import { useAuthorized } from "../hooks";
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
CONCEPTS,
|
|
11
|
+
CONCEPTS_PENDING,
|
|
12
|
+
CONCEPT_LINKS_MANAGEMENT,
|
|
13
|
+
} from "../routes";
|
|
10
14
|
import Submenu from "./Submenu";
|
|
11
15
|
|
|
12
16
|
const items = (bgSubscopes = []) => [
|
|
@@ -21,6 +25,11 @@ const items = (bgSubscopes = []) => [
|
|
|
21
25
|
routes: [CONCEPTS_PENDING],
|
|
22
26
|
groups: ["business_glossary_management"],
|
|
23
27
|
},
|
|
28
|
+
{
|
|
29
|
+
name: "concepts_links_management",
|
|
30
|
+
routes: [CONCEPT_LINKS_MANAGEMENT],
|
|
31
|
+
groups: ["business_glossary_management"],
|
|
32
|
+
},
|
|
24
33
|
];
|
|
25
34
|
|
|
26
35
|
const subscopeItems = _.flow(
|
|
@@ -83,6 +83,19 @@ exports[`<GlossaryMenu /> matches the latest snapshot, finds fixed and subscopes
|
|
|
83
83
|
sidemenu.concepts_management
|
|
84
84
|
</span>
|
|
85
85
|
</a>
|
|
86
|
+
<a
|
|
87
|
+
aria-checked="true"
|
|
88
|
+
class="active item"
|
|
89
|
+
href="/links/concepts/management"
|
|
90
|
+
name="concepts_links_management"
|
|
91
|
+
role="option"
|
|
92
|
+
>
|
|
93
|
+
<span
|
|
94
|
+
class="text"
|
|
95
|
+
>
|
|
96
|
+
concepts_links_management
|
|
97
|
+
</span>
|
|
98
|
+
</a>
|
|
86
99
|
</div>
|
|
87
100
|
</div>
|
|
88
101
|
</div>
|
package/src/messages/en.js
CHANGED
|
@@ -99,6 +99,7 @@ export default {
|
|
|
99
99
|
"validation.header.message.error": "Could you check something!",
|
|
100
100
|
"sidemenu.admin": "Administration",
|
|
101
101
|
"sidemenu.catalog": "Catalog",
|
|
102
|
+
"sidemenu.concepts_links_management": "Links manager",
|
|
102
103
|
"sidemenu.concepts_management": "Drafts",
|
|
103
104
|
"sidemenu.concepts": "Glossary",
|
|
104
105
|
"sidemenu.configurations": "Configuration",
|
package/src/messages/es.js
CHANGED
|
@@ -102,6 +102,7 @@ export default {
|
|
|
102
102
|
"validation.header.message.error": "Faltan campos por rellenar!",
|
|
103
103
|
"sidemenu.admin": "Administración",
|
|
104
104
|
"sidemenu.catalog": "Catálogo",
|
|
105
|
+
"sidemenu.concepts_links_management": "Gestión de vínculos",
|
|
105
106
|
"sidemenu.concepts_management": "Borradores",
|
|
106
107
|
"sidemenu.concepts": "Glosario",
|
|
107
108
|
"sidemenu.configurations": "Configuración",
|
package/src/routes.js
CHANGED
|
@@ -16,6 +16,7 @@ export const CONCEPT_LINKS_CONCEPTS =
|
|
|
16
16
|
"/concepts/:business_concept_id/versions/:id/links/concepts";
|
|
17
17
|
export const CONCEPT_LINKS_CONCEPTS_NEW =
|
|
18
18
|
"/concepts/:business_concept_id/versions/:id/links/concepts/new";
|
|
19
|
+
export const CONCEPT_LINKS_MANAGEMENT = "/links/concepts/management";
|
|
19
20
|
export const CONCEPT_LINKS_IMPLEMENTATIONS =
|
|
20
21
|
"/concepts/:business_concept_id/versions/:id/links/implementations";
|
|
21
22
|
export const CONCEPT_LINKS_STRUCTURES =
|
|
@@ -231,6 +232,7 @@ const routes = {
|
|
|
231
232
|
CONCEPT_LINKS_CONCEPTS,
|
|
232
233
|
CONCEPT_LINKS_CONCEPTS_NEW,
|
|
233
234
|
CONCEPT_LINKS_IMPLEMENTATIONS,
|
|
235
|
+
CONCEPT_LINKS_MANAGEMENT,
|
|
234
236
|
CONCEPT_LINKS_STRUCTURES,
|
|
235
237
|
CONCEPT_LINKS_STRUCTURES_NEW,
|
|
236
238
|
CONCEPT_RULES,
|
package/src/routines.js
CHANGED
|
@@ -10,6 +10,7 @@ export const dismissAlert = createRoutine("DISMISS_ALERT");
|
|
|
10
10
|
|
|
11
11
|
// Defined here instead of in lm to avoid cyclical dependencies
|
|
12
12
|
export const createRelation = createRoutine("CREATE_RELATION");
|
|
13
|
+
export const deleteRelation = createRoutine("DELETE_RELATION");
|
|
13
14
|
export const clearSelectedRelationTags = createRoutine(
|
|
14
15
|
"CLEAR_SELECTED_RELATION_TAGS"
|
|
15
16
|
);
|