scanbot-web-sdk 7.0.0-dev.2 → 7.0.0-dev.4

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.
Files changed (108) hide show
  1. package/@types/barcode-scanner-view.d.ts +6 -6
  2. package/@types/core-types.d.ts +28 -28
  3. package/@types/cropping-view.d.ts +2 -2
  4. package/@types/document-data-extractor-view.d.ts +3 -3
  5. package/@types/document-scanner-view.d.ts +6 -6
  6. package/@types/index.d.ts +7 -33
  7. package/@types/model/barcode/barcode-result.d.ts +3 -7
  8. package/@types/model/barcode/barcode.d.ts +4 -4
  9. package/@types/model/configuration/{barcode-scanner-configuration.d.ts → barcode-scanner-view-configuration.d.ts} +5 -5
  10. package/@types/model/configuration/document-data-extractor-view-configuration.d.ts +9 -0
  11. package/@types/model/configuration/{document-scanner-configuration.d.ts → document-scanner-view-configuration.d.ts} +7 -7
  12. package/@types/model/configuration/{mrz-scanner-configuration.d.ts → mrz-scanner-view-configuration.d.ts} +6 -6
  13. package/@types/model/configuration/selection-overlay-configuration.d.ts +2 -2
  14. package/@types/model/configuration/text-pattern-scanner-view-configuration.d.ts +9 -0
  15. package/@types/model/configuration/vin-scanner-view-configuration.d.ts +9 -0
  16. package/@types/mrz-scanner-view.d.ts +3 -3
  17. package/@types/scanbot-sdk.d.ts +77 -77
  18. package/@types/service/document-data-extractor.d.ts +2 -2
  19. package/@types/service/document-quality-analyzer.d.ts +2 -2
  20. package/@types/service/ocr-engine.d.ts +3 -3
  21. package/@types/service/simple-mrz-recognizer.d.ts +3 -3
  22. package/@types/service/text-pattern-scanner.d.ts +3 -3
  23. package/@types/service/tiff-generator.d.ts +2 -2
  24. package/@types/service/vin-scanner.d.ts +3 -3
  25. package/@types/ui2/barcode/controllers/barcode-scanner-controller.d.ts +2 -2
  26. package/@types/ui2/barcode/controllers/multiple-scanning-mode-controller.d.ts +2 -2
  27. package/@types/ui2/barcode/controllers/single-scanning-mode-controller.d.ts +2 -2
  28. package/@types/ui2/barcode/utils/camera-config.d.ts +1 -1
  29. package/@types/ui2/barcode/utils/styled-button.d.ts +1 -1
  30. package/@types/ui2/barcode/views/action-button/action-button-container.d.ts +2 -2
  31. package/@types/ui2/barcode/views/action-button/action-button.d.ts +1 -1
  32. package/@types/ui2/barcode/views/barcode-scanner.d.ts +3 -3
  33. package/@types/ui2/barcode/views/camera-permission-denied.d.ts +1 -1
  34. package/@types/ui2/barcode/views/drawer/subviews/drawer-header-content.d.ts +1 -1
  35. package/@types/ui2/barcode/views/form/dialog-button.d.ts +0 -1
  36. package/@types/ui2/barcode/views/navigation-bar.d.ts +1 -1
  37. package/@types/ui2/configuration/BarcodeItemMapper.d.ts +6 -0
  38. package/@types/ui2/configuration/BarcodeScannerTypes.d.ts +2 -0
  39. package/@types/ui2/configuration/BarcodeTypes.d.ts +1 -0
  40. package/@types/ui2/configuration/CommonFieldType.d.ts +1 -0
  41. package/@types/ui2/configuration/GenericDocument.d.ts +1 -0
  42. package/@types/ui2/configuration/Geometry.d.ts +1 -1
  43. package/@types/ui2/configuration/barcode/ArTrackingOverlayConfiguration.d.ts +3 -24
  44. package/@types/ui2/configuration/barcode/BarcodeInfoMapping.d.ts +3 -3
  45. package/@types/ui2/configuration/barcode/BarcodeRecognizerConfiguration.d.ts +6 -13
  46. package/@types/ui2/configuration/barcode/BarcodeScannerConfiguration.d.ts +13 -13
  47. package/@types/ui2/configuration/barcode/BarcodeScannerUIResult.d.ts +8 -8
  48. package/@types/ui2/configuration/barcode/BarcodeUseCase.d.ts +3 -3
  49. package/@types/ui2/configuration/barcode/FindAndPickScanningModeUseCase.d.ts +8 -6
  50. package/@types/ui2/configuration/barcode/MultipleScanningModeUseCase.d.ts +11 -6
  51. package/@types/ui2/configuration/barcode/SingleScanningModeUseCase.d.ts +4 -4
  52. package/@types/ui2/configuration.d.ts +12 -20
  53. package/@types/ui2/document/model/sb-document.d.ts +3 -3
  54. package/@types/ui2/document/views/camera-screen/use-document-scanner-view.d.ts +1 -1
  55. package/@types/ui2/document/views/camera-screen/user-guidance-text.d.ts +1 -1
  56. package/@types/ui2/scanbot-sdk-ui.d.ts +2 -2
  57. package/@types/utils/barcode-utils.d.ts +2 -2
  58. package/@types/view/action-bar/bottom-action-bar.d.ts +2 -2
  59. package/@types/view/barcode-calculation/barcode-calculation-popup-list.d.ts +2 -2
  60. package/@types/view/barcode-calculation/barcode-calculation-popup.d.ts +4 -4
  61. package/@types/view/barcode-polygon/animated-barcode-selection-overlay.d.ts +5 -5
  62. package/@types/view/barcode-polygon/barcode-overlay.d.ts +3 -3
  63. package/@types/view/barcode-polygon/barcode-polygon-label.d.ts +2 -2
  64. package/@types/view/document-outline.d.ts +1 -1
  65. package/@types/view/polygon/animated-document-polygon.d.ts +1 -1
  66. package/@types/view/polygon/animated-path.d.ts +1 -1
  67. package/@types/worker/worker-bridge.d.ts +98 -98
  68. package/bundle/ScanbotSDK.min.js +4 -4
  69. package/bundle/ScanbotSDK.ui2.min.js +16 -16
  70. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  71. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  72. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  73. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
  74. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  75. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
  76. package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
  77. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
  78. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  79. package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
  80. package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
  81. package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
  82. package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
  83. package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
  84. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  85. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  86. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  87. package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
  88. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  89. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
  90. package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
  91. package/package.json +1 -1
  92. package/@types/model/configuration/document-data-extractor-configuration.d.ts +0 -9
  93. package/@types/model/configuration/text-pattern-scanner-configuration.d.ts +0 -9
  94. package/@types/model/configuration/vin-scanner-configuration.d.ts +0 -9
  95. package/@types/ui2/configuration/barcode/ActionBarConfiguration.d.ts +0 -42
  96. package/@types/ui2/configuration/barcode/BarcodeItemMapper.d.ts +0 -6
  97. package/@types/ui2/configuration/barcode/BarcodeScannerTypes.d.ts +0 -2
  98. package/@types/ui2/configuration/barcode/BarcodeTypes.d.ts +0 -1
  99. package/@types/ui2/configuration/barcode/CameraConfiguration.d.ts +0 -60
  100. package/@types/ui2/configuration/barcode/CameraPermission.d.ts +0 -54
  101. package/@types/ui2/configuration/barcode/Common.d.ts +0 -359
  102. package/@types/ui2/configuration/barcode/CommonFieldType.d.ts +0 -1
  103. package/@types/ui2/configuration/barcode/GenericDocument.d.ts +0 -1
  104. package/@types/ui2/configuration/barcode/Geometry.d.ts +0 -1
  105. package/@types/ui2/configuration/barcode/ScanbotAlertDialog.d.ts +0 -49
  106. package/@types/ui2/configuration/barcode/TopBarConfiguration.d.ts +0 -55
  107. package/@types/ui2/configuration/barcode/UserGuidanceConfiguration.d.ts +0 -30
  108. package/@types/ui2/configuration/barcode/ViewFinderConfiguration.d.ts +0 -93
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "scanbot-web-sdk",
3
3
  "title": "Web Scan SDK",
