@truedat/df 7.5.5 → 7.5.7

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.5.5",
3
+ "version": "7.5.7",
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": "7.5.5",
37
+ "@truedat/test": "7.5.7",
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": "7.5.5",
91
- "@truedat/core": "7.5.5",
90
+ "@truedat/auth": "7.5.7",
91
+ "@truedat/core": "7.5.7",
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": "2a4343b3b2837540358b57d3d647408ab292aa21"
112
+ "gitHead": "01b1e4eb176b2c491750b524988e32094413515c"
113
113
  }
@@ -138,17 +138,7 @@ export const ActiveGroupForm = ({
138
138
  <Form.Field
139
139
  control={Input}
140
140
  name={`${groupNamePrefix}.name`}
141
- required
142
- label={
143
- <label>
144
- {formatMessage({ id: "template.form.group.name" })}
145
- {isNullOrEmpty(name) ? (
146
- <Label pointing="left">
147
- <FormattedMessage id="template.form.validation.empty_required" />
148
- </Label>
149
- ) : null}
150
- </label>
151
- }
141
+ label={formatMessage({ id: "template.form.group.name" })}
152
142
  value={name}
153
143
  onChange={onChange}
154
144
  error={
@@ -41,14 +41,9 @@ exports[`<ActiveGroupForm /> matches the latest snapshot 1`] = `
41
41
  />
42
42
  <FormField
43
43
  control={[Function]}
44
- label={
45
- <label>
46
- template.form.group.name
47
- </label>
48
- }
44
+ label="template.form.group.name"
49
45
  name="content[0].name"
50
46
  onChange={[MockFunction]}
51
- required={true}
52
47
  value="Group name"
53
48
  />
54
49
  <Accordion
@@ -908,7 +908,7 @@ exports[`<TemplateForm /> matches the latest snapshot for filled template 1`] =
908
908
  </button>
909
909
  </div>
910
910
  <div
911
- class="required field"
911
+ class="field"
912
912
  >
913
913
  <label>
914
914
  Group Name
@@ -918,7 +918,6 @@ exports[`<TemplateForm /> matches the latest snapshot for filled template 1`] =
918
918
  >
919
919
  <input
920
920
  name="content[0].name"
921
- required=""
922
921
  type="text"
923
922
  value="group"
924
923
  />
@@ -108,7 +108,6 @@ export const parseContentValidation = (content) => {
108
108
 
109
109
  return _.map((group) => {
110
110
  const nameDuplicated = _.indexOf(group.name)(duplicatedGroupNames) >= 0;
111
- const nameEmpty = _.isEmpty(group.name);
112
111
  const fields = parseFieldsValidation(group.fields);
113
112
  const hasNoFields = _.isEmpty(group.fields);
114
113
  const hasFieldErrors = _.flow([_.map((x) => x.errors.hasErrors), arrayAnd])(
@@ -116,12 +115,7 @@ export const parseContentValidation = (content) => {
116
115
  );
117
116
 
118
117
  const hasErrors =
119
- _.indexOf(true)([
120
- nameDuplicated,
121
- nameEmpty,
122
- hasFieldErrors,
123
- hasNoFields,
124
- ]) >= 0;
118
+ _.indexOf(true)([nameDuplicated, hasFieldErrors, hasNoFields]) >= 0;
125
119
 
126
120
  const errors = {
127
121
  hasErrors,