@evergis/react 3.1.89 → 3.1.90
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/index.js +4 -4
- package/dist/react.esm.js +4 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7799,13 +7799,13 @@ const ElementControl = ({ elementConfig }) => {
|
|
|
7799
7799
|
}, [control?.targetAttributeName, layerInfo?.configuration?.attributesConfiguration?.attributes]);
|
|
7800
7800
|
const handleChange = React.useCallback(([option]) => {
|
|
7801
7801
|
setValue(option?.value);
|
|
7802
|
-
if (
|
|
7802
|
+
if (control?.targetAttributeName && changeControls) {
|
|
7803
7803
|
changeControls({
|
|
7804
|
-
[
|
|
7804
|
+
[control.targetAttributeName]: option?.value,
|
|
7805
7805
|
});
|
|
7806
7806
|
}
|
|
7807
|
-
}, [changeControls,
|
|
7808
|
-
return (jsxRuntime.jsx(uilibGl.Dropdown, { zIndex: 1000, width: `${width ?? DEFAULT_DROPDOWN_WIDTH}px`, label: label, options: items, value: controls?.[
|
|
7807
|
+
}, [changeControls, control?.targetAttributeName]);
|
|
7808
|
+
return (jsxRuntime.jsx(uilibGl.Dropdown, { zIndex: 1000, width: `${width ?? DEFAULT_DROPDOWN_WIDTH}px`, label: label, options: items, value: controls?.[control?.targetAttributeName] ?? value ?? attribute?.value ?? defaultValue, placeholder: placeholder, disabled: isDisabled, onChange: handleChange }));
|
|
7809
7809
|
};
|
|
7810
7810
|
|
|
7811
7811
|
const StyledIconFontSizeMixin = styled.css `
|
package/dist/react.esm.js
CHANGED
|
@@ -7797,13 +7797,13 @@ const ElementControl = ({ elementConfig }) => {
|
|
|
7797
7797
|
}, [control?.targetAttributeName, layerInfo?.configuration?.attributesConfiguration?.attributes]);
|
|
7798
7798
|
const handleChange = useCallback(([option]) => {
|
|
7799
7799
|
setValue(option?.value);
|
|
7800
|
-
if (
|
|
7800
|
+
if (control?.targetAttributeName && changeControls) {
|
|
7801
7801
|
changeControls({
|
|
7802
|
-
[
|
|
7802
|
+
[control.targetAttributeName]: option?.value,
|
|
7803
7803
|
});
|
|
7804
7804
|
}
|
|
7805
|
-
}, [changeControls,
|
|
7806
|
-
return (jsx(Dropdown, { zIndex: 1000, width: `${width ?? DEFAULT_DROPDOWN_WIDTH}px`, label: label, options: items, value: controls?.[
|
|
7805
|
+
}, [changeControls, control?.targetAttributeName]);
|
|
7806
|
+
return (jsx(Dropdown, { zIndex: 1000, width: `${width ?? DEFAULT_DROPDOWN_WIDTH}px`, label: label, options: items, value: controls?.[control?.targetAttributeName] ?? value ?? attribute?.value ?? defaultValue, placeholder: placeholder, disabled: isDisabled, onChange: handleChange }));
|
|
7807
7807
|
};
|
|
7808
7808
|
|
|
7809
7809
|
const StyledIconFontSizeMixin = css `
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.1.
|
|
2
|
+
"version": "3.1.90",
|
|
3
3
|
"name": "@evergis/react",
|
|
4
4
|
"author": "Everpoint",
|
|
5
5
|
"license": "MIT",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"swiper": "^8.3.2",
|
|
84
84
|
"wkt": "^0.1.1"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "08adf7936d1a6a6633de089d3547b683430d28e6"
|
|
87
87
|
}
|