scandit-capacitor-datacapture-barcode 8.3.1 → 8.4.0
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/ScanditCapacitorDatacaptureBarcode.podspec +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.java +36 -12
- package/dist/barcode.js +333 -35
- package/dist/barcode.js.map +1 -1
- package/dist/dts/definitions.d.ts +6 -0
- package/dist/dts/ts/SparkScanView.d.ts +3 -1
- package/dist/index.js +107 -115
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
package/dist/barcode.js
CHANGED
|
@@ -127,6 +127,9 @@ __decorate([
|
|
|
127
127
|
nameForSerialization('excludedSymbologies')
|
|
128
128
|
], BarcodeFilterSettings.prototype, "_excludedSymbologies", void 0);
|
|
129
129
|
|
|
130
|
+
function parseOrUse$6(value) {
|
|
131
|
+
return typeof value === 'string' ? JSON.parse(value) : value;
|
|
132
|
+
}
|
|
130
133
|
function getBarcodeCountDefaults() {
|
|
131
134
|
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeCount);
|
|
132
135
|
}
|
|
@@ -175,8 +178,8 @@ function parseBarcodeCountDefaults(jsonDefaults) {
|
|
|
175
178
|
const barcodeCountDefaults = {
|
|
176
179
|
RecommendedCameraSettings: CameraSettings['fromJSON'](jsonDefaults.RecommendedCameraSettings),
|
|
177
180
|
Feedback: {
|
|
178
|
-
success: Feedback['fromJSON'](
|
|
179
|
-
failure: Feedback['fromJSON'](
|
|
181
|
+
success: Feedback['fromJSON'](parseOrUse$6(jsonDefaults.BarcodeCountFeedback).success),
|
|
182
|
+
failure: Feedback['fromJSON'](parseOrUse$6(jsonDefaults.BarcodeCountFeedback).failure)
|
|
180
183
|
},
|
|
181
184
|
BarcodeCountSettings: {
|
|
182
185
|
expectOnlyUniqueBarcodes: jsonDefaults.BarcodeCountSettings.expectOnlyUniqueBarcodes,
|
|
@@ -2646,6 +2649,36 @@ class BarcodeProxyAdapter {
|
|
|
2646
2649
|
return result;
|
|
2647
2650
|
});
|
|
2648
2651
|
}
|
|
2652
|
+
/**
|
|
2653
|
+
* Register persistent event listener for custom view provider events
|
|
2654
|
+
* @param viewId Unique identifier of the BarcodePick view
|
|
2655
|
+
*/
|
|
2656
|
+
registerCustomViewProviderListener(_a) {
|
|
2657
|
+
return __awaiter(this, arguments, void 0, function* ({ viewId }) {
|
|
2658
|
+
const result = yield this.proxy.$executeBarcode({
|
|
2659
|
+
moduleName: 'BarcodePickModule',
|
|
2660
|
+
methodName: 'registerCustomViewProviderListener',
|
|
2661
|
+
isEventRegistration: true,
|
|
2662
|
+
viewId,
|
|
2663
|
+
});
|
|
2664
|
+
return result;
|
|
2665
|
+
});
|
|
2666
|
+
}
|
|
2667
|
+
/**
|
|
2668
|
+
* Unregister event listener for custom view provider events
|
|
2669
|
+
* @param viewId Unique identifier of the BarcodePick view
|
|
2670
|
+
*/
|
|
2671
|
+
unregisterCustomViewProviderListener(_a) {
|
|
2672
|
+
return __awaiter(this, arguments, void 0, function* ({ viewId }) {
|
|
2673
|
+
const result = yield this.proxy.$executeBarcode({
|
|
2674
|
+
moduleName: 'BarcodePickModule',
|
|
2675
|
+
methodName: 'unregisterCustomViewProviderListener',
|
|
2676
|
+
isEventRegistration: false,
|
|
2677
|
+
viewId,
|
|
2678
|
+
});
|
|
2679
|
+
return result;
|
|
2680
|
+
});
|
|
2681
|
+
}
|
|
2649
2682
|
/**
|
|
2650
2683
|
* Finish callback for product identifier for items
|
|
2651
2684
|
* @param viewId Unique identifier of the BarcodePick view
|
|
@@ -2663,6 +2696,25 @@ class BarcodeProxyAdapter {
|
|
|
2663
2696
|
return result;
|
|
2664
2697
|
});
|
|
2665
2698
|
}
|
|
2699
|
+
/**
|
|
2700
|
+
* Finish callback for barcode pick view highlight style custom view provider view for request
|
|
2701
|
+
* @param viewId Unique identifier of the BarcodePick view
|
|
2702
|
+
* @param requestId Request id
|
|
2703
|
+
* @param responseJson Response as JSON string
|
|
2704
|
+
*/
|
|
2705
|
+
finishBarcodePickViewHighlightStyleCustomViewProviderViewForRequest(_a) {
|
|
2706
|
+
return __awaiter(this, arguments, void 0, function* ({ viewId, requestId, responseJson, }) {
|
|
2707
|
+
const result = yield this.proxy.$executeBarcode({
|
|
2708
|
+
moduleName: 'BarcodePickModule',
|
|
2709
|
+
methodName: 'finishBarcodePickViewHighlightStyleCustomViewProviderViewForRequest',
|
|
2710
|
+
isEventRegistration: false,
|
|
2711
|
+
viewId,
|
|
2712
|
+
requestId,
|
|
2713
|
+
responseJson,
|
|
2714
|
+
});
|
|
2715
|
+
return result;
|
|
2716
|
+
});
|
|
2717
|
+
}
|
|
2666
2718
|
/**
|
|
2667
2719
|
* Finish callback for barcode pick view highlight style async provider style for request
|
|
2668
2720
|
* @param viewId Unique identifier of the BarcodePick view
|
|
@@ -3861,6 +3913,9 @@ __decorate([
|
|
|
3861
3913
|
nameForSerialization('brush')
|
|
3862
3914
|
], BarcodeFilterHighlightSettingsBrush.prototype, "_brush", void 0);
|
|
3863
3915
|
|
|
3916
|
+
function parseOrUse$5(value) {
|
|
3917
|
+
return typeof value === 'string' ? JSON.parse(value) : value;
|
|
3918
|
+
}
|
|
3864
3919
|
function getBarcodePickDefaults() {
|
|
3865
3920
|
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodePick);
|
|
3866
3921
|
}
|
|
@@ -3892,7 +3947,7 @@ function getSymbologySettingsFromBarcodePickDefaults(symbology, errorPrefix) {
|
|
|
3892
3947
|
function parseBarcodePickViewHighlightStyle(jsonStyles) {
|
|
3893
3948
|
const styles = {};
|
|
3894
3949
|
Object.entries(jsonStyles).forEach(([key, value]) => {
|
|
3895
|
-
styles[key] =
|
|
3950
|
+
styles[key] = parseOrUse$5(value);
|
|
3896
3951
|
});
|
|
3897
3952
|
return styles;
|
|
3898
3953
|
}
|
|
@@ -3917,7 +3972,7 @@ function parseBarcodePickDefaults(jsonDefaults) {
|
|
|
3917
3972
|
filterHighlightSettings: filterHighlightSettings,
|
|
3918
3973
|
},
|
|
3919
3974
|
ViewSettings: {
|
|
3920
|
-
highlightStyle:
|
|
3975
|
+
highlightStyle: parseOrUse$5(jsonDefaults.ViewSettings.HighlightStyle),
|
|
3921
3976
|
initialGuidelineText: jsonDefaults.ViewSettings.initialGuidelineText,
|
|
3922
3977
|
moveCloserGuidelineText: jsonDefaults.ViewSettings.moveCloserGuidelineText,
|
|
3923
3978
|
showLoadingDialog: jsonDefaults.ViewSettings.showLoadingDialog,
|
|
@@ -3938,13 +3993,13 @@ function parseBarcodePickDefaults(jsonDefaults) {
|
|
|
3938
3993
|
tapShutterToPauseGuidelineText: jsonDefaults.ViewSettings.tapShutterToPauseGuidelineText,
|
|
3939
3994
|
hardwareTriggerEnabled: jsonDefaults.ViewSettings.hardwareTriggerEnabled,
|
|
3940
3995
|
uiButtonsOffset: jsonDefaults.ViewSettings.uiButtonsOffset
|
|
3941
|
-
? NumberWithUnit['fromJSON'](
|
|
3996
|
+
? NumberWithUnit['fromJSON'](parseOrUse$5(jsonDefaults.ViewSettings.uiButtonsOffset))
|
|
3942
3997
|
: null,
|
|
3943
3998
|
hardwareTriggerKeyCode: jsonDefaults.ViewSettings.hardwareTriggerKeyCode,
|
|
3944
3999
|
},
|
|
3945
4000
|
BarcodePickViewHighlightStyle: parseBarcodePickViewHighlightStyle(jsonDefaults.BarcodePickViewHighlightStyle),
|
|
3946
4001
|
SymbologySettings: Object.keys(jsonDefaults.SymbologySettings).reduce((settings, identifier) => {
|
|
3947
|
-
settings[identifier] = SymbologySettings['fromJSON'](identifier,
|
|
4002
|
+
settings[identifier] = SymbologySettings['fromJSON'](identifier, parseOrUse$5(jsonDefaults.SymbologySettings[identifier]));
|
|
3948
4003
|
return settings;
|
|
3949
4004
|
}, {}),
|
|
3950
4005
|
BarcodePickStatusIconSettings: {
|
|
@@ -3956,6 +4011,9 @@ function parseBarcodePickDefaults(jsonDefaults) {
|
|
|
3956
4011
|
return barcodePickDefaults;
|
|
3957
4012
|
}
|
|
3958
4013
|
|
|
4014
|
+
function parseOrUse$4(value) {
|
|
4015
|
+
return typeof value === 'string' ? JSON.parse(value) : value;
|
|
4016
|
+
}
|
|
3959
4017
|
function getBarcodeSelectionDefaults() {
|
|
3960
4018
|
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeSelection);
|
|
3961
4019
|
}
|
|
@@ -3963,12 +4021,12 @@ function parseBarcodeSelectionDefaults(jsonDefaults) {
|
|
|
3963
4021
|
const barcodeSelectionDefaults = {
|
|
3964
4022
|
RecommendedCameraSettings: CameraSettings['fromJSON'](jsonDefaults.RecommendedCameraSettings),
|
|
3965
4023
|
Feedback: ({
|
|
3966
|
-
selection: Feedback['fromJSON'](
|
|
4024
|
+
selection: Feedback['fromJSON'](parseOrUse$4(jsonDefaults.Feedback).selection),
|
|
3967
4025
|
}),
|
|
3968
4026
|
BarcodeSelectionSettings: {
|
|
3969
4027
|
codeDuplicateFilter: jsonDefaults.BarcodeSelectionSettings.codeDuplicateFilter,
|
|
3970
4028
|
singleBarcodeAutoDetection: jsonDefaults.BarcodeSelectionSettings.singleBarcodeAutoDetection,
|
|
3971
|
-
selectionType: (fromJSON) => fromJSON(
|
|
4029
|
+
selectionType: (fromJSON) => fromJSON(parseOrUse$4(jsonDefaults.BarcodeSelectionSettings.selectionType)),
|
|
3972
4030
|
},
|
|
3973
4031
|
BarcodeSelectionTapSelection: {
|
|
3974
4032
|
defaultFreezeBehavior: jsonDefaults.BarcodeSelectionTapSelection
|
|
@@ -3977,7 +4035,7 @@ function parseBarcodeSelectionDefaults(jsonDefaults) {
|
|
|
3977
4035
|
.defaultTapBehavior,
|
|
3978
4036
|
},
|
|
3979
4037
|
BarcodeSelectionAimerSelection: {
|
|
3980
|
-
defaultSelectionStrategy: (fromJSON) => fromJSON(
|
|
4038
|
+
defaultSelectionStrategy: (fromJSON) => fromJSON(parseOrUse$4(jsonDefaults.BarcodeSelectionAimerSelection.defaultSelectionStrategy)),
|
|
3981
4039
|
},
|
|
3982
4040
|
BarcodeSelectionBasicOverlay: {
|
|
3983
4041
|
defaultStyle: jsonDefaults.BarcodeSelectionBasicOverlay.defaultStyle,
|
|
@@ -4051,28 +4109,31 @@ function parseBarcodeBatchDefaults(jsonDefaults) {
|
|
|
4051
4109
|
return barcodeBatchDefaults;
|
|
4052
4110
|
}
|
|
4053
4111
|
|
|
4112
|
+
function parseOrUse$3(value) {
|
|
4113
|
+
return typeof value === 'string' ? JSON.parse(value) : value;
|
|
4114
|
+
}
|
|
4054
4115
|
function parseSparkScanDefaults(jsonDefaults) {
|
|
4055
4116
|
var _a;
|
|
4056
|
-
const sparkScanViewSettingsDefaults =
|
|
4057
|
-
const toastSettingsDefaults =
|
|
4117
|
+
const sparkScanViewSettingsDefaults = parseOrUse$3(jsonDefaults.SparkScanView.SparkScanViewSettings);
|
|
4118
|
+
const toastSettingsDefaults = parseOrUse$3(sparkScanViewSettingsDefaults.toastSettings);
|
|
4058
4119
|
const sparkScanDefaults = {
|
|
4059
4120
|
Feedback: ({
|
|
4060
4121
|
success: {
|
|
4061
|
-
visualFeedbackColor: Color['fromJSON'](
|
|
4062
|
-
brush: new Brush(Color['fromJSON'](
|
|
4063
|
-
feedbackDefault: Feedback['fromJSON'](
|
|
4122
|
+
visualFeedbackColor: Color['fromJSON'](parseOrUse$3(jsonDefaults.Feedback.success).barcodeFeedback.visualFeedbackColor),
|
|
4123
|
+
brush: new Brush(Color['fromJSON'](parseOrUse$3(jsonDefaults.Feedback.success).barcodeFeedback.brush.fill.color), Color['fromJSON'](parseOrUse$3(jsonDefaults.Feedback.success).barcodeFeedback.brush.stroke.color), parseOrUse$3(parseOrUse$3(jsonDefaults.Feedback.success).barcodeFeedback.brush.stroke.width)),
|
|
4124
|
+
feedbackDefault: Feedback['fromJSON'](parseOrUse$3(jsonDefaults.Feedback.success).barcodeFeedback.feedback),
|
|
4064
4125
|
},
|
|
4065
4126
|
error: {
|
|
4066
|
-
visualFeedbackColor:
|
|
4067
|
-
brush: new Brush(Color['fromJSON'](
|
|
4068
|
-
feedbackDefault: Feedback['fromJSON'](
|
|
4127
|
+
visualFeedbackColor: parseOrUse$3(jsonDefaults.Feedback.error).barcodeFeedback.visualFeedbackColor,
|
|
4128
|
+
brush: new Brush(Color['fromJSON'](parseOrUse$3(jsonDefaults.Feedback.error).barcodeFeedback.brush.fill.color), Color['fromJSON'](parseOrUse$3(jsonDefaults.Feedback.error).barcodeFeedback.brush.stroke.color), parseOrUse$3(parseOrUse$3(jsonDefaults.Feedback.error).barcodeFeedback.brush.stroke.width)),
|
|
4129
|
+
feedbackDefault: Feedback['fromJSON'](parseOrUse$3(jsonDefaults.Feedback.error).barcodeFeedback.feedback),
|
|
4069
4130
|
}
|
|
4070
4131
|
}),
|
|
4071
4132
|
SparkScanSettings: {
|
|
4072
4133
|
batterySaving: jsonDefaults.SparkScanSettings.batterySaving,
|
|
4073
4134
|
codeDuplicateFilter: jsonDefaults.SparkScanSettings.codeDuplicateFilter,
|
|
4074
4135
|
locationSelection: (fromJSON) => {
|
|
4075
|
-
return fromJSON(
|
|
4136
|
+
return fromJSON(parseOrUse$3(jsonDefaults.SparkScanSettings.locationSelection));
|
|
4076
4137
|
},
|
|
4077
4138
|
scanIntention: jsonDefaults.SparkScanSettings.scanIntention,
|
|
4078
4139
|
},
|
|
@@ -4085,6 +4146,7 @@ function parseSparkScanDefaults(jsonDefaults) {
|
|
|
4085
4146
|
targetModeButtonVisible: jsonDefaults.SparkScanView.targetModeButtonVisible,
|
|
4086
4147
|
labelCaptureButtonVisible: jsonDefaults.SparkScanView.labelCaptureButtonVisible,
|
|
4087
4148
|
previewSizeControlVisible: jsonDefaults.SparkScanView.previewSizeControlVisible,
|
|
4149
|
+
previewCloseControlVisible: jsonDefaults.SparkScanView.previewCloseControlVisible,
|
|
4088
4150
|
triggerButtonAnimationColor: jsonDefaults.SparkScanView.triggerButtonAnimationColor || null,
|
|
4089
4151
|
triggerButtonExpandedColor: jsonDefaults.SparkScanView.triggerButtonExpandedColor || null,
|
|
4090
4152
|
triggerButtonCollapsedColor: jsonDefaults.SparkScanView.triggerButtonCollapsedColor || null,
|
|
@@ -4095,10 +4157,11 @@ function parseSparkScanDefaults(jsonDefaults) {
|
|
|
4095
4157
|
toolbarIconActiveTintColor: jsonDefaults.SparkScanView.toolbarIconActiveTintColor ? Color['fromJSON'](jsonDefaults.SparkScanView.toolbarIconActiveTintColor) : null,
|
|
4096
4158
|
toolbarIconInactiveTintColor: jsonDefaults.SparkScanView.toolbarIconInactiveTintColor ? Color['fromJSON'](jsonDefaults.SparkScanView.toolbarIconInactiveTintColor) : null,
|
|
4097
4159
|
cameraSwitchButtonVisible: jsonDefaults.SparkScanView.cameraSwitchButtonVisible,
|
|
4160
|
+
zoomSwitchControlVisible: jsonDefaults.SparkScanView.zoomSwitchControlVisible,
|
|
4098
4161
|
SparkScanViewSettings: {
|
|
4099
4162
|
triggerButtonCollapseTimeout: sparkScanViewSettingsDefaults.triggerButtonCollapseTimeout,
|
|
4100
4163
|
defaultScanningMode: (fromJSON) => {
|
|
4101
|
-
return fromJSON(
|
|
4164
|
+
return fromJSON(parseOrUse$3(sparkScanViewSettingsDefaults.defaultScanningMode));
|
|
4102
4165
|
},
|
|
4103
4166
|
defaultTorchState: sparkScanViewSettingsDefaults.defaultTorchState,
|
|
4104
4167
|
soundEnabled: sparkScanViewSettingsDefaults.soundEnabled,
|
|
@@ -4135,6 +4198,9 @@ function parseSparkScanDefaults(jsonDefaults) {
|
|
|
4135
4198
|
return sparkScanDefaults;
|
|
4136
4199
|
}
|
|
4137
4200
|
|
|
4201
|
+
function parseOrUse$2(value) {
|
|
4202
|
+
return typeof value === 'string' ? JSON.parse(value) : value;
|
|
4203
|
+
}
|
|
4138
4204
|
function getBarcodeFindDefaults() {
|
|
4139
4205
|
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeFind);
|
|
4140
4206
|
}
|
|
@@ -4145,8 +4211,8 @@ function parseBarcodeFindDefaults(jsonDefaults) {
|
|
|
4145
4211
|
return {
|
|
4146
4212
|
RecommendedCameraSettings: CameraSettings['fromJSON'](jsonDefaults.RecommendedCameraSettings),
|
|
4147
4213
|
Feedback: {
|
|
4148
|
-
found: Feedback['fromJSON'](
|
|
4149
|
-
itemListUpdated: Feedback['fromJSON'](
|
|
4214
|
+
found: Feedback['fromJSON'](parseOrUse$2(jsonDefaults.BarcodeFindFeedback).found),
|
|
4215
|
+
itemListUpdated: Feedback['fromJSON'](parseOrUse$2(jsonDefaults.BarcodeFindFeedback).itemListUpdated),
|
|
4150
4216
|
},
|
|
4151
4217
|
BarcodeFindView: {
|
|
4152
4218
|
hardwareTriggerSupported: viewJsonDefaults.hardwareTriggerSupported,
|
|
@@ -4175,6 +4241,9 @@ function parseBarcodeFindDefaults(jsonDefaults) {
|
|
|
4175
4241
|
};
|
|
4176
4242
|
}
|
|
4177
4243
|
|
|
4244
|
+
function parseOrUse$1(value) {
|
|
4245
|
+
return typeof value === 'string' ? JSON.parse(value) : value;
|
|
4246
|
+
}
|
|
4178
4247
|
function getBarcodeArDefaults() {
|
|
4179
4248
|
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeAr);
|
|
4180
4249
|
}
|
|
@@ -4193,8 +4262,8 @@ function parseBarcodeArDefaults(jsonDefaults) {
|
|
|
4193
4262
|
const barcodeArDefaults = {
|
|
4194
4263
|
RecommendedCameraSettings: CameraSettings['fromJSON'](jsonDefaults.RecommendedCameraSettings),
|
|
4195
4264
|
Feedback: {
|
|
4196
|
-
scanned: Feedback['fromJSON'](
|
|
4197
|
-
tapped: Feedback['fromJSON'](
|
|
4265
|
+
scanned: Feedback['fromJSON'](parseOrUse$1(jsonDefaults.barcodeArFeedback).scanned),
|
|
4266
|
+
tapped: Feedback['fromJSON'](parseOrUse$1(jsonDefaults.barcodeArFeedback).tapped)
|
|
4198
4267
|
},
|
|
4199
4268
|
BarcodeArView: {
|
|
4200
4269
|
circleHighlightPresets: parseCircleHighlightPresets(viewJsonDefaults.circleHighlightPresets),
|
|
@@ -4232,7 +4301,7 @@ function parseBarcodeArDefaults(jsonDefaults) {
|
|
|
4232
4301
|
defaultResponsiveAnnotationTrigger: viewJsonDefaults.defaultResponsiveAnnotationTrigger,
|
|
4233
4302
|
defaultIsEntirePopoverTappable: viewJsonDefaults.defaultIsEntirePopoverTappable,
|
|
4234
4303
|
defaultPopoverAnnotationTrigger: viewJsonDefaults.defaultPopoverAnnotationTrigger,
|
|
4235
|
-
defaultRectangleHighlightBrush: parseBrush(
|
|
4304
|
+
defaultRectangleHighlightBrush: parseBrush(parseOrUse$1(viewJsonDefaults.defaultRectangleHighlightBrush)),
|
|
4236
4305
|
defaultShouldShowCameraSwitchControl: viewJsonDefaults.defaultShouldShowCameraSwitchControl,
|
|
4237
4306
|
defaultShouldShowTorchControl: viewJsonDefaults.defaultShouldShowTorchControl,
|
|
4238
4307
|
defaultShouldShowZoomControl: viewJsonDefaults.defaultShouldShowZoomControl,
|
|
@@ -4385,6 +4454,9 @@ function loadAllBarcodeDefaults(jsonDefaults) {
|
|
|
4385
4454
|
loadBarcodeArDefaults(jsonDefaults.BarcodeAr);
|
|
4386
4455
|
}
|
|
4387
4456
|
|
|
4457
|
+
function parseOrUse(value) {
|
|
4458
|
+
return typeof value === 'string' ? JSON.parse(value) : value;
|
|
4459
|
+
}
|
|
4388
4460
|
function getBarcodeDefaults() {
|
|
4389
4461
|
return ensureBarcodeDefaults();
|
|
4390
4462
|
}
|
|
@@ -4415,12 +4487,12 @@ function parseBarcodeDefaults(jsonDefaults) {
|
|
|
4415
4487
|
const barcodeDefaults = {
|
|
4416
4488
|
SymbologySettings: Object.keys(jsonDefaults.SymbologySettings)
|
|
4417
4489
|
.reduce((settings, identifier) => {
|
|
4418
|
-
const symbologySettings = SymbologySettings['fromJSON'](identifier,
|
|
4490
|
+
const symbologySettings = SymbologySettings['fromJSON'](identifier, parseOrUse(jsonDefaults.SymbologySettings[identifier]));
|
|
4419
4491
|
settings[identifier] = symbologySettings;
|
|
4420
4492
|
return settings;
|
|
4421
4493
|
}, {}),
|
|
4422
|
-
SymbologyDescriptions: jsonDefaults.SymbologyDescriptions.map((description) => SymbologyDescription['fromJSON'](
|
|
4423
|
-
CompositeTypeDescriptions: jsonDefaults.CompositeTypeDescriptions.map(
|
|
4494
|
+
SymbologyDescriptions: jsonDefaults.SymbologyDescriptions.map((description) => SymbologyDescription['fromJSON'](parseOrUse(description))),
|
|
4495
|
+
CompositeTypeDescriptions: jsonDefaults.CompositeTypeDescriptions.map(parseOrUse),
|
|
4424
4496
|
};
|
|
4425
4497
|
SymbologyDescription['defaults'] = () => barcodeDefaults;
|
|
4426
4498
|
return barcodeDefaults;
|
|
@@ -12664,10 +12736,12 @@ class SparkScanViewController extends BaseController {
|
|
|
12664
12736
|
this.adapter = new BarcodeProxyAdapter(this._proxy);
|
|
12665
12737
|
}
|
|
12666
12738
|
dispose() {
|
|
12667
|
-
void
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12739
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12740
|
+
void this.unsubscribeModeListener();
|
|
12741
|
+
void this.unsubscribeViewListeners();
|
|
12742
|
+
void this.removeFeedbackDelegate();
|
|
12743
|
+
yield this.adapter.disposeSparkScanView({ viewId: this.viewInstanceId });
|
|
12744
|
+
});
|
|
12671
12745
|
}
|
|
12672
12746
|
subscribeViewListeners() {
|
|
12673
12747
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -12715,6 +12789,7 @@ class SparkScanViewController extends BaseController {
|
|
|
12715
12789
|
const json = JSON.stringify(viewJson);
|
|
12716
12790
|
return this._proxy.$createSparkScanView({ viewId, viewJson: json }).then(() => __awaiter(this, void 0, void 0, function* () {
|
|
12717
12791
|
this.viewInstanceId = viewId;
|
|
12792
|
+
yield this.updateView();
|
|
12718
12793
|
return this.initialize();
|
|
12719
12794
|
}));
|
|
12720
12795
|
});
|
|
@@ -13083,6 +13158,9 @@ class BaseSparkScanView {
|
|
|
13083
13158
|
if (props.torchControlVisible !== undefined && props.torchControlVisible !== null) {
|
|
13084
13159
|
view._torchControlVisible = props.torchControlVisible;
|
|
13085
13160
|
}
|
|
13161
|
+
if (props.zoomSwitchControlVisible !== undefined && props.zoomSwitchControlVisible !== null) {
|
|
13162
|
+
view._zoomSwitchControlVisible = props.zoomSwitchControlVisible;
|
|
13163
|
+
}
|
|
13086
13164
|
if (props.previewCloseControlVisible !== undefined && props.previewCloseControlVisible !== null) {
|
|
13087
13165
|
view._previewCloseControlVisible = props.previewCloseControlVisible;
|
|
13088
13166
|
}
|
|
@@ -13144,7 +13222,8 @@ class BaseSparkScanView {
|
|
|
13144
13222
|
this._triggerButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.triggerButtonVisible;
|
|
13145
13223
|
this._triggerButtonImage = BaseSparkScanView.sparkScanDefaults.SparkScanView.triggerButtonImage;
|
|
13146
13224
|
this._torchControlVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.torchControlVisible;
|
|
13147
|
-
this.
|
|
13225
|
+
this._zoomSwitchControlVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.zoomSwitchControlVisible;
|
|
13226
|
+
this._previewCloseControlVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.previewCloseControlVisible;
|
|
13148
13227
|
this._sparkScan = sparkScan;
|
|
13149
13228
|
this.context = context;
|
|
13150
13229
|
this._viewSettings = settings !== null && settings !== void 0 ? settings : new SparkScanViewSettings();
|
|
@@ -13171,6 +13250,13 @@ class BaseSparkScanView {
|
|
|
13171
13250
|
this._previewCloseControlVisible = newValue;
|
|
13172
13251
|
void this.update();
|
|
13173
13252
|
}
|
|
13253
|
+
get zoomSwitchControlVisible() {
|
|
13254
|
+
return this._zoomSwitchControlVisible;
|
|
13255
|
+
}
|
|
13256
|
+
set zoomSwitchControlVisible(newValue) {
|
|
13257
|
+
this._zoomSwitchControlVisible = newValue;
|
|
13258
|
+
void this.update();
|
|
13259
|
+
}
|
|
13174
13260
|
get scanningBehaviorButtonVisible() {
|
|
13175
13261
|
return this._scanningBehaviorButtonVisible;
|
|
13176
13262
|
}
|
|
@@ -13307,7 +13393,9 @@ class BaseSparkScanView {
|
|
|
13307
13393
|
});
|
|
13308
13394
|
}
|
|
13309
13395
|
dispose() {
|
|
13310
|
-
this
|
|
13396
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13397
|
+
yield this._controller.dispose();
|
|
13398
|
+
});
|
|
13311
13399
|
}
|
|
13312
13400
|
show() {
|
|
13313
13401
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -13378,6 +13466,10 @@ class BaseSparkScanView {
|
|
|
13378
13466
|
props.torchControlVisible !== undefined) {
|
|
13379
13467
|
this.torchControlVisible = props.torchControlVisible;
|
|
13380
13468
|
}
|
|
13469
|
+
if (props.zoomSwitchControlVisible !== prevProps.zoomSwitchControlVisible &&
|
|
13470
|
+
props.zoomSwitchControlVisible !== undefined) {
|
|
13471
|
+
this.zoomSwitchControlVisible = props.zoomSwitchControlVisible;
|
|
13472
|
+
}
|
|
13381
13473
|
if (props.previewCloseControlVisible !== prevProps.previewCloseControlVisible &&
|
|
13382
13474
|
props.previewCloseControlVisible !== undefined) {
|
|
13383
13475
|
this.previewCloseControlVisible = props.previewCloseControlVisible;
|
|
@@ -13440,6 +13532,7 @@ class BaseSparkScanView {
|
|
|
13440
13532
|
toolbarIconInactiveTintColor: this.toolbarIconInactiveTintColor,
|
|
13441
13533
|
hasFeedbackDelegate: this._feedbackDelegate != null,
|
|
13442
13534
|
cameraSwitchButtonVisible: this.cameraSwitchButtonVisible,
|
|
13535
|
+
zoomSwitchControlVisible: this.zoomSwitchControlVisible,
|
|
13443
13536
|
triggerButtonAnimationColor: this.triggerButtonAnimationColor,
|
|
13444
13537
|
triggerButtonExpandedColor: this.triggerButtonExpandedColor,
|
|
13445
13538
|
triggerButtonCollapsedColor: this.triggerButtonCollapsedColor,
|
|
@@ -13448,6 +13541,7 @@ class BaseSparkScanView {
|
|
|
13448
13541
|
triggerButtonImage: this.triggerButtonImage,
|
|
13449
13542
|
torchControlVisible: this.torchControlVisible,
|
|
13450
13543
|
previewCloseControlVisible: this.previewCloseControlVisible,
|
|
13544
|
+
previewSizeControlVisible: this.previewSizeControlVisible,
|
|
13451
13545
|
hasUiListener: this.uiListener !== null,
|
|
13452
13546
|
viewId: this.viewId,
|
|
13453
13547
|
shouldHandleAndroidLifecycleAutomatically: this.shouldHandleAndroidLifecycleAutomatically,
|
|
@@ -14258,6 +14352,76 @@ __decorate([
|
|
|
14258
14352
|
ignoreFromSerialization
|
|
14259
14353
|
], RectangularWithIcons, "barcodePickDefaults", null);
|
|
14260
14354
|
|
|
14355
|
+
class BarcodePickViewHighlightStyleCustomView extends DefaultSerializeable {
|
|
14356
|
+
static get barcodePickDefaults() {
|
|
14357
|
+
return getBarcodePickDefaults();
|
|
14358
|
+
}
|
|
14359
|
+
constructor() {
|
|
14360
|
+
super();
|
|
14361
|
+
this._type = 'customView';
|
|
14362
|
+
this._fitViewsToBarcode = BarcodePickViewHighlightStyleCustomView.barcodePickDefaults.BarcodePickViewHighlightStyle.CustomView.fitViewsToBarcode;
|
|
14363
|
+
this._minimumHighlightWidth = BarcodePickViewHighlightStyleCustomView.barcodePickDefaults.BarcodePickViewHighlightStyle.CustomView.minimumHighlightWidth;
|
|
14364
|
+
this._minimumHighlightHeight = BarcodePickViewHighlightStyleCustomView.barcodePickDefaults.BarcodePickViewHighlightStyle.CustomView.minimumHighlightHeight;
|
|
14365
|
+
this._hasAsyncProvider = false;
|
|
14366
|
+
this._asyncCustomViewProvider = null;
|
|
14367
|
+
}
|
|
14368
|
+
get fitViewsToBarcode() {
|
|
14369
|
+
return this._fitViewsToBarcode;
|
|
14370
|
+
}
|
|
14371
|
+
set fitViewsToBarcode(value) {
|
|
14372
|
+
this._fitViewsToBarcode = value;
|
|
14373
|
+
}
|
|
14374
|
+
get statusIconSettings() {
|
|
14375
|
+
return this._statusIconSettings;
|
|
14376
|
+
}
|
|
14377
|
+
set statusIconSettings(value) {
|
|
14378
|
+
this._statusIconSettings = value;
|
|
14379
|
+
}
|
|
14380
|
+
get minimumHighlightWidth() {
|
|
14381
|
+
return this._minimumHighlightWidth;
|
|
14382
|
+
}
|
|
14383
|
+
set minimumHighlightWidth(value) {
|
|
14384
|
+
this._minimumHighlightWidth = value;
|
|
14385
|
+
}
|
|
14386
|
+
get minimumHighlightHeight() {
|
|
14387
|
+
return this._minimumHighlightHeight;
|
|
14388
|
+
}
|
|
14389
|
+
set minimumHighlightHeight(value) {
|
|
14390
|
+
this._minimumHighlightHeight = value;
|
|
14391
|
+
}
|
|
14392
|
+
get asyncCustomViewProvider() {
|
|
14393
|
+
return this._asyncCustomViewProvider;
|
|
14394
|
+
}
|
|
14395
|
+
set asyncCustomViewProvider(provider) {
|
|
14396
|
+
this._asyncCustomViewProvider = provider;
|
|
14397
|
+
this._hasAsyncProvider = provider !== null;
|
|
14398
|
+
}
|
|
14399
|
+
}
|
|
14400
|
+
__decorate([
|
|
14401
|
+
nameForSerialization('type')
|
|
14402
|
+
], BarcodePickViewHighlightStyleCustomView.prototype, "_type", void 0);
|
|
14403
|
+
__decorate([
|
|
14404
|
+
nameForSerialization('fitViewsToBarcode')
|
|
14405
|
+
], BarcodePickViewHighlightStyleCustomView.prototype, "_fitViewsToBarcode", void 0);
|
|
14406
|
+
__decorate([
|
|
14407
|
+
nameForSerialization('statusIconSettings')
|
|
14408
|
+
], BarcodePickViewHighlightStyleCustomView.prototype, "_statusIconSettings", void 0);
|
|
14409
|
+
__decorate([
|
|
14410
|
+
nameForSerialization('minimumHighlightWidth')
|
|
14411
|
+
], BarcodePickViewHighlightStyleCustomView.prototype, "_minimumHighlightWidth", void 0);
|
|
14412
|
+
__decorate([
|
|
14413
|
+
nameForSerialization('minimumHighlightHeight')
|
|
14414
|
+
], BarcodePickViewHighlightStyleCustomView.prototype, "_minimumHighlightHeight", void 0);
|
|
14415
|
+
__decorate([
|
|
14416
|
+
nameForSerialization('hasAsyncProvider')
|
|
14417
|
+
], BarcodePickViewHighlightStyleCustomView.prototype, "_hasAsyncProvider", void 0);
|
|
14418
|
+
__decorate([
|
|
14419
|
+
ignoreFromSerialization
|
|
14420
|
+
], BarcodePickViewHighlightStyleCustomView.prototype, "_asyncCustomViewProvider", void 0);
|
|
14421
|
+
__decorate([
|
|
14422
|
+
ignoreFromSerialization
|
|
14423
|
+
], BarcodePickViewHighlightStyleCustomView, "barcodePickDefaults", null);
|
|
14424
|
+
|
|
14261
14425
|
class BarcodePickViewEventHandlers {
|
|
14262
14426
|
constructor(view, barcodePick, adapter, viewController) {
|
|
14263
14427
|
this.view = view;
|
|
@@ -14441,6 +14605,37 @@ class BarcodePickViewEventHandlers {
|
|
|
14441
14605
|
});
|
|
14442
14606
|
});
|
|
14443
14607
|
}
|
|
14608
|
+
handleRequestCustomView(ev) {
|
|
14609
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14610
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, { viewId: this.view.viewId });
|
|
14611
|
+
if (payload === SKIP) {
|
|
14612
|
+
return;
|
|
14613
|
+
}
|
|
14614
|
+
if (payload === null) {
|
|
14615
|
+
console.error('BarcodePickViewEventHandlers RequestCustomView payload is null');
|
|
14616
|
+
return;
|
|
14617
|
+
}
|
|
14618
|
+
const highlightStyle = this.view.settings.highlightStyle;
|
|
14619
|
+
let customViewProvider = null;
|
|
14620
|
+
if (highlightStyle instanceof BarcodePickViewHighlightStyleCustomView) {
|
|
14621
|
+
customViewProvider = highlightStyle.asyncCustomViewProvider;
|
|
14622
|
+
}
|
|
14623
|
+
if (!customViewProvider) {
|
|
14624
|
+
return;
|
|
14625
|
+
}
|
|
14626
|
+
const request = BarcodePickViewHighlightStyleRequest['fromJSON'](payload.request);
|
|
14627
|
+
if (!request) {
|
|
14628
|
+
console.error('BarcodePickViewEventHandlers RequestCustomView request is null');
|
|
14629
|
+
return;
|
|
14630
|
+
}
|
|
14631
|
+
const response = yield customViewProvider.viewForRequest(request);
|
|
14632
|
+
yield this.adapter.finishBarcodePickViewHighlightStyleCustomViewProviderViewForRequest({
|
|
14633
|
+
viewId: this.view.viewId,
|
|
14634
|
+
requestId: payload.requestId,
|
|
14635
|
+
responseJson: response ? JSON.stringify(response) : null,
|
|
14636
|
+
});
|
|
14637
|
+
});
|
|
14638
|
+
}
|
|
14444
14639
|
finishOnProductIdentifierForItems(data) {
|
|
14445
14640
|
return this.adapter.finishOnProductIdentifierForItems({
|
|
14446
14641
|
viewId: this.view.viewId,
|
|
@@ -14506,6 +14701,10 @@ var BarcodePickViewHighlightStyleEvents;
|
|
|
14506
14701
|
(function (BarcodePickViewHighlightStyleEvents) {
|
|
14507
14702
|
BarcodePickViewHighlightStyleEvents["requestHighlightStyle"] = "BarcodePickViewHighlightStyleAsyncProvider.styleForRequest";
|
|
14508
14703
|
})(BarcodePickViewHighlightStyleEvents || (BarcodePickViewHighlightStyleEvents = {}));
|
|
14704
|
+
var BarcodePickViewHighlightStyleCustomViewEvents;
|
|
14705
|
+
(function (BarcodePickViewHighlightStyleCustomViewEvents) {
|
|
14706
|
+
BarcodePickViewHighlightStyleCustomViewEvents["requestCustomView"] = "BarcodePickViewHighlightStyleCustomViewProvider.viewForRequest";
|
|
14707
|
+
})(BarcodePickViewHighlightStyleCustomViewEvents || (BarcodePickViewHighlightStyleCustomViewEvents = {}));
|
|
14509
14708
|
class BarcodePickViewController extends BaseController {
|
|
14510
14709
|
constructor(view) {
|
|
14511
14710
|
super('BarcodePickViewProxy');
|
|
@@ -14516,6 +14715,7 @@ class BarcodePickViewController extends BaseController {
|
|
|
14516
14715
|
this.isListeningForViewUiListeners = false;
|
|
14517
14716
|
this.isListeningForProductListeners = false;
|
|
14518
14717
|
this.isListeningForHighlightStyleListeners = false;
|
|
14718
|
+
this.isListeningForCustomViewStyleListeners = false;
|
|
14519
14719
|
this.handleDidCompleteScanningSessionWrapper = (ev) => {
|
|
14520
14720
|
this.eventHandlers.handleDidCompleteScanningSession(ev);
|
|
14521
14721
|
};
|
|
@@ -14552,6 +14752,9 @@ class BarcodePickViewController extends BaseController {
|
|
|
14552
14752
|
this.handleRequestHighlightStyleWrapper = (ev) => {
|
|
14553
14753
|
void this.eventHandlers.handleRequestHighlightStyle(ev);
|
|
14554
14754
|
};
|
|
14755
|
+
this.handleRequestCustomViewWrapper = (ev) => {
|
|
14756
|
+
void this.eventHandlers.handleRequestCustomView(ev);
|
|
14757
|
+
};
|
|
14555
14758
|
this.adapter = new BarcodeProxyAdapter(this._proxy);
|
|
14556
14759
|
this.view = view;
|
|
14557
14760
|
this.barcodePick = view.barcodePick;
|
|
@@ -14641,6 +14844,7 @@ class BarcodePickViewController extends BaseController {
|
|
|
14641
14844
|
void this.unsubscribePickListener();
|
|
14642
14845
|
void this.unregisterUiListener();
|
|
14643
14846
|
void this.unregisterProductListener();
|
|
14847
|
+
void this.unsubscribeCustomViewStyleListener();
|
|
14644
14848
|
this._proxy.dispose();
|
|
14645
14849
|
}
|
|
14646
14850
|
subscribeScanningListener() {
|
|
@@ -14827,6 +15031,30 @@ class BarcodePickViewController extends BaseController {
|
|
|
14827
15031
|
this.isListeningForHighlightStyleListeners = false;
|
|
14828
15032
|
});
|
|
14829
15033
|
}
|
|
15034
|
+
subscribeCustomViewStyleListener() {
|
|
15035
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15036
|
+
if (this.isListeningForCustomViewStyleListeners)
|
|
15037
|
+
return;
|
|
15038
|
+
if (!this.isViewCreated)
|
|
15039
|
+
return;
|
|
15040
|
+
this._proxy.subscribeForEvents(Object.values(BarcodePickViewHighlightStyleCustomViewEvents));
|
|
15041
|
+
this._proxy.eventEmitter.on(BarcodePickViewHighlightStyleCustomViewEvents.requestCustomView, this.handleRequestCustomViewWrapper);
|
|
15042
|
+
yield this.adapter.registerCustomViewProviderListener({ viewId: this.view.viewId });
|
|
15043
|
+
this.isListeningForCustomViewStyleListeners = true;
|
|
15044
|
+
});
|
|
15045
|
+
}
|
|
15046
|
+
unsubscribeCustomViewStyleListener() {
|
|
15047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15048
|
+
if (!this.isListeningForCustomViewStyleListeners)
|
|
15049
|
+
return;
|
|
15050
|
+
if (!this.isViewCreated)
|
|
15051
|
+
return;
|
|
15052
|
+
this._proxy.unsubscribeFromEvents(Object.values(BarcodePickViewHighlightStyleCustomViewEvents));
|
|
15053
|
+
this._proxy.eventEmitter.off(BarcodePickViewHighlightStyleCustomViewEvents.requestCustomView, this.handleRequestCustomViewWrapper);
|
|
15054
|
+
yield this.adapter.unregisterCustomViewProviderListener({ viewId: this.view.viewId });
|
|
15055
|
+
this.isListeningForCustomViewStyleListeners = false;
|
|
15056
|
+
});
|
|
15057
|
+
}
|
|
14830
15058
|
finishOnProductIdentifierForItems(data) {
|
|
14831
15059
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14832
15060
|
if (!this.isViewCreated) {
|
|
@@ -14904,6 +15132,11 @@ class BarcodePickViewController extends BaseController {
|
|
|
14904
15132
|
yield this.subscribeHighlightStyleListener();
|
|
14905
15133
|
}
|
|
14906
15134
|
}
|
|
15135
|
+
if (highlightStyle instanceof BarcodePickViewHighlightStyleCustomView) {
|
|
15136
|
+
if (highlightStyle.asyncCustomViewProvider) {
|
|
15137
|
+
yield this.subscribeCustomViewStyleListener();
|
|
15138
|
+
}
|
|
15139
|
+
}
|
|
14907
15140
|
});
|
|
14908
15141
|
}
|
|
14909
15142
|
create() {
|
|
@@ -15726,6 +15959,26 @@ __decorate([
|
|
|
15726
15959
|
ignoreFromSerialization
|
|
15727
15960
|
], Rectangular, "barcodePickDefaults", null);
|
|
15728
15961
|
|
|
15962
|
+
class BarcodePickViewHighlightStyleCustomViewResponse extends DefaultSerializeable {
|
|
15963
|
+
static create(view, statusIconStyle) {
|
|
15964
|
+
const response = new BarcodePickViewHighlightStyleCustomViewResponse();
|
|
15965
|
+
response._view = view;
|
|
15966
|
+
response._statusIconStyle = statusIconStyle;
|
|
15967
|
+
return response;
|
|
15968
|
+
}
|
|
15969
|
+
constructor() {
|
|
15970
|
+
super();
|
|
15971
|
+
this._view = null;
|
|
15972
|
+
this._statusIconStyle = null;
|
|
15973
|
+
}
|
|
15974
|
+
}
|
|
15975
|
+
__decorate([
|
|
15976
|
+
nameForSerialization('view')
|
|
15977
|
+
], BarcodePickViewHighlightStyleCustomViewResponse.prototype, "_view", void 0);
|
|
15978
|
+
__decorate([
|
|
15979
|
+
nameForSerialization('statusIconStyle')
|
|
15980
|
+
], BarcodePickViewHighlightStyleCustomViewResponse.prototype, "_statusIconStyle", void 0);
|
|
15981
|
+
|
|
15729
15982
|
class BarcodeFindFeedback extends DefaultSerializeable {
|
|
15730
15983
|
constructor() {
|
|
15731
15984
|
super(...arguments);
|
|
@@ -16683,13 +16936,16 @@ __decorate([
|
|
|
16683
16936
|
], BaseBarcodeFindView.prototype, "_viewId", void 0);
|
|
16684
16937
|
|
|
16685
16938
|
class BarcodeGeneratorCreationOptions {
|
|
16686
|
-
constructor(backgroundColor = null, foregroundColor = null, errorCorrectionLevel = null, versionNumber = null, minimumErrorCorrectionPercent = null, layers = null) {
|
|
16939
|
+
constructor(backgroundColor = null, foregroundColor = null, errorCorrectionLevel = null, versionNumber = null, minimumErrorCorrectionPercent = null, layers = null, compact = null, compactionMode = null, dimensions = null) {
|
|
16687
16940
|
this.backgroundColor = backgroundColor;
|
|
16688
16941
|
this.foregroundColor = foregroundColor;
|
|
16689
16942
|
this.errorCorrectionLevel = errorCorrectionLevel;
|
|
16690
16943
|
this.versionNumber = versionNumber;
|
|
16691
16944
|
this.minimumErrorCorrectionPercent = minimumErrorCorrectionPercent;
|
|
16692
16945
|
this.layers = layers;
|
|
16946
|
+
this.compact = compact;
|
|
16947
|
+
this.compactionMode = compactionMode;
|
|
16948
|
+
this.dimensions = dimensions;
|
|
16693
16949
|
}
|
|
16694
16950
|
}
|
|
16695
16951
|
|
|
@@ -16819,6 +17075,28 @@ class AztecBarcodeGeneratorBuilder extends BarcodeGeneratorBuilder {
|
|
|
16819
17075
|
}
|
|
16820
17076
|
}
|
|
16821
17077
|
|
|
17078
|
+
class Pdf417BarcodeGeneratorBuilder extends BarcodeGeneratorBuilder {
|
|
17079
|
+
constructor(dataCaptureContext) {
|
|
17080
|
+
super('pdf417Generator', dataCaptureContext);
|
|
17081
|
+
}
|
|
17082
|
+
withErrorCorrectionLevel(errorCorrectionLevel) {
|
|
17083
|
+
this.options.errorCorrectionLevel = errorCorrectionLevel;
|
|
17084
|
+
return this;
|
|
17085
|
+
}
|
|
17086
|
+
withCompact(compact) {
|
|
17087
|
+
this.options.compact = compact;
|
|
17088
|
+
return this;
|
|
17089
|
+
}
|
|
17090
|
+
withCompactionMode(compactionMode) {
|
|
17091
|
+
this.options.compactionMode = compactionMode;
|
|
17092
|
+
return this;
|
|
17093
|
+
}
|
|
17094
|
+
withDimensions(dimensions) {
|
|
17095
|
+
this.options.dimensions = dimensions;
|
|
17096
|
+
return this;
|
|
17097
|
+
}
|
|
17098
|
+
}
|
|
17099
|
+
|
|
16822
17100
|
class BarcodeGenerator extends DefaultSerializeable {
|
|
16823
17101
|
get id() {
|
|
16824
17102
|
return this._id;
|
|
@@ -16852,6 +17130,9 @@ class BarcodeGenerator extends DefaultSerializeable {
|
|
|
16852
17130
|
static aztecBarcodeGeneratorBuilder(dataCaptureContext) {
|
|
16853
17131
|
return new AztecBarcodeGeneratorBuilder(dataCaptureContext);
|
|
16854
17132
|
}
|
|
17133
|
+
static pdf417BarcodeGeneratorBuilder(dataCaptureContext) {
|
|
17134
|
+
return new Pdf417BarcodeGeneratorBuilder(dataCaptureContext);
|
|
17135
|
+
}
|
|
16855
17136
|
constructor(dataCaptureContext, type, backgroundColor, foregroundColor, errorCorrectionLevel, versionNumber) {
|
|
16856
17137
|
super();
|
|
16857
17138
|
this._id = `${Date.now()}`;
|
|
@@ -16905,6 +17186,23 @@ var QrCodeErrorCorrectionLevel;
|
|
|
16905
17186
|
QrCodeErrorCorrectionLevel["High"] = "high";
|
|
16906
17187
|
})(QrCodeErrorCorrectionLevel || (QrCodeErrorCorrectionLevel = {}));
|
|
16907
17188
|
|
|
17189
|
+
var Pdf417CompactionMode;
|
|
17190
|
+
(function (Pdf417CompactionMode) {
|
|
17191
|
+
Pdf417CompactionMode["Auto"] = "auto";
|
|
17192
|
+
Pdf417CompactionMode["Text"] = "text";
|
|
17193
|
+
Pdf417CompactionMode["Byte"] = "byte";
|
|
17194
|
+
Pdf417CompactionMode["Numeric"] = "numeric";
|
|
17195
|
+
})(Pdf417CompactionMode || (Pdf417CompactionMode = {}));
|
|
17196
|
+
|
|
17197
|
+
class Pdf417Dimensions {
|
|
17198
|
+
constructor(minCols = null, maxCols = null, minRows = null, maxRows = null) {
|
|
17199
|
+
this.minCols = minCols;
|
|
17200
|
+
this.maxCols = maxCols;
|
|
17201
|
+
this.minRows = minRows;
|
|
17202
|
+
this.maxRows = maxRows;
|
|
17203
|
+
}
|
|
17204
|
+
}
|
|
17205
|
+
|
|
16908
17206
|
const BARCODE_PROXY_TYPE_NAMES = [
|
|
16909
17207
|
'BarcodeProxy',
|
|
16910
17208
|
'BarcodeCountViewProxy',
|
|
@@ -16919,4 +17217,4 @@ function registerBarcodeProxies(provider) {
|
|
|
16919
17217
|
registerProxies(BARCODE_PROXY_TYPE_NAMES, provider);
|
|
16920
17218
|
}
|
|
16921
17219
|
|
|
16922
|
-
export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, BARCODE_PROXY_TYPE_NAMES, Barcode, BarcodeAr, BarcodeArAnnotationLifecycleEvents, BarcodeArAnnotationProviderEvents, BarcodeArAnnotationTrigger, BarcodeArCircleHighlight, BarcodeArCircleHighlightPreset, BarcodeArEvents, BarcodeArFeedback, BarcodeArHighlightLifecycleEvents, BarcodeArHighlightProviderEvents, BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor, BarcodeArInfoAnnotationBodyComponent, BarcodeArInfoAnnotationFooter, BarcodeArInfoAnnotationHeader, BarcodeArInfoAnnotationWidthPreset, BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationButton, BarcodeArRectangleHighlight, BarcodeArResponsiveAnnotation, BarcodeArSession, BarcodeArSessionController, BarcodeArSettings, BarcodeArStatusIconAnnotation, BarcodeArViewController, BarcodeArViewEvents, BarcodeArViewSettings, BarcodeBatch, BarcodeBatchAdvancedOverlayController, BarcodeBatchAdvancedOverlayListenerEvents, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayController, BarcodeBatchBasicOverlayListenerEvents, BarcodeBatchBasicOverlayStyle, BarcodeBatchListenerController, BarcodeBatchListenerEvents, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureListenerController, BarcodeCaptureListenerEvents, BarcodeCaptureOverlay, BarcodeCaptureOverlayController, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountMappingFlowSettings, BarcodeCountModeListenerEvents, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSessionController, BarcodeCountSettings, BarcodeCountStatus, BarcodeCountStatusItem, BarcodeCountStatusProviderCallback, BarcodeCountStatusResultAbort, BarcodeCountStatusResultError, BarcodeCountStatusResultSuccess, BarcodeCountToolbarSettings, BarcodeCountUiListenerEvents, BarcodeCountViewController, BarcodeCountViewListenerEvents, BarcodeCountViewStyle, BarcodeDefaultsType, BarcodeDefinition, BarcodeDefinitionBuilder, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindListenerEvents, BarcodeFindSession, BarcodeFindSettings, BarcodeFindViewController, BarcodeFindViewEvents, BarcodeFindViewSettings, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeGeneratorController, BarcodeIdentifier, BarcodeInfo, BarcodePick, BarcodePickAction, BarcodePickActionCallback, BarcodePickActionEvents, BarcodePickAsyncMapperProductProvider, BarcodePickAsyncMapperProductProviderEvents, BarcodePickListenerEvents, BarcodePickProduct, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningEvents, BarcodePickScanningSession, BarcodePickSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickStatusIconStyle, BarcodePickViewController, BarcodePickViewEventHandlers, BarcodePickViewEvents, BarcodePickViewHighlightStyleEvents, BarcodePickViewHighlightStyleRequest, BarcodePickViewHighlightStyleResponse, BarcodePickViewHighlightStyleResponseBuilder, BarcodePickViewSettings, BarcodePickViewUiEvents, BarcodeSelection, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionBrushProviderEvents, BarcodeSelectionController, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionListenerController, BarcodeSelectionListenerEvents, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionOverlayController, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionStrategyType, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BarcodeSelectionTypeName, BarcodeSpatialGrid, BaseBarcodeArView, BaseBarcodeBatchAdvancedOverlay, BaseBarcodeCountView, BaseBarcodeFindView, BaseBarcodePickView, BaseSparkScanView, BatterySavingMode, BrushForStateObject, CapturePreset, Checksum, Cluster, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, PrivateBarcodeSelectionStrategy, PrivateBarcodeSelectionType, QrCodeBarcodeGeneratorBuilder, QrCodeErrorCorrectionLevel, Range, Rectangular, RectangularWithIcons, ScanComponentBarcodePreset, ScanComponentTextSemanticType, ScanItemDefinition, ScanItemIdentifier, ScannedBarcode, ScannedComponentIdentifier, ScannedItem, ScannedItemIdentifier, ScannedText, SparkScan, SparkScanBarcodeErrorFeedback, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior, SparkScanScanningModeDefault, SparkScanScanningModeTarget, SparkScanSession, SparkScanSettings, SparkScanToastSettings, SparkScanViewController, SparkScanViewEvents, SparkScanViewSettings, SparkScanViewState, StructuredAppendData, Symbology, SymbologyDescription, SymbologySettings, TargetBarcode, TextDefinition, TextDefinitionBuilder, TextIdentifier, TrackedBarcode, TrackedObject, UpcaBarcodeGeneratorBuilder, ensureBarcodeDefaults, ensureBarcodeDefaultsFor, getBarcodeArDefaults, getBarcodeBatchDefaults, getBarcodeCaptureDefaults, getBarcodeCountDefaults, getBarcodeDefaults, getBarcodeFindDefaults, getBarcodePickDefaults, getBarcodeSelectionDefaults, getSparkScanDefaults, getSymbologySettingsFromBarcodePickDefaults, getSymbologySettingsFromDefaults, loadAllBarcodeDefaults, loadBarcodeArDefaults, loadBarcodeBatchDefaults, loadBarcodeCaptureDefaults, loadBarcodeCountDefaults, loadBarcodeDefaults, loadBarcodeFindDefaults, loadBarcodePickDefaults, loadBarcodeSelectionDefaults, loadSparkScanDefaults, registerBarcodeProxies, setBarcodeDefaultsLoader };
|
|
17220
|
+
export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, BARCODE_PROXY_TYPE_NAMES, Barcode, BarcodeAr, BarcodeArAnnotationLifecycleEvents, BarcodeArAnnotationProviderEvents, BarcodeArAnnotationTrigger, BarcodeArCircleHighlight, BarcodeArCircleHighlightPreset, BarcodeArEvents, BarcodeArFeedback, BarcodeArHighlightLifecycleEvents, BarcodeArHighlightProviderEvents, BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor, BarcodeArInfoAnnotationBodyComponent, BarcodeArInfoAnnotationFooter, BarcodeArInfoAnnotationHeader, BarcodeArInfoAnnotationWidthPreset, BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationButton, BarcodeArRectangleHighlight, BarcodeArResponsiveAnnotation, BarcodeArSession, BarcodeArSessionController, BarcodeArSettings, BarcodeArStatusIconAnnotation, BarcodeArViewController, BarcodeArViewEvents, BarcodeArViewSettings, BarcodeBatch, BarcodeBatchAdvancedOverlayController, BarcodeBatchAdvancedOverlayListenerEvents, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayController, BarcodeBatchBasicOverlayListenerEvents, BarcodeBatchBasicOverlayStyle, BarcodeBatchListenerController, BarcodeBatchListenerEvents, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureListenerController, BarcodeCaptureListenerEvents, BarcodeCaptureOverlay, BarcodeCaptureOverlayController, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountMappingFlowSettings, BarcodeCountModeListenerEvents, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSessionController, BarcodeCountSettings, BarcodeCountStatus, BarcodeCountStatusItem, BarcodeCountStatusProviderCallback, BarcodeCountStatusResultAbort, BarcodeCountStatusResultError, BarcodeCountStatusResultSuccess, BarcodeCountToolbarSettings, BarcodeCountUiListenerEvents, BarcodeCountViewController, BarcodeCountViewListenerEvents, BarcodeCountViewStyle, BarcodeDefaultsType, BarcodeDefinition, BarcodeDefinitionBuilder, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindListenerEvents, BarcodeFindSession, BarcodeFindSettings, BarcodeFindViewController, BarcodeFindViewEvents, BarcodeFindViewSettings, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeGeneratorController, BarcodeIdentifier, BarcodeInfo, BarcodePick, BarcodePickAction, BarcodePickActionCallback, BarcodePickActionEvents, BarcodePickAsyncMapperProductProvider, BarcodePickAsyncMapperProductProviderEvents, BarcodePickListenerEvents, BarcodePickProduct, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningEvents, BarcodePickScanningSession, BarcodePickSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickStatusIconStyle, BarcodePickViewController, BarcodePickViewEventHandlers, BarcodePickViewEvents, BarcodePickViewHighlightStyleCustomView, BarcodePickViewHighlightStyleCustomViewEvents, BarcodePickViewHighlightStyleCustomViewResponse, BarcodePickViewHighlightStyleEvents, BarcodePickViewHighlightStyleRequest, BarcodePickViewHighlightStyleResponse, BarcodePickViewHighlightStyleResponseBuilder, BarcodePickViewSettings, BarcodePickViewUiEvents, BarcodeSelection, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionBrushProviderEvents, BarcodeSelectionController, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionListenerController, BarcodeSelectionListenerEvents, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionOverlayController, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionStrategyType, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BarcodeSelectionTypeName, BarcodeSpatialGrid, BaseBarcodeArView, BaseBarcodeBatchAdvancedOverlay, BaseBarcodeCountView, BaseBarcodeFindView, BaseBarcodePickView, BaseSparkScanView, BatterySavingMode, BrushForStateObject, CapturePreset, Checksum, Cluster, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, Pdf417BarcodeGeneratorBuilder, Pdf417CompactionMode, Pdf417Dimensions, PrivateBarcodeSelectionStrategy, PrivateBarcodeSelectionType, QrCodeBarcodeGeneratorBuilder, QrCodeErrorCorrectionLevel, Range, Rectangular, RectangularWithIcons, ScanComponentBarcodePreset, ScanComponentTextSemanticType, ScanItemDefinition, ScanItemIdentifier, ScannedBarcode, ScannedComponentIdentifier, ScannedItem, ScannedItemIdentifier, ScannedText, SparkScan, SparkScanBarcodeErrorFeedback, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior, SparkScanScanningModeDefault, SparkScanScanningModeTarget, SparkScanSession, SparkScanSettings, SparkScanToastSettings, SparkScanViewController, SparkScanViewEvents, SparkScanViewSettings, SparkScanViewState, StructuredAppendData, Symbology, SymbologyDescription, SymbologySettings, TargetBarcode, TextDefinition, TextDefinitionBuilder, TextIdentifier, TrackedBarcode, TrackedObject, UpcaBarcodeGeneratorBuilder, ensureBarcodeDefaults, ensureBarcodeDefaultsFor, getBarcodeArDefaults, getBarcodeBatchDefaults, getBarcodeCaptureDefaults, getBarcodeCountDefaults, getBarcodeDefaults, getBarcodeFindDefaults, getBarcodePickDefaults, getBarcodeSelectionDefaults, getSparkScanDefaults, getSymbologySettingsFromBarcodePickDefaults, getSymbologySettingsFromDefaults, loadAllBarcodeDefaults, loadBarcodeArDefaults, loadBarcodeBatchDefaults, loadBarcodeCaptureDefaults, loadBarcodeCountDefaults, loadBarcodeDefaults, loadBarcodeFindDefaults, loadBarcodePickDefaults, loadBarcodeSelectionDefaults, loadSparkScanDefaults, registerBarcodeProxies, setBarcodeDefaultsLoader };
|