@visns-studio/visns-components 5.2.2 → 5.2.3
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.
package/package.json
CHANGED
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
79
79
|
},
|
|
80
80
|
"name": "@visns-studio/visns-components",
|
|
81
|
-
"version": "5.2.
|
|
81
|
+
"version": "5.2.3",
|
|
82
82
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
83
83
|
"main": "src/index.js",
|
|
84
84
|
"files": [
|
|
@@ -622,6 +622,9 @@ function GenericDetail({
|
|
|
622
622
|
|
|
623
623
|
const renderOcrTemplate = (id) => {
|
|
624
624
|
const ocrTemplateBuilder = data[id];
|
|
625
|
+
const listOfKeys = data[id]?.DeducedData
|
|
626
|
+
? Object.assign({}, ...data[id].DeducedData)
|
|
627
|
+
: {};
|
|
625
628
|
|
|
626
629
|
return (
|
|
627
630
|
<>
|
|
@@ -643,30 +646,30 @@ function GenericDetail({
|
|
|
643
646
|
</tr>
|
|
644
647
|
</thead>
|
|
645
648
|
<tbody>
|
|
646
|
-
{Object.entries(
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
)
|
|
649
|
+
{Object.entries(listOfKeys).map(
|
|
650
|
+
([key, value], index) => (
|
|
651
|
+
<tr key={`ocr-keys-${index}`}>
|
|
652
|
+
<td>
|
|
653
|
+
<input
|
|
654
|
+
type="checkbox"
|
|
655
|
+
name={key}
|
|
656
|
+
value={key}
|
|
657
|
+
data-id={id}
|
|
658
|
+
checked={
|
|
659
|
+
ocrTemplateBuilder?.selectedKey?.includes(
|
|
660
|
+
key
|
|
661
|
+
) || false
|
|
662
|
+
}
|
|
663
|
+
onChange={
|
|
664
|
+
handleOcrKeyChange
|
|
665
|
+
}
|
|
666
|
+
/>
|
|
667
|
+
</td>
|
|
668
|
+
<td>{key}</td>
|
|
669
|
+
<td>{value}</td>
|
|
670
|
+
</tr>
|
|
671
|
+
)
|
|
672
|
+
)}
|
|
670
673
|
</tbody>
|
|
671
674
|
</table>
|
|
672
675
|
)}
|