@truedat/dd 5.6.3 → 5.6.4
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 +6 -6
- package/src/messages/en.js +6 -0
- package/src/messages/es.js +6 -0
- package/src/selectors/getParsedEvents.js +44 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dd",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.4",
|
|
4
4
|
"description": "Truedat Web Data Dictionary",
|
|
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": "5.6.
|
|
37
|
+
"@truedat/test": "5.6.4",
|
|
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,9 +87,9 @@
|
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"@apollo/client": "^3.7.1",
|
|
90
|
-
"@truedat/auth": "5.6.
|
|
91
|
-
"@truedat/core": "5.6.
|
|
92
|
-
"@truedat/df": "5.6.
|
|
90
|
+
"@truedat/auth": "5.6.4",
|
|
91
|
+
"@truedat/core": "5.6.4",
|
|
92
|
+
"@truedat/df": "5.6.4",
|
|
93
93
|
"lodash": "^4.17.21",
|
|
94
94
|
"moment": "^2.29.4",
|
|
95
95
|
"path-to-regexp": "^1.7.0",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"react-dom": ">= 16.8.6 < 17",
|
|
115
115
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "fbecd33735354811f674678337ae16aaa15b4794"
|
|
118
118
|
}
|
package/src/messages/en.js
CHANGED
|
@@ -545,6 +545,12 @@ export default {
|
|
|
545
545
|
"structures.events.field_tag_linked": "Tag {0} linked with description {1}",
|
|
546
546
|
"structures.events.field_tag_linked_without_value": "Tag {0} linked",
|
|
547
547
|
"structures.events.field_tag_updated": "Tag {0} updated with value {1}",
|
|
548
|
+
"structures.events.field_note_published": "Note published",
|
|
549
|
+
"structures.events.field_note_published_without_value": "Note published",
|
|
550
|
+
"structures.events.field_note_versioned": "Note versioned",
|
|
551
|
+
"structures.events.field_note_versioned_without_value": "Note versioned",
|
|
552
|
+
"structures.events.field_note_updated": "Note updated {1}",
|
|
553
|
+
"structures.events.field_note_updated_without_value": "Note updated {1}",
|
|
548
554
|
"structures.filters": "Filters",
|
|
549
555
|
"structures.filters.reset": "(reset all filters)",
|
|
550
556
|
"structures.header": "Data Catalog",
|
package/src/messages/es.js
CHANGED
|
@@ -559,6 +559,12 @@ export default {
|
|
|
559
559
|
"structures.events.field_tag_linked_without_value": "Etiqueta {0} vinculada",
|
|
560
560
|
"structures.events.field_tag_updated":
|
|
561
561
|
"Etiqueta {0} actualizada con valor {1}",
|
|
562
|
+
"structures.events.field_note_published": "Nota publicada",
|
|
563
|
+
"structures.events.field_note_published_without_value": "Nota publicada",
|
|
564
|
+
"structures.events.field_note_versioned": "Nota versionada",
|
|
565
|
+
"structures.events.field_note_versioned_without_value": "Nota versionada",
|
|
566
|
+
"structures.events.field_note_updated": "Nota actualizada {1}",
|
|
567
|
+
"structures.events.field_note_updated_without_value": "Nota actualizada {1}",
|
|
562
568
|
"structures.filters": "Filtros",
|
|
563
569
|
"structures.filters.reset": "(sin filtros)",
|
|
564
570
|
"structures.header": "Catálogo de datos",
|
|
@@ -11,6 +11,17 @@ const getTemplate = ({ structure, templates }) =>
|
|
|
11
11
|
const transformFieldFormat = (field) =>
|
|
12
12
|
_.isBoolean(field) ? _.toString(field) : field;
|
|
13
13
|
|
|
14
|
+
const transformNotesPayloadFormat = (payload) => {
|
|
15
|
+
const addedFields = payload.content.added;
|
|
16
|
+
|
|
17
|
+
const fieldsArray = Object.keys(addedFields).reduce((acc, field) => {
|
|
18
|
+
if (!_.isEmpty(addedFields[field])) acc.push(field);
|
|
19
|
+
return acc;
|
|
20
|
+
}, []);
|
|
21
|
+
|
|
22
|
+
return fieldsArray.length > 0 ? "(" + fieldsArray.join(", ") + ")" : "";
|
|
23
|
+
};
|
|
24
|
+
|
|
14
25
|
const transformContentField = (field, value, fieldsWithoutValue) =>
|
|
15
26
|
_.includes(field)(fieldsWithoutValue) ||
|
|
16
27
|
_.isObject(value) ||
|
|
@@ -143,6 +154,39 @@ const getParsedEvents = createSelector(
|
|
|
143
154
|
},
|
|
144
155
|
],
|
|
145
156
|
};
|
|
157
|
+
case "structure_note_published":
|
|
158
|
+
return {
|
|
159
|
+
...d,
|
|
160
|
+
payload: [
|
|
161
|
+
{
|
|
162
|
+
field: "",
|
|
163
|
+
action: "note_published",
|
|
164
|
+
value: "",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
};
|
|
168
|
+
case "structure_note_versioned":
|
|
169
|
+
return {
|
|
170
|
+
...d,
|
|
171
|
+
payload: [
|
|
172
|
+
{
|
|
173
|
+
field: "",
|
|
174
|
+
action: "note_versioned",
|
|
175
|
+
value: "",
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
};
|
|
179
|
+
case "structure_note_updated":
|
|
180
|
+
return {
|
|
181
|
+
...d,
|
|
182
|
+
payload: [
|
|
183
|
+
{
|
|
184
|
+
field: "",
|
|
185
|
+
action: "note_updated",
|
|
186
|
+
value: transformNotesPayloadFormat(d["payload"]),
|
|
187
|
+
},
|
|
188
|
+
],
|
|
189
|
+
};
|
|
146
190
|
default:
|
|
147
191
|
return {
|
|
148
192
|
...d,
|