4
- "version": "7.0.0-dev.2",
4
+ "version": "7.0.0-dev.4",
5
5
  "description": "Scanbot Web Document and Barcode Scanner SDK",
6
6
  "keywords": [
7
7
  "barcode",
@@ -1,9 +0,0 @@
1
- import type { DeepPartial, DocumentDataExtractorTypes } from "../../core-types";
2
- import { ViewFinderScannerConfiguration } from "./view-finder-scanner-configuration";
3
- export declare class DocumentDataExtractorConfiguration extends ViewFinderScannerConfiguration {
4
- constructor();
5
- detectorParameters?: DeepPartial<DocumentDataExtractorTypes.DocumentDataExtractorConfiguration>;
6
- /** Callback is called for every analyzed frame. */
7
- onDocumentDetected?: (result: DocumentDataExtractorTypes.DocumentDataExtractionResult) => void;
8
- static fromJson(json: DeepPartial<DocumentDataExtractorConfiguration>): DocumentDataExtractorConfiguration;
9
- }
@@ -1,9 +0,0 @@
1
- import { ViewFinderScannerConfiguration } from "./view-finder-scanner-configuration";
2
- import { TextPatternScannerTypes, DeepPartial } from "../../core-types";
3
- export type TextDetectionCallback = (e: TextPatternScannerTypes.TextPatternScannerResult) => void;
4
- export declare class TextPatternScannerConfiguration extends ViewFinderScannerConfiguration {
5
- constructor();
6
- ocrConfiguration?: DeepPartial<TextPatternScannerTypes.TextPatternScannerConfiguration>;
7
- onTextDetected?: TextDetectionCallback;
8
- static fromJson(json: any): TextPatternScannerConfiguration;
9
- }
@@ -1,9 +0,0 @@
1
- import { ViewFinderScannerConfiguration } from "./view-finder-scanner-configuration";
2
- import { DeepPartial, VinScannerTypes } from "../../core-types";
3
- export type VinDetectionCallback = (e: VinScannerTypes.VinScannerResult) => void;
4
- export declare class VINScannerConfiguration extends ViewFinderScannerConfiguration {
5
- constructor();
6
- detectionConfiguration?: DeepPartial<VinScannerTypes.VinScannerConfiguration>;
7
- onVinDetected?: VinDetectionCallback;
8
- static fromJson(json: any): VINScannerConfiguration;
9
- }
@@ -1,42 +0,0 @@
1
- import { DeepPartial, PartiallyConstructible } from "../utils";
2
- import { RoundButton } from "./Common";
3
- /**
4
- Configuration of the buttons available in the action bar.
5
- */
6
- export declare class ActionBarConfiguration extends PartiallyConstructible {
7
- /**
8
- Appearance of the flash button.
9
- @defaultValue new RoundButton({
10
- "visible": true,
11
- "backgroundColor": "?sbColorSurfaceHigh",
12
- "foregroundColor": "?sbColorOnPrimary",
13
- "activeBackgroundColor": "?sbColorWarning",
14
- "activeForegroundColor": "#1C1B1F"
15
- });
16
- */
17
- flashButton: RoundButton;
18
- /**
19
- Appearance of the zoom button.
20
- @defaultValue new RoundButton({
21
- "visible": true,
22
- "backgroundColor": "?sbColorSurfaceHigh",
23
- "foregroundColor": "?sbColorOnPrimary",
24
- "activeBackgroundColor": "?sbColorSurfaceHigh",
25
- "activeForegroundColor": "?sbColorOnPrimary"
26
- });
27
- */
28
- zoomButton: RoundButton;
29
- /**
30
- Appearance of the flip camera button.
31
- @defaultValue new RoundButton({
32
- "visible": true,
33
- "backgroundColor": "?sbColorSurfaceHigh",
34
- "foregroundColor": "?sbColorOnPrimary",
35
- "activeBackgroundColor": "?sbColorSurfaceHigh",
36
- "activeForegroundColor": "?sbColorOnPrimary"
37
- });
38
- */
39
- flipCameraButton: RoundButton;
40
- /** @param source {@displayType `DeepPartial<ActionBarConfiguration>`} */
41
- constructor(source?: DeepPartial<ActionBarConfiguration>);
42
- }
@@ -1,6 +0,0 @@
1
- import { BarcodeMappedData } from "./BarcodeInfoMapping";
2
- import { BarcodeScannerUIItem } from "./BarcodeScannerUIResult";
3
- /**
4
- * Maps a barcode's data to the data of the corresponding product.
5
- * */
6
- export type BarcodeItemMapper = (BarcodeScannerUIItem: BarcodeScannerUIItem) => Promise<BarcodeMappedData>;
@@ -1,2 +0,0 @@
1
- export { BarcodeItem } from "../../../core/bridge/compiled/BarcodeScannerTypes";
2
- export type { BarcodeScannerEngineMode } from "../../../core/bridge/compiled/BarcodeScannerTypes";
@@ -1 +0,0 @@
1
- export type { BarcodeFormat, Gs1Handling, } from "../../../core/bridge/compiled/BarcodeTypes";
@@ -1,60 +0,0 @@
1
- import { DeepPartial, PartiallyConstructible } from "../utils";
2
- /**
3
- Ideal resolution of the camera preview.
4
- */
5
- export declare class Resolution extends PartiallyConstructible {
6
- /**
7
- Width of the resolution.
8
- */
9
- width: number;
10
- /**
11
- Height of the resolution.
12
- */
13
- height: number;
14
- /** @param source {@displayType `DeepPartial<Resolution>`} */
15
- constructor(source?: DeepPartial<Resolution>);
16
- }
17
- /**
18
- Determine which camera module to use on start-up.
19
-
20
- - `FRONT`:
21
- Use the front camera.
22
- - `BACK`:
23
- Use the default back camera.
24
- */
25
- export type CameraModule = "FRONT" | "BACK";
26
- /**
27
- Configuration of the camera settings to be used while scanning.
28
- */
29
- export declare class CameraConfiguration extends PartiallyConstructible {
30
- /**
31
- Which camera module to use on start-up.
32
- @defaultValue "BACK";
33
- */
34
- cameraModule: CameraModule;
35
- /**
36
- The number of zoom steps available to the user.
37
- @defaultValue [1.0, 2.0, 5.0];
38
- */
39
- zoomSteps: number[];
40
- /**
41
- The default zoom factor on start-up.
42
- @defaultValue 1.0;
43
- */
44
- defaultZoomFactor: number;
45
- /**
46
- Whether the flash is enabled by default.
47
- @defaultValue false;
48
- */
49
- flashEnabled: boolean;
50
- /**
51
- The ideal resolution for the camera preview. Actual resolution may vary depending on browser and device capabilities.
52
- @defaultValue new Resolution({
53
- "width": 1920,
54
- "height": 1080
55
- });
56
- */
57
- idealPreviewResolution: Resolution;
58
- /** @param source {@displayType `DeepPartial<CameraConfiguration>`} */
59
- constructor(source?: DeepPartial<CameraConfiguration>);
60
- }
@@ -1,54 +0,0 @@
1
- import { ButtonConfiguration } from "./Common";
2
- import { DeepPartial, PartiallyConstructible } from "../utils";
3
- import { IconStyle } from "./Common";
4
- import { StyledText } from "./Common";
5
- /**
6
- Configuration of the camera permission request view.
7
- */
8
- export declare class CameraPermissionScreen extends PartiallyConstructible {
9
- /**
10
- Background color of the camera permission request.
11
- @defaultValue "?sbColorSurface";
12
- */
13
- background: string;
14
- /**
15
- Background color of the icon used in the camera permission request.
16
- @defaultValue "?sbColorOutline";
17
- */
18
- iconBackground: string;
19
- /**
20
- Configuration of the icon used in the camera permission request.
21
- @defaultValue new IconStyle({
22
- "visible": true,
23
- "color": "?sbColorOnSurface"
24
- });
25
- */
26
- icon: IconStyle;
27
- /**
28
- Configuration of the camera permission request's close button.
29
- @defaultValue new ButtonConfiguration({
30
- "text": "Close",
31
- "background": new BackgroundStyle({}),
32
- "foreground": new ForegroundStyle({})
33
- });
34
- */
35
- closeButton: ButtonConfiguration;
36
- /**
37
- Configuration of the camera permission request's title.
38
- @defaultValue new StyledText({
39
- "text": "Camera permission denied!",
40
- "color": "?colorOnSurface"
41
- });
42
- */
43
- enableCameraTitle: StyledText;
44
- /**
45
- Configuration of the camera permission request's explanatory text.
46
- @defaultValue new StyledText({
47
- "text": "Please allow the usage of the camera to start the scanning process.",
48
- "color": "?sbColorOnSurfaceVariant"
49
- });
50
- */
51
- enableCameraExplanation: StyledText;
52
- /** @param source {@displayType `DeepPartial<CameraPermissionScreen>`} */
53
- constructor(source?: DeepPartial<CameraPermissionScreen>);
54
- }
@@ -1,359 +0,0 @@
1
- import { DeepPartial, PartiallyConstructible } from "../utils";
2
- /**
3
- Value palette describing the colors of the scanner screens.
4
- */
5
- export declare class Palette extends PartiallyConstructible {
6
- /**
7
- Primary color used for enabled elements.
8
- @defaultValue "#C8193C";
9
- */
10
- sbColorPrimary: string;
11
- /**
12
- Primary color used for disabled elements.
13
- @defaultValue "#F5F5F5";
14
- */
15
- sbColorPrimaryDisabled: string;
16
- /**
17
- Color used to convey a negative meaning.
18
- @defaultValue "#FF3737";
19
- */
20
- sbColorNegative: string;
21
- /**
22
- Color used to convey a positive meaning.
23
- @defaultValue "#4EFFB4";
24
- */
25
- sbColorPositive: string;
26
- /**
27
- Color used to convey warnings.
28
- @defaultValue "#FFCE5C";
29
- */
30
- sbColorWarning: string;
31
- /**
32
- Secondary color used for enabled elements.
33
- @defaultValue "#FFEDEE";
34
- */
35
- sbColorSecondary: string;
36
- /**
37
- Secondary color used for disabled elements.
38
- @defaultValue "#F5F5F5";
39
- */
40
- sbColorSecondaryDisabled: string;
41
- /**
42
- Color used for displaying elements on top of the primary color.
43
- @defaultValue "#FFFFFF";
44
- */
45
- sbColorOnPrimary: string;
46
- /**
47
- Color used for displaying elements on top of the secondary color.
48
- @defaultValue "#C8193C";
49
- */
50
- sbColorOnSecondary: string;
51
- /**
52
- Color used for surfaces.
53
- @defaultValue "#FFFFFF";
54
- */
55
- sbColorSurface: string;
56
- /**
57
- Color used for outlines.
58
- @defaultValue "#EFEFEF";
59
- */
60
- sbColorOutline: string;
61
- /**
62
- Alternative color used on top of surfaces.
63
- @defaultValue "#707070";
64
- */
65
- sbColorOnSurfaceVariant: string;
66
- /**
67
- Color used on top of surfaces.
68
- @defaultValue "#000000";
69
- */
70
- sbColorOnSurface: string;
71
- /**
72
- Transparent color with a low alpha value used for certain surfaces.
73
- @defaultValue "#00000026";
74
- */
75
- sbColorSurfaceLow: string;
76
- /**
77
- Transparent color with a high alpha value used for certain surfaces.
78
- @defaultValue "#0000007A";
79
- */
80
- sbColorSurfaceHigh: string;
81
- /**
82
- Transparent color with a very high alpha value used to fill certain overlays.
83
- @defaultValue "#000000A3";
84
- */
85
- sbColorModalOverlay: string;
86
- /** @param source {@displayType `DeepPartial<Palette>`} */
87
- constructor(source?: DeepPartial<Palette>);
88
- }
89
- /**
90
- Configuration of the text field appearance.
91
- */
92
- export declare class StyledText extends PartiallyConstructible {
93
- /**
94
- Whether the text field is visible.
95
- @defaultValue true;
96
- */
97
- visible: boolean;
98
- /**
99
- Value of the text field.
100
- @defaultValue "";
101
- */
102
- text: string;
103
- /**
104
- Text color.
105
- @defaultValue "#FFFFFF";
106
- */
107
- color: string;
108
- /**
109
- Whether to enable drop shadows for the text.
110
- @defaultValue false;
111
- */
112
- useShadow: boolean;
113
- /** @param source {@displayType `DeepPartial<StyledText>`} */
114
- constructor(source?: DeepPartial<StyledText>);
115
- }
116
- /**
117
- Configuration of the icon appearance.
118
- */
119
- export declare class IconStyle extends PartiallyConstructible {
120
- /**
121
- Whether the icon is visible on the button.
122
- @defaultValue true;
123
- */
124
- visible: boolean;
125
- /**
126
- Icon color.
127
- @defaultValue "#FFFFFF";
128
- */
129
- color: string;
130
- /** @param source {@displayType `DeepPartial<IconStyle>`} */
131
- constructor(source?: DeepPartial<IconStyle>);
132
- }
133
- /**
134
- Configuration of the polygon appearance.
135
- */
136
- export declare class PolygonStyle extends PartiallyConstructible {
137
- /**
138
- Color of the polygon outline.
139
- @defaultValue "#FFFFFFFF";
140
- */
141
- strokeColor: string;
142
- /**
143
- Polygon color.
144
- @defaultValue "#FFFFFF30";
145
- */
146
- fillColor: string;
147
- /**
148
- Width of the polygon outline in dp.
149
- @defaultValue 2.0;
150
- */
151
- strokeWidth: number;
152
- /**
153
- Polygon corner radius in dp.
154
- @defaultValue 0.0;
155
- */
156
- cornerRadius: number;
157
- /** @param source {@displayType `DeepPartial<PolygonStyle>`} */
158
- constructor(source?: DeepPartial<PolygonStyle>);
159
- }
160
- /**
161
- Appearance of the polygon used for buttons and hint backgrounds.
162
- */
163
- export declare class BackgroundStyle extends PartiallyConstructible {
164
- /**
165
- Color of the polygon outline.
166
- @defaultValue "#FFFFFFFF";
167
- */
168
- strokeColor: string;
169
- /**
170
- Polygon color.
171
- @defaultValue "#FFFFFF30";
172
- */
173
- fillColor: string;
174
- /**
175
- Width of the polygon outline in dp.
176
- @defaultValue 2.0;
177
- */
178
- strokeWidth: number;
179
- /** @param source {@displayType `DeepPartial<BackgroundStyle>`} */
180
- constructor(source?: DeepPartial<BackgroundStyle>);
181
- }
182
- /**
183
- Configuration of the appearance of foreground elements (e.g. text and/or icons on buttons, etc).
184
- */
185
- export declare class ForegroundStyle extends PartiallyConstructible {
186
- /**
187
- Whether the icon is visible.
188
- @defaultValue true;
189
- */
190
- iconVisible: boolean;
191
- /**
192
- Color used for foreground elements.
193
- @defaultValue "#FFFFFF";
194
- */
195
- color: string;
196
- /**
197
- Whether to use drop shadows for foreground elements.
198
- @defaultValue false;
199
- */
200
- useShadow: boolean;
201
- /** @param source {@displayType `DeepPartial<ForegroundStyle>`} */
202
- constructor(source?: DeepPartial<ForegroundStyle>);
203
- }
204
- /**
205
- Configuration of the round button.
206
- */
207
- export declare class RoundButton extends PartiallyConstructible {
208
- /**
209
- Whether to display the button.
210
- @defaultValue true;
211
- */
212
- visible: boolean;
213
- /**
214
- Color of the button background shape.
215
- @defaultValue "#0000007A";
216
- */
217
- backgroundColor: string;
218
- /**
219
- Color of the button foreground (icon, text).
220
- @defaultValue "#FFFFFF";
221
- */
222
- foregroundColor: string;
223
- /**
224
- Color of the button background shape when the button is active (selected, toggled).
225
- @defaultValue "#FFCE5C";
226
- */
227
- activeBackgroundColor: string;
228
- /**
229
- Color of the button foreground (icon, text) when the button is active (selected, toggled).
230
- @defaultValue "#1C1B1F";
231
- */
232
- activeForegroundColor: string;
233
- /** @param source {@displayType `DeepPartial<RoundButton>`} */
234
- constructor(source?: DeepPartial<RoundButton>);
235
- }
236
- /**
237
- Configuration of the round button with badge.
238
- */
239
- export declare class BadgedButton extends PartiallyConstructible {
240
- /**
241
- Color of the badge's background shape.
242
- @defaultValue "#FFFFFF";
243
- */
244
- badgeBackgroundColor: string;
245
- /**
246
- Color of the badge foreground (icon, text).
247
- @defaultValue "#C8193C";
248
- */
249
- badgeForegroundColor: string;
250
- /**
251
- Whether the button is visible.
252
- @defaultValue true;
253
- */
254
- visible: boolean;
255
- /**
256
- Color of the button background shape.
257
- @defaultValue "#0000007A";
258
- */
259
- backgroundColor: string;
260
- /**
261
- Color of the button foreground (icon, text).
262
- @defaultValue "#FFFFFF";
263
- */
264
- foregroundColor: string;
265
- /**
266
- Color of the button background shape when the button is active (selected, toggled).
267
- @defaultValue "#FFCE5C";
268
- */
269
- activeBackgroundColor: string;
270
- /**
271
- Color of the button foreground (icon, text) when the button is active (selected, toggled).
272
- @defaultValue "#1C1B1F";
273
- */
274
- activeForegroundColor: string;
275
- /** @param source {@displayType `DeepPartial<BadgedButton>`} */
276
- constructor(source?: DeepPartial<BadgedButton>);
277
- }
278
- /**
279
- Button configuration.
280
- */
281
- export declare class ButtonConfiguration extends PartiallyConstructible {
282
- /**
283
- Whether the button is visible or not.
284
- @defaultValue true;
285
- */
286
- visible: boolean;
287
- /**
288
- The text to be displayed on the button.
289
- @defaultValue "";
290
- */
291
- text: string;
292
- /**
293
- The style of the button's background.
294
- @defaultValue new BackgroundStyle({});
295
- */
296
- background: BackgroundStyle;
297
- /**
298
- The style of the button's foreground (icon, text).
299
- @defaultValue new ForegroundStyle({});
300
- */
301
- foreground: ForegroundStyle;
302
- /** @param source {@displayType `DeepPartial<ButtonConfiguration>`} */
303
- constructor(source?: DeepPartial<ButtonConfiguration>);
304
- }
305
- /**
306
- The sound selection type.
307
-
308
- - `MODERN_BEEP`:
309
- To choose a modern beep sound.
310
- - `CLASSIC_BEEP`:
311
- To choose the old classic beep sound.
312
- */
313
- export type SoundType = "MODERN_BEEP" | "CLASSIC_BEEP";
314
- /**
315
- Sound configuration.
316
- */
317
- export declare class Sound extends PartiallyConstructible {
318
- /**
319
- Enable or disable the beep sound when a barcode is detected.
320
- @defaultValue true;
321
- */
322
- successBeepEnabled: boolean;
323
- /**
324
- The beep type.
325
- @defaultValue "MODERN_BEEP";
326
- */
327
- soundType: SoundType;
328
- /** @param source {@displayType `DeepPartial<Sound>`} */
329
- constructor(source?: DeepPartial<Sound>);
330
- }
331
- /**
332
- Vibration configuration.
333
- */
334
- export declare class Vibration extends PartiallyConstructible {
335
- /**
336
- Enable or disable vibration when a barcode is detected.
337
- @defaultValue false;
338
- */
339
- enabled: boolean;
340
- /** @param source {@displayType `DeepPartial<Vibration>`} */
341
- constructor(source?: DeepPartial<Vibration>);
342
- }
343
- /**
344
- Configuration of timeouts.
345
- */
346
- export declare class Timeouts extends PartiallyConstructible {
347
- /**
348
- Sets the auto close timer in ms. Default is 0 (disabled).
349
- @defaultValue 0;
350
- */
351
- autoCancelTimeout: number;
352
- /**
353
- Sets the time in ms the first scan is delayed by. Default is 0 (disabled).
354
- @defaultValue 0;
355
- */
356
- initialScanDelay: number;
357
- /** @param source {@displayType `DeepPartial<Timeouts>`} */
358
- constructor(source?: DeepPartial<Timeouts>);
359
- }
@@ -1 +0,0 @@
1
- export * from "../../../core/bridge/compiled/CommonFieldType";
@@ -1 +0,0 @@
1
- export * from "../../../core/bridge/compiled/GenericDocument";
@@ -1 +0,0 @@
1
- export * from "../../../core/bridge/compiled/Geometry";
@@ -1,49 +0,0 @@
1
- import { ButtonConfiguration } from "./Common";
2
- import { DeepPartial, PartiallyConstructible } from "../utils";
3
- import { StyledText } from "./Common";
4
- /**
5
- Configuration of the the standard alert dialog.
6
- */
7
- export declare class ScanbotAlertDialog extends PartiallyConstructible {
8
- /**
9
- Title displayed above the message.
10
- @defaultValue new StyledText({
11
- "text": "Title",
12
- "color": "?sbColorOnSurface"
13
- });
14
- */
15
- title: StyledText;
16
- /**
17
- Explanation message message.
18
- @defaultValue new StyledText({
19
- "text": "Standard explanation message text.",
20
- "color": "?sbColorOnSurfaceVariant"
21
- });
22
- */
23
- subtitle: StyledText;
24
- /**
25
- Background color of the alert dialog.
26
- @defaultValue "?sbColorSurface";
27
- */
28
- sheetColor: string;
29
- /**
30
- Dialog overlay color.
31
- @defaultValue "?sbColorModalOverlay";
32
- */
33
- modalOverlayColor: string;
34
- /**
35
- Color of the divider line.
36
- @defaultValue "?sbColorOutline";
37
- */
38
- dividerColor: string;
39
- /**
40
- Configuration of the retry button.
41
- */
42
- okButton: ButtonConfiguration;
43
- /**
44
- Configuration of the cancel button.
45
- */
46
- cancelButton: ButtonConfiguration;
47
- /** @param source {@displayType `DeepPartial<ScanbotAlertDialog>`} */
48
- constructor(source?: DeepPartial<ScanbotAlertDialog>);
49
- }
@@ -1,55 +0,0 @@
1
- import { ButtonConfiguration } from "./Common";
2
- import { DeepPartial, PartiallyConstructible } from "../utils";
3
- import { StyledText } from "./Common";
4
- /**
5
- Configuration of the top screen bar's appearance.
6
- */
7
- export declare class TopBarConfiguration extends PartiallyConstructible {
8
- /**
9
- Appearance of the top bar's title.
10
- @defaultValue new StyledText({
11
- "visible": false,
12
- "text": "Scan Item",
13
- "color": "?sbColorOnPrimary"
14
- });
15
- */
16
- title: StyledText;
17
- /**
18
- Visual mode used for the top bar.
19
- @defaultValue "SOLID";
20
- */
21
- mode: TopBarMode;
22
- /**
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
- backgroundColor: string;
27
- /**
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
- cancelButton: ButtonConfiguration;
42
- /** @param source {@displayType `DeepPartial<TopBarConfiguration>`} */
43
- constructor(source?: DeepPartial<TopBarConfiguration>);
44
- }
45
- /**
46
- Visual mode used for the top bar.
47
-
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
- export type TopBarMode = "SOLID" | "GRADIENT" | "HIDDEN";