reneco-advanced-input-module 0.0.26 → 0.0.27
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/cjs/voice-input-module.cjs.entry.js +8 -0
- package/dist/cjs/voice-input-module.cjs.entry.js.map +1 -1
- package/dist/cjs/voice-input-module.entry.cjs.js.map +1 -1
- package/dist/collection/components/voice-input-module/voice-input-module.js +8 -0
- package/dist/collection/components/voice-input-module/voice-input-module.js.map +1 -1
- package/dist/components/voice-input-module.js +8 -0
- package/dist/components/voice-input-module.js.map +1 -1
- package/dist/esm/voice-input-module.entry.js +8 -0
- package/dist/esm/voice-input-module.entry.js.map +1 -1
- package/dist/voice-input-module/{p-f14c05d0.entry.js → p-20ef690a.entry.js} +2 -2
- package/dist/voice-input-module/p-20ef690a.entry.js.map +1 -0
- package/dist/voice-input-module/voice-input-module.entry.esm.js.map +1 -1
- package/dist/voice-input-module/voice-input-module.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/{p-4e26fbbb.js → p-14ee7fca.js} +1 -1
- package/www/build/{p-f14c05d0.entry.js → p-20ef690a.entry.js} +2 -2
- package/www/build/p-20ef690a.entry.js.map +1 -0
- package/www/build/voice-input-module.entry.esm.js.map +1 -1
- package/www/build/voice-input-module.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/voice-input-module/p-f14c05d0.entry.js.map +0 -1
- package/www/build/p-f14c05d0.entry.js.map +0 -1
|
@@ -4808,6 +4808,8 @@ const VoiceFormRecorder = class {
|
|
|
4808
4808
|
if (!originalField.Settings)
|
|
4809
4809
|
originalField.Settings = {};
|
|
4810
4810
|
originalField.Settings.Default_Value = field.value;
|
|
4811
|
+
const rawConf = typeof field.confidence === 'number' ? field.confidence : parseFloat(field.confidence);
|
|
4812
|
+
originalField.confidence = isNaN(rawConf) ? null : rawConf;
|
|
4811
4813
|
}
|
|
4812
4814
|
});
|
|
4813
4815
|
}
|
|
@@ -4821,6 +4823,8 @@ const VoiceFormRecorder = class {
|
|
|
4821
4823
|
originalField = updatedSchema[1].items.find((child) => child.label === field.name);
|
|
4822
4824
|
if (originalField && field.value !== undefined && field.value !== null && field.value !== '') {
|
|
4823
4825
|
updatedSchema[2][originalField.name] = field.value;
|
|
4826
|
+
const rawConf = typeof field.confidence === 'number' ? field.confidence : parseFloat(field.confidence);
|
|
4827
|
+
originalField.confidence = isNaN(rawConf) ? null : rawConf;
|
|
4824
4828
|
}
|
|
4825
4829
|
});
|
|
4826
4830
|
}
|
|
@@ -4830,11 +4834,14 @@ const VoiceFormRecorder = class {
|
|
|
4830
4834
|
if (filledData === null || filledData === void 0 ? void 0 : filledData.fields) {
|
|
4831
4835
|
Object.entries(filledData.fields).forEach(([fieldID, field]) => {
|
|
4832
4836
|
if (field.value !== undefined && field.value !== null && field.value !== '') {
|
|
4837
|
+
const rawConf = typeof field.confidence === 'number' ? field.confidence : parseFloat(field.confidence);
|
|
4838
|
+
const confidence = isNaN(rawConf) ? null : rawConf;
|
|
4833
4839
|
if (field.id) {
|
|
4834
4840
|
const schemaField = updatedSchema.fields[field.id];
|
|
4835
4841
|
if (schemaField) {
|
|
4836
4842
|
schemaField.value = field.value;
|
|
4837
4843
|
schemaField.default = field.value;
|
|
4844
|
+
schemaField.confidence = confidence;
|
|
4838
4845
|
}
|
|
4839
4846
|
}
|
|
4840
4847
|
else {
|
|
@@ -4844,6 +4851,7 @@ const VoiceFormRecorder = class {
|
|
|
4844
4851
|
if (schemaField.title === fieldName) {
|
|
4845
4852
|
schemaField.value = field.value;
|
|
4846
4853
|
schemaField.default = field.value;
|
|
4854
|
+
schemaField.confidence = confidence;
|
|
4847
4855
|
break;
|
|
4848
4856
|
}
|
|
4849
4857
|
}
|