@truedat/dq 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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dq",
|
|
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",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@testing-library/jest-dom": "^6.6.3",
|
|
54
54
|
"@testing-library/react": "^16.3.0",
|
|
55
55
|
"@testing-library/user-event": "^14.6.1",
|
|
56
|
-
"@truedat/test": "7.5.
|
|
56
|
+
"@truedat/test": "7.5.15",
|
|
57
57
|
"identity-obj-proxy": "^3.0.0",
|
|
58
58
|
"jest": "^29.7.0",
|
|
59
59
|
"redux-saga-test-plan": "^4.0.6"
|
|
@@ -84,9 +84,8 @@
|
|
|
84
84
|
"redux-saga": "^1.3.0",
|
|
85
85
|
"redux-saga-routines": "^3.2.3",
|
|
86
86
|
"reselect": "^5.1.1",
|
|
87
|
-
"semantic-ui-calendar-react": "^0.15.3",
|
|
88
87
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
89
88
|
"swr": "^2.3.3"
|
|
90
89
|
},
|
|
91
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "04f73182eb588f745d0f5ff18181f5612dd5b936"
|
|
92
91
|
}
|
|
@@ -1,21 +1,17 @@
|
|
|
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 DateField = ({ name, label, value, onChange }) => {
|
|
6
6
|
const raw = _.propOr({}, "raw")(value);
|
|
7
7
|
return (
|
|
8
|
-
<
|
|
9
|
-
duration={0}
|
|
10
|
-
closable
|
|
11
|
-
animation={""}
|
|
12
|
-
name={name}
|
|
13
|
-
dateFormat="YYYY-MM-DD"
|
|
14
|
-
label={label ? label : ""}
|
|
8
|
+
<Form.Input
|
|
15
9
|
placeholder="Date"
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
label={label ? label : ""}
|
|
11
|
+
name={name}
|
|
18
12
|
onChange={(e, { value }) => onChange(e, value)}
|
|
13
|
+
value={_.isEmpty(raw) ? "" : raw}
|
|
14
|
+
type="date"
|
|
19
15
|
/>
|
|
20
16
|
);
|
|
21
17
|
};
|
|
@@ -1,21 +1,17 @@
|
|
|
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 = ({ name, label, value, onChange }) => {
|
|
6
6
|
const raw = _.propOr({}, "raw")(value);
|
|
7
7
|
return (
|
|
8
|
-
<
|
|
9
|
-
duration={0}
|
|
10
|
-
closable
|
|
11
|
-
animation={""}
|
|
12
|
-
name={name}
|
|
13
|
-
dateTimeFormat="YYYY-MM-DD HH:mm:ss"
|
|
14
|
-
label={label ? label : ""}
|
|
8
|
+
<Form.Input
|
|
15
9
|
placeholder="Date Time"
|
|
10
|
+
label={label ? label : ""}
|
|
11
|
+
name={name}
|
|
12
|
+
onChange={(e, { value }) => onChange(e, value.replace("T", " ") + ":00")}
|
|
16
13
|
value={_.isEmpty(raw) ? "" : raw}
|
|
17
|
-
|
|
18
|
-
onChange={(e, { value }) => onChange(e, value)}
|
|
14
|
+
type="datetime-local"
|
|
19
15
|
/>
|
|
20
16
|
);
|
|
21
17
|
};
|