@truedat/df 6.7.0 → 6.7.1

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": "6.7.0",
3
+ "version": "6.7.1",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.16.5",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "6.7.0",
37
+ "@truedat/test": "6.7.1",
38
38
  "babel-jest": "^28.1.0",
39
39
  "babel-plugin-dynamic-import-node": "^2.3.3",
40
40
  "babel-plugin-lodash": "^3.3.4",
@@ -87,8 +87,8 @@
87
87
  },
88
88
  "dependencies": {
89
89
  "@apollo/client": "^3.7.1",
90
- "@truedat/auth": "6.7.0",
91
- "@truedat/core": "6.7.0",
90
+ "@truedat/auth": "6.7.1",
91
+ "@truedat/core": "6.7.1",
92
92
  "decode-uri-component": "^0.2.2",
93
93
  "path-to-regexp": "^1.7.0",
94
94
  "prop-types": "^15.8.1",
@@ -109,5 +109,5 @@
109
109
  "react-dom": ">= 16.8.6 < 17",
110
110
  "semantic-ui-react": ">= 2.0.3 < 2.2"
111
111
  },
112
- "gitHead": "6a4284b126a917e396160f1b36c03ca0faf6bac5"
112
+ "gitHead": "58ccce26894edb2d7b703c8cf22d62a8d993858c"
113
113
  }
@@ -3,6 +3,7 @@ import React, { 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 "./OriginLabel";
6
7
  import DomainPreview from "./widgets/DomainPreview";
7
8
  import SystemPreview from "./widgets/SystemPreview";
8
9
  import DynamicField from "./widgets/DynamicField";
@@ -11,8 +12,16 @@ import "../styles/fieldGroupDetail.less";
11
12
 
12
13
  export const EditableDynamicFieldValue = (props) => {
13
14
  const [updatedFailed, setUpdateFailed] = useState(false);
14
- const { label, name, value, type, values, widget, isSecret, editFunctions } =
15
- props;
15
+ const {
16
+ label,
17
+ name,
18
+ value: valueAndOrigin,
19
+ type,
20
+ values,
21
+ widget,
22
+ isSecret,
23
+ editFunctions,
24
+ } = props;
16
25
  const {
17
26
  onChange,
18
27
  onCancel,
@@ -21,6 +30,10 @@ export const EditableDynamicFieldValue = (props) => {
21
30
  setEditingField,
22
31
  updateStatus,
23
32
  } = editFunctions;
33
+ const { value, origin } = valueAndOrigin || {
34
+ value: null,
35
+ origin: "default",
36
+ };
24
37
 
25
38
  useEffect(() => {
26
39
  if (editingField !== name) return;
@@ -47,12 +60,14 @@ export const EditableDynamicFieldValue = (props) => {
47
60
  <FormattedMessage id={`fields.${label}`} defaultMessage={label} />
48
61
  ) : null}
49
62
  <Icon name="pencil alternate" />
63
+ <OriginLabel origin={origin} />
50
64
  </List.Header>
51
65
  ) : (
52
66
  <List.Header className="dynamic-field-header">
53
67
  {label ? (
54
68
  <FormattedMessage id={`fields.${label}`} defaultMessage={label} />
55
69
  ) : null}
70
+ <OriginLabel origin={origin} />
56
71
  </List.Header>
57
72
  )}
58
73