@truedat/bg 4.45.5 → 4.45.6
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/bg",
|
|
3
|
-
"version": "4.45.
|
|
3
|
+
"version": "4.45.6",
|
|
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.4",
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@testing-library/user-event": "^13.2.1",
|
|
37
|
-
"@truedat/test": "4.45.
|
|
37
|
+
"@truedat/test": "4.45.6",
|
|
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.45.
|
|
90
|
-
"@truedat/df": "4.45.
|
|
89
|
+
"@truedat/core": "4.45.6",
|
|
90
|
+
"@truedat/df": "4.45.6",
|
|
91
91
|
"file-saver": "^2.0.5",
|
|
92
92
|
"moment": "^2.24.0",
|
|
93
93
|
"path-to-regexp": "^1.7.0",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"react-dom": ">= 16.8.6 < 17",
|
|
108
108
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "6624767ce3b6893d538087057b662d11f90eb72d"
|
|
111
111
|
}
|
|
@@ -22,10 +22,10 @@ describe("<ConceptForm />", () => {
|
|
|
22
22
|
|
|
23
23
|
it("matches the latest snapshot", async () => {
|
|
24
24
|
const { container, queryByText } = render(<ConceptForm />, renderOpts);
|
|
25
|
+
await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
|
|
25
26
|
await waitFor(() =>
|
|
26
27
|
expect(queryByText(/loading/i)).not.toBeInTheDocument()
|
|
27
28
|
);
|
|
28
|
-
await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
|
|
29
29
|
expect(container).toMatchSnapshot();
|
|
30
30
|
});
|
|
31
31
|
|
|
@@ -34,8 +34,8 @@ describe("<ConceptForm />", () => {
|
|
|
34
34
|
<ConceptForm />,
|
|
35
35
|
renderOpts
|
|
36
36
|
);
|
|
37
|
-
userEvent.click(await findByText("template1"));
|
|
38
37
|
await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
|
|
38
|
+
userEvent.click(await findByText("template1"));
|
|
39
39
|
expect(getByText("field1")).toBeInTheDocument();
|
|
40
40
|
});
|
|
41
41
|
});
|
|
@@ -49,19 +49,19 @@ describe("<ConceptForm />", () => {
|
|
|
49
49
|
|
|
50
50
|
it("matches the latest snapshot", async () => {
|
|
51
51
|
const { container, queryByText } = render(<ConceptForm />, renderOpts);
|
|
52
|
+
await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
|
|
52
53
|
await waitFor(() =>
|
|
53
54
|
expect(queryByText(/loading/i)).not.toBeInTheDocument()
|
|
54
55
|
);
|
|
55
|
-
await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
|
|
56
56
|
expect(container).toMatchSnapshot();
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
it("contains no <TemplateSelector />", async () => {
|
|
60
60
|
const { queryByText } = render(<ConceptForm />, renderOpts);
|
|
61
|
+
await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
|
|
61
62
|
await waitFor(() =>
|
|
62
63
|
expect(queryByText(/loading/i)).not.toBeInTheDocument()
|
|
63
64
|
);
|
|
64
|
-
await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
|
|
65
65
|
expect(queryByText("template1")).not.toBeInTheDocument();
|
|
66
66
|
});
|
|
67
67
|
});
|
|
@@ -14,7 +14,7 @@ import ConceptsLoader from "../../components/ConceptsLoader";
|
|
|
14
14
|
|
|
15
15
|
const filters = {
|
|
16
16
|
current: [true],
|
|
17
|
-
status: ["pending_approval", "draft", "rejected", "published"]
|
|
17
|
+
status: ["pending_approval", "draft", "rejected", "published"],
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const ConceptSelectorRow = ({ concept, active, onClick, disabled }) => {
|
|
@@ -44,7 +44,7 @@ ConceptSelectorRow.propTypes = {
|
|
|
44
44
|
concept: PropTypes.object,
|
|
45
45
|
active: PropTypes.bool,
|
|
46
46
|
onClick: PropTypes.func,
|
|
47
|
-
disabled: PropTypes.bool
|
|
47
|
+
disabled: PropTypes.bool,
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
export const ConceptSelector = ({
|
|
@@ -55,7 +55,7 @@ export const ConceptSelector = ({
|
|
|
55
55
|
loadConcepts = true,
|
|
56
56
|
pageSize = 7,
|
|
57
57
|
selectedConcept,
|
|
58
|
-
showTitle = true
|
|
58
|
+
showTitle = true,
|
|
59
59
|
}) => {
|
|
60
60
|
const selectedConceptIsFiltered = !_.reduce(
|
|
61
61
|
(acc, c) => (selectedConcept && c.id == selectedConcept.id) || acc,
|
|
@@ -103,7 +103,7 @@ export const ConceptSelector = ({
|
|
|
103
103
|
/>
|
|
104
104
|
))}
|
|
105
105
|
{selectedConcept && selectedConceptIsFiltered && (
|
|
106
|
-
<ConceptSelectorRow concept={selectedConcept} active
|
|
106
|
+
<ConceptSelectorRow concept={selectedConcept} active />
|
|
107
107
|
)}
|
|
108
108
|
</Table.Body>
|
|
109
109
|
</Table>
|
|
@@ -126,7 +126,7 @@ ConceptSelector.propTypes = {
|
|
|
126
126
|
loadConcepts: PropTypes.bool,
|
|
127
127
|
pageSize: PropTypes.number,
|
|
128
128
|
selectedConcept: PropTypes.object,
|
|
129
|
-
showTitle: PropTypes.bool
|
|
129
|
+
showTitle: PropTypes.bool,
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
const mapStateToProps = ({ concepts }) => ({ concepts });
|
package/src/messages/en.js
CHANGED
|
@@ -253,7 +253,6 @@ export default {
|
|
|
253
253
|
"filters.link_tags._tagless": "Default relation",
|
|
254
254
|
"filters.link_tags.business_concept_to_field_master": "Master relation",
|
|
255
255
|
"filters.shared_to_names": "Shared to",
|
|
256
|
-
"filters.status": "Status",
|
|
257
256
|
"filters.taxonomy": "Domain",
|
|
258
257
|
"filters.template": "Type",
|
|
259
258
|
"navigation.glossary": "Business Glossary",
|
package/src/messages/es.js
CHANGED
|
@@ -255,7 +255,6 @@ export default {
|
|
|
255
255
|
"filters.link_tags._tagless": "Con vínculos sin tipo",
|
|
256
256
|
"filters.link_tags.business_concept_to_field_master": "Con vínculos master",
|
|
257
257
|
"filters.shared_to_names": "Compartido en",
|
|
258
|
-
"filters.status": "Estado",
|
|
259
258
|
"filters.taxonomy": "Dominio",
|
|
260
259
|
"filters.template": "Tipo",
|
|
261
260
|
"navigation.glossary": "Glosario de Negocio",
|