@truedat/df 7.5.13 → 7.5.15
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 +4 -5
- package/src/components/widgets/DateField.js +9 -16
- package/src/components/widgets/DateTimeField.js +4 -9
- package/src/components/widgets/__tests__/__snapshots__/DateField.spec.js.snap +2 -8
- package/src/components/widgets/__tests__/__snapshots__/DateTimeField.spec.js.snap +2 -8
- package/src/components/widgets/__tests__/__snapshots__/DynamicField.spec.js.snap +4 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/df",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.15",
|
|
4
4
|
"description": "Truedat Web Data Quality Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -48,14 +48,14 @@
|
|
|
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.15",
|
|
52
52
|
"identity-obj-proxy": "^3.0.0",
|
|
53
53
|
"jest": "^29.7.0",
|
|
54
54
|
"redux-saga-test-plan": "^4.0.6"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@apollo/client": "^3.13.8",
|
|
58
|
-
"@truedat/core": "7.5.
|
|
58
|
+
"@truedat/core": "7.5.15",
|
|
59
59
|
"axios": "^1.9.0",
|
|
60
60
|
"graphql": "^16.11.0",
|
|
61
61
|
"is-hotkey": "^0.2.0",
|
|
@@ -81,9 +81,8 @@
|
|
|
81
81
|
"redux-saga": "^1.3.0",
|
|
82
82
|
"redux-saga-routines": "^3.2.3",
|
|
83
83
|
"reselect": "^5.1.1",
|
|
84
|
-
"semantic-ui-calendar-react": "^0.15.3",
|
|
85
84
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
86
85
|
"swr": "^2.3.3"
|
|
87
86
|
},
|
|
88
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "04f73182eb588f745d0f5ff18181f5612dd5b936"
|
|
89
88
|
}
|
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
|
-
import {
|
|
3
|
+
import { Form } from "semantic-ui-react";
|
|
4
4
|
|
|
5
|
-
export const DateField = ({ field: { name, value }, onChange }) =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
placeholder="Date"
|
|
14
|
-
value={_.isEmpty(value) ? "" : value}
|
|
15
|
-
iconPosition="left"
|
|
16
|
-
onChange={(_e, { value }) => onChange(null, { name: name, value: value })}
|
|
17
|
-
/>
|
|
18
|
-
);
|
|
19
|
-
};
|
|
5
|
+
export const DateField = ({ field: { name, value }, onChange }) => (
|
|
6
|
+
<Form.Input
|
|
7
|
+
placeholder="Date"
|
|
8
|
+
onChange={(e, { value }) => onChange(e, { name: name, value: value })}
|
|
9
|
+
value={value || ""}
|
|
10
|
+
type="date"
|
|
11
|
+
/>
|
|
12
|
+
);
|
|
20
13
|
|
|
21
14
|
DateField.propTypes = {
|
|
22
15
|
field: PropTypes.object,
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
|
-
import {
|
|
3
|
+
import { Form } from "semantic-ui-react";
|
|
4
4
|
|
|
5
5
|
export const DateTimeField = ({ field: { name, value } = {}, onChange }) => (
|
|
6
|
-
<
|
|
7
|
-
animation=""
|
|
8
|
-
closable
|
|
9
|
-
dateTimeFormat="YYYY-MM-DD HH:mm"
|
|
10
|
-
duration={0}
|
|
11
|
-
iconPosition="left"
|
|
12
|
-
name={name}
|
|
13
|
-
onChange={(e, { value }) => onChange(e, { name: name, value: value })}
|
|
6
|
+
<Form.Input
|
|
14
7
|
placeholder="Date Time"
|
|
8
|
+
onChange={(e, { value }) => onChange(e, { name: name, value: value })}
|
|
15
9
|
value={value || ""}
|
|
10
|
+
type="datetime-local"
|
|
16
11
|
/>
|
|
17
12
|
);
|
|
18
13
|
|
|
@@ -6,17 +6,11 @@ exports[`<DateField /> matches the latest snapshot 1`] = `
|
|
|
6
6
|
class="field"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
class="ui
|
|
9
|
+
class="ui input"
|
|
10
10
|
>
|
|
11
|
-
<i
|
|
12
|
-
aria-hidden="true"
|
|
13
|
-
class="calendar icon"
|
|
14
|
-
/>
|
|
15
11
|
<input
|
|
16
|
-
name="name"
|
|
17
12
|
placeholder="Date"
|
|
18
|
-
|
|
19
|
-
type="text"
|
|
13
|
+
type="date"
|
|
20
14
|
value="2020-05-11"
|
|
21
15
|
/>
|
|
22
16
|
</div>
|
|
@@ -6,17 +6,11 @@ exports[`<DateTimeField /> matches the latest snapshot 1`] = `
|
|
|
6
6
|
class="field"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
class="ui
|
|
9
|
+
class="ui input"
|
|
10
10
|
>
|
|
11
|
-
<i
|
|
12
|
-
aria-hidden="true"
|
|
13
|
-
class="calendar icon"
|
|
14
|
-
/>
|
|
15
11
|
<input
|
|
16
|
-
name="name"
|
|
17
12
|
placeholder="Date Time"
|
|
18
|
-
|
|
19
|
-
type="text"
|
|
13
|
+
type="datetime-local"
|
|
20
14
|
value="2020-05-11 22:00"
|
|
21
15
|
/>
|
|
22
16
|
</div>
|
|
@@ -267,16 +267,11 @@ exports[`<DynamicField /> matches the latest snapshot (date widget) 1`] = `
|
|
|
267
267
|
class="field"
|
|
268
268
|
>
|
|
269
269
|
<div
|
|
270
|
-
class="ui
|
|
270
|
+
class="ui input"
|
|
271
271
|
>
|
|
272
|
-
<i
|
|
273
|
-
aria-hidden="true"
|
|
274
|
-
class="calendar icon"
|
|
275
|
-
/>
|
|
276
272
|
<input
|
|
277
273
|
placeholder="Date"
|
|
278
|
-
|
|
279
|
-
type="text"
|
|
274
|
+
type="date"
|
|
280
275
|
value=""
|
|
281
276
|
/>
|
|
282
277
|
</div>
|
|
@@ -296,16 +291,11 @@ exports[`<DynamicField /> matches the latest snapshot (datetime widget) 1`] = `
|
|
|
296
291
|
class="field"
|
|
297
292
|
>
|
|
298
293
|
<div
|
|
299
|
-
class="ui
|
|
294
|
+
class="ui input"
|
|
300
295
|
>
|
|
301
|
-
<i
|
|
302
|
-
aria-hidden="true"
|
|
303
|
-
class="calendar icon"
|
|
304
|
-
/>
|
|
305
296
|
<input
|
|
306
297
|
placeholder="Date Time"
|
|
307
|
-
|
|
308
|
-
type="text"
|
|
298
|
+
type="datetime-local"
|
|
309
299
|
value=""
|
|
310
300
|
/>
|
|
311
301
|
</div>
|