@evergis/react 4.0.51 → 4.0.53
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 -3
package/dist/index.js
CHANGED
|
@@ -5859,7 +5859,7 @@ const formatElementValue = ({ t, value, elementConfig, attributes, wrap, }) => {
|
|
|
5859
5859
|
const getAttributeValue = (element, attributes) => {
|
|
5860
5860
|
const attribute = getAttributeByName(element?.attributeName, attributes);
|
|
5861
5861
|
const { maxLength, separator, expandable, lineBreak } = element.options || {};
|
|
5862
|
-
let value
|
|
5862
|
+
let value;
|
|
5863
5863
|
if (attribute?.type === api.AttributeType.Boolean && typeof attribute.value === "boolean") {
|
|
5864
5864
|
return jsxRuntime.jsx(DashboardCheckbox, { title: attribute.alias || attribute.attributeName, checked: attribute.value });
|
|
5865
5865
|
}
|
|
@@ -5868,9 +5868,9 @@ const getAttributeValue = (element, attributes) => {
|
|
|
5868
5868
|
value = concatAttributes.join(separator || ", ");
|
|
5869
5869
|
}
|
|
5870
5870
|
else {
|
|
5871
|
-
value = attribute?.value
|
|
5871
|
+
value = !lodash.isNil(attribute?.value) ? attribute?.value : "";
|
|
5872
5872
|
}
|
|
5873
|
-
return maxLength && maxLength < value.length ? (jsxRuntime.jsx(TextTrim, { maxLength: maxLength, expandable: expandable, lineBreak: lineBreak, children: value })) : (value);
|
|
5873
|
+
return typeof value === "string" && maxLength && maxLength < value.length ? (jsxRuntime.jsx(TextTrim, { maxLength: maxLength, expandable: expandable, lineBreak: lineBreak, children: value })) : (value);
|
|
5874
5874
|
};
|
|
5875
5875
|
|
|
5876
5876
|
const getChartAxes = (chartElement) => chartElement?.options?.relatedDataSources?.filter(({ chartAxis }) => chartAxis === "y");
|
package/dist/react.esm.js
CHANGED
|
@@ -5857,7 +5857,7 @@ const formatElementValue = ({ t, value, elementConfig, attributes, wrap, }) => {
|
|
|
5857
5857
|
const getAttributeValue = (element, attributes) => {
|
|
5858
5858
|
const attribute = getAttributeByName(element?.attributeName, attributes);
|
|
5859
5859
|
const { maxLength, separator, expandable, lineBreak } = element.options || {};
|
|
5860
|
-
let value
|
|
5860
|
+
let value;
|
|
5861
5861
|
if (attribute?.type === AttributeType.Boolean && typeof attribute.value === "boolean") {
|
|
5862
5862
|
return jsx(DashboardCheckbox, { title: attribute.alias || attribute.attributeName, checked: attribute.value });
|
|
5863
5863
|
}
|
|
@@ -5866,9 +5866,9 @@ const getAttributeValue = (element, attributes) => {
|
|
|
5866
5866
|
value = concatAttributes.join(separator || ", ");
|
|
5867
5867
|
}
|
|
5868
5868
|
else {
|
|
5869
|
-
value = attribute?.value
|
|
5869
|
+
value = !isNil(attribute?.value) ? attribute?.value : "";
|
|
5870
5870
|
}
|
|
5871
|
-
return maxLength && maxLength < value.length ? (jsx(TextTrim, { maxLength: maxLength, expandable: expandable, lineBreak: lineBreak, children: value })) : (value);
|
|
5871
|
+
return typeof value === "string" && maxLength && maxLength < value.length ? (jsx(TextTrim, { maxLength: maxLength, expandable: expandable, lineBreak: lineBreak, children: value })) : (value);
|
|
5872
5872
|
};
|
|
5873
5873
|
|
|
5874
5874
|
const getChartAxes = (chartElement) => chartElement?.options?.relatedDataSources?.filter(({ chartAxis }) => chartAxis === "y");
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.0.
|
|
2
|
+
"version": "4.0.53",
|
|
3
3
|
"name": "@evergis/react",
|
|
4
4
|
"author": "Everpoint",
|
|
5
5
|
"license": "MIT",
|
|
@@ -86,6 +86,5 @@
|
|
|
86
86
|
"swiper": "^8.3.2",
|
|
87
87
|
"uuid": "^13.0.0",
|
|
88
88
|
"wkt": "^0.1.1"
|
|
89
|
-
}
|
|
90
|
-
"gitHead": "d532e31a14f55300a9ed8a951d0c839bfec0f31f"
|
|
89
|
+
}
|
|
91
90
|
}
|