@visns-studio/visns-components 1.3.6 → 1.3.8
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.
|
@@ -342,14 +342,16 @@ const DataGrid = forwardRef(
|
|
|
342
342
|
<button
|
|
343
343
|
className="btn"
|
|
344
344
|
onClick={() => {
|
|
345
|
-
if (form.
|
|
346
|
-
window.open(
|
|
347
|
-
form.url,
|
|
348
|
-
"",
|
|
349
|
-
"width=1440,height=1024,menubar=1,resizable=1,status=1,titlebar=1,toolbar=1"
|
|
350
|
-
);
|
|
351
|
-
} else {
|
|
345
|
+
if (form.create) {
|
|
352
346
|
modalOpen("create", 0);
|
|
347
|
+
} else {
|
|
348
|
+
if (form.url) {
|
|
349
|
+
window.open(
|
|
350
|
+
form.url,
|
|
351
|
+
"",
|
|
352
|
+
"width=1440,height=1024,menubar=1,resizable=1,status=1,titlebar=1,toolbar=1"
|
|
353
|
+
);
|
|
354
|
+
}
|
|
353
355
|
}
|
|
354
356
|
}}
|
|
355
357
|
>
|
|
@@ -1094,27 +1096,9 @@ const DataGrid = forwardRef(
|
|
|
1094
1096
|
name: column.id,
|
|
1095
1097
|
render: ({ data }) => {
|
|
1096
1098
|
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
|
-
}
|
|
1099
|
+
return (
|
|
1100
|
+
<span>{parse(data[column.id])}</span>
|
|
1101
|
+
);
|
|
1118
1102
|
} else {
|
|
1119
1103
|
return null;
|
|
1120
1104
|
}
|
|
@@ -1379,12 +1363,14 @@ const DataGrid = forwardRef(
|
|
|
1379
1363
|
/\//g,
|
|
1380
1364
|
"-"
|
|
1381
1365
|
)}`}
|
|
1382
|
-
|
|
1366
|
+
minRowHeight={40}
|
|
1383
1367
|
onFilterValueChange={setFilterValue}
|
|
1384
1368
|
onRenderRow={onRenderRow}
|
|
1385
1369
|
pagination
|
|
1386
1370
|
renderColumnContextMenu={renderColumnContextMenu}
|
|
1371
|
+
rowHeight={null}
|
|
1387
1372
|
showZebraRows={true}
|
|
1373
|
+
style={gridStyle}
|
|
1388
1374
|
/>
|
|
1389
1375
|
<Popup
|
|
1390
1376
|
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.8",
|
|
38
38
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
39
39
|
"main": "index.js",
|
|
40
40
|
"devDependencies": {},
|