@regulaforensics/ui-components 9.3.866-nightly → 9.3.867-rc
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/dist/core/index.cjs +1 -1
- package/dist/core/index.js +13 -9
- package/dist/main/index.cjs +1 -1
- package/dist/main/index.js +13 -9
- package/dist/typings/index.cjs +1 -1
- package/dist/typings/index.js +7 -3
- package/package.json +1 -1
package/dist/typings/index.js
CHANGED
|
@@ -16378,14 +16378,18 @@ RTextData = __decorateClass$1([
|
|
|
16378
16378
|
const getTextData = (input) => {
|
|
16379
16379
|
const result = [], containers = TextResultContainer.fromProcessResponse(input);
|
|
16380
16380
|
return containers.length && containers.forEach((container) => {
|
|
16381
|
+
const availableSources = container.Text.availableSourceList.map((i) => i.source);
|
|
16381
16382
|
container.Text.fieldList.forEach((field) => {
|
|
16382
16383
|
const current = new RTextData();
|
|
16383
16384
|
current.type = field.fieldType, current.value = field.value, current.lcid = field.lcid, current.checkResult = field.status, current.comparisonList = field.comparisonList?.map((i) => {
|
|
16384
16385
|
const current2 = new RTextDataComparison();
|
|
16385
16386
|
return current2.sourceLeft = i.sourceLeft, current2.sourceRight = i.sourceRight, current2.status = i.status, current2;
|
|
16386
|
-
}) || [], current.bySource = [],
|
|
16387
|
-
const
|
|
16388
|
-
|
|
16387
|
+
}) || [], current.bySource = [], availableSources.forEach((source) => {
|
|
16388
|
+
const validity = field.validityList.find((i) => i.source === source);
|
|
16389
|
+
field.valueList.filter((i) => i.source === source).forEach((i) => {
|
|
16390
|
+
const currentSource = new RTextDataSource();
|
|
16391
|
+
currentSource.checkResult = validity?.status ?? LE.WAS_NOT_DONE, currentSource.source = i.source, currentSource.value = i?.value ?? "", currentSource.pageIndex = i?.pageIndex ?? 0, currentSource.probability = i?.probability ?? 0, i.fieldRect && (currentSource.rect = i.fieldRect), i.rfidOrigin && (currentSource.rfidOrigin = i.rfidOrigin), current.bySource.push(currentSource);
|
|
16392
|
+
});
|
|
16389
16393
|
}), current.bySource.length && result.push(current);
|
|
16390
16394
|
});
|
|
16391
16395
|
}), result;
|