@idscan/idvc2 2.5.7 → 2.5.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.
- package/README.md +4 -0
- package/dist/css/idvc.css +1 -0
- package/dist/idvc.js +1684 -0
- package/dist/index.html +114 -0
- package/dist/js/defaultConfig.ts +303 -0
- package/dist/js/environment/capturingModes.json +4 -0
- package/dist/js/environment/cssVariables.json +191 -0
- package/dist/js/environment/designations.ts +23 -0
- package/dist/js/environment/documentTypes.ts +151 -0
- package/dist/js/environment/langs.js +1 -0
- package/dist/js/environment/loadModes.json +11 -0
- package/dist/js/environment/loopResult.ts +14 -0
- package/dist/js/environment/modalPosition.ts +27 -0
- package/dist/js/environment/networkNames.json +9 -0
- package/dist/js/environment/realFaceModes.ts +24 -0
- package/dist/js/environment/stepsDescription.ts +64 -0
- package/dist/js/environment/triangulation.ts +188 -0
- package/dist/networks/156-2c44-chunk.js +1 -0
- package/dist/networks/190-00d9-chunk.js +1 -0
- package/dist/networks/77-705c-chunk.js +1 -0
- package/dist/networks/Face-5c85-chunk.js +1 -0
- package/dist/networks/MRZ-70ee-chunk.js +1 -0
- package/dist/networks/PDF-4ee2-chunk.js +1 -0
- package/dist/networks/ZXing-f54a-chunk.js +1 -0
- package/dist/networks/angle03032023.onnx +0 -0
- package/dist/networks/classLocal03032023.onnx +0 -0
- package/dist/networks/faceDetection03032023.onnx +0 -0
- package/dist/networks/faceLandmark03032023.onnx +0 -0
- package/dist/networks/mrz03032023.onnx +0 -0
- package/dist/networks/ort-wasm-simd-threaded.wasm +0 -0
- package/dist/networks/ort-wasm-simd.wasm +0 -0
- package/dist/networks/ort-wasm-threaded.wasm +0 -0
- package/dist/networks/ort-wasm.wasm +0 -0
- package/package.json +45 -45
- package/dist/types/assets/images/barcode.d.ts +0 -2
- package/dist/types/assets/images/face.d.ts +0 -2
- package/dist/types/assets/images/front.d.ts +0 -2
- package/dist/types/assets/images/mrz.d.ts +0 -2
- package/dist/types/assets/images/pdf.d.ts +0 -2
- package/dist/types/bl.d.ts +0 -15
- package/dist/types/constatnts/camera.d.ts +0 -11
- package/dist/types/constatnts/imageProcessing.d.ts +0 -3
- package/dist/types/constatnts/pdf.d.ts +0 -1
- package/dist/types/context.d.ts +0 -118
- package/dist/types/defaultConfig.d.ts +0 -57
- package/dist/types/environment/designations.d.ts +0 -5
- package/dist/types/environment/documentTypes.d.ts +0 -26
- package/dist/types/environment/langs.d.ts +0 -89
- package/dist/types/environment/loopResult.d.ts +0 -8
- package/dist/types/environment/modalPosition.d.ts +0 -19
- package/dist/types/environment/realFaceModes.d.ts +0 -22
- package/dist/types/environment/stepsDescription.d.ts +0 -54
- package/dist/types/environment/triangulation.d.ts +0 -18
- package/dist/types/eventListeners/eventListeners.d.ts +0 -15
- package/dist/types/eventListeners/selectDocumentType/selectHandler.d.ts +0 -5
- package/dist/types/helpers/apiSupport.d.ts +0 -1
- package/dist/types/helpers/canvas.d.ts +0 -34
- package/dist/types/helpers/color.d.ts +0 -14
- package/dist/types/helpers/dataManipulation.d.ts +0 -27
- package/dist/types/helpers/detectLanguage.d.ts +0 -3
- package/dist/types/helpers/geometry.d.ts +0 -35
- package/dist/types/helpers/html.d.ts +0 -26
- package/dist/types/helpers/image.d.ts +0 -36
- package/dist/types/helpers/imageprocessing.d.ts +0 -11
- package/dist/types/helpers/licenceKeyError.d.ts +0 -6
- package/dist/types/helpers/manualUpload.d.ts +0 -7
- package/dist/types/helpers/math.d.ts +0 -35
- package/dist/types/helpers/mobileChecker.d.ts +0 -15
- package/dist/types/helpers/numbers.d.ts +0 -2
- package/dist/types/helpers/step-background.d.ts +0 -2
- package/dist/types/helpers/strings.d.ts +0 -9
- package/dist/types/helpers/time.d.ts +0 -11
- package/dist/types/helpers/ts/common.d.ts +0 -17
- package/dist/types/helpers/updateSelecetTypes.d.ts +0 -3
- package/dist/types/helpers/validators.d.ts +0 -44
- package/dist/types/idvc.d.ts +0 -19
- package/dist/types/initialize.d.ts +0 -12
- package/dist/types/loader/asyncLoader.d.ts +0 -1
- package/dist/types/loader/loadAnglesModel.d.ts +0 -2
- package/dist/types/loader/loadFrontModels.d.ts +0 -2
- package/dist/types/loader/loaderClassLocal.d.ts +0 -2
- package/dist/types/loader/loaderFace.d.ts +0 -2
- package/dist/types/loader/loaderMRZ.d.ts +0 -4
- package/dist/types/loader/loaderMeshFace.d.ts +0 -3
- package/dist/types/loader/loaderPDF.d.ts +0 -3
- package/dist/types/loader/loaderUploadMode.d.ts +0 -1
- package/dist/types/loader/loaderZXing.d.ts +0 -2
- package/dist/types/loop.d.ts +0 -13
- package/dist/types/loopControl.d.ts +0 -10
- package/dist/types/modules/BarcodeModule.d.ts +0 -28
- package/dist/types/modules/Config.d.ts +0 -131
- package/dist/types/modules/FrontProcessing.d.ts +0 -11
- package/dist/types/modules/MetaData.d.ts +0 -10
- package/dist/types/modules/MrzModule.d.ts +0 -73
- package/dist/types/modules/PdfModule.d.ts +0 -79
- package/dist/types/modules/Step.d.ts +0 -69
- package/dist/types/modules/blur.d.ts +0 -4
- package/dist/types/modules/browwserCompatibilities.d.ts +0 -7
- package/dist/types/modules/camera/camera.d.ts +0 -14
- package/dist/types/modules/camera/cameraManager.d.ts +0 -9
- package/dist/types/modules/face/Face.d.ts +0 -63
- package/dist/types/modules/face/MeshFace.d.ts +0 -48
- package/dist/types/modules/face/SimpleFace.d.ts +0 -23
- package/dist/types/modules/feature-detect/simd.d.ts +0 -2
- package/dist/types/modules/frameQuality.d.ts +0 -10
- package/dist/types/modules/heic.d.ts +0 -11
- package/dist/types/modules/image.d.ts +0 -13
- package/dist/types/modules/initErrorHandler.d.ts +0 -10
- package/dist/types/modules/licenseKeyChecker.d.ts +0 -1
- package/dist/types/modules/manualUpload.d.ts +0 -7
- package/dist/types/modules/manualUploadProcessing.d.ts +0 -30
- package/dist/types/modules/mediaDevices.d.ts +0 -2
- package/dist/types/modules/moduleInitializer.d.ts +0 -8
- package/dist/types/modules/step-functions/face.d.ts +0 -2
- package/dist/types/modules/step-functions/pdf.d.ts +0 -13
- package/dist/types/modules/step-result-processing/barcode.d.ts +0 -2
- package/dist/types/modules/step-result-processing/common.d.ts +0 -1
- package/dist/types/modules/step-result-processing/mrz.d.ts +0 -2
- package/dist/types/modules/step-result-processing/pdf.d.ts +0 -2
- package/dist/types/modules/step-result-processing/simpleFace.d.ts +0 -2
- package/dist/types/modules/step-result-processing/volumeFace.d.ts +0 -7
- package/dist/types/modules/stepFunctions.d.ts +0 -5
- package/dist/types/modules/stepResultProcessing.d.ts +0 -9
- package/dist/types/modules/ui/Flashlight.d.ts +0 -17
- package/dist/types/modules/ui/MaskCapture.d.ts +0 -52
- package/dist/types/modules/ui/MessageBox.d.ts +0 -19
- package/dist/types/modules/ui/Modal.d.ts +0 -20
- package/dist/types/modules/ui/SelectDocumentType.d.ts +0 -37
- package/dist/types/modules/ui/canvas.d.ts +0 -48
- package/dist/types/modules/ui/forceCaptruringBtn.d.ts +0 -12
- package/dist/types/modules/ui/hints.d.ts +0 -17
- package/dist/types/modules/ui/limitations.d.ts +0 -2
- package/dist/types/modules/ui/manualSwitchBtn.d.ts +0 -30
- package/dist/types/modules/ui/selectDocumentType/documentSelectedEvent.d.ts +0 -7
- package/dist/types/modules/ui/spinner.d.ts +0 -13
- package/dist/types/modules/ui/swiper.d.ts +0 -3
- package/dist/types/modules/uploader.d.ts +0 -58
- package/dist/types/modules/validation/ValidateBool.d.ts +0 -5
- package/dist/types/modules/validation/ValidateDocumentTypes.d.ts +0 -20
- package/dist/types/modules/validation/ValidateElement.d.ts +0 -5
- package/dist/types/modules/validation/ValidateFunction.d.ts +0 -5
- package/dist/types/modules/validation/ValidateNumber.d.ts +0 -5
- package/dist/types/modules/validation/ValidateString.d.ts +0 -5
- package/dist/types/modules/validation/ValidateStringInArray.d.ts +0 -12
- package/dist/types/modules/validation/showValidationError.d.ts +0 -2
- package/dist/types/modules/validation/validatorFactory.d.ts +0 -10
- package/dist/types/modules/validator.d.ts +0 -12
- package/dist/types/neural models/Provider.d.ts +0 -4
- package/dist/types/neural models/anglesModel.d.ts +0 -15
- package/dist/types/neural models/blazeFaceModel.d.ts +0 -27
- package/dist/types/neural models/classLocal/exits.d.ts +0 -3
- package/dist/types/neural models/classLocalModel.d.ts +0 -29
- package/dist/types/neural models/meshFaceModel.d.ts +0 -17
- package/dist/types/neural models/mrzModel.d.ts +0 -20
- package/dist/types/neural models/neuralModel.d.ts +0 -18
- package/dist/types/neural models/preload.d.ts +0 -7
- package/dist/types/stepProcessing.d.ts +0 -27
- package/dist/types/types/enums/realFace.d.ts +0 -4
- package/dist/types/types/modules/camera.enum.d.ts +0 -18
- package/dist/types/ui.d.ts +0 -89
- package/dist/types/util.d.ts +0 -34
- package/dist/types/workers/blurWorker.d.ts +0 -1
- package/dist/types/workers/bubbleWorker.d.ts +0 -1
- package/dist/types/workers/loadNetworksWorker.d.ts +0 -0
- package/dist/types/workers/mrzWorker.d.ts +0 -1
package/dist/index.html
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta charset="utf-8"><title>Demo Pages</title><link href="css/idvc.css" rel="stylesheet"><style>body {
|
|
2
|
+
background: #eff3fc;
|
|
3
|
+
margin: 0;
|
|
4
|
+
}
|
|
5
|
+
.container {
|
|
6
|
+
max-width: 480px;
|
|
7
|
+
margin: 0 auto;
|
|
8
|
+
}</style></head><body><div class="container"><div id="videoCapturingEl"></div></div><button id="btn">Show Spinner</button> <button id="btn-reload">Reload component</button> <button id="btn-remount">Remount component</button> <button id="btn-reconfig">Change config</button> <button id="btn-redocs">Change docTypes</button> <button id="btn-change-en">En</button> <button id="btn-change-es">Es</button><script src="idvc.js"></script><script src="langs.js"></script><script type="module">import IDVC from './idvc.js'
|
|
9
|
+
// LESHA: 'eyJwZGY0MTdrZXkiOiJRZmw3UlhrM2tocHlVQXY3SUFCVUF1L1lkUkpvYW9HRGpZQ3RFN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,
|
|
16
|
+
parsePDF: true,
|
|
17
|
+
realFaceMode: 'all', // none, auto, all
|
|
18
|
+
useCDN: false,
|
|
19
|
+
useHeic: false,
|
|
20
|
+
resizeUploadedImage: 2000,
|
|
21
|
+
isShowDocumentTypeSelect: false,
|
|
22
|
+
isShowGuidelinesButton: true,
|
|
23
|
+
language: 'en',
|
|
24
|
+
documentTypes: [
|
|
25
|
+
{
|
|
26
|
+
type: 'ID',
|
|
27
|
+
steps:[
|
|
28
|
+
{ type: 'front', name: 'Document Front' },
|
|
29
|
+
{ type: 'pdf', name: 'Document PDF417 Barcode' },
|
|
30
|
+
{ type: 'face', name: 'Face' },
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
// {
|
|
34
|
+
// type: 'VIN',
|
|
35
|
+
// steps:[
|
|
36
|
+
// { type: 'photo', name: 'VIN' },
|
|
37
|
+
// ],
|
|
38
|
+
// },
|
|
39
|
+
// {
|
|
40
|
+
// type: 'Barcode',
|
|
41
|
+
// steps:[
|
|
42
|
+
// { type: 'barcode', name: 'barcode detection' },
|
|
43
|
+
// ],
|
|
44
|
+
// },
|
|
45
|
+
{
|
|
46
|
+
type: 'Passport',
|
|
47
|
+
steps:[
|
|
48
|
+
{ type: 'front', name: 'Document Front' },
|
|
49
|
+
{ type: 'mrz', name: 'Passport Front', mode: { uploader: true, video: true } },
|
|
50
|
+
{ type: 'face', name: 'Face', mode: { uploader: false, video: true } }
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
clickGuidlines () {
|
|
55
|
+
console.log('clickGuidlines')
|
|
56
|
+
},
|
|
57
|
+
onChange (data) {
|
|
58
|
+
console.log('change')
|
|
59
|
+
console.log(data)
|
|
60
|
+
},
|
|
61
|
+
onReset (data) {
|
|
62
|
+
console.log('reset')
|
|
63
|
+
// console.log(data)
|
|
64
|
+
},
|
|
65
|
+
onCameraError (data) {
|
|
66
|
+
console.log('CAMERA_ERR', JSON.stringify(data))
|
|
67
|
+
},
|
|
68
|
+
submit (data) {
|
|
69
|
+
console.log(data)
|
|
70
|
+
},
|
|
71
|
+
onRetakeHook(data) {
|
|
72
|
+
console.log('retake');
|
|
73
|
+
// console.log(data);
|
|
74
|
+
},
|
|
75
|
+
onMounted() {
|
|
76
|
+
console.log('onMounted');
|
|
77
|
+
},
|
|
78
|
+
onReloaded() {
|
|
79
|
+
console.log('onReloaded');
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
let videoCapturingComponent = new IDVC(config);
|
|
83
|
+
let k = false
|
|
84
|
+
document.getElementById('btn').addEventListener('click', () => {
|
|
85
|
+
k = !k
|
|
86
|
+
videoCapturingComponent.showSpinner(k)
|
|
87
|
+
})
|
|
88
|
+
document.getElementById('btn-reload').addEventListener('click', () => {
|
|
89
|
+
videoCapturingComponent.reloadComponent(config);
|
|
90
|
+
})
|
|
91
|
+
document.getElementById('btn-remount').addEventListener('click', () => {
|
|
92
|
+
const el = document.getElementById(config.el);
|
|
93
|
+
el.innerHTML = '';
|
|
94
|
+
videoCapturingComponent = new IDVC(config)
|
|
95
|
+
})
|
|
96
|
+
document.getElementById('btn-reconfig').addEventListener('click', () => {
|
|
97
|
+
videoCapturingComponent.ddd()
|
|
98
|
+
})
|
|
99
|
+
document.getElementById('btn-redocs').addEventListener('click', () => {
|
|
100
|
+
videoCapturingComponent.updateDocumentTypes([{
|
|
101
|
+
type: 'Passport',
|
|
102
|
+
steps:[
|
|
103
|
+
{ type: 'front', name: 'Document Front' },
|
|
104
|
+
{ type: 'mrz', name: 'Passport Front', mode: { uploader: true, video: true } },
|
|
105
|
+
{ type: 'face', name: 'Face', mode: { uploader: true, video: true } }
|
|
106
|
+
],
|
|
107
|
+
},]);
|
|
108
|
+
})
|
|
109
|
+
document.getElementById('btn-change-en').addEventListener('click', () => {
|
|
110
|
+
videoCapturingComponent.changeLanguage('en');
|
|
111
|
+
})
|
|
112
|
+
document.getElementById('btn-change-es').addEventListener('click', () => {
|
|
113
|
+
videoCapturingComponent.changeLanguage('es');
|
|
114
|
+
})</script></body></html>
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import realFaceModes, { RealFaceMode } from './environment/realFaceModes';
|
|
2
|
+
import { DocumentTypeName } from './environment/documentTypes';
|
|
3
|
+
import { StepType } from './environment/stepsDescription';
|
|
4
|
+
import { supportedLanguages } from './environment/langs';
|
|
5
|
+
import { ModalPositionKeys, modalPositions } from './environment/modalPosition';
|
|
6
|
+
|
|
7
|
+
export type ValidationFn = 'validateElement' | 'validateString' | 'validateDocumentTypes' | 'validateDistinctStringInArray' | 'validateNumber' | 'validateFunction' | 'validateBool';
|
|
8
|
+
type DefaultValueFunction = () => boolean;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* { boolean? } uploader
|
|
12
|
+
* { boolean? } video
|
|
13
|
+
*/
|
|
14
|
+
export interface IStepMode {
|
|
15
|
+
uploader?: boolean,
|
|
16
|
+
video?: boolean,
|
|
17
|
+
}
|
|
18
|
+
export type IStepModeKeys = keyof IStepMode;
|
|
19
|
+
export interface IStepConfig {
|
|
20
|
+
type: StepType,
|
|
21
|
+
name: string,
|
|
22
|
+
mode: IStepMode,
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface IDocumentType {
|
|
26
|
+
type: DocumentTypeName,
|
|
27
|
+
steps: IStepConfig[],
|
|
28
|
+
mode?: IStepMode,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type DefaultConfigName = 'el'
|
|
32
|
+
| 'licenseKey'
|
|
33
|
+
| 'networkUrl'
|
|
34
|
+
| 'chunkPublicPath'
|
|
35
|
+
| 'language'
|
|
36
|
+
| 'documentTypes'
|
|
37
|
+
| 'realFaceMode'
|
|
38
|
+
| 'modalPosition'
|
|
39
|
+
| 'resizeUploadedImage'
|
|
40
|
+
| 'showSubmitBtn'
|
|
41
|
+
| 'h_stepMode'
|
|
42
|
+
| 'isShowDocumentTypeSelect'
|
|
43
|
+
| 'useCDN'
|
|
44
|
+
| 'useHeic'
|
|
45
|
+
| 'autoContinue'
|
|
46
|
+
| 'isShowGuidelinesButton'
|
|
47
|
+
| 'fixFrontOrientAfterUpload'
|
|
48
|
+
| 'onChange'
|
|
49
|
+
| 'clickGuidlines'
|
|
50
|
+
| 'onReset'
|
|
51
|
+
| 'submit'
|
|
52
|
+
| 'onRetakeHook'
|
|
53
|
+
| 'onCameraError'
|
|
54
|
+
| 'onMounted'
|
|
55
|
+
| 'onReloaded';
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* IDefaultConfig
|
|
59
|
+
* @param {string} name,
|
|
60
|
+
* @param {'String' | 'Array' | 'Number' | 'Boolean' | 'Function' | 'Object'} type,
|
|
61
|
+
* @param {string} description,
|
|
62
|
+
* @param {string | boolean | DefaultValueFunction | number | IDocumentType[]} defaultValue,
|
|
63
|
+
* @param {ValidationFn} validationFn,
|
|
64
|
+
* @parma {boolean} hidden?,
|
|
65
|
+
* @param {RealFaceMode[]} values?,
|
|
66
|
+
* @param {any[]} arrayValues,
|
|
67
|
+
* @param {boolean} multiple?,
|
|
68
|
+
*/
|
|
69
|
+
export interface IDefaultConfig {
|
|
70
|
+
name: DefaultConfigName,
|
|
71
|
+
type: 'String' | 'Array' | 'Number' | 'Boolean' | 'Function' | 'Object',
|
|
72
|
+
description: string,
|
|
73
|
+
defaultValue: IStepMode | string | boolean | DefaultValueFunction | number | IDocumentType[],
|
|
74
|
+
validationFn: ValidationFn,
|
|
75
|
+
hidden?: boolean,
|
|
76
|
+
values?: ModalPositionKeys[] | RealFaceMode[] | typeof supportedLanguages[number][],
|
|
77
|
+
arrayValues?: unknown[],
|
|
78
|
+
multiple?: boolean,
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @param {String} name - config param name
|
|
83
|
+
* @param {any} defaultValue - value to fallback
|
|
84
|
+
* @param {String} validationFn - name of validation function from Config module
|
|
85
|
+
*/
|
|
86
|
+
const defaultConfig: IDefaultConfig[] = [
|
|
87
|
+
{
|
|
88
|
+
name: 'el',
|
|
89
|
+
type: 'String',
|
|
90
|
+
description: 'Id of an element on the page where the component will be integrated.',
|
|
91
|
+
defaultValue: 'videoCapturingEl',
|
|
92
|
+
validationFn: 'validateElement',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'licenseKey',
|
|
96
|
+
type: 'String',
|
|
97
|
+
description: 'Key for the library',
|
|
98
|
+
defaultValue: '',
|
|
99
|
+
validationFn: 'validateString',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'networkUrl',
|
|
103
|
+
type: 'String',
|
|
104
|
+
description: 'Path to the folder with neural networks. Specify the path on the server if you need to remove the folder to another location. The default path is \'networks\'.',
|
|
105
|
+
defaultValue: 'networks',
|
|
106
|
+
validationFn: 'validateString',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: 'chunkPublicPath',
|
|
110
|
+
type: 'String',
|
|
111
|
+
description: 'Path to the folder with chunks. Specify the path on the server if you need to remove the folder to another location. The default path is \'networks\'.',
|
|
112
|
+
defaultValue: 'networks/',
|
|
113
|
+
validationFn: 'validateString',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'language',
|
|
117
|
+
values: Array.from(supportedLanguages),
|
|
118
|
+
type: 'Array',
|
|
119
|
+
description: 'The option sets the language used for the translation of the text in the library',
|
|
120
|
+
defaultValue: 'en',
|
|
121
|
+
validationFn: 'validateDistinctStringInArray',
|
|
122
|
+
arrayValues: Array.from(supportedLanguages),
|
|
123
|
+
multiple: false,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'documentTypes',
|
|
127
|
+
type: 'Array',
|
|
128
|
+
description: 'The option that describes what steps needs for each document type you are needed',
|
|
129
|
+
defaultValue: [{
|
|
130
|
+
type: 'ID',
|
|
131
|
+
steps: [
|
|
132
|
+
{
|
|
133
|
+
type: 'front', name: 'Document Front', mode: { uploader: true, video: true },
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
type: 'pdf', name: 'Document PDF417 Barcode', mode: { uploader: true, video: true },
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
type: 'face', name: 'Face', mode: { uploader: true, video: true },
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
}],
|
|
143
|
+
validationFn: 'validateDocumentTypes',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: 'realFaceMode',
|
|
147
|
+
values: ['auto', 'none', 'all'],
|
|
148
|
+
type: 'Array',
|
|
149
|
+
description: 'Option that enable advanced capture with volumetric face detection. Available values: \'auto\', \'none\'. Auto - enable "realFaceMode" only for iphone. All - enable "realFaceMode" for all devices. None - disable this option.',
|
|
150
|
+
defaultValue: 'auto',
|
|
151
|
+
validationFn: 'validateDistinctStringInArray',
|
|
152
|
+
arrayValues: Object.keys(realFaceModes),
|
|
153
|
+
multiple: false,
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'modalPosition',
|
|
157
|
+
type: 'Array',
|
|
158
|
+
description: 'Place the document type selection modal inside the component.',
|
|
159
|
+
defaultValue: 'center',
|
|
160
|
+
validationFn: 'validateDistinctStringInArray',
|
|
161
|
+
arrayValues: Object.keys(modalPositions),
|
|
162
|
+
multiple: false,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'resizeUploadedImage',
|
|
166
|
+
type: 'Number',
|
|
167
|
+
description: 'Sets the maximum size for manually loaded pictures.',
|
|
168
|
+
defaultValue: -1,
|
|
169
|
+
validationFn: 'validateNumber',
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: 'showSubmitBtn',
|
|
173
|
+
type: 'Boolean',
|
|
174
|
+
description: 'This option enables/disables the "submit" button after capturing all the images',
|
|
175
|
+
defaultValue: true,
|
|
176
|
+
hidden: true,
|
|
177
|
+
validationFn: 'validateBool',
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: 'h_stepMode',
|
|
181
|
+
type: 'Object',
|
|
182
|
+
description: 'Default value for step mode (video/uploader)',
|
|
183
|
+
defaultValue: { uploader: true, video: true },
|
|
184
|
+
hidden: true,
|
|
185
|
+
validationFn: null,
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: 'isShowDocumentTypeSelect',
|
|
189
|
+
type: 'Boolean',
|
|
190
|
+
description: 'If only one document type is in the config and this option is disabled, the library starts immediately.',
|
|
191
|
+
defaultValue: true,
|
|
192
|
+
validationFn: 'validateBool',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: 'useCDN',
|
|
196
|
+
type: 'Boolean',
|
|
197
|
+
description: 'Set to true if you prefer to load neural networks from cdn instead of your domain.',
|
|
198
|
+
defaultValue: false,
|
|
199
|
+
validationFn: 'validateBool',
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: 'useHeic',
|
|
203
|
+
type: 'Boolean',
|
|
204
|
+
description: 'This option switches on/off the HEIC images processing (HEIC is Apple’s proprietary version of the Image File format). It’s possible to upload only via a Mac/MacBook.',
|
|
205
|
+
defaultValue: false,
|
|
206
|
+
validationFn: 'validateBool',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'autoContinue',
|
|
210
|
+
type: 'Boolean',
|
|
211
|
+
description: 'This option switches on/off the automatic transition to the next step.',
|
|
212
|
+
defaultValue: true,
|
|
213
|
+
validationFn: 'validateBool',
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: 'isShowGuidelinesButton',
|
|
217
|
+
type: 'Boolean',
|
|
218
|
+
description: 'Switches on the button show guidLines',
|
|
219
|
+
defaultValue: false,
|
|
220
|
+
validationFn: 'validateBool',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: 'fixFrontOrientAfterUpload',
|
|
224
|
+
type: 'Boolean',
|
|
225
|
+
description: 'This option provides the possibility to adjust the correct position of the document in case of manual uploading.',
|
|
226
|
+
defaultValue: false,
|
|
227
|
+
validationFn: 'validateBool',
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: 'onChange',
|
|
231
|
+
type: 'Function',
|
|
232
|
+
description: 'Callback-function which will be called after change one step. The returnable value is the object with the type and the image',
|
|
233
|
+
defaultValue() {
|
|
234
|
+
return true;
|
|
235
|
+
},
|
|
236
|
+
validationFn: 'validateFunction',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: 'clickGuidlines',
|
|
240
|
+
type: 'Function',
|
|
241
|
+
description: 'Callback-function which will be called after guidLines button.',
|
|
242
|
+
defaultValue() {
|
|
243
|
+
return true;
|
|
244
|
+
},
|
|
245
|
+
validationFn: 'validateFunction',
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: 'onReset',
|
|
249
|
+
type: 'Function',
|
|
250
|
+
description: 'Callback-function which will be called after reset all the steps. The returnable value is the object with the steps',
|
|
251
|
+
defaultValue() {
|
|
252
|
+
return true;
|
|
253
|
+
},
|
|
254
|
+
validationFn: 'validateFunction',
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
name: 'submit',
|
|
258
|
+
type: 'Function',
|
|
259
|
+
description: 'Callback-function which will be called after completing all the steps.',
|
|
260
|
+
defaultValue() {
|
|
261
|
+
return true;
|
|
262
|
+
},
|
|
263
|
+
validationFn: 'validateFunction',
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
name: 'onRetakeHook',
|
|
267
|
+
type: 'Function',
|
|
268
|
+
description: 'The function that will be called before reset the current step. The returnable value is the object with the current step',
|
|
269
|
+
defaultValue() {
|
|
270
|
+
return true;
|
|
271
|
+
},
|
|
272
|
+
validationFn: 'validateFunction',
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
name: 'onCameraError',
|
|
276
|
+
type: 'Function',
|
|
277
|
+
description: 'The function that is invoked in case if the camera is not available. The response value is the object with the error code and the message',
|
|
278
|
+
defaultValue() {
|
|
279
|
+
return true;
|
|
280
|
+
},
|
|
281
|
+
validationFn: 'validateFunction',
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
name: 'onMounted',
|
|
285
|
+
type: 'Function',
|
|
286
|
+
description: 'the function that will be called on the component mounted. This function doesn\'t return a value.',
|
|
287
|
+
defaultValue() {
|
|
288
|
+
return true;
|
|
289
|
+
},
|
|
290
|
+
validationFn: 'validateFunction',
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
name: 'onReloaded',
|
|
294
|
+
type: 'Function',
|
|
295
|
+
description: 'Callback-function which will be called on the start component reloading',
|
|
296
|
+
defaultValue() {
|
|
297
|
+
return true;
|
|
298
|
+
},
|
|
299
|
+
validationFn: 'validateFunction',
|
|
300
|
+
},
|
|
301
|
+
];
|
|
302
|
+
|
|
303
|
+
export default defaultConfig;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
{
|
|
2
|
+
"--font-family": {
|
|
3
|
+
"default": "Arial, \"Helvetica Neue\", Helvetica, sans-serif",
|
|
4
|
+
"type": "String",
|
|
5
|
+
"description": [
|
|
6
|
+
"library's font family"
|
|
7
|
+
]
|
|
8
|
+
},
|
|
9
|
+
"--btn-border-radius-big": {
|
|
10
|
+
"default": 4,
|
|
11
|
+
"type": "Number",
|
|
12
|
+
"description": [
|
|
13
|
+
"radius of retake, continue, submit buttons"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"--btn-border-radius-small": {
|
|
17
|
+
"default": 4,
|
|
18
|
+
"type": "Number",
|
|
19
|
+
"description": [
|
|
20
|
+
"radius of the manual switch button",
|
|
21
|
+
"radius of the messagebox"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"--color-text-secondary-light": {
|
|
25
|
+
"default": "#C4C4C4",
|
|
26
|
+
"type": "Color",
|
|
27
|
+
"description": [
|
|
28
|
+
"'select document type' menus's checkmark"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"--color-positive-light": {
|
|
32
|
+
"default": "#17EA4C",
|
|
33
|
+
"type": "Color",
|
|
34
|
+
"description": [
|
|
35
|
+
"success frame on capturing"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"--border-color-divider": {
|
|
39
|
+
"default": "#C0C0C0",
|
|
40
|
+
"type": "Color",
|
|
41
|
+
"description": [
|
|
42
|
+
"message box's default border color",
|
|
43
|
+
"'select document type' menus's devider"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"--color-primary-light-2": {
|
|
47
|
+
"default": "#DCE7FD",
|
|
48
|
+
"type": "Color",
|
|
49
|
+
"description": [
|
|
50
|
+
"primary button hover, focus colors"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"--color-primary-light-7": {
|
|
54
|
+
"default": "#85AAF7",
|
|
55
|
+
"type": "Color",
|
|
56
|
+
"description": [
|
|
57
|
+
"transparent button hover and focus background color"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"--color-primary-light-9": {
|
|
61
|
+
"default": "#EEF3FE",
|
|
62
|
+
"type": "Color",
|
|
63
|
+
"description": [
|
|
64
|
+
"transparent button border hover, focus colors",
|
|
65
|
+
"'select document type' menus's selected item background"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"--color-primary-dark-2": {
|
|
69
|
+
"default": "#080D18",
|
|
70
|
+
"type": "Color",
|
|
71
|
+
"description": [
|
|
72
|
+
"primary button active colors",
|
|
73
|
+
"transparent button active font color and border color"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"--color-background-subheader": {
|
|
77
|
+
"default": "#F5F6F9",
|
|
78
|
+
"type": "Color",
|
|
79
|
+
"description": [
|
|
80
|
+
"background of the bottom part of the active step in 'steps' section",
|
|
81
|
+
"'type not defined' select background of the modal window",
|
|
82
|
+
"scrollbar of 'result' modal window"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"--color-background-white": {
|
|
86
|
+
"default": "#FFF",
|
|
87
|
+
"type": "Color",
|
|
88
|
+
"description": [
|
|
89
|
+
"uploader's background",
|
|
90
|
+
"background of 'result' modal window container",
|
|
91
|
+
"background of 'type not defined' modal window",
|
|
92
|
+
"background of 'document type-hint’ section"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"--border-color-base": {
|
|
96
|
+
"default": "#DCDFE6",
|
|
97
|
+
"type": "Color",
|
|
98
|
+
"description": [
|
|
99
|
+
"border of 'type not defined' modal window select",
|
|
100
|
+
"border of 'document type-hint' section",
|
|
101
|
+
"borders of top part in 'steps' section",
|
|
102
|
+
"bottom icons of inactive step in 'steps' section",
|
|
103
|
+
"image background in 'steps' section"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"--color-primary": {
|
|
107
|
+
"default": "#5185F3",
|
|
108
|
+
"type": "Color",
|
|
109
|
+
"description": [
|
|
110
|
+
"background of primary buttons",
|
|
111
|
+
"active step name, icon, and bottom line of the active step in 'steps' section",
|
|
112
|
+
"uploader labels, border",
|
|
113
|
+
"manual take picture button in video capturing",
|
|
114
|
+
"change the document type in 'document type-hint' section",
|
|
115
|
+
"step name on hover in 'steps' section",
|
|
116
|
+
"guideline inscription",
|
|
117
|
+
"background of the upload icon in the uploader",
|
|
118
|
+
"uploader's emphasized descriptions",
|
|
119
|
+
"disabled primary buttons",
|
|
120
|
+
"disabled button border",
|
|
121
|
+
"spinner's color"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"--color-success": {
|
|
125
|
+
"default": "#13CE66",
|
|
126
|
+
"type": "Color",
|
|
127
|
+
"description": [
|
|
128
|
+
"succeeded steps in 'steps' section",
|
|
129
|
+
"face shape when capturing the video in face step",
|
|
130
|
+
"capture progress",
|
|
131
|
+
"valid sign of 'result' modal window container",
|
|
132
|
+
"hints on video capture",
|
|
133
|
+
"background of uploader's success sign"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
"--color-danger": {
|
|
137
|
+
"default": "#FF4949",
|
|
138
|
+
"type": "Color",
|
|
139
|
+
"description": [
|
|
140
|
+
"background and bottom border of the step error in 'steps' section",
|
|
141
|
+
"header of 'type not defined' modal window",
|
|
142
|
+
"invalid sign of 'result' modal window container",
|
|
143
|
+
"license error text"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"--color-warning": {
|
|
147
|
+
"default": "#FFC632",
|
|
148
|
+
"type": "Color",
|
|
149
|
+
"description": [
|
|
150
|
+
"warning sign of uploader"
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"--color-text-secondary": {
|
|
154
|
+
"default": "#909399",
|
|
155
|
+
"type": "Color",
|
|
156
|
+
"description": [
|
|
157
|
+
"scrollbar of 'result' modal window",
|
|
158
|
+
"library version",
|
|
159
|
+
"descriptions of the uploader",
|
|
160
|
+
"close sign of 'result' modal window",
|
|
161
|
+
"name of the inactive step in 'steps' section"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"--color-black": {
|
|
165
|
+
"default": "#000",
|
|
166
|
+
"type": "Color",
|
|
167
|
+
"description": [
|
|
168
|
+
"face shape icon in video capturing when the face is not detected at the face step",
|
|
169
|
+
"shadow of 'type not defined' modal window",
|
|
170
|
+
"caption of 'type not defined' modal window select",
|
|
171
|
+
"uploader's bold descriptions",
|
|
172
|
+
"shadow of 'result' modal window",
|
|
173
|
+
"bottom border of 'result' modal window row",
|
|
174
|
+
"options of change the document type in 'document type-hint' section",
|
|
175
|
+
"uploader's error sign stroke",
|
|
176
|
+
"uploader's error description"
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
"--color-white": {
|
|
180
|
+
"default": "#FFF",
|
|
181
|
+
"type": "Color",
|
|
182
|
+
"description": [
|
|
183
|
+
"caption of buttons",
|
|
184
|
+
"border and caption of manual take picture button",
|
|
185
|
+
"upload icon",
|
|
186
|
+
"header description of 'type not defined' modal window",
|
|
187
|
+
"uploader success sign's checkmark",
|
|
188
|
+
"description of capture progress"
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// stores the decryption of the field designations in the transmitted metaData
|
|
2
|
+
export default [
|
|
3
|
+
{
|
|
4
|
+
oneLetterKey: 'a',
|
|
5
|
+
fullNameKey: 'userAgent',
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
oneLetterKey: 'c',
|
|
9
|
+
fullNameKey: 'capturedMethod',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
oneLetterKey: 'l',
|
|
13
|
+
fullNameKey: 'logs',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
oneLetterKey: 's',
|
|
17
|
+
fullNameKey: 'steps',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
oneLetterKey: 'v',
|
|
21
|
+
fullNameKey: 'version',
|
|
22
|
+
},
|
|
23
|
+
];
|