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