@visns-studio/visns-components 1.3.6 → 1.3.7
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.
|
@@ -1094,27 +1094,9 @@ const DataGrid = forwardRef(
|
|
|
1094
1094
|
name: column.id,
|
|
1095
1095
|
render: ({ data }) => {
|
|
1096
1096
|
if (data && data[column.id]) {
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
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
|
-
}
|
|
1112
|
-
|
|
1113
|
-
if (value) {
|
|
1114
|
-
return <span>{parse(value)}</span>;
|
|
1115
|
-
} else {
|
|
1116
|
-
return null;
|
|
1117
|
-
}
|
|
1097
|
+
return (
|
|
1098
|
+
<span>{parse(data[column.id])}</span>
|
|
1099
|
+
);
|
|
1118
1100
|
} else {
|
|
1119
1101
|
return null;
|
|
1120
1102
|
}
|
|
@@ -1379,12 +1361,14 @@ const DataGrid = forwardRef(
|
|
|
1379
1361
|
/\//g,
|
|
1380
1362
|
"-"
|
|
1381
1363
|
)}`}
|
|
1382
|
-
|
|
1364
|
+
minRowHeight={40}
|
|
1383
1365
|
onFilterValueChange={setFilterValue}
|
|
1384
1366
|
onRenderRow={onRenderRow}
|
|
1385
1367
|
pagination
|
|
1386
1368
|
renderColumnContextMenu={renderColumnContextMenu}
|
|
1369
|
+
rowHeight={null}
|
|
1387
1370
|
showZebraRows={true}
|
|
1371
|
+
style={gridStyle}
|
|
1388
1372
|
/>
|
|
1389
1373
|
<Popup
|
|
1390
1374
|
open={modalShow}
|
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.7",
|
|
38
38
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
39
39
|
"main": "index.js",
|
|
40
40
|
"devDependencies": {},
|