scanbot-web-sdk 6.0.0-dev.2 → 6.0.0-dev.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/@types/consume-type.d.ts +2 -1
- package/@types/core/bridge/common.d.ts +1 -1
- package/@types/core/bridge/compiled/BarcodeScannerTypes.d.ts +5 -3
- package/@types/core/bridge/compiled/GDRTypes.d.ts +38 -0
- package/@types/core/bridge/compiled/GenericDocument.d.ts +38 -0
- package/@types/core/bridge/compiled/GenericDocumentRecognizerConfigs.d.ts +183 -0
- package/@types/core/bridge/compiled/GenericDocumentRecognizerTypes.d.ts +7 -6
- package/@types/core/bridge/compiled/GenericDocumentTypes.d.ts +38 -0
- package/@types/core/bridge/compiled/ParametricFilters.d.ts +4 -2
- package/@types/core/bridge/worker-bridge.d.ts +584 -26
- package/@types/core/worker/ScanbotSDK.Core.d.ts +18 -7
- package/@types/core-types.d.ts +3 -1
- package/@types/document-scanner-view.d.ts +3 -1
- package/@types/index.d.ts +39 -4
- package/@types/model/barcode/barcode-result.d.ts +12 -2
- package/@types/model/barcode/barcode.d.ts +2 -1
- package/@types/model/camera-info.d.ts +3 -2
- package/@types/model/configuration/barcode-scanner-configuration.d.ts +6 -3
- package/@types/model/configuration/cropping-view-configuration.d.ts +5 -0
- package/@types/model/configuration/document-scanner-configuration.d.ts +2 -8
- package/@types/model/configuration/generic-document-recognizer-configuration.d.ts +1 -1
- package/@types/model/configuration/initialization-options.d.ts +8 -0
- package/@types/model/configuration/mrz-scanner-configuration.d.ts +1 -1
- package/@types/model/configuration/scanner-configuration.d.ts +7 -0
- package/@types/model/configuration/selection-overlay-configuration.d.ts +2 -2
- package/@types/model/configuration/view-finder-scanner-configuration.d.ts +1 -1
- package/@types/model/error/media-error.d.ts +1 -0
- package/@types/scanbot-sdk.d.ts +355 -52
- package/@types/service/generic-document-recognizer.d.ts +3 -1
- package/@types/service/simple-mrz-recognizer.d.ts +3 -1
- package/@types/service/text-data-recognizer.d.ts +3 -1
- package/@types/ui2/common.d.ts +8 -0
- package/@types/ui2/configuration/ActionBarConfiguration.d.ts +30 -30
- package/@types/ui2/configuration/ArTrackingOverlayConfiguration.d.ts +220 -220
- package/@types/ui2/configuration/BarcodeInfoMapping.d.ts +51 -51
- package/@types/ui2/configuration/BarcodeItemMapper.d.ts +2 -2
- package/@types/ui2/configuration/BarcodeRecognizerConfiguration.d.ts +32 -32
- package/@types/ui2/configuration/BarcodeScannerConfiguration.d.ts +168 -168
- package/@types/ui2/configuration/BarcodeScannerTypes.d.ts +1 -6
- package/@types/ui2/configuration/BarcodeScannerUIResult.d.ts +29 -0
- package/@types/ui2/configuration/BarcodeTextLocalization.d.ts +124 -69
- package/@types/ui2/configuration/BarcodeTypes.d.ts +1 -1
- package/@types/ui2/configuration/BarcodeUseCase.d.ts +4 -3
- package/@types/ui2/configuration/CameraConfiguration.d.ts +32 -32
- package/@types/ui2/configuration/CameraPermission.d.ts +33 -33
- package/@types/ui2/configuration/Common.d.ts +190 -190
- package/@types/ui2/configuration/CommonFieldType.d.ts +1 -0
- package/@types/ui2/configuration/FindAndPickScanningModeUseCase.d.ts +364 -12
- package/@types/ui2/configuration/GenericDocument.d.ts +1 -0
- package/@types/ui2/configuration/MultipleScanningModeUseCase.d.ts +488 -488
- package/@types/ui2/configuration/ScanbotAlertDialog.d.ts +27 -27
- package/@types/ui2/configuration/SingleScanningModeUseCase.d.ts +169 -169
- package/@types/ui2/configuration/TopBarConfiguration.d.ts +36 -36
- package/@types/ui2/configuration/UserGuidanceConfiguration.d.ts +16 -16
- package/@types/ui2/configuration/ViewFinderConfiguration.d.ts +45 -45
- package/@types/ui2/configuration.d.ts +2 -1
- package/@types/ui2/controllers/barcode-scanner-controller.d.ts +2 -2
- package/@types/ui2/controllers/multiple-scanning-mode-controller.d.ts +4 -2
- package/@types/ui2/controllers/single-scanning-mode-controller.d.ts +4 -2
- package/@types/ui2/model/counted-barcodes.d.ts +12 -19
- package/@types/ui2/scanbot-sdk-ui.d.ts +2 -2
- package/@types/ui2/scanbot-ui-library.d.ts +3 -2
- package/@types/ui2/utils/barcode-mapper/expected-barcode-mapper.d.ts +13 -0
- package/@types/ui2/utils/barcode-mapper/i-barcode-mapper.d.ts +18 -0
- package/@types/ui2/utils/{barcode-mapper.d.ts → barcode-mapper/user-barcode-mapper.d.ts} +4 -16
- package/@types/ui2/utils/find-and-pick.ts/expected-barcode-counter.d.ts +7 -0
- package/@types/ui2/utils/styled-badge.d.ts +1 -1
- package/@types/ui2/views/ar/ar-badge.d.ts +18 -0
- package/@types/ui2/views/ar/ar-overlay-barcode-info.d.ts +5 -1
- package/@types/ui2/views/ar/vertical-positions.d.ts +12 -0
- package/@types/ui2/views/barcode-info/barcode-info.d.ts +3 -1
- package/@types/ui2/views/barcode-scanner.d.ts +5 -5
- package/@types/ui2/views/dialog/base/confirmation-dialog.d.ts +20 -0
- package/@types/ui2/views/dialog/find-and-pick-submit-dialog.d.ts +10 -0
- package/@types/ui2/views/drawer/barcode-result-drawer.d.ts +1 -1
- package/@types/ui2/views/drawer/counting-button.d.ts +1 -1
- package/@types/ui2/views/drawer/subviews/barcode-drawer-empty-state.d.ts +1 -1
- package/@types/ui2/views/drawer/subviews/barcode-list-item.d.ts +5 -4
- package/@types/ui2/views/drawer/subviews/barcode-list.d.ts +8 -1
- package/@types/ui2/views/drawer/subviews/drawer-header-content.d.ts +1 -1
- package/@types/utils/barcode-utils.d.ts +10 -0
- package/@types/utils/browser-cameras.d.ts +92 -0
- package/@types/utils/dto/Polygon.d.ts +2 -1
- package/@types/utils/stats.d.ts +4 -0
- package/@types/utils/video-stream.d.ts +3 -3
- package/@types/utils/video-to-image-data/two-d-video-to-image-data.d.ts +8 -0
- package/@types/utils/video-to-image-data/video-to-image-data.d.ts +5 -0
- package/@types/utils/video-to-image-data/webgl-video-to-image-data.d.ts +21 -0
- package/@types/view/barcode-polygon/animated-barcode-selection-overlay.d.ts +1 -0
- package/@types/view/scanbot-camera-view.d.ts +9 -3
- package/@types/worker/worker-bridge.d.ts +587 -30
- package/bundle/ScanbotSDK.min.js +4 -4
- package/bundle/ScanbotSDK.ui2.min.js +16 -16
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
- package/package.json +2 -2
- package/@types/core/bridge/compiled_schemas_v3/BarcodeConfigs.d.ts +0 -973
- package/@types/core/bridge/compiled_schemas_v3/BarcodeScannerTypes.d.ts +0 -183
- package/@types/core/bridge/compiled_schemas_v3/BarcodeTypes.d.ts +0 -183
- package/@types/core/bridge/compiled_schemas_v3/CheckRecognizerTypes.d.ts +0 -29
- package/@types/core/bridge/compiled_schemas_v3/CommonFieldType.d.ts +0 -59
- package/@types/core/bridge/compiled_schemas_v3/DocumentDetectorTypes.d.ts +0 -196
- package/@types/core/bridge/compiled_schemas_v3/DocumentQualityAnalyzerTypes.d.ts +0 -105
- package/@types/core/bridge/compiled_schemas_v3/EhicTypes.d.ts +0 -218
- package/@types/core/bridge/compiled_schemas_v3/FrameUtilities.d.ts +0 -18
- package/@types/core/bridge/compiled_schemas_v3/GenericDocument.d.ts +0 -198
- package/@types/core/bridge/compiled_schemas_v3/GenericDocumentRecognizerTypes.d.ts +0 -104
- package/@types/core/bridge/compiled_schemas_v3/GenericTextLineScannerTypes.d.ts +0 -165
- package/@types/core/bridge/compiled_schemas_v3/Geometry.d.ts +0 -49
- package/@types/core/bridge/compiled_schemas_v3/ImageProcessorTypes.d.ts +0 -13
- package/@types/core/bridge/compiled_schemas_v3/LicensePlateScannerTypes.d.ts +0 -67
- package/@types/core/bridge/compiled_schemas_v3/MRZTypes.d.ts +0 -52
- package/@types/core/bridge/compiled_schemas_v3/MedicalCertificateTypes.d.ts +0 -306
- package/@types/core/bridge/compiled_schemas_v3/OcrElements.d.ts +0 -129
- package/@types/core/bridge/compiled_schemas_v3/ParametricFilters.d.ts +0 -186
- package/@types/core/bridge/compiled_schemas_v3/PdfConfig.d.ts +0 -197
- package/@types/core/bridge/compiled_schemas_v3/TiffTypes.d.ts +0 -183
- package/@types/ui2/configuration/BarcodeItem.d.ts +0 -6
- package/@types/ui2/configuration/utils.d.ts +0 -6
- /package/@types/ui2/views/dialog/{styled-dialog.d.ts → base/styled-dialog.d.ts} +0 -0
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import { ButtonConfiguration } from "./Common";
|
|
2
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
2
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
3
3
|
import { StyledText } from "./Common";
|
|
4
4
|
/**
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Configuration of the the standard alert dialog.
|
|
6
|
+
*/
|
|
7
7
|
export declare class ScanbotAlertDialog extends PartiallyConstructible {
|
|
8
8
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
Title displayed above the message.
|
|
10
|
+
@defaultValue new StyledText({
|
|
11
|
+
"text": "Title",
|
|
12
|
+
"color": "?sbColorOnSurface"
|
|
13
13
|
});
|
|
14
|
-
|
|
14
|
+
*/
|
|
15
15
|
title: StyledText;
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
Explanation message message.
|
|
18
|
+
@defaultValue new StyledText({
|
|
19
|
+
"text": "Standard explanation message text.",
|
|
20
|
+
"color": "?sbColorOnSurfaceVariant"
|
|
21
|
+
});
|
|
22
|
+
*/
|
|
23
23
|
subtitle: StyledText;
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
Background color of the alert dialog.
|
|
26
|
+
@defaultValue "?sbColorSurface";
|
|
27
|
+
*/
|
|
28
28
|
sheetColor: string;
|
|
29
29
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
Dialog overlay color.
|
|
31
|
+
@defaultValue "?sbColorModalOverlay";
|
|
32
|
+
*/
|
|
33
33
|
modalOverlayColor: string;
|
|
34
34
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
Color of the divider line.
|
|
36
|
+
@defaultValue "?sbColorOutline";
|
|
37
|
+
*/
|
|
38
38
|
dividerColor: string;
|
|
39
39
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
Configuration of the retry button.
|
|
41
|
+
*/
|
|
42
42
|
okButton: ButtonConfiguration;
|
|
43
43
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
Configuration of the cancel button.
|
|
45
|
+
*/
|
|
46
46
|
cancelButton: ButtonConfiguration;
|
|
47
47
|
/** @param source {@displayType `DeepPartial<ScanbotAlertDialog>`} */
|
|
48
48
|
constructor(source?: DeepPartial<ScanbotAlertDialog>);
|
|
@@ -1,201 +1,201 @@
|
|
|
1
1
|
import { ArOverlayGeneralConfiguration } from "./ArTrackingOverlayConfiguration";
|
|
2
2
|
import { BarcodeInfoMapping } from "./BarcodeInfoMapping";
|
|
3
3
|
import { ButtonConfiguration } from "./Common";
|
|
4
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
4
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
5
5
|
import { StyledText } from "./Common";
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
Configuration of the single barcode scanning mode.
|
|
8
|
+
*/
|
|
9
9
|
export declare class SingleScanningMode extends PartiallyConstructible {
|
|
10
10
|
readonly _type: "SingleScanningMode";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
If enabled, the confirmation sheet will be shown after the barcode has been scanned.
|
|
13
|
+
@defaultValue false;
|
|
14
|
+
*/
|
|
15
15
|
confirmationSheetEnabled: boolean;
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
If enabled, the barcode image will be shown on the confirmation sheet.
|
|
18
|
+
@defaultValue true;
|
|
19
|
+
*/
|
|
20
20
|
barcodeImageVisible: boolean;
|
|
21
21
|
/**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
Color of the confirmation sheet's background.
|
|
23
|
+
@defaultValue "?sbColorSurface";
|
|
24
|
+
*/
|
|
25
25
|
sheetColor: string;
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
Color of the divider and separator lines in the confirmation sheet.
|
|
28
|
+
@defaultValue "?sbColorOutline";
|
|
29
|
+
*/
|
|
30
30
|
dividerColor: string;
|
|
31
31
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
Background color of the overlay surrounding the confirmation sheet.
|
|
33
|
+
@defaultValue "?sbColorModalOverlay";
|
|
34
|
+
*/
|
|
35
35
|
modalOverlayColor: string;
|
|
36
36
|
/**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
Appearance of the barcode title (the barcode's value) on the confirmation sheet.
|
|
38
|
+
@defaultValue new StyledText({
|
|
39
|
+
"text": "BARCODE_TITLE",
|
|
40
|
+
"color": "?sbColorOnSurface"
|
|
41
41
|
});
|
|
42
|
-
|
|
42
|
+
*/
|
|
43
43
|
barcodeTitle: StyledText;
|
|
44
44
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
Appearance of the barcode subtitle (the barcode's symbology) on the confirmation sheet.
|
|
46
|
+
@defaultValue new StyledText({
|
|
47
|
+
"text": "BARCODE_SUBTITLE",
|
|
48
|
+
"color": "?sbColorOnSurfaceVariant"
|
|
49
|
+
});
|
|
50
|
+
*/
|
|
51
51
|
barcodeSubtitle: StyledText;
|
|
52
52
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
53
|
+
Appearance of the confirm button on the confirmation sheet.
|
|
54
|
+
@defaultValue new ButtonConfiguration({
|
|
55
|
+
"visible": true,
|
|
56
|
+
"text": "?sheetSubmitButton",
|
|
57
|
+
"background": new BackgroundStyle({
|
|
58
|
+
"strokeColor": "?sbColorPrimary",
|
|
59
|
+
"fillColor": "?sbColorPrimary",
|
|
60
|
+
"strokeWidth": 1.0
|
|
61
|
+
}),
|
|
62
|
+
"foreground": new ForegroundStyle({
|
|
63
|
+
"iconVisible": true,
|
|
64
|
+
"color": "?sbColorOnPrimary"
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
*/
|
|
68
68
|
submitButton: ButtonConfiguration;
|
|
69
69
|
/**
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
70
|
+
Appearance of the cancel button on the confirmation sheet.
|
|
71
|
+
@defaultValue new ButtonConfiguration({
|
|
72
|
+
"visible": true,
|
|
73
|
+
"text": "?singleModeConfirmationCancelButton",
|
|
74
|
+
"background": new BackgroundStyle({
|
|
75
|
+
"strokeColor": "#00000000",
|
|
76
|
+
"fillColor": "#00000000",
|
|
77
|
+
"strokeWidth": 1.0
|
|
78
|
+
}),
|
|
79
|
+
"foreground": new ForegroundStyle({
|
|
80
|
+
"iconVisible": false,
|
|
81
|
+
"color": "?sbColorPrimary"
|
|
82
|
+
})
|
|
83
|
+
});
|
|
84
|
+
*/
|
|
85
85
|
cancelButton: ButtonConfiguration;
|
|
86
86
|
/**
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
87
|
+
Appearance of the barcode info mapping.
|
|
88
|
+
@defaultValue new BarcodeInfoMapping({
|
|
89
|
+
"sheetColor": "?sbColorSurface",
|
|
90
|
+
"dividerColor": "?sbColorOutline",
|
|
91
|
+
"modalOverlayColor": "?sbColorModalOverlay",
|
|
92
|
+
"loadingMessage": new StyledText({
|
|
93
|
+
"text": "?barcodeInfoMappingLoadingMessage",
|
|
94
|
+
"color": "?sbColorPrimary"
|
|
95
|
+
}),
|
|
96
|
+
"errorState": new BarcodeItemErrorState({
|
|
97
|
+
"title": new StyledText({
|
|
98
|
+
"text": "?barcodeInfoMappingErrorStateTitle",
|
|
99
|
+
"color": "?sbColorOnSurface"
|
|
100
|
+
}),
|
|
101
|
+
"subtitle": new StyledText({
|
|
102
|
+
"text": "?barcodeInfoMappingErrorStateSubtitle",
|
|
103
|
+
"color": "?sbColorOnSurfaceVariant"
|
|
104
|
+
}),
|
|
105
|
+
"retryButton": new ButtonConfiguration({
|
|
106
|
+
"visible": true,
|
|
107
|
+
"text": "?barcodeInfoMappingErrorStateRetryButton",
|
|
108
|
+
"background": new BackgroundStyle({
|
|
109
|
+
"strokeColor": "?sbColorPrimary",
|
|
110
|
+
"fillColor": "?sbColorPrimary",
|
|
111
|
+
"strokeWidth": 1.0
|
|
112
|
+
}),
|
|
113
|
+
"foreground": new ForegroundStyle({
|
|
114
|
+
"iconVisible": true,
|
|
115
|
+
"color": "?sbColorOnPrimary"
|
|
116
|
+
})
|
|
117
|
+
}),
|
|
118
|
+
"cancelButton": new ButtonConfiguration({
|
|
119
|
+
"text": "?barcodeInfoMappingErrorStateCancelButton",
|
|
120
|
+
"background": new BackgroundStyle({
|
|
121
|
+
"strokeColor": "#00000000",
|
|
122
|
+
"fillColor": "#00000000",
|
|
123
|
+
"strokeWidth": 1.0
|
|
124
|
+
}),
|
|
125
|
+
"foreground": new ForegroundStyle({
|
|
126
|
+
"iconVisible": false,
|
|
127
|
+
"color": "?sbColorPrimary"
|
|
128
|
+
})
|
|
129
|
+
})
|
|
130
|
+
})
|
|
131
|
+
});
|
|
132
|
+
*/
|
|
133
133
|
barcodeInfoMapping: BarcodeInfoMapping;
|
|
134
134
|
/**
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
135
|
+
Configuration of the AR overlay.
|
|
136
|
+
@defaultValue new ArOverlayGeneralConfiguration({
|
|
137
|
+
"visible": false,
|
|
138
|
+
"counterBadge": new BadgeStyle({
|
|
139
|
+
"visible": true,
|
|
140
|
+
"background": new BackgroundStyle({
|
|
141
|
+
"strokeColor": "#000000FF",
|
|
142
|
+
"fillColor": "?sbColorPositive",
|
|
143
|
+
"strokeWidth": 0.0
|
|
144
|
+
}),
|
|
145
|
+
"foregroundColor": "?sbColorOnSurface"
|
|
146
|
+
}),
|
|
147
|
+
"automaticSelectionEnabled": false,
|
|
148
|
+
"barcodeItemInfoPosition": "BELOW",
|
|
149
|
+
"polygon": new ArOverlayPolygonConfiguration({
|
|
150
|
+
"visible": true,
|
|
151
|
+
"deselected": new PolygonStyle({
|
|
152
|
+
"strokeColor": "?sbColorSurface",
|
|
153
|
+
"fillColor": "#00000000",
|
|
154
|
+
"strokeWidth": 3.0,
|
|
155
|
+
"cornerRadius": 5.0
|
|
156
|
+
}),
|
|
157
|
+
"selected": new PolygonStyle({
|
|
158
|
+
"strokeColor": "?sbColorPositive",
|
|
159
|
+
"fillColor": "#00000000",
|
|
160
|
+
"strokeWidth": 3.0,
|
|
161
|
+
"cornerRadius": 5.0
|
|
162
|
+
})
|
|
163
|
+
}),
|
|
164
|
+
"barcodeItemConfiguration": new BarcodeItemConfiguration({
|
|
165
|
+
"imageVisible": true,
|
|
166
|
+
"titleSelected": new StyledText({
|
|
167
|
+
"text": "BARCODE_TITLE",
|
|
168
|
+
"color": "?sbColorOnSurface"
|
|
169
|
+
}),
|
|
170
|
+
"subtitleSelected": new StyledText({
|
|
171
|
+
"text": "BARCODE_SUBTITLE",
|
|
172
|
+
"color": "?sbColorOnSurfaceVariant"
|
|
173
|
+
}),
|
|
174
|
+
"titleDeselected": new StyledText({
|
|
175
|
+
"text": "BARCODE_TITLE",
|
|
176
|
+
"color": "?sbColorOnSurface"
|
|
177
|
+
}),
|
|
178
|
+
"subtitleDeselected": new StyledText({
|
|
179
|
+
"visible": true,
|
|
180
|
+
"text": "BARCODE_SUBTITLE",
|
|
181
|
+
"color": "?sbColorOnSurfaceVariant",
|
|
182
|
+
"useShadow": false
|
|
183
|
+
}),
|
|
184
|
+
"backgroundSelected": new PolygonStyle({
|
|
185
|
+
"strokeColor": "?sbColorPositive",
|
|
186
|
+
"fillColor": "?sbColorPositive",
|
|
187
|
+
"strokeWidth": 1.0,
|
|
188
|
+
"cornerRadius": 5.0
|
|
189
|
+
}),
|
|
190
|
+
"backgroundDeselected": new PolygonStyle({
|
|
191
|
+
"strokeColor": "?sbColorSurface",
|
|
192
|
+
"fillColor": "?sbColorSurface",
|
|
193
|
+
"strokeWidth": 1.0,
|
|
194
|
+
"cornerRadius": 5.0
|
|
195
|
+
})
|
|
196
|
+
})
|
|
197
|
+
});
|
|
198
|
+
*/
|
|
199
199
|
arOverlay: ArOverlayGeneralConfiguration;
|
|
200
200
|
/** @param source {@displayType `DeepPartial<SingleScanningMode>`} */
|
|
201
201
|
constructor(source?: DeepPartial<SingleScanningMode>);
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import { ButtonConfiguration } from "./Common";
|
|
2
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
2
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
3
3
|
import { StyledText } from "./Common";
|
|
4
4
|
/**
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Configuration of the top screen bar's appearance.
|
|
6
|
+
*/
|
|
7
7
|
export declare class TopBarConfiguration extends PartiallyConstructible {
|
|
8
8
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
Appearance of the top bar's title.
|
|
10
|
+
@defaultValue new StyledText({
|
|
11
|
+
"visible": false,
|
|
12
|
+
"text": "Scan Item",
|
|
13
|
+
"color": "?sbColorOnPrimary"
|
|
14
14
|
});
|
|
15
|
-
|
|
15
|
+
*/
|
|
16
16
|
title: StyledText;
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
Visual mode used for the top bar.
|
|
19
|
+
@defaultValue "SOLID";
|
|
20
|
+
*/
|
|
21
21
|
mode: TopBarMode;
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
Background color of the top bar to be used when the visual mode is specified as SOLID. Otherwise ignored.
|
|
24
|
+
@defaultValue "?sbColorPrimary";
|
|
25
|
+
*/
|
|
26
26
|
backgroundColor: string;
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
Configuration of the cancel button's appearance.
|
|
29
|
+
@defaultValue new ButtonConfiguration({
|
|
30
|
+
"text": "Cancel",
|
|
31
|
+
"background": new BackgroundStyle({
|
|
32
|
+
"strokeColor": "#00000000",
|
|
33
|
+
"fillColor": "#00000000",
|
|
34
|
+
"strokeWidth": 0.0
|
|
35
|
+
}),
|
|
36
|
+
"foreground": new ForegroundStyle({
|
|
37
|
+
"color": "?sbColorOnPrimary"
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
*/
|
|
41
41
|
cancelButton: ButtonConfiguration;
|
|
42
42
|
/** @param source {@displayType `DeepPartial<TopBarConfiguration>`} */
|
|
43
43
|
constructor(source?: DeepPartial<TopBarConfiguration>);
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
|
|
46
|
+
Visual mode used for the top bar.
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
- `SOLID`:
|
|
49
|
+
Display the top bar with a background color or with transparency.
|
|
50
|
+
- `GRADIENT`:
|
|
51
|
+
Display the top bar with a gradient background color or a transparent gradient. The buttons will still be visible.
|
|
52
|
+
- `HIDDEN`:
|
|
53
|
+
Hide the top bar completely.
|
|
54
|
+
*/
|
|
55
55
|
export type TopBarMode = "SOLID" | "GRADIENT" | "HIDDEN";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { BackgroundStyle } from "./Common";
|
|
2
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
2
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
3
3
|
import { StyledText } from "./Common";
|
|
4
4
|
/**
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Configuration of the hint guiding users through the scanning process.
|
|
6
|
+
*/
|
|
7
7
|
export declare class UserGuidanceConfiguration extends PartiallyConstructible {
|
|
8
8
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Whether the user guidance is visible.
|
|
10
|
+
@defaultValue true;
|
|
11
|
+
*/
|
|
12
12
|
visible: boolean;
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
Title of the user guidance.
|
|
15
|
+
@defaultValue new StyledText({
|
|
16
|
+
"color": "?sbColorOnPrimary"
|
|
17
17
|
});
|
|
18
|
-
|
|
18
|
+
*/
|
|
19
19
|
title: StyledText;
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
Background style used for the user guidance.
|
|
22
|
+
@defaultValue new BackgroundStyle({
|
|
23
|
+
"strokeColor": "#00000000",
|
|
24
|
+
"fillColor": "?sbColorSurfaceLow"
|
|
25
|
+
});
|
|
26
|
+
*/
|
|
27
27
|
background: BackgroundStyle;
|
|
28
28
|
/** @param source {@displayType `DeepPartial<UserGuidanceConfiguration>`} */
|
|
29
29
|
constructor(source?: DeepPartial<UserGuidanceConfiguration>);
|