@dartech/arsenal-ui 1.4.24 → 1.4.26

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.
Files changed (2) hide show
  1. package/index.js +9 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -883,7 +883,11 @@ function ControlQueryAutocomplete(_a) {
883
883
  }, {
884
884
  // keepPreviousData: true,
885
885
  onSuccess(data) {
886
- setOptions(state => [...state, ...data.collection]);
886
+ if (searchValue) {
887
+ setOptions(data.collection);
888
+ } else {
889
+ setOptions(state => state.length === 1 ? data.collection : [...state, ...data.collection]);
890
+ }
887
891
  }
888
892
  });
889
893
  const debouncedChange = useDebounce(val => {
@@ -900,7 +904,6 @@ function ControlQueryAutocomplete(_a) {
900
904
  onChange(event, value);
901
905
  }
902
906
  }, [setFieldValue, onChange]);
903
- console.log(isDirty, formValue, searchValue);
904
907
  useEffect(() => {
905
908
  if (!isDirty && formValue && itemQueryFunction) {
906
909
  let requestValue = formValue;
@@ -1389,7 +1392,10 @@ const JsonTypeCell = ({
1389
1392
  }), jsx(JsonModalView, {
1390
1393
  open: jsonModalOpen,
1391
1394
  value: getJsonStringValue(value),
1392
- onClose: onJsonModalClose
1395
+ onClose: onJsonModalClose,
1396
+ jsonViewProps: {
1397
+ height: 450
1398
+ }
1393
1399
  })]
1394
1400
  }));
1395
1401
  };
@@ -2112,7 +2118,6 @@ const ControlDate = _a => {
2112
2118
  rules: {
2113
2119
  required: required ? requiredErrorText || DEFAULT_REQUIRED_ERROR_TEXT : false,
2114
2120
  validate: val => {
2115
- console.log('DATE', val);
2116
2121
  if (val === '' || isMatch(val, localFormat)) {
2117
2122
  return true;
2118
2123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.4.24",
3
+ "version": "1.4.26",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"