@truedat/core 6.8.2 → 6.8.4
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 +3 -3
- package/src/search/SearchContext.js +12 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/core",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.4",
|
|
4
4
|
"description": "Truedat Web Core",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@testing-library/react": "^12.0.0",
|
|
37
37
|
"@testing-library/react-hooks": "^8.0.1",
|
|
38
38
|
"@testing-library/user-event": "^13.2.1",
|
|
39
|
-
"@truedat/test": "6.8.
|
|
39
|
+
"@truedat/test": "6.8.4",
|
|
40
40
|
"babel-jest": "^28.1.0",
|
|
41
41
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
42
42
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"react-dom": ">= 16.8.6 < 17",
|
|
119
119
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "6a7cb953d1f03f44976f3c98029b91d876e39daf"
|
|
122
122
|
}
|
|
@@ -215,11 +215,18 @@ export const SearchContextProvider = (props) => {
|
|
|
215
215
|
]);
|
|
216
216
|
|
|
217
217
|
const makeFiltersGroup = (filters, groups) =>
|
|
218
|
-
_.
|
|
219
|
-
_.
|
|
220
|
-
_.
|
|
221
|
-
|
|
222
|
-
|
|
218
|
+
_.flow(
|
|
219
|
+
_.groupBy((filter) =>
|
|
220
|
+
_.flow(
|
|
221
|
+
_.find(([_group, fields]) => _.contains(filter)(fields)),
|
|
222
|
+
_.prop("[0]")
|
|
223
|
+
)(groups)
|
|
224
|
+
),
|
|
225
|
+
_.toPairs,
|
|
226
|
+
_.remove(([key, _value]) => {
|
|
227
|
+
return _.startsWith("_")(key);
|
|
228
|
+
}),
|
|
229
|
+
_.fromPairs
|
|
223
230
|
)(filters);
|
|
224
231
|
|
|
225
232
|
const filtersByGroup = makeFiltersGroup(availableFilters, filtersGroup);
|