pds-dev-kit-web-test 2.7.539 → 2.7.541
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.
|
@@ -113,6 +113,12 @@ function Button(props) {
|
|
|
113
113
|
return '';
|
|
114
114
|
}
|
|
115
115
|
var value = queryContext.queryData[CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA];
|
|
116
|
+
if (value === null || value === undefined) {
|
|
117
|
+
if (mode === 'EDIT') {
|
|
118
|
+
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" });
|
|
119
|
+
}
|
|
120
|
+
return '';
|
|
121
|
+
}
|
|
116
122
|
if (formatOption) {
|
|
117
123
|
return formatOption.formatter(value);
|
|
118
124
|
}
|
|
@@ -98,11 +98,16 @@ function Text(props) {
|
|
|
98
98
|
if (mode === 'EDIT') {
|
|
99
99
|
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" });
|
|
100
100
|
}
|
|
101
|
-
return
|
|
101
|
+
return '';
|
|
102
102
|
}
|
|
103
103
|
var value = queryContext.queryData[CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA];
|
|
104
|
+
if (value === null || value === undefined) {
|
|
105
|
+
if (mode === 'EDIT') {
|
|
106
|
+
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" });
|
|
107
|
+
}
|
|
108
|
+
return '';
|
|
109
|
+
}
|
|
104
110
|
if (Array.isArray(value)) {
|
|
105
|
-
// 각 객체에서 name만 추출하여 문자열 배열로 만든 뒤 결합
|
|
106
111
|
return value.map(function (item) { return item.name; }).join(', ');
|
|
107
112
|
}
|
|
108
113
|
if (CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA === 'saleStatus') {
|
|
@@ -173,6 +178,9 @@ function Text(props) {
|
|
|
173
178
|
return props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT;
|
|
174
179
|
};
|
|
175
180
|
var getTruncatedText = function (text) {
|
|
181
|
+
if (!text || typeof text !== 'string') {
|
|
182
|
+
return text;
|
|
183
|
+
}
|
|
176
184
|
var maxLength = props.CB_STYLE_PROP_TEXT.CB_STYLE_PROP_TEXT_SPEC_ELLIPSIS;
|
|
177
185
|
if (isRichText(text)) {
|
|
178
186
|
return domstringToPlain(text, maxLength, true);
|