scandit-capacitor-datacapture-barcode 6.25.0 → 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.
@@ -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.25.0'
20
+ s.dependency "scandit-datacapture-frameworks-barcode", '= 6.26.0-beta.1'
21
21
  end
@@ -56,7 +56,7 @@ repositories {
56
56
  }
57
57
 
58
58
  dependencies {
59
- def sdk_version = "6.25.0"
59
+ def sdk_version = "6.26.0-beta.1"
60
60
 
61
61
  implementation fileTree(dir: 'libs', include: ['*.jar'])
62
62
  implementation fileTree(dir: 'library', include: ['*.aar'])
@@ -621,7 +621,7 @@ class ScanditBarcodeNative :
621
621
  return
622
622
  }
623
623
 
624
- barcodeCountModule.updateBarcodeCountView(call.data["BarcodeCountView"].toString())
624
+ barcodeCountModule.updateBarcodeCountView(call.data["View"].toString())
625
625
  call.resolve()
626
626
  }
627
627
 
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
- batterySavingMode: jsonDefaults.BarcodeCaptureSettings.batterySavingMode,
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
- fastFindButtonVisible: jsonDefaults.SparkScanView.fastFindButtonVisible,
660
+ barcodeFindButtonVisible: jsonDefaults.SparkScanView.barcodeFindButtonVisible,
659
661
  targetModeButtonVisible: jsonDefaults.SparkScanView.targetModeButtonVisible,
660
- soundModeButtonVisible: jsonDefaults.SparkScanView.soundModeButtonVisible,
661
- hapticModeButtonVisible: jsonDefaults.SparkScanView.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,
@@ -1030,9 +1032,17 @@ __decorate([
1030
1032
  ], BarcodeSpatialGrid.prototype, "_grid", void 0);
1031
1033
 
1032
1034
  class BarcodeCaptureSession {
1035
+ /**
1036
+ * @deprecated Prefer use of the property `newlyRecognizedBarcode` instead.
1037
+ */
1033
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.');
1034
1041
  return this._newlyRecognizedBarcodes;
1035
1042
  }
1043
+ get newlyRecognizedBarcode() {
1044
+ return this._newlyRecognizedBarcode;
1045
+ }
1036
1046
  get newlyLocalizedBarcodes() {
1037
1047
  return this._newlyLocalizedBarcodes;
1038
1048
  }
@@ -1041,6 +1051,9 @@ class BarcodeCaptureSession {
1041
1051
  }
1042
1052
  static fromJSON(json) {
1043
1053
  const session = new BarcodeCaptureSession();
1054
+ session._newlyRecognizedBarcode = json.newlyRecognizedBarcode != null ?
1055
+ Barcode.fromJSON(json.newlyRecognizedBarcode) :
1056
+ null;
1044
1057
  session._newlyRecognizedBarcodes = json.newlyRecognizedBarcodes
1045
1058
  .map(Barcode.fromJSON);
1046
1059
  session._newlyLocalizedBarcodes = json.newlyLocalizedBarcodes
@@ -1335,6 +1348,9 @@ __decorate([
1335
1348
  ignoreFromSerialization
1336
1349
  ], BarcodeCaptureOverlay, "barcodeCaptureDefaults", null);
1337
1350
 
1351
+ /**
1352
+ * @deprecated The BarcodeCaptureOverlayStyle is deprecated.
1353
+ */
1338
1354
  var BarcodeCaptureOverlayStyle;
1339
1355
  (function (BarcodeCaptureOverlayStyle) {
1340
1356
  BarcodeCaptureOverlayStyle["Frame"] = "frame";
@@ -1366,7 +1382,11 @@ class BarcodeCaptureSettings extends DefaultSerializeable {
1366
1382
  this.symbologies = {};
1367
1383
  this._codeDuplicateFilter = BarcodeCaptureSettings.barcodeCaptureDefaults.BarcodeCaptureSettings.codeDuplicateFilter;
1368
1384
  this._arucoDictionary = null;
1369
- this.batterySavingMode = BarcodeCaptureSettings.barcodeCaptureDefaults.BarcodeCaptureSettings.batterySavingMode;
1385
+ /**
1386
+ * @deprecated replaced with batterySaving
1387
+ */
1388
+ this.batterySavingMode = BarcodeCaptureSettings.barcodeCaptureDefaults.BarcodeCaptureSettings.batterySaving;
1389
+ this.batterySaving = BarcodeCaptureSettings.barcodeCaptureDefaults.BarcodeCaptureSettings.batterySaving;
1370
1390
  this.scanIntention = BarcodeCaptureSettings.barcodeCaptureDefaults.BarcodeCaptureSettings.scanIntention;
1371
1391
  }
1372
1392
  settingsForSymbology(symbology) {
@@ -2680,9 +2700,15 @@ var BarcodeTrackingBasicOverlayStyle;
2680
2700
  (function (BarcodeTrackingBasicOverlayStyle) {
2681
2701
  BarcodeTrackingBasicOverlayStyle["Frame"] = "frame";
2682
2702
  BarcodeTrackingBasicOverlayStyle["Dot"] = "dot";
2703
+ /**
2704
+ * @deprecated The legacy style of the BarcodeTrackingBasicOverlay is deprecated.
2705
+ */
2683
2706
  BarcodeTrackingBasicOverlayStyle["Legacy"] = "legacy";
2684
2707
  })(BarcodeTrackingBasicOverlayStyle || (BarcodeTrackingBasicOverlayStyle = {}));
2685
2708
 
2709
+ /**
2710
+ * @deprecated Setting a scenario is no longer recommended, use the BarcodeTrackingSettings empty constructor instead.
2711
+ */
2686
2712
  var BarcodeTrackingScenario;
2687
2713
  (function (BarcodeTrackingScenario) {
2688
2714
  BarcodeTrackingScenario["A"] = "A";
@@ -3138,7 +3164,11 @@ class BarcodeTrackingSettings extends DefaultSerializeable {
3138
3164
  return Object.keys(this.symbologies)
3139
3165
  .filter(symbology => this.symbologies[symbology].isEnabled);
3140
3166
  }
3167
+ /**
3168
+ * @deprecated Setting a scenario is no longer recommended, use the BarcodeTrackingSettings empty constructor instead.
3169
+ */
3141
3170
  static forScenario(scenario) {
3171
+ console.warn('Setting a scenario is no longer recommended, use the BarcodeTrackingSettings empty constructor instead.');
3142
3172
  const settings = new BarcodeTrackingSettings();
3143
3173
  settings.scenario = scenario;
3144
3174
  return settings;
@@ -3268,11 +3298,22 @@ __decorate([
3268
3298
  class SparkScanSession {
3269
3299
  static fromJSON(json) {
3270
3300
  const session = new SparkScanSession();
3301
+ session._newlyRecognizedBarcode = json.newlyRecognizedBarcode != null ?
3302
+ Barcode.fromJSON(json.newlyRecognizedBarcode) :
3303
+ null;
3271
3304
  session._newlyRecognizedBarcodes = json.newlyRecognizedBarcodes.map(Barcode.fromJSON);
3272
3305
  session._frameSequenceID = json.frameSequenceId;
3273
3306
  return session;
3274
3307
  }
3308
+ get newlyRecognizedBarcode() {
3309
+ return this._newlyRecognizedBarcode;
3310
+ }
3311
+ /**
3312
+ * @deprecated Prefer use of the property `newlyRecognizedBarcode` instead.
3313
+ */
3275
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.');
3276
3317
  return this._newlyRecognizedBarcodes;
3277
3318
  }
3278
3319
  get frameSequenceID() {
@@ -3893,6 +3934,7 @@ __decorate([
3893
3934
  var SparkScanViewEvents;
3894
3935
  (function (SparkScanViewEvents) {
3895
3936
  SparkScanViewEvents["fastFindButtonTapped"] = "SparkScanViewUiListener.fastFindButtonTapped";
3937
+ SparkScanViewEvents["barcodeFindButtonTapped"] = "SparkScanViewUiListener.barcodeFindButtonTapped";
3896
3938
  SparkScanViewEvents["barcodeCountButtonTapped"] = "SparkScanViewUiListener.barcodeCountButtonTapped";
3897
3939
  })(SparkScanViewEvents || (SparkScanViewEvents = {}));
3898
3940
  var SparkScanFeedbackDelegateEvents;
@@ -3941,6 +3983,10 @@ class SparkScanViewController extends BaseController {
3941
3983
  var _a, _b;
3942
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);
3943
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
+ });
3944
3990
  }
3945
3991
  unsubscribeListeners() {
3946
3992
  this._proxy.unregisterSparkScanViewListenerEvents();
@@ -4024,7 +4070,8 @@ class BaseSparkScanView {
4024
4070
  this._scanningBehaviorButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.scanningBehaviorButtonVisible;
4025
4071
  this._handModeButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.handModeButtonVisible;
4026
4072
  this._barcodeCountButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.barcodeCountButtonVisible;
4027
- this._fastFindButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.fastFindButtonVisible;
4073
+ this._fastFindButtonVisible = false;
4074
+ this._barcodeFindButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.barcodeFindButtonVisible;
4028
4075
  this._targetModeButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.targetModeButtonVisible;
4029
4076
  this._soundModeButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.soundModeButtonVisible;
4030
4077
  this._hapticModeButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.hapticModeButtonVisible;
@@ -4059,10 +4106,18 @@ class BaseSparkScanView {
4059
4106
  this._previewSizeControlVisible = newValue;
4060
4107
  this.update();
4061
4108
  }
4109
+ /**
4110
+ * @deprecated This property is deprecated as it's no longer needed.
4111
+ */
4062
4112
  get shouldShowScanAreaGuides() {
4113
+ console.warn('This property is deprecated as it\'s no longer needed.');
4063
4114
  return this._shouldShowScanAreaGuides;
4064
4115
  }
4116
+ /**
4117
+ * @deprecated This property is deprecated as it's no longer needed.
4118
+ */
4065
4119
  set shouldShowScanAreaGuides(newValue) {
4120
+ console.warn('This property is deprecated as it\'s no longer needed.');
4066
4121
  this._shouldShowScanAreaGuides = newValue;
4067
4122
  this.update();
4068
4123
  }
@@ -4094,11 +4149,25 @@ class BaseSparkScanView {
4094
4149
  this._barcodeCountButtonVisible = newValue;
4095
4150
  this.update();
4096
4151
  }
4152
+ /**
4153
+ * @deprecated This method was renamed. Use onBarcodeFindButtonTappedIn instead.
4154
+ */
4097
4155
  get fastFindButtonVisible() {
4156
+ console.warn('This property was renamed. Use the property `barcodeFindButtonVisible` instead.');
4098
4157
  return this._fastFindButtonVisible;
4099
4158
  }
4159
+ /**
4160
+ * @deprecated This method was renamed. Use onBarcodeFindButtonTappedIn instead.
4161
+ */
4100
4162
  set fastFindButtonVisible(newValue) {
4101
- this._fastFindButtonVisible = newValue;
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;
4102
4171
  this.update();
4103
4172
  }
4104
4173
  get targetModeButtonVisible() {
@@ -4108,17 +4177,33 @@ class BaseSparkScanView {
4108
4177
  this._targetModeButtonVisible = newValue;
4109
4178
  this.update();
4110
4179
  }
4180
+ /**
4181
+ * @deprecated This property is deprecated as sound mode button will be removed in the future.
4182
+ */
4111
4183
  get soundModeButtonVisible() {
4184
+ console.warn('This property is deprecated as sound mode button will be removed in the future.');
4112
4185
  return this._soundModeButtonVisible;
4113
4186
  }
4187
+ /**
4188
+ * @deprecated This property is deprecated as sound mode button will be removed in the future.
4189
+ */
4114
4190
  set soundModeButtonVisible(newValue) {
4191
+ console.warn('This property is deprecated as sound mode button will be removed in the future.');
4115
4192
  this._soundModeButtonVisible = newValue;
4116
4193
  this.update();
4117
4194
  }
4195
+ /**
4196
+ * @deprecated This property is deprecated as haptic mode button will be removed in the future.
4197
+ */
4118
4198
  get hapticModeButtonVisible() {
4199
+ console.warn('This property is deprecated as haptic mode button will be removed in the future.');
4119
4200
  return this._hapticModeButtonVisible;
4120
4201
  }
4202
+ /**
4203
+ * @deprecated This property is deprecated as haptic mode button will be removed in the future.
4204
+ */
4121
4205
  set hapticModeButtonVisible(newValue) {
4206
+ console.warn('This property is deprecated as haptic mode button will be removed in the future.');
4122
4207
  this._hapticModeButtonVisible = newValue;
4123
4208
  this.update();
4124
4209
  }
@@ -4279,7 +4364,7 @@ class BaseSparkScanView {
4279
4364
  scanningBehaviorButtonVisible: this.scanningBehaviorButtonVisible,
4280
4365
  handModeButtonVisible: this.handModeButtonVisible,
4281
4366
  barcodeCountButtonVisible: this.barcodeCountButtonVisible,
4282
- fastFindButtonVisible: this.fastFindButtonVisible,
4367
+ barcodeFindButtonVisible: this.barcodeFindButtonVisible,
4283
4368
  targetModeButtonVisible: this.targetModeButtonVisible,
4284
4369
  soundModeButtonVisible: this.soundModeButtonVisible,
4285
4370
  hapticModeButtonVisible: this.hapticModeButtonVisible,