@visns-studio/visns-components 1.3.2 → 1.3.5
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.
|
@@ -561,9 +561,10 @@ const DataGrid = forwardRef(
|
|
|
561
561
|
let date;
|
|
562
562
|
let filterEditor = null;
|
|
563
563
|
let filterEditorProps = null;
|
|
564
|
-
let selectedDataSource = null;
|
|
565
564
|
let icons = [];
|
|
565
|
+
let match;
|
|
566
566
|
let relationName;
|
|
567
|
+
let selectedDataSource = null;
|
|
567
568
|
let stage;
|
|
568
569
|
let style;
|
|
569
570
|
let value;
|
|
@@ -1093,10 +1094,24 @@ const DataGrid = forwardRef(
|
|
|
1093
1094
|
name: column.id,
|
|
1094
1095
|
render: ({ data }) => {
|
|
1095
1096
|
if (data && data[column.id]) {
|
|
1096
|
-
|
|
1097
|
+
const regex = /<p>(.*?)<\/p>/gi;
|
|
1098
|
+
value;
|
|
1099
|
+
match;
|
|
1100
|
+
|
|
1101
|
+
while (
|
|
1102
|
+
(match = regex.exec(
|
|
1103
|
+
data[column.id]
|
|
1104
|
+
)) !== null
|
|
1105
|
+
) {
|
|
1106
|
+
const content = match[1].trim();
|
|
1107
|
+
if (content !== "") {
|
|
1108
|
+
value = content;
|
|
1109
|
+
break;
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1097
1112
|
|
|
1098
|
-
if (value
|
|
1099
|
-
return <span>{parse(value
|
|
1113
|
+
if (value) {
|
|
1114
|
+
return <span>{parse(value)}</span>;
|
|
1100
1115
|
} else {
|
|
1101
1116
|
return null;
|
|
1102
1117
|
}
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"react-dom": "^17.0.1"
|
|
35
35
|
},
|
|
36
36
|
"name": "@visns-studio/visns-components",
|
|
37
|
-
"version": "1.3.
|
|
37
|
+
"version": "1.3.5",
|
|
38
38
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
39
39
|
"main": "index.js",
|
|
40
40
|
"devDependencies": {},
|