dtable-ui-component 6.0.96 → 6.0.98
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.
|
@@ -31,13 +31,17 @@ class TextFormatter extends _react.default.Component {
|
|
|
31
31
|
value,
|
|
32
32
|
column
|
|
33
33
|
} = this.props;
|
|
34
|
-
const classname = (0, _classnames.default)('dtable-ui cell-formatter-container row-expand-jump-link-container text-formatter', containerClassName);
|
|
35
|
-
const formattedValue = this.getFormattedValue(value);
|
|
36
34
|
const isDisplayAsAsPhoneNumber = column ? (0, _dtableUtils.checkIsDisplayAsPhoneNumberColumn)(column) : false;
|
|
35
|
+
const classname = (0, _classnames.default)('dtable-ui cell-formatter-container text-formatter', containerClassName, {
|
|
36
|
+
'row-expand-jump-link-container': isDisplayAsAsPhoneNumber
|
|
37
|
+
});
|
|
38
|
+
const formattedValue = this.getFormattedValue(value);
|
|
37
39
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
38
40
|
className: classname,
|
|
39
41
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
40
|
-
className:
|
|
42
|
+
className: (0, _classnames.default)('text-formatter-value text-truncate', {
|
|
43
|
+
'row-expand-jump-link-value': isDisplayAsAsPhoneNumber
|
|
44
|
+
}),
|
|
41
45
|
children: formattedValue
|
|
42
46
|
}), isDisplayAsAsPhoneNumber && !!(0, _editorUtils.getTrimmedString)(value) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PhoneNumberLink.default, {
|
|
43
47
|
phoneNumber: value,
|