@truedat/dd 6.10.1 → 6.10.2
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 +5 -5
- package/src/components/GrantRequestBulkActions.js +67 -90
- package/src/components/GrantRequestBulkApprovalForm.js +1 -0
- package/src/components/GrantRequestBulkRoleSelector.js +0 -3
- package/src/components/GrantRequestRow.js +6 -8
- package/src/components/GrantRequestsLabelResults.js +31 -42
- package/src/components/GrantRequestsSearchResults.js +88 -107
- package/src/components/GrantRequestsTable.js +22 -51
- package/src/components/GrantRoutes.js +32 -19
- package/src/components/__tests__/GrantRequestBulkActions.spec.js +101 -8
- package/src/components/__tests__/GrantRequestRow.spec.js +3 -4
- package/src/components/__tests__/GrantRequestsLabelResults.spec.js +21 -9
- package/src/components/__tests__/GrantRequestsSearchResults.spec.js +21 -21
- package/src/components/__tests__/GrantRequestsTable.spec.js +26 -9
- package/src/components/__tests__/__snapshots__/GrantRequestBulkActions.spec.js.snap +48 -34
- package/src/components/__tests__/__snapshots__/GrantRequestBulkApprovalForm.spec.js.snap +1 -0
- package/src/components/__tests__/__snapshots__/GrantRequestBulkRoleSelector.spec.js.snap +0 -1
- package/src/components/__tests__/__snapshots__/GrantRequestRow.spec.js.snap +20 -0
- package/src/components/__tests__/__snapshots__/GrantRequestsLabelResults.spec.js.snap +25 -12
- package/src/components/__tests__/__snapshots__/GrantRequestsSearchResults.spec.js.snap +182 -120
- package/src/components/__tests__/__snapshots__/GrantRequestsTable.spec.js.snap +109 -11
- package/src/components/index.js +0 -4
- package/src/hooks/useGrantRequest.js +13 -0
- package/src/reducers/index.js +0 -24
- package/src/routines.js +2 -33
- package/src/sagas/index.js +0 -3
- package/src/selectors/index.js +0 -6
- package/src/components/GrantRequestPagination.js +0 -18
- package/src/components/GrantRequestSearchFilters.js +0 -23
- package/src/components/GrantRequestsFiltersLoader.js +0 -33
- package/src/components/GrantRequestsSearch.js +0 -35
- package/src/components/GrantRequestsSearchLoader.js +0 -47
- package/src/components/GrantRequestsSelectedFilters.js +0 -55
- package/src/components/__tests__/GrantRequestFiltersLoader.spec.js +0 -20
- package/src/components/__tests__/GrantRequestSearchFilters.spec.js +0 -19
- package/src/components/__tests__/GrantRequestsSearch.spec.js +0 -23
- package/src/components/__tests__/GrantRequestsSearchLoader.spec.js +0 -15
- package/src/components/__tests__/__snapshots__/GrantRequestSearchFilters.spec.js.snap +0 -47
- package/src/components/__tests__/__snapshots__/GrantRequestsSearch.spec.js.snap +0 -50
- package/src/components/__tests__/__snapshots__/GrantRequestsSearchLoader.spec.js.snap +0 -3
- package/src/reducers/__tests__/grantRequestCount.spec.js +0 -38
- package/src/reducers/__tests__/grantRequestPageSize.spec.js +0 -36
- package/src/reducers/__tests__/grantRequestPermissions.spec.js +0 -66
- package/src/reducers/__tests__/grantRequestsActiveFilters.spec.js +0 -90
- package/src/reducers/__tests__/grantRequestsFiltersLoading.spec.js +0 -34
- package/src/reducers/__tests__/grantRequestsSearch.spec.js +0 -38
- package/src/reducers/__tests__/grantRequestsSearchLoading.spec.js +0 -36
- package/src/reducers/__tests__/grantRequestsSearchQuery.spec.js +0 -96
- package/src/reducers/__tests__/grantRequestsSelectedFilter.spec.js +0 -72
- package/src/reducers/grantRequestCount.js +0 -23
- package/src/reducers/grantRequestPageSize.js +0 -15
- package/src/reducers/grantRequestPermissions.js +0 -36
- package/src/reducers/grantRequestSearchQuery.js +0 -60
- package/src/reducers/grantRequestsActiveFilters.js +0 -58
- package/src/reducers/grantRequestsFilters.js +0 -23
- package/src/reducers/grantRequestsFiltersLoading.js +0 -14
- package/src/reducers/grantRequestsSearch.js +0 -19
- package/src/reducers/grantRequestsSearchLoading.js +0 -14
- package/src/reducers/grantRequestsSelectedFilter.js +0 -34
- package/src/sagas/__tests__/fetchGrantRequestsSearch.spec.js +0 -92
- package/src/sagas/fetchGrantRequestsSearch.js +0 -30
- package/src/selectors/__tests__/getGrantRequestsAvailableFilters.spec.js +0 -15
- package/src/selectors/__tests__/getGrantRequestsFilterTypes.spec.js +0 -19
- package/src/selectors/__tests__/getGrantRequestsSearchQuery.spec.js +0 -24
- package/src/selectors/__tests__/getGrantRequestsSelectedFilterActiveValues.spec.js +0 -15
- package/src/selectors/__tests__/getGrantRequestsSelectedFilterValues.spec.js +0 -15
- package/src/selectors/__tests__/getGrantRequestsSelectedFilters.spec.js +0 -13
- package/src/selectors/getGrantRequestsAvailableFilters.js +0 -17
- package/src/selectors/getGrantRequestsFilterTypes.js +0 -7
- package/src/selectors/getGrantRequestsSearchQuery.js +0 -19
- package/src/selectors/getGrantRequestsSelectedFilterActiveValues.js +0 -8
- package/src/selectors/getGrantRequestsSelectedFilterValues.js +0 -12
- package/src/selectors/getGrantRequestsSelectedFilters.js +0 -10
|
@@ -7,6 +7,26 @@ exports[`<GrantRequestRow /> disable checkbox when can not Approve 1`] = `
|
|
|
7
7
|
<tr
|
|
8
8
|
class="active warning"
|
|
9
9
|
>
|
|
10
|
+
<td
|
|
11
|
+
class="collapsing center aligned one wide"
|
|
12
|
+
>
|
|
13
|
+
<div
|
|
14
|
+
class="ui checked fitted checkbox"
|
|
15
|
+
>
|
|
16
|
+
<input
|
|
17
|
+
checked=""
|
|
18
|
+
class="hidden"
|
|
19
|
+
id="1"
|
|
20
|
+
readonly=""
|
|
21
|
+
tabindex="0"
|
|
22
|
+
type="checkbox"
|
|
23
|
+
value=""
|
|
24
|
+
/>
|
|
25
|
+
<label
|
|
26
|
+
for="1"
|
|
27
|
+
/>
|
|
28
|
+
</div>
|
|
29
|
+
</td>
|
|
10
30
|
<td
|
|
11
31
|
class=""
|
|
12
32
|
>
|
|
@@ -3,24 +3,28 @@
|
|
|
3
3
|
exports[`<GrantRequestsLabelResults /> When is loading 1`] = `
|
|
4
4
|
<div>
|
|
5
5
|
<div
|
|
6
|
-
class="
|
|
6
|
+
class="grant-requests-bulk-label-results"
|
|
7
7
|
>
|
|
8
|
-
|
|
8
|
+
<div
|
|
9
|
+
class="ui label"
|
|
10
|
+
>
|
|
11
|
+
searching
|
|
12
|
+
</div>
|
|
9
13
|
</div>
|
|
14
|
+
,
|
|
10
15
|
</div>
|
|
11
16
|
`;
|
|
12
17
|
|
|
13
|
-
exports[`<GrantRequestsLabelResults /> When
|
|
18
|
+
exports[`<GrantRequestsLabelResults /> When not in approve view 1`] = `
|
|
14
19
|
<div>
|
|
15
20
|
<div
|
|
16
|
-
class="
|
|
21
|
+
class="grant-requests-bulk-label-results"
|
|
17
22
|
>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
selected
|
|
23
|
+
<div
|
|
24
|
+
class="ui label"
|
|
25
|
+
>
|
|
26
|
+
results
|
|
27
|
+
</div>
|
|
24
28
|
</div>
|
|
25
29
|
</div>
|
|
26
30
|
`;
|
|
@@ -28,9 +32,18 @@ exports[`<GrantRequestsLabelResults /> When role is not selected 1`] = `
|
|
|
28
32
|
exports[`<GrantRequestsLabelResults /> matches the latest snapshot 1`] = `
|
|
29
33
|
<div>
|
|
30
34
|
<div
|
|
31
|
-
class="
|
|
35
|
+
class="grant-requests-bulk-label-results"
|
|
32
36
|
>
|
|
33
|
-
|
|
37
|
+
<div
|
|
38
|
+
class="ui label"
|
|
39
|
+
>
|
|
40
|
+
results
|
|
41
|
+
</div>
|
|
42
|
+
<div
|
|
43
|
+
class="ui label"
|
|
44
|
+
>
|
|
45
|
+
selected
|
|
46
|
+
</div>
|
|
34
47
|
</div>
|
|
35
48
|
</div>
|
|
36
49
|
`;
|
|
@@ -29,151 +29,146 @@ exports[`<GrantRequestsSearchResults /> matches the latest snapshot 1`] = `
|
|
|
29
29
|
<div
|
|
30
30
|
class="grant-requests-bulk-actions"
|
|
31
31
|
>
|
|
32
|
-
<div
|
|
33
|
-
class="right aligned four wide column"
|
|
34
|
-
>
|
|
32
|
+
<div>
|
|
35
33
|
<div
|
|
36
|
-
|
|
37
|
-
aria-expanded="false"
|
|
38
|
-
class="ui selection dropdown grant-requests-bulk-role-selector"
|
|
39
|
-
role="listbox"
|
|
40
|
-
tabindex="0"
|
|
34
|
+
class="ui action left icon input"
|
|
41
35
|
>
|
|
42
|
-
<div
|
|
43
|
-
aria-atomic="true"
|
|
44
|
-
aria-live="polite"
|
|
45
|
-
class="divider default text"
|
|
46
|
-
role="alert"
|
|
47
|
-
>
|
|
48
|
-
select
|
|
49
|
-
</div>
|
|
50
36
|
<i
|
|
51
37
|
aria-hidden="true"
|
|
52
|
-
class="
|
|
38
|
+
class="search link icon"
|
|
39
|
+
/>
|
|
40
|
+
<input
|
|
41
|
+
placeholder="placeholder"
|
|
42
|
+
type="text"
|
|
43
|
+
value=""
|
|
53
44
|
/>
|
|
54
45
|
<div
|
|
55
|
-
|
|
46
|
+
aria-expanded="false"
|
|
47
|
+
class="ui button floating labeled scrolling dropdown icon"
|
|
48
|
+
role="listbox"
|
|
49
|
+
tabindex="0"
|
|
56
50
|
>
|
|
57
51
|
<div
|
|
58
|
-
aria-
|
|
59
|
-
aria-
|
|
60
|
-
class="
|
|
61
|
-
role="
|
|
62
|
-
style="pointer-events: all;"
|
|
52
|
+
aria-atomic="true"
|
|
53
|
+
aria-live="polite"
|
|
54
|
+
class="divider text"
|
|
55
|
+
role="alert"
|
|
63
56
|
>
|
|
64
|
-
|
|
65
|
-
class="text"
|
|
66
|
-
>
|
|
67
|
-
bar
|
|
68
|
-
</span>
|
|
57
|
+
Filters
|
|
69
58
|
</div>
|
|
59
|
+
<i
|
|
60
|
+
aria-hidden="true"
|
|
61
|
+
class="filter icon"
|
|
62
|
+
/>
|
|
70
63
|
<div
|
|
71
|
-
|
|
72
|
-
aria-selected="false"
|
|
73
|
-
class="item"
|
|
74
|
-
role="option"
|
|
75
|
-
style="pointer-events: all;"
|
|
64
|
+
class="menu transition"
|
|
76
65
|
>
|
|
77
|
-
<
|
|
78
|
-
class="
|
|
66
|
+
<div
|
|
67
|
+
class="item"
|
|
68
|
+
role="option"
|
|
79
69
|
>
|
|
80
|
-
|
|
81
|
-
|
|
70
|
+
<em>
|
|
71
|
+
(reset filters)
|
|
72
|
+
</em>
|
|
73
|
+
</div>
|
|
82
74
|
</div>
|
|
83
75
|
</div>
|
|
84
76
|
</div>
|
|
85
|
-
<button
|
|
86
|
-
class="ui primary disabled button button icon group-actions"
|
|
87
|
-
disabled=""
|
|
88
|
-
tabindex="-1"
|
|
89
|
-
>
|
|
90
|
-
approve
|
|
91
|
-
</button>
|
|
92
|
-
<button
|
|
93
|
-
class="ui secondary disabled button button icon group-actions"
|
|
94
|
-
disabled=""
|
|
95
|
-
tabindex="-1"
|
|
96
|
-
>
|
|
97
|
-
reject
|
|
98
|
-
</button>
|
|
99
|
-
</div>
|
|
100
|
-
</div>
|
|
101
|
-
<div
|
|
102
|
-
class="ui action left icon input"
|
|
103
|
-
>
|
|
104
|
-
<input
|
|
105
|
-
placeholder="placeholder"
|
|
106
|
-
type="text"
|
|
107
|
-
value=""
|
|
108
|
-
/>
|
|
109
|
-
<i
|
|
110
|
-
aria-hidden="true"
|
|
111
|
-
class="search link icon"
|
|
112
|
-
/>
|
|
113
|
-
<div
|
|
114
|
-
aria-expanded="false"
|
|
115
|
-
class="ui button floating labeled scrolling dropdown icon"
|
|
116
|
-
role="listbox"
|
|
117
|
-
tabindex="0"
|
|
118
|
-
>
|
|
119
77
|
<div
|
|
120
|
-
|
|
121
|
-
aria-live="polite"
|
|
122
|
-
class="divider text"
|
|
123
|
-
role="alert"
|
|
124
|
-
>
|
|
125
|
-
Filters
|
|
126
|
-
</div>
|
|
127
|
-
<i
|
|
128
|
-
aria-hidden="true"
|
|
129
|
-
class="filter icon"
|
|
78
|
+
class="selectedFilters"
|
|
130
79
|
/>
|
|
80
|
+
</div>
|
|
81
|
+
<div>
|
|
131
82
|
<div
|
|
132
|
-
class="
|
|
83
|
+
class="row grant-requests-approve-actions"
|
|
133
84
|
>
|
|
134
85
|
<div
|
|
135
|
-
class="
|
|
136
|
-
role="option"
|
|
86
|
+
class="five wide column"
|
|
137
87
|
>
|
|
138
|
-
<
|
|
139
|
-
|
|
140
|
-
|
|
88
|
+
<div
|
|
89
|
+
class="ui buttons"
|
|
90
|
+
>
|
|
91
|
+
<button
|
|
92
|
+
class="ui active icon button"
|
|
93
|
+
>
|
|
94
|
+
Approve view
|
|
95
|
+
</button>
|
|
96
|
+
<button
|
|
97
|
+
class="ui icon button"
|
|
98
|
+
>
|
|
99
|
+
Search view
|
|
100
|
+
</button>
|
|
101
|
+
</div>
|
|
141
102
|
</div>
|
|
142
103
|
</div>
|
|
143
|
-
</div>
|
|
144
|
-
</div>
|
|
145
|
-
<div
|
|
146
|
-
class="selectedFilters"
|
|
147
|
-
>
|
|
148
|
-
<div
|
|
149
|
-
class="appliedFilters"
|
|
150
|
-
>
|
|
151
|
-
Filters:
|
|
152
|
-
</div>
|
|
153
|
-
<div
|
|
154
|
-
aria-expanded="false"
|
|
155
|
-
class="ui floating item scrolling dropdown"
|
|
156
|
-
role="listbox"
|
|
157
|
-
tabindex="0"
|
|
158
|
-
>
|
|
159
104
|
<div
|
|
160
|
-
class="
|
|
105
|
+
class="row"
|
|
161
106
|
>
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
107
|
+
<div
|
|
108
|
+
class="right aligned five wide column"
|
|
109
|
+
>
|
|
110
|
+
<div
|
|
111
|
+
aria-expanded="false"
|
|
112
|
+
class="ui selection dropdown grant-requests-bulk-role-selector"
|
|
113
|
+
role="listbox"
|
|
114
|
+
tabindex="0"
|
|
115
|
+
>
|
|
116
|
+
<div
|
|
117
|
+
aria-atomic="true"
|
|
118
|
+
aria-live="polite"
|
|
119
|
+
class="divider text"
|
|
120
|
+
role="alert"
|
|
121
|
+
>
|
|
122
|
+
foo
|
|
123
|
+
</div>
|
|
124
|
+
<i
|
|
125
|
+
aria-hidden="true"
|
|
126
|
+
class="dropdown icon"
|
|
127
|
+
/>
|
|
128
|
+
<div
|
|
129
|
+
class="menu transition"
|
|
130
|
+
>
|
|
131
|
+
<div
|
|
132
|
+
aria-checked="false"
|
|
133
|
+
aria-selected="false"
|
|
134
|
+
class="item"
|
|
135
|
+
role="option"
|
|
136
|
+
style="pointer-events: all;"
|
|
137
|
+
>
|
|
138
|
+
<span
|
|
139
|
+
class="text"
|
|
140
|
+
>
|
|
141
|
+
bar
|
|
142
|
+
</span>
|
|
143
|
+
</div>
|
|
144
|
+
<div
|
|
145
|
+
aria-checked="true"
|
|
146
|
+
aria-selected="true"
|
|
147
|
+
class="active selected item"
|
|
148
|
+
role="option"
|
|
149
|
+
style="pointer-events: all;"
|
|
150
|
+
>
|
|
151
|
+
<span
|
|
152
|
+
class="text"
|
|
153
|
+
>
|
|
154
|
+
foo
|
|
155
|
+
</span>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
<button
|
|
160
|
+
class="ui primary button button icon group-actions"
|
|
161
|
+
>
|
|
162
|
+
approve
|
|
163
|
+
</button>
|
|
164
|
+
<button
|
|
165
|
+
class="ui secondary button button icon group-actions"
|
|
166
|
+
>
|
|
167
|
+
reject
|
|
168
|
+
</button>
|
|
169
|
+
</div>
|
|
167
170
|
</div>
|
|
168
|
-
<div
|
|
169
|
-
class="menu transition dimmable"
|
|
170
|
-
/>
|
|
171
171
|
</div>
|
|
172
|
-
<a
|
|
173
|
-
class="resetFilters"
|
|
174
|
-
>
|
|
175
|
-
Clear filters
|
|
176
|
-
</a>
|
|
177
172
|
</div>
|
|
178
173
|
<div
|
|
179
174
|
class="dimmable"
|
|
@@ -190,9 +185,18 @@ exports[`<GrantRequestsSearchResults /> matches the latest snapshot 1`] = `
|
|
|
190
185
|
</div>
|
|
191
186
|
</div>
|
|
192
187
|
<div
|
|
193
|
-
class="
|
|
188
|
+
class="grant-requests-bulk-label-results"
|
|
194
189
|
>
|
|
195
|
-
|
|
190
|
+
<div
|
|
191
|
+
class="ui label"
|
|
192
|
+
>
|
|
193
|
+
results
|
|
194
|
+
</div>
|
|
195
|
+
<div
|
|
196
|
+
class="ui label"
|
|
197
|
+
>
|
|
198
|
+
selected
|
|
199
|
+
</div>
|
|
196
200
|
</div>
|
|
197
201
|
<table
|
|
198
202
|
class="ui selectable sortable table"
|
|
@@ -203,6 +207,25 @@ exports[`<GrantRequestsSearchResults /> matches the latest snapshot 1`] = `
|
|
|
203
207
|
<tr
|
|
204
208
|
class=""
|
|
205
209
|
>
|
|
210
|
+
<th
|
|
211
|
+
class="center aligned"
|
|
212
|
+
>
|
|
213
|
+
<div
|
|
214
|
+
class="ui fitted checkbox"
|
|
215
|
+
>
|
|
216
|
+
<input
|
|
217
|
+
class="hidden"
|
|
218
|
+
id="selectGrantRequest"
|
|
219
|
+
readonly=""
|
|
220
|
+
tabindex="0"
|
|
221
|
+
type="checkbox"
|
|
222
|
+
value=""
|
|
223
|
+
/>
|
|
224
|
+
<label
|
|
225
|
+
for="selectGrantRequest"
|
|
226
|
+
/>
|
|
227
|
+
</div>
|
|
228
|
+
</th>
|
|
206
229
|
<th
|
|
207
230
|
class=""
|
|
208
231
|
>
|
|
@@ -214,7 +237,7 @@ exports[`<GrantRequestsSearchResults /> matches the latest snapshot 1`] = `
|
|
|
214
237
|
data_structure
|
|
215
238
|
</th>
|
|
216
239
|
<th
|
|
217
|
-
class="
|
|
240
|
+
class="disabled"
|
|
218
241
|
>
|
|
219
242
|
path
|
|
220
243
|
</th>
|
|
@@ -236,6 +259,25 @@ exports[`<GrantRequestsSearchResults /> matches the latest snapshot 1`] = `
|
|
|
236
259
|
<tr
|
|
237
260
|
class=""
|
|
238
261
|
>
|
|
262
|
+
<td
|
|
263
|
+
class="collapsing center aligned one wide"
|
|
264
|
+
>
|
|
265
|
+
<div
|
|
266
|
+
class="ui fitted checkbox"
|
|
267
|
+
>
|
|
268
|
+
<input
|
|
269
|
+
class="hidden"
|
|
270
|
+
id="1"
|
|
271
|
+
readonly=""
|
|
272
|
+
tabindex="0"
|
|
273
|
+
type="checkbox"
|
|
274
|
+
value=""
|
|
275
|
+
/>
|
|
276
|
+
<label
|
|
277
|
+
for="1"
|
|
278
|
+
/>
|
|
279
|
+
</div>
|
|
280
|
+
</td>
|
|
239
281
|
<td
|
|
240
282
|
class=""
|
|
241
283
|
>
|
|
@@ -259,6 +301,25 @@ exports[`<GrantRequestsSearchResults /> matches the latest snapshot 1`] = `
|
|
|
259
301
|
<tr
|
|
260
302
|
class=""
|
|
261
303
|
>
|
|
304
|
+
<td
|
|
305
|
+
class="collapsing center aligned one wide"
|
|
306
|
+
>
|
|
307
|
+
<div
|
|
308
|
+
class="ui fitted checkbox"
|
|
309
|
+
>
|
|
310
|
+
<input
|
|
311
|
+
class="hidden"
|
|
312
|
+
id="2"
|
|
313
|
+
readonly=""
|
|
314
|
+
tabindex="0"
|
|
315
|
+
type="checkbox"
|
|
316
|
+
value=""
|
|
317
|
+
/>
|
|
318
|
+
<label
|
|
319
|
+
for="2"
|
|
320
|
+
/>
|
|
321
|
+
</div>
|
|
322
|
+
</td>
|
|
262
323
|
<td
|
|
263
324
|
class=""
|
|
264
325
|
>
|
|
@@ -284,5 +345,6 @@ exports[`<GrantRequestsSearchResults /> matches the latest snapshot 1`] = `
|
|
|
284
345
|
</div>
|
|
285
346
|
</div>
|
|
286
347
|
</div>
|
|
348
|
+
,
|
|
287
349
|
</div>
|
|
288
350
|
`;
|
|
@@ -2,18 +2,116 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`<GrantRequestsTable /> matches the latest snapshot 1`] = `
|
|
4
4
|
<div>
|
|
5
|
-
<
|
|
6
|
-
class="ui
|
|
5
|
+
<table
|
|
6
|
+
class="ui selectable sortable table"
|
|
7
7
|
>
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
class="search icon"
|
|
11
|
-
/>
|
|
12
|
-
<div
|
|
13
|
-
class="content"
|
|
8
|
+
<thead
|
|
9
|
+
class=""
|
|
14
10
|
>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
<tr
|
|
12
|
+
class=""
|
|
13
|
+
>
|
|
14
|
+
<th
|
|
15
|
+
class="center aligned"
|
|
16
|
+
>
|
|
17
|
+
<div
|
|
18
|
+
class="ui checked fitted checkbox"
|
|
19
|
+
>
|
|
20
|
+
<input
|
|
21
|
+
checked=""
|
|
22
|
+
class="hidden"
|
|
23
|
+
id="selectGrantRequest"
|
|
24
|
+
readonly=""
|
|
25
|
+
tabindex="0"
|
|
26
|
+
type="checkbox"
|
|
27
|
+
value=""
|
|
28
|
+
/>
|
|
29
|
+
<label
|
|
30
|
+
for="selectGrantRequest"
|
|
31
|
+
/>
|
|
32
|
+
</div>
|
|
33
|
+
</th>
|
|
34
|
+
<th
|
|
35
|
+
class=""
|
|
36
|
+
>
|
|
37
|
+
user
|
|
38
|
+
</th>
|
|
39
|
+
<th
|
|
40
|
+
class=""
|
|
41
|
+
>
|
|
42
|
+
data_structure
|
|
43
|
+
</th>
|
|
44
|
+
<th
|
|
45
|
+
class="disabled"
|
|
46
|
+
>
|
|
47
|
+
path
|
|
48
|
+
</th>
|
|
49
|
+
<th
|
|
50
|
+
class="two wide"
|
|
51
|
+
>
|
|
52
|
+
current_status
|
|
53
|
+
</th>
|
|
54
|
+
<th
|
|
55
|
+
class="two wide ascending sorted"
|
|
56
|
+
>
|
|
57
|
+
inserted_at
|
|
58
|
+
</th>
|
|
59
|
+
</tr>
|
|
60
|
+
</thead>
|
|
61
|
+
<tbody
|
|
62
|
+
class=""
|
|
63
|
+
>
|
|
64
|
+
<tr
|
|
65
|
+
class=""
|
|
66
|
+
>
|
|
67
|
+
<td
|
|
68
|
+
class="collapsing center aligned one wide"
|
|
69
|
+
>
|
|
70
|
+
<div
|
|
71
|
+
class="ui fitted checkbox"
|
|
72
|
+
>
|
|
73
|
+
<input
|
|
74
|
+
class="hidden"
|
|
75
|
+
id="55"
|
|
76
|
+
readonly=""
|
|
77
|
+
tabindex="0"
|
|
78
|
+
type="checkbox"
|
|
79
|
+
value=""
|
|
80
|
+
/>
|
|
81
|
+
<label
|
|
82
|
+
for="55"
|
|
83
|
+
/>
|
|
84
|
+
</div>
|
|
85
|
+
</td>
|
|
86
|
+
<td
|
|
87
|
+
class=""
|
|
88
|
+
>
|
|
89
|
+
null
|
|
90
|
+
</td>
|
|
91
|
+
<td
|
|
92
|
+
class=""
|
|
93
|
+
/>
|
|
94
|
+
<td
|
|
95
|
+
class=""
|
|
96
|
+
>
|
|
97
|
+
|
|
98
|
+
</td>
|
|
99
|
+
<td
|
|
100
|
+
class=""
|
|
101
|
+
>
|
|
102
|
+
pending
|
|
103
|
+
</td>
|
|
104
|
+
<td
|
|
105
|
+
class="center aligned"
|
|
106
|
+
>
|
|
107
|
+
<time
|
|
108
|
+
datetime="1642157752059"
|
|
109
|
+
>
|
|
110
|
+
2022-01-14 10:55
|
|
111
|
+
</time>
|
|
112
|
+
</td>
|
|
113
|
+
</tr>
|
|
114
|
+
</tbody>
|
|
115
|
+
</table>
|
|
18
116
|
</div>
|
|
19
117
|
`;
|
package/src/components/index.js
CHANGED
|
@@ -5,9 +5,7 @@ import GrantRoutes from "./GrantRoutes";
|
|
|
5
5
|
import GrantRequestBulkActions from "./GrantRequestBulkActions";
|
|
6
6
|
import GrantRequestsTable from "./GrantRequestsTable";
|
|
7
7
|
import GrantRequestRow from "./GrantRequestRow";
|
|
8
|
-
import GrantRequestPagination from "./GrantRequestPagination";
|
|
9
8
|
import GrantSelectedFilters from "./GrantSelectedFilters";
|
|
10
|
-
import GrantRequestsSelectedFilters from "./GrantRequestsSelectedFilters";
|
|
11
9
|
import GrantsTable from "./GrantsTable";
|
|
12
10
|
import LineageDefs from "./LineageDefs";
|
|
13
11
|
import LineageDownloadButton from "./LineageDownloadButton";
|
|
@@ -60,8 +58,6 @@ export {
|
|
|
60
58
|
GrantRequestBulkActions,
|
|
61
59
|
GrantRequestsTable,
|
|
62
60
|
GrantRequestRow,
|
|
63
|
-
GrantRequestsSelectedFilters,
|
|
64
|
-
GrantRequestPagination,
|
|
65
61
|
GrantRoutes,
|
|
66
62
|
GrantSelectedFilters,
|
|
67
63
|
GrantsTable,
|
|
@@ -3,6 +3,8 @@ import { apiJsonPost } from "@truedat/core/services/api";
|
|
|
3
3
|
import {
|
|
4
4
|
API_GRANT_REQUEST_BULK_APPROVAL,
|
|
5
5
|
API_GRANT_REQUEST_GROUP,
|
|
6
|
+
API_GRANT_REQUESTS_SEARCH,
|
|
7
|
+
API_GRANT_REQUESTS_FILTERS_SEARCH,
|
|
6
8
|
} from "../api";
|
|
7
9
|
|
|
8
10
|
export const useGrantRequestBulkApproval = () => {
|
|
@@ -16,3 +18,14 @@ export const useGrantRequestGroup = () => {
|
|
|
16
18
|
apiJsonPost(url, arg)
|
|
17
19
|
);
|
|
18
20
|
};
|
|
21
|
+
export const useGrantRequestsSearch = () => {
|
|
22
|
+
return useSWRMutations(API_GRANT_REQUESTS_SEARCH, (url, { arg }) =>
|
|
23
|
+
apiJsonPost(url, arg)
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const useGrantRequestsFilters = () => {
|
|
28
|
+
return useSWRMutations(API_GRANT_REQUESTS_FILTERS_SEARCH, (url, { arg }) =>
|
|
29
|
+
apiJsonPost(url, arg)
|
|
30
|
+
);
|
|
31
|
+
};
|