@evergis/react 3.1.35 → 3.1.37

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/react.esm.js CHANGED
@@ -5958,6 +5958,7 @@ const ChartContainer = memo(({ elementConfig, isVisible, type, renderElement })
5958
5958
  const { twoColumns, hideEmpty } = options || {};
5959
5959
  const aliasElement = children.find(({ id }) => id === "alias");
5960
5960
  const chartElement = children.find(({ id }) => id === "chart");
5961
+ const legendElement = children.find(({ id }) => id === "legend");
5961
5962
  const { data, loading } = useChartData({
5962
5963
  element: chartElement,
5963
5964
  type,
@@ -5968,7 +5969,7 @@ const ChartContainer = memo(({ elementConfig, isVisible, type, renderElement })
5968
5969
  const hasItems = !!data[0]?.items?.length;
5969
5970
  if (!loading && !hasItems && hideEmpty)
5970
5971
  return null;
5971
- return (jsxs(FlexSpan, { flexDirection: "column", children: [jsx(ExpandableTitle, { elementConfig: elementConfig, type: type, renderElement: renderElement }), isVisible && (jsxs(Container, { isColumn: true, children: [aliasElement && jsx(ContainerAlias, { hasBottomMargin: true, children: renderElement({ id: "alias" }) }), jsx(ContainerValue, { column: !twoColumns, alignItems: "center", children: hasItems ? (jsxs(Fragment$1, { children: [jsx(ContainerChart, { children: renderElement({ id: "chart" }) }), jsx(ContainerLegend, { children: renderElement({ id: "legend" }) })] })) : (jsx(Fragment$1, { children: "\u2014" })) })] }))] }));
5972
+ return (jsxs(FlexSpan, { flexDirection: "column", children: [jsx(ExpandableTitle, { elementConfig: elementConfig, type: type, renderElement: renderElement }), isVisible && (jsxs(Container, { isColumn: true, children: [aliasElement && jsx(ContainerAlias, { hasBottomMargin: true, children: renderElement({ id: "alias" }) }), jsx(ContainerValue, { column: !twoColumns, alignItems: "center", children: hasItems ? (jsxs(Fragment$1, { children: [jsx(ContainerChart, { children: renderElement({ id: "chart" }) }), jsx(ContainerLegend, { justifyContent: legendElement?.options?.center ? "center" : "flex-start", children: renderElement({ id: "legend" }) })] })) : (jsx(Fragment$1, { children: "\u2014" })) })] }))] }));
5972
5973
  });
5973
5974
 
5974
5975
  const PagesContainer = memo(({ type = WidgetType.Dashboard, noBorders }) => {