scandit-capacitor-datacapture-barcode 6.25.0-beta.2 → 6.26.0-beta.1
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 +1 -1
- package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.kt +1 -1
- package/dist/barcode.js +136 -9
- package/dist/barcode.js.map +1 -1
- package/dist/dts/ts/BarcodeCountView.d.ts +7 -1
- package/dist/dts/ts/Capacitor/SparkScanViewProxy.d.ts +1 -0
- package/dist/dts/ts/SparkScanView.d.ts +26 -0
- package/dist/index.js +60 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -17,5 +17,5 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
|
|
18
18
|
s.dependency "Capacitor"
|
|
19
19
|
s.dependency "ScanditCapacitorDatacaptureCore", "= #{version}"
|
|
20
|
-
s.dependency "scandit-datacapture-frameworks-barcode", '= 6.
|
|
20
|
+
s.dependency "scandit-datacapture-frameworks-barcode", '= 6.26.0-beta.1'
|
|
21
21
|
end
|
package/android/build.gradle
CHANGED
package/dist/barcode.js
CHANGED
|
@@ -308,7 +308,7 @@ function parseBarcodeCaptureDefaults(jsonDefaults) {
|
|
|
308
308
|
.fromJSON(jsonDefaults.RecommendedCameraSettings),
|
|
309
309
|
BarcodeCaptureSettings: {
|
|
310
310
|
codeDuplicateFilter: jsonDefaults.BarcodeCaptureSettings.codeDuplicateFilter,
|
|
311
|
-
|
|
311
|
+
batterySaving: jsonDefaults.BarcodeCaptureSettings.batterySaving,
|
|
312
312
|
scanIntention: jsonDefaults.BarcodeCaptureSettings.scanIntention,
|
|
313
313
|
},
|
|
314
314
|
BarcodeCaptureOverlay: {
|
|
@@ -503,6 +503,8 @@ function parseBarcodeCountDefaults(jsonDefaults) {
|
|
|
503
503
|
singleScanButtonAccessibilityHint: viewJsonDefaults.singleScanButtonAccessibilityHint || null,
|
|
504
504
|
singleScanButtonAccessibilityLabel: viewJsonDefaults.singleScanButtonAccessibilityLabel || null,
|
|
505
505
|
singleScanButtonContentDescription: viewJsonDefaults.singleScanButtonContentDescription || null,
|
|
506
|
+
shouldShowTorchControl: viewJsonDefaults.shouldShowTorchControl,
|
|
507
|
+
torchControlPosition: viewJsonDefaults.torchControlPosition,
|
|
506
508
|
}
|
|
507
509
|
};
|
|
508
510
|
return barcodeCountDefaults;
|
|
@@ -655,10 +657,10 @@ function parseSparkScanDefaults(jsonDefaults) {
|
|
|
655
657
|
scanningBehaviorButtonVisible: jsonDefaults.SparkScanView.scanningBehaviorButtonVisible,
|
|
656
658
|
handModeButtonVisible: jsonDefaults.SparkScanView.handModeButtonVisible,
|
|
657
659
|
barcodeCountButtonVisible: jsonDefaults.SparkScanView.barcodeCountButtonVisible,
|
|
658
|
-
|
|
660
|
+
barcodeFindButtonVisible: jsonDefaults.SparkScanView.barcodeFindButtonVisible,
|
|
659
661
|
targetModeButtonVisible: jsonDefaults.SparkScanView.targetModeButtonVisible,
|
|
660
|
-
soundModeButtonVisible:
|
|
661
|
-
hapticModeButtonVisible:
|
|
662
|
+
soundModeButtonVisible: false, // Deprecated, will be removed in the next version
|
|
663
|
+
hapticModeButtonVisible: false, // Deprecated, will be removed in the next version
|
|
662
664
|
previewSizeControlVisible: jsonDefaults.SparkScanView.previewSizeControlVisible,
|
|
663
665
|
stopCapturingText: jsonDefaults.SparkScanView.stopCapturingText || null,
|
|
664
666
|
startCapturingText: jsonDefaults.SparkScanView.stopCapturingText || null,
|
|
@@ -794,7 +796,7 @@ class StructuredAppendData {
|
|
|
794
796
|
}
|
|
795
797
|
}
|
|
796
798
|
|
|
797
|
-
class Barcode {
|
|
799
|
+
class Barcode extends DefaultSerializeable {
|
|
798
800
|
get symbology() { return this._symbology; }
|
|
799
801
|
get data() { return this._data; }
|
|
800
802
|
get rawData() { return this._rawData; }
|
|
@@ -831,6 +833,48 @@ class Barcode {
|
|
|
831
833
|
return barcode;
|
|
832
834
|
}
|
|
833
835
|
}
|
|
836
|
+
__decorate([
|
|
837
|
+
nameForSerialization('symbology')
|
|
838
|
+
], Barcode.prototype, "_symbology", void 0);
|
|
839
|
+
__decorate([
|
|
840
|
+
nameForSerialization('data')
|
|
841
|
+
], Barcode.prototype, "_data", void 0);
|
|
842
|
+
__decorate([
|
|
843
|
+
nameForSerialization('rawData')
|
|
844
|
+
], Barcode.prototype, "_rawData", void 0);
|
|
845
|
+
__decorate([
|
|
846
|
+
nameForSerialization('compositeData')
|
|
847
|
+
], Barcode.prototype, "_compositeData", void 0);
|
|
848
|
+
__decorate([
|
|
849
|
+
nameForSerialization('compositeRawData')
|
|
850
|
+
], Barcode.prototype, "_compositeRawData", void 0);
|
|
851
|
+
__decorate([
|
|
852
|
+
nameForSerialization('addOnData')
|
|
853
|
+
], Barcode.prototype, "_addOnData", void 0);
|
|
854
|
+
__decorate([
|
|
855
|
+
nameForSerialization('encodingRanges')
|
|
856
|
+
], Barcode.prototype, "_encodingRanges", void 0);
|
|
857
|
+
__decorate([
|
|
858
|
+
nameForSerialization('location')
|
|
859
|
+
], Barcode.prototype, "_location", void 0);
|
|
860
|
+
__decorate([
|
|
861
|
+
nameForSerialization('isGS1DataCarrier')
|
|
862
|
+
], Barcode.prototype, "_isGS1DataCarrier", void 0);
|
|
863
|
+
__decorate([
|
|
864
|
+
nameForSerialization('compositeFlag')
|
|
865
|
+
], Barcode.prototype, "_compositeFlag", void 0);
|
|
866
|
+
__decorate([
|
|
867
|
+
nameForSerialization('isColorInverted')
|
|
868
|
+
], Barcode.prototype, "_isColorInverted", void 0);
|
|
869
|
+
__decorate([
|
|
870
|
+
nameForSerialization('symbolCount')
|
|
871
|
+
], Barcode.prototype, "_symbolCount", void 0);
|
|
872
|
+
__decorate([
|
|
873
|
+
nameForSerialization('frameID')
|
|
874
|
+
], Barcode.prototype, "_frameID", void 0);
|
|
875
|
+
__decorate([
|
|
876
|
+
nameForSerialization('structuredAppendData')
|
|
877
|
+
], Barcode.prototype, "_structuredAppendData", void 0);
|
|
834
878
|
|
|
835
879
|
var BatterySavingMode;
|
|
836
880
|
(function (BatterySavingMode) {
|
|
@@ -988,9 +1032,17 @@ __decorate([
|
|
|
988
1032
|
], BarcodeSpatialGrid.prototype, "_grid", void 0);
|
|
989
1033
|
|
|
990
1034
|
class BarcodeCaptureSession {
|
|
1035
|
+
/**
|
|
1036
|
+
* @deprecated Prefer use of the property `newlyRecognizedBarcode` instead.
|
|
1037
|
+
*/
|
|
991
1038
|
get newlyRecognizedBarcodes() {
|
|
1039
|
+
// tslint:disable-next-line:no-console
|
|
1040
|
+
console.warn('The newlyRecognizedBarcodes has been deprecated. Prefer use of the property `newlyRecognizedBarcode` instead.');
|
|
992
1041
|
return this._newlyRecognizedBarcodes;
|
|
993
1042
|
}
|
|
1043
|
+
get newlyRecognizedBarcode() {
|
|
1044
|
+
return this._newlyRecognizedBarcode;
|
|
1045
|
+
}
|
|
994
1046
|
get newlyLocalizedBarcodes() {
|
|
995
1047
|
return this._newlyLocalizedBarcodes;
|
|
996
1048
|
}
|
|
@@ -999,6 +1051,9 @@ class BarcodeCaptureSession {
|
|
|
999
1051
|
}
|
|
1000
1052
|
static fromJSON(json) {
|
|
1001
1053
|
const session = new BarcodeCaptureSession();
|
|
1054
|
+
session._newlyRecognizedBarcode = json.newlyRecognizedBarcode != null ?
|
|
1055
|
+
Barcode.fromJSON(json.newlyRecognizedBarcode) :
|
|
1056
|
+
null;
|
|
1002
1057
|
session._newlyRecognizedBarcodes = json.newlyRecognizedBarcodes
|
|
1003
1058
|
.map(Barcode.fromJSON);
|
|
1004
1059
|
session._newlyLocalizedBarcodes = json.newlyLocalizedBarcodes
|
|
@@ -1293,6 +1348,9 @@ __decorate([
|
|
|
1293
1348
|
ignoreFromSerialization
|
|
1294
1349
|
], BarcodeCaptureOverlay, "barcodeCaptureDefaults", null);
|
|
1295
1350
|
|
|
1351
|
+
/**
|
|
1352
|
+
* @deprecated The BarcodeCaptureOverlayStyle is deprecated.
|
|
1353
|
+
*/
|
|
1296
1354
|
var BarcodeCaptureOverlayStyle;
|
|
1297
1355
|
(function (BarcodeCaptureOverlayStyle) {
|
|
1298
1356
|
BarcodeCaptureOverlayStyle["Frame"] = "frame";
|
|
@@ -1324,7 +1382,11 @@ class BarcodeCaptureSettings extends DefaultSerializeable {
|
|
|
1324
1382
|
this.symbologies = {};
|
|
1325
1383
|
this._codeDuplicateFilter = BarcodeCaptureSettings.barcodeCaptureDefaults.BarcodeCaptureSettings.codeDuplicateFilter;
|
|
1326
1384
|
this._arucoDictionary = null;
|
|
1327
|
-
|
|
1385
|
+
/**
|
|
1386
|
+
* @deprecated replaced with batterySaving
|
|
1387
|
+
*/
|
|
1388
|
+
this.batterySavingMode = BarcodeCaptureSettings.barcodeCaptureDefaults.BarcodeCaptureSettings.batterySaving;
|
|
1389
|
+
this.batterySaving = BarcodeCaptureSettings.barcodeCaptureDefaults.BarcodeCaptureSettings.batterySaving;
|
|
1328
1390
|
this.scanIntention = BarcodeCaptureSettings.barcodeCaptureDefaults.BarcodeCaptureSettings.scanIntention;
|
|
1329
1391
|
}
|
|
1330
1392
|
settingsForSymbology(symbology) {
|
|
@@ -2638,9 +2700,15 @@ var BarcodeTrackingBasicOverlayStyle;
|
|
|
2638
2700
|
(function (BarcodeTrackingBasicOverlayStyle) {
|
|
2639
2701
|
BarcodeTrackingBasicOverlayStyle["Frame"] = "frame";
|
|
2640
2702
|
BarcodeTrackingBasicOverlayStyle["Dot"] = "dot";
|
|
2703
|
+
/**
|
|
2704
|
+
* @deprecated The legacy style of the BarcodeTrackingBasicOverlay is deprecated.
|
|
2705
|
+
*/
|
|
2641
2706
|
BarcodeTrackingBasicOverlayStyle["Legacy"] = "legacy";
|
|
2642
2707
|
})(BarcodeTrackingBasicOverlayStyle || (BarcodeTrackingBasicOverlayStyle = {}));
|
|
2643
2708
|
|
|
2709
|
+
/**
|
|
2710
|
+
* @deprecated Setting a scenario is no longer recommended, use the BarcodeTrackingSettings empty constructor instead.
|
|
2711
|
+
*/
|
|
2644
2712
|
var BarcodeTrackingScenario;
|
|
2645
2713
|
(function (BarcodeTrackingScenario) {
|
|
2646
2714
|
BarcodeTrackingScenario["A"] = "A";
|
|
@@ -3096,7 +3164,11 @@ class BarcodeTrackingSettings extends DefaultSerializeable {
|
|
|
3096
3164
|
return Object.keys(this.symbologies)
|
|
3097
3165
|
.filter(symbology => this.symbologies[symbology].isEnabled);
|
|
3098
3166
|
}
|
|
3167
|
+
/**
|
|
3168
|
+
* @deprecated Setting a scenario is no longer recommended, use the BarcodeTrackingSettings empty constructor instead.
|
|
3169
|
+
*/
|
|
3099
3170
|
static forScenario(scenario) {
|
|
3171
|
+
console.warn('Setting a scenario is no longer recommended, use the BarcodeTrackingSettings empty constructor instead.');
|
|
3100
3172
|
const settings = new BarcodeTrackingSettings();
|
|
3101
3173
|
settings.scenario = scenario;
|
|
3102
3174
|
return settings;
|
|
@@ -3226,11 +3298,22 @@ __decorate([
|
|
|
3226
3298
|
class SparkScanSession {
|
|
3227
3299
|
static fromJSON(json) {
|
|
3228
3300
|
const session = new SparkScanSession();
|
|
3301
|
+
session._newlyRecognizedBarcode = json.newlyRecognizedBarcode != null ?
|
|
3302
|
+
Barcode.fromJSON(json.newlyRecognizedBarcode) :
|
|
3303
|
+
null;
|
|
3229
3304
|
session._newlyRecognizedBarcodes = json.newlyRecognizedBarcodes.map(Barcode.fromJSON);
|
|
3230
3305
|
session._frameSequenceID = json.frameSequenceId;
|
|
3231
3306
|
return session;
|
|
3232
3307
|
}
|
|
3308
|
+
get newlyRecognizedBarcode() {
|
|
3309
|
+
return this._newlyRecognizedBarcode;
|
|
3310
|
+
}
|
|
3311
|
+
/**
|
|
3312
|
+
* @deprecated Prefer use of the property `newlyRecognizedBarcode` instead.
|
|
3313
|
+
*/
|
|
3233
3314
|
get newlyRecognizedBarcodes() {
|
|
3315
|
+
// tslint:disable-next-line:no-console
|
|
3316
|
+
console.warn('The newlyRecognizedBarcodes has been deprecated. Prefer use of the property `newlyRecognizedBarcode` instead.');
|
|
3234
3317
|
return this._newlyRecognizedBarcodes;
|
|
3235
3318
|
}
|
|
3236
3319
|
get frameSequenceID() {
|
|
@@ -3851,6 +3934,7 @@ __decorate([
|
|
|
3851
3934
|
var SparkScanViewEvents;
|
|
3852
3935
|
(function (SparkScanViewEvents) {
|
|
3853
3936
|
SparkScanViewEvents["fastFindButtonTapped"] = "SparkScanViewUiListener.fastFindButtonTapped";
|
|
3937
|
+
SparkScanViewEvents["barcodeFindButtonTapped"] = "SparkScanViewUiListener.barcodeFindButtonTapped";
|
|
3854
3938
|
SparkScanViewEvents["barcodeCountButtonTapped"] = "SparkScanViewUiListener.barcodeCountButtonTapped";
|
|
3855
3939
|
})(SparkScanViewEvents || (SparkScanViewEvents = {}));
|
|
3856
3940
|
var SparkScanFeedbackDelegateEvents;
|
|
@@ -3899,6 +3983,10 @@ class SparkScanViewController extends BaseController {
|
|
|
3899
3983
|
var _a, _b;
|
|
3900
3984
|
(_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapFastFindButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view);
|
|
3901
3985
|
});
|
|
3986
|
+
this.eventEmitter.on(SparkScanViewEvents.barcodeFindButtonTapped, () => {
|
|
3987
|
+
var _a, _b;
|
|
3988
|
+
(_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapBarcodeFindButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view);
|
|
3989
|
+
});
|
|
3902
3990
|
}
|
|
3903
3991
|
unsubscribeListeners() {
|
|
3904
3992
|
this._proxy.unregisterSparkScanViewListenerEvents();
|
|
@@ -3982,7 +4070,8 @@ class BaseSparkScanView {
|
|
|
3982
4070
|
this._scanningBehaviorButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.scanningBehaviorButtonVisible;
|
|
3983
4071
|
this._handModeButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.handModeButtonVisible;
|
|
3984
4072
|
this._barcodeCountButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.barcodeCountButtonVisible;
|
|
3985
|
-
this._fastFindButtonVisible =
|
|
4073
|
+
this._fastFindButtonVisible = false;
|
|
4074
|
+
this._barcodeFindButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.barcodeFindButtonVisible;
|
|
3986
4075
|
this._targetModeButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.targetModeButtonVisible;
|
|
3987
4076
|
this._soundModeButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.soundModeButtonVisible;
|
|
3988
4077
|
this._hapticModeButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.hapticModeButtonVisible;
|
|
@@ -4017,10 +4106,18 @@ class BaseSparkScanView {
|
|
|
4017
4106
|
this._previewSizeControlVisible = newValue;
|
|
4018
4107
|
this.update();
|
|
4019
4108
|
}
|
|
4109
|
+
/**
|
|
4110
|
+
* @deprecated This property is deprecated as it's no longer needed.
|
|
4111
|
+
*/
|
|
4020
4112
|
get shouldShowScanAreaGuides() {
|
|
4113
|
+
console.warn('This property is deprecated as it\'s no longer needed.');
|
|
4021
4114
|
return this._shouldShowScanAreaGuides;
|
|
4022
4115
|
}
|
|
4116
|
+
/**
|
|
4117
|
+
* @deprecated This property is deprecated as it's no longer needed.
|
|
4118
|
+
*/
|
|
4023
4119
|
set shouldShowScanAreaGuides(newValue) {
|
|
4120
|
+
console.warn('This property is deprecated as it\'s no longer needed.');
|
|
4024
4121
|
this._shouldShowScanAreaGuides = newValue;
|
|
4025
4122
|
this.update();
|
|
4026
4123
|
}
|
|
@@ -4052,11 +4149,25 @@ class BaseSparkScanView {
|
|
|
4052
4149
|
this._barcodeCountButtonVisible = newValue;
|
|
4053
4150
|
this.update();
|
|
4054
4151
|
}
|
|
4152
|
+
/**
|
|
4153
|
+
* @deprecated This method was renamed. Use onBarcodeFindButtonTappedIn instead.
|
|
4154
|
+
*/
|
|
4055
4155
|
get fastFindButtonVisible() {
|
|
4156
|
+
console.warn('This property was renamed. Use the property `barcodeFindButtonVisible` instead.');
|
|
4056
4157
|
return this._fastFindButtonVisible;
|
|
4057
4158
|
}
|
|
4159
|
+
/**
|
|
4160
|
+
* @deprecated This method was renamed. Use onBarcodeFindButtonTappedIn instead.
|
|
4161
|
+
*/
|
|
4058
4162
|
set fastFindButtonVisible(newValue) {
|
|
4059
|
-
|
|
4163
|
+
// NOOP
|
|
4164
|
+
console.warn('This property was renamed. Use the property `barcodeFindButtonVisible` instead.');
|
|
4165
|
+
}
|
|
4166
|
+
get barcodeFindButtonVisible() {
|
|
4167
|
+
return this._barcodeFindButtonVisible;
|
|
4168
|
+
}
|
|
4169
|
+
set barcodeFindButtonVisible(newValue) {
|
|
4170
|
+
this._barcodeFindButtonVisible = newValue;
|
|
4060
4171
|
this.update();
|
|
4061
4172
|
}
|
|
4062
4173
|
get targetModeButtonVisible() {
|
|
@@ -4066,17 +4177,33 @@ class BaseSparkScanView {
|
|
|
4066
4177
|
this._targetModeButtonVisible = newValue;
|
|
4067
4178
|
this.update();
|
|
4068
4179
|
}
|
|
4180
|
+
/**
|
|
4181
|
+
* @deprecated This property is deprecated as sound mode button will be removed in the future.
|
|
4182
|
+
*/
|
|
4069
4183
|
get soundModeButtonVisible() {
|
|
4184
|
+
console.warn('This property is deprecated as sound mode button will be removed in the future.');
|
|
4070
4185
|
return this._soundModeButtonVisible;
|
|
4071
4186
|
}
|
|
4187
|
+
/**
|
|
4188
|
+
* @deprecated This property is deprecated as sound mode button will be removed in the future.
|
|
4189
|
+
*/
|
|
4072
4190
|
set soundModeButtonVisible(newValue) {
|
|
4191
|
+
console.warn('This property is deprecated as sound mode button will be removed in the future.');
|
|
4073
4192
|
this._soundModeButtonVisible = newValue;
|
|
4074
4193
|
this.update();
|
|
4075
4194
|
}
|
|
4195
|
+
/**
|
|
4196
|
+
* @deprecated This property is deprecated as haptic mode button will be removed in the future.
|
|
4197
|
+
*/
|
|
4076
4198
|
get hapticModeButtonVisible() {
|
|
4199
|
+
console.warn('This property is deprecated as haptic mode button will be removed in the future.');
|
|
4077
4200
|
return this._hapticModeButtonVisible;
|
|
4078
4201
|
}
|
|
4202
|
+
/**
|
|
4203
|
+
* @deprecated This property is deprecated as haptic mode button will be removed in the future.
|
|
4204
|
+
*/
|
|
4079
4205
|
set hapticModeButtonVisible(newValue) {
|
|
4206
|
+
console.warn('This property is deprecated as haptic mode button will be removed in the future.');
|
|
4080
4207
|
this._hapticModeButtonVisible = newValue;
|
|
4081
4208
|
this.update();
|
|
4082
4209
|
}
|
|
@@ -4237,7 +4364,7 @@ class BaseSparkScanView {
|
|
|
4237
4364
|
scanningBehaviorButtonVisible: this.scanningBehaviorButtonVisible,
|
|
4238
4365
|
handModeButtonVisible: this.handModeButtonVisible,
|
|
4239
4366
|
barcodeCountButtonVisible: this.barcodeCountButtonVisible,
|
|
4240
|
-
|
|
4367
|
+
barcodeFindButtonVisible: this.barcodeFindButtonVisible,
|
|
4241
4368
|
targetModeButtonVisible: this.targetModeButtonVisible,
|
|
4242
4369
|
soundModeButtonVisible: this.soundModeButtonVisible,
|
|
4243
4370
|
hapticModeButtonVisible: this.hapticModeButtonVisible,
|