@evergis/react 3.1.49 → 3.1.50
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 +3 -3
- package/dist/react.esm.js +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5423,7 +5423,7 @@ const formatElementValue = ({ t, value, elementConfig, attributes, wrap, }) => {
|
|
|
5423
5423
|
: valueOrDefault;
|
|
5424
5424
|
if (!wrap)
|
|
5425
5425
|
return resultValue;
|
|
5426
|
-
return (jsxRuntime.jsxs(React.Fragment, { children: [tagView ? (jsxRuntime.jsx(DashboardChip$1, { text: resultValue, "$bgColor": bgColor, "$fontColor": fontColor, "$fontSize": fontSize, "$radius": radius, style: style })) : (jsxRuntime.jsx(ElementValueWrapper, { "data-id": id, "data-templatename": templateName, children: resultValue })), withDivider && jsxRuntime.jsx(uilibGl.Divider, {})] }, id));
|
|
5426
|
+
return (jsxRuntime.jsxs(React.Fragment, { children: [tagView ? (jsxRuntime.jsx(DashboardChip$1, { text: resultValue, "$bgColor": bgColor, "$fontColor": fontColor, "$fontSize": fontSize, "$radius": radius, style: style })) : (jsxRuntime.jsx(ElementValueWrapper, { "data-id": id, "data-templatename": templateName, style: style, children: resultValue })), withDivider && jsxRuntime.jsx(uilibGl.Divider, {})] }, id));
|
|
5427
5427
|
};
|
|
5428
5428
|
|
|
5429
5429
|
const getAttributeValue = (element, attributes) => {
|
|
@@ -5474,7 +5474,7 @@ const ContainersGroupContainer = React.memo(({ elementConfig, type, renderElemen
|
|
|
5474
5474
|
const { column, expandable, expanded } = options || {};
|
|
5475
5475
|
const isColumn = column === undefined || column;
|
|
5476
5476
|
const isVisible = isVisibleContainer(id, expandable, expanded, expandedContainers);
|
|
5477
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ExpandableTitle, { elementConfig: elementConfig, type: type, renderElement: renderElement }), isVisible && (jsxRuntime.jsx(Container, { id: id,
|
|
5477
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ExpandableTitle, { elementConfig: elementConfig, type: type, renderElement: renderElement }), isVisible && (jsxRuntime.jsx(Container, { id: id, isColumn: isColumn, children: jsxRuntime.jsx(ContainerChildren, { items: children, elementConfig: elementConfig, isColumn: isColumn, isMain: id?.startsWith(CONFIG_PAGE_ID), renderElement: renderElement }) }))] }));
|
|
5478
5478
|
});
|
|
5479
5479
|
|
|
5480
5480
|
const OneColumnContainer = React.memo(({ elementConfig, renderElement }) => {
|
|
@@ -6005,7 +6005,7 @@ const ChartContainer = React.memo(({ elementConfig, isVisible, type, renderEleme
|
|
|
6005
6005
|
const hasItems = !!data[0]?.items?.length;
|
|
6006
6006
|
if (!loading && !hasItems && hideEmpty)
|
|
6007
6007
|
return null;
|
|
6008
|
-
return (jsxRuntime.jsxs(
|
|
6008
|
+
return (jsxRuntime.jsxs(uilibGl.FlexSpan, { flexDirection: "column", children: [jsxRuntime.jsx(ExpandableTitle, { elementConfig: elementConfig, type: type, renderElement: renderElement }), isVisible && (jsxRuntime.jsxs(Container, { id: id, style: style, isColumn: true, children: [aliasElement && jsxRuntime.jsx(ContainerAlias, { hasBottomMargin: true, children: renderElement({ id: "alias" }) }), jsxRuntime.jsx(ContainerValue, { column: !twoColumns, alignItems: "center", children: hasItems ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ContainerChart, { children: renderElement({ id: "chart" }) }), jsxRuntime.jsx(ContainerLegend, { justifyContent: legendElement?.options?.center ? "center" : "flex-start", children: renderElement({ id: "legend" }) })] })) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: "\u2014" })) })] }))] }));
|
|
6009
6009
|
});
|
|
6010
6010
|
|
|
6011
6011
|
const PagesContainer = React.memo(({ type = exports.WidgetType.Dashboard, noBorders }) => {
|
package/dist/react.esm.js
CHANGED
|
@@ -5421,7 +5421,7 @@ const formatElementValue = ({ t, value, elementConfig, attributes, wrap, }) => {
|
|
|
5421
5421
|
: valueOrDefault;
|
|
5422
5422
|
if (!wrap)
|
|
5423
5423
|
return resultValue;
|
|
5424
|
-
return (jsxs(Fragment, { children: [tagView ? (jsx(DashboardChip$1, { text: resultValue, "$bgColor": bgColor, "$fontColor": fontColor, "$fontSize": fontSize, "$radius": radius, style: style })) : (jsx(ElementValueWrapper, { "data-id": id, "data-templatename": templateName, children: resultValue })), withDivider && jsx(Divider, {})] }, id));
|
|
5424
|
+
return (jsxs(Fragment, { children: [tagView ? (jsx(DashboardChip$1, { text: resultValue, "$bgColor": bgColor, "$fontColor": fontColor, "$fontSize": fontSize, "$radius": radius, style: style })) : (jsx(ElementValueWrapper, { "data-id": id, "data-templatename": templateName, style: style, children: resultValue })), withDivider && jsx(Divider, {})] }, id));
|
|
5425
5425
|
};
|
|
5426
5426
|
|
|
5427
5427
|
const getAttributeValue = (element, attributes) => {
|
|
@@ -5472,7 +5472,7 @@ const ContainersGroupContainer = memo(({ elementConfig, type, renderElement }) =
|
|
|
5472
5472
|
const { column, expandable, expanded } = options || {};
|
|
5473
5473
|
const isColumn = column === undefined || column;
|
|
5474
5474
|
const isVisible = isVisibleContainer(id, expandable, expanded, expandedContainers);
|
|
5475
|
-
return (jsxs(Fragment$1, { children: [jsx(ExpandableTitle, { elementConfig: elementConfig, type: type, renderElement: renderElement }), isVisible && (jsx(Container, { id: id,
|
|
5475
|
+
return (jsxs(Fragment$1, { children: [jsx(ExpandableTitle, { elementConfig: elementConfig, type: type, renderElement: renderElement }), isVisible && (jsx(Container, { id: id, isColumn: isColumn, children: jsx(ContainerChildren, { items: children, elementConfig: elementConfig, isColumn: isColumn, isMain: id?.startsWith(CONFIG_PAGE_ID), renderElement: renderElement }) }))] }));
|
|
5476
5476
|
});
|
|
5477
5477
|
|
|
5478
5478
|
const OneColumnContainer = memo(({ elementConfig, renderElement }) => {
|
|
@@ -6003,7 +6003,7 @@ const ChartContainer = memo(({ elementConfig, isVisible, type, renderElement })
|
|
|
6003
6003
|
const hasItems = !!data[0]?.items?.length;
|
|
6004
6004
|
if (!loading && !hasItems && hideEmpty)
|
|
6005
6005
|
return null;
|
|
6006
|
-
return (jsxs(
|
|
6006
|
+
return (jsxs(FlexSpan, { flexDirection: "column", children: [jsx(ExpandableTitle, { elementConfig: elementConfig, type: type, renderElement: renderElement }), isVisible && (jsxs(Container, { id: id, style: style, 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" })) })] }))] }));
|
|
6007
6007
|
});
|
|
6008
6008
|
|
|
6009
6009
|
const PagesContainer = memo(({ type = WidgetType.Dashboard, noBorders }) => {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.1.
|
|
2
|
+
"version": "3.1.50",
|
|
3
3
|
"name": "@evergis/react",
|
|
4
4
|
"author": "Everpoint",
|
|
5
5
|
"license": "MIT",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"swiper": "^8.3.2",
|
|
82
82
|
"wkt": "^0.1.1"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "8e0f956a53f3fd6c2e7efe8a3c2b747237bafd95"
|
|
85
85
|
}
|