@irontec/ivoz-ui 1.3.11 → 1.3.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.
@@ -27,8 +27,9 @@ const FastSearchField = (props, ref) => {
27
27
  const isFk = isPropertyFk(firstColumnSpec);
28
28
  const foreignEntities = useStoreState((state) => state.list.fkChoices);
29
29
  const fkChoices = foreignEntities[firstColumnName] || [];
30
- const [value, setValue] = useState((firstColumnCriteria === null || firstColumnCriteria === void 0 ? void 0 : firstColumnCriteria.value) || '');
31
30
  const isDatetime = !isFk && firstColumnSpec.format === 'date-time';
31
+ const initialValue = (firstColumnCriteria === null || firstColumnCriteria === void 0 ? void 0 : firstColumnCriteria.value) || '';
32
+ const [value, setValue] = useState(isDatetime ? initialValue.replace(' ', 'T') : initialValue);
32
33
  const triggerSearchIfChanged = () => {
33
34
  if (!firstColumnCriteria) {
34
35
  return;
@@ -37,7 +38,8 @@ const FastSearchField = (props, ref) => {
37
38
  return;
38
39
  }
39
40
  if (value !== '') {
40
- firstColumnCriteria.value = encodeURIComponent(value);
41
+ const val = isDatetime ? value.replace('T', ' ') : value;
42
+ firstColumnCriteria.value = encodeURIComponent(val);
41
43
  }
42
44
  let match = false;
43
45
  let matchIdx;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@irontec/ivoz-ui",
3
- "version": "1.3.11",
3
+ "version": "1.3.12",
4
4
  "description": "UI library used in ivozprovider",
5
5
  "license": "GPL-3.0",
6
6
  "main": "index.js",