@truedat/dd 7.5.13 → 7.5.14
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/dd",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.14",
|
|
4
4
|
"description": "Truedat Web Data Dictionary",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@testing-library/jest-dom": "^6.6.3",
|
|
49
49
|
"@testing-library/react": "^16.3.0",
|
|
50
50
|
"@testing-library/user-event": "^14.6.1",
|
|
51
|
-
"@truedat/test": "7.5.
|
|
51
|
+
"@truedat/test": "7.5.14",
|
|
52
52
|
"identity-obj-proxy": "^3.0.0",
|
|
53
53
|
"jest": "^29.7.0",
|
|
54
54
|
"redux-saga-test-plan": "^4.0.6"
|
|
@@ -79,10 +79,9 @@
|
|
|
79
79
|
"redux-saga": "^1.3.0",
|
|
80
80
|
"redux-saga-routines": "^3.2.3",
|
|
81
81
|
"reselect": "^5.1.1",
|
|
82
|
-
"semantic-ui-calendar-react": "^0.15.3",
|
|
83
82
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
84
83
|
"svg-pan-zoom": "^3.6.2",
|
|
85
84
|
"swr": "^2.3.3"
|
|
86
85
|
},
|
|
87
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "46d017329f0f074db1feb2304c06ba696bb68a14"
|
|
88
87
|
}
|
|
@@ -7,14 +7,12 @@ import { applyGrantDateFilter } from "../routines";
|
|
|
7
7
|
|
|
8
8
|
export const GrantDateFilter = ({ active, applyGrantDateFilter, ...props }) =>
|
|
9
9
|
active ? (
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/>
|
|
17
|
-
</>
|
|
10
|
+
<DateRangeFilter
|
|
11
|
+
label={<FormattedMessage id="grant.start_date" />}
|
|
12
|
+
name="start_date,end_date"
|
|
13
|
+
onChange={applyGrantDateFilter}
|
|
14
|
+
defaultValues={props}
|
|
15
|
+
/>
|
|
18
16
|
) : null;
|
|
19
17
|
|
|
20
18
|
GrantDateFilter.propTypes = {
|
|
@@ -8,7 +8,10 @@ describe("<GrantDateFilter />", () => {
|
|
|
8
8
|
userPermissions: { update: true },
|
|
9
9
|
},
|
|
10
10
|
};
|
|
11
|
-
const rendered = render(
|
|
11
|
+
const rendered = render(
|
|
12
|
+
<GrantDateFilter active={true} applyGrantDateFilter={() => {}} />,
|
|
13
|
+
renderOpts
|
|
14
|
+
);
|
|
12
15
|
await waitForLoad(rendered);
|
|
13
16
|
expect(rendered.container).toMatchSnapshot();
|
|
14
17
|
});
|
|
@@ -3,22 +3,31 @@
|
|
|
3
3
|
exports[`<GrantDateFilter /> matches the latest snapshot 1`] = `
|
|
4
4
|
<div>
|
|
5
5
|
<div
|
|
6
|
-
class="
|
|
6
|
+
class="inline fields"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
class="
|
|
9
|
+
class="field"
|
|
10
10
|
>
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
<div
|
|
12
|
+
class="ui input"
|
|
13
|
+
>
|
|
14
|
+
<input
|
|
15
|
+
type="date"
|
|
16
|
+
value=""
|
|
17
|
+
/>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div
|
|
21
|
+
class="field"
|
|
22
|
+
>
|
|
23
|
+
<div
|
|
24
|
+
class="ui input"
|
|
25
|
+
>
|
|
26
|
+
<input
|
|
27
|
+
type="date"
|
|
28
|
+
value=""
|
|
29
|
+
/>
|
|
30
|
+
</div>
|
|
22
31
|
</div>
|
|
23
32
|
</div>
|
|
24
33
|
</div>
|
|
@@ -8,9 +8,8 @@ export const initialState = {
|
|
|
8
8
|
active: false,
|
|
9
9
|
name: "start_date,end_date",
|
|
10
10
|
type: "range",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
value: "1",
|
|
11
|
+
rangeStart: "",
|
|
12
|
+
rangeEnd: "",
|
|
14
13
|
};
|
|
15
14
|
|
|
16
15
|
export const grantDateFilter = (state = initialState, { type, payload }) => {
|