@truedat/dd 4.46.10 → 4.46.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.46.12] 2022-06-20
4
+
5
+ ### Reverted
6
+
7
+ - [TD-4894] Multiple column operator in implementation creation
8
+
3
9
  ## [4.46.6] 2022-06-20
4
10
 
5
11
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dd",
3
- "version": "4.46.10",
3
+ "version": "4.46.12",
4
4
  "description": "Truedat Web Data Dictionary",
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.46.10",
37
+ "@truedat/test": "4.46.12",
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,9 +88,9 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@apollo/client": "^3.6.4",
91
- "@truedat/auth": "4.46.10",
92
- "@truedat/core": "4.46.10",
93
- "@truedat/df": "4.46.10",
91
+ "@truedat/auth": "4.46.12",
92
+ "@truedat/core": "4.46.12",
93
+ "@truedat/df": "4.46.12",
94
94
  "lodash": "^4.17.21",
95
95
  "path-to-regexp": "^1.7.0",
96
96
  "prop-types": "^15.8.1",
@@ -112,5 +112,5 @@
112
112
  "react-dom": ">= 16.8.6 < 17",
113
113
  "semantic-ui-react": ">= 0.88.2 < 2.1"
114
114
  },
115
- "gitHead": "2bfaf01b4ff0cbd9166456e0cfff7028015d220f"
115
+ "gitHead": "97adb120fffb6392692f94ed99b5f74385ce0f0b"
116
116
  }
@@ -11,37 +11,23 @@ export const StructureFieldsDropdown = ({
11
11
  fluid,
12
12
  inline,
13
13
  onSelectField,
14
- onSelectFields,
15
14
  structureFields,
16
15
  filters,
17
16
  value,
18
17
  typeCastModifiers,
19
- multiple,
20
18
  }) => {
21
19
  const { formatMessage } = useIntl();
22
20
  const onClick = ({ value, modifier }) => {
23
- onSelectField(dropdownItemToField(value), modifier);
24
- };
25
-
26
- const onChangeStructureFieldsDropdown = (valueOrValues) => {
27
- return _.flow(
28
- _.map((value) => {
29
- return dropdownItemToField(value);
30
- }),
31
- multiple ? onSelectFields : onSelectField
32
- )(Array.isArray(valueOrValues) ? valueOrValues : [valueOrValues]);
33
- };
34
-
35
- const dropdownItemToField = (value) => {
36
21
  const [data_structure_id, parent_index] = _.isString(value)
37
22
  ? value.split("/").map(Number)
38
23
  : [value, undefined];
39
- return _.isNil(parent_index)
24
+ const field = _.isNil(parent_index)
40
25
  ? _.find({ data_structure_id: data_structure_id })(structureFields)
41
26
  : _.find({
42
27
  data_structure_id: data_structure_id,
43
28
  parent_index: parent_index,
44
29
  })(structureFields);
30
+ onSelectField(field, modifier);
45
31
  };
46
32
 
47
33
  const formatOption = (field) => {
@@ -76,15 +62,14 @@ export const StructureFieldsDropdown = ({
76
62
  }),
77
63
  };
78
64
  };
79
- const toFieldOption = (field) => {
80
- return _.has("options")(field)
65
+ const toFieldOption = (field) =>
66
+ _.has("options")(field)
81
67
  ? {
82
68
  icon: "table",
83
69
  label: field.label,
84
70
  options: _.map(formatOption)(field.options),
85
71
  }
86
72
  : formatOption(field);
87
- };
88
73
 
89
74
  const getOptions = _.flow(
90
75
  _.sortBy(_.flow(_.prop("name"), _.toLower)),
@@ -115,13 +100,11 @@ export const StructureFieldsDropdown = ({
115
100
 
116
101
  return (
117
102
  <OptionGroup
118
- multiple={multiple}
119
103
  fluid={fluid}
120
104
  inline={inline}
121
105
  label={label}
122
106
  value={value}
123
107
  onClick={onClick}
124
- onChange={onChangeStructureFieldsDropdown}
125
108
  placeholder={formatMessage({
126
109
  id: "structureFields.dropdown.placeholder",
127
110
  })}
@@ -137,10 +120,8 @@ StructureFieldsDropdown.propTypes = {
137
120
  value: PropTypes.number,
138
121
  structureFields: PropTypes.array,
139
122
  onSelectField: PropTypes.func,
140
- onSelectFields: PropTypes.func,
141
123
  filters: PropTypes.object,
142
124
  typeCastModifiers: PropTypes.array,
143
- multiple: PropTypes.bool,
144
125
  };
145
126
 
146
127
  const mapStateToProps = (state, props) => ({
@@ -36,31 +36,21 @@ exports[`<ValueConditionStructure /> matches the latest snapshot 1`] = `
36
36
  role="listbox"
37
37
  >
38
38
  <div
39
- aria-checked="false"
40
- aria-selected="true"
41
- class="selected item"
42
- role="option"
43
- style="pointer-events: all;"
39
+ class="divider"
40
+ />
41
+ <div
42
+ class="header"
44
43
  >
45
- <div
46
- class="divider"
44
+ <i
45
+ aria-hidden="true"
46
+ class="table icon"
47
47
  />
48
- <div
49
- class="header"
50
- >
51
- <i
52
- aria-hidden="true"
53
- class="table icon"
54
- />
55
- bar
56
- </div>
48
+ bar
57
49
  </div>
58
50
  <div
59
- aria-checked="false"
60
51
  aria-selected="false"
61
52
  class="item group"
62
53
  role="option"
63
- style="pointer-events: all;"
64
54
  >
65
55
  <i
66
56
  aria-hidden="true"