@truedat/dd 7.4.1 → 7.4.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/package.json +6 -6
- package/src/components/StructureGrantDropdown.js +3 -0
- package/src/components/StructureGrantListButton.js +2 -0
- package/src/components/StructureGrantRequestButton.js +3 -0
- package/src/components/__tests__/__snapshots__/StructureGrantDropdown.spec.js.snap +5 -5
- package/src/components/__tests__/__snapshots__/StructureGrantListButton.spec.js.snap +4 -4
- package/src/components/__tests__/__snapshots__/StructureGrantRequestButton.spec.js.snap +1 -1
- package/src/components/__tests__/__snapshots__/StructureGrantSummaryButton.spec.js.snap +5 -5
- package/src/components/__tests__/__snapshots__/StructuresGrantRequestView.spec.js.snap +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dd",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.3",
|
|
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": "7.4.
|
|
37
|
+
"@truedat/test": "7.4.3",
|
|
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",
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@apollo/client": "^3.7.1",
|
|
91
|
-
"@truedat/auth": "7.4.
|
|
92
|
-
"@truedat/core": "7.4.
|
|
93
|
-
"@truedat/df": "7.4.
|
|
91
|
+
"@truedat/auth": "7.4.3",
|
|
92
|
+
"@truedat/core": "7.4.3",
|
|
93
|
+
"@truedat/df": "7.4.3",
|
|
94
94
|
"lodash": "^4.17.21",
|
|
95
95
|
"moment": "^2.29.4",
|
|
96
96
|
"path-to-regexp": "^1.7.0",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"react-dom": ">= 16.8.6 < 17",
|
|
116
116
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "f1e3c9384a5f250bda208b60615aa13c0581a4bc"
|
|
119
119
|
}
|
|
@@ -23,6 +23,7 @@ export const StructureGrantDropdown = ({
|
|
|
23
23
|
authorized,
|
|
24
24
|
requested,
|
|
25
25
|
previousStructureQuery,
|
|
26
|
+
size,
|
|
26
27
|
}) => {
|
|
27
28
|
const history = useHistory();
|
|
28
29
|
const { formatMessage } = useIntl();
|
|
@@ -177,6 +178,7 @@ export const StructureGrantDropdown = ({
|
|
|
177
178
|
direction="left"
|
|
178
179
|
trigger={
|
|
179
180
|
<Button
|
|
181
|
+
size={size || "medium"}
|
|
180
182
|
color={stateProps.color}
|
|
181
183
|
className="button basic icon group-actions"
|
|
182
184
|
icon={iconName || null}
|
|
@@ -201,6 +203,7 @@ StructureGrantDropdown.propTypes = {
|
|
|
201
203
|
authorized: PropTypes.bool,
|
|
202
204
|
requested: PropTypes.bool,
|
|
203
205
|
previousStructureQuery: PropTypes.object,
|
|
206
|
+
size: PropTypes.string,
|
|
204
207
|
};
|
|
205
208
|
|
|
206
209
|
export default StructureGrantDropdown;
|
|
@@ -35,12 +35,14 @@ export const StructureGrantListButton = ({
|
|
|
35
35
|
grantRequest={isActiveRequest ? grantRequest : null}
|
|
36
36
|
grantRequestStatus={grantRequestStatus}
|
|
37
37
|
previousStructureQuery={previousStructureQuery}
|
|
38
|
+
size="mini"
|
|
38
39
|
/>
|
|
39
40
|
) : (
|
|
40
41
|
<StructureGrantRequestButton
|
|
41
42
|
structure={structure}
|
|
42
43
|
requested={requested}
|
|
43
44
|
authorized={authorized_request}
|
|
45
|
+
size="mini"
|
|
44
46
|
/>
|
|
45
47
|
);
|
|
46
48
|
};
|
|
@@ -12,6 +12,7 @@ export const StructureGrantRequestButton = ({
|
|
|
12
12
|
authorized,
|
|
13
13
|
addGrantRequestToCart,
|
|
14
14
|
removeGrantRequestFromCart,
|
|
15
|
+
size,
|
|
15
16
|
}) => {
|
|
16
17
|
const { iconName, hasText } = config?.structureGrantRequestButton || {
|
|
17
18
|
iconName: "shield",
|
|
@@ -41,6 +42,7 @@ export const StructureGrantRequestButton = ({
|
|
|
41
42
|
|
|
42
43
|
const button = (
|
|
43
44
|
<Button
|
|
45
|
+
size={size || "medium"}
|
|
44
46
|
icon={iconName || null}
|
|
45
47
|
content={hasText ? buttonContent : null}
|
|
46
48
|
className="button basic icon group-actions"
|
|
@@ -60,6 +62,7 @@ StructureGrantRequestButton.propTypes = {
|
|
|
60
62
|
requested: PropTypes.bool,
|
|
61
63
|
addGrantRequestToCart: PropTypes.func,
|
|
62
64
|
removeGrantRequestFromCart: PropTypes.func,
|
|
65
|
+
size: PropTypes.string,
|
|
63
66
|
};
|
|
64
67
|
|
|
65
68
|
export default connect(null, {
|
|
@@ -9,7 +9,7 @@ exports[`<StructureGrantDropdown /> matches the latest snapshot for activeGrant
|
|
|
9
9
|
tabindex="0"
|
|
10
10
|
>
|
|
11
11
|
<button
|
|
12
|
-
class="ui green icon button button basic icon group-actions"
|
|
12
|
+
class="ui green medium icon button button basic icon group-actions"
|
|
13
13
|
>
|
|
14
14
|
<i
|
|
15
15
|
aria-hidden="true"
|
|
@@ -47,7 +47,7 @@ exports[`<StructureGrantDropdown /> matches the latest snapshot for pendingReque
|
|
|
47
47
|
tabindex="0"
|
|
48
48
|
>
|
|
49
49
|
<button
|
|
50
|
-
class="ui yellow icon button button basic icon group-actions"
|
|
50
|
+
class="ui yellow medium icon button button basic icon group-actions"
|
|
51
51
|
>
|
|
52
52
|
<i
|
|
53
53
|
aria-hidden="true"
|
|
@@ -99,7 +99,7 @@ exports[`<StructureGrantDropdown /> matches the latest snapshot for pendingReque
|
|
|
99
99
|
tabindex="0"
|
|
100
100
|
>
|
|
101
101
|
<button
|
|
102
|
-
class="ui yellow icon button button basic icon group-actions"
|
|
102
|
+
class="ui yellow medium icon button button basic icon group-actions"
|
|
103
103
|
>
|
|
104
104
|
<i
|
|
105
105
|
aria-hidden="true"
|
|
@@ -151,7 +151,7 @@ exports[`<StructureGrantDropdown /> matches the latest snapshot for processingRe
|
|
|
151
151
|
tabindex="0"
|
|
152
152
|
>
|
|
153
153
|
<button
|
|
154
|
-
class="ui grey icon button button basic icon group-actions"
|
|
154
|
+
class="ui grey medium icon button button basic icon group-actions"
|
|
155
155
|
>
|
|
156
156
|
<i
|
|
157
157
|
aria-hidden="true"
|
|
@@ -189,7 +189,7 @@ exports[`<StructureGrantDropdown /> matches the latest snapshot for processingRe
|
|
|
189
189
|
tabindex="0"
|
|
190
190
|
>
|
|
191
191
|
<button
|
|
192
|
-
class="ui grey icon button button basic icon group-actions"
|
|
192
|
+
class="ui grey medium icon button button basic icon group-actions"
|
|
193
193
|
>
|
|
194
194
|
<i
|
|
195
195
|
aria-hidden="true"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`<StructureGrantListButton /> matches the latest snapshot 1`] = `
|
|
4
4
|
<div>
|
|
5
5
|
<button
|
|
6
|
-
class="ui orange icon button button basic icon group-actions"
|
|
6
|
+
class="ui orange mini icon button button basic icon group-actions"
|
|
7
7
|
>
|
|
8
8
|
<i
|
|
9
9
|
aria-hidden="true"
|
|
@@ -16,7 +16,7 @@ exports[`<StructureGrantListButton /> matches the latest snapshot 1`] = `
|
|
|
16
16
|
exports[`<StructureGrantListButton /> matches the latest snapshot for requested structure 1`] = `
|
|
17
17
|
<div>
|
|
18
18
|
<button
|
|
19
|
-
class="ui orange icon button button basic icon group-actions"
|
|
19
|
+
class="ui orange mini icon button button basic icon group-actions"
|
|
20
20
|
>
|
|
21
21
|
<i
|
|
22
22
|
aria-hidden="true"
|
|
@@ -35,7 +35,7 @@ exports[`<StructureGrantListButton /> matches the latest snapshot with grant 1`]
|
|
|
35
35
|
tabindex="0"
|
|
36
36
|
>
|
|
37
37
|
<button
|
|
38
|
-
class="ui green icon button button basic icon group-actions"
|
|
38
|
+
class="ui green mini icon button button basic icon group-actions"
|
|
39
39
|
>
|
|
40
40
|
<i
|
|
41
41
|
aria-hidden="true"
|
|
@@ -87,7 +87,7 @@ exports[`<StructureGrantListButton /> matches the latest snapshot with grant req
|
|
|
87
87
|
tabindex="0"
|
|
88
88
|
>
|
|
89
89
|
<button
|
|
90
|
-
class="ui yellow icon button button basic icon group-actions"
|
|
90
|
+
class="ui yellow mini icon button button basic icon group-actions"
|
|
91
91
|
>
|
|
92
92
|
<i
|
|
93
93
|
aria-hidden="true"
|
|
@@ -9,7 +9,7 @@ exports[`<StructureGrantSummaryButton /> matches snapshot for active grant and a
|
|
|
9
9
|
tabindex="0"
|
|
10
10
|
>
|
|
11
11
|
<button
|
|
12
|
-
class="ui yellow icon button button basic icon group-actions"
|
|
12
|
+
class="ui yellow medium icon button button basic icon group-actions"
|
|
13
13
|
>
|
|
14
14
|
<i
|
|
15
15
|
aria-hidden="true"
|
|
@@ -61,7 +61,7 @@ exports[`<StructureGrantSummaryButton /> matches snapshot for active grant and i
|
|
|
61
61
|
tabindex="0"
|
|
62
62
|
>
|
|
63
63
|
<button
|
|
64
|
-
class="ui green icon button button basic icon group-actions"
|
|
64
|
+
class="ui green medium icon button button basic icon group-actions"
|
|
65
65
|
>
|
|
66
66
|
<i
|
|
67
67
|
aria-hidden="true"
|
|
@@ -99,7 +99,7 @@ exports[`<StructureGrantSummaryButton /> matches snapshot for no grant and activ
|
|
|
99
99
|
tabindex="0"
|
|
100
100
|
>
|
|
101
101
|
<button
|
|
102
|
-
class="ui yellow icon button button basic icon group-actions"
|
|
102
|
+
class="ui yellow medium icon button button basic icon group-actions"
|
|
103
103
|
>
|
|
104
104
|
<i
|
|
105
105
|
aria-hidden="true"
|
|
@@ -145,7 +145,7 @@ exports[`<StructureGrantSummaryButton /> matches snapshot for no grant and activ
|
|
|
145
145
|
exports[`<StructureGrantSummaryButton /> matches snapshot for no grant and inactive grantRequest 1`] = `
|
|
146
146
|
<div>
|
|
147
147
|
<button
|
|
148
|
-
class="ui orange icon button button basic icon group-actions"
|
|
148
|
+
class="ui orange medium icon button button basic icon group-actions"
|
|
149
149
|
>
|
|
150
150
|
<i
|
|
151
151
|
aria-hidden="true"
|
|
@@ -158,7 +158,7 @@ exports[`<StructureGrantSummaryButton /> matches snapshot for no grant and inact
|
|
|
158
158
|
exports[`<StructureGrantSummaryButton /> matches snapshot for no grant and no grantRequest 1`] = `
|
|
159
159
|
<div>
|
|
160
160
|
<button
|
|
161
|
-
class="ui orange icon button button basic icon group-actions"
|
|
161
|
+
class="ui orange medium icon button button basic icon group-actions"
|
|
162
162
|
>
|
|
163
163
|
<i
|
|
164
164
|
aria-hidden="true"
|
|
@@ -202,7 +202,7 @@ exports[`<StructuresGrantRequestView /> Clicking a grant request button triggers
|
|
|
202
202
|
class="collapsing center aligned one wide"
|
|
203
203
|
>
|
|
204
204
|
<button
|
|
205
|
-
class="ui orange icon button button basic icon group-actions"
|
|
205
|
+
class="ui orange mini icon button button basic icon group-actions"
|
|
206
206
|
>
|
|
207
207
|
<i
|
|
208
208
|
aria-hidden="true"
|
|
@@ -251,7 +251,7 @@ exports[`<StructuresGrantRequestView /> Clicking a grant request button triggers
|
|
|
251
251
|
class="collapsing center aligned one wide"
|
|
252
252
|
>
|
|
253
253
|
<button
|
|
254
|
-
class="ui orange icon button button basic icon group-actions"
|
|
254
|
+
class="ui orange mini icon button button basic icon group-actions"
|
|
255
255
|
>
|
|
256
256
|
<i
|
|
257
257
|
aria-hidden="true"
|
|
@@ -300,7 +300,7 @@ exports[`<StructuresGrantRequestView /> Clicking a grant request button triggers
|
|
|
300
300
|
class="collapsing center aligned one wide"
|
|
301
301
|
>
|
|
302
302
|
<button
|
|
303
|
-
class="ui orange icon button button basic icon group-actions"
|
|
303
|
+
class="ui orange mini icon button button basic icon group-actions"
|
|
304
304
|
>
|
|
305
305
|
<i
|
|
306
306
|
aria-hidden="true"
|