@truedat/bg 6.3.4 → 6.3.5

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/bg",
3
- "version": "6.3.4",
3
+ "version": "6.3.5",
4
4
  "description": "Truedat Web Business Glossary",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -86,9 +86,9 @@
86
86
  ]
87
87
  },
88
88
  "dependencies": {
89
- "@truedat/core": "6.3.4",
90
- "@truedat/df": "6.3.4",
91
- "@truedat/lm": "6.3.4",
89
+ "@truedat/core": "6.3.5",
90
+ "@truedat/df": "6.3.5",
91
+ "@truedat/lm": "6.3.5",
92
92
  "decode-uri-component": "^0.2.2",
93
93
  "file-saver": "^2.0.5",
94
94
  "moment": "^2.29.4",
@@ -111,5 +111,5 @@
111
111
  "react-dom": ">= 16.8.6 < 17",
112
112
  "semantic-ui-react": ">= 2.0.3 < 2.2"
113
113
  },
114
- "gitHead": "e7d4c50cf2989fde79b5d1a46c83e6c6ce34f54d"
114
+ "gitHead": "2cacdf1fc99746cb4f8dca7d770662c0d96c5bb7"
115
115
  }
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
+ import { connect } from "react-redux";
3
4
  import { Dimmer, Loader } from "semantic-ui-react";
4
5
  import SearchWidget from "@truedat/core/search/SearchWidget";
5
6
  import {
@@ -39,7 +40,7 @@ ConceptsPanelContent.propTypes = {
39
40
  actions: PropTypes.object,
40
41
  };
41
42
 
42
- export default function ConceptsPanel({ defaultFilters, actions }) {
43
+ export const ConceptsPanel = ({ defaultFilters, actions, filtersGroup }) => {
43
44
  const searchProps = {
44
45
  initialSortColumn: "name.raw",
45
46
  initialSortDirection: "ascending",
@@ -48,6 +49,7 @@ export default function ConceptsPanel({ defaultFilters, actions }) {
48
49
  userFiltersType: "business_concept_user_filters",
49
50
  omitFilters: ["current", "domain_ids"],
50
51
  translations,
52
+ filtersGroup,
51
53
  };
52
54
 
53
55
  return (
@@ -55,9 +57,15 @@ export default function ConceptsPanel({ defaultFilters, actions }) {
55
57
  <ConceptsPanelContent actions={actions} />
56
58
  </SearchContextProvider>
57
59
  );
58
- }
60
+ };
59
61
 
60
62
  ConceptsPanel.propTypes = {
61
63
  actions: PropTypes.object,
62
64
  defaultFilters: PropTypes.object,
63
65
  };
66
+
67
+ const mapStateToProps = (state) => ({
68
+ filtersGroup: state.conceptFiltersGroup || [],
69
+ });
70
+
71
+ export default connect(mapStateToProps)(ConceptsPanel);
@@ -1,6 +1,7 @@
1
1
  import _ from "lodash/fp";
2
2
  import React from "react";
3
3
  import PropTypes from "prop-types";
4
+ import { connect } from "react-redux";
4
5
  import { Table, Message, Label, Icon, Segment } from "semantic-ui-react";
5
6
  import { FormattedMessage } from "react-intl";
6
7
  import SearchWidget from "@truedat/core/search/SearchWidget";
@@ -160,8 +161,9 @@ ConceptSelectorContent.propTypes = {
160
161
  links: PropTypes.array,
161
162
  };
162
163
 
163
- export default function ConceptSelector(props) {
164
+ export const ConceptSelector = (props) => {
164
165
  const defaultFilters = _.propOr({}, "defaultFilters")(props);
166
+ const filtersGroup = _.propOr([], "filtersGroup")(props);
165
167
 
166
168
  const searchProps = {
167
169
  initialSortColumn: "name.raw",
@@ -172,10 +174,17 @@ export default function ConceptSelector(props) {
172
174
  userFiltersType: "business_concept_user_filters",
173
175
  omitFilters: ["current", "domain_ids"],
174
176
  translations,
177
+ filtersGroup,
175
178
  };
176
179
  return (
177
180
  <SearchContextProvider {...searchProps} defaultFilters={defaultFilters}>
178
181
  <ConceptSelectorContent {...props} />
179
182
  </SearchContextProvider>
180
183
  );
181
- }
184
+ };
185
+
186
+ const mapStateToProps = (state) => ({
187
+ filtersGroup: state.conceptFiltersGroup || [],
188
+ });
189
+
190
+ export default connect(mapStateToProps)(ConceptSelector);