dtable-ui-component 0.1.90-test2 → 0.1.90-test5
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.
|
@@ -82,7 +82,7 @@ var HtmlLongTextFormatter = /*#__PURE__*/function (_Component) {
|
|
|
82
82
|
value: function render() {
|
|
83
83
|
var innerHtml = this.state.innerHtml;
|
|
84
84
|
var containerClassName = this.props.containerClassName;
|
|
85
|
-
var className = cn('dtable-ui cell-formatter-container long-text-formatter
|
|
85
|
+
var className = cn('dtable-ui cell-formatter-container long-text-formatter', containerClassName);
|
|
86
86
|
if (!innerHtml) return null;
|
|
87
87
|
return /*#__PURE__*/React.createElement("div", {
|
|
88
88
|
className: "".concat(className, " article"),
|
|
@@ -68,7 +68,8 @@ var LinkFormatter = /*#__PURE__*/function (_React$Component) {
|
|
|
68
68
|
className: "link-item",
|
|
69
69
|
onClick: _this.expandLinkedTableRow.bind(_assertThisInitialized(_this), row)
|
|
70
70
|
}, /*#__PURE__*/React.createElement("div", {
|
|
71
|
-
className: "link-name"
|
|
71
|
+
className: "link-name",
|
|
72
|
+
title: displayValue
|
|
72
73
|
}, displayValue));
|
|
73
74
|
});
|
|
74
75
|
return result;
|
|
@@ -91,9 +91,15 @@ var SimpleLongTextFormatter = /*#__PURE__*/function (_React$Component) {
|
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
*/
|
|
94
|
-
|
|
94
|
+
// in case that there is no `modal-wrapper`
|
|
95
|
+
if (!document.getElementById('modal-wrapper')) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
_this.clearTimer(); //if (!window.isMobile && this.state.value && this.state.value.text) {
|
|
100
|
+
|
|
95
101
|
|
|
96
|
-
if (
|
|
102
|
+
if (_this.props.value) {
|
|
97
103
|
_this.timer = setTimeout(function () {
|
|
98
104
|
var style = _this.ref.getBoundingClientRect();
|
|
99
105
|
|
|
@@ -130,7 +136,7 @@ var SimpleLongTextFormatter = /*#__PURE__*/function (_React$Component) {
|
|
|
130
136
|
|
|
131
137
|
var isPreview = this.state.isPreview;
|
|
132
138
|
var containerClassName = this.props.containerClassName;
|
|
133
|
-
var className = cn('dtable-ui cell-formatter-container long-text-formatter
|
|
139
|
+
var className = cn('dtable-ui cell-formatter-container long-text-formatter', containerClassName);
|
|
134
140
|
var value = this.translateValue();
|
|
135
141
|
return /*#__PURE__*/React.createElement("div", {
|
|
136
142
|
className: className,
|