@irontec/ivoz-ui 1.6.0 → 1.6.1

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.
@@ -69,7 +69,7 @@ const FastSearchField = (props, ref) => {
69
69
  };
70
70
  useEffect(() => {
71
71
  //reset value
72
- setValue((firstColumnCriteria === null || firstColumnCriteria === void 0 ? void 0 : firstColumnCriteria.value) || '');
72
+ setValue(decodeURIComponent(firstColumnCriteria === null || firstColumnCriteria === void 0 ? void 0 : firstColumnCriteria.value) || '');
73
73
  }, [firstColumnCriteria]);
74
74
  useEffect(() => {
75
75
  if (isDatetime) {
@@ -45,7 +45,7 @@ export default function ContentFilterSelector(props) {
45
45
  newCriteria[idx] = {
46
46
  name,
47
47
  type,
48
- value,
48
+ value: decodeURIComponent(value),
49
49
  };
50
50
  setCriteria(newCriteria);
51
51
  };
@@ -23,7 +23,7 @@ import useFirstColumn from './Content/hook/useFirstColumn';
23
23
  import { criteriaToArray, queryStringToCriteria } from './List.helpers';
24
24
  import useQueryStringParams from './useQueryStringParams';
25
25
  const List = function (props) {
26
- const { path, foreignKeyResolver, entityService, routeMap, className, List: EntityListDecorator } = props;
26
+ const { path, foreignKeyResolver, entityService, routeMap, className, List: EntityListDecorator, } = props;
27
27
  const location = useLocation();
28
28
  const match = useCurrentPathMatch();
29
29
  const params = useParams();
@@ -99,7 +99,10 @@ const List = function (props) {
99
99
  }
100
100
  setPrevReqQuerystring(reqQuerystring);
101
101
  const criteria = queryStringToCriteria();
102
- setQueryStringCriteria(criteria);
102
+ const sanitizeData = criteria.map((row) => {
103
+ return Object.assign(Object.assign({}, row), { value: encodeURIComponent(row.value) });
104
+ });
105
+ setQueryStringCriteria(sanitizeData);
103
106
  setCriteriaIsReady(true);
104
107
  }, [
105
108
  reqQuerystring,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@irontec/ivoz-ui",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "UI library used in ivozprovider",
5
5
  "license": "GPL-3.0",
6
6
  "main": "index.js",