@truedat/df 7.7.0 → 7.7.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/df",
|
|
3
|
-
"version": "7.7.
|
|
3
|
+
"version": "7.7.2",
|
|
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.7.
|
|
51
|
+
"@truedat/test": "7.7.2",
|
|
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.7.
|
|
58
|
+
"@truedat/core": "7.7.2",
|
|
59
59
|
"axios": "^1.9.0",
|
|
60
60
|
"graphql": "^16.11.0",
|
|
61
61
|
"is-hotkey": "^0.2.0",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
85
85
|
"swr": "^2.3.3"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "bb159aad74d5bd5fada2d9b753e2c4b8d902a7da"
|
|
88
88
|
}
|
|
@@ -2,7 +2,7 @@ import _ from "lodash/fp";
|
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
4
4
|
import { Icon, List, Container } from "semantic-ui-react";
|
|
5
|
-
import OriginLabel from "
|
|
5
|
+
import OriginLabel from "@truedat/core/components/OriginLabel";
|
|
6
6
|
import DomainPreview from "./widgets/DomainPreview";
|
|
7
7
|
import HierarchyPreview from "./widgets/HierarchyPreview";
|
|
8
8
|
import SystemPreview from "./widgets/SystemPreview";
|
|
@@ -3,7 +3,7 @@ import { useState, useEffect } from "react";
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
5
|
import { Icon, List, Button, Container } from "semantic-ui-react";
|
|
6
|
-
import OriginLabel from "
|
|
6
|
+
import OriginLabel from "@truedat/core/components/OriginLabel";
|
|
7
7
|
import DomainPreview from "./widgets/DomainPreview";
|
|
8
8
|
import SystemPreview from "./widgets/SystemPreview";
|
|
9
9
|
import DynamicField from "./widgets/DynamicField";
|
|
@@ -2,7 +2,7 @@ import _ from "lodash/fp";
|
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { Form, Icon, Popup, Label } from "semantic-ui-react";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
|
-
import OriginLabel from "
|
|
5
|
+
import OriginLabel from "@truedat/core/components/OriginLabel";
|
|
6
6
|
import DateTimeField from "./DateTimeField";
|
|
7
7
|
import CheckboxField from "./CheckboxField";
|
|
8
8
|
import ColorPickerField from "./ColorPickerField";
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { useIntl } from "react-intl";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
|
|
4
|
-
import { Icon } from "semantic-ui-react";
|
|
5
|
-
|
|
6
|
-
const OriginLabel = ({ origin }) => {
|
|
7
|
-
const { formatMessage } = useIntl();
|
|
8
|
-
|
|
9
|
-
const icon = formatMessage({
|
|
10
|
-
id: `template.field.origin.${origin}.icon`,
|
|
11
|
-
defaultMessage: "none",
|
|
12
|
-
}).replace("none", "");
|
|
13
|
-
const label = formatMessage({
|
|
14
|
-
id: `template.field.origin.${origin}.label`,
|
|
15
|
-
defaultMessage: "none",
|
|
16
|
-
}).replace("none", "");
|
|
17
|
-
|
|
18
|
-
return icon || label ? (
|
|
19
|
-
<span
|
|
20
|
-
title={`Generated by ${origin}`}
|
|
21
|
-
className={`originLabel ${origin}Label`}
|
|
22
|
-
>
|
|
23
|
-
{icon && <Icon name={icon} />}
|
|
24
|
-
{label && <span>{label}</span>}
|
|
25
|
-
</span>
|
|
26
|
-
) : null;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
OriginLabel.propTypes = {
|
|
30
|
-
origin: PropTypes.string,
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export default OriginLabel;
|