@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260825113828 → 0.8.1-dev.20260825114921
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 -1
- package/dist/index.mjs +4 -1
- package/dist/server.js +4 -1
- package/dist/server.mjs +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5937,7 +5937,8 @@ var DatafieldNode = (props) => {
|
|
|
5937
5937
|
const value = props.dataitem ? getNestedProperty(props.dataitem, fieldName) : null;
|
|
5938
5938
|
const isEmptyValue = value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0 || typeof value === "object" && value !== null && Object.keys(value).length === 0;
|
|
5939
5939
|
const maxLines = props.node.maxLines;
|
|
5940
|
-
|
|
5940
|
+
const hasMaxLines = Boolean(maxLines && Number(maxLines) > 0);
|
|
5941
|
+
if (hasMaxLines) {
|
|
5941
5942
|
Object.assign(styles, {
|
|
5942
5943
|
display: "-webkit-box",
|
|
5943
5944
|
overflow: "hidden",
|
|
@@ -5945,6 +5946,7 @@ var DatafieldNode = (props) => {
|
|
|
5945
5946
|
WebkitLineClamp: String(maxLines)
|
|
5946
5947
|
});
|
|
5947
5948
|
}
|
|
5949
|
+
const title = hasMaxLines ? typeof value === "string" || typeof value === "number" ? String(value) : props.node.title : props.node.title;
|
|
5948
5950
|
const dataType = props.node.dataType;
|
|
5949
5951
|
if (isEmptyValue) return null;
|
|
5950
5952
|
if (dataType === "rawContent") {
|
|
@@ -5969,6 +5971,7 @@ var DatafieldNode = (props) => {
|
|
|
5969
5971
|
{
|
|
5970
5972
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
5971
5973
|
style: styles,
|
|
5974
|
+
title,
|
|
5972
5975
|
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
5973
5976
|
ViewControl_default,
|
|
5974
5977
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -869,7 +869,8 @@ var DatafieldNode = (props) => {
|
|
|
869
869
|
const value = props.dataitem ? getNestedProperty(props.dataitem, fieldName) : null;
|
|
870
870
|
const isEmptyValue = value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0 || typeof value === "object" && value !== null && Object.keys(value).length === 0;
|
|
871
871
|
const maxLines = props.node.maxLines;
|
|
872
|
-
|
|
872
|
+
const hasMaxLines = Boolean(maxLines && Number(maxLines) > 0);
|
|
873
|
+
if (hasMaxLines) {
|
|
873
874
|
Object.assign(styles, {
|
|
874
875
|
display: "-webkit-box",
|
|
875
876
|
overflow: "hidden",
|
|
@@ -877,6 +878,7 @@ var DatafieldNode = (props) => {
|
|
|
877
878
|
WebkitLineClamp: String(maxLines)
|
|
878
879
|
});
|
|
879
880
|
}
|
|
881
|
+
const title = hasMaxLines ? typeof value === "string" || typeof value === "number" ? String(value) : props.node.title : props.node.title;
|
|
880
882
|
const dataType = props.node.dataType;
|
|
881
883
|
if (isEmptyValue) return null;
|
|
882
884
|
if (dataType === "rawContent") {
|
|
@@ -901,6 +903,7 @@ var DatafieldNode = (props) => {
|
|
|
901
903
|
{
|
|
902
904
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
903
905
|
style: styles,
|
|
906
|
+
title,
|
|
904
907
|
children: /* @__PURE__ */ jsx22(
|
|
905
908
|
ViewControl_default,
|
|
906
909
|
{
|
package/dist/server.js
CHANGED
|
@@ -5904,7 +5904,8 @@ var DatafieldNode = (props) => {
|
|
|
5904
5904
|
const value = props.dataitem ? getNestedProperty(props.dataitem, fieldName) : null;
|
|
5905
5905
|
const isEmptyValue = value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0 || typeof value === "object" && value !== null && Object.keys(value).length === 0;
|
|
5906
5906
|
const maxLines = props.node.maxLines;
|
|
5907
|
-
|
|
5907
|
+
const hasMaxLines = Boolean(maxLines && Number(maxLines) > 0);
|
|
5908
|
+
if (hasMaxLines) {
|
|
5908
5909
|
Object.assign(styles, {
|
|
5909
5910
|
display: "-webkit-box",
|
|
5910
5911
|
overflow: "hidden",
|
|
@@ -5912,6 +5913,7 @@ var DatafieldNode = (props) => {
|
|
|
5912
5913
|
WebkitLineClamp: String(maxLines)
|
|
5913
5914
|
});
|
|
5914
5915
|
}
|
|
5916
|
+
const title = hasMaxLines ? typeof value === "string" || typeof value === "number" ? String(value) : props.node.title : props.node.title;
|
|
5915
5917
|
const dataType = props.node.dataType;
|
|
5916
5918
|
if (isEmptyValue) return null;
|
|
5917
5919
|
if (dataType === "rawContent") {
|
|
@@ -5936,6 +5938,7 @@ var DatafieldNode = (props) => {
|
|
|
5936
5938
|
{
|
|
5937
5939
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
5938
5940
|
style: styles,
|
|
5941
|
+
title,
|
|
5939
5942
|
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5940
5943
|
ViewControl_default,
|
|
5941
5944
|
{
|
package/dist/server.mjs
CHANGED
|
@@ -837,7 +837,8 @@ var DatafieldNode = (props) => {
|
|
|
837
837
|
const value = props.dataitem ? getNestedProperty(props.dataitem, fieldName) : null;
|
|
838
838
|
const isEmptyValue = value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0 || typeof value === "object" && value !== null && Object.keys(value).length === 0;
|
|
839
839
|
const maxLines = props.node.maxLines;
|
|
840
|
-
|
|
840
|
+
const hasMaxLines = Boolean(maxLines && Number(maxLines) > 0);
|
|
841
|
+
if (hasMaxLines) {
|
|
841
842
|
Object.assign(styles, {
|
|
842
843
|
display: "-webkit-box",
|
|
843
844
|
overflow: "hidden",
|
|
@@ -845,6 +846,7 @@ var DatafieldNode = (props) => {
|
|
|
845
846
|
WebkitLineClamp: String(maxLines)
|
|
846
847
|
});
|
|
847
848
|
}
|
|
849
|
+
const title = hasMaxLines ? typeof value === "string" || typeof value === "number" ? String(value) : props.node.title : props.node.title;
|
|
848
850
|
const dataType = props.node.dataType;
|
|
849
851
|
if (isEmptyValue) return null;
|
|
850
852
|
if (dataType === "rawContent") {
|
|
@@ -869,6 +871,7 @@ var DatafieldNode = (props) => {
|
|
|
869
871
|
{
|
|
870
872
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
871
873
|
style: styles,
|
|
874
|
+
title,
|
|
872
875
|
children: /* @__PURE__ */ jsx22(
|
|
873
876
|
ViewControl_default,
|
|
874
877
|
{
|