@truedat/dd 4.29.0 → 4.29.1
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 +1 -1
- package/package.json +6 -6
- package/src/components/StructureGrantCartTemplate.js +23 -21
- package/src/components/__tests__/StructureGrantCartTemplate.spec.js +1 -0
- package/src/components/__tests__/__snapshots__/StructureGrantCartTemplate.spec.js.snap +4 -5
- package/src/messages/en.js +3 -2
- package/src/messages/es.js +2 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dd",
|
|
3
|
-
"version": "4.29.
|
|
3
|
+
"version": "4.29.1",
|
|
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.14.1",
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@testing-library/user-event": "^13.2.1",
|
|
37
|
-
"@truedat/test": "4.29.
|
|
37
|
+
"@truedat/test": "4.29.1",
|
|
38
38
|
"babel-jest": "^27.0.6",
|
|
39
39
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
40
40
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@truedat/auth": "4.29.
|
|
88
|
-
"@truedat/core": "4.29.
|
|
89
|
-
"@truedat/df": "4.29.
|
|
87
|
+
"@truedat/auth": "4.29.1",
|
|
88
|
+
"@truedat/core": "4.29.1",
|
|
89
|
+
"@truedat/df": "4.29.1",
|
|
90
90
|
"lodash": "^4.17.21",
|
|
91
91
|
"path-to-regexp": "^1.7.0",
|
|
92
92
|
"prop-types": "^15.7.2",
|
|
@@ -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": "bd33b4258962a80b10ffedf9d222272cd3babaf0"
|
|
111
111
|
}
|
|
@@ -56,30 +56,32 @@ export const StructureGrantCartTemplate = ({
|
|
|
56
56
|
</Header>
|
|
57
57
|
<Divider />
|
|
58
58
|
{!singleTemplate && (
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
59
|
+
<Dropdown
|
|
60
|
+
placeholder={formatMessage({
|
|
61
|
+
id: `structure.grant.cart.template.placeholder`,
|
|
62
|
+
})}
|
|
63
|
+
label={formatMessage({ id: "structureType.template" })}
|
|
64
|
+
name="template_id"
|
|
65
|
+
fluid
|
|
66
|
+
onChange={(_e, { value }) => selectGrantRequestTemplate(value)}
|
|
67
|
+
options={getOptions(templates) || []}
|
|
68
|
+
selection
|
|
69
|
+
clearable
|
|
70
|
+
loading={templatesLoading}
|
|
71
|
+
value={template?.id || ""}
|
|
72
|
+
/>
|
|
73
73
|
)}
|
|
74
74
|
{template ? (
|
|
75
|
-
|
|
76
|
-
<DynamicForm
|
|
77
|
-
onChange={updateGrantRequestTemplateContent}
|
|
78
|
-
template={template}
|
|
79
|
-
content={templateContent}
|
|
80
|
-
/>
|
|
75
|
+
<>
|
|
81
76
|
<Divider />
|
|
82
|
-
|
|
77
|
+
<Form>
|
|
78
|
+
<DynamicForm
|
|
79
|
+
onChange={updateGrantRequestTemplateContent}
|
|
80
|
+
template={template}
|
|
81
|
+
content={templateContent}
|
|
82
|
+
/>
|
|
83
|
+
</Form>
|
|
84
|
+
</>
|
|
83
85
|
) : null}
|
|
84
86
|
</Segment>
|
|
85
87
|
);
|
|
@@ -15,13 +15,12 @@ exports[`<StructureGrantCartTemplate /> matches the latest snapshot 1`] = `
|
|
|
15
15
|
<div
|
|
16
16
|
class="ui divider"
|
|
17
17
|
/>
|
|
18
|
+
<div
|
|
19
|
+
class="ui divider"
|
|
20
|
+
/>
|
|
18
21
|
<form
|
|
19
22
|
class="ui form"
|
|
20
|
-
|
|
21
|
-
<div
|
|
22
|
-
class="ui divider"
|
|
23
|
-
/>
|
|
24
|
-
</form>
|
|
23
|
+
/>
|
|
25
24
|
</div>
|
|
26
25
|
</div>
|
|
27
26
|
`;
|
package/src/messages/en.js
CHANGED
|
@@ -135,8 +135,9 @@ export default {
|
|
|
135
135
|
"structure.grant.has_grant": "You have granted access on this structure",
|
|
136
136
|
"structure.grant.request_grant": "Request grant",
|
|
137
137
|
"structure.grant.requested_grant": "Pending request",
|
|
138
|
-
"structure.grant.cart": "
|
|
139
|
-
"structure.grant.cart.template": "Request
|
|
138
|
+
"structure.grant.cart": "Requested grants",
|
|
139
|
+
"structure.grant.cart.template": "Request information",
|
|
140
|
+
"structure.grant.cart.template.placeholder": "Select request type",
|
|
140
141
|
"structure.grant.cart.filters": "Filters for structure",
|
|
141
142
|
"structure.group": "Group",
|
|
142
143
|
"structure.inserted_at": "Created at",
|
package/src/messages/es.js
CHANGED
|
@@ -138,7 +138,8 @@ export default {
|
|
|
138
138
|
"structure.grant.request_grant": "Solicitar acceso",
|
|
139
139
|
"structure.grant.requested_grant": "Solicitud pendiente",
|
|
140
140
|
"structure.grant.cart": "Accesos a solicitar",
|
|
141
|
-
"structure.grant.cart.template": "
|
|
141
|
+
"structure.grant.cart.template": "Información de solicitud",
|
|
142
|
+
"structure.grant.cart.template.placeholder": "Seleccione tipo de solicitud",
|
|
142
143
|
"structure.grant.cart.filters": "Filtros para la estructura",
|
|
143
144
|
"structure.group": "Grupo",
|
|
144
145
|
"structure.inserted_at": "Importada",
|