tp-react-elements-dev 1.15.0 → 1.15.2
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/dist/_virtual/index.esm11.js +2 -2
- package/dist/_virtual/index.esm12.js +2 -2
- package/dist/_virtual/index.esm13.js +2 -2
- package/dist/components/FormComponents/Select/SingleSelectSearchApi.esm.js +4 -6
- package/dist/node_modules/react-date-range/dist/components/DateInput/index.esm.js +1 -1
- package/dist/node_modules/react-date-range/dist/components/DayCell/index.esm.js +1 -1
- package/dist/node_modules/react-date-range/dist/components/InputRangeField/index.esm.js +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var InputRangeField = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { InputRangeField as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var DayCell = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { DayCell as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var DateInput = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { DateInput as __exports };
|
|
@@ -22,9 +22,7 @@ const SingleSelectSearchApi = ({ props, variant, }) => {
|
|
|
22
22
|
setSearchValue(props.getValues(props.item.name));
|
|
23
23
|
setOptionsFetched([]);
|
|
24
24
|
}
|
|
25
|
-
else if (props.getValues(props.item.name))
|
|
26
|
-
setSearchValue('');
|
|
27
|
-
}
|
|
25
|
+
else if (props.getValues(props.item.name)) ;
|
|
28
26
|
setIsLoading(true);
|
|
29
27
|
jwtAxios
|
|
30
28
|
.get(props.item.api + `&${props.item.searchValue || 'searchvalue'}=${searchValue}`, {
|
|
@@ -44,9 +42,9 @@ const SingleSelectSearchApi = ({ props, variant, }) => {
|
|
|
44
42
|
// }
|
|
45
43
|
return () => controller.abort();
|
|
46
44
|
}, [searchValue, props.item.api, props.getValues(props.item.name), props?.item?.autoFIll]);
|
|
47
|
-
useEffect(() => {
|
|
48
|
-
|
|
49
|
-
}, [props.item?.changeValue]);
|
|
45
|
+
// useEffect(() => {
|
|
46
|
+
// setSearchValue('');
|
|
47
|
+
// }, [props.item?.changeValue]);
|
|
50
48
|
const isOptionEqualToValue = (option, value) => option?.value === value?.value; // Assuming there's a 'value' property in your options
|
|
51
49
|
return (jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => (jsxs(Fragment, { children: [renderLabel(variant, props), jsx(Autocomplete, { ...field, value: props.getValues(props.item.name)
|
|
52
50
|
? optionsFetched?.find((item) => item.value === props.getValues(props.item.name))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as DateInput } from '../../../../../_virtual/index.
|
|
1
|
+
import { __exports as DateInput } from '../../../../../_virtual/index.esm13.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
|
|
4
4
|
import { __require as requireClassnames } from '../../../../classnames/index.esm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as DayCell } from '../../../../../_virtual/index.
|
|
1
|
+
import { __exports as DayCell } from '../../../../../_virtual/index.esm12.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
|
|
4
4
|
import { __require as requireClassnames } from '../../../../classnames/index.esm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as InputRangeField } from '../../../../../_virtual/index.
|
|
1
|
+
import { __exports as InputRangeField } from '../../../../../_virtual/index.esm11.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
|
|
4
4
|
|