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.
Files changed (139) hide show
  1. package/@types/consume-type.d.ts +2 -1
  2. package/@types/core/bridge/common.d.ts +1 -1
  3. package/@types/core/bridge/compiled/BarcodeScannerTypes.d.ts +5 -3
  4. package/@types/core/bridge/compiled/GDRTypes.d.ts +38 -0
  5. package/@types/core/bridge/compiled/GenericDocument.d.ts +38 -0
  6. package/@types/core/bridge/compiled/GenericDocumentRecognizerConfigs.d.ts +183 -0
  7. package/@types/core/bridge/compiled/GenericDocumentRecognizerTypes.d.ts +7 -6
  8. package/@types/core/bridge/compiled/GenericDocumentTypes.d.ts +38 -0
  9. package/@types/core/bridge/compiled/ParametricFilters.d.ts +4 -2
  10. package/@types/core/bridge/worker-bridge.d.ts +584 -26
  11. package/@types/core/worker/ScanbotSDK.Core.d.ts +18 -7
  12. package/@types/core-types.d.ts +3 -1
  13. package/@types/document-scanner-view.d.ts +3 -1
  14. package/@types/index.d.ts +39 -4
  15. package/@types/model/barcode/barcode-result.d.ts +12 -2
  16. package/@types/model/barcode/barcode.d.ts +2 -1
  17. package/@types/model/camera-info.d.ts +3 -2
  18. package/@types/model/configuration/barcode-scanner-configuration.d.ts +6 -3
  19. package/@types/model/configuration/cropping-view-configuration.d.ts +5 -0
  20. package/@types/model/configuration/document-scanner-configuration.d.ts +2 -8
  21. package/@types/model/configuration/generic-document-recognizer-configuration.d.ts +1 -1
  22. package/@types/model/configuration/initialization-options.d.ts +8 -0
  23. package/@types/model/configuration/mrz-scanner-configuration.d.ts +1 -1
  24. package/@types/model/configuration/scanner-configuration.d.ts +7 -0
  25. package/@types/model/configuration/selection-overlay-configuration.d.ts +2 -2
  26. package/@types/model/configuration/view-finder-scanner-configuration.d.ts +1 -1
  27. package/@types/model/error/media-error.d.ts +1 -0
  28. package/@types/scanbot-sdk.d.ts +355 -52
  29. package/@types/service/generic-document-recognizer.d.ts +3 -1
  30. package/@types/service/simple-mrz-recognizer.d.ts +3 -1
  31. package/@types/service/text-data-recognizer.d.ts +3 -1
  32. package/@types/ui2/common.d.ts +8 -0
  33. package/@types/ui2/configuration/ActionBarConfiguration.d.ts +30 -30
  34. package/@types/ui2/configuration/ArTrackingOverlayConfiguration.d.ts +220 -220
  35. package/@types/ui2/configuration/BarcodeInfoMapping.d.ts +51 -51
  36. package/@types/ui2/configuration/BarcodeItemMapper.d.ts +2 -2
  37. package/@types/ui2/configuration/BarcodeRecognizerConfiguration.d.ts +32 -32
  38. package/@types/ui2/configuration/BarcodeScannerConfiguration.d.ts +168 -168
  39. package/@types/ui2/configuration/BarcodeScannerTypes.d.ts +1 -6
  40. package/@types/ui2/configuration/BarcodeScannerUIResult.d.ts +29 -0
  41. package/@types/ui2/configuration/BarcodeTextLocalization.d.ts +124 -69
  42. package/@types/ui2/configuration/BarcodeTypes.d.ts +1 -1
  43. package/@types/ui2/configuration/BarcodeUseCase.d.ts +4 -3
  44. package/@types/ui2/configuration/CameraConfiguration.d.ts +32 -32
  45. package/@types/ui2/configuration/CameraPermission.d.ts +33 -33
  46. package/@types/ui2/configuration/Common.d.ts +190 -190
  47. package/@types/ui2/configuration/CommonFieldType.d.ts +1 -0
  48. package/@types/ui2/configuration/FindAndPickScanningModeUseCase.d.ts +364 -12
  49. package/@types/ui2/configuration/GenericDocument.d.ts +1 -0
  50. package/@types/ui2/configuration/MultipleScanningModeUseCase.d.ts +488 -488
  51. package/@types/ui2/configuration/ScanbotAlertDialog.d.ts +27 -27
  52. package/@types/ui2/configuration/SingleScanningModeUseCase.d.ts +169 -169
  53. package/@types/ui2/configuration/TopBarConfiguration.d.ts +36 -36
  54. package/@types/ui2/configuration/UserGuidanceConfiguration.d.ts +16 -16
  55. package/@types/ui2/configuration/ViewFinderConfiguration.d.ts +45 -45
  56. package/@types/ui2/configuration.d.ts +2 -1
  57. package/@types/ui2/controllers/barcode-scanner-controller.d.ts +2 -2
  58. package/@types/ui2/controllers/multiple-scanning-mode-controller.d.ts +4 -2
  59. package/@types/ui2/controllers/single-scanning-mode-controller.d.ts +4 -2
  60. package/@types/ui2/model/counted-barcodes.d.ts +12 -19
  61. package/@types/ui2/scanbot-sdk-ui.d.ts +2 -2
  62. package/@types/ui2/scanbot-ui-library.d.ts +3 -2
  63. package/@types/ui2/utils/barcode-mapper/expected-barcode-mapper.d.ts +13 -0
  64. package/@types/ui2/utils/barcode-mapper/i-barcode-mapper.d.ts +18 -0
  65. package/@types/ui2/utils/{barcode-mapper.d.ts → barcode-mapper/user-barcode-mapper.d.ts} +4 -16
  66. package/@types/ui2/utils/find-and-pick.ts/expected-barcode-counter.d.ts +7 -0
  67. package/@types/ui2/utils/styled-badge.d.ts +1 -1
  68. package/@types/ui2/views/ar/ar-badge.d.ts +18 -0
  69. package/@types/ui2/views/ar/ar-overlay-barcode-info.d.ts +5 -1
  70. package/@types/ui2/views/ar/vertical-positions.d.ts +12 -0
  71. package/@types/ui2/views/barcode-info/barcode-info.d.ts +3 -1
  72. package/@types/ui2/views/barcode-scanner.d.ts +5 -5
  73. package/@types/ui2/views/dialog/base/confirmation-dialog.d.ts +20 -0
  74. package/@types/ui2/views/dialog/find-and-pick-submit-dialog.d.ts +10 -0
  75. package/@types/ui2/views/drawer/barcode-result-drawer.d.ts +1 -1
  76. package/@types/ui2/views/drawer/counting-button.d.ts +1 -1
  77. package/@types/ui2/views/drawer/subviews/barcode-drawer-empty-state.d.ts +1 -1
  78. package/@types/ui2/views/drawer/subviews/barcode-list-item.d.ts +5 -4
  79. package/@types/ui2/views/drawer/subviews/barcode-list.d.ts +8 -1
  80. package/@types/ui2/views/drawer/subviews/drawer-header-content.d.ts +1 -1
  81. package/@types/utils/barcode-utils.d.ts +10 -0
  82. package/@types/utils/browser-cameras.d.ts +92 -0
  83. package/@types/utils/dto/Polygon.d.ts +2 -1
  84. package/@types/utils/stats.d.ts +4 -0
  85. package/@types/utils/video-stream.d.ts +3 -3
  86. package/@types/utils/video-to-image-data/two-d-video-to-image-data.d.ts +8 -0
  87. package/@types/utils/video-to-image-data/video-to-image-data.d.ts +5 -0
  88. package/@types/utils/video-to-image-data/webgl-video-to-image-data.d.ts +21 -0
  89. package/@types/view/barcode-polygon/animated-barcode-selection-overlay.d.ts +1 -0
  90. package/@types/view/scanbot-camera-view.d.ts +9 -3
  91. package/@types/worker/worker-bridge.d.ts +587 -30
  92. package/bundle/ScanbotSDK.min.js +4 -4
  93. package/bundle/ScanbotSDK.ui2.min.js +16 -16
  94. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  95. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  96. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  97. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
  98. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  99. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
  100. package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
  101. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
  102. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  103. package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
  104. package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
  105. package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
  106. package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
  107. package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
  108. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  109. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  110. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  111. package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
  112. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  113. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
  114. package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
  115. package/package.json +2 -2
  116. package/@types/core/bridge/compiled_schemas_v3/BarcodeConfigs.d.ts +0 -973
  117. package/@types/core/bridge/compiled_schemas_v3/BarcodeScannerTypes.d.ts +0 -183
  118. package/@types/core/bridge/compiled_schemas_v3/BarcodeTypes.d.ts +0 -183
  119. package/@types/core/bridge/compiled_schemas_v3/CheckRecognizerTypes.d.ts +0 -29
  120. package/@types/core/bridge/compiled_schemas_v3/CommonFieldType.d.ts +0 -59
  121. package/@types/core/bridge/compiled_schemas_v3/DocumentDetectorTypes.d.ts +0 -196
  122. package/@types/core/bridge/compiled_schemas_v3/DocumentQualityAnalyzerTypes.d.ts +0 -105
  123. package/@types/core/bridge/compiled_schemas_v3/EhicTypes.d.ts +0 -218
  124. package/@types/core/bridge/compiled_schemas_v3/FrameUtilities.d.ts +0 -18
  125. package/@types/core/bridge/compiled_schemas_v3/GenericDocument.d.ts +0 -198
  126. package/@types/core/bridge/compiled_schemas_v3/GenericDocumentRecognizerTypes.d.ts +0 -104
  127. package/@types/core/bridge/compiled_schemas_v3/GenericTextLineScannerTypes.d.ts +0 -165
  128. package/@types/core/bridge/compiled_schemas_v3/Geometry.d.ts +0 -49
  129. package/@types/core/bridge/compiled_schemas_v3/ImageProcessorTypes.d.ts +0 -13
  130. package/@types/core/bridge/compiled_schemas_v3/LicensePlateScannerTypes.d.ts +0 -67
  131. package/@types/core/bridge/compiled_schemas_v3/MRZTypes.d.ts +0 -52
  132. package/@types/core/bridge/compiled_schemas_v3/MedicalCertificateTypes.d.ts +0 -306
  133. package/@types/core/bridge/compiled_schemas_v3/OcrElements.d.ts +0 -129
  134. package/@types/core/bridge/compiled_schemas_v3/ParametricFilters.d.ts +0 -186
  135. package/@types/core/bridge/compiled_schemas_v3/PdfConfig.d.ts +0 -197
  136. package/@types/core/bridge/compiled_schemas_v3/TiffTypes.d.ts +0 -183
  137. package/@types/ui2/configuration/BarcodeItem.d.ts +0 -6
  138. package/@types/ui2/configuration/utils.d.ts +0 -6
  139. /package/@types/ui2/views/dialog/{styled-dialog.d.ts → base/styled-dialog.d.ts} +0 -0
@@ -1,95 +1,95 @@
1
1
  import { BarcodeItemMapper } from "./BarcodeItemMapper";
2
2
  import { ButtonConfiguration } from "./Common";
3
- import { DeepPartial, PartiallyConstructible } from "./utils";
3
+ import { DeepPartial, PartiallyConstructible } from "../common";
4
4
  import { StyledText } from "./Common";
5
5
  /**
6
- Configuration of the the mapper's error dialog.
7
- */
6
+ Configuration of the the mapper's error dialog.
7
+ */
8
8
  export declare class BarcodeItemErrorState extends PartiallyConstructible {
9
9
  /**
10
- Title displayed above the error message.
11
- @defaultValue new StyledText({
12
- "text": "Connection Error!",
13
- "color": "?sbColorOnSurface"
10
+ Title displayed above the error message.
11
+ @defaultValue new StyledText({
12
+ "text": "Connection Error!",
13
+ "color": "?sbColorOnSurface"
14
14
  });
15
- */
15
+ */
16
16
  title: StyledText;
17
17
  /**
18
- Error message.
19
- @defaultValue new StyledText({
20
- "text": "There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",
21
- "color": "?sbColorOnSurfaceVariant"
22
- });
23
- */
18
+ Error message.
19
+ @defaultValue new StyledText({
20
+ "text": "There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",
21
+ "color": "?sbColorOnSurfaceVariant"
22
+ });
23
+ */
24
24
  subtitle: StyledText;
25
25
  /**
26
- Configuration of the retry button.
27
- @defaultValue new ButtonConfiguration({});
28
- */
26
+ Configuration of the retry button.
27
+ @defaultValue new ButtonConfiguration({});
28
+ */
29
29
  retryButton: ButtonConfiguration;
30
30
  /**
31
- Configuration of the cancel button.
32
- @defaultValue new ButtonConfiguration({});
33
- */
31
+ Configuration of the cancel button.
32
+ @defaultValue new ButtonConfiguration({});
33
+ */
34
34
  cancelButton: ButtonConfiguration;
35
35
  /** @param source {@displayType `DeepPartial<BarcodeItemErrorState>`} */
36
36
  constructor(source?: DeepPartial<BarcodeItemErrorState>);
37
37
  }
38
38
  /**
39
- Format of the mapped barcode data.
40
- */
39
+ Format of the mapped barcode data.
40
+ */
41
41
  export declare class BarcodeMappedData extends PartiallyConstructible {
42
42
  /**
43
- Title of the barcode.
44
- */
43
+ Title of the barcode.
44
+ */
45
45
  title: string;
46
46
  /**
47
- Subtitle of the barcode.
48
- */
47
+ Subtitle of the barcode.
48
+ */
49
49
  subtitle: string;
50
50
  /**
51
- Image of the barcode.
52
- */
51
+ Image of the barcode.
52
+ */
53
53
  barcodeImage: string;
54
54
  /** @param source {@displayType `DeepPartial<BarcodeMappedData>`} */
55
55
  constructor(source?: DeepPartial<BarcodeMappedData>);
56
56
  }
57
57
  /**
58
- Configuration of the barcode data mapping.
59
- */
58
+ Configuration of the barcode data mapping.
59
+ */
60
60
  export declare class BarcodeInfoMapping extends PartiallyConstructible {
61
61
  /**
62
- Callback to map the barcode data to the data of the corresponding product.
63
- @defaultValue null;
64
- */
62
+ Callback to map the barcode data to the data of the corresponding product.
63
+ @defaultValue null;
64
+ */
65
65
  barcodeItemMapper: BarcodeItemMapper | null;
66
66
  /**
67
- Background color of the barcode info dialog.
68
- @defaultValue "?sbColorSurface";
69
- */
67
+ Background color of the barcode info dialog.
68
+ @defaultValue "?sbColorSurface";
69
+ */
70
70
  sheetColor: string;
71
71
  /**
72
- Color of the divider and separator lines in the barcode info dialog.
73
- @defaultValue "?sbColorOutline";
74
- */
72
+ Color of the divider and separator lines in the barcode info dialog.
73
+ @defaultValue "?sbColorOutline";
74
+ */
75
75
  dividerColor: string;
76
76
  /**
77
- Background color of the overlay surrounding the barcode mapping error dialog.
78
- @defaultValue "?sbColorModalOverlay";
79
- */
77
+ Background color of the overlay surrounding the barcode mapping error dialog.
78
+ @defaultValue "?sbColorModalOverlay";
79
+ */
80
80
  modalOverlayColor: string;
81
81
  /**
82
- Text being displayed while a barcode is being mapped.
83
- @defaultValue new StyledText({
84
- "text": "Loading message for barcode info mapping.",
85
- "color": "?sbColorPrimary"
86
- });
87
- */
82
+ Text being displayed while a barcode is being mapped.
83
+ @defaultValue new StyledText({
84
+ "text": "Loading message for barcode info mapping.",
85
+ "color": "?sbColorPrimary"
86
+ });
87
+ */
88
88
  loadingMessage: StyledText;
89
89
  /**
90
- Configuration of the error state displayed when processing a barcode fails.
91
- @defaultValue new BarcodeItemErrorState({});
92
- */
90
+ Configuration of the error state displayed when processing a barcode fails.
91
+ @defaultValue new BarcodeItemErrorState({});
92
+ */
93
93
  errorState: BarcodeItemErrorState;
94
94
  /** @param source {@displayType `DeepPartial<BarcodeInfoMapping>`} */
95
95
  constructor(source?: DeepPartial<BarcodeInfoMapping>);
@@ -1,6 +1,6 @@
1
1
  import { BarcodeMappedData } from "./BarcodeInfoMapping";
2
- import { BarcodeItem } from "./BarcodeItem";
2
+ import { BarcodeScannerUIItem } from "./BarcodeScannerUIResult";
3
3
  /**
4
4
  * Maps a barcode's data to the data of the corresponding product.
5
5
  * */
6
- export type BarcodeItemMapper = (barcodeItem: BarcodeItem) => Promise<BarcodeMappedData>;
6
+ export type BarcodeItemMapper = (BarcodeScannerUIItem: BarcodeScannerUIItem) => Promise<BarcodeMappedData>;
@@ -1,55 +1,55 @@
1
1
  import { BarcodeFormat } from "./BarcodeTypes";
2
- import { DeepPartial, PartiallyConstructible } from "./utils";
2
+ import { DeepPartial, PartiallyConstructible } from "../common";
3
3
  import { EngineMode } from "./BarcodeScannerTypes";
4
4
  import { GS1Handling } from "./BarcodeTypes";
5
5
  /**
6
- Expected quantity of QR codes in an image.
6
+ Expected quantity of QR codes in an image.
7
7
 
8
- - `LOW`:
9
- Up to 6 QR codes per image.
10
- - `HIGH`:
11
- Up to 24 QR codes per image.
12
- */
8
+ - `LOW`:
9
+ Up to 6 QR codes per image.
10
+ - `HIGH`:
11
+ Up to 24 QR codes per image.
12
+ */
13
13
  export type CodeDensity = "LOW" | "HIGH";
14
14
  /**
15
- Filter for extended EAN and UPC barcodes.
15
+ Filter for extended EAN and UPC barcodes.
16
16
 
17
- - `NO_FILTER`:
18
- EAN and UPC codes are not filtered. Both are returned regardless if they have an extension or not.
19
- - `ONLY_WITH_EXTENSIONS`:
20
- Only EAN and UPC codes with extensions are returned.
21
- - `ONLY_WITHOUT_EXTENSIONS`:
22
- Only EAN and UPC codes without extensions are returned.
23
- */
17
+ - `NO_FILTER`:
18
+ EAN and UPC codes are not filtered. Both are returned regardless if they have an extension or not.
19
+ - `ONLY_WITH_EXTENSIONS`:
20
+ Only EAN and UPC codes with extensions are returned.
21
+ - `ONLY_WITHOUT_EXTENSIONS`:
22
+ Only EAN and UPC codes without extensions are returned.
23
+ */
24
24
  export type BarcodesExtensionFilter = "NO_FILTER" | "ONLY_WITH_EXTENSIONS" | "ONLY_WITHOUT_EXTENSIONS";
25
25
  /**
26
- Configuration of the scanning behavior.
27
- */
26
+ Configuration of the scanning behavior.
27
+ */
28
28
  export declare class BarcodeRecognizerConfiguration extends PartiallyConstructible {
29
29
  /**
30
- Regular expression filter for barcode text. If the barcode text does not match the regular expression, it will not be scanned. The default is an empty string (setting is turned off). This option overrides `barcodesExtensionFilter` option.
31
- @defaultValue "";
32
- */
30
+ Regular expression filter for barcode text. If the barcode text does not match the regular expression, it will not be scanned. The default is an empty string (setting is turned off). This option overrides `barcodesExtensionFilter` option.
31
+ @defaultValue "";
32
+ */
33
33
  barcodesRegexFilter: string;
34
34
  /**
35
- List of accepted barcode symbologies.
36
- @defaultValue [];
37
- */
35
+ List of accepted barcode symbologies.
36
+ @defaultValue [];
37
+ */
38
38
  barcodeFormats: BarcodeFormat[];
39
39
  /**
40
- The expected way of handling GS1_COMPOSITE barcodes.
41
- @defaultValue "PARSE";
42
- */
40
+ The expected way of handling GS1_COMPOSITE barcodes.
41
+ @defaultValue "PARSE";
42
+ */
43
43
  gs1Handling: GS1Handling;
44
44
  /**
45
- The engine mode to use for barcode recognition.
46
- @defaultValue "NEXT_GEN_LOW_POWER";
47
- */
45
+ The engine mode to use for barcode recognition.
46
+ @defaultValue "NEXT_GEN_LOW_POWER";
47
+ */
48
48
  engineMode: EngineMode;
49
49
  /**
50
- Maximum resolution of the image processed by the barcode recognizer. Smaller values mean faster processing but lower recognition quality. The value is limited by the resolution of the preview.
51
- @defaultValue 600;
52
- */
50
+ Maximum resolution of the image processed by the barcode recognizer. Smaller values mean faster processing but lower recognition quality. The value is limited by the resolution of the preview.
51
+ @defaultValue 600;
52
+ */
53
53
  maximumRecognizerResolution: number;
54
54
  /** @param source {@displayType `DeepPartial<BarcodeRecognizerConfiguration>`} */
55
55
  constructor(source?: DeepPartial<BarcodeRecognizerConfiguration>);
@@ -4,7 +4,7 @@ import { BarcodeTextLocalization } from "./BarcodeTextLocalization";
4
4
  import { BarcodeUseCase } from "./BarcodeUseCase";
5
5
  import { CameraConfiguration } from "./CameraConfiguration";
6
6
  import { CameraPermissionScreen } from "./CameraPermission";
7
- import { DeepPartial, PartiallyConstructible } from "./utils";
7
+ import { DeepPartial, PartiallyConstructible } from "../common";
8
8
  import { Palette } from "./Common";
9
9
  import { Sound } from "./Common";
10
10
  import { Timeouts } from "./Common";
@@ -13,208 +13,208 @@ import { UserGuidanceConfiguration } from "./UserGuidanceConfiguration";
13
13
  import { Vibration } from "./Common";
14
14
  import { ViewFinderConfiguration } from "./ViewFinderConfiguration";
15
15
  /**
16
- Configuration of the barcode scanner screen.
17
- */
16
+ Configuration of the barcode scanner screen.
17
+ */
18
18
  export declare class BarcodeScannerConfiguration extends PartiallyConstructible {
19
19
  /**
20
- Version number of the configuration object.
21
- @defaultValue "1.0";
22
- */
20
+ Version number of the configuration object.
21
+ @defaultValue "1.0";
22
+ */
23
23
  readonly version: string;
24
24
  /**
25
- The configuration object should be applied for this screen.
26
- @defaultValue "BarcodeScanner";
27
- */
25
+ The configuration object should be applied for this screen.
26
+ @defaultValue "BarcodeScanner";
27
+ */
28
28
  readonly screen: string;
29
29
  /**
30
- Define the screen's base color values from which other colors are derived.
31
- @defaultValue new Palette({
32
- "sbColorPrimary": "#C8193C",
33
- "sbColorPrimaryDisabled": "#F5F5F5",
34
- "sbColorNegative": "#FF3737",
35
- "sbColorPositive": "#4EFFB4",
36
- "sbColorWarning": "#FFCE5C",
37
- "sbColorSecondary": "#FFEDEE",
38
- "sbColorSecondaryDisabled": "#F5F5F5",
39
- "sbColorOnPrimary": "#FFFFFF",
40
- "sbColorOnSecondary": "#C8193C",
41
- "sbColorSurface": "#FFFFFF",
42
- "sbColorOutline": "#EFEFEF",
43
- "sbColorOnSurfaceVariant": "#707070",
44
- "sbColorOnSurface": "#000000",
45
- "sbColorSurfaceLow": "#00000026",
46
- "sbColorSurfaceHigh": "#0000007A",
47
- "sbColorModalOverlay": "#000000A3"
48
- });
49
- */
30
+ Define the screen's base color values from which other colors are derived.
31
+ @defaultValue new Palette({
32
+ "sbColorPrimary": "#C8193C",
33
+ "sbColorPrimaryDisabled": "#F5F5F5",
34
+ "sbColorNegative": "#FF3737",
35
+ "sbColorPositive": "#4EFFB4",
36
+ "sbColorWarning": "#FFCE5C",
37
+ "sbColorSecondary": "#FFEDEE",
38
+ "sbColorSecondaryDisabled": "#F5F5F5",
39
+ "sbColorOnPrimary": "#FFFFFF",
40
+ "sbColorOnSecondary": "#C8193C",
41
+ "sbColorSurface": "#FFFFFF",
42
+ "sbColorOutline": "#EFEFEF",
43
+ "sbColorOnSurfaceVariant": "#707070",
44
+ "sbColorOnSurface": "#000000",
45
+ "sbColorSurfaceLow": "#00000026",
46
+ "sbColorSurfaceHigh": "#0000007A",
47
+ "sbColorModalOverlay": "#000000A3"
48
+ });
49
+ */
50
50
  palette: Palette;
51
51
  /**
52
- Configuration of the all strings for barcode scanner.
53
- @defaultValue new BarcodeTextLocalization({});
54
- */
52
+ Configuration of the all strings for barcode scanner.
53
+ @defaultValue new BarcodeTextLocalization({});
54
+ */
55
55
  localization: BarcodeTextLocalization;
56
56
  /**
57
- Color of the screen's background.
58
- @defaultValue "?sbColorSurfaceLow";
59
- */
57
+ Color of the screen's background.
58
+ @defaultValue "?sbColorSurfaceLow";
59
+ */
60
60
  backgroundColor: string;
61
61
  /**
62
- Configuration of the top bar.
63
- @defaultValue new TopBarConfiguration({
64
- "title": new StyledText({
65
- "text": "?topBarTitle",
66
- "color": "?sbColorOnPrimary"
67
- }),
68
- "mode": "SOLID",
69
- "backgroundColor": "?sbColorPrimary",
70
- "cancelButton": new ButtonConfiguration({
71
- "visible": true,
72
- "text": "?topBarCancelButton",
73
- "background": new BackgroundStyle({
74
- "strokeColor": "#00000000",
75
- "fillColor": "#00000000",
76
- "strokeWidth": 0.0
77
- }),
78
- "foreground": new ForegroundStyle({
79
- "iconVisible": true,
80
- "color": "?sbColorOnPrimary",
81
- "useShadow": false
82
- })
83
- })
84
- });
85
- */
62
+ Configuration of the top bar.
63
+ @defaultValue new TopBarConfiguration({
64
+ "title": new StyledText({
65
+ "text": "?topBarTitle",
66
+ "color": "?sbColorOnPrimary"
67
+ }),
68
+ "mode": "SOLID",
69
+ "backgroundColor": "?sbColorPrimary",
70
+ "cancelButton": new ButtonConfiguration({
71
+ "visible": true,
72
+ "text": "?topBarCancelButton",
73
+ "background": new BackgroundStyle({
74
+ "strokeColor": "#00000000",
75
+ "fillColor": "#00000000",
76
+ "strokeWidth": 0.0
77
+ }),
78
+ "foreground": new ForegroundStyle({
79
+ "iconVisible": true,
80
+ "color": "?sbColorOnPrimary",
81
+ "useShadow": false
82
+ })
83
+ })
84
+ });
85
+ */
86
86
  topBar: TopBarConfiguration;
87
87
  /**
88
- Configuration of the action bar.
89
- @defaultValue new ActionBarConfiguration({
90
- "flashButton": new RoundButton({
91
- "visible": true,
92
- "backgroundColor": "?sbColorSurfaceHigh",
93
- "foregroundColor": "?sbColorOnPrimary",
94
- "activeBackgroundColor": "?sbColorWarning",
95
- "activeForegroundColor": "#1C1B1F"
96
- }),
97
- "zoomButton": new RoundButton({
98
- "visible": true,
99
- "backgroundColor": "?sbColorSurfaceHigh",
100
- "foregroundColor": "?sbColorOnPrimary",
101
- "activeBackgroundColor": "?sbColorSurfaceHigh",
102
- "activeForegroundColor": "?sbColorOnPrimary"
103
- }),
104
- "flipCameraButton": new RoundButton({
105
- "visible": true,
106
- "backgroundColor": "?sbColorSurfaceHigh",
107
- "foregroundColor": "?sbColorOnPrimary",
108
- "activeBackgroundColor": "?sbColorSurfaceHigh",
109
- "activeForegroundColor": "?sbColorOnPrimary"
110
- })
111
- });
112
- */
88
+ Configuration of the action bar.
89
+ @defaultValue new ActionBarConfiguration({
90
+ "flashButton": new RoundButton({
91
+ "visible": true,
92
+ "backgroundColor": "?sbColorSurfaceHigh",
93
+ "foregroundColor": "?sbColorOnPrimary",
94
+ "activeBackgroundColor": "?sbColorWarning",
95
+ "activeForegroundColor": "#1C1B1F"
96
+ }),
97
+ "zoomButton": new RoundButton({
98
+ "visible": true,
99
+ "backgroundColor": "?sbColorSurfaceHigh",
100
+ "foregroundColor": "?sbColorOnPrimary",
101
+ "activeBackgroundColor": "?sbColorSurfaceHigh",
102
+ "activeForegroundColor": "?sbColorOnPrimary"
103
+ }),
104
+ "flipCameraButton": new RoundButton({
105
+ "visible": true,
106
+ "backgroundColor": "?sbColorSurfaceHigh",
107
+ "foregroundColor": "?sbColorOnPrimary",
108
+ "activeBackgroundColor": "?sbColorSurfaceHigh",
109
+ "activeForegroundColor": "?sbColorOnPrimary"
110
+ })
111
+ });
112
+ */
113
113
  actionBar: ActionBarConfiguration;
114
114
  /**
115
- Configuration of the view finder.
116
- @defaultValue new ViewFinderConfiguration({
117
- "visible": true,
118
- "style": new FinderCorneredStyle({
119
- "strokeColor": "?sbColorSurface",
120
- "strokeWidth": 2.0,
121
- "cornerRadius": 10.0
122
- }),
123
- "overlayColor": "?sbColorSurfaceLow",
124
- "aspectRatio": new AspectRatio({
125
- "width": 1.0,
126
- "height": 1.0
127
- })
128
- });
129
- */
115
+ Configuration of the view finder.
116
+ @defaultValue new ViewFinderConfiguration({
117
+ "visible": true,
118
+ "style": new FinderCorneredStyle({
119
+ "strokeColor": "?sbColorSurface",
120
+ "strokeWidth": 2.0,
121
+ "cornerRadius": 10.0
122
+ }),
123
+ "overlayColor": "?sbColorSurfaceLow",
124
+ "aspectRatio": new AspectRatio({
125
+ "width": 1.0,
126
+ "height": 1.0
127
+ })
128
+ });
129
+ */
130
130
  viewFinder: ViewFinderConfiguration;
131
131
  /**
132
- Configuration of the text hint guiding users to move the view finder over a barcode.
133
- @defaultValue new UserGuidanceConfiguration({
134
- "visible": true,
135
- "title": new StyledText({
136
- "text": "?userGuidance",
137
- "color": "?sbColorOnPrimary"
138
- }),
139
- "background": new BackgroundStyle({
140
- "strokeColor": "#00000000",
141
- "fillColor": "?sbColorSurfaceLow",
142
- "strokeWidth": 0.0
143
- })
144
- });
145
- */
132
+ Configuration of the text hint guiding users to move the view finder over a barcode.
133
+ @defaultValue new UserGuidanceConfiguration({
134
+ "visible": true,
135
+ "title": new StyledText({
136
+ "text": "?userGuidance",
137
+ "color": "?sbColorOnPrimary"
138
+ }),
139
+ "background": new BackgroundStyle({
140
+ "strokeColor": "#00000000",
141
+ "fillColor": "?sbColorSurfaceLow",
142
+ "strokeWidth": 0.0
143
+ })
144
+ });
145
+ */
146
146
  userGuidance: UserGuidanceConfiguration;
147
147
  /**
148
- Configuration of the dialog for requesting camera permissions.
149
- @defaultValue new CameraPermissionScreen({
150
- "background": "?sbColorSurface",
151
- "iconBackground": "?sbColorOutline",
152
- "icon": new IconStyle({
153
- "visible": true,
154
- "color": "?sbColorOnSurface"
155
- }),
156
- "closeButton": new ButtonConfiguration({
157
- "visible": true,
158
- "text": "?cameraPermissionCloseButton",
159
- "background": new BackgroundStyle({
160
- "strokeColor": "#00000000",
161
- "fillColor": "#00000000",
162
- "strokeWidth": 0.0
163
- }),
164
- "foreground": new ForegroundStyle({
165
- "iconVisible": false,
166
- "color": "?sbColorPrimary",
167
- "useShadow": false
168
- })
169
- }),
170
- "enableCameraTitle": new StyledText({
171
- "text": "?cameraPermissionEnableCameraTitle",
172
- "color": "?sbColorOnSurface"
173
- }),
174
- "enableCameraExplanation": new StyledText({
175
- "text": "?cameraPermissionEnableCameraExplanation",
176
- "color": "?sbColorOnSurfaceVariant"
177
- })
178
- });
179
- */
148
+ Configuration of the dialog for requesting camera permissions.
149
+ @defaultValue new CameraPermissionScreen({
150
+ "background": "?sbColorSurface",
151
+ "iconBackground": "?sbColorOutline",
152
+ "icon": new IconStyle({
153
+ "visible": true,
154
+ "color": "?sbColorOnSurface"
155
+ }),
156
+ "closeButton": new ButtonConfiguration({
157
+ "visible": true,
158
+ "text": "?cameraPermissionCloseButton",
159
+ "background": new BackgroundStyle({
160
+ "strokeColor": "#00000000",
161
+ "fillColor": "#00000000",
162
+ "strokeWidth": 0.0
163
+ }),
164
+ "foreground": new ForegroundStyle({
165
+ "iconVisible": false,
166
+ "color": "?sbColorPrimary",
167
+ "useShadow": false
168
+ })
169
+ }),
170
+ "enableCameraTitle": new StyledText({
171
+ "text": "?cameraPermissionEnableCameraTitle",
172
+ "color": "?sbColorOnSurface"
173
+ }),
174
+ "enableCameraExplanation": new StyledText({
175
+ "text": "?cameraPermissionEnableCameraExplanation",
176
+ "color": "?sbColorOnSurfaceVariant"
177
+ })
178
+ });
179
+ */
180
180
  cameraPermission: CameraPermissionScreen;
181
181
  /**
182
- Configuration of the camera behavior.
183
- @defaultValue new CameraConfiguration({});
184
- */
182
+ Configuration of the camera behavior.
183
+ @defaultValue new CameraConfiguration({});
184
+ */
185
185
  cameraConfiguration: CameraConfiguration;
186
186
  /**
187
- Configuration of the scanning behavior.
188
- @defaultValue new BarcodeRecognizerConfiguration({});
189
- */
187
+ Configuration of the scanning behavior.
188
+ @defaultValue new BarcodeRecognizerConfiguration({});
189
+ */
190
190
  recognizerConfiguration: BarcodeRecognizerConfiguration;
191
191
  /**
192
- Configuration of the barcode scanner screen's behavior.
193
- @defaultValue new SingleScanningMode({});
194
- */
192
+ Configuration of the barcode scanner screen's behavior.
193
+ @defaultValue new SingleScanningMode({});
194
+ */
195
195
  useCase: BarcodeUseCase;
196
196
  /**
197
- Configuration of the scan confirmation sound.
198
- @defaultValue new Sound({
199
- "successBeepEnabled": true,
200
- "soundType": "MODERN_BEEP"
197
+ Configuration of the scan confirmation sound.
198
+ @defaultValue new Sound({
199
+ "successBeepEnabled": true,
200
+ "soundType": "MODERN_BEEP"
201
201
  });
202
- */
202
+ */
203
203
  sound: Sound;
204
204
  /**
205
- Configuration of the scan scan confirmation vibration.
206
- @defaultValue new Vibration({
207
- "enabled": true
205
+ Configuration of the scan scan confirmation vibration.
206
+ @defaultValue new Vibration({
207
+ "enabled": true
208
208
  });
209
- */
209
+ */
210
210
  vibration: Vibration;
211
211
  /**
212
- Configuration of timeouts.
213
- @defaultValue new Timeouts({
214
- "autoCancelTimeout": 0,
215
- "initialScanDelay": 0
212
+ Configuration of timeouts.
213
+ @defaultValue new Timeouts({
214
+ "autoCancelTimeout": 0,
215
+ "initialScanDelay": 0
216
216
  });
217
- */
217
+ */
218
218
  timeouts: Timeouts;
219
219
  /** @param source {@displayType `DeepPartial<BarcodeScannerConfiguration>`} */
220
220
  constructor(source?: DeepPartial<BarcodeScannerConfiguration>);
@@ -1,6 +1 @@
1
- import { BarcodeItem } from "./BarcodeItem";
2
- export type { EngineMode } from "../../core/bridge/compiled/BarcodeScannerTypes";
3
- export declare class BarcodeScannerResult {
4
- items: BarcodeItem[];
5
- constructor(items: BarcodeItem[]);
6
- }
1
+ export { BarcodeItem, type EngineMode, type BarcodeDocumentFormat, BarcodeDocumentFormats } from "../../core/bridge/compiled/BarcodeScannerTypes";