@truedat/df 4.53.10 → 4.54.0

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": "4.53.10",
3
+ "version": "4.54.0",
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.4",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.53.10",
37
+ "@truedat/test": "4.54.0",
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",
@@ -88,8 +88,8 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@apollo/client": "^3.7.0",
91
- "@truedat/auth": "4.53.10",
92
- "@truedat/core": "4.53.10",
91
+ "@truedat/auth": "4.54.0",
92
+ "@truedat/core": "4.54.0",
93
93
  "path-to-regexp": "^1.7.0",
94
94
  "prop-types": "^15.8.1",
95
95
  "react-color": "^2.17.3",
@@ -107,5 +107,5 @@
107
107
  "react-dom": ">= 16.8.6 < 17",
108
108
  "semantic-ui-react": ">= 0.88.2 < 2.1"
109
109
  },
110
- "gitHead": "66304ff9ac3d25820b3bec2d0147f21cb0a2c579"
110
+ "gitHead": "c8daf877b5343b9efed863043efb86f1f3e19dd6"
111
111
  }
@@ -46,7 +46,7 @@ export const EditableDynamicFieldValue = (props) => {
46
46
  {label ? (
47
47
  <FormattedMessage id={`fields.${label}`} defaultMessage={label} />
48
48
  ) : null}
49
- <Icon name={"pencil alternate"} />
49
+ <Icon name="pencil alternate" />
50
50
  </List.Header>
51
51
  ) : (
52
52
  <List.Header className="dynamic-field-header">
@@ -206,8 +206,8 @@ export const CopyField = ({
206
206
  <SortableList
207
207
  containerIdx={containerIdx}
208
208
  distance={5}
209
- axis={"x"}
210
- lockAxis={"x"}
209
+ axis="x"
210
+ lockAxis="x"
211
211
  items={tableContent}
212
212
  onSortEnd={onSortEnd.bind(this)}
213
213
  />
@@ -11,12 +11,12 @@ export const CopyFieldColumn = ({
11
11
  onDeleteColumn,
12
12
  onChangeColumn,
13
13
  tableDefs,
14
- isModalOpened
14
+ isModalOpened,
15
15
  }) => {
16
16
  return (
17
17
  <div style={{ ...columnStyle, zIndex: isModalOpened ? 1000 : 9 }}>
18
18
  <CopyFieldCell
19
- field={"name"}
19
+ field="name"
20
20
  value={headerName}
21
21
  colIndex={colIndex}
22
22
  onFieldInvalid={onFieldInvalid.bind(this)}
@@ -49,5 +49,5 @@ CopyFieldColumn.propTypes = {
49
49
  onDeleteColumn: PropTypes.func,
50
50
  onChangeColumn: PropTypes.func,
51
51
  tableDefs: PropTypes.array,
52
- isModalOpened: PropTypes.bool
52
+ isModalOpened: PropTypes.bool,
53
53
  };
@@ -10,7 +10,7 @@ export const DateField = ({ field: { name, value }, onChange }) => {
10
10
  closable
11
11
  animation={""}
12
12
  name={name}
13
- dateFormat={"YYYY-MM-DD"}
13
+ dateFormat="YYYY-MM-DD"
14
14
  placeholder="Date"
15
15
  value={_.isEmpty(value) ? "" : value}
16
16
  iconPosition="left"
@@ -21,7 +21,7 @@ export const DateField = ({ field: { name, value }, onChange }) => {
21
21
 
22
22
  DateField.propTypes = {
23
23
  field: PropTypes.object,
24
- onChange: PropTypes.func
24
+ onChange: PropTypes.func,
25
25
  };
26
26
 
27
27
  export default DateField;
@@ -7,7 +7,7 @@ export const DateTimeField = ({ field: { name, value } = {}, onChange }) => (
7
7
  <DateTimeInput
8
8
  animation=""
9
9
  closable
10
- dateTimeFormat={"YYYY-MM-DD HH:mm"}
10
+ dateTimeFormat="YYYY-MM-DD HH:mm"
11
11
  duration={0}
12
12
  iconPosition="left"
13
13
  name={name}
@@ -38,7 +38,7 @@ export const DependentDomain = ({
38
38
  )(domains);
39
39
 
40
40
  return (
41
- <List verticalAlign={"middle"}>
41
+ <List verticalAlign="middle">
42
42
  {_.flow(
43
43
  _.toPairs,
44
44
  _.map(([k, v]) => (
@@ -57,7 +57,7 @@ export class SwitchListForm extends React.Component {
57
57
  } = this.props;
58
58
  const { error } = this.state;
59
59
  return (
60
- <List verticalAlign={"middle"}>
60
+ <List verticalAlign="middle">
61
61
  <List.Item>
62
62
  <Form.Input
63
63
  value={on}
@@ -130,7 +130,7 @@ export class ValuesListForm extends React.Component {
130
130
  } = this.props;
131
131
  const { error } = this.state;
132
132
  return (
133
- <List verticalAlign={"middle"}>
133
+ <List verticalAlign="middle">
134
134
  {values.map((value, key) => (
135
135
  <List.Item key={key}>
136
136
  <Icon
@@ -33,21 +33,21 @@ describe("<ValuesSelector />", () => {
33
33
  });
34
34
 
35
35
  it("renders SwitchListForm when type is switch", () => {
36
- const wrapper = shallow(<ValuesSelector {...props} type={"switch"} />);
36
+ const wrapper = shallow(<ValuesSelector {...props} type="switch" />);
37
37
  expect(wrapper.find("injectIntl(ValuesListForm)").length).toBe(0);
38
38
  expect(wrapper.find("injectIntl(SwitchListForm)").length).toBe(1);
39
39
  expect(wrapper.find("FormInput").length).toBe(0);
40
40
  });
41
41
 
42
42
  it("renders FormInput when type is switch", () => {
43
- const wrapper = shallow(<ValuesSelector {...props} type={"role_users"} />);
43
+ const wrapper = shallow(<ValuesSelector {...props} type="role_users" />);
44
44
  expect(wrapper.find("injectIntl(ValuesListForm)").length).toBe(0);
45
45
  expect(wrapper.find("injectIntl(SwitchListForm)").length).toBe(0);
46
46
  expect(wrapper.find("FormInput").length).toBe(1);
47
47
  });
48
48
 
49
49
  it("changes value on onChange", () => {
50
- const wrapper = shallow(<ValuesSelector {...props} type={"role_users"} />);
50
+ const wrapper = shallow(<ValuesSelector {...props} type="role_users" />);
51
51
  const input = wrapper.find("FormInput");
52
52
  input.simulate("change", null, { value: "some_role" });
53
53
  expect(onChange).toBeCalledWith(null, {
@@ -57,7 +57,7 @@ describe("<ValuesSelector />", () => {
57
57
  });
58
58
 
59
59
  it("changes value on onChange with role_groups", () => {
60
- const wrapper = shallow(<ValuesSelector {...props} type={"role_groups"} />);
60
+ const wrapper = shallow(<ValuesSelector {...props} type="role_groups" />);
61
61
  const input = wrapper.find("FormInput");
62
62
  input.simulate("change", null, { value: "some_role" });
63
63
  expect(onChange).toBeCalledWith(null, {