@evergis/react 3.1.84 → 3.1.86

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.
@@ -128,7 +128,6 @@ export interface ConfigOptions {
128
128
  tabId?: string;
129
129
  column?: boolean;
130
130
  relatedDataSource?: string;
131
- controlName?: string;
132
131
  filterName?: string;
133
132
  searchFilterName?: string;
134
133
  colorAttribute?: string;
package/dist/index.js CHANGED
@@ -5573,10 +5573,13 @@ const ChartLegendName = styled.div `
5573
5573
  const ContainerAlias = styled(uilibGl.Flex) `
5574
5574
  align-items: center;
5575
5575
  flex-wrap: nowrap;
5576
- margin-bottom: ${({ hasBottomMargin }) => (hasBottomMargin ? 0.25 : 0)}rem;
5577
5576
  font-size: 0.75rem;
5578
5577
  color: ${({ theme: { palette } }) => palette.textSecondary};
5579
5578
 
5579
+ &&& {
5580
+ margin-bottom: ${({ hasBottomMargin }) => (hasBottomMargin ? 0.25 : 0)}rem;
5581
+ }
5582
+
5580
5583
  span[kind] {
5581
5584
  margin-right: 0.5rem;
5582
5585
 
@@ -7778,7 +7781,7 @@ const ElementControl = ({ elementConfig }) => {
7778
7781
  const { dataSources, controls, changeControls } = useWidgetContext(exports.WidgetType.FeatureCard);
7779
7782
  const [value, setValue] = React.useState();
7780
7783
  const { options, attributeName } = elementConfig || {};
7781
- const { relatedDataSource, controlName, label, width, placeholder = t("selectValue", { ns: "dashboard", defaultValue: "Выберите значение" }) } = options || {};
7784
+ const { relatedDataSource, label, width, placeholder = t("selectValue", { ns: "dashboard", defaultValue: "Выберите значение" }) } = options || {};
7782
7785
  const dataSource = React.useMemo(() => getDataSource(relatedDataSource, dataSources), [relatedDataSource, dataSources]);
7783
7786
  const items = React.useMemo(() => {
7784
7787
  if (!dataSource?.features?.length || !attributeName) {
@@ -7791,13 +7794,13 @@ const ElementControl = ({ elementConfig }) => {
7791
7794
  }, [dataSource?.features, attributeName]);
7792
7795
  const handleChange = React.useCallback(([option]) => {
7793
7796
  setValue(option?.value);
7794
- if (controlName && changeControls) {
7797
+ if (attributeName && changeControls) {
7795
7798
  changeControls({
7796
- [controlName]: option?.value,
7799
+ [attributeName]: option?.value,
7797
7800
  });
7798
7801
  }
7799
- }, [changeControls, controlName]);
7800
- return (jsxRuntime.jsx(uilibGl.Dropdown, { zIndex: 1000, width: `${width ?? DEFAULT_DROPDOWN_WIDTH}px`, label: label, options: items, value: controls?.[controlName] ?? value, placeholder: placeholder, onChange: handleChange }));
7802
+ }, [changeControls, attributeName]);
7803
+ return (jsxRuntime.jsx(uilibGl.Dropdown, { zIndex: 1000, width: `${width ?? DEFAULT_DROPDOWN_WIDTH}px`, label: label, options: items, value: controls?.[attributeName] ?? value, placeholder: placeholder, onChange: handleChange }));
7801
7804
  };
7802
7805
 
7803
7806
  const StyledIconFontSizeMixin = styled.css `