scandit-capacitor-datacapture-barcode 7.1.1 → 7.2.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/README.md +3 -0
- package/ScanditCapacitorDatacaptureBarcode.podspec +1 -1
- package/android/build.gradle +36 -3
- package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.kt +81 -86
- package/dist/barcode.js +749 -895
- package/dist/barcode.js.map +1 -1
- package/dist/dts/definitions.d.ts +1 -103
- package/dist/dts/ts/Capacitor/BarcodeCountViewProxy.d.ts +5 -36
- package/dist/dts/ts/Capacitor/BarcodeFindViewProxy.d.ts +0 -2
- package/dist/dts/ts/Capacitor/Capacitor.d.ts +0 -9
- package/dist/dts/ts/Capacitor/SparkScanViewProxy.d.ts +1 -1
- package/dist/dts/web.d.ts +1 -2
- package/dist/index.js +30 -456
- package/dist/index.js.map +1 -1
- package/ios/Plugin/Plugin.m +19 -21
- package/ios/Plugin/ScanditBarcodeCapture.swift +169 -155
- package/package.json +11 -7
- package/dist/dts/ts/Capacitor/BarcodeCaptureListenerProxy.d.ts +0 -21
- package/dist/dts/ts/Capacitor/BarcodeCountListenerProxy.d.ts +0 -21
- package/dist/dts/ts/Capacitor/BarcodeCountSessionProxy.d.ts +0 -7
- package/dist/dts/ts/Capacitor/BarcodeSelectionListenerProxy.d.ts +0 -17
- package/dist/dts/ts/Capacitor/BarcodeSelectionOverlayProxy.d.ts +0 -16
- package/dist/dts/ts/Capacitor/BarcodeSelectionProxy.d.ts +0 -14
package/dist/barcode.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nameForSerialization, serializationDefault, NoViewfinder, NoneLocationSelection, DefaultSerializeable, ignoreFromSerialization, FactoryMaker, Feedback, Quadrilateral,
|
|
1
|
+
import { nameForSerialization, serializationDefault, NoViewfinder, NoneLocationSelection, DefaultSerializeable, ignoreFromSerialization, FactoryMaker, Feedback, Quadrilateral, BaseController, BaseNewController, Brush, Observable, TextAlignment, FontFamily, EventDataParser, AimerViewfinder, Anchor, PointWithUnit, CameraSettings, Color, ScanditIcon, CameraController, DataCaptureContextFeatures } from 'scandit-capacitor-datacapture-core/dist/core';
|
|
2
2
|
|
|
3
3
|
var Symbology;
|
|
4
4
|
(function (Symbology) {
|
|
@@ -99,13 +99,13 @@ class Range extends DefaultSerializeable {
|
|
|
99
99
|
}
|
|
100
100
|
__decorate([
|
|
101
101
|
nameForSerialization('minimum')
|
|
102
|
-
], Range.prototype, "_minimum",
|
|
102
|
+
], Range.prototype, "_minimum", undefined);
|
|
103
103
|
__decorate([
|
|
104
104
|
nameForSerialization('maximum')
|
|
105
|
-
], Range.prototype, "_maximum",
|
|
105
|
+
], Range.prototype, "_maximum", undefined);
|
|
106
106
|
__decorate([
|
|
107
107
|
nameForSerialization('step')
|
|
108
|
-
], Range.prototype, "_step",
|
|
108
|
+
], Range.prototype, "_step", undefined);
|
|
109
109
|
|
|
110
110
|
class SymbologyDescription {
|
|
111
111
|
static get all() {
|
|
@@ -195,13 +195,13 @@ class SymbologySettings extends DefaultSerializeable {
|
|
|
195
195
|
}
|
|
196
196
|
__decorate([
|
|
197
197
|
ignoreFromSerialization
|
|
198
|
-
], SymbologySettings.prototype, "_symbology",
|
|
198
|
+
], SymbologySettings.prototype, "_symbology", undefined);
|
|
199
199
|
__decorate([
|
|
200
200
|
nameForSerialization('enabled')
|
|
201
|
-
], SymbologySettings.prototype, "isEnabled",
|
|
201
|
+
], SymbologySettings.prototype, "isEnabled", undefined);
|
|
202
202
|
__decorate([
|
|
203
203
|
nameForSerialization('colorInvertedEnabled')
|
|
204
|
-
], SymbologySettings.prototype, "isColorInvertedEnabled",
|
|
204
|
+
], SymbologySettings.prototype, "isColorInvertedEnabled", undefined);
|
|
205
205
|
|
|
206
206
|
class Ean13UpcaClassification {
|
|
207
207
|
static isUpca(barcode) {
|
|
@@ -209,14 +209,14 @@ class Ean13UpcaClassification {
|
|
|
209
209
|
if (barcode.symbology !== Symbology.EAN13UPCA) {
|
|
210
210
|
return false;
|
|
211
211
|
}
|
|
212
|
-
return ((_a = barcode.data) === null || _a ===
|
|
212
|
+
return ((_a = barcode.data) === null || _a === undefined ? undefined : _a.length) === 12 || (((_b = barcode.data) === null || _b === undefined ? undefined : _b.length) === 13 && ((_c = barcode.data) === null || _c === undefined ? undefined : _c.charAt(0)) === '0');
|
|
213
213
|
}
|
|
214
214
|
static isEan13(barcode) {
|
|
215
215
|
var _a, _b;
|
|
216
216
|
if (barcode.symbology !== Symbology.EAN13UPCA) {
|
|
217
217
|
return false;
|
|
218
218
|
}
|
|
219
|
-
return ((_a = barcode.data) === null || _a ===
|
|
219
|
+
return ((_a = barcode.data) === null || _a === undefined ? undefined : _a.length) === 13 && ((_b = barcode.data) === null || _b === undefined ? undefined : _b.charAt(0)) !== '0';
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
|
|
@@ -240,13 +240,13 @@ class ArucoDictionary {
|
|
|
240
240
|
}
|
|
241
241
|
__decorate([
|
|
242
242
|
nameForSerialization('preset')
|
|
243
|
-
], ArucoDictionary.prototype, "_preset",
|
|
243
|
+
], ArucoDictionary.prototype, "_preset", undefined);
|
|
244
244
|
__decorate([
|
|
245
245
|
nameForSerialization('markers')
|
|
246
|
-
], ArucoDictionary.prototype, "_markers",
|
|
246
|
+
], ArucoDictionary.prototype, "_markers", undefined);
|
|
247
247
|
__decorate([
|
|
248
248
|
nameForSerialization('markerSize')
|
|
249
|
-
], ArucoDictionary.prototype, "_markerSize",
|
|
249
|
+
], ArucoDictionary.prototype, "_markerSize", undefined);
|
|
250
250
|
|
|
251
251
|
var ArucoDictionaryPreset;
|
|
252
252
|
(function (ArucoDictionaryPreset) {
|
|
@@ -275,10 +275,10 @@ class ArucoMarker extends DefaultSerializeable {
|
|
|
275
275
|
}
|
|
276
276
|
__decorate([
|
|
277
277
|
nameForSerialization('markerData')
|
|
278
|
-
], ArucoMarker.prototype, "_markerData",
|
|
278
|
+
], ArucoMarker.prototype, "_markerData", undefined);
|
|
279
279
|
__decorate([
|
|
280
280
|
nameForSerialization('markerSize')
|
|
281
|
-
], ArucoMarker.prototype, "_markerSize",
|
|
281
|
+
], ArucoMarker.prototype, "_markerSize", undefined);
|
|
282
282
|
|
|
283
283
|
function getBarcodeDefaults() {
|
|
284
284
|
return FactoryMaker.getInstance('BarcodeDefaults');
|
|
@@ -523,7 +523,7 @@ class BarcodeCountFeedback extends DefaultSerializeable {
|
|
|
523
523
|
}
|
|
524
524
|
updateFeedback() {
|
|
525
525
|
var _a;
|
|
526
|
-
(_a = this.listenerController) === null || _a ===
|
|
526
|
+
(_a = this.listenerController) === null || _a === undefined ? undefined : _a.updateFeedback(JSON.stringify(this.toJSON()));
|
|
527
527
|
}
|
|
528
528
|
static fromJSON(json) {
|
|
529
529
|
const success = Feedback.fromJSON(json.success);
|
|
@@ -544,13 +544,13 @@ class BarcodeCountFeedback extends DefaultSerializeable {
|
|
|
544
544
|
}
|
|
545
545
|
__decorate([
|
|
546
546
|
ignoreFromSerialization
|
|
547
|
-
], BarcodeCountFeedback.prototype, "listenerController",
|
|
547
|
+
], BarcodeCountFeedback.prototype, "listenerController", undefined);
|
|
548
548
|
__decorate([
|
|
549
549
|
nameForSerialization('success')
|
|
550
|
-
], BarcodeCountFeedback.prototype, "_success",
|
|
550
|
+
], BarcodeCountFeedback.prototype, "_success", undefined);
|
|
551
551
|
__decorate([
|
|
552
552
|
nameForSerialization('failure')
|
|
553
|
-
], BarcodeCountFeedback.prototype, "_failure",
|
|
553
|
+
], BarcodeCountFeedback.prototype, "_failure", undefined);
|
|
554
554
|
__decorate([
|
|
555
555
|
ignoreFromSerialization
|
|
556
556
|
], BarcodeCountFeedback, "barcodeCountDefaults", null);
|
|
@@ -576,12 +576,12 @@ class BarcodeCountCaptureListSession extends DefaultSerializeable {
|
|
|
576
576
|
}
|
|
577
577
|
static fromJSON(json) {
|
|
578
578
|
var _a, _b, _c, _d, _e, _f;
|
|
579
|
-
const correctBarcodes = (_a = json.correctBarcodes) !== null && _a !==
|
|
580
|
-
const wrongBarcodes = (_b = json.wrongBarcodes) !== null && _b !==
|
|
581
|
-
const missingBarcodes = (_c = json.missingBarcodes) !== null && _c !==
|
|
582
|
-
const additionalBarcodes = (_d = json.additionalBarcodes) !== null && _d !==
|
|
583
|
-
const acceptedBarcodes = (_e = json.acceptedBarcodes) !== null && _e !==
|
|
584
|
-
const rejectedBarcodes = (_f = json.rejectedBarcodes) !== null && _f !==
|
|
579
|
+
const correctBarcodes = (_a = json.correctBarcodes) !== null && _a !== undefined ? _a : [];
|
|
580
|
+
const wrongBarcodes = (_b = json.wrongBarcodes) !== null && _b !== undefined ? _b : [];
|
|
581
|
+
const missingBarcodes = (_c = json.missingBarcodes) !== null && _c !== undefined ? _c : [];
|
|
582
|
+
const additionalBarcodes = (_d = json.additionalBarcodes) !== null && _d !== undefined ? _d : [];
|
|
583
|
+
const acceptedBarcodes = (_e = json.acceptedBarcodes) !== null && _e !== undefined ? _e : [];
|
|
584
|
+
const rejectedBarcodes = (_f = json.rejectedBarcodes) !== null && _f !== undefined ? _f : [];
|
|
585
585
|
return new BarcodeCountCaptureListSession({
|
|
586
586
|
correctBarcodes,
|
|
587
587
|
wrongBarcodes,
|
|
@@ -603,22 +603,22 @@ class BarcodeCountCaptureListSession extends DefaultSerializeable {
|
|
|
603
603
|
}
|
|
604
604
|
__decorate([
|
|
605
605
|
nameForSerialization('correctBarcodes')
|
|
606
|
-
], BarcodeCountCaptureListSession.prototype, "_correctBarcodes",
|
|
606
|
+
], BarcodeCountCaptureListSession.prototype, "_correctBarcodes", undefined);
|
|
607
607
|
__decorate([
|
|
608
608
|
nameForSerialization('wrongBarcodes')
|
|
609
|
-
], BarcodeCountCaptureListSession.prototype, "_wrongBarcodes",
|
|
609
|
+
], BarcodeCountCaptureListSession.prototype, "_wrongBarcodes", undefined);
|
|
610
610
|
__decorate([
|
|
611
611
|
nameForSerialization('missingBarcodes')
|
|
612
|
-
], BarcodeCountCaptureListSession.prototype, "_missingBarcodes",
|
|
612
|
+
], BarcodeCountCaptureListSession.prototype, "_missingBarcodes", undefined);
|
|
613
613
|
__decorate([
|
|
614
614
|
nameForSerialization('additionalBarcodes')
|
|
615
|
-
], BarcodeCountCaptureListSession.prototype, "_additionalBarcodes",
|
|
615
|
+
], BarcodeCountCaptureListSession.prototype, "_additionalBarcodes", undefined);
|
|
616
616
|
__decorate([
|
|
617
617
|
nameForSerialization('acceptedBarcodes')
|
|
618
|
-
], BarcodeCountCaptureListSession.prototype, "_acceptedBarcodes",
|
|
618
|
+
], BarcodeCountCaptureListSession.prototype, "_acceptedBarcodes", undefined);
|
|
619
619
|
__decorate([
|
|
620
620
|
nameForSerialization('rejectedBarcodes')
|
|
621
|
-
], BarcodeCountCaptureListSession.prototype, "_rejectedBarcodes",
|
|
621
|
+
], BarcodeCountCaptureListSession.prototype, "_rejectedBarcodes", undefined);
|
|
622
622
|
|
|
623
623
|
class EncodingRange {
|
|
624
624
|
get ianaName() { return this._ianaName; }
|
|
@@ -696,46 +696,46 @@ class Barcode extends DefaultSerializeable {
|
|
|
696
696
|
}
|
|
697
697
|
__decorate([
|
|
698
698
|
nameForSerialization('symbology')
|
|
699
|
-
], Barcode.prototype, "_symbology",
|
|
699
|
+
], Barcode.prototype, "_symbology", undefined);
|
|
700
700
|
__decorate([
|
|
701
701
|
nameForSerialization('data')
|
|
702
|
-
], Barcode.prototype, "_data",
|
|
702
|
+
], Barcode.prototype, "_data", undefined);
|
|
703
703
|
__decorate([
|
|
704
704
|
nameForSerialization('rawData')
|
|
705
|
-
], Barcode.prototype, "_rawData",
|
|
705
|
+
], Barcode.prototype, "_rawData", undefined);
|
|
706
706
|
__decorate([
|
|
707
707
|
nameForSerialization('compositeData')
|
|
708
|
-
], Barcode.prototype, "_compositeData",
|
|
708
|
+
], Barcode.prototype, "_compositeData", undefined);
|
|
709
709
|
__decorate([
|
|
710
710
|
nameForSerialization('compositeRawData')
|
|
711
|
-
], Barcode.prototype, "_compositeRawData",
|
|
711
|
+
], Barcode.prototype, "_compositeRawData", undefined);
|
|
712
712
|
__decorate([
|
|
713
713
|
nameForSerialization('addOnData')
|
|
714
|
-
], Barcode.prototype, "_addOnData",
|
|
714
|
+
], Barcode.prototype, "_addOnData", undefined);
|
|
715
715
|
__decorate([
|
|
716
716
|
nameForSerialization('encodingRanges')
|
|
717
|
-
], Barcode.prototype, "_encodingRanges",
|
|
717
|
+
], Barcode.prototype, "_encodingRanges", undefined);
|
|
718
718
|
__decorate([
|
|
719
719
|
nameForSerialization('location')
|
|
720
|
-
], Barcode.prototype, "_location",
|
|
720
|
+
], Barcode.prototype, "_location", undefined);
|
|
721
721
|
__decorate([
|
|
722
722
|
nameForSerialization('isGS1DataCarrier')
|
|
723
|
-
], Barcode.prototype, "_isGS1DataCarrier",
|
|
723
|
+
], Barcode.prototype, "_isGS1DataCarrier", undefined);
|
|
724
724
|
__decorate([
|
|
725
725
|
nameForSerialization('compositeFlag')
|
|
726
|
-
], Barcode.prototype, "_compositeFlag",
|
|
726
|
+
], Barcode.prototype, "_compositeFlag", undefined);
|
|
727
727
|
__decorate([
|
|
728
728
|
nameForSerialization('isColorInverted')
|
|
729
|
-
], Barcode.prototype, "_isColorInverted",
|
|
729
|
+
], Barcode.prototype, "_isColorInverted", undefined);
|
|
730
730
|
__decorate([
|
|
731
731
|
nameForSerialization('symbolCount')
|
|
732
|
-
], Barcode.prototype, "_symbolCount",
|
|
732
|
+
], Barcode.prototype, "_symbolCount", undefined);
|
|
733
733
|
__decorate([
|
|
734
734
|
nameForSerialization('frameID')
|
|
735
|
-
], Barcode.prototype, "_frameID",
|
|
735
|
+
], Barcode.prototype, "_frameID", undefined);
|
|
736
736
|
__decorate([
|
|
737
737
|
nameForSerialization('structuredAppendData')
|
|
738
|
-
], Barcode.prototype, "_structuredAppendData",
|
|
738
|
+
], Barcode.prototype, "_structuredAppendData", undefined);
|
|
739
739
|
|
|
740
740
|
var BatterySavingMode;
|
|
741
741
|
(function (BatterySavingMode) {
|
|
@@ -792,10 +792,10 @@ class TargetBarcode extends DefaultSerializeable {
|
|
|
792
792
|
}
|
|
793
793
|
__decorate([
|
|
794
794
|
nameForSerialization('data')
|
|
795
|
-
], TargetBarcode.prototype, "_data",
|
|
795
|
+
], TargetBarcode.prototype, "_data", undefined);
|
|
796
796
|
__decorate([
|
|
797
797
|
nameForSerialization('quantity')
|
|
798
|
-
], TargetBarcode.prototype, "_quantity",
|
|
798
|
+
], TargetBarcode.prototype, "_quantity", undefined);
|
|
799
799
|
|
|
800
800
|
class TrackedBarcode {
|
|
801
801
|
get barcode() { return this._barcode; }
|
|
@@ -855,24 +855,24 @@ class BarcodeSpatialGrid extends DefaultSerializeable {
|
|
|
855
855
|
}
|
|
856
856
|
__decorate([
|
|
857
857
|
nameForSerialization('rows')
|
|
858
|
-
], BarcodeSpatialGrid.prototype, "_rows",
|
|
858
|
+
], BarcodeSpatialGrid.prototype, "_rows", undefined);
|
|
859
859
|
__decorate([
|
|
860
860
|
nameForSerialization('columns')
|
|
861
|
-
], BarcodeSpatialGrid.prototype, "_columns",
|
|
861
|
+
], BarcodeSpatialGrid.prototype, "_columns", undefined);
|
|
862
862
|
__decorate([
|
|
863
863
|
nameForSerialization('grid')
|
|
864
|
-
], BarcodeSpatialGrid.prototype, "_grid",
|
|
864
|
+
], BarcodeSpatialGrid.prototype, "_grid", undefined);
|
|
865
865
|
|
|
866
|
-
class BarcodeCountSessionController {
|
|
867
|
-
|
|
868
|
-
|
|
866
|
+
class BarcodeCountSessionController extends BaseController {
|
|
867
|
+
constructor() {
|
|
868
|
+
super('BarcodeCountSessionProxy');
|
|
869
869
|
}
|
|
870
870
|
resetSession() {
|
|
871
|
-
return this._proxy
|
|
871
|
+
return this._proxy.$resetSession();
|
|
872
872
|
}
|
|
873
873
|
getSpatialMap() {
|
|
874
|
-
return __awaiter(this,
|
|
875
|
-
const result = yield this._proxy
|
|
874
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
875
|
+
const result = yield this._proxy.$getSpatialMap();
|
|
876
876
|
if (result) {
|
|
877
877
|
const payload = JSON.parse(result.data);
|
|
878
878
|
return BarcodeSpatialGrid.fromJSON(payload);
|
|
@@ -880,8 +880,8 @@ class BarcodeCountSessionController {
|
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
882
|
getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns) {
|
|
883
|
-
return __awaiter(this,
|
|
884
|
-
const result = yield this._proxy
|
|
883
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
884
|
+
const result = yield this._proxy.$getSpatialMapWithHints({ expectedNumberOfRows, expectedNumberOfColumns });
|
|
885
885
|
if (result) {
|
|
886
886
|
const payload = JSON.parse(result.data);
|
|
887
887
|
return BarcodeSpatialGrid.fromJSON(payload);
|
|
@@ -898,7 +898,7 @@ class BarcodeCountSession extends DefaultSerializeable {
|
|
|
898
898
|
session._frameSequenceID = sessionJson.frameSequenceId;
|
|
899
899
|
session._additionalBarcodes = sessionJson.additionalBarcodes;
|
|
900
900
|
session._recognizedBarcodes = sessionJson.recognizedBarcodes.map(Barcode.fromJSON);
|
|
901
|
-
session.frameId = (_a = json.frameId) !== null && _a !==
|
|
901
|
+
session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
|
|
902
902
|
return session;
|
|
903
903
|
}
|
|
904
904
|
constructor() {
|
|
@@ -918,128 +918,119 @@ class BarcodeCountSession extends DefaultSerializeable {
|
|
|
918
918
|
return this.sessionController.resetSession();
|
|
919
919
|
}
|
|
920
920
|
getSpatialMap() {
|
|
921
|
-
return __awaiter(this,
|
|
921
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
922
922
|
var _a;
|
|
923
|
-
return (_a = yield this.sessionController.getSpatialMap()) !== null && _a !==
|
|
923
|
+
return (_a = yield this.sessionController.getSpatialMap()) !== null && _a !== undefined ? _a : null;
|
|
924
924
|
});
|
|
925
925
|
}
|
|
926
926
|
getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns) {
|
|
927
|
-
return __awaiter(this,
|
|
927
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
928
928
|
var _a;
|
|
929
|
-
return (_a = yield this.sessionController.getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns)) !== null && _a !==
|
|
929
|
+
return (_a = yield this.sessionController.getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns)) !== null && _a !== undefined ? _a : null;
|
|
930
930
|
});
|
|
931
931
|
}
|
|
932
932
|
}
|
|
933
933
|
__decorate([
|
|
934
934
|
nameForSerialization('recognizedBarcodes')
|
|
935
|
-
], BarcodeCountSession.prototype, "_recognizedBarcodes",
|
|
935
|
+
], BarcodeCountSession.prototype, "_recognizedBarcodes", undefined);
|
|
936
936
|
__decorate([
|
|
937
937
|
nameForSerialization('additionalBarcodes')
|
|
938
|
-
], BarcodeCountSession.prototype, "_additionalBarcodes",
|
|
938
|
+
], BarcodeCountSession.prototype, "_additionalBarcodes", undefined);
|
|
939
939
|
__decorate([
|
|
940
940
|
nameForSerialization('frameSequenceID')
|
|
941
|
-
], BarcodeCountSession.prototype, "_frameSequenceID",
|
|
941
|
+
], BarcodeCountSession.prototype, "_frameSequenceID", undefined);
|
|
942
942
|
__decorate([
|
|
943
943
|
ignoreFromSerialization
|
|
944
|
-
], BarcodeCountSession.prototype, "sessionController",
|
|
944
|
+
], BarcodeCountSession.prototype, "sessionController", undefined);
|
|
945
945
|
__decorate([
|
|
946
946
|
ignoreFromSerialization
|
|
947
|
-
], BarcodeCountSession.prototype, "frameId",
|
|
947
|
+
], BarcodeCountSession.prototype, "frameId", undefined);
|
|
948
948
|
|
|
949
949
|
var BarcodeCountListenerEvents;
|
|
950
950
|
(function (BarcodeCountListenerEvents) {
|
|
951
|
-
BarcodeCountListenerEvents["
|
|
952
|
-
BarcodeCountListenerEvents["didListSessionUpdate"] = "BarcodeCountCaptureListListener.didUpdateSession";
|
|
951
|
+
BarcodeCountListenerEvents["didUpdateSession"] = "BarcodeCountCaptureListListener.didUpdateSession";
|
|
953
952
|
BarcodeCountListenerEvents["didScan"] = "BarcodeCountListener.onScan";
|
|
954
953
|
})(BarcodeCountListenerEvents || (BarcodeCountListenerEvents = {}));
|
|
955
|
-
class BarcodeCountListenerController {
|
|
956
|
-
get _proxy() {
|
|
957
|
-
return FactoryMaker.getInstance('BarcodeCountListenerProxy');
|
|
958
|
-
}
|
|
954
|
+
class BarcodeCountListenerController extends BaseController {
|
|
959
955
|
constructor() {
|
|
960
|
-
|
|
956
|
+
super('BarcodeCountListenerProxy');
|
|
961
957
|
}
|
|
962
958
|
static forBarcodeCount(barcodeCount) {
|
|
963
959
|
const controller = new BarcodeCountListenerController();
|
|
964
960
|
controller.barcodeCount = barcodeCount;
|
|
965
|
-
controller._proxy.isModeEnabled = () => barcodeCount.isEnabled;
|
|
966
961
|
return controller;
|
|
967
962
|
}
|
|
968
963
|
update() {
|
|
969
964
|
const barcodeCount = this.barcodeCount.toJSON();
|
|
970
965
|
const json = JSON.stringify(barcodeCount);
|
|
971
|
-
return this._proxy
|
|
966
|
+
return this._proxy.$updateBarcodeCountMode({ barcodeCountJson: json });
|
|
972
967
|
}
|
|
973
968
|
reset() {
|
|
974
|
-
return this._proxy
|
|
969
|
+
return this._proxy.$resetBarcodeCount();
|
|
975
970
|
}
|
|
976
971
|
setModeEnabledState(enabled) {
|
|
977
|
-
this._proxy
|
|
972
|
+
this._proxy.$setBarcodeCountModeEnabledState({ isEnabled: enabled });
|
|
978
973
|
}
|
|
979
974
|
subscribeListener() {
|
|
980
|
-
this
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
.
|
|
1001
|
-
|
|
975
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
976
|
+
yield this._proxy.$registerBarcodeCountListener();
|
|
977
|
+
this._proxy.on$didScan = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
978
|
+
const payload = EventDataParser.parse(ev.data);
|
|
979
|
+
if (payload === null) {
|
|
980
|
+
console.error('BarcodeCountListenerController didScan payload is null');
|
|
981
|
+
return;
|
|
982
|
+
}
|
|
983
|
+
const session = BarcodeCountSession.fromJSON(payload);
|
|
984
|
+
yield this.notifyListenersOfDidScanSession(session);
|
|
985
|
+
yield this._proxy.$finishBarcodeCountOnScan();
|
|
986
|
+
});
|
|
987
|
+
this._proxy.on$didUpdateSession = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
988
|
+
const payload = EventDataParser.parse(ev.data);
|
|
989
|
+
if (payload === null) {
|
|
990
|
+
console.error('BarcodeCountListenerController.subscribeListener: didListSessionUpdate payload is null');
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
993
|
+
const session = BarcodeCountCaptureListSession
|
|
994
|
+
.fromJSON(JSON.parse(payload.session));
|
|
995
|
+
this.notifyListenersOfDidListSessionUpdate(session);
|
|
996
|
+
});
|
|
1002
997
|
});
|
|
1003
998
|
}
|
|
1004
999
|
unsubscribeListener() {
|
|
1005
|
-
this
|
|
1006
|
-
|
|
1007
|
-
|
|
1000
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
1001
|
+
yield this._proxy.$unregisterBarcodeCountListener();
|
|
1002
|
+
this._proxy.dispose();
|
|
1003
|
+
});
|
|
1008
1004
|
}
|
|
1009
1005
|
startScanningPhase() {
|
|
1010
|
-
this._proxy
|
|
1006
|
+
this._proxy.$startBarcodeCountScanningPhase();
|
|
1011
1007
|
}
|
|
1012
1008
|
endScanningPhase() {
|
|
1013
|
-
this._proxy
|
|
1009
|
+
this._proxy.$endBarcodeCountScanningPhase();
|
|
1014
1010
|
}
|
|
1015
1011
|
updateFeedback(feedbackJson) {
|
|
1016
|
-
this._proxy
|
|
1012
|
+
this._proxy.$updateBarcodeCountFeedback({ feedbackJson });
|
|
1017
1013
|
}
|
|
1018
1014
|
setBarcodeCountCaptureList(barcodeCountCaptureList) {
|
|
1019
1015
|
this._barcodeCountCaptureList = barcodeCountCaptureList;
|
|
1020
|
-
this._proxy
|
|
1016
|
+
this._proxy.$setBarcodeCountCaptureList({ captureListJson: JSON.stringify(barcodeCountCaptureList.targetBarcodes) });
|
|
1021
1017
|
}
|
|
1022
1018
|
notifyListenersOfDidScanSession(session) {
|
|
1023
|
-
return __awaiter(this,
|
|
1019
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
1024
1020
|
const mode = this.barcodeCount;
|
|
1025
|
-
mode.isInListenerCallback = true;
|
|
1026
1021
|
for (const listener of mode.listeners) {
|
|
1027
1022
|
if (listener.didScan) {
|
|
1028
1023
|
yield listener.didScan(this.barcodeCount, session, () => CameraController.getFrame(session.frameId));
|
|
1029
1024
|
}
|
|
1030
1025
|
}
|
|
1031
|
-
mode.isInListenerCallback = false;
|
|
1032
1026
|
});
|
|
1033
1027
|
}
|
|
1034
1028
|
notifyListenersOfDidListSessionUpdate(session) {
|
|
1035
1029
|
var _a;
|
|
1036
|
-
const
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
if (barcodeCountCaptureListListener && (barcodeCountCaptureListListener === null || barcodeCountCaptureListListener === void 0 ? void 0 : barcodeCountCaptureListListener.didUpdateSession)) {
|
|
1040
|
-
barcodeCountCaptureListListener === null || barcodeCountCaptureListListener === void 0 ? void 0 : barcodeCountCaptureListListener.didUpdateSession(this._barcodeCountCaptureList, session);
|
|
1030
|
+
const barcodeCountCaptureListListener = (_a = this._barcodeCountCaptureList) === null || _a === undefined ? undefined : _a.listener;
|
|
1031
|
+
if (barcodeCountCaptureListListener && (barcodeCountCaptureListListener === null || barcodeCountCaptureListListener === undefined ? undefined : barcodeCountCaptureListListener.didUpdateSession)) {
|
|
1032
|
+
barcodeCountCaptureListListener === null || barcodeCountCaptureListListener === undefined ? undefined : barcodeCountCaptureListListener.didUpdateSession(this._barcodeCountCaptureList, session);
|
|
1041
1033
|
}
|
|
1042
|
-
mode.isInListenerCallback = false;
|
|
1043
1034
|
}
|
|
1044
1035
|
}
|
|
1045
1036
|
|
|
@@ -1083,7 +1074,6 @@ class BarcodeCount extends DefaultSerializeable {
|
|
|
1083
1074
|
this._isEnabled = true;
|
|
1084
1075
|
this.listeners = [];
|
|
1085
1076
|
this._additionalBarcodes = [];
|
|
1086
|
-
this.isInListenerCallback = false;
|
|
1087
1077
|
this.privateContext = null;
|
|
1088
1078
|
this.listenerController = BarcodeCountListenerController.forBarcodeCount(this);
|
|
1089
1079
|
this._feedback.listenerController = this.listenerController;
|
|
@@ -1148,25 +1138,22 @@ class BarcodeCount extends DefaultSerializeable {
|
|
|
1148
1138
|
}
|
|
1149
1139
|
__decorate([
|
|
1150
1140
|
nameForSerialization('feedback')
|
|
1151
|
-
], BarcodeCount.prototype, "_feedback",
|
|
1141
|
+
], BarcodeCount.prototype, "_feedback", undefined);
|
|
1152
1142
|
__decorate([
|
|
1153
1143
|
ignoreFromSerialization
|
|
1154
|
-
], BarcodeCount.prototype, "_isEnabled",
|
|
1144
|
+
], BarcodeCount.prototype, "_isEnabled", undefined);
|
|
1155
1145
|
__decorate([
|
|
1156
1146
|
ignoreFromSerialization
|
|
1157
|
-
], BarcodeCount.prototype, "listeners",
|
|
1147
|
+
], BarcodeCount.prototype, "listeners", undefined);
|
|
1158
1148
|
__decorate([
|
|
1159
1149
|
nameForSerialization('additionalBarcodes')
|
|
1160
|
-
], BarcodeCount.prototype, "_additionalBarcodes",
|
|
1150
|
+
], BarcodeCount.prototype, "_additionalBarcodes", undefined);
|
|
1161
1151
|
__decorate([
|
|
1162
1152
|
ignoreFromSerialization
|
|
1163
|
-
], BarcodeCount.prototype, "
|
|
1153
|
+
], BarcodeCount.prototype, "privateContext", undefined);
|
|
1164
1154
|
__decorate([
|
|
1165
1155
|
ignoreFromSerialization
|
|
1166
|
-
], BarcodeCount.prototype, "
|
|
1167
|
-
__decorate([
|
|
1168
|
-
ignoreFromSerialization
|
|
1169
|
-
], BarcodeCount.prototype, "listenerController", void 0);
|
|
1156
|
+
], BarcodeCount.prototype, "listenerController", undefined);
|
|
1170
1157
|
__decorate([
|
|
1171
1158
|
ignoreFromSerialization
|
|
1172
1159
|
], BarcodeCount, "barcodeCountDefaults", null);
|
|
@@ -1249,13 +1236,13 @@ class BarcodeCountSettings extends DefaultSerializeable {
|
|
|
1249
1236
|
}
|
|
1250
1237
|
__decorate([
|
|
1251
1238
|
nameForSerialization('barcodeFilterSettings')
|
|
1252
|
-
], BarcodeCountSettings.prototype, "_filterSettings",
|
|
1239
|
+
], BarcodeCountSettings.prototype, "_filterSettings", undefined);
|
|
1253
1240
|
__decorate([
|
|
1254
1241
|
nameForSerialization('expectOnlyUniqueBarcodes')
|
|
1255
|
-
], BarcodeCountSettings.prototype, "_expectsOnlyUniqueBarcodes",
|
|
1242
|
+
], BarcodeCountSettings.prototype, "_expectsOnlyUniqueBarcodes", undefined);
|
|
1256
1243
|
__decorate([
|
|
1257
1244
|
nameForSerialization('mappingEnabled')
|
|
1258
|
-
], BarcodeCountSettings.prototype, "_mappingEnabled",
|
|
1245
|
+
], BarcodeCountSettings.prototype, "_mappingEnabled", undefined);
|
|
1259
1246
|
__decorate([
|
|
1260
1247
|
ignoreFromSerialization
|
|
1261
1248
|
], BarcodeCountSettings, "barcodeCountDefaults", null);
|
|
@@ -1311,7 +1298,6 @@ var BarcodeCountViewEvents;
|
|
|
1311
1298
|
BarcodeCountViewEvents["rejectedBarcodeTapped"] = "BarcodeCountViewListener.didTapRejectedBarcode";
|
|
1312
1299
|
BarcodeCountViewEvents["captureListCompleted"] = "BarcodeCountViewListener.didCompleteCaptureList";
|
|
1313
1300
|
})(BarcodeCountViewEvents || (BarcodeCountViewEvents = {}));
|
|
1314
|
-
|
|
1315
1301
|
class BarcodeCountViewController extends BaseController {
|
|
1316
1302
|
static forBarcodeCountAndBarcodeCountView(view, barcodeCount) {
|
|
1317
1303
|
const controller = new BarcodeCountViewController({ view, barcodeCount });
|
|
@@ -1325,9 +1311,8 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1325
1311
|
this.barcodeCount = barcodeCount;
|
|
1326
1312
|
}
|
|
1327
1313
|
initialize(autoCreateNativeView) {
|
|
1328
|
-
return __awaiter(this,
|
|
1314
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
1329
1315
|
const context = this.view.context;
|
|
1330
|
-
yield context.initializeAsync();
|
|
1331
1316
|
yield context.update();
|
|
1332
1317
|
if (autoCreateNativeView) {
|
|
1333
1318
|
yield this.createView();
|
|
@@ -1338,14 +1323,14 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1338
1323
|
update() {
|
|
1339
1324
|
const barcodeCountView = this.view.toJSON();
|
|
1340
1325
|
const json = barcodeCountView.View;
|
|
1341
|
-
return this._proxy
|
|
1326
|
+
return this._proxy.$updateBarcodeCountView({ viewJson: JSON.stringify(json) });
|
|
1342
1327
|
}
|
|
1343
1328
|
createNativeView() {
|
|
1344
1329
|
return this.createView();
|
|
1345
1330
|
}
|
|
1346
1331
|
removeNativeView() {
|
|
1347
1332
|
var _a, _b, _c;
|
|
1348
|
-
return (_c = (_b = (_a = this._proxy)
|
|
1333
|
+
return (_c = (_b = (_a = this._proxy).$removeBarcodeCountView) === null || _b === undefined ? undefined : _b.call(_a)) !== null && _c !== undefined ? _c : Promise.resolve();
|
|
1349
1334
|
}
|
|
1350
1335
|
createView() {
|
|
1351
1336
|
const barcodeCountViewSerialized = this.view.toJSON();
|
|
@@ -1354,71 +1339,71 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1354
1339
|
BarcodeCount: barcodeCountSerialized,
|
|
1355
1340
|
View: barcodeCountViewSerialized
|
|
1356
1341
|
});
|
|
1357
|
-
return this._proxy
|
|
1342
|
+
return this._proxy.$createBarcodeCountView({ viewJson });
|
|
1358
1343
|
}
|
|
1359
1344
|
setUiListener(listener) {
|
|
1360
|
-
return __awaiter(this,
|
|
1345
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
1361
1346
|
if (listener != null) {
|
|
1362
|
-
yield this._proxy
|
|
1347
|
+
yield this._proxy.$registerBarcodeCountViewUiListener();
|
|
1363
1348
|
}
|
|
1364
1349
|
else {
|
|
1365
|
-
yield this._proxy
|
|
1350
|
+
yield this._proxy.$unregisterBarcodeCountViewUiListener();
|
|
1366
1351
|
}
|
|
1367
1352
|
});
|
|
1368
1353
|
}
|
|
1369
1354
|
setViewListener(listener) {
|
|
1370
|
-
return __awaiter(this,
|
|
1355
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
1371
1356
|
if (listener != null) {
|
|
1372
|
-
yield this._proxy
|
|
1357
|
+
yield this._proxy.$registerBarcodeCountViewListener();
|
|
1373
1358
|
}
|
|
1374
1359
|
else {
|
|
1375
|
-
yield this._proxy
|
|
1360
|
+
yield this._proxy.$unregisterBarcodeCountViewListener();
|
|
1376
1361
|
}
|
|
1377
1362
|
});
|
|
1378
1363
|
}
|
|
1379
1364
|
clearHighlights() {
|
|
1380
|
-
return __awaiter(this,
|
|
1381
|
-
yield this._proxy
|
|
1365
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
1366
|
+
yield this._proxy.$clearBarcodeCountHighlights();
|
|
1382
1367
|
});
|
|
1383
1368
|
}
|
|
1384
1369
|
dispose() {
|
|
1385
|
-
return __awaiter(this,
|
|
1370
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
1386
1371
|
yield this.unsubscribeListeners();
|
|
1387
1372
|
});
|
|
1388
1373
|
}
|
|
1389
1374
|
setPositionAndSize(top, left, width, height, shouldBeUnderWebView) {
|
|
1390
|
-
return this._proxy
|
|
1375
|
+
return this._proxy.$setBarcodeCountViewPositionAndSize({ top, left, width, height, shouldBeUnderWebView });
|
|
1391
1376
|
}
|
|
1392
1377
|
show() {
|
|
1393
1378
|
if (!this.view.context) {
|
|
1394
1379
|
throw new Error('There should be a context attached to a view that should be shown');
|
|
1395
1380
|
}
|
|
1396
|
-
return this._proxy
|
|
1381
|
+
return this._proxy.$showBarcodeCountView();
|
|
1397
1382
|
}
|
|
1398
1383
|
hide() {
|
|
1399
1384
|
if (!this.view.context) {
|
|
1400
1385
|
throw new Error('There should be a context attached to a view that should be shown');
|
|
1401
1386
|
}
|
|
1402
|
-
return this._proxy
|
|
1387
|
+
return this._proxy.$hideBarcodeCountView();
|
|
1403
1388
|
}
|
|
1404
1389
|
setBrushForRecognizedBarcode(trackedBarcode, brush) {
|
|
1405
1390
|
const payload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
|
|
1406
|
-
return this._proxy
|
|
1391
|
+
return this._proxy.$finishBarcodeCountBrushForRecognizedBarcode({ brushJson: payload.brush, trackedBarcodeId: payload.trackedBarcodeID });
|
|
1407
1392
|
}
|
|
1408
1393
|
setBrushForRecognizedBarcodeNotInList(trackedBarcode, brush) {
|
|
1409
1394
|
const payload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
|
|
1410
|
-
return this._proxy
|
|
1395
|
+
return this._proxy.$finishBarcodeCountBrushForRecognizedBarcodeNotInList({ brushJson: payload.brush, trackedBarcodeId: payload.trackedBarcodeID });
|
|
1411
1396
|
}
|
|
1412
1397
|
setBrushForAcceptedBarcode(trackedBarcode, brush) {
|
|
1413
1398
|
const payload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
|
|
1414
|
-
return this._proxy
|
|
1399
|
+
return this._proxy.$finishBarcodeCountBrushForAcceptedBarcode({ brushJson: payload.brush, trackedBarcodeId: payload.trackedBarcodeID });
|
|
1415
1400
|
}
|
|
1416
1401
|
setBrushForRejectedBarcode(trackedBarcode, brush) {
|
|
1417
1402
|
const payload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
|
|
1418
|
-
return this._proxy
|
|
1403
|
+
return this._proxy.$finishBarcodeCountBrushForRejectedBarcode({ brushJson: payload.brush, trackedBarcodeId: payload.trackedBarcodeID });
|
|
1419
1404
|
}
|
|
1420
1405
|
enableHardwareTrigger(hardwareTriggerKeyCode) {
|
|
1421
|
-
return this._proxy
|
|
1406
|
+
return this._proxy.$enableBarcodeCountHardwareTrigger({ hardwareTriggerKeyCode });
|
|
1422
1407
|
}
|
|
1423
1408
|
buildTrackedBarcodeBrushPayload(trackedBarcode, brush) {
|
|
1424
1409
|
return {
|
|
@@ -1427,22 +1412,22 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1427
1412
|
};
|
|
1428
1413
|
}
|
|
1429
1414
|
subscribeListeners() {
|
|
1430
|
-
return __awaiter(this,
|
|
1431
|
-
yield this._proxy
|
|
1432
|
-
this.
|
|
1415
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
1416
|
+
yield this._proxy.$registerBarcodeCountViewListener();
|
|
1417
|
+
this._proxy.on$singleScanButtonTapped = () => {
|
|
1433
1418
|
var _a, _b;
|
|
1434
|
-
(_b = (_a = this.view.uiListener) === null || _a ===
|
|
1435
|
-
}
|
|
1436
|
-
this.
|
|
1419
|
+
(_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapSingleScanButton) === null || _b === undefined ? undefined : _b.call(_a, this.view.nativeView);
|
|
1420
|
+
};
|
|
1421
|
+
this._proxy.on$listButtonTapped = () => {
|
|
1437
1422
|
var _a, _b;
|
|
1438
|
-
(_b = (_a = this.view.uiListener) === null || _a ===
|
|
1439
|
-
}
|
|
1440
|
-
this.
|
|
1423
|
+
(_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapListButton) === null || _b === undefined ? undefined : _b.call(_a, this.view.nativeView);
|
|
1424
|
+
};
|
|
1425
|
+
this._proxy.on$exitButtonTapped = () => {
|
|
1441
1426
|
var _a, _b;
|
|
1442
|
-
(_b = (_a = this.view.uiListener) === null || _a ===
|
|
1443
|
-
}
|
|
1444
|
-
this.
|
|
1445
|
-
const payload = EventDataParser.parse(data);
|
|
1427
|
+
(_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapExitButton) === null || _b === undefined ? undefined : _b.call(_a, this.view.nativeView);
|
|
1428
|
+
};
|
|
1429
|
+
this._proxy.on$brushForRecognizedBarcode = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
1430
|
+
const payload = EventDataParser.parse(ev.data);
|
|
1446
1431
|
if (payload === null) {
|
|
1447
1432
|
console.error('BarcodeCountViewController brushForRecognizedBarcode payload is null');
|
|
1448
1433
|
return;
|
|
@@ -1454,10 +1439,10 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1454
1439
|
brush = this.view.listener.brushForRecognizedBarcode(this.view.nativeView, trackedBarcode);
|
|
1455
1440
|
}
|
|
1456
1441
|
const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
|
|
1457
|
-
yield this._proxy
|
|
1458
|
-
})
|
|
1459
|
-
this.
|
|
1460
|
-
const payload = EventDataParser.parse(data);
|
|
1442
|
+
yield this._proxy.$finishBarcodeCountBrushForRecognizedBarcode({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
|
|
1443
|
+
});
|
|
1444
|
+
this._proxy.on$brushForRecognizedBarcodeNotInList = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
1445
|
+
const payload = EventDataParser.parse(ev.data);
|
|
1461
1446
|
if (payload === null) {
|
|
1462
1447
|
console.error('BarcodeCountViewController brushForRecognizedBarcodeNotInList payload is null');
|
|
1463
1448
|
return;
|
|
@@ -1469,10 +1454,10 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1469
1454
|
brush = this.view.listener.brushForRecognizedBarcodeNotInList(this.view.nativeView, trackedBarcode);
|
|
1470
1455
|
}
|
|
1471
1456
|
const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
|
|
1472
|
-
yield this._proxy
|
|
1473
|
-
})
|
|
1474
|
-
this.
|
|
1475
|
-
const payload = EventDataParser.parse(data);
|
|
1457
|
+
yield this._proxy.$finishBarcodeCountBrushForRecognizedBarcodeNotInList({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
|
|
1458
|
+
});
|
|
1459
|
+
this._proxy.on$brushForAcceptedBarcode = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
1460
|
+
const payload = EventDataParser.parse(ev.data);
|
|
1476
1461
|
if (payload === null) {
|
|
1477
1462
|
console.error('BarcodeCountViewController brushForAcceptedBarcode payload is null');
|
|
1478
1463
|
return;
|
|
@@ -1484,10 +1469,10 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1484
1469
|
brush = this.view.listener.brushForAcceptedBarcode(this.view.nativeView, trackedBarcode);
|
|
1485
1470
|
}
|
|
1486
1471
|
const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
|
|
1487
|
-
yield this._proxy
|
|
1488
|
-
})
|
|
1489
|
-
this.
|
|
1490
|
-
const payload = EventDataParser.parse(data);
|
|
1472
|
+
yield this._proxy.$finishBarcodeCountBrushForAcceptedBarcode({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
|
|
1473
|
+
});
|
|
1474
|
+
this._proxy.on$brushForRejectedBarcode = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
1475
|
+
const payload = EventDataParser.parse(ev.data);
|
|
1491
1476
|
if (payload === null) {
|
|
1492
1477
|
console.error('BarcodeCountViewController brushForRejectedBarcode payload is null');
|
|
1493
1478
|
return;
|
|
@@ -1499,10 +1484,10 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1499
1484
|
brush = this.view.listener.brushForRejectedBarcode(this.view.nativeView, trackedBarcode);
|
|
1500
1485
|
}
|
|
1501
1486
|
const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
|
|
1502
|
-
yield this._proxy
|
|
1503
|
-
})
|
|
1504
|
-
this.
|
|
1505
|
-
const payload = EventDataParser.parse(data);
|
|
1487
|
+
yield this._proxy.$finishBarcodeCountBrushForRejectedBarcode({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
|
|
1488
|
+
});
|
|
1489
|
+
this._proxy.on$filteredBarcodeTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
1490
|
+
const payload = EventDataParser.parse(ev.data);
|
|
1506
1491
|
if (payload === null) {
|
|
1507
1492
|
console.error('BarcodeCountViewController filteredBarcodeTapped payload is null');
|
|
1508
1493
|
return;
|
|
@@ -1513,8 +1498,8 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1513
1498
|
this.view.listener.didTapFilteredBarcode(this.view.nativeView, trackedBarcode);
|
|
1514
1499
|
}
|
|
1515
1500
|
});
|
|
1516
|
-
this.
|
|
1517
|
-
const payload = EventDataParser.parse(data);
|
|
1501
|
+
this._proxy.on$recognizedBarcodeNotInListTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
1502
|
+
const payload = EventDataParser.parse(ev.data);
|
|
1518
1503
|
if (payload === null) {
|
|
1519
1504
|
console.error('BarcodeCountViewController recognizedBarcodeNotInListTapped payload is null');
|
|
1520
1505
|
return;
|
|
@@ -1525,8 +1510,8 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1525
1510
|
this.view.listener.didTapRecognizedBarcodeNotInList(this.view.nativeView, trackedBarcode);
|
|
1526
1511
|
}
|
|
1527
1512
|
});
|
|
1528
|
-
this.
|
|
1529
|
-
const payload = EventDataParser.parse(data);
|
|
1513
|
+
this._proxy.on$recognizedBarcodeTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
1514
|
+
const payload = EventDataParser.parse(ev.data);
|
|
1530
1515
|
if (payload === null) {
|
|
1531
1516
|
console.error('BarcodeCountViewController recognizedBarcodeTapped payload is null');
|
|
1532
1517
|
return;
|
|
@@ -1537,8 +1522,8 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1537
1522
|
this.view.listener.didTapRecognizedBarcode(this.view.nativeView, trackedBarcode);
|
|
1538
1523
|
}
|
|
1539
1524
|
});
|
|
1540
|
-
this.
|
|
1541
|
-
const payload = EventDataParser.parse(data);
|
|
1525
|
+
this._proxy.on$acceptedBarcodeTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
1526
|
+
const payload = EventDataParser.parse(ev.data);
|
|
1542
1527
|
if (payload === null) {
|
|
1543
1528
|
console.error('BarcodeCountViewController acceptedBarcodeTapped payload is null');
|
|
1544
1529
|
return;
|
|
@@ -1549,8 +1534,8 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1549
1534
|
this.view.listener.didTapAcceptedBarcode(this.view.nativeView, trackedBarcode);
|
|
1550
1535
|
}
|
|
1551
1536
|
});
|
|
1552
|
-
this.
|
|
1553
|
-
const payload = EventDataParser.parse(data);
|
|
1537
|
+
this._proxy.on$rejectedBarcodeTapped = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
1538
|
+
const payload = EventDataParser.parse(ev.data);
|
|
1554
1539
|
if (payload === null) {
|
|
1555
1540
|
console.error('BarcodeCountViewController rejectedBarcodeTapped payload is null');
|
|
1556
1541
|
return;
|
|
@@ -1561,27 +1546,18 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1561
1546
|
this.view.listener.didTapRejectedBarcode(this.view.nativeView, trackedBarcode);
|
|
1562
1547
|
}
|
|
1563
1548
|
});
|
|
1564
|
-
this.
|
|
1549
|
+
this._proxy.on$captureListCompleted = () => {
|
|
1565
1550
|
if (this.view.listener && this.view.listener.didCompleteCaptureList) {
|
|
1566
1551
|
this.view.listener.didCompleteCaptureList(this.view.nativeView);
|
|
1567
1552
|
}
|
|
1568
|
-
}
|
|
1553
|
+
};
|
|
1569
1554
|
});
|
|
1570
1555
|
}
|
|
1571
1556
|
unsubscribeListeners() {
|
|
1572
|
-
return __awaiter(this,
|
|
1573
|
-
|
|
1574
|
-
yield this._proxy
|
|
1575
|
-
yield this._proxy
|
|
1576
|
-
this.eventEmitter.off(BarcodeCountViewEvents.singleScanButtonTapped);
|
|
1577
|
-
this.eventEmitter.off(BarcodeCountViewEvents.listButtonTapped);
|
|
1578
|
-
this.eventEmitter.off(BarcodeCountViewEvents.exitButtonTapped);
|
|
1579
|
-
this.eventEmitter.off(BarcodeCountViewEvents.brushForRecognizedBarcode);
|
|
1580
|
-
this.eventEmitter.off(BarcodeCountViewEvents.brushForRecognizedBarcodeNotInList);
|
|
1581
|
-
this.eventEmitter.off(BarcodeCountViewEvents.filteredBarcodeTapped);
|
|
1582
|
-
this.eventEmitter.off(BarcodeCountViewEvents.recognizedBarcodeNotInListTapped);
|
|
1583
|
-
this.eventEmitter.off(BarcodeCountViewEvents.recognizedBarcodeTapped);
|
|
1584
|
-
this.eventEmitter.off(BarcodeCountViewEvents.captureListCompleted);
|
|
1557
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
1558
|
+
this._proxy.dispose();
|
|
1559
|
+
yield this._proxy.$unregisterBarcodeCountViewListener();
|
|
1560
|
+
yield this._proxy.$unregisterBarcodeCountViewUiListener();
|
|
1585
1561
|
});
|
|
1586
1562
|
}
|
|
1587
1563
|
}
|
|
@@ -1701,49 +1677,49 @@ class BarcodeCountNotInListActionSettings extends DefaultSerializeable {
|
|
|
1701
1677
|
}
|
|
1702
1678
|
__decorate([
|
|
1703
1679
|
nameForSerialization('enabled')
|
|
1704
|
-
], BarcodeCountNotInListActionSettings.prototype, "_enabled",
|
|
1680
|
+
], BarcodeCountNotInListActionSettings.prototype, "_enabled", undefined);
|
|
1705
1681
|
__decorate([
|
|
1706
1682
|
nameForSerialization('acceptButtonText')
|
|
1707
|
-
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonText",
|
|
1683
|
+
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonText", undefined);
|
|
1708
1684
|
__decorate([
|
|
1709
1685
|
nameForSerialization('acceptButtonAccessibilityLabel')
|
|
1710
|
-
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityLabel",
|
|
1686
|
+
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityLabel", undefined);
|
|
1711
1687
|
__decorate([
|
|
1712
1688
|
nameForSerialization('acceptButtonAccessibilityHint')
|
|
1713
|
-
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityHint",
|
|
1689
|
+
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityHint", undefined);
|
|
1714
1690
|
__decorate([
|
|
1715
1691
|
nameForSerialization('acceptButtonContentDescription')
|
|
1716
|
-
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonContentDescription",
|
|
1692
|
+
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonContentDescription", undefined);
|
|
1717
1693
|
__decorate([
|
|
1718
1694
|
nameForSerialization('rejectButtonText')
|
|
1719
|
-
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonText",
|
|
1695
|
+
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonText", undefined);
|
|
1720
1696
|
__decorate([
|
|
1721
1697
|
nameForSerialization('rejectButtonAccessibilityLabel')
|
|
1722
|
-
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityLabel",
|
|
1698
|
+
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityLabel", undefined);
|
|
1723
1699
|
__decorate([
|
|
1724
1700
|
nameForSerialization('rejectButtonAccessibilityHint')
|
|
1725
|
-
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityHint",
|
|
1701
|
+
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityHint", undefined);
|
|
1726
1702
|
__decorate([
|
|
1727
1703
|
nameForSerialization('rejectButtonContentDescription')
|
|
1728
|
-
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonContentDescription",
|
|
1704
|
+
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonContentDescription", undefined);
|
|
1729
1705
|
__decorate([
|
|
1730
1706
|
nameForSerialization('cancelButtonText')
|
|
1731
|
-
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonText",
|
|
1707
|
+
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonText", undefined);
|
|
1732
1708
|
__decorate([
|
|
1733
1709
|
nameForSerialization('cancelButtonAccessibilityLabel')
|
|
1734
|
-
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityLabel",
|
|
1710
|
+
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityLabel", undefined);
|
|
1735
1711
|
__decorate([
|
|
1736
1712
|
nameForSerialization('cancelButtonAccessibilityHint')
|
|
1737
|
-
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityHint",
|
|
1713
|
+
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityHint", undefined);
|
|
1738
1714
|
__decorate([
|
|
1739
1715
|
nameForSerialization('cancelButtonContentDescription')
|
|
1740
|
-
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonContentDescription",
|
|
1716
|
+
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonContentDescription", undefined);
|
|
1741
1717
|
__decorate([
|
|
1742
1718
|
nameForSerialization('barcodeAcceptedHint')
|
|
1743
|
-
], BarcodeCountNotInListActionSettings.prototype, "_barcodeAcceptedHint",
|
|
1719
|
+
], BarcodeCountNotInListActionSettings.prototype, "_barcodeAcceptedHint", undefined);
|
|
1744
1720
|
__decorate([
|
|
1745
1721
|
nameForSerialization('barcodeRejectedHint')
|
|
1746
|
-
], BarcodeCountNotInListActionSettings.prototype, "_barcodeRejectedHint",
|
|
1722
|
+
], BarcodeCountNotInListActionSettings.prototype, "_barcodeRejectedHint", undefined);
|
|
1747
1723
|
|
|
1748
1724
|
class BaseBarcodeCountView {
|
|
1749
1725
|
static get defaultRecognizedBrush() {
|
|
@@ -2178,7 +2154,7 @@ class BaseBarcodeCountView {
|
|
|
2178
2154
|
this._controller.initialize(autoCreateNativeView);
|
|
2179
2155
|
}
|
|
2180
2156
|
dispose() {
|
|
2181
|
-
return __awaiter(this,
|
|
2157
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
2182
2158
|
yield this._controller.dispose();
|
|
2183
2159
|
this.isViewCreated = false;
|
|
2184
2160
|
});
|
|
@@ -2215,7 +2191,7 @@ class BaseBarcodeCountView {
|
|
|
2215
2191
|
return this._controller.enableHardwareTrigger(hardwareTriggerKeyCode);
|
|
2216
2192
|
}
|
|
2217
2193
|
createNativeView() {
|
|
2218
|
-
return __awaiter(this,
|
|
2194
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
2219
2195
|
if (this.isViewCreated) {
|
|
2220
2196
|
return Promise.resolve();
|
|
2221
2197
|
}
|
|
@@ -2224,7 +2200,7 @@ class BaseBarcodeCountView {
|
|
|
2224
2200
|
});
|
|
2225
2201
|
}
|
|
2226
2202
|
removeNativeView() {
|
|
2227
|
-
return __awaiter(this,
|
|
2203
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
2228
2204
|
yield this._controller.removeNativeView();
|
|
2229
2205
|
this.isViewCreated = false;
|
|
2230
2206
|
});
|
|
@@ -2248,16 +2224,16 @@ class BaseBarcodeCountView {
|
|
|
2248
2224
|
shouldShowFloatingShutterButton: this.shouldShowFloatingShutterButton,
|
|
2249
2225
|
shouldShowToolbar: this.shouldShowToolbar,
|
|
2250
2226
|
shouldShowScanAreaGuides: this.shouldShowScanAreaGuides,
|
|
2251
|
-
toolbarSettings: (_a = this._toolbarSettings) === null || _a ===
|
|
2227
|
+
toolbarSettings: (_a = this._toolbarSettings) === null || _a === undefined ? undefined : _a.toJSON(),
|
|
2252
2228
|
shouldShowTorchControl: this.shouldShowTorchControl,
|
|
2253
2229
|
torchControlPosition: this.torchControlPosition,
|
|
2254
2230
|
tapToUncountEnabled: this.tapToUncountEnabled,
|
|
2255
2231
|
textForTapToUncountHint: this.textForTapToUncountHint,
|
|
2256
2232
|
barcodeNotInListActionSettings: this.barcodeNotInListActionSettings.toJSON(),
|
|
2257
|
-
recognizedBrush: (_b = this.recognizedBrush) === null || _b ===
|
|
2258
|
-
notInListBrush: (_c = this.notInListBrush) === null || _c ===
|
|
2259
|
-
acceptedBrush: (_d = this.acceptedBrush) === null || _d ===
|
|
2260
|
-
rejectedBrush: (_e = this.rejectedBrush) === null || _e ===
|
|
2233
|
+
recognizedBrush: (_b = this.recognizedBrush) === null || _b === undefined ? undefined : _b.toJSON(),
|
|
2234
|
+
notInListBrush: (_c = this.notInListBrush) === null || _c === undefined ? undefined : _c.toJSON(),
|
|
2235
|
+
acceptedBrush: (_d = this.acceptedBrush) === null || _d === undefined ? undefined : _d.toJSON(),
|
|
2236
|
+
rejectedBrush: (_e = this.rejectedBrush) === null || _e === undefined ? undefined : _e.toJSON(),
|
|
2261
2237
|
hardwareTriggerEnabled: this._hardwareTriggerEnabled
|
|
2262
2238
|
},
|
|
2263
2239
|
BarcodeCount: this._barcodeCount.toJSON()
|
|
@@ -2338,23 +2314,23 @@ class BaseBarcodeCountView {
|
|
|
2338
2314
|
json.View.shouldShowListProgressBar = this.shouldShowListProgressBar;
|
|
2339
2315
|
}
|
|
2340
2316
|
if (this.recognizedBrush) {
|
|
2341
|
-
json.View.recognizedBrush = (_f = this.recognizedBrush) === null || _f ===
|
|
2317
|
+
json.View.recognizedBrush = (_f = this.recognizedBrush) === null || _f === undefined ? undefined : _f.toJSON();
|
|
2342
2318
|
}
|
|
2343
2319
|
if (this.notInListBrush) {
|
|
2344
|
-
json.View.notInListBrush = (_g = this.notInListBrush) === null || _g ===
|
|
2320
|
+
json.View.notInListBrush = (_g = this.notInListBrush) === null || _g === undefined ? undefined : _g.toJSON();
|
|
2345
2321
|
}
|
|
2346
2322
|
if (this.filterSettings) {
|
|
2347
|
-
json.View.filterSettings = (_h = this.filterSettings) === null || _h ===
|
|
2323
|
+
json.View.filterSettings = (_h = this.filterSettings) === null || _h === undefined ? undefined : _h.toJSON();
|
|
2348
2324
|
}
|
|
2349
2325
|
return json;
|
|
2350
2326
|
}
|
|
2351
2327
|
}
|
|
2352
2328
|
__decorate([
|
|
2353
2329
|
ignoreFromSerialization
|
|
2354
|
-
], BaseBarcodeCountView.prototype, "isViewCreated",
|
|
2330
|
+
], BaseBarcodeCountView.prototype, "isViewCreated", undefined);
|
|
2355
2331
|
__decorate([
|
|
2356
2332
|
ignoreFromSerialization
|
|
2357
|
-
], BaseBarcodeCountView.prototype, "autoCreateNativeView",
|
|
2333
|
+
], BaseBarcodeCountView.prototype, "autoCreateNativeView", undefined);
|
|
2358
2334
|
__decorate([
|
|
2359
2335
|
ignoreFromSerialization
|
|
2360
2336
|
], BaseBarcodeCountView, "barcodeCountDefaults", null);
|
|
@@ -2378,10 +2354,10 @@ class BarcodeFilterHighlightSettingsBrush extends DefaultSerializeable {
|
|
|
2378
2354
|
}
|
|
2379
2355
|
__decorate([
|
|
2380
2356
|
nameForSerialization('highlightType')
|
|
2381
|
-
], BarcodeFilterHighlightSettingsBrush.prototype, "_highlightType",
|
|
2357
|
+
], BarcodeFilterHighlightSettingsBrush.prototype, "_highlightType", undefined);
|
|
2382
2358
|
__decorate([
|
|
2383
2359
|
nameForSerialization('brush')
|
|
2384
|
-
], BarcodeFilterHighlightSettingsBrush.prototype, "_brush",
|
|
2360
|
+
], BarcodeFilterHighlightSettingsBrush.prototype, "_brush", undefined);
|
|
2385
2361
|
|
|
2386
2362
|
class BarcodeFilterSettings extends DefaultSerializeable {
|
|
2387
2363
|
get excludeEan13() {
|
|
@@ -2438,19 +2414,19 @@ class BarcodeFilterSettings extends DefaultSerializeable {
|
|
|
2438
2414
|
}
|
|
2439
2415
|
__decorate([
|
|
2440
2416
|
nameForSerialization('excludeEan13')
|
|
2441
|
-
], BarcodeFilterSettings.prototype, "_excludeEan13",
|
|
2417
|
+
], BarcodeFilterSettings.prototype, "_excludeEan13", undefined);
|
|
2442
2418
|
__decorate([
|
|
2443
2419
|
nameForSerialization('excludeUpca')
|
|
2444
|
-
], BarcodeFilterSettings.prototype, "_excludeUpca",
|
|
2420
|
+
], BarcodeFilterSettings.prototype, "_excludeUpca", undefined);
|
|
2445
2421
|
__decorate([
|
|
2446
2422
|
nameForSerialization('excludedCodesRegex')
|
|
2447
|
-
], BarcodeFilterSettings.prototype, "_excludedCodesRegex",
|
|
2423
|
+
], BarcodeFilterSettings.prototype, "_excludedCodesRegex", undefined);
|
|
2448
2424
|
__decorate([
|
|
2449
2425
|
nameForSerialization('excludedSymbolCounts')
|
|
2450
|
-
], BarcodeFilterSettings.prototype, "_excludedSymbolCounts",
|
|
2426
|
+
], BarcodeFilterSettings.prototype, "_excludedSymbolCounts", undefined);
|
|
2451
2427
|
__decorate([
|
|
2452
2428
|
nameForSerialization('excludedSymbologies')
|
|
2453
|
-
], BarcodeFilterSettings.prototype, "_excludedSymbologies",
|
|
2429
|
+
], BarcodeFilterSettings.prototype, "_excludedSymbologies", undefined);
|
|
2454
2430
|
|
|
2455
2431
|
function getBarcodeCountDefaults() {
|
|
2456
2432
|
return FactoryMaker.getInstance('BarcodeCountDefaults');
|
|
@@ -2662,14 +2638,14 @@ function parseBarcodeFindDefaults(jsonDefaults) {
|
|
|
2662
2638
|
shouldShowUserGuidanceView: jsonDefaults.shouldShowUserGuidanceView,
|
|
2663
2639
|
shouldShowTorchControl: jsonDefaults.shouldShowTorchControl,
|
|
2664
2640
|
shouldShowZoomControl: jsonDefaults.shouldShowZoomControl,
|
|
2665
|
-
textForAllItemsFoundSuccessfullyHint: (_a = jsonDefaults.textForAllItemsFoundSuccessfullyHint) !== null && _a !==
|
|
2666
|
-
textForItemListUpdatedHint: (_b = jsonDefaults.textForItemListUpdatedHint) !== null && _b !==
|
|
2667
|
-
textForItemListUpdatedWhenPausedHint: (_c = jsonDefaults.textForItemListUpdatedWhenPausedHint) !== null && _c !==
|
|
2668
|
-
textForCollapseCardsButton: (_d = jsonDefaults.textForCollapseCardsButton) !== null && _d !==
|
|
2669
|
-
textForMoveCloserToBarcodesHint: (_e = jsonDefaults.textForMoveCloserToBarcodesHint) !== null && _e !==
|
|
2670
|
-
textForPointAtBarcodesToSearchHint: (_f = jsonDefaults.textForPointAtBarcodesToSearchHint) !== null && _f !==
|
|
2671
|
-
textForTapShutterToPauseScreenHint: (_g = jsonDefaults.textForTapShutterToPauseScreenHint) !== null && _g !==
|
|
2672
|
-
textForTapShutterToResumeSearchHint: (_h = jsonDefaults.textForTapShutterToResumeSearchHint) !== null && _h !==
|
|
2641
|
+
textForAllItemsFoundSuccessfullyHint: (_a = jsonDefaults.textForAllItemsFoundSuccessfullyHint) !== null && _a !== undefined ? _a : null,
|
|
2642
|
+
textForItemListUpdatedHint: (_b = jsonDefaults.textForItemListUpdatedHint) !== null && _b !== undefined ? _b : null,
|
|
2643
|
+
textForItemListUpdatedWhenPausedHint: (_c = jsonDefaults.textForItemListUpdatedWhenPausedHint) !== null && _c !== undefined ? _c : null,
|
|
2644
|
+
textForCollapseCardsButton: (_d = jsonDefaults.textForCollapseCardsButton) !== null && _d !== undefined ? _d : null,
|
|
2645
|
+
textForMoveCloserToBarcodesHint: (_e = jsonDefaults.textForMoveCloserToBarcodesHint) !== null && _e !== undefined ? _e : null,
|
|
2646
|
+
textForPointAtBarcodesToSearchHint: (_f = jsonDefaults.textForPointAtBarcodesToSearchHint) !== null && _f !== undefined ? _f : null,
|
|
2647
|
+
textForTapShutterToPauseScreenHint: (_g = jsonDefaults.textForTapShutterToPauseScreenHint) !== null && _g !== undefined ? _g : null,
|
|
2648
|
+
textForTapShutterToResumeSearchHint: (_h = jsonDefaults.textForTapShutterToResumeSearchHint) !== null && _h !== undefined ? _h : null,
|
|
2673
2649
|
torchControlPosition: jsonDefaults.torchControlPosition,
|
|
2674
2650
|
}
|
|
2675
2651
|
};
|
|
@@ -2820,7 +2796,7 @@ class BarcodeCaptureSession {
|
|
|
2820
2796
|
session._newlyLocalizedBarcodes = sessionJson.newlyLocalizedBarcodes
|
|
2821
2797
|
.map(LocalizedOnlyBarcode.fromJSON);
|
|
2822
2798
|
session._frameSequenceID = sessionJson.frameSequenceId;
|
|
2823
|
-
session.frameId = (_a = json.frameId) !== null && _a !==
|
|
2799
|
+
session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
|
|
2824
2800
|
return session;
|
|
2825
2801
|
}
|
|
2826
2802
|
reset() {
|
|
@@ -2830,95 +2806,78 @@ class BarcodeCaptureSession {
|
|
|
2830
2806
|
|
|
2831
2807
|
var BarcodeCaptureListenerEvents;
|
|
2832
2808
|
(function (BarcodeCaptureListenerEvents) {
|
|
2833
|
-
BarcodeCaptureListenerEvents["inCallback"] = "BarcodeCaptureListener.inCallback";
|
|
2834
2809
|
BarcodeCaptureListenerEvents["didUpdateSession"] = "BarcodeCaptureListener.didUpdateSession";
|
|
2835
2810
|
BarcodeCaptureListenerEvents["didScan"] = "BarcodeCaptureListener.didScan";
|
|
2836
2811
|
})(BarcodeCaptureListenerEvents || (BarcodeCaptureListenerEvents = {}));
|
|
2837
|
-
class BarcodeCaptureListenerController {
|
|
2838
|
-
get _proxy() {
|
|
2839
|
-
return FactoryMaker.getInstance('BarcodeCaptureListenerProxy');
|
|
2840
|
-
}
|
|
2812
|
+
class BarcodeCaptureListenerController extends BaseNewController {
|
|
2841
2813
|
static forBarcodeCapture(barcodeCapture) {
|
|
2842
2814
|
const controller = new BarcodeCaptureListenerController();
|
|
2843
2815
|
controller.barcodeCapture = barcodeCapture;
|
|
2844
|
-
controller._proxy.isModeEnabled = () => barcodeCapture.isEnabled;
|
|
2845
2816
|
return controller;
|
|
2846
2817
|
}
|
|
2847
2818
|
constructor() {
|
|
2848
|
-
|
|
2819
|
+
super('BarcodeCaptureListenerProxy');
|
|
2849
2820
|
}
|
|
2850
2821
|
reset() {
|
|
2851
|
-
return this._proxy
|
|
2822
|
+
return this._proxy.$resetBarcodeCaptureSession();
|
|
2852
2823
|
}
|
|
2853
2824
|
setModeEnabledState(enabled) {
|
|
2854
|
-
this._proxy
|
|
2825
|
+
this._proxy.$setBarcodeCaptureModeEnabledState({ enabled: enabled });
|
|
2855
2826
|
}
|
|
2856
2827
|
updateBarcodeCaptureMode() {
|
|
2857
|
-
return this._proxy
|
|
2828
|
+
return this._proxy.$updateBarcodeCaptureMode({ modeJson: JSON.stringify(this.barcodeCapture.toJSON()) });
|
|
2858
2829
|
}
|
|
2859
2830
|
applyBarcodeCaptureModeSettings(newSettings) {
|
|
2860
|
-
return this._proxy
|
|
2831
|
+
return this._proxy.$applyBarcodeCaptureModeSettings({ modeSettingsJson: JSON.stringify(newSettings.toJSON()) });
|
|
2861
2832
|
}
|
|
2862
2833
|
updateBarcodeCaptureOverlay(overlay) {
|
|
2863
|
-
return this._proxy
|
|
2834
|
+
return this._proxy.$updateBarcodeCaptureOverlay({ overlayJson: JSON.stringify(overlay.toJSON()) });
|
|
2864
2835
|
}
|
|
2865
2836
|
subscribeListener() {
|
|
2866
|
-
|
|
2867
|
-
this._proxy.
|
|
2868
|
-
|
|
2869
|
-
(_d = (_c = this._proxy).subscribeDidScanListener) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
2870
|
-
this.eventEmitter.on(BarcodeCaptureListenerEvents.inCallback, (value) => {
|
|
2871
|
-
this.barcodeCapture.isInListenerCallback = value;
|
|
2872
|
-
});
|
|
2873
|
-
this.eventEmitter.on(BarcodeCaptureListenerEvents.didUpdateSession, (data) => __awaiter(this, void 0, void 0, function* () {
|
|
2874
|
-
const payload = EventDataParser.parse(data);
|
|
2837
|
+
this._proxy.$registerBarcodeCaptureListenerForEvents();
|
|
2838
|
+
this._proxy.on$didUpdateSession = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
2839
|
+
const payload = EventDataParser.parse(ev.data);
|
|
2875
2840
|
if (payload === null) {
|
|
2876
2841
|
console.error('BarcodeCaptureListenerController.subscribeListener: didUpdateSession payload is null');
|
|
2877
2842
|
return;
|
|
2878
2843
|
}
|
|
2879
2844
|
const session = BarcodeCaptureSession.fromJSON(payload);
|
|
2880
2845
|
yield this.notifyListenersOfDidUpdateSession(session);
|
|
2881
|
-
this._proxy
|
|
2882
|
-
})
|
|
2883
|
-
this.
|
|
2884
|
-
const payload = EventDataParser.parse(data);
|
|
2846
|
+
this._proxy.$finishBarcodeCaptureDidUpdateSession({ enabled: this.barcodeCapture.isEnabled });
|
|
2847
|
+
});
|
|
2848
|
+
this._proxy.on$didScan = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
2849
|
+
const payload = EventDataParser.parse(ev.data);
|
|
2885
2850
|
if (payload === null) {
|
|
2886
2851
|
console.error('BarcodeCaptureListenerController.subscribeListener: didScan payload is null');
|
|
2887
2852
|
return;
|
|
2888
2853
|
}
|
|
2889
2854
|
const session = BarcodeCaptureSession.fromJSON(payload);
|
|
2890
2855
|
yield this.notifyListenersOfDidScan(session);
|
|
2891
|
-
this._proxy
|
|
2892
|
-
})
|
|
2856
|
+
this._proxy.$finishBarcodeCaptureDidScan({ enabled: this.barcodeCapture.isEnabled });
|
|
2857
|
+
});
|
|
2893
2858
|
}
|
|
2894
2859
|
unsubscribeListener() {
|
|
2895
|
-
this._proxy
|
|
2896
|
-
this.
|
|
2897
|
-
this.eventEmitter.removeAllListeners(BarcodeCaptureListenerEvents.didUpdateSession);
|
|
2898
|
-
this.eventEmitter.removeAllListeners(BarcodeCaptureListenerEvents.didScan);
|
|
2860
|
+
this._proxy.$unregisterBarcodeCaptureListenerForEvents();
|
|
2861
|
+
this._proxy.dispose();
|
|
2899
2862
|
}
|
|
2900
2863
|
notifyListenersOfDidUpdateSession(session) {
|
|
2901
|
-
return __awaiter(this,
|
|
2864
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
2902
2865
|
const mode = this.barcodeCapture;
|
|
2903
|
-
mode.isInListenerCallback = true;
|
|
2904
2866
|
for (const listener of mode.listeners) {
|
|
2905
2867
|
if (listener.didUpdateSession) {
|
|
2906
2868
|
listener.didUpdateSession(this.barcodeCapture, session, () => CameraController.getFrame(session.frameId));
|
|
2907
2869
|
}
|
|
2908
2870
|
}
|
|
2909
|
-
mode.isInListenerCallback = false;
|
|
2910
2871
|
});
|
|
2911
2872
|
}
|
|
2912
2873
|
notifyListenersOfDidScan(session) {
|
|
2913
|
-
return __awaiter(this,
|
|
2874
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
2914
2875
|
const mode = this.barcodeCapture;
|
|
2915
|
-
mode.isInListenerCallback = true;
|
|
2916
2876
|
for (const listener of mode.listeners) {
|
|
2917
2877
|
if (listener.didScan) {
|
|
2918
2878
|
listener.didScan(this.barcodeCapture, session, () => CameraController.getFrame(session.frameId));
|
|
2919
2879
|
}
|
|
2920
2880
|
}
|
|
2921
|
-
mode.isInListenerCallback = false;
|
|
2922
2881
|
});
|
|
2923
2882
|
}
|
|
2924
2883
|
}
|
|
@@ -2973,7 +2932,6 @@ class BarcodeCapture extends DefaultSerializeable {
|
|
|
2973
2932
|
this._isEnabled = true;
|
|
2974
2933
|
this.privateContext = null;
|
|
2975
2934
|
this.listeners = [];
|
|
2976
|
-
this.isInListenerCallback = false;
|
|
2977
2935
|
this.controller = BarcodeCaptureListenerController.forBarcodeCapture(this);
|
|
2978
2936
|
}
|
|
2979
2937
|
applySettings(settings) {
|
|
@@ -2995,22 +2953,19 @@ class BarcodeCapture extends DefaultSerializeable {
|
|
|
2995
2953
|
}
|
|
2996
2954
|
__decorate([
|
|
2997
2955
|
ignoreFromSerialization
|
|
2998
|
-
], BarcodeCapture.prototype, "_isEnabled",
|
|
2956
|
+
], BarcodeCapture.prototype, "_isEnabled", undefined);
|
|
2999
2957
|
__decorate([
|
|
3000
2958
|
nameForSerialization('feedback')
|
|
3001
|
-
], BarcodeCapture.prototype, "_feedback",
|
|
2959
|
+
], BarcodeCapture.prototype, "_feedback", undefined);
|
|
3002
2960
|
__decorate([
|
|
3003
2961
|
ignoreFromSerialization
|
|
3004
|
-
], BarcodeCapture.prototype, "privateContext",
|
|
2962
|
+
], BarcodeCapture.prototype, "privateContext", undefined);
|
|
3005
2963
|
__decorate([
|
|
3006
2964
|
ignoreFromSerialization
|
|
3007
|
-
], BarcodeCapture.prototype, "listeners",
|
|
2965
|
+
], BarcodeCapture.prototype, "listeners", undefined);
|
|
3008
2966
|
__decorate([
|
|
3009
2967
|
ignoreFromSerialization
|
|
3010
|
-
], BarcodeCapture.prototype, "controller",
|
|
3011
|
-
__decorate([
|
|
3012
|
-
ignoreFromSerialization
|
|
3013
|
-
], BarcodeCapture.prototype, "isInListenerCallback", void 0);
|
|
2968
|
+
], BarcodeCapture.prototype, "controller", undefined);
|
|
3014
2969
|
__decorate([
|
|
3015
2970
|
ignoreFromSerialization
|
|
3016
2971
|
], BarcodeCapture, "barcodeCaptureDefaults", null);
|
|
@@ -3092,26 +3047,26 @@ class BarcodeCaptureOverlay extends DefaultSerializeable {
|
|
|
3092
3047
|
}
|
|
3093
3048
|
__decorate([
|
|
3094
3049
|
ignoreFromSerialization
|
|
3095
|
-
], BarcodeCaptureOverlay.prototype, "barcodeCapture",
|
|
3050
|
+
], BarcodeCaptureOverlay.prototype, "barcodeCapture", undefined);
|
|
3096
3051
|
__decorate([
|
|
3097
3052
|
ignoreFromSerialization
|
|
3098
|
-
], BarcodeCaptureOverlay.prototype, "view",
|
|
3053
|
+
], BarcodeCaptureOverlay.prototype, "view", undefined);
|
|
3099
3054
|
__decorate([
|
|
3100
3055
|
nameForSerialization('shouldShowScanAreaGuides')
|
|
3101
|
-
], BarcodeCaptureOverlay.prototype, "_shouldShowScanAreaGuides",
|
|
3056
|
+
], BarcodeCaptureOverlay.prototype, "_shouldShowScanAreaGuides", undefined);
|
|
3102
3057
|
__decorate([
|
|
3103
3058
|
serializationDefault(NoViewfinder),
|
|
3104
3059
|
nameForSerialization('viewfinder')
|
|
3105
|
-
], BarcodeCaptureOverlay.prototype, "_viewfinder",
|
|
3060
|
+
], BarcodeCaptureOverlay.prototype, "_viewfinder", undefined);
|
|
3106
3061
|
__decorate([
|
|
3107
3062
|
nameForSerialization('style')
|
|
3108
|
-
], BarcodeCaptureOverlay.prototype, "_style",
|
|
3063
|
+
], BarcodeCaptureOverlay.prototype, "_style", undefined);
|
|
3109
3064
|
__decorate([
|
|
3110
3065
|
ignoreFromSerialization
|
|
3111
|
-
], BarcodeCaptureOverlay.prototype, "eventEmitter",
|
|
3066
|
+
], BarcodeCaptureOverlay.prototype, "eventEmitter", undefined);
|
|
3112
3067
|
__decorate([
|
|
3113
3068
|
nameForSerialization('brush')
|
|
3114
|
-
], BarcodeCaptureOverlay.prototype, "_brush",
|
|
3069
|
+
], BarcodeCaptureOverlay.prototype, "_brush", undefined);
|
|
3115
3070
|
__decorate([
|
|
3116
3071
|
ignoreFromSerialization
|
|
3117
3072
|
], BarcodeCaptureOverlay, "barcodeCaptureDefaults", null);
|
|
@@ -3190,13 +3145,13 @@ class BarcodeCaptureSettings extends DefaultSerializeable {
|
|
|
3190
3145
|
}
|
|
3191
3146
|
__decorate([
|
|
3192
3147
|
serializationDefault(NoneLocationSelection)
|
|
3193
|
-
], BarcodeCaptureSettings.prototype, "locationSelection",
|
|
3148
|
+
], BarcodeCaptureSettings.prototype, "locationSelection", undefined);
|
|
3194
3149
|
__decorate([
|
|
3195
3150
|
nameForSerialization('codeDuplicateFilter')
|
|
3196
|
-
], BarcodeCaptureSettings.prototype, "_codeDuplicateFilter",
|
|
3151
|
+
], BarcodeCaptureSettings.prototype, "_codeDuplicateFilter", undefined);
|
|
3197
3152
|
__decorate([
|
|
3198
3153
|
nameForSerialization('arucoDictionary')
|
|
3199
|
-
], BarcodeCaptureSettings.prototype, "_arucoDictionary",
|
|
3154
|
+
], BarcodeCaptureSettings.prototype, "_arucoDictionary", undefined);
|
|
3200
3155
|
__decorate([
|
|
3201
3156
|
ignoreFromSerialization
|
|
3202
3157
|
], BarcodeCaptureSettings, "barcodeDefaults", null);
|
|
@@ -3238,7 +3193,7 @@ class BarcodeCheckFeedback extends DefaultSerializeable {
|
|
|
3238
3193
|
}
|
|
3239
3194
|
updateFeedback() {
|
|
3240
3195
|
var _a;
|
|
3241
|
-
(_a = this.listenerController) === null || _a ===
|
|
3196
|
+
(_a = this.listenerController) === null || _a === undefined ? undefined : _a.updateFeedback(JSON.stringify(this.toJSON()));
|
|
3242
3197
|
}
|
|
3243
3198
|
constructor() {
|
|
3244
3199
|
super();
|
|
@@ -3251,13 +3206,13 @@ class BarcodeCheckFeedback extends DefaultSerializeable {
|
|
|
3251
3206
|
}
|
|
3252
3207
|
__decorate([
|
|
3253
3208
|
ignoreFromSerialization
|
|
3254
|
-
], BarcodeCheckFeedback.prototype, "listenerController",
|
|
3209
|
+
], BarcodeCheckFeedback.prototype, "listenerController", undefined);
|
|
3255
3210
|
__decorate([
|
|
3256
3211
|
nameForSerialization('scanned')
|
|
3257
|
-
], BarcodeCheckFeedback.prototype, "_scanned",
|
|
3212
|
+
], BarcodeCheckFeedback.prototype, "_scanned", undefined);
|
|
3258
3213
|
__decorate([
|
|
3259
3214
|
nameForSerialization('tapped')
|
|
3260
|
-
], BarcodeCheckFeedback.prototype, "_tapped",
|
|
3215
|
+
], BarcodeCheckFeedback.prototype, "_tapped", undefined);
|
|
3261
3216
|
__decorate([
|
|
3262
3217
|
ignoreFromSerialization
|
|
3263
3218
|
], BarcodeCheckFeedback, "barcodeCheckDefaults", null);
|
|
@@ -3308,16 +3263,16 @@ class BarcodeCheckSession extends DefaultSerializeable {
|
|
|
3308
3263
|
}
|
|
3309
3264
|
__decorate([
|
|
3310
3265
|
nameForSerialization('addedTrackedBarcodes')
|
|
3311
|
-
], BarcodeCheckSession.prototype, "_addedTrackedBarcodes",
|
|
3266
|
+
], BarcodeCheckSession.prototype, "_addedTrackedBarcodes", undefined);
|
|
3312
3267
|
__decorate([
|
|
3313
3268
|
nameForSerialization('removedTrackedBarcodes')
|
|
3314
|
-
], BarcodeCheckSession.prototype, "_removedTrackedBarcodes",
|
|
3269
|
+
], BarcodeCheckSession.prototype, "_removedTrackedBarcodes", undefined);
|
|
3315
3270
|
__decorate([
|
|
3316
3271
|
nameForSerialization('trackedBarcodes')
|
|
3317
|
-
], BarcodeCheckSession.prototype, "_trackedBarcodes",
|
|
3272
|
+
], BarcodeCheckSession.prototype, "_trackedBarcodes", undefined);
|
|
3318
3273
|
__decorate([
|
|
3319
3274
|
ignoreFromSerialization
|
|
3320
|
-
], BarcodeCheckSession.prototype, "sessionController",
|
|
3275
|
+
], BarcodeCheckSession.prototype, "sessionController", undefined);
|
|
3321
3276
|
|
|
3322
3277
|
var BarcodeCheckListenerEvents;
|
|
3323
3278
|
(function (BarcodeCheckListenerEvents) {
|
|
@@ -3346,8 +3301,8 @@ class BarcodeCheckListenerController {
|
|
|
3346
3301
|
subscribeListener() {
|
|
3347
3302
|
var _a, _b;
|
|
3348
3303
|
this._proxy.registerBarcodeCheckListener();
|
|
3349
|
-
(_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b ===
|
|
3350
|
-
this.eventEmitter.on(BarcodeCheckListenerEvents.didUpdateSession, (data) => __awaiter(this,
|
|
3304
|
+
(_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b === undefined ? undefined : _b.call(_a);
|
|
3305
|
+
this.eventEmitter.on(BarcodeCheckListenerEvents.didUpdateSession, (data) => __awaiter(this, undefined, undefined, function* () {
|
|
3351
3306
|
const payload = EventDataParser.parse(data);
|
|
3352
3307
|
if (payload === null) {
|
|
3353
3308
|
console.error('BarcodeCheckListenerController didUpdateSession payload is null');
|
|
@@ -3369,7 +3324,7 @@ class BarcodeCheckListenerController {
|
|
|
3369
3324
|
return FactoryMaker.getInstance('BarcodeCheckListenerProxy');
|
|
3370
3325
|
}
|
|
3371
3326
|
notifyListenersOfDidUpdateSession(session, frameId) {
|
|
3372
|
-
return __awaiter(this,
|
|
3327
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
3373
3328
|
const mode = this.barcodeCheck;
|
|
3374
3329
|
mode.isInListenerCallback = true;
|
|
3375
3330
|
for (const listener of mode.listeners) {
|
|
@@ -3458,22 +3413,22 @@ class BarcodeCheck extends DefaultSerializeable {
|
|
|
3458
3413
|
}
|
|
3459
3414
|
__decorate([
|
|
3460
3415
|
ignoreFromSerialization
|
|
3461
|
-
], BarcodeCheck.prototype, "privateContext",
|
|
3416
|
+
], BarcodeCheck.prototype, "privateContext", undefined);
|
|
3462
3417
|
__decorate([
|
|
3463
3418
|
ignoreFromSerialization
|
|
3464
|
-
], BarcodeCheck.prototype, "listenerController",
|
|
3419
|
+
], BarcodeCheck.prototype, "listenerController", undefined);
|
|
3465
3420
|
__decorate([
|
|
3466
3421
|
ignoreFromSerialization
|
|
3467
|
-
], BarcodeCheck.prototype, "isInListenerCallback",
|
|
3422
|
+
], BarcodeCheck.prototype, "isInListenerCallback", undefined);
|
|
3468
3423
|
__decorate([
|
|
3469
3424
|
nameForSerialization('feedback')
|
|
3470
|
-
], BarcodeCheck.prototype, "_feedback",
|
|
3425
|
+
], BarcodeCheck.prototype, "_feedback", undefined);
|
|
3471
3426
|
__decorate([
|
|
3472
3427
|
nameForSerialization('settings')
|
|
3473
|
-
], BarcodeCheck.prototype, "_settings",
|
|
3428
|
+
], BarcodeCheck.prototype, "_settings", undefined);
|
|
3474
3429
|
__decorate([
|
|
3475
3430
|
ignoreFromSerialization
|
|
3476
|
-
], BarcodeCheck.prototype, "listeners",
|
|
3431
|
+
], BarcodeCheck.prototype, "listeners", undefined);
|
|
3477
3432
|
__decorate([
|
|
3478
3433
|
ignoreFromSerialization
|
|
3479
3434
|
], BarcodeCheck, "barcodeCheckDefaults", null);
|
|
@@ -3518,22 +3473,22 @@ class BarcodeCheckCircleHighlight extends Observable {
|
|
|
3518
3473
|
}
|
|
3519
3474
|
__decorate([
|
|
3520
3475
|
nameForSerialization('type')
|
|
3521
|
-
], BarcodeCheckCircleHighlight.prototype, "_type",
|
|
3476
|
+
], BarcodeCheckCircleHighlight.prototype, "_type", undefined);
|
|
3522
3477
|
__decorate([
|
|
3523
3478
|
ignoreFromSerialization
|
|
3524
|
-
], BarcodeCheckCircleHighlight.prototype, "_barcode",
|
|
3479
|
+
], BarcodeCheckCircleHighlight.prototype, "_barcode", undefined);
|
|
3525
3480
|
__decorate([
|
|
3526
3481
|
nameForSerialization('brush')
|
|
3527
|
-
], BarcodeCheckCircleHighlight.prototype, "_brush",
|
|
3482
|
+
], BarcodeCheckCircleHighlight.prototype, "_brush", undefined);
|
|
3528
3483
|
__decorate([
|
|
3529
3484
|
nameForSerialization('icon')
|
|
3530
|
-
], BarcodeCheckCircleHighlight.prototype, "_icon",
|
|
3485
|
+
], BarcodeCheckCircleHighlight.prototype, "_icon", undefined);
|
|
3531
3486
|
__decorate([
|
|
3532
3487
|
nameForSerialization('preset')
|
|
3533
|
-
], BarcodeCheckCircleHighlight.prototype, "_preset",
|
|
3488
|
+
], BarcodeCheckCircleHighlight.prototype, "_preset", undefined);
|
|
3534
3489
|
__decorate([
|
|
3535
3490
|
nameForSerialization('size')
|
|
3536
|
-
], BarcodeCheckCircleHighlight.prototype, "_size",
|
|
3491
|
+
], BarcodeCheckCircleHighlight.prototype, "_size", undefined);
|
|
3537
3492
|
__decorate([
|
|
3538
3493
|
ignoreFromSerialization
|
|
3539
3494
|
], BarcodeCheckCircleHighlight, "barcodeCheckDefaults", null);
|
|
@@ -3610,9 +3565,9 @@ class BarcodeCheckInfoAnnotation extends Observable {
|
|
|
3610
3565
|
}
|
|
3611
3566
|
set footer(newValue) {
|
|
3612
3567
|
var _a, _b;
|
|
3613
|
-
(_a = this._footer) === null || _a ===
|
|
3568
|
+
(_a = this._footer) === null || _a === undefined ? undefined : _a.removeListener(this.footerChangedListener);
|
|
3614
3569
|
this._footer = newValue;
|
|
3615
|
-
(_b = this._footer) === null || _b ===
|
|
3570
|
+
(_b = this._footer) === null || _b === undefined ? undefined : _b.addListener(this.footerChangedListener);
|
|
3616
3571
|
this.notifyListeners('footer', newValue);
|
|
3617
3572
|
}
|
|
3618
3573
|
get hasTip() {
|
|
@@ -3627,9 +3582,9 @@ class BarcodeCheckInfoAnnotation extends Observable {
|
|
|
3627
3582
|
}
|
|
3628
3583
|
set header(newValue) {
|
|
3629
3584
|
var _a, _b;
|
|
3630
|
-
(_a = this._header) === null || _a ===
|
|
3585
|
+
(_a = this._header) === null || _a === undefined ? undefined : _a.removeListener(this.headerChangedListener);
|
|
3631
3586
|
this._header = newValue;
|
|
3632
|
-
(_b = this._header) === null || _b ===
|
|
3587
|
+
(_b = this._header) === null || _b === undefined ? undefined : _b.addListener(this.headerChangedListener);
|
|
3633
3588
|
this.notifyListeners('header', newValue);
|
|
3634
3589
|
}
|
|
3635
3590
|
get isEntireAnnotationTappable() {
|
|
@@ -3657,43 +3612,43 @@ class BarcodeCheckInfoAnnotation extends Observable {
|
|
|
3657
3612
|
}
|
|
3658
3613
|
__decorate([
|
|
3659
3614
|
ignoreFromSerialization
|
|
3660
|
-
], BarcodeCheckInfoAnnotation.prototype, "_barcode",
|
|
3615
|
+
], BarcodeCheckInfoAnnotation.prototype, "_barcode", undefined);
|
|
3661
3616
|
__decorate([
|
|
3662
3617
|
nameForSerialization('type')
|
|
3663
|
-
], BarcodeCheckInfoAnnotation.prototype, "_type",
|
|
3618
|
+
], BarcodeCheckInfoAnnotation.prototype, "_type", undefined);
|
|
3664
3619
|
__decorate([
|
|
3665
3620
|
nameForSerialization('annotationTrigger')
|
|
3666
|
-
], BarcodeCheckInfoAnnotation.prototype, "_annotationTrigger",
|
|
3621
|
+
], BarcodeCheckInfoAnnotation.prototype, "_annotationTrigger", undefined);
|
|
3667
3622
|
__decorate([
|
|
3668
3623
|
nameForSerialization('anchor')
|
|
3669
|
-
], BarcodeCheckInfoAnnotation.prototype, "_anchor",
|
|
3624
|
+
], BarcodeCheckInfoAnnotation.prototype, "_anchor", undefined);
|
|
3670
3625
|
__decorate([
|
|
3671
3626
|
nameForSerialization('backgroundColor')
|
|
3672
|
-
], BarcodeCheckInfoAnnotation.prototype, "_backgroundColor",
|
|
3627
|
+
], BarcodeCheckInfoAnnotation.prototype, "_backgroundColor", undefined);
|
|
3673
3628
|
__decorate([
|
|
3674
3629
|
nameForSerialization('body')
|
|
3675
|
-
], BarcodeCheckInfoAnnotation.prototype, "_body",
|
|
3630
|
+
], BarcodeCheckInfoAnnotation.prototype, "_body", undefined);
|
|
3676
3631
|
__decorate([
|
|
3677
3632
|
nameForSerialization('footer')
|
|
3678
|
-
], BarcodeCheckInfoAnnotation.prototype, "_footer",
|
|
3633
|
+
], BarcodeCheckInfoAnnotation.prototype, "_footer", undefined);
|
|
3679
3634
|
__decorate([
|
|
3680
3635
|
nameForSerialization('hasTip')
|
|
3681
|
-
], BarcodeCheckInfoAnnotation.prototype, "_hasTip",
|
|
3636
|
+
], BarcodeCheckInfoAnnotation.prototype, "_hasTip", undefined);
|
|
3682
3637
|
__decorate([
|
|
3683
3638
|
nameForSerialization('header')
|
|
3684
|
-
], BarcodeCheckInfoAnnotation.prototype, "_header",
|
|
3639
|
+
], BarcodeCheckInfoAnnotation.prototype, "_header", undefined);
|
|
3685
3640
|
__decorate([
|
|
3686
3641
|
nameForSerialization('isEntireAnnotationTappable')
|
|
3687
|
-
], BarcodeCheckInfoAnnotation.prototype, "_isEntireAnnotationTappable",
|
|
3642
|
+
], BarcodeCheckInfoAnnotation.prototype, "_isEntireAnnotationTappable", undefined);
|
|
3688
3643
|
__decorate([
|
|
3689
3644
|
ignoreFromSerialization
|
|
3690
|
-
], BarcodeCheckInfoAnnotation.prototype, "_listener",
|
|
3645
|
+
], BarcodeCheckInfoAnnotation.prototype, "_listener", undefined);
|
|
3691
3646
|
__decorate([
|
|
3692
3647
|
nameForSerialization('hasListener')
|
|
3693
|
-
], BarcodeCheckInfoAnnotation.prototype, "_hasListener",
|
|
3648
|
+
], BarcodeCheckInfoAnnotation.prototype, "_hasListener", undefined);
|
|
3694
3649
|
__decorate([
|
|
3695
3650
|
nameForSerialization('width')
|
|
3696
|
-
], BarcodeCheckInfoAnnotation.prototype, "_width",
|
|
3651
|
+
], BarcodeCheckInfoAnnotation.prototype, "_width", undefined);
|
|
3697
3652
|
__decorate([
|
|
3698
3653
|
ignoreFromSerialization
|
|
3699
3654
|
], BarcodeCheckInfoAnnotation, "barcodeCheckDefaults", null);
|
|
@@ -3787,31 +3742,31 @@ class BarcodeCheckInfoAnnotationBodyComponent extends Observable {
|
|
|
3787
3742
|
}
|
|
3788
3743
|
__decorate([
|
|
3789
3744
|
nameForSerialization('isRightIconTappable')
|
|
3790
|
-
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_isRightIconTappable",
|
|
3745
|
+
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_isRightIconTappable", undefined);
|
|
3791
3746
|
__decorate([
|
|
3792
3747
|
nameForSerialization('isLeftIconTappable')
|
|
3793
|
-
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_isLeftIconTappable",
|
|
3748
|
+
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_isLeftIconTappable", undefined);
|
|
3794
3749
|
__decorate([
|
|
3795
3750
|
nameForSerialization('rightIcon')
|
|
3796
|
-
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_rightIcon",
|
|
3751
|
+
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_rightIcon", undefined);
|
|
3797
3752
|
__decorate([
|
|
3798
3753
|
nameForSerialization('leftIcon')
|
|
3799
|
-
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_leftIcon",
|
|
3754
|
+
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_leftIcon", undefined);
|
|
3800
3755
|
__decorate([
|
|
3801
3756
|
nameForSerialization('text')
|
|
3802
|
-
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_text",
|
|
3757
|
+
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_text", undefined);
|
|
3803
3758
|
__decorate([
|
|
3804
3759
|
nameForSerialization('textAlign')
|
|
3805
|
-
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textAlign",
|
|
3760
|
+
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textAlign", undefined);
|
|
3806
3761
|
__decorate([
|
|
3807
3762
|
nameForSerialization('textColor')
|
|
3808
|
-
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textColor",
|
|
3763
|
+
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textColor", undefined);
|
|
3809
3764
|
__decorate([
|
|
3810
3765
|
nameForSerialization('textSize')
|
|
3811
|
-
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textSize",
|
|
3766
|
+
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_textSize", undefined);
|
|
3812
3767
|
__decorate([
|
|
3813
3768
|
nameForSerialization('fontFamily')
|
|
3814
|
-
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_fontFamily",
|
|
3769
|
+
], BarcodeCheckInfoAnnotationBodyComponent.prototype, "_fontFamily", undefined);
|
|
3815
3770
|
__decorate([
|
|
3816
3771
|
ignoreFromSerialization
|
|
3817
3772
|
], BarcodeCheckInfoAnnotationBodyComponent, "barcodeCheckDefaults", null);
|
|
@@ -3879,22 +3834,22 @@ class BarcodeCheckInfoAnnotationFooter extends Observable {
|
|
|
3879
3834
|
}
|
|
3880
3835
|
__decorate([
|
|
3881
3836
|
nameForSerialization('text')
|
|
3882
|
-
], BarcodeCheckInfoAnnotationFooter.prototype, "_text",
|
|
3837
|
+
], BarcodeCheckInfoAnnotationFooter.prototype, "_text", undefined);
|
|
3883
3838
|
__decorate([
|
|
3884
3839
|
nameForSerialization('icon')
|
|
3885
|
-
], BarcodeCheckInfoAnnotationFooter.prototype, "_icon",
|
|
3840
|
+
], BarcodeCheckInfoAnnotationFooter.prototype, "_icon", undefined);
|
|
3886
3841
|
__decorate([
|
|
3887
3842
|
nameForSerialization('textSize')
|
|
3888
|
-
], BarcodeCheckInfoAnnotationFooter.prototype, "_textSize",
|
|
3843
|
+
], BarcodeCheckInfoAnnotationFooter.prototype, "_textSize", undefined);
|
|
3889
3844
|
__decorate([
|
|
3890
3845
|
nameForSerialization('textColor')
|
|
3891
|
-
], BarcodeCheckInfoAnnotationFooter.prototype, "_textColor",
|
|
3846
|
+
], BarcodeCheckInfoAnnotationFooter.prototype, "_textColor", undefined);
|
|
3892
3847
|
__decorate([
|
|
3893
3848
|
nameForSerialization('backgroundColor')
|
|
3894
|
-
], BarcodeCheckInfoAnnotationFooter.prototype, "_backgroundColor",
|
|
3849
|
+
], BarcodeCheckInfoAnnotationFooter.prototype, "_backgroundColor", undefined);
|
|
3895
3850
|
__decorate([
|
|
3896
3851
|
nameForSerialization('fontFamily')
|
|
3897
|
-
], BarcodeCheckInfoAnnotationFooter.prototype, "_fontFamily",
|
|
3852
|
+
], BarcodeCheckInfoAnnotationFooter.prototype, "_fontFamily", undefined);
|
|
3898
3853
|
__decorate([
|
|
3899
3854
|
ignoreFromSerialization
|
|
3900
3855
|
], BarcodeCheckInfoAnnotationFooter, "barcodeCheckDefaults", null);
|
|
@@ -3962,22 +3917,22 @@ class BarcodeCheckInfoAnnotationHeader extends Observable {
|
|
|
3962
3917
|
}
|
|
3963
3918
|
__decorate([
|
|
3964
3919
|
nameForSerialization('text')
|
|
3965
|
-
], BarcodeCheckInfoAnnotationHeader.prototype, "_text",
|
|
3920
|
+
], BarcodeCheckInfoAnnotationHeader.prototype, "_text", undefined);
|
|
3966
3921
|
__decorate([
|
|
3967
3922
|
nameForSerialization('icon')
|
|
3968
|
-
], BarcodeCheckInfoAnnotationHeader.prototype, "_icon",
|
|
3923
|
+
], BarcodeCheckInfoAnnotationHeader.prototype, "_icon", undefined);
|
|
3969
3924
|
__decorate([
|
|
3970
3925
|
nameForSerialization('textSize')
|
|
3971
|
-
], BarcodeCheckInfoAnnotationHeader.prototype, "_textSize",
|
|
3926
|
+
], BarcodeCheckInfoAnnotationHeader.prototype, "_textSize", undefined);
|
|
3972
3927
|
__decorate([
|
|
3973
3928
|
nameForSerialization('textColor')
|
|
3974
|
-
], BarcodeCheckInfoAnnotationHeader.prototype, "_textColor",
|
|
3929
|
+
], BarcodeCheckInfoAnnotationHeader.prototype, "_textColor", undefined);
|
|
3975
3930
|
__decorate([
|
|
3976
3931
|
nameForSerialization('backgroundColor')
|
|
3977
|
-
], BarcodeCheckInfoAnnotationHeader.prototype, "_backgroundColor",
|
|
3932
|
+
], BarcodeCheckInfoAnnotationHeader.prototype, "_backgroundColor", undefined);
|
|
3978
3933
|
__decorate([
|
|
3979
3934
|
nameForSerialization('fontFamily')
|
|
3980
|
-
], BarcodeCheckInfoAnnotationHeader.prototype, "_fontFamily",
|
|
3935
|
+
], BarcodeCheckInfoAnnotationHeader.prototype, "_fontFamily", undefined);
|
|
3981
3936
|
__decorate([
|
|
3982
3937
|
ignoreFromSerialization
|
|
3983
3938
|
], BarcodeCheckInfoAnnotationHeader, "barcodeCheckDefaults", null);
|
|
@@ -4037,25 +3992,25 @@ class BarcodeCheckPopoverAnnotation extends Observable {
|
|
|
4037
3992
|
}
|
|
4038
3993
|
__decorate([
|
|
4039
3994
|
nameForSerialization('type')
|
|
4040
|
-
], BarcodeCheckPopoverAnnotation.prototype, "_type",
|
|
3995
|
+
], BarcodeCheckPopoverAnnotation.prototype, "_type", undefined);
|
|
4041
3996
|
__decorate([
|
|
4042
3997
|
nameForSerialization('isEntirePopoverTappable')
|
|
4043
|
-
], BarcodeCheckPopoverAnnotation.prototype, "_isEntirePopoverTappable",
|
|
3998
|
+
], BarcodeCheckPopoverAnnotation.prototype, "_isEntirePopoverTappable", undefined);
|
|
4044
3999
|
__decorate([
|
|
4045
4000
|
ignoreFromSerialization
|
|
4046
|
-
], BarcodeCheckPopoverAnnotation.prototype, "_listener",
|
|
4001
|
+
], BarcodeCheckPopoverAnnotation.prototype, "_listener", undefined);
|
|
4047
4002
|
__decorate([
|
|
4048
4003
|
nameForSerialization('hasListener')
|
|
4049
|
-
], BarcodeCheckPopoverAnnotation.prototype, "_hasListener",
|
|
4004
|
+
], BarcodeCheckPopoverAnnotation.prototype, "_hasListener", undefined);
|
|
4050
4005
|
__decorate([
|
|
4051
4006
|
nameForSerialization('annotationTrigger')
|
|
4052
|
-
], BarcodeCheckPopoverAnnotation.prototype, "_annotationTrigger",
|
|
4007
|
+
], BarcodeCheckPopoverAnnotation.prototype, "_annotationTrigger", undefined);
|
|
4053
4008
|
__decorate([
|
|
4054
4009
|
ignoreFromSerialization
|
|
4055
|
-
], BarcodeCheckPopoverAnnotation.prototype, "_barcode",
|
|
4010
|
+
], BarcodeCheckPopoverAnnotation.prototype, "_barcode", undefined);
|
|
4056
4011
|
__decorate([
|
|
4057
4012
|
nameForSerialization('buttons')
|
|
4058
|
-
], BarcodeCheckPopoverAnnotation.prototype, "_buttons",
|
|
4013
|
+
], BarcodeCheckPopoverAnnotation.prototype, "_buttons", undefined);
|
|
4059
4014
|
__decorate([
|
|
4060
4015
|
ignoreFromSerialization
|
|
4061
4016
|
], BarcodeCheckPopoverAnnotation, "barcodeCheckDefaults", null);
|
|
@@ -4104,19 +4059,19 @@ class BarcodeCheckPopoverAnnotationButton extends Observable {
|
|
|
4104
4059
|
}
|
|
4105
4060
|
__decorate([
|
|
4106
4061
|
nameForSerialization('textColor')
|
|
4107
|
-
], BarcodeCheckPopoverAnnotationButton.prototype, "_textColor",
|
|
4062
|
+
], BarcodeCheckPopoverAnnotationButton.prototype, "_textColor", undefined);
|
|
4108
4063
|
__decorate([
|
|
4109
4064
|
nameForSerialization('textSize')
|
|
4110
|
-
], BarcodeCheckPopoverAnnotationButton.prototype, "_textSize",
|
|
4065
|
+
], BarcodeCheckPopoverAnnotationButton.prototype, "_textSize", undefined);
|
|
4111
4066
|
__decorate([
|
|
4112
4067
|
nameForSerialization('fontFamily')
|
|
4113
|
-
], BarcodeCheckPopoverAnnotationButton.prototype, "_fontFamily",
|
|
4068
|
+
], BarcodeCheckPopoverAnnotationButton.prototype, "_fontFamily", undefined);
|
|
4114
4069
|
__decorate([
|
|
4115
4070
|
nameForSerialization('icon')
|
|
4116
|
-
], BarcodeCheckPopoverAnnotationButton.prototype, "_icon",
|
|
4071
|
+
], BarcodeCheckPopoverAnnotationButton.prototype, "_icon", undefined);
|
|
4117
4072
|
__decorate([
|
|
4118
4073
|
nameForSerialization('text')
|
|
4119
|
-
], BarcodeCheckPopoverAnnotationButton.prototype, "_text",
|
|
4074
|
+
], BarcodeCheckPopoverAnnotationButton.prototype, "_text", undefined);
|
|
4120
4075
|
__decorate([
|
|
4121
4076
|
ignoreFromSerialization
|
|
4122
4077
|
], BarcodeCheckPopoverAnnotationButton, "barcodeCheckDefaults", null);
|
|
@@ -4154,16 +4109,16 @@ class BarcodeCheckRectangleHighlight extends Observable {
|
|
|
4154
4109
|
}
|
|
4155
4110
|
__decorate([
|
|
4156
4111
|
ignoreFromSerialization
|
|
4157
|
-
], BarcodeCheckRectangleHighlight.prototype, "_barcode",
|
|
4112
|
+
], BarcodeCheckRectangleHighlight.prototype, "_barcode", undefined);
|
|
4158
4113
|
__decorate([
|
|
4159
4114
|
nameForSerialization('type')
|
|
4160
|
-
], BarcodeCheckRectangleHighlight.prototype, "_type",
|
|
4115
|
+
], BarcodeCheckRectangleHighlight.prototype, "_type", undefined);
|
|
4161
4116
|
__decorate([
|
|
4162
4117
|
nameForSerialization('brush')
|
|
4163
|
-
], BarcodeCheckRectangleHighlight.prototype, "_brush",
|
|
4118
|
+
], BarcodeCheckRectangleHighlight.prototype, "_brush", undefined);
|
|
4164
4119
|
__decorate([
|
|
4165
4120
|
nameForSerialization('icon')
|
|
4166
|
-
], BarcodeCheckRectangleHighlight.prototype, "_icon",
|
|
4121
|
+
], BarcodeCheckRectangleHighlight.prototype, "_icon", undefined);
|
|
4167
4122
|
__decorate([
|
|
4168
4123
|
ignoreFromSerialization
|
|
4169
4124
|
], BarcodeCheckRectangleHighlight, "barcodeCheckDefaults", null);
|
|
@@ -4275,28 +4230,28 @@ class BarcodeCheckStatusIconAnnotation extends Observable {
|
|
|
4275
4230
|
}
|
|
4276
4231
|
__decorate([
|
|
4277
4232
|
nameForSerialization('type')
|
|
4278
|
-
], BarcodeCheckStatusIconAnnotation.prototype, "_type",
|
|
4233
|
+
], BarcodeCheckStatusIconAnnotation.prototype, "_type", undefined);
|
|
4279
4234
|
__decorate([
|
|
4280
4235
|
nameForSerialization('barcode')
|
|
4281
|
-
], BarcodeCheckStatusIconAnnotation.prototype, "_barcode",
|
|
4236
|
+
], BarcodeCheckStatusIconAnnotation.prototype, "_barcode", undefined);
|
|
4282
4237
|
__decorate([
|
|
4283
4238
|
nameForSerialization('hasTip')
|
|
4284
|
-
], BarcodeCheckStatusIconAnnotation.prototype, "_hasTip",
|
|
4239
|
+
], BarcodeCheckStatusIconAnnotation.prototype, "_hasTip", undefined);
|
|
4285
4240
|
__decorate([
|
|
4286
4241
|
nameForSerialization('icon')
|
|
4287
|
-
], BarcodeCheckStatusIconAnnotation.prototype, "_icon",
|
|
4242
|
+
], BarcodeCheckStatusIconAnnotation.prototype, "_icon", undefined);
|
|
4288
4243
|
__decorate([
|
|
4289
4244
|
nameForSerialization('text')
|
|
4290
|
-
], BarcodeCheckStatusIconAnnotation.prototype, "_text",
|
|
4245
|
+
], BarcodeCheckStatusIconAnnotation.prototype, "_text", undefined);
|
|
4291
4246
|
__decorate([
|
|
4292
4247
|
nameForSerialization('textColor')
|
|
4293
|
-
], BarcodeCheckStatusIconAnnotation.prototype, "_textColor",
|
|
4248
|
+
], BarcodeCheckStatusIconAnnotation.prototype, "_textColor", undefined);
|
|
4294
4249
|
__decorate([
|
|
4295
4250
|
nameForSerialization('backgroundColor')
|
|
4296
|
-
], BarcodeCheckStatusIconAnnotation.prototype, "_backgroundColor",
|
|
4251
|
+
], BarcodeCheckStatusIconAnnotation.prototype, "_backgroundColor", undefined);
|
|
4297
4252
|
__decorate([
|
|
4298
4253
|
nameForSerialization('annotationTrigger')
|
|
4299
|
-
], BarcodeCheckStatusIconAnnotation.prototype, "_annotationTrigger",
|
|
4254
|
+
], BarcodeCheckStatusIconAnnotation.prototype, "_annotationTrigger", undefined);
|
|
4300
4255
|
__decorate([
|
|
4301
4256
|
ignoreFromSerialization
|
|
4302
4257
|
], BarcodeCheckStatusIconAnnotation, "barcodeCheckDefaults", null);
|
|
@@ -4347,7 +4302,7 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4347
4302
|
return viewController;
|
|
4348
4303
|
}
|
|
4349
4304
|
initialize() {
|
|
4350
|
-
return __awaiter(this,
|
|
4305
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
4351
4306
|
yield this.baseView.context.update();
|
|
4352
4307
|
if (this.autoCreateNativeView) {
|
|
4353
4308
|
yield this.createView();
|
|
@@ -4355,7 +4310,7 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4355
4310
|
});
|
|
4356
4311
|
}
|
|
4357
4312
|
createView() {
|
|
4358
|
-
return __awaiter(this,
|
|
4313
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
4359
4314
|
const barcodeCheckView = this.baseView.toJSON();
|
|
4360
4315
|
const json = JSON.stringify(barcodeCheckView);
|
|
4361
4316
|
return this._proxy.createView(this.baseView.nativeView, json);
|
|
@@ -4379,7 +4334,7 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4379
4334
|
if (!highlight) {
|
|
4380
4335
|
return;
|
|
4381
4336
|
}
|
|
4382
|
-
(_b = (_a = this.baseView) === null || _a ===
|
|
4337
|
+
(_b = (_a = this.baseView) === null || _a === undefined ? undefined : _a.barcodeCheckViewUiListener) === null || _b === undefined ? undefined : _b.didTapHighlightForBarcode(this.barcodeCheck, barcode, highlight);
|
|
4383
4338
|
});
|
|
4384
4339
|
this._proxy.subscribeViewListeners();
|
|
4385
4340
|
}
|
|
@@ -4389,7 +4344,7 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4389
4344
|
}
|
|
4390
4345
|
subscribeForAnnotationProviderEvents() {
|
|
4391
4346
|
this.unsubscribeForAnnotationProviderEvents();
|
|
4392
|
-
this.eventEmitter.on(BarcodeCheckViewEvents.annotationForBarcode, (data) => __awaiter(this,
|
|
4347
|
+
this.eventEmitter.on(BarcodeCheckViewEvents.annotationForBarcode, (data) => __awaiter(this, undefined, undefined, function* () {
|
|
4393
4348
|
var _a, _b;
|
|
4394
4349
|
const payload = EventDataParser.parse(data);
|
|
4395
4350
|
if (payload === null) {
|
|
@@ -4399,7 +4354,7 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4399
4354
|
const barcodeJson = JSON.parse(payload.barcode);
|
|
4400
4355
|
const barcode = Barcode.fromJSON(barcodeJson);
|
|
4401
4356
|
barcode.barcodeId = payload.barcodeId;
|
|
4402
|
-
const annotation = yield ((_b = (_a = this.baseView) === null || _a ===
|
|
4357
|
+
const annotation = yield ((_b = (_a = this.baseView) === null || _a === undefined ? undefined : _a.annotationProvider) === null || _b === undefined ? undefined : _b.annotationForBarcode(barcode));
|
|
4403
4358
|
if (annotation) {
|
|
4404
4359
|
this.annotationsCache[payload.barcodeId] = annotation;
|
|
4405
4360
|
annotation.addListener((property, value) => {
|
|
@@ -4422,11 +4377,11 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4422
4377
|
}
|
|
4423
4378
|
const result = {
|
|
4424
4379
|
barcodeId: payload.barcodeId,
|
|
4425
|
-
annotation: annotation === null || annotation ===
|
|
4380
|
+
annotation: annotation === null || annotation === undefined ? undefined : annotation.toJSON()
|
|
4426
4381
|
};
|
|
4427
4382
|
this._proxy.finishAnnotationForBarcode(JSON.stringify(result));
|
|
4428
4383
|
}));
|
|
4429
|
-
this.eventEmitter.on(BarcodeCheckViewEvents.didTapPopoverEvent, (data) => __awaiter(this,
|
|
4384
|
+
this.eventEmitter.on(BarcodeCheckViewEvents.didTapPopoverEvent, (data) => __awaiter(this, undefined, undefined, function* () {
|
|
4430
4385
|
var _a, _b;
|
|
4431
4386
|
const payload = EventDataParser.parse(data);
|
|
4432
4387
|
if (payload === null) {
|
|
@@ -4437,9 +4392,9 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4437
4392
|
if (!popover) {
|
|
4438
4393
|
return;
|
|
4439
4394
|
}
|
|
4440
|
-
(_b = (_a = popover.listener) === null || _a ===
|
|
4395
|
+
(_b = (_a = popover.listener) === null || _a === undefined ? undefined : _a.didTap) === null || _b === undefined ? undefined : _b.call(_a, popover);
|
|
4441
4396
|
}));
|
|
4442
|
-
this.eventEmitter.on(BarcodeCheckViewEvents.didTapPopoverButtonEvent, (data) => __awaiter(this,
|
|
4397
|
+
this.eventEmitter.on(BarcodeCheckViewEvents.didTapPopoverButtonEvent, (data) => __awaiter(this, undefined, undefined, function* () {
|
|
4443
4398
|
var _a, _b;
|
|
4444
4399
|
const payload = EventDataParser.parse(data);
|
|
4445
4400
|
if (payload === null) {
|
|
@@ -4451,9 +4406,9 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4451
4406
|
return;
|
|
4452
4407
|
}
|
|
4453
4408
|
const button = popover.buttons[payload.index];
|
|
4454
|
-
(_b = (_a = popover.listener) === null || _a ===
|
|
4409
|
+
(_b = (_a = popover.listener) === null || _a === undefined ? undefined : _a.didTapButton) === null || _b === undefined ? undefined : _b.call(_a, popover, button, payload.index);
|
|
4455
4410
|
}));
|
|
4456
|
-
this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationRightIconEvent, (data) => __awaiter(this,
|
|
4411
|
+
this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationRightIconEvent, (data) => __awaiter(this, undefined, undefined, function* () {
|
|
4457
4412
|
var _a, _b;
|
|
4458
4413
|
const payload = EventDataParser.parse(data);
|
|
4459
4414
|
if (payload === null) {
|
|
@@ -4465,9 +4420,9 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4465
4420
|
return;
|
|
4466
4421
|
}
|
|
4467
4422
|
const component = infoAnnotation.body[payload.componentIndex];
|
|
4468
|
-
(_b = (_a = infoAnnotation.listener) === null || _a ===
|
|
4423
|
+
(_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTapRightIcon) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation, component, payload.componentIndex);
|
|
4469
4424
|
}));
|
|
4470
|
-
this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationLeftIconEvent, (data) => __awaiter(this,
|
|
4425
|
+
this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationLeftIconEvent, (data) => __awaiter(this, undefined, undefined, function* () {
|
|
4471
4426
|
var _a, _b;
|
|
4472
4427
|
const payload = EventDataParser.parse(data);
|
|
4473
4428
|
if (payload === null) {
|
|
@@ -4479,9 +4434,9 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4479
4434
|
return;
|
|
4480
4435
|
}
|
|
4481
4436
|
const component = infoAnnotation.body[payload.componentIndex];
|
|
4482
|
-
(_b = (_a = infoAnnotation.listener) === null || _a ===
|
|
4437
|
+
(_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTapLeftIcon) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation, component, payload.componentIndex);
|
|
4483
4438
|
}));
|
|
4484
|
-
this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationEvent, (data) => __awaiter(this,
|
|
4439
|
+
this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationEvent, (data) => __awaiter(this, undefined, undefined, function* () {
|
|
4485
4440
|
var _a, _b;
|
|
4486
4441
|
const payload = EventDataParser.parse(data);
|
|
4487
4442
|
if (payload === null) {
|
|
@@ -4492,9 +4447,9 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4492
4447
|
if (infoAnnotation == null) {
|
|
4493
4448
|
return;
|
|
4494
4449
|
}
|
|
4495
|
-
(_b = (_a = infoAnnotation.listener) === null || _a ===
|
|
4450
|
+
(_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTap) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation);
|
|
4496
4451
|
}));
|
|
4497
|
-
this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationHeaderEvent, (data) => __awaiter(this,
|
|
4452
|
+
this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationHeaderEvent, (data) => __awaiter(this, undefined, undefined, function* () {
|
|
4498
4453
|
var _a, _b;
|
|
4499
4454
|
const payload = EventDataParser.parse(data);
|
|
4500
4455
|
if (payload === null) {
|
|
@@ -4505,9 +4460,9 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4505
4460
|
if (infoAnnotation == null) {
|
|
4506
4461
|
return;
|
|
4507
4462
|
}
|
|
4508
|
-
(_b = (_a = infoAnnotation.listener) === null || _a ===
|
|
4463
|
+
(_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTapHeader) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation);
|
|
4509
4464
|
}));
|
|
4510
|
-
this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationFooterEvent, (data) => __awaiter(this,
|
|
4465
|
+
this.eventEmitter.on(BarcodeCheckViewEvents.didTapInfoAnnotationFooterEvent, (data) => __awaiter(this, undefined, undefined, function* () {
|
|
4511
4466
|
var _a, _b;
|
|
4512
4467
|
const payload = EventDataParser.parse(data);
|
|
4513
4468
|
if (payload === null) {
|
|
@@ -4518,7 +4473,7 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4518
4473
|
if (infoAnnotation == null) {
|
|
4519
4474
|
return;
|
|
4520
4475
|
}
|
|
4521
|
-
(_b = (_a = infoAnnotation.listener) === null || _a ===
|
|
4476
|
+
(_b = (_a = infoAnnotation.listener) === null || _a === undefined ? undefined : _a.didTapFooter) === null || _b === undefined ? undefined : _b.call(_a, infoAnnotation);
|
|
4522
4477
|
}));
|
|
4523
4478
|
this._proxy.subscribeToAnnotationProviderEvents();
|
|
4524
4479
|
}
|
|
@@ -4528,7 +4483,7 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4528
4483
|
}
|
|
4529
4484
|
subscribeForHighlightProviderEvents() {
|
|
4530
4485
|
this.unsubscribeForHighlightProviderEvents();
|
|
4531
|
-
this.eventEmitter.on(BarcodeCheckViewEvents.highlightForBarcode, (data) => __awaiter(this,
|
|
4486
|
+
this.eventEmitter.on(BarcodeCheckViewEvents.highlightForBarcode, (data) => __awaiter(this, undefined, undefined, function* () {
|
|
4532
4487
|
var _a, _b;
|
|
4533
4488
|
const payload = EventDataParser.parse(data);
|
|
4534
4489
|
if (payload === null) {
|
|
@@ -4538,7 +4493,7 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4538
4493
|
const barcodeJson = JSON.parse(payload.barcode);
|
|
4539
4494
|
const barcode = Barcode.fromJSON(barcodeJson);
|
|
4540
4495
|
barcode.barcodeId = payload.barcodeId;
|
|
4541
|
-
const highlight = yield ((_b = (_a = this.baseView) === null || _a ===
|
|
4496
|
+
const highlight = yield ((_b = (_a = this.baseView) === null || _a === undefined ? undefined : _a.highlightProvider) === null || _b === undefined ? undefined : _b.highlightForBarcode(barcode));
|
|
4542
4497
|
if (highlight) {
|
|
4543
4498
|
this.highlightCache[payload.barcodeId] = highlight;
|
|
4544
4499
|
highlight.addListener(() => {
|
|
@@ -4549,7 +4504,7 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4549
4504
|
}
|
|
4550
4505
|
const result = {
|
|
4551
4506
|
barcodeId: payload.barcodeId,
|
|
4552
|
-
highlight: highlight === null || highlight ===
|
|
4507
|
+
highlight: highlight === null || highlight === undefined ? undefined : highlight.toJSON()
|
|
4553
4508
|
};
|
|
4554
4509
|
this._proxy.finishHighlightForBarcode(JSON.stringify(result));
|
|
4555
4510
|
}));
|
|
@@ -4560,7 +4515,7 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4560
4515
|
this.eventEmitter.off(BarcodeCheckViewEvents.highlightForBarcode);
|
|
4561
4516
|
}
|
|
4562
4517
|
setUiListener(listener) {
|
|
4563
|
-
return __awaiter(this,
|
|
4518
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
4564
4519
|
if (listener && !this.isListenerEnabled) {
|
|
4565
4520
|
this.isListenerEnabled = true;
|
|
4566
4521
|
this.subscribeForUiListenerEvents();
|
|
@@ -4572,7 +4527,7 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4572
4527
|
});
|
|
4573
4528
|
}
|
|
4574
4529
|
setAnnotationProvider(provider) {
|
|
4575
|
-
return __awaiter(this,
|
|
4530
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
4576
4531
|
if (provider != null) {
|
|
4577
4532
|
yield this._proxy.registerBarcodeCheckAnnotationProvider();
|
|
4578
4533
|
this.subscribeForAnnotationProviderEvents();
|
|
@@ -4584,7 +4539,7 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4584
4539
|
});
|
|
4585
4540
|
}
|
|
4586
4541
|
setHighlightProvider(provider) {
|
|
4587
|
-
return __awaiter(this,
|
|
4542
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
4588
4543
|
if (provider != null) {
|
|
4589
4544
|
yield this._proxy.registerBarcodeCheckHighlightProvider();
|
|
4590
4545
|
this.subscribeForHighlightProviderEvents();
|
|
@@ -4615,16 +4570,21 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4615
4570
|
const json = JSON.stringify(barcodeCheckView);
|
|
4616
4571
|
return this._proxy.update(json);
|
|
4617
4572
|
}
|
|
4573
|
+
reset() {
|
|
4574
|
+
this.highlightCache = {};
|
|
4575
|
+
this.annotationsCache = {};
|
|
4576
|
+
return this._proxy.barcodeCheckViewReset();
|
|
4577
|
+
}
|
|
4618
4578
|
}
|
|
4619
4579
|
__decorate([
|
|
4620
4580
|
ignoreFromSerialization
|
|
4621
|
-
], BarcodeCheckViewController.prototype, "autoCreateNativeView",
|
|
4581
|
+
], BarcodeCheckViewController.prototype, "autoCreateNativeView", undefined);
|
|
4622
4582
|
__decorate([
|
|
4623
4583
|
ignoreFromSerialization
|
|
4624
|
-
], BarcodeCheckViewController.prototype, "highlightCache",
|
|
4584
|
+
], BarcodeCheckViewController.prototype, "highlightCache", undefined);
|
|
4625
4585
|
__decorate([
|
|
4626
4586
|
ignoreFromSerialization
|
|
4627
|
-
], BarcodeCheckViewController.prototype, "annotationsCache",
|
|
4587
|
+
], BarcodeCheckViewController.prototype, "annotationsCache", undefined);
|
|
4628
4588
|
|
|
4629
4589
|
class BaseBarcodeCheckView extends DefaultSerializeable {
|
|
4630
4590
|
static get barcodeCheckDefaults() {
|
|
@@ -4653,9 +4613,9 @@ class BaseBarcodeCheckView extends DefaultSerializeable {
|
|
|
4653
4613
|
this._barcodeCheckViewSettings = barcodeCheckViewSettings;
|
|
4654
4614
|
this._cameraSettings = cameraSettings;
|
|
4655
4615
|
this._autoCreateNativeView = autoCreateNativeView;
|
|
4656
|
-
this._annotationProvider = annotationProvider !== null && annotationProvider !==
|
|
4657
|
-
this._highlightProvider = highlightProvider !== null && highlightProvider !==
|
|
4658
|
-
this._barcodeCheckViewUiListener = uiListener !== null && uiListener !==
|
|
4616
|
+
this._annotationProvider = annotationProvider !== null && annotationProvider !== undefined ? annotationProvider : null;
|
|
4617
|
+
this._highlightProvider = highlightProvider !== null && highlightProvider !== undefined ? highlightProvider : null;
|
|
4618
|
+
this._barcodeCheckViewUiListener = uiListener !== null && uiListener !== undefined ? uiListener : null;
|
|
4659
4619
|
this.nativeView = nativeView;
|
|
4660
4620
|
this.controller = BarcodeCheckViewController.forBarcodeCheckView(this._barcodeCheck, this, this._autoCreateNativeView);
|
|
4661
4621
|
}
|
|
@@ -4702,6 +4662,9 @@ class BaseBarcodeCheckView extends DefaultSerializeable {
|
|
|
4702
4662
|
// TODO: check if we need to change isStarted
|
|
4703
4663
|
return this.controller.pause();
|
|
4704
4664
|
}
|
|
4665
|
+
reset() {
|
|
4666
|
+
return this.controller.reset();
|
|
4667
|
+
}
|
|
4705
4668
|
get shouldShowTorchControl() {
|
|
4706
4669
|
return this._shouldShowTorchControl;
|
|
4707
4670
|
}
|
|
@@ -4784,52 +4747,52 @@ class BaseBarcodeCheckView extends DefaultSerializeable {
|
|
|
4784
4747
|
}
|
|
4785
4748
|
__decorate([
|
|
4786
4749
|
ignoreFromSerialization
|
|
4787
|
-
], BaseBarcodeCheckView.prototype, "_autoCreateNativeView",
|
|
4750
|
+
], BaseBarcodeCheckView.prototype, "_autoCreateNativeView", undefined);
|
|
4788
4751
|
__decorate([
|
|
4789
4752
|
ignoreFromSerialization
|
|
4790
|
-
], BaseBarcodeCheckView.prototype, "_annotationProvider",
|
|
4753
|
+
], BaseBarcodeCheckView.prototype, "_annotationProvider", undefined);
|
|
4791
4754
|
__decorate([
|
|
4792
4755
|
ignoreFromSerialization
|
|
4793
|
-
], BaseBarcodeCheckView.prototype, "_barcodeCheckViewUiListener",
|
|
4756
|
+
], BaseBarcodeCheckView.prototype, "_barcodeCheckViewUiListener", undefined);
|
|
4794
4757
|
__decorate([
|
|
4795
4758
|
ignoreFromSerialization
|
|
4796
|
-
], BaseBarcodeCheckView.prototype, "_highlightProvider",
|
|
4759
|
+
], BaseBarcodeCheckView.prototype, "_highlightProvider", undefined);
|
|
4797
4760
|
__decorate([
|
|
4798
4761
|
ignoreFromSerialization
|
|
4799
|
-
], BaseBarcodeCheckView.prototype, "nativeView",
|
|
4762
|
+
], BaseBarcodeCheckView.prototype, "nativeView", undefined);
|
|
4800
4763
|
__decorate([
|
|
4801
4764
|
nameForSerialization('barcodeCheck')
|
|
4802
|
-
], BaseBarcodeCheckView.prototype, "_barcodeCheck",
|
|
4765
|
+
], BaseBarcodeCheckView.prototype, "_barcodeCheck", undefined);
|
|
4803
4766
|
__decorate([
|
|
4804
4767
|
nameForSerialization('isStarted')
|
|
4805
|
-
], BaseBarcodeCheckView.prototype, "_isStarted",
|
|
4768
|
+
], BaseBarcodeCheckView.prototype, "_isStarted", undefined);
|
|
4806
4769
|
__decorate([
|
|
4807
4770
|
nameForSerialization('viewSettings')
|
|
4808
|
-
], BaseBarcodeCheckView.prototype, "_barcodeCheckViewSettings",
|
|
4771
|
+
], BaseBarcodeCheckView.prototype, "_barcodeCheckViewSettings", undefined);
|
|
4809
4772
|
__decorate([
|
|
4810
4773
|
nameForSerialization('cameraSettings')
|
|
4811
|
-
], BaseBarcodeCheckView.prototype, "_cameraSettings",
|
|
4774
|
+
], BaseBarcodeCheckView.prototype, "_cameraSettings", undefined);
|
|
4812
4775
|
__decorate([
|
|
4813
4776
|
nameForSerialization('dataCaptureContext')
|
|
4814
|
-
], BaseBarcodeCheckView.prototype, "_dataCaptureContext",
|
|
4777
|
+
], BaseBarcodeCheckView.prototype, "_dataCaptureContext", undefined);
|
|
4815
4778
|
__decorate([
|
|
4816
4779
|
nameForSerialization('shouldShowMacroControl')
|
|
4817
|
-
], BaseBarcodeCheckView.prototype, "_shouldShowMacroControl",
|
|
4780
|
+
], BaseBarcodeCheckView.prototype, "_shouldShowMacroControl", undefined);
|
|
4818
4781
|
__decorate([
|
|
4819
4782
|
nameForSerialization('macroModeControlPosition')
|
|
4820
|
-
], BaseBarcodeCheckView.prototype, "_macroModeControlPosition",
|
|
4783
|
+
], BaseBarcodeCheckView.prototype, "_macroModeControlPosition", undefined);
|
|
4821
4784
|
__decorate([
|
|
4822
4785
|
nameForSerialization('shouldShowTorchControl')
|
|
4823
|
-
], BaseBarcodeCheckView.prototype, "_shouldShowTorchControl",
|
|
4786
|
+
], BaseBarcodeCheckView.prototype, "_shouldShowTorchControl", undefined);
|
|
4824
4787
|
__decorate([
|
|
4825
4788
|
nameForSerialization('torchControlPosition')
|
|
4826
|
-
], BaseBarcodeCheckView.prototype, "_torchControlPosition",
|
|
4789
|
+
], BaseBarcodeCheckView.prototype, "_torchControlPosition", undefined);
|
|
4827
4790
|
__decorate([
|
|
4828
4791
|
nameForSerialization('shouldShowZoomControl')
|
|
4829
|
-
], BaseBarcodeCheckView.prototype, "_shouldShowZoomControl",
|
|
4792
|
+
], BaseBarcodeCheckView.prototype, "_shouldShowZoomControl", undefined);
|
|
4830
4793
|
__decorate([
|
|
4831
4794
|
nameForSerialization('zoomControlPosition')
|
|
4832
|
-
], BaseBarcodeCheckView.prototype, "_zoomControlPosition",
|
|
4795
|
+
], BaseBarcodeCheckView.prototype, "_zoomControlPosition", undefined);
|
|
4833
4796
|
__decorate([
|
|
4834
4797
|
ignoreFromSerialization
|
|
4835
4798
|
], BaseBarcodeCheckView, "barcodeCheckDefaults", null);
|
|
@@ -4868,13 +4831,13 @@ class BarcodeCheckViewSettings extends DefaultSerializeable {
|
|
|
4868
4831
|
}
|
|
4869
4832
|
__decorate([
|
|
4870
4833
|
nameForSerialization("soundEnabled")
|
|
4871
|
-
], BarcodeCheckViewSettings.prototype, "_soundEnabled",
|
|
4834
|
+
], BarcodeCheckViewSettings.prototype, "_soundEnabled", undefined);
|
|
4872
4835
|
__decorate([
|
|
4873
4836
|
nameForSerialization("hapticEnabled")
|
|
4874
|
-
], BarcodeCheckViewSettings.prototype, "_hapticEnabled",
|
|
4837
|
+
], BarcodeCheckViewSettings.prototype, "_hapticEnabled", undefined);
|
|
4875
4838
|
__decorate([
|
|
4876
4839
|
nameForSerialization("defaultCameraPosition")
|
|
4877
|
-
], BarcodeCheckViewSettings.prototype, "_defaultCameraPosition",
|
|
4840
|
+
], BarcodeCheckViewSettings.prototype, "_defaultCameraPosition", undefined);
|
|
4878
4841
|
__decorate([
|
|
4879
4842
|
ignoreFromSerialization
|
|
4880
4843
|
], BarcodeCheckViewSettings, "barcodeCheckDefaults", null);
|
|
@@ -4927,15 +4890,15 @@ class BarcodeSelectionFeedback extends DefaultSerializeable {
|
|
|
4927
4890
|
}
|
|
4928
4891
|
updateFeedback() {
|
|
4929
4892
|
var _a;
|
|
4930
|
-
(_a = this.controller) === null || _a ===
|
|
4893
|
+
(_a = this.controller) === null || _a === undefined ? undefined : _a.updateFeedback(JSON.stringify(this.toJSON()));
|
|
4931
4894
|
}
|
|
4932
4895
|
}
|
|
4933
4896
|
__decorate([
|
|
4934
4897
|
ignoreFromSerialization
|
|
4935
|
-
], BarcodeSelectionFeedback.prototype, "controller",
|
|
4898
|
+
], BarcodeSelectionFeedback.prototype, "controller", undefined);
|
|
4936
4899
|
__decorate([
|
|
4937
4900
|
nameForSerialization('selection')
|
|
4938
|
-
], BarcodeSelectionFeedback.prototype, "_selection",
|
|
4901
|
+
], BarcodeSelectionFeedback.prototype, "_selection", undefined);
|
|
4939
4902
|
__decorate([
|
|
4940
4903
|
ignoreFromSerialization
|
|
4941
4904
|
], BarcodeSelectionFeedback, "barcodeSelectionDefaults", null);
|
|
@@ -4964,7 +4927,7 @@ class BarcodeSelectionSession {
|
|
|
4964
4927
|
session._newlyUnselectedBarcodes = sessionJson.newlyUnselectedBarcodes
|
|
4965
4928
|
.map(Barcode.fromJSON);
|
|
4966
4929
|
session._frameSequenceID = sessionJson.frameSequenceId;
|
|
4967
|
-
session.frameId = (_a = json.frameId) !== null && _a !==
|
|
4930
|
+
session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
|
|
4968
4931
|
return session;
|
|
4969
4932
|
}
|
|
4970
4933
|
getCount(barcode) {
|
|
@@ -4977,26 +4940,22 @@ class BarcodeSelectionSession {
|
|
|
4977
4940
|
|
|
4978
4941
|
var BarcodeSelectionListenerEvents;
|
|
4979
4942
|
(function (BarcodeSelectionListenerEvents) {
|
|
4980
|
-
BarcodeSelectionListenerEvents["inCallback"] = "BarcodeSelectionListener.inCallback";
|
|
4981
4943
|
BarcodeSelectionListenerEvents["didUpdateSelection"] = "BarcodeSelectionListener.didUpdateSelection";
|
|
4982
4944
|
BarcodeSelectionListenerEvents["didUpdateSession"] = "BarcodeSelectionListener.didUpdateSession";
|
|
4983
4945
|
})(BarcodeSelectionListenerEvents || (BarcodeSelectionListenerEvents = {}));
|
|
4984
|
-
class BarcodeSelectionListenerController {
|
|
4985
|
-
get _proxy() {
|
|
4986
|
-
return FactoryMaker.getInstance('BarcodeSelectionListenerProxy');
|
|
4987
|
-
}
|
|
4946
|
+
class BarcodeSelectionListenerController extends BaseNewController {
|
|
4988
4947
|
static forBarcodeSelection(barcodeSelection) {
|
|
4989
4948
|
const controller = new BarcodeSelectionListenerController();
|
|
4990
4949
|
controller.barcodeSelection = barcodeSelection;
|
|
4991
|
-
controller._proxy
|
|
4950
|
+
controller._proxy.$setBarcodeSelectionModeEnabledState = () => barcodeSelection.isEnabled;
|
|
4992
4951
|
return controller;
|
|
4993
4952
|
}
|
|
4994
4953
|
constructor() {
|
|
4995
|
-
|
|
4954
|
+
super('BarcodeSelectionListenerProxy');
|
|
4996
4955
|
}
|
|
4997
4956
|
getCount(barcode) {
|
|
4998
|
-
return __awaiter(this,
|
|
4999
|
-
const result = yield this._proxy
|
|
4957
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
4958
|
+
const result = yield this._proxy.$getCountForBarcodeInBarcodeSelectionSession({ selectionIdentifier: barcode.selectionIdentifier });
|
|
5000
4959
|
if (result == null) {
|
|
5001
4960
|
return 0;
|
|
5002
4961
|
}
|
|
@@ -5004,15 +4963,12 @@ class BarcodeSelectionListenerController {
|
|
|
5004
4963
|
});
|
|
5005
4964
|
}
|
|
5006
4965
|
reset() {
|
|
5007
|
-
return this._proxy
|
|
4966
|
+
return this._proxy.$resetBarcodeSelectionSession();
|
|
5008
4967
|
}
|
|
5009
4968
|
subscribeListener() {
|
|
5010
|
-
|
|
5011
|
-
this._proxy.
|
|
5012
|
-
|
|
5013
|
-
(_d = (_c = this._proxy).subscribeDidUpdateSession) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
5014
|
-
this.eventEmitter.on(BarcodeSelectionListenerEvents.didUpdateSelection, (data) => __awaiter(this, void 0, void 0, function* () {
|
|
5015
|
-
const payload = EventDataParser.parse(data);
|
|
4969
|
+
this._proxy.$registerBarcodeSelectionListenerForEvents();
|
|
4970
|
+
this._proxy.on$didUpdateSelection = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
4971
|
+
const payload = EventDataParser.parse(ev.data);
|
|
5016
4972
|
if (payload === null) {
|
|
5017
4973
|
console.error('BarcodeSelectionListenerController didUpdateSelection payload is null');
|
|
5018
4974
|
return;
|
|
@@ -5020,10 +4976,10 @@ class BarcodeSelectionListenerController {
|
|
|
5020
4976
|
const session = BarcodeSelectionSession.fromJSON(payload);
|
|
5021
4977
|
session.listenerController = this;
|
|
5022
4978
|
yield this.notifyListenersOfDidUpdateSelection(session);
|
|
5023
|
-
this._proxy
|
|
5024
|
-
})
|
|
5025
|
-
this.
|
|
5026
|
-
const payload = EventDataParser.parse(data);
|
|
4979
|
+
this._proxy.$finishBarcodeSelectionDidSelect({ enabled: this.barcodeSelection.isEnabled });
|
|
4980
|
+
});
|
|
4981
|
+
this._proxy.on$didUpdateSession = (ev) => __awaiter(this, undefined, undefined, function* () {
|
|
4982
|
+
const payload = EventDataParser.parse(ev.data);
|
|
5027
4983
|
if (payload === null) {
|
|
5028
4984
|
console.error('BarcodeSelectionListenerController didUpdateSession payload is null');
|
|
5029
4985
|
return;
|
|
@@ -5031,76 +4987,71 @@ class BarcodeSelectionListenerController {
|
|
|
5031
4987
|
const session = BarcodeSelectionSession.fromJSON(payload);
|
|
5032
4988
|
session.listenerController = this;
|
|
5033
4989
|
yield this.notifyListenersOfDidUpdateSession(session);
|
|
5034
|
-
this._proxy
|
|
5035
|
-
})
|
|
4990
|
+
this._proxy.$finishBarcodeSelectionDidUpdateSession({ enabled: this.barcodeSelection.isEnabled });
|
|
4991
|
+
});
|
|
5036
4992
|
}
|
|
5037
4993
|
unsubscribeListener() {
|
|
5038
|
-
this._proxy
|
|
5039
|
-
this.
|
|
5040
|
-
this.eventEmitter.removeAllListeners(BarcodeSelectionListenerEvents.didUpdateSession);
|
|
4994
|
+
this._proxy.$unregisterBarcodeSelectionListenerForEvents();
|
|
4995
|
+
this._proxy.dispose();
|
|
5041
4996
|
}
|
|
5042
4997
|
notifyListenersOfDidUpdateSelection(session) {
|
|
5043
|
-
return __awaiter(this,
|
|
4998
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
5044
4999
|
const mode = this.barcodeSelection;
|
|
5045
|
-
mode.isInListenerCallback = true;
|
|
5046
5000
|
for (const listener of mode.listeners) {
|
|
5047
5001
|
if (listener.didUpdateSelection) {
|
|
5048
5002
|
yield listener.didUpdateSelection(this.barcodeSelection, session, () => CameraController.getFrameOrNull(session.frameId));
|
|
5049
5003
|
}
|
|
5050
5004
|
}
|
|
5051
|
-
mode.isInListenerCallback = false;
|
|
5052
5005
|
});
|
|
5053
5006
|
}
|
|
5054
5007
|
notifyListenersOfDidUpdateSession(session) {
|
|
5055
|
-
return __awaiter(this,
|
|
5008
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
5056
5009
|
const mode = this.barcodeSelection;
|
|
5057
|
-
mode.isInListenerCallback = true;
|
|
5058
5010
|
for (const listener of mode.listeners) {
|
|
5059
5011
|
if (listener.didUpdateSession) {
|
|
5060
5012
|
yield listener.didUpdateSession(this.barcodeSelection, session, () => CameraController.getFrameOrNull(session.frameId));
|
|
5061
5013
|
}
|
|
5062
5014
|
}
|
|
5063
|
-
mode.isInListenerCallback = false;
|
|
5064
5015
|
});
|
|
5065
5016
|
}
|
|
5066
5017
|
}
|
|
5067
5018
|
|
|
5068
|
-
class BarcodeSelectionController {
|
|
5069
|
-
|
|
5070
|
-
|
|
5019
|
+
class BarcodeSelectionController extends BaseNewController {
|
|
5020
|
+
constructor() {
|
|
5021
|
+
super('BarcodeSelectionProxy');
|
|
5071
5022
|
}
|
|
5072
5023
|
unfreezeCamera() {
|
|
5073
|
-
return this._proxy
|
|
5024
|
+
return this._proxy.$unfreezeCameraInBarcodeSelection();
|
|
5074
5025
|
}
|
|
5075
5026
|
reset() {
|
|
5076
|
-
return this._proxy
|
|
5027
|
+
return this._proxy.$resetBarcodeSelection();
|
|
5077
5028
|
}
|
|
5078
5029
|
selectAimedBarcode() {
|
|
5079
|
-
return this._proxy
|
|
5030
|
+
return this._proxy.$selectAimedBarcode();
|
|
5080
5031
|
}
|
|
5081
5032
|
unselectBarcodes(barcodes) {
|
|
5082
5033
|
const barcodesJson = this.convertBarcodesToJson(barcodes);
|
|
5083
|
-
return this._proxy
|
|
5034
|
+
return this._proxy.$unselectBarcodes({ barcodesJson: JSON.stringify(barcodesJson) });
|
|
5084
5035
|
}
|
|
5085
5036
|
setSelectBarcodeEnabled(barcode, enabled) {
|
|
5086
5037
|
const barcodesJson = this.convertBarcodesToJson([barcode]);
|
|
5087
|
-
return this._proxy
|
|
5038
|
+
return this._proxy.$setSelectBarcodeEnabled({ barcodeJson: JSON.stringify(barcodesJson[0]), enabled: enabled });
|
|
5088
5039
|
}
|
|
5089
5040
|
increaseCountForBarcodes(barcodes) {
|
|
5090
5041
|
const barcodesJson = this.convertBarcodesToJson(barcodes);
|
|
5091
|
-
return this._proxy
|
|
5042
|
+
return this._proxy.$increaseCountForBarcodes({ barcodeJson: JSON.stringify(barcodesJson) });
|
|
5092
5043
|
}
|
|
5093
5044
|
setModeEnabledState(enabled) {
|
|
5094
|
-
this._proxy
|
|
5045
|
+
this._proxy.$setBarcodeSelectionModeEnabledState({ enabled: enabled });
|
|
5095
5046
|
}
|
|
5096
5047
|
updateBarcodeSelectionMode(barcodeSelection) {
|
|
5097
|
-
return this._proxy
|
|
5048
|
+
return this._proxy.$updateBarcodeSelectionMode({ modeJson: JSON.stringify(barcodeSelection.toJSON()) });
|
|
5098
5049
|
}
|
|
5099
5050
|
applyBarcodeSelectionModeSettings(newSettings) {
|
|
5100
|
-
return this._proxy
|
|
5051
|
+
return this._proxy.$applyBarcodeSelectionModeSettings({ modeSettingsJson: JSON.stringify(newSettings.toJSON()) });
|
|
5101
5052
|
}
|
|
5102
5053
|
updateFeedback(feedbackJson) {
|
|
5103
|
-
this._proxy
|
|
5054
|
+
this._proxy.$updateBarcodeSelectionFeedback({ feedbackJson: feedbackJson });
|
|
5104
5055
|
}
|
|
5105
5056
|
convertBarcodesToJson(barcodes) {
|
|
5106
5057
|
return barcodes.flat().map((barcode) => ({
|
|
@@ -5172,7 +5123,6 @@ class BarcodeSelection extends DefaultSerializeable {
|
|
|
5172
5123
|
this._pointOfInterest = null;
|
|
5173
5124
|
this.privateContext = null;
|
|
5174
5125
|
this.listeners = [];
|
|
5175
|
-
this.isInListenerCallback = false;
|
|
5176
5126
|
this.listenerController = BarcodeSelectionListenerController.forBarcodeSelection(this);
|
|
5177
5127
|
this.modeController = new BarcodeSelectionController();
|
|
5178
5128
|
this._feedback.controller = this.modeController;
|
|
@@ -5217,28 +5167,25 @@ class BarcodeSelection extends DefaultSerializeable {
|
|
|
5217
5167
|
}
|
|
5218
5168
|
__decorate([
|
|
5219
5169
|
ignoreFromSerialization
|
|
5220
|
-
], BarcodeSelection.prototype, "_isEnabled",
|
|
5170
|
+
], BarcodeSelection.prototype, "_isEnabled", undefined);
|
|
5221
5171
|
__decorate([
|
|
5222
5172
|
nameForSerialization('feedback')
|
|
5223
|
-
], BarcodeSelection.prototype, "_feedback",
|
|
5173
|
+
], BarcodeSelection.prototype, "_feedback", undefined);
|
|
5224
5174
|
__decorate([
|
|
5225
5175
|
nameForSerialization('pointOfInterest')
|
|
5226
|
-
], BarcodeSelection.prototype, "_pointOfInterest",
|
|
5227
|
-
__decorate([
|
|
5228
|
-
ignoreFromSerialization
|
|
5229
|
-
], BarcodeSelection.prototype, "privateContext", void 0);
|
|
5176
|
+
], BarcodeSelection.prototype, "_pointOfInterest", undefined);
|
|
5230
5177
|
__decorate([
|
|
5231
5178
|
ignoreFromSerialization
|
|
5232
|
-
], BarcodeSelection.prototype, "
|
|
5179
|
+
], BarcodeSelection.prototype, "privateContext", undefined);
|
|
5233
5180
|
__decorate([
|
|
5234
5181
|
ignoreFromSerialization
|
|
5235
|
-
], BarcodeSelection.prototype, "
|
|
5182
|
+
], BarcodeSelection.prototype, "listeners", undefined);
|
|
5236
5183
|
__decorate([
|
|
5237
5184
|
ignoreFromSerialization
|
|
5238
|
-
], BarcodeSelection.prototype, "
|
|
5185
|
+
], BarcodeSelection.prototype, "listenerController", undefined);
|
|
5239
5186
|
__decorate([
|
|
5240
5187
|
ignoreFromSerialization
|
|
5241
|
-
], BarcodeSelection.prototype, "
|
|
5188
|
+
], BarcodeSelection.prototype, "modeController", undefined);
|
|
5242
5189
|
__decorate([
|
|
5243
5190
|
ignoreFromSerialization
|
|
5244
5191
|
], BarcodeSelection, "barcodeSelectionDefaults", null);
|
|
@@ -5275,31 +5222,26 @@ var BarcodeSelectionTypeName;
|
|
|
5275
5222
|
|
|
5276
5223
|
var BarcodeSelectionBrushProviderEvents;
|
|
5277
5224
|
(function (BarcodeSelectionBrushProviderEvents) {
|
|
5278
|
-
BarcodeSelectionBrushProviderEvents["inCallback"] = "BarcodeSelectionAimedBrushProvider.inCallback";
|
|
5279
5225
|
BarcodeSelectionBrushProviderEvents["brushForAimedBarcode"] = "BarcodeSelectionAimedBrushProvider.brushForBarcode";
|
|
5280
5226
|
BarcodeSelectionBrushProviderEvents["brushForTrackedBarcode"] = "BarcodeSelectionTrackedBrushProvider.brushForBarcode";
|
|
5281
5227
|
})(BarcodeSelectionBrushProviderEvents || (BarcodeSelectionBrushProviderEvents = {}));
|
|
5282
|
-
class BarcodeSelectionOverlayController {
|
|
5283
|
-
get _proxy() {
|
|
5284
|
-
return FactoryMaker.getInstance('BarcodeSelectionOverlayProxy');
|
|
5285
|
-
}
|
|
5228
|
+
class BarcodeSelectionOverlayController extends BaseNewController {
|
|
5286
5229
|
constructor() {
|
|
5287
|
-
|
|
5230
|
+
super('BarcodeSelectionOverlayProxy');
|
|
5288
5231
|
}
|
|
5289
5232
|
setTextForAimToSelectAutoHint(text) {
|
|
5290
|
-
return __awaiter(this,
|
|
5291
|
-
return yield this._proxy
|
|
5233
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
5234
|
+
return yield this._proxy.$setTextForAimToSelectAutoHint({ text });
|
|
5292
5235
|
});
|
|
5293
5236
|
}
|
|
5294
5237
|
setAimedBarcodeBrushProvider(brushProvider) {
|
|
5295
5238
|
if (!brushProvider) {
|
|
5296
|
-
this.
|
|
5297
|
-
return this._proxy
|
|
5239
|
+
this._proxy.on$brushForAimedBarcode = () => { };
|
|
5240
|
+
return this._proxy.$removeAimedBarcodeBrushProvider();
|
|
5298
5241
|
}
|
|
5299
|
-
const subscriptionResult = this._proxy
|
|
5300
|
-
this._proxy.
|
|
5301
|
-
|
|
5302
|
-
const payload = EventDataParser.parse(data);
|
|
5242
|
+
const subscriptionResult = this._proxy.$setAimedBarcodeBrushProvider();
|
|
5243
|
+
this._proxy.on$brushForAimedBarcode = (ev) => {
|
|
5244
|
+
const payload = EventDataParser.parse(ev.data);
|
|
5303
5245
|
if (payload === null) {
|
|
5304
5246
|
console.error('BarcodeSelectionOverlayController brushForAimedBarcode payload is null');
|
|
5305
5247
|
return;
|
|
@@ -5310,19 +5252,18 @@ class BarcodeSelectionOverlayController {
|
|
|
5310
5252
|
if (brushProvider.brushForBarcode) {
|
|
5311
5253
|
brush = brushProvider.brushForBarcode(barcode);
|
|
5312
5254
|
}
|
|
5313
|
-
this._proxy
|
|
5314
|
-
}
|
|
5255
|
+
this._proxy.$finishBrushForAimedBarcodeCallback({ brushJson: brush ? JSON.stringify(brush.toJSON()) : null, selectionIdentifier: barcode.selectionIdentifier });
|
|
5256
|
+
};
|
|
5315
5257
|
return subscriptionResult;
|
|
5316
5258
|
}
|
|
5317
5259
|
setTrackedBarcodeBrushProvider(brushProvider) {
|
|
5318
5260
|
if (!brushProvider) {
|
|
5319
|
-
this.
|
|
5320
|
-
return this._proxy
|
|
5261
|
+
this._proxy.on$brushForTrackedBarcode = () => { };
|
|
5262
|
+
return this._proxy.$removeTrackedBarcodeBrushProvider();
|
|
5321
5263
|
}
|
|
5322
|
-
const subscriptionResult = this._proxy
|
|
5323
|
-
this._proxy.
|
|
5324
|
-
|
|
5325
|
-
const payload = EventDataParser.parse(data);
|
|
5264
|
+
const subscriptionResult = this._proxy.$setTrackedBarcodeBrushProvider();
|
|
5265
|
+
this._proxy.on$brushForTrackedBarcode = (ev) => {
|
|
5266
|
+
const payload = EventDataParser.parse(ev.data);
|
|
5326
5267
|
if (payload === null) {
|
|
5327
5268
|
console.error('BarcodeSelectionBrushProvider brushForTrackedBarcode payload is null');
|
|
5328
5269
|
return;
|
|
@@ -5333,20 +5274,19 @@ class BarcodeSelectionOverlayController {
|
|
|
5333
5274
|
if (brushProvider.brushForBarcode) {
|
|
5334
5275
|
brush = brushProvider.brushForBarcode(barcode);
|
|
5335
5276
|
}
|
|
5336
|
-
this._proxy
|
|
5337
|
-
}
|
|
5277
|
+
this._proxy.$finishBrushForTrackedBarcodeCallback({ brushJson: brush ? JSON.stringify(brush.toJSON()) : null, selectionIdentifier: barcode.selectionIdentifier });
|
|
5278
|
+
};
|
|
5338
5279
|
return subscriptionResult;
|
|
5339
5280
|
}
|
|
5340
5281
|
updateBarcodeSelectionBasicOverlay(overlay) {
|
|
5341
|
-
return this._proxy
|
|
5282
|
+
return this._proxy.$updateBarcodeSelectionBasicOverlay({ overlayJson: JSON.stringify(overlay.toJSON()) });
|
|
5342
5283
|
}
|
|
5343
5284
|
// TODO: We need to unsubscribe from the providers when the overlay is removed. Need spec.
|
|
5344
5285
|
// https://scandit.atlassian.net/browse/SDC-16608
|
|
5345
5286
|
unsubscribeProviders() {
|
|
5346
|
-
this.
|
|
5347
|
-
this.
|
|
5348
|
-
this._proxy.
|
|
5349
|
-
this._proxy.removeTrackedBarcodeBrushProvider();
|
|
5287
|
+
this._proxy.$removeAimedBarcodeBrushProvider();
|
|
5288
|
+
this._proxy.$removeTrackedBarcodeBrushProvider();
|
|
5289
|
+
this._proxy.dispose();
|
|
5350
5290
|
}
|
|
5351
5291
|
}
|
|
5352
5292
|
|
|
@@ -5445,37 +5385,37 @@ class BarcodeSelectionBasicOverlay extends DefaultSerializeable {
|
|
|
5445
5385
|
}
|
|
5446
5386
|
__decorate([
|
|
5447
5387
|
ignoreFromSerialization
|
|
5448
|
-
], BarcodeSelectionBasicOverlay.prototype, "barcodeSelection",
|
|
5388
|
+
], BarcodeSelectionBasicOverlay.prototype, "barcodeSelection", undefined);
|
|
5449
5389
|
__decorate([
|
|
5450
5390
|
ignoreFromSerialization
|
|
5451
|
-
], BarcodeSelectionBasicOverlay.prototype, "overlayController",
|
|
5391
|
+
], BarcodeSelectionBasicOverlay.prototype, "overlayController", undefined);
|
|
5452
5392
|
__decorate([
|
|
5453
5393
|
ignoreFromSerialization
|
|
5454
|
-
], BarcodeSelectionBasicOverlay.prototype, "view",
|
|
5394
|
+
], BarcodeSelectionBasicOverlay.prototype, "view", undefined);
|
|
5455
5395
|
__decorate([
|
|
5456
5396
|
nameForSerialization('shouldShowScanAreaGuides')
|
|
5457
|
-
], BarcodeSelectionBasicOverlay.prototype, "_shouldShowScanAreaGuides",
|
|
5397
|
+
], BarcodeSelectionBasicOverlay.prototype, "_shouldShowScanAreaGuides", undefined);
|
|
5458
5398
|
__decorate([
|
|
5459
5399
|
nameForSerialization('shouldShowHints')
|
|
5460
|
-
], BarcodeSelectionBasicOverlay.prototype, "_shouldShowHints",
|
|
5400
|
+
], BarcodeSelectionBasicOverlay.prototype, "_shouldShowHints", undefined);
|
|
5461
5401
|
__decorate([
|
|
5462
5402
|
nameForSerialization('viewfinder')
|
|
5463
|
-
], BarcodeSelectionBasicOverlay.prototype, "_viewfinder",
|
|
5403
|
+
], BarcodeSelectionBasicOverlay.prototype, "_viewfinder", undefined);
|
|
5464
5404
|
__decorate([
|
|
5465
5405
|
nameForSerialization('style')
|
|
5466
|
-
], BarcodeSelectionBasicOverlay.prototype, "_style",
|
|
5406
|
+
], BarcodeSelectionBasicOverlay.prototype, "_style", undefined);
|
|
5467
5407
|
__decorate([
|
|
5468
5408
|
nameForSerialization('trackedBrush')
|
|
5469
|
-
], BarcodeSelectionBasicOverlay.prototype, "_trackedBrush",
|
|
5409
|
+
], BarcodeSelectionBasicOverlay.prototype, "_trackedBrush", undefined);
|
|
5470
5410
|
__decorate([
|
|
5471
5411
|
nameForSerialization('aimedBrush')
|
|
5472
|
-
], BarcodeSelectionBasicOverlay.prototype, "_aimedBrush",
|
|
5412
|
+
], BarcodeSelectionBasicOverlay.prototype, "_aimedBrush", undefined);
|
|
5473
5413
|
__decorate([
|
|
5474
5414
|
nameForSerialization('selectedBrush')
|
|
5475
|
-
], BarcodeSelectionBasicOverlay.prototype, "_selectedBrush",
|
|
5415
|
+
], BarcodeSelectionBasicOverlay.prototype, "_selectedBrush", undefined);
|
|
5476
5416
|
__decorate([
|
|
5477
5417
|
nameForSerialization('selectingBrush')
|
|
5478
|
-
], BarcodeSelectionBasicOverlay.prototype, "_selectingBrush",
|
|
5418
|
+
], BarcodeSelectionBasicOverlay.prototype, "_selectingBrush", undefined);
|
|
5479
5419
|
__decorate([
|
|
5480
5420
|
ignoreFromSerialization
|
|
5481
5421
|
], BarcodeSelectionBasicOverlay, "barcodeSelectionDefaults", null);
|
|
@@ -5621,7 +5561,7 @@ class BarcodeSelectionSettings extends DefaultSerializeable {
|
|
|
5621
5561
|
}
|
|
5622
5562
|
__decorate([
|
|
5623
5563
|
nameForSerialization('singleBarcodeAutoDetectionEnabled')
|
|
5624
|
-
], BarcodeSelectionSettings.prototype, "singleBarcodeAutoDetection",
|
|
5564
|
+
], BarcodeSelectionSettings.prototype, "singleBarcodeAutoDetection", undefined);
|
|
5625
5565
|
__decorate([
|
|
5626
5566
|
ignoreFromSerialization
|
|
5627
5567
|
], BarcodeSelectionSettings, "barcodeSelectionDefaults", null);
|
|
@@ -5682,7 +5622,7 @@ class BarcodeBatchSession {
|
|
|
5682
5622
|
.fromJSON(sessionJson.trackedBarcodes[identifier], sessionJson.frameSequenceId);
|
|
5683
5623
|
return trackedBarcodes;
|
|
5684
5624
|
}, {});
|
|
5685
|
-
session.frameId = (_a = json.frameId) !== null && _a !==
|
|
5625
|
+
session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
|
|
5686
5626
|
return session;
|
|
5687
5627
|
}
|
|
5688
5628
|
reset() {
|
|
@@ -5714,11 +5654,11 @@ class BarcodeBatchListenerController {
|
|
|
5714
5654
|
subscribeListener() {
|
|
5715
5655
|
var _a, _b;
|
|
5716
5656
|
this._proxy.registerListenerForEvents();
|
|
5717
|
-
(_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b ===
|
|
5657
|
+
(_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b === undefined ? undefined : _b.call(_a);
|
|
5718
5658
|
this.eventEmitter.on(BarcodeBatchListenerEvents.inCallback, (value) => {
|
|
5719
5659
|
this.barcodeBatch.isInListenerCallback = value;
|
|
5720
5660
|
});
|
|
5721
|
-
this.eventEmitter.on(BarcodeBatchListenerEvents.didUpdateSession, (data) => __awaiter(this,
|
|
5661
|
+
this.eventEmitter.on(BarcodeBatchListenerEvents.didUpdateSession, (data) => __awaiter(this, undefined, undefined, function* () {
|
|
5722
5662
|
var _a;
|
|
5723
5663
|
const payload = EventDataParser.parse(data);
|
|
5724
5664
|
if (payload === null) {
|
|
@@ -5727,7 +5667,7 @@ class BarcodeBatchListenerController {
|
|
|
5727
5667
|
}
|
|
5728
5668
|
const session = BarcodeBatchSession.fromJSON(payload);
|
|
5729
5669
|
// Read the feature flag from the payload and set it in the DataCaptureContextFeatures.
|
|
5730
|
-
DataCaptureContextFeatures.setIsFeatureSupported("barcode-ar-full", (_a = payload.isBarcodeArFull) !== null && _a !==
|
|
5670
|
+
DataCaptureContextFeatures.setIsFeatureSupported("barcode-ar-full", (_a = payload.isBarcodeArFull) !== null && _a !== undefined ? _a : false);
|
|
5731
5671
|
yield this.notifyListenersOfDidUpdateSession(session);
|
|
5732
5672
|
this._proxy.finishDidUpdateSessionCallback(this.barcodeBatch.isEnabled);
|
|
5733
5673
|
}));
|
|
@@ -5747,7 +5687,7 @@ class BarcodeBatchListenerController {
|
|
|
5747
5687
|
return this._proxy.applyBarcodeBatchModeSettings(JSON.stringify(newSettings.toJSON()));
|
|
5748
5688
|
}
|
|
5749
5689
|
notifyListenersOfDidUpdateSession(session) {
|
|
5750
|
-
return __awaiter(this,
|
|
5690
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
5751
5691
|
const mode = this.barcodeBatch;
|
|
5752
5692
|
mode.isInListenerCallback = true;
|
|
5753
5693
|
for (const listener of mode.listeners) {
|
|
@@ -5824,24 +5764,24 @@ class BarcodeBatch extends DefaultSerializeable {
|
|
|
5824
5764
|
}
|
|
5825
5765
|
reset() {
|
|
5826
5766
|
var _a, _b;
|
|
5827
|
-
return (_b = (_a = this.listenerController) === null || _a ===
|
|
5767
|
+
return (_b = (_a = this.listenerController) === null || _a === undefined ? undefined : _a.resetSession()) !== null && _b !== undefined ? _b : Promise.resolve();
|
|
5828
5768
|
}
|
|
5829
5769
|
}
|
|
5830
5770
|
__decorate([
|
|
5831
5771
|
ignoreFromSerialization
|
|
5832
|
-
], BarcodeBatch.prototype, "_isEnabled",
|
|
5772
|
+
], BarcodeBatch.prototype, "_isEnabled", undefined);
|
|
5833
5773
|
__decorate([
|
|
5834
5774
|
ignoreFromSerialization
|
|
5835
|
-
], BarcodeBatch.prototype, "privateContext",
|
|
5775
|
+
], BarcodeBatch.prototype, "privateContext", undefined);
|
|
5836
5776
|
__decorate([
|
|
5837
5777
|
ignoreFromSerialization
|
|
5838
|
-
], BarcodeBatch.prototype, "listeners",
|
|
5778
|
+
], BarcodeBatch.prototype, "listeners", undefined);
|
|
5839
5779
|
__decorate([
|
|
5840
5780
|
ignoreFromSerialization
|
|
5841
|
-
], BarcodeBatch.prototype, "listenerController",
|
|
5781
|
+
], BarcodeBatch.prototype, "listenerController", undefined);
|
|
5842
5782
|
__decorate([
|
|
5843
5783
|
ignoreFromSerialization
|
|
5844
|
-
], BarcodeBatch.prototype, "isInListenerCallback",
|
|
5784
|
+
], BarcodeBatch.prototype, "isInListenerCallback", undefined);
|
|
5845
5785
|
__decorate([
|
|
5846
5786
|
ignoreFromSerialization
|
|
5847
5787
|
], BarcodeBatch, "barcodeBatchDefaults", null);
|
|
@@ -5869,7 +5809,7 @@ class BarcodeBatchAdvancedOverlayController {
|
|
|
5869
5809
|
return this._proxy.setBrushForTrackedBarcode(JSON.stringify(brush.toJSON()), trackedBarcode.sessionFrameSequenceID, trackedBarcode.identifier);
|
|
5870
5810
|
}
|
|
5871
5811
|
setViewForTrackedBarcode(view, trackedBarcode) {
|
|
5872
|
-
return __awaiter(this,
|
|
5812
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
5873
5813
|
const awitedView = yield view;
|
|
5874
5814
|
const viewJson = this._proxy.getJSONStringForView(awitedView);
|
|
5875
5815
|
return this._proxy.setViewForTrackedBarcode(viewJson, trackedBarcode.identifier, trackedBarcode.sessionFrameSequenceID);
|
|
@@ -5890,11 +5830,11 @@ class BarcodeBatchAdvancedOverlayController {
|
|
|
5890
5830
|
subscribeListener() {
|
|
5891
5831
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5892
5832
|
this._proxy.registerListenerForAdvancedOverlayEvents();
|
|
5893
|
-
(_b = (_a = this._proxy).subscribeViewForTrackedBarcode) === null || _b ===
|
|
5894
|
-
(_d = (_c = this._proxy).subscribeAnchorForTrackedBarcode) === null || _d ===
|
|
5895
|
-
(_f = (_e = this._proxy).subscribeOffsetForTrackedBarcode) === null || _f ===
|
|
5896
|
-
(_h = (_g = this._proxy).subscribeDidTapViewForTrackedBarcode) === null || _h ===
|
|
5897
|
-
this.eventEmitter.on(BarcodeBatchAdvancedOverlayListenerEvents.viewForTrackedBarcode, (data) => __awaiter(this,
|
|
5833
|
+
(_b = (_a = this._proxy).subscribeViewForTrackedBarcode) === null || _b === undefined ? undefined : _b.call(_a);
|
|
5834
|
+
(_d = (_c = this._proxy).subscribeAnchorForTrackedBarcode) === null || _d === undefined ? undefined : _d.call(_c);
|
|
5835
|
+
(_f = (_e = this._proxy).subscribeOffsetForTrackedBarcode) === null || _f === undefined ? undefined : _f.call(_e);
|
|
5836
|
+
(_h = (_g = this._proxy).subscribeDidTapViewForTrackedBarcode) === null || _h === undefined ? undefined : _h.call(_g);
|
|
5837
|
+
this.eventEmitter.on(BarcodeBatchAdvancedOverlayListenerEvents.viewForTrackedBarcode, (data) => __awaiter(this, undefined, undefined, function* () {
|
|
5898
5838
|
const payload = EventDataParser.parse(data);
|
|
5899
5839
|
if (payload === null) {
|
|
5900
5840
|
console.error('BarcodeBatchAdvancedOverlayController viewForTrackedBarcode payload is null');
|
|
@@ -5944,7 +5884,7 @@ class BarcodeBatchAdvancedOverlayController {
|
|
|
5944
5884
|
}
|
|
5945
5885
|
const trackedBarcode = TrackedBarcode
|
|
5946
5886
|
.fromJSON(JSON.parse(payload.trackedBarcode));
|
|
5947
|
-
(_b = (_a = this.overlay.listener) === null || _a ===
|
|
5887
|
+
(_b = (_a = this.overlay.listener) === null || _a === undefined ? undefined : _a.didTapViewForTrackedBarcode) === null || _b === undefined ? undefined : _b.call(_a, this.overlay, trackedBarcode);
|
|
5948
5888
|
});
|
|
5949
5889
|
}
|
|
5950
5890
|
unsubscribeListener() {
|
|
@@ -5984,8 +5924,8 @@ class BarcodeBatchBasicOverlayController {
|
|
|
5984
5924
|
subscribeListener() {
|
|
5985
5925
|
var _a, _b, _c, _d;
|
|
5986
5926
|
this._proxy.registerListenerForBasicOverlayEvents();
|
|
5987
|
-
(_b = (_a = this._proxy).subscribeBrushForTrackedBarcode) === null || _b ===
|
|
5988
|
-
(_d = (_c = this._proxy).subscribeDidTapTrackedBarcode) === null || _d ===
|
|
5927
|
+
(_b = (_a = this._proxy).subscribeBrushForTrackedBarcode) === null || _b === undefined ? undefined : _b.call(_a);
|
|
5928
|
+
(_d = (_c = this._proxy).subscribeDidTapTrackedBarcode) === null || _d === undefined ? undefined : _d.call(_c);
|
|
5989
5929
|
this.eventEmitter.on(BarcodeBatchBasicOverlayListenerEvents.brushForTrackedBarcode, (data) => {
|
|
5990
5930
|
const payload = EventDataParser.parse(data);
|
|
5991
5931
|
if (payload === null) {
|
|
@@ -6090,28 +6030,28 @@ class BarcodeBatchBasicOverlay extends DefaultSerializeable {
|
|
|
6090
6030
|
}
|
|
6091
6031
|
__decorate([
|
|
6092
6032
|
ignoreFromSerialization
|
|
6093
|
-
], BarcodeBatchBasicOverlay.prototype, "barcodeBatch",
|
|
6033
|
+
], BarcodeBatchBasicOverlay.prototype, "barcodeBatch", undefined);
|
|
6094
6034
|
__decorate([
|
|
6095
6035
|
ignoreFromSerialization
|
|
6096
|
-
], BarcodeBatchBasicOverlay.prototype, "_view",
|
|
6036
|
+
], BarcodeBatchBasicOverlay.prototype, "_view", undefined);
|
|
6097
6037
|
__decorate([
|
|
6098
6038
|
nameForSerialization('style')
|
|
6099
|
-
], BarcodeBatchBasicOverlay.prototype, "_style",
|
|
6039
|
+
], BarcodeBatchBasicOverlay.prototype, "_style", undefined);
|
|
6100
6040
|
__decorate([
|
|
6101
6041
|
ignoreFromSerialization
|
|
6102
6042
|
], BarcodeBatchBasicOverlay.prototype, "defaultBrush", null);
|
|
6103
6043
|
__decorate([
|
|
6104
6044
|
nameForSerialization('defaultBrush')
|
|
6105
|
-
], BarcodeBatchBasicOverlay.prototype, "_brush",
|
|
6045
|
+
], BarcodeBatchBasicOverlay.prototype, "_brush", undefined);
|
|
6106
6046
|
__decorate([
|
|
6107
6047
|
nameForSerialization('shouldShowScanAreaGuides')
|
|
6108
|
-
], BarcodeBatchBasicOverlay.prototype, "_shouldShowScanAreaGuides",
|
|
6048
|
+
], BarcodeBatchBasicOverlay.prototype, "_shouldShowScanAreaGuides", undefined);
|
|
6109
6049
|
__decorate([
|
|
6110
6050
|
ignoreFromSerialization
|
|
6111
|
-
], BarcodeBatchBasicOverlay.prototype, "listener",
|
|
6051
|
+
], BarcodeBatchBasicOverlay.prototype, "listener", undefined);
|
|
6112
6052
|
__decorate([
|
|
6113
6053
|
ignoreFromSerialization
|
|
6114
|
-
], BarcodeBatchBasicOverlay.prototype, "controller",
|
|
6054
|
+
], BarcodeBatchBasicOverlay.prototype, "controller", undefined);
|
|
6115
6055
|
__decorate([
|
|
6116
6056
|
ignoreFromSerialization
|
|
6117
6057
|
], BarcodeBatchBasicOverlay, "barcodeBatchDefaults", null);
|
|
@@ -6166,7 +6106,7 @@ class BarcodeBatchSettings extends DefaultSerializeable {
|
|
|
6166
6106
|
}
|
|
6167
6107
|
__decorate([
|
|
6168
6108
|
nameForSerialization('arucoDictionary')
|
|
6169
|
-
], BarcodeBatchSettings.prototype, "_arucoDictionary",
|
|
6109
|
+
], BarcodeBatchSettings.prototype, "_arucoDictionary", undefined);
|
|
6170
6110
|
__decorate([
|
|
6171
6111
|
ignoreFromSerialization
|
|
6172
6112
|
], BarcodeBatchSettings, "barcodeDefaults", null);
|
|
@@ -6219,19 +6159,19 @@ class BaseBarcodeBatchAdvancedOverlay extends DefaultSerializeable {
|
|
|
6219
6159
|
}
|
|
6220
6160
|
__decorate([
|
|
6221
6161
|
nameForSerialization('shouldShowScanAreaGuides')
|
|
6222
|
-
], BaseBarcodeBatchAdvancedOverlay.prototype, "_shouldShowScanAreaGuides",
|
|
6162
|
+
], BaseBarcodeBatchAdvancedOverlay.prototype, "_shouldShowScanAreaGuides", undefined);
|
|
6223
6163
|
__decorate([
|
|
6224
6164
|
ignoreFromSerialization
|
|
6225
|
-
], BaseBarcodeBatchAdvancedOverlay.prototype, "barcodeBatch",
|
|
6165
|
+
], BaseBarcodeBatchAdvancedOverlay.prototype, "barcodeBatch", undefined);
|
|
6226
6166
|
__decorate([
|
|
6227
6167
|
ignoreFromSerialization
|
|
6228
|
-
], BaseBarcodeBatchAdvancedOverlay.prototype, "listener",
|
|
6168
|
+
], BaseBarcodeBatchAdvancedOverlay.prototype, "listener", undefined);
|
|
6229
6169
|
__decorate([
|
|
6230
6170
|
ignoreFromSerialization
|
|
6231
|
-
], BaseBarcodeBatchAdvancedOverlay.prototype, "controller",
|
|
6171
|
+
], BaseBarcodeBatchAdvancedOverlay.prototype, "controller", undefined);
|
|
6232
6172
|
__decorate([
|
|
6233
6173
|
ignoreFromSerialization
|
|
6234
|
-
], BaseBarcodeBatchAdvancedOverlay.prototype, "_view",
|
|
6174
|
+
], BaseBarcodeBatchAdvancedOverlay.prototype, "_view", undefined);
|
|
6235
6175
|
|
|
6236
6176
|
class SparkScanSession {
|
|
6237
6177
|
static fromJSON(json) {
|
|
@@ -6242,7 +6182,7 @@ class SparkScanSession {
|
|
|
6242
6182
|
Barcode.fromJSON(sessionJson.newlyRecognizedBarcode) :
|
|
6243
6183
|
null;
|
|
6244
6184
|
session._frameSequenceID = sessionJson.frameSequenceId;
|
|
6245
|
-
session.frameId = (_a = json.frameId) !== null && _a !==
|
|
6185
|
+
session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
|
|
6246
6186
|
return session;
|
|
6247
6187
|
}
|
|
6248
6188
|
get newlyRecognizedBarcode() {
|
|
@@ -6261,7 +6201,7 @@ var SparkScanListenerEvents;
|
|
|
6261
6201
|
SparkScanListenerEvents["didUpdateSession"] = "SparkScanListener.didUpdateSession";
|
|
6262
6202
|
SparkScanListenerEvents["didScan"] = "SparkScanListener.didScan";
|
|
6263
6203
|
})(SparkScanListenerEvents || (SparkScanListenerEvents = {}));
|
|
6264
|
-
class SparkScanListenerController extends
|
|
6204
|
+
class SparkScanListenerController extends BaseController {
|
|
6265
6205
|
static forSparkScan(sparkScan) {
|
|
6266
6206
|
const controller = new SparkScanListenerController();
|
|
6267
6207
|
controller.sparkScan = sparkScan;
|
|
@@ -6269,8 +6209,20 @@ class SparkScanListenerController extends BaseNewController {
|
|
|
6269
6209
|
}
|
|
6270
6210
|
constructor() {
|
|
6271
6211
|
super('SparkScanListenerProxy');
|
|
6272
|
-
|
|
6273
|
-
|
|
6212
|
+
}
|
|
6213
|
+
reset() {
|
|
6214
|
+
return this._proxy.resetSession();
|
|
6215
|
+
}
|
|
6216
|
+
update() {
|
|
6217
|
+
const sparkScanJson = this.sparkScan.toJSON();
|
|
6218
|
+
const json = JSON.stringify(sparkScanJson);
|
|
6219
|
+
return this._proxy.updateMode(json);
|
|
6220
|
+
}
|
|
6221
|
+
subscribeListener() {
|
|
6222
|
+
this._proxy.registerListenerForEvents();
|
|
6223
|
+
this._proxy.subscribeDidScanListener();
|
|
6224
|
+
this._proxy.subscribeDidUpdateSessionListener();
|
|
6225
|
+
this.eventEmitter.on(SparkScanListenerEvents.didUpdateSession, (data) => __awaiter(this, undefined, undefined, function* () {
|
|
6274
6226
|
const payload = EventDataParser.parse(data);
|
|
6275
6227
|
if (payload === null) {
|
|
6276
6228
|
console.error('SparkScanListenerController didUpdateSession payload is null');
|
|
@@ -6279,8 +6231,8 @@ class SparkScanListenerController extends BaseNewController {
|
|
|
6279
6231
|
const session = SparkScanSession.fromJSON(payload);
|
|
6280
6232
|
yield this.notifyListenersOfDidUpdateSession(session);
|
|
6281
6233
|
this._proxy.finishDidUpdateSessionCallback(this.sparkScan.isEnabled);
|
|
6282
|
-
});
|
|
6283
|
-
this.
|
|
6234
|
+
}));
|
|
6235
|
+
this.eventEmitter.on(SparkScanListenerEvents.didScan, (data) => __awaiter(this, undefined, undefined, function* () {
|
|
6284
6236
|
const payload = EventDataParser.parse(data);
|
|
6285
6237
|
if (payload === null) {
|
|
6286
6238
|
console.error('SparkScanListenerController.subscribeListener: didScan payload is null');
|
|
@@ -6289,39 +6241,18 @@ class SparkScanListenerController extends BaseNewController {
|
|
|
6289
6241
|
const session = SparkScanSession.fromJSON(payload);
|
|
6290
6242
|
yield this.notifyListenersOfDidScan(session);
|
|
6291
6243
|
this._proxy.finishDidScanCallback(this.sparkScan.isEnabled);
|
|
6292
|
-
});
|
|
6293
|
-
}
|
|
6294
|
-
reset() {
|
|
6295
|
-
return this._proxy.resetSession();
|
|
6296
|
-
}
|
|
6297
|
-
update() {
|
|
6298
|
-
const sparkScanJson = this.sparkScan.toJSON();
|
|
6299
|
-
const json = JSON.stringify(sparkScanJson);
|
|
6300
|
-
return this._proxy.updateMode(json);
|
|
6301
|
-
}
|
|
6302
|
-
subscribeListener() {
|
|
6303
|
-
if (this.hasNativeListenerSubscriptions === false) {
|
|
6304
|
-
this._proxy.registerListenerForEvents();
|
|
6305
|
-
this.hasNativeListenerSubscriptions = true;
|
|
6306
|
-
}
|
|
6307
|
-
this._proxy.subscribeDidScanListener();
|
|
6308
|
-
this._proxy.subscribeDidUpdateSessionListener();
|
|
6309
|
-
this.eventEmitter.on(SparkScanListenerEvents.didUpdateSession, this.didUpdateSessionListener);
|
|
6310
|
-
this.eventEmitter.on(SparkScanListenerEvents.didScan, this.didScanListener);
|
|
6244
|
+
}));
|
|
6311
6245
|
}
|
|
6312
6246
|
unsubscribeListener() {
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
}
|
|
6317
|
-
this.eventEmitter.off(SparkScanListenerEvents.didUpdateSession, this.didUpdateSessionListener);
|
|
6318
|
-
this.eventEmitter.off(SparkScanListenerEvents.didScan, this.didScanListener);
|
|
6247
|
+
this._proxy.unregisterListenerForEvents();
|
|
6248
|
+
this.eventEmitter.removeAllListeners(SparkScanListenerEvents.didUpdateSession);
|
|
6249
|
+
this.eventEmitter.removeAllListeners(SparkScanListenerEvents.didScan);
|
|
6319
6250
|
}
|
|
6320
6251
|
setModeEnabledState(enabled) {
|
|
6321
6252
|
this._proxy.setModeEnabledState(enabled);
|
|
6322
6253
|
}
|
|
6323
6254
|
notifyListenersOfDidUpdateSession(session) {
|
|
6324
|
-
return __awaiter(this,
|
|
6255
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
6325
6256
|
const mode = this.sparkScan;
|
|
6326
6257
|
mode.isInListenerCallback = true;
|
|
6327
6258
|
for (const listener of mode.listeners) {
|
|
@@ -6333,7 +6264,7 @@ class SparkScanListenerController extends BaseNewController {
|
|
|
6333
6264
|
});
|
|
6334
6265
|
}
|
|
6335
6266
|
notifyListenersOfDidScan(session) {
|
|
6336
|
-
return __awaiter(this,
|
|
6267
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
6337
6268
|
const mode = this.sparkScan;
|
|
6338
6269
|
mode.isInListenerCallback = true;
|
|
6339
6270
|
for (const listener of mode.listeners) {
|
|
@@ -6419,19 +6350,19 @@ class SparkScan extends DefaultSerializeable {
|
|
|
6419
6350
|
}
|
|
6420
6351
|
__decorate([
|
|
6421
6352
|
ignoreFromSerialization
|
|
6422
|
-
], SparkScan.prototype, "_isEnabled",
|
|
6353
|
+
], SparkScan.prototype, "_isEnabled", undefined);
|
|
6423
6354
|
__decorate([
|
|
6424
6355
|
ignoreFromSerialization
|
|
6425
|
-
], SparkScan.prototype, "privateContext",
|
|
6356
|
+
], SparkScan.prototype, "privateContext", undefined);
|
|
6426
6357
|
__decorate([
|
|
6427
6358
|
ignoreFromSerialization
|
|
6428
|
-
], SparkScan.prototype, "listeners",
|
|
6359
|
+
], SparkScan.prototype, "listeners", undefined);
|
|
6429
6360
|
__decorate([
|
|
6430
6361
|
ignoreFromSerialization
|
|
6431
|
-
], SparkScan.prototype, "listenerController",
|
|
6362
|
+
], SparkScan.prototype, "listenerController", undefined);
|
|
6432
6363
|
__decorate([
|
|
6433
6364
|
ignoreFromSerialization
|
|
6434
|
-
], SparkScan.prototype, "isInListenerCallback",
|
|
6365
|
+
], SparkScan.prototype, "isInListenerCallback", undefined);
|
|
6435
6366
|
|
|
6436
6367
|
var SparkScanMiniPreviewSize;
|
|
6437
6368
|
(function (SparkScanMiniPreviewSize) {
|
|
@@ -6556,46 +6487,46 @@ class SparkScanToastSettings extends DefaultSerializeable {
|
|
|
6556
6487
|
}
|
|
6557
6488
|
__decorate([
|
|
6558
6489
|
nameForSerialization('toastEnabled')
|
|
6559
|
-
], SparkScanToastSettings.prototype, "_toastEnabled",
|
|
6490
|
+
], SparkScanToastSettings.prototype, "_toastEnabled", undefined);
|
|
6560
6491
|
__decorate([
|
|
6561
6492
|
nameForSerialization('toastBackgroundColor')
|
|
6562
|
-
], SparkScanToastSettings.prototype, "_toastBackgroundColor",
|
|
6493
|
+
], SparkScanToastSettings.prototype, "_toastBackgroundColor", undefined);
|
|
6563
6494
|
__decorate([
|
|
6564
6495
|
nameForSerialization('toastTextColor')
|
|
6565
|
-
], SparkScanToastSettings.prototype, "_toastTextColor",
|
|
6496
|
+
], SparkScanToastSettings.prototype, "_toastTextColor", undefined);
|
|
6566
6497
|
__decorate([
|
|
6567
6498
|
nameForSerialization('targetModeEnabledMessage')
|
|
6568
|
-
], SparkScanToastSettings.prototype, "_targetModeEnabledMessage",
|
|
6499
|
+
], SparkScanToastSettings.prototype, "_targetModeEnabledMessage", undefined);
|
|
6569
6500
|
__decorate([
|
|
6570
6501
|
nameForSerialization('targetModeDisabledMessage')
|
|
6571
|
-
], SparkScanToastSettings.prototype, "_targetModeDisabledMessage",
|
|
6502
|
+
], SparkScanToastSettings.prototype, "_targetModeDisabledMessage", undefined);
|
|
6572
6503
|
__decorate([
|
|
6573
6504
|
nameForSerialization('continuousModeEnabledMessage')
|
|
6574
|
-
], SparkScanToastSettings.prototype, "_continuousModeEnabledMessage",
|
|
6505
|
+
], SparkScanToastSettings.prototype, "_continuousModeEnabledMessage", undefined);
|
|
6575
6506
|
__decorate([
|
|
6576
6507
|
nameForSerialization('continuousModeDisabledMessage')
|
|
6577
|
-
], SparkScanToastSettings.prototype, "_continuousModeDisabledMessage",
|
|
6508
|
+
], SparkScanToastSettings.prototype, "_continuousModeDisabledMessage", undefined);
|
|
6578
6509
|
__decorate([
|
|
6579
6510
|
nameForSerialization('scanPausedMessage')
|
|
6580
|
-
], SparkScanToastSettings.prototype, "_scanPausedMessage",
|
|
6511
|
+
], SparkScanToastSettings.prototype, "_scanPausedMessage", undefined);
|
|
6581
6512
|
__decorate([
|
|
6582
6513
|
nameForSerialization('zoomedInMessage')
|
|
6583
|
-
], SparkScanToastSettings.prototype, "_zoomedInMessage",
|
|
6514
|
+
], SparkScanToastSettings.prototype, "_zoomedInMessage", undefined);
|
|
6584
6515
|
__decorate([
|
|
6585
6516
|
nameForSerialization('zoomedOutMessage')
|
|
6586
|
-
], SparkScanToastSettings.prototype, "_zoomedOutMessage",
|
|
6517
|
+
], SparkScanToastSettings.prototype, "_zoomedOutMessage", undefined);
|
|
6587
6518
|
__decorate([
|
|
6588
6519
|
nameForSerialization('torchEnabledMessage')
|
|
6589
|
-
], SparkScanToastSettings.prototype, "_torchEnabledMessage",
|
|
6520
|
+
], SparkScanToastSettings.prototype, "_torchEnabledMessage", undefined);
|
|
6590
6521
|
__decorate([
|
|
6591
6522
|
nameForSerialization('torchDisabledMessage')
|
|
6592
|
-
], SparkScanToastSettings.prototype, "_torchDisabledMessage",
|
|
6523
|
+
], SparkScanToastSettings.prototype, "_torchDisabledMessage", undefined);
|
|
6593
6524
|
__decorate([
|
|
6594
6525
|
nameForSerialization('userFacingCameraEnabledMessage')
|
|
6595
|
-
], SparkScanToastSettings.prototype, "_userFacingCameraEnabledMessage",
|
|
6526
|
+
], SparkScanToastSettings.prototype, "_userFacingCameraEnabledMessage", undefined);
|
|
6596
6527
|
__decorate([
|
|
6597
6528
|
nameForSerialization('worldFacingCameraEnabledMessage')
|
|
6598
|
-
], SparkScanToastSettings.prototype, "_worldFacingCameraEnabledMessage",
|
|
6529
|
+
], SparkScanToastSettings.prototype, "_worldFacingCameraEnabledMessage", undefined);
|
|
6599
6530
|
__decorate([
|
|
6600
6531
|
ignoreFromSerialization
|
|
6601
6532
|
], SparkScanToastSettings, "sparkScanDefaults", null);
|
|
@@ -6621,10 +6552,10 @@ class PrivateSparkScanScanningModeSettings extends DefaultSerializeable {
|
|
|
6621
6552
|
}
|
|
6622
6553
|
__decorate([
|
|
6623
6554
|
nameForSerialization('scanningBehavior')
|
|
6624
|
-
], PrivateSparkScanScanningModeSettings.prototype, "_scanningBehavior",
|
|
6555
|
+
], PrivateSparkScanScanningModeSettings.prototype, "_scanningBehavior", undefined);
|
|
6625
6556
|
__decorate([
|
|
6626
6557
|
nameForSerialization('previewBehavior')
|
|
6627
|
-
], PrivateSparkScanScanningModeSettings.prototype, "_previewBehavior",
|
|
6558
|
+
], PrivateSparkScanScanningModeSettings.prototype, "_previewBehavior", undefined);
|
|
6628
6559
|
|
|
6629
6560
|
class SparkScanScanningModeDefault extends DefaultSerializeable {
|
|
6630
6561
|
get scanningBehavior() {
|
|
@@ -6648,7 +6579,7 @@ class SparkScanScanningModeDefault extends DefaultSerializeable {
|
|
|
6648
6579
|
}
|
|
6649
6580
|
__decorate([
|
|
6650
6581
|
nameForSerialization('settings')
|
|
6651
|
-
], SparkScanScanningModeDefault.prototype, "_settings",
|
|
6582
|
+
], SparkScanScanningModeDefault.prototype, "_settings", undefined);
|
|
6652
6583
|
|
|
6653
6584
|
class SparkScanScanningModeTarget extends DefaultSerializeable {
|
|
6654
6585
|
get scanningBehavior() {
|
|
@@ -6672,7 +6603,7 @@ class SparkScanScanningModeTarget extends DefaultSerializeable {
|
|
|
6672
6603
|
}
|
|
6673
6604
|
__decorate([
|
|
6674
6605
|
nameForSerialization('settings')
|
|
6675
|
-
], SparkScanScanningModeTarget.prototype, "_settings",
|
|
6606
|
+
], SparkScanScanningModeTarget.prototype, "_settings", undefined);
|
|
6676
6607
|
|
|
6677
6608
|
class SparkScanSettings extends DefaultSerializeable {
|
|
6678
6609
|
get batterySaving() {
|
|
@@ -6729,10 +6660,10 @@ class SparkScanSettings extends DefaultSerializeable {
|
|
|
6729
6660
|
}
|
|
6730
6661
|
__decorate([
|
|
6731
6662
|
nameForSerialization('batterySaving')
|
|
6732
|
-
], SparkScanSettings.prototype, "_batterySaving",
|
|
6663
|
+
], SparkScanSettings.prototype, "_batterySaving", undefined);
|
|
6733
6664
|
__decorate([
|
|
6734
6665
|
nameForSerialization('locationSelection')
|
|
6735
|
-
], SparkScanSettings.prototype, "_locationSelection",
|
|
6666
|
+
], SparkScanSettings.prototype, "_locationSelection", undefined);
|
|
6736
6667
|
__decorate([
|
|
6737
6668
|
ignoreFromSerialization
|
|
6738
6669
|
], SparkScanSettings, "sparkScanDefaults", null);
|
|
@@ -6802,7 +6733,7 @@ var SparkScanFeedbackDelegateEvents;
|
|
|
6802
6733
|
(function (SparkScanFeedbackDelegateEvents) {
|
|
6803
6734
|
SparkScanFeedbackDelegateEvents["feedbackForBarcode"] = "SparkScanFeedbackDelegate.feedbackForBarcode";
|
|
6804
6735
|
})(SparkScanFeedbackDelegateEvents || (SparkScanFeedbackDelegateEvents = {}));
|
|
6805
|
-
class SparkScanViewController extends
|
|
6736
|
+
class SparkScanViewController extends BaseController {
|
|
6806
6737
|
static forSparkScanView(view, sparkScan, autoCreateNativeView = true) {
|
|
6807
6738
|
const controller = new SparkScanViewController();
|
|
6808
6739
|
controller.view = view;
|
|
@@ -6815,28 +6746,9 @@ class SparkScanViewController extends BaseNewController {
|
|
|
6815
6746
|
constructor() {
|
|
6816
6747
|
super('SparkScanViewProxy');
|
|
6817
6748
|
this.hasFeedbackDelegateListener = false;
|
|
6818
|
-
this.hasNativeListenerSubscriptions = false;
|
|
6819
|
-
this.barcodeCountButtonTappedListener = () => {
|
|
6820
|
-
var _a, _b;
|
|
6821
|
-
(_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapBarcodeCountButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view);
|
|
6822
|
-
};
|
|
6823
|
-
this.barcodeFindButtonTappedListener = () => {
|
|
6824
|
-
var _a, _b;
|
|
6825
|
-
(_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapBarcodeFindButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view);
|
|
6826
|
-
};
|
|
6827
|
-
this.didChangeViewStateListener = (data) => {
|
|
6828
|
-
var _a, _b;
|
|
6829
|
-
const payload = EventDataParser.parse(data);
|
|
6830
|
-
if (payload === null) {
|
|
6831
|
-
console.error('SparkScanViewController didChangeViewState payload is null');
|
|
6832
|
-
return;
|
|
6833
|
-
}
|
|
6834
|
-
const newState = payload.state;
|
|
6835
|
-
(_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didChangeViewState) === null || _b === void 0 ? void 0 : _b.call(_a, newState);
|
|
6836
|
-
};
|
|
6837
6749
|
}
|
|
6838
6750
|
initialize(autoCreateNativeView) {
|
|
6839
|
-
return __awaiter(this,
|
|
6751
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
6840
6752
|
this.subscribeListeners();
|
|
6841
6753
|
yield this.view.context.update();
|
|
6842
6754
|
if (autoCreateNativeView) {
|
|
@@ -6852,22 +6764,30 @@ class SparkScanViewController extends BaseNewController {
|
|
|
6852
6764
|
this._proxy.disposeSparkScanView();
|
|
6853
6765
|
}
|
|
6854
6766
|
subscribeListeners() {
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
this.eventEmitter.on(SparkScanViewEvents.barcodeFindButtonTapped,
|
|
6861
|
-
|
|
6767
|
+
this._proxy.registerSparkScanViewListenerEvents();
|
|
6768
|
+
this.eventEmitter.on(SparkScanViewEvents.barcodeCountButtonTapped, () => {
|
|
6769
|
+
var _a, _b;
|
|
6770
|
+
(_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapBarcodeCountButton) === null || _b === undefined ? undefined : _b.call(_a, this.view);
|
|
6771
|
+
});
|
|
6772
|
+
this.eventEmitter.on(SparkScanViewEvents.barcodeFindButtonTapped, () => {
|
|
6773
|
+
var _a, _b;
|
|
6774
|
+
(_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didTapBarcodeFindButton) === null || _b === undefined ? undefined : _b.call(_a, this.view);
|
|
6775
|
+
});
|
|
6776
|
+
this.eventEmitter.on(SparkScanViewEvents.didChangeViewState, (data) => {
|
|
6777
|
+
var _a, _b;
|
|
6778
|
+
const payload = EventDataParser.parse(data);
|
|
6779
|
+
if (payload === null) {
|
|
6780
|
+
console.error('SparkScanViewController didChangeViewState payload is null');
|
|
6781
|
+
return;
|
|
6782
|
+
}
|
|
6783
|
+
const newState = payload.state;
|
|
6784
|
+
(_b = (_a = this.view.uiListener) === null || _a === undefined ? undefined : _a.didChangeViewState) === null || _b === undefined ? undefined : _b.call(_a, newState);
|
|
6785
|
+
});
|
|
6862
6786
|
}
|
|
6863
6787
|
unsubscribeListeners() {
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
}
|
|
6868
|
-
this.eventEmitter.off(SparkScanViewEvents.barcodeCountButtonTapped, this.barcodeCountButtonTappedListener);
|
|
6869
|
-
this.eventEmitter.off(SparkScanViewEvents.barcodeFindButtonTapped, this.barcodeFindButtonTappedListener);
|
|
6870
|
-
this.eventEmitter.off(SparkScanViewEvents.didChangeViewState, this.didChangeViewStateListener);
|
|
6788
|
+
this._proxy.unregisterSparkScanViewListenerEvents();
|
|
6789
|
+
this.eventEmitter.off(SparkScanViewEvents.barcodeCountButtonTapped);
|
|
6790
|
+
this.eventEmitter.off(SparkScanViewEvents.barcodeFindButtonTapped);
|
|
6871
6791
|
}
|
|
6872
6792
|
create() {
|
|
6873
6793
|
const viewJson = {
|
|
@@ -6880,7 +6800,7 @@ class SparkScanViewController extends BaseNewController {
|
|
|
6880
6800
|
update() {
|
|
6881
6801
|
const sparkScanViewJson = this.view.toJSON();
|
|
6882
6802
|
const json = JSON.stringify({ View: sparkScanViewJson });
|
|
6883
|
-
return this._proxy.updateSparkScanView(
|
|
6803
|
+
return this._proxy.updateSparkScanView(json);
|
|
6884
6804
|
}
|
|
6885
6805
|
stopScanning() {
|
|
6886
6806
|
return this._proxy.stopSparkScanViewScanning();
|
|
@@ -6916,15 +6836,8 @@ class SparkScanViewController extends BaseNewController {
|
|
|
6916
6836
|
return;
|
|
6917
6837
|
}
|
|
6918
6838
|
const barcode = Barcode.fromJSON(JSON.parse(payload.barcode));
|
|
6919
|
-
const feedback = (_b = (_a = this.view.feedbackDelegate) === null || _a ===
|
|
6920
|
-
|
|
6921
|
-
feedback.then((feedback) => {
|
|
6922
|
-
this._proxy.submitFeedbackForBarcode(JSON.stringify(feedback === null || feedback === void 0 ? void 0 : feedback.toJSON()));
|
|
6923
|
-
});
|
|
6924
|
-
}
|
|
6925
|
-
else {
|
|
6926
|
-
this._proxy.submitFeedbackForBarcode(JSON.stringify(feedback === null || feedback === void 0 ? void 0 : feedback.toJSON()));
|
|
6927
|
-
}
|
|
6839
|
+
const feedback = (_b = (_a = this.view.feedbackDelegate) === null || _a === undefined ? undefined : _a.feedbackForBarcode) === null || _b === undefined ? undefined : _b.call(_a, barcode);
|
|
6840
|
+
this._proxy.submitFeedbackForBarcode(JSON.stringify(feedback === null || feedback === undefined ? undefined : feedback.toJSON()));
|
|
6928
6841
|
});
|
|
6929
6842
|
this.hasFeedbackDelegateListener = true;
|
|
6930
6843
|
}
|
|
@@ -6943,77 +6856,10 @@ class BaseSparkScanView {
|
|
|
6943
6856
|
const view = new BaseSparkScanView({ context, sparkScan, settings, autoCreateNativeView });
|
|
6944
6857
|
return view;
|
|
6945
6858
|
}
|
|
6946
|
-
static withProps(props, autoCreateNativeView = true) {
|
|
6947
|
-
const view = new BaseSparkScanView({
|
|
6948
|
-
context: props.context,
|
|
6949
|
-
sparkScan: props.sparkScan,
|
|
6950
|
-
settings: props.sparkScanViewSettings,
|
|
6951
|
-
autoCreateNativeView
|
|
6952
|
-
});
|
|
6953
|
-
if (props.uiListener) {
|
|
6954
|
-
view.uiListener = props.uiListener;
|
|
6955
|
-
}
|
|
6956
|
-
if (props.previewSizeControlVisible !== undefined && props.previewSizeControlVisible !== null) {
|
|
6957
|
-
view._previewSizeControlVisible = props.previewSizeControlVisible;
|
|
6958
|
-
}
|
|
6959
|
-
if (props.cameraSwitchButtonVisible !== undefined && props.cameraSwitchButtonVisible !== null) {
|
|
6960
|
-
view._cameraSwitchButtonVisible = props.cameraSwitchButtonVisible;
|
|
6961
|
-
}
|
|
6962
|
-
if (props.scanningBehaviorButtonVisible !== undefined && props.scanningBehaviorButtonVisible !== null) {
|
|
6963
|
-
view._scanningBehaviorButtonVisible = props.scanningBehaviorButtonVisible;
|
|
6964
|
-
}
|
|
6965
|
-
if (props.barcodeCountButtonVisible !== undefined && props.barcodeCountButtonVisible !== null) {
|
|
6966
|
-
view._barcodeCountButtonVisible = props.barcodeCountButtonVisible;
|
|
6967
|
-
}
|
|
6968
|
-
if (props.barcodeFindButtonVisible !== undefined && props.barcodeFindButtonVisible !== null) {
|
|
6969
|
-
view._barcodeFindButtonVisible = props.barcodeFindButtonVisible;
|
|
6970
|
-
}
|
|
6971
|
-
if (props.targetModeButtonVisible !== undefined && props.targetModeButtonVisible !== null) {
|
|
6972
|
-
view._targetModeButtonVisible = props.targetModeButtonVisible;
|
|
6973
|
-
}
|
|
6974
|
-
if (props.torchControlVisible !== undefined && props.torchControlVisible !== null) {
|
|
6975
|
-
view._torchControlVisible = props.torchControlVisible;
|
|
6976
|
-
}
|
|
6977
|
-
if (props.previewCloseControlVisible !== undefined && props.previewCloseControlVisible !== null) {
|
|
6978
|
-
view._previewCloseControlVisible = props.previewCloseControlVisible;
|
|
6979
|
-
}
|
|
6980
|
-
if (props.triggerButtonVisible !== undefined) {
|
|
6981
|
-
view._triggerButtonVisible = props.triggerButtonVisible;
|
|
6982
|
-
}
|
|
6983
|
-
if (props.triggerButtonImage !== undefined) {
|
|
6984
|
-
view._triggerButtonImage = props.triggerButtonImage;
|
|
6985
|
-
}
|
|
6986
|
-
if (props.triggerButtonTintColor !== undefined) {
|
|
6987
|
-
view._triggerButtonTintColor = props.triggerButtonTintColor;
|
|
6988
|
-
}
|
|
6989
|
-
if (props.triggerButtonAnimationColor !== undefined) {
|
|
6990
|
-
view._triggerButtonAnimationColor = props.triggerButtonAnimationColor;
|
|
6991
|
-
}
|
|
6992
|
-
if (props.triggerButtonExpandedColor !== undefined) {
|
|
6993
|
-
view._triggerButtonExpandedColor = props.triggerButtonExpandedColor;
|
|
6994
|
-
}
|
|
6995
|
-
if (props.triggerButtonCollapsedColor !== undefined) {
|
|
6996
|
-
view._triggerButtonCollapsedColor = props.triggerButtonCollapsedColor;
|
|
6997
|
-
}
|
|
6998
|
-
if (props.toolbarBackgroundColor !== undefined) {
|
|
6999
|
-
view._toolbarBackgroundColor = props.toolbarBackgroundColor;
|
|
7000
|
-
}
|
|
7001
|
-
if (props.toolbarIconActiveTintColor !== undefined) {
|
|
7002
|
-
view._toolbarIconActiveTintColor = props.toolbarIconActiveTintColor;
|
|
7003
|
-
}
|
|
7004
|
-
if (props.toolbarIconInactiveTintColor !== undefined) {
|
|
7005
|
-
view._toolbarIconInactiveTintColor = props.toolbarIconInactiveTintColor;
|
|
7006
|
-
}
|
|
7007
|
-
if (props.feedbackDelegate !== undefined) {
|
|
7008
|
-
view.feedbackDelegate = props.feedbackDelegate;
|
|
7009
|
-
}
|
|
7010
|
-
return view;
|
|
7011
|
-
}
|
|
7012
6859
|
static get defaultBrush() {
|
|
7013
6860
|
return BaseSparkScanView.sparkScanDefaults.SparkScanView.brush;
|
|
7014
6861
|
}
|
|
7015
6862
|
constructor({ context, sparkScan, settings, autoCreateNativeView }) {
|
|
7016
|
-
this.viewId = null;
|
|
7017
6863
|
this.uiListener = null;
|
|
7018
6864
|
this._brush = BaseSparkScanView.defaultBrush;
|
|
7019
6865
|
this._feedbackDelegate = null;
|
|
@@ -7037,7 +6883,7 @@ class BaseSparkScanView {
|
|
|
7037
6883
|
this._previewCloseControlVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.previewSizeControlVisible;
|
|
7038
6884
|
this._sparkScan = sparkScan;
|
|
7039
6885
|
this.context = context;
|
|
7040
|
-
this._viewSettings = settings !== null && settings !==
|
|
6886
|
+
this._viewSettings = settings !== null && settings !== undefined ? settings : new SparkScanViewSettings();
|
|
7041
6887
|
this._controller = SparkScanViewController.forSparkScanView(this, sparkScan, autoCreateNativeView);
|
|
7042
6888
|
}
|
|
7043
6889
|
get previewSizeControlVisible() {
|
|
@@ -7050,8 +6896,9 @@ class BaseSparkScanView {
|
|
|
7050
6896
|
/**
|
|
7051
6897
|
* @deprecated The torch button has been moved to the mini preview. Use property `torchControlVisible` instead.
|
|
7052
6898
|
*/
|
|
6899
|
+
// @ts-ignore
|
|
7053
6900
|
get torchButtonVisible() {
|
|
7054
|
-
|
|
6901
|
+
console.warn('The torch button has been moved to the mini preview. Use property `torchControlVisible` instead.');
|
|
7055
6902
|
}
|
|
7056
6903
|
/**
|
|
7057
6904
|
* @deprecated The torch button has been moved to the mini preview. Use property `torchControlVisible` instead.
|
|
@@ -7105,8 +6952,9 @@ class BaseSparkScanView {
|
|
|
7105
6952
|
/**
|
|
7106
6953
|
* @deprecated The trigger button no longer displays text.
|
|
7107
6954
|
*/
|
|
6955
|
+
// @ts-ignore
|
|
7108
6956
|
get stopCapturingText() {
|
|
7109
|
-
|
|
6957
|
+
console.warn('The trigger button no longer displays text.');
|
|
7110
6958
|
}
|
|
7111
6959
|
/**
|
|
7112
6960
|
* @deprecated The trigger button no longer displays text.
|
|
@@ -7118,8 +6966,9 @@ class BaseSparkScanView {
|
|
|
7118
6966
|
/**
|
|
7119
6967
|
* @deprecated The trigger button no longer displays text.
|
|
7120
6968
|
*/
|
|
6969
|
+
// @ts-ignore
|
|
7121
6970
|
get startCapturingText() {
|
|
7122
|
-
|
|
6971
|
+
console.warn('The trigger button no longer displays text.');
|
|
7123
6972
|
}
|
|
7124
6973
|
/**
|
|
7125
6974
|
* @deprecated The trigger button no longer displays text.
|
|
@@ -7131,8 +6980,9 @@ class BaseSparkScanView {
|
|
|
7131
6980
|
/**
|
|
7132
6981
|
* @deprecated The trigger button no longer displays text.
|
|
7133
6982
|
*/
|
|
6983
|
+
// @ts-ignore
|
|
7134
6984
|
get resumeCapturingText() {
|
|
7135
|
-
|
|
6985
|
+
console.warn('The trigger button no longer displays text.');
|
|
7136
6986
|
}
|
|
7137
6987
|
/**
|
|
7138
6988
|
* @deprecated The trigger button no longer displays text.
|
|
@@ -7144,8 +6994,9 @@ class BaseSparkScanView {
|
|
|
7144
6994
|
/**
|
|
7145
6995
|
* @deprecated The trigger button no longer displays text.
|
|
7146
6996
|
*/
|
|
6997
|
+
// @ts-ignore
|
|
7147
6998
|
get scanningCapturingText() {
|
|
7148
|
-
|
|
6999
|
+
console.warn('The trigger button no longer displays text.');
|
|
7149
7000
|
}
|
|
7150
7001
|
/**
|
|
7151
7002
|
* @deprecated The trigger button no longer displays text.
|
|
@@ -7157,8 +7008,9 @@ class BaseSparkScanView {
|
|
|
7157
7008
|
/**
|
|
7158
7009
|
* @deprecated This property is not relevant anymore.
|
|
7159
7010
|
*/
|
|
7011
|
+
// @ts-ignore
|
|
7160
7012
|
get captureButtonActiveBackgroundColor() {
|
|
7161
|
-
|
|
7013
|
+
console.warn('captureButtonActiveBackgroundColor is deprecated.');
|
|
7162
7014
|
}
|
|
7163
7015
|
/**
|
|
7164
7016
|
* @deprecated This property is not relevant anymore.
|
|
@@ -7170,8 +7022,10 @@ class BaseSparkScanView {
|
|
|
7170
7022
|
/**
|
|
7171
7023
|
* @deprecated Use triggerButtonCollapsedColor and triggerButtonExpandedColor instead.
|
|
7172
7024
|
*/
|
|
7025
|
+
// @ts-ignore
|
|
7173
7026
|
get captureButtonBackgroundColor() {
|
|
7174
|
-
|
|
7027
|
+
console.warn('captureButtonBackgroundColor is deprecated. ' +
|
|
7028
|
+
'Use triggerButtonCollapsedColor and triggerButtonExpandedColor instead.');
|
|
7175
7029
|
}
|
|
7176
7030
|
/**
|
|
7177
7031
|
* @deprecated Use triggerButtonCollapsedColor and triggerButtonExpandedColor instead.
|
|
@@ -7184,8 +7038,9 @@ class BaseSparkScanView {
|
|
|
7184
7038
|
/**
|
|
7185
7039
|
* @deprecated use triggerButtonTintColor instead.
|
|
7186
7040
|
*/
|
|
7041
|
+
// @ts-ignore
|
|
7187
7042
|
get captureButtonTintColor() {
|
|
7188
|
-
|
|
7043
|
+
console.warn('triggerButtonTintColor is deprecated. Use triggerButtonTintColor instead.');
|
|
7189
7044
|
}
|
|
7190
7045
|
/**
|
|
7191
7046
|
* @deprecated use triggerButtonTintColor instead.
|
|
@@ -7343,10 +7198,9 @@ class BaseSparkScanView {
|
|
|
7343
7198
|
triggerButtonImage: this.triggerButtonImage,
|
|
7344
7199
|
torchControlVisible: this.torchControlVisible,
|
|
7345
7200
|
previewCloseControlVisible: this.previewCloseControlVisible,
|
|
7346
|
-
viewId: this.viewId,
|
|
7347
7201
|
};
|
|
7348
7202
|
if (this._viewSettings != null) {
|
|
7349
|
-
json.viewSettings = (_a = this._viewSettings) === null || _a ===
|
|
7203
|
+
json.viewSettings = (_a = this._viewSettings) === null || _a === undefined ? undefined : _a.toJSON();
|
|
7350
7204
|
}
|
|
7351
7205
|
return json;
|
|
7352
7206
|
}
|
|
@@ -7394,7 +7248,7 @@ class SparkScanBarcodeErrorFeedback extends SparkScanBarcodeFeedback {
|
|
|
7394
7248
|
}
|
|
7395
7249
|
__decorate([
|
|
7396
7250
|
nameForSerialization('barcodeFeedback')
|
|
7397
|
-
], SparkScanBarcodeErrorFeedback.prototype, "_barcodeFeedback",
|
|
7251
|
+
], SparkScanBarcodeErrorFeedback.prototype, "_barcodeFeedback", undefined);
|
|
7398
7252
|
__decorate([
|
|
7399
7253
|
ignoreFromSerialization
|
|
7400
7254
|
], SparkScanBarcodeErrorFeedback, "sparkScanDefaults", null);
|
|
@@ -7433,7 +7287,7 @@ class SparkScanBarcodeSuccessFeedback extends SparkScanBarcodeFeedback {
|
|
|
7433
7287
|
}
|
|
7434
7288
|
__decorate([
|
|
7435
7289
|
nameForSerialization('barcodeFeedback')
|
|
7436
|
-
], SparkScanBarcodeSuccessFeedback.prototype, "_barcodeFeedback",
|
|
7290
|
+
], SparkScanBarcodeSuccessFeedback.prototype, "_barcodeFeedback", undefined);
|
|
7437
7291
|
__decorate([
|
|
7438
7292
|
ignoreFromSerialization
|
|
7439
7293
|
], SparkScanBarcodeSuccessFeedback, "sparkScanDefaults", null);
|
|
@@ -7566,19 +7420,19 @@ class BarcodePick extends DefaultSerializeable {
|
|
|
7566
7420
|
}
|
|
7567
7421
|
__decorate([
|
|
7568
7422
|
ignoreFromSerialization
|
|
7569
|
-
], BarcodePick.prototype, "privateContext",
|
|
7423
|
+
], BarcodePick.prototype, "privateContext", undefined);
|
|
7570
7424
|
__decorate([
|
|
7571
7425
|
ignoreFromSerialization
|
|
7572
|
-
], BarcodePick.prototype, "_listenerController",
|
|
7426
|
+
], BarcodePick.prototype, "_listenerController", undefined);
|
|
7573
7427
|
__decorate([
|
|
7574
7428
|
ignoreFromSerialization
|
|
7575
|
-
], BarcodePick.prototype, "listeners",
|
|
7429
|
+
], BarcodePick.prototype, "listeners", undefined);
|
|
7576
7430
|
__decorate([
|
|
7577
7431
|
nameForSerialization('settings')
|
|
7578
|
-
], BarcodePick.prototype, "_settings",
|
|
7432
|
+
], BarcodePick.prototype, "_settings", undefined);
|
|
7579
7433
|
__decorate([
|
|
7580
7434
|
nameForSerialization('ProductProvider')
|
|
7581
|
-
], BarcodePick.prototype, "_productProvider",
|
|
7435
|
+
], BarcodePick.prototype, "_productProvider", undefined);
|
|
7582
7436
|
__decorate([
|
|
7583
7437
|
ignoreFromSerialization
|
|
7584
7438
|
], BarcodePick, "barcodePickDefaults", null);
|
|
@@ -7618,7 +7472,7 @@ class BarcodePickViewController extends BaseController {
|
|
|
7618
7472
|
super('BarcodePickViewProxy');
|
|
7619
7473
|
}
|
|
7620
7474
|
initialize(autoCreateNativeView) {
|
|
7621
|
-
return __awaiter(this,
|
|
7475
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
7622
7476
|
// We call update because it returns a promise, this guarantees, that by the time
|
|
7623
7477
|
// we need the deserialized context, it will be set in the native layer.
|
|
7624
7478
|
yield this.view.context.update();
|
|
@@ -7650,7 +7504,7 @@ class BarcodePickViewController extends BaseController {
|
|
|
7650
7504
|
}
|
|
7651
7505
|
removeNativeView() {
|
|
7652
7506
|
var _a, _b, _c;
|
|
7653
|
-
return (_c = (_b = (_a = this._proxy).removeView) === null || _b ===
|
|
7507
|
+
return (_c = (_b = (_a = this._proxy).removeView) === null || _b === undefined ? undefined : _b.call(_a)) !== null && _c !== undefined ? _c : Promise.resolve();
|
|
7654
7508
|
}
|
|
7655
7509
|
create() {
|
|
7656
7510
|
const barcodePickView = this.view.toJSON();
|
|
@@ -7662,7 +7516,7 @@ class BarcodePickViewController extends BaseController {
|
|
|
7662
7516
|
this.unsubscribeListeners();
|
|
7663
7517
|
}
|
|
7664
7518
|
setUiListener(listener) {
|
|
7665
|
-
return __awaiter(this,
|
|
7519
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
7666
7520
|
if (listener) {
|
|
7667
7521
|
yield this._proxy.subscribeBarcodePickViewUiListener();
|
|
7668
7522
|
}
|
|
@@ -7702,7 +7556,7 @@ class BarcodePickViewController extends BaseController {
|
|
|
7702
7556
|
if (!this.view.uiListener) {
|
|
7703
7557
|
return;
|
|
7704
7558
|
}
|
|
7705
|
-
(_b = (_a = this.view) === null || _a ===
|
|
7559
|
+
(_b = (_a = this.view) === null || _a === undefined ? undefined : _a.uiListener) === null || _b === undefined ? undefined : _b.didTapFinishButton(this);
|
|
7706
7560
|
});
|
|
7707
7561
|
this.eventEmitter.on(BarcodePickViewListenerEvents.DidStartScanning, () => {
|
|
7708
7562
|
this.view.listeners
|
|
@@ -7784,16 +7638,16 @@ class BarcodePickAsyncMapperProductProvider extends DefaultSerializeable {
|
|
|
7784
7638
|
}
|
|
7785
7639
|
__decorate([
|
|
7786
7640
|
ignoreFromSerialization
|
|
7787
|
-
], BarcodePickAsyncMapperProductProvider.prototype, "_callback",
|
|
7641
|
+
], BarcodePickAsyncMapperProductProvider.prototype, "_callback", undefined);
|
|
7788
7642
|
__decorate([
|
|
7789
7643
|
ignoreFromSerialization
|
|
7790
|
-
], BarcodePickAsyncMapperProductProvider.prototype, "_productController",
|
|
7644
|
+
], BarcodePickAsyncMapperProductProvider.prototype, "_productController", undefined);
|
|
7791
7645
|
__decorate([
|
|
7792
7646
|
ignoreFromSerialization
|
|
7793
|
-
], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPick",
|
|
7647
|
+
], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPick", undefined);
|
|
7794
7648
|
__decorate([
|
|
7795
7649
|
nameForSerialization('products')
|
|
7796
|
-
], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPickForSerialization",
|
|
7650
|
+
], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPickForSerialization", undefined);
|
|
7797
7651
|
|
|
7798
7652
|
var BarcodePickIconStyle;
|
|
7799
7653
|
(function (BarcodePickIconStyle) {
|
|
@@ -7816,10 +7670,10 @@ class BarcodePickProduct extends DefaultSerializeable {
|
|
|
7816
7670
|
}
|
|
7817
7671
|
__decorate([
|
|
7818
7672
|
nameForSerialization('identifier')
|
|
7819
|
-
], BarcodePickProduct.prototype, "_identifier",
|
|
7673
|
+
], BarcodePickProduct.prototype, "_identifier", undefined);
|
|
7820
7674
|
__decorate([
|
|
7821
7675
|
nameForSerialization('quantityToPick')
|
|
7822
|
-
], BarcodePickProduct.prototype, "_quantityToPick",
|
|
7676
|
+
], BarcodePickProduct.prototype, "_quantityToPick", undefined);
|
|
7823
7677
|
|
|
7824
7678
|
class BarcodePickProductProviderCallback {
|
|
7825
7679
|
// eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars
|
|
@@ -7843,10 +7697,10 @@ class BarcodePickProductProviderCallbackItem extends DefaultSerializeable {
|
|
|
7843
7697
|
}
|
|
7844
7698
|
__decorate([
|
|
7845
7699
|
nameForSerialization('itemData')
|
|
7846
|
-
], BarcodePickProductProviderCallbackItem.prototype, "_itemData",
|
|
7700
|
+
], BarcodePickProductProviderCallbackItem.prototype, "_itemData", undefined);
|
|
7847
7701
|
__decorate([
|
|
7848
7702
|
nameForSerialization('productIdentifier')
|
|
7849
|
-
], BarcodePickProductProviderCallbackItem.prototype, "_productIdentifier",
|
|
7703
|
+
], BarcodePickProductProviderCallbackItem.prototype, "_productIdentifier", undefined);
|
|
7850
7704
|
|
|
7851
7705
|
class BarcodePickSettings extends DefaultSerializeable {
|
|
7852
7706
|
static get barcodePickDefaults() {
|
|
@@ -7909,16 +7763,16 @@ class BarcodePickSettings extends DefaultSerializeable {
|
|
|
7909
7763
|
}
|
|
7910
7764
|
__decorate([
|
|
7911
7765
|
nameForSerialization('soundEnabled')
|
|
7912
|
-
], BarcodePickSettings.prototype, "_soundEnabled",
|
|
7766
|
+
], BarcodePickSettings.prototype, "_soundEnabled", undefined);
|
|
7913
7767
|
__decorate([
|
|
7914
7768
|
nameForSerialization('hapticEnabled')
|
|
7915
|
-
], BarcodePickSettings.prototype, "_hapticsEnabled",
|
|
7769
|
+
], BarcodePickSettings.prototype, "_hapticsEnabled", undefined);
|
|
7916
7770
|
__decorate([
|
|
7917
7771
|
nameForSerialization('cachingEnabled')
|
|
7918
|
-
], BarcodePickSettings.prototype, "_cachingEnabled",
|
|
7772
|
+
], BarcodePickSettings.prototype, "_cachingEnabled", undefined);
|
|
7919
7773
|
__decorate([
|
|
7920
7774
|
nameForSerialization('arucoDictionary')
|
|
7921
|
-
], BarcodePickSettings.prototype, "_arucoDictionary",
|
|
7775
|
+
], BarcodePickSettings.prototype, "_arucoDictionary", undefined);
|
|
7922
7776
|
__decorate([
|
|
7923
7777
|
ignoreFromSerialization
|
|
7924
7778
|
], BarcodePickSettings, "barcodePickDefaults", null);
|
|
@@ -7966,7 +7820,7 @@ class BaseBarcodePickView extends DefaultSerializeable {
|
|
|
7966
7820
|
this.viewController = BarcodePickViewController.forBarcodePick(this, nativeView, this.autoCreateNativeView);
|
|
7967
7821
|
}
|
|
7968
7822
|
createNativeView() {
|
|
7969
|
-
return __awaiter(this,
|
|
7823
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
7970
7824
|
if (this.isViewCreated) {
|
|
7971
7825
|
return Promise.resolve();
|
|
7972
7826
|
}
|
|
@@ -7975,7 +7829,7 @@ class BaseBarcodePickView extends DefaultSerializeable {
|
|
|
7975
7829
|
});
|
|
7976
7830
|
}
|
|
7977
7831
|
removeNativeView() {
|
|
7978
|
-
return __awaiter(this,
|
|
7832
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
7979
7833
|
yield this.viewController.removeNativeView();
|
|
7980
7834
|
this.isViewCreated = false;
|
|
7981
7835
|
});
|
|
@@ -8051,28 +7905,28 @@ class BaseBarcodePickView extends DefaultSerializeable {
|
|
|
8051
7905
|
}
|
|
8052
7906
|
__decorate([
|
|
8053
7907
|
ignoreFromSerialization
|
|
8054
|
-
], BaseBarcodePickView.prototype, "viewController",
|
|
7908
|
+
], BaseBarcodePickView.prototype, "viewController", undefined);
|
|
8055
7909
|
__decorate([
|
|
8056
7910
|
ignoreFromSerialization
|
|
8057
|
-
], BaseBarcodePickView.prototype, "actionListeners",
|
|
7911
|
+
], BaseBarcodePickView.prototype, "actionListeners", undefined);
|
|
8058
7912
|
__decorate([
|
|
8059
7913
|
ignoreFromSerialization
|
|
8060
|
-
], BaseBarcodePickView.prototype, "listeners",
|
|
7914
|
+
], BaseBarcodePickView.prototype, "listeners", undefined);
|
|
8061
7915
|
__decorate([
|
|
8062
7916
|
nameForSerialization('isStarted')
|
|
8063
|
-
], BaseBarcodePickView.prototype, "isStarted",
|
|
7917
|
+
], BaseBarcodePickView.prototype, "isStarted", undefined);
|
|
8064
7918
|
__decorate([
|
|
8065
7919
|
ignoreFromSerialization
|
|
8066
|
-
], BaseBarcodePickView.prototype, "_context",
|
|
7920
|
+
], BaseBarcodePickView.prototype, "_context", undefined);
|
|
8067
7921
|
__decorate([
|
|
8068
7922
|
ignoreFromSerialization
|
|
8069
|
-
], BaseBarcodePickView.prototype, "isViewCreated",
|
|
7923
|
+
], BaseBarcodePickView.prototype, "isViewCreated", undefined);
|
|
8070
7924
|
__decorate([
|
|
8071
7925
|
ignoreFromSerialization
|
|
8072
|
-
], BaseBarcodePickView.prototype, "autoCreateNativeView",
|
|
7926
|
+
], BaseBarcodePickView.prototype, "autoCreateNativeView", undefined);
|
|
8073
7927
|
__decorate([
|
|
8074
7928
|
ignoreFromSerialization
|
|
8075
|
-
], BaseBarcodePickView.prototype, "_barcodePickViewUiListener",
|
|
7929
|
+
], BaseBarcodePickView.prototype, "_barcodePickViewUiListener", undefined);
|
|
8076
7930
|
|
|
8077
7931
|
class BarcodePickViewSettings extends DefaultSerializeable {
|
|
8078
7932
|
static get barcodePickDefaults() {
|
|
@@ -8182,46 +8036,46 @@ class BarcodePickViewSettings extends DefaultSerializeable {
|
|
|
8182
8036
|
}
|
|
8183
8037
|
__decorate([
|
|
8184
8038
|
nameForSerialization('highlightStyle')
|
|
8185
|
-
], BarcodePickViewSettings.prototype, "_highlightStyle",
|
|
8039
|
+
], BarcodePickViewSettings.prototype, "_highlightStyle", undefined);
|
|
8186
8040
|
__decorate([
|
|
8187
8041
|
nameForSerialization('shouldShowLoadingDialog')
|
|
8188
|
-
], BarcodePickViewSettings.prototype, "_showLoadingDialog",
|
|
8042
|
+
], BarcodePickViewSettings.prototype, "_showLoadingDialog", undefined);
|
|
8189
8043
|
__decorate([
|
|
8190
8044
|
nameForSerialization('showFinishButton')
|
|
8191
|
-
], BarcodePickViewSettings.prototype, "_showFinishButton",
|
|
8045
|
+
], BarcodePickViewSettings.prototype, "_showFinishButton", undefined);
|
|
8192
8046
|
__decorate([
|
|
8193
8047
|
nameForSerialization('showPauseButton')
|
|
8194
|
-
], BarcodePickViewSettings.prototype, "_showPauseButton",
|
|
8048
|
+
], BarcodePickViewSettings.prototype, "_showPauseButton", undefined);
|
|
8195
8049
|
__decorate([
|
|
8196
8050
|
nameForSerialization('showZoomButton')
|
|
8197
|
-
], BarcodePickViewSettings.prototype, "_showZoomButton",
|
|
8051
|
+
], BarcodePickViewSettings.prototype, "_showZoomButton", undefined);
|
|
8198
8052
|
__decorate([
|
|
8199
8053
|
nameForSerialization('showLoadingDialogText')
|
|
8200
|
-
], BarcodePickViewSettings.prototype, "_loadingDialogText",
|
|
8054
|
+
], BarcodePickViewSettings.prototype, "_loadingDialogText", undefined);
|
|
8201
8055
|
__decorate([
|
|
8202
8056
|
nameForSerialization('shouldShowGuidelines')
|
|
8203
|
-
], BarcodePickViewSettings.prototype, "_showGuidelines",
|
|
8057
|
+
], BarcodePickViewSettings.prototype, "_showGuidelines", undefined);
|
|
8204
8058
|
__decorate([
|
|
8205
8059
|
nameForSerialization('initialGuidelineText')
|
|
8206
|
-
], BarcodePickViewSettings.prototype, "_initialGuidelineText",
|
|
8060
|
+
], BarcodePickViewSettings.prototype, "_initialGuidelineText", undefined);
|
|
8207
8061
|
__decorate([
|
|
8208
8062
|
nameForSerialization('moveCloserGuidelineText')
|
|
8209
|
-
], BarcodePickViewSettings.prototype, "_moveCloserGuidelineText",
|
|
8063
|
+
], BarcodePickViewSettings.prototype, "_moveCloserGuidelineText", undefined);
|
|
8210
8064
|
__decorate([
|
|
8211
8065
|
nameForSerialization('shouldShowHints')
|
|
8212
|
-
], BarcodePickViewSettings.prototype, "_showHints",
|
|
8066
|
+
], BarcodePickViewSettings.prototype, "_showHints", undefined);
|
|
8213
8067
|
__decorate([
|
|
8214
8068
|
nameForSerialization('onFirstItemToPickFoundHintText')
|
|
8215
|
-
], BarcodePickViewSettings.prototype, "_onFirstItemToPickFoundHintText",
|
|
8069
|
+
], BarcodePickViewSettings.prototype, "_onFirstItemToPickFoundHintText", undefined);
|
|
8216
8070
|
__decorate([
|
|
8217
8071
|
nameForSerialization('onFirstItemPickCompletedHintText')
|
|
8218
|
-
], BarcodePickViewSettings.prototype, "_onFirstItemPickCompletedHintText",
|
|
8072
|
+
], BarcodePickViewSettings.prototype, "_onFirstItemPickCompletedHintText", undefined);
|
|
8219
8073
|
__decorate([
|
|
8220
8074
|
nameForSerialization('onFirstUnmarkedItemPickCompletedHintText')
|
|
8221
|
-
], BarcodePickViewSettings.prototype, "_onFirstUnmarkedItemPickCompletedHintText",
|
|
8075
|
+
], BarcodePickViewSettings.prototype, "_onFirstUnmarkedItemPickCompletedHintText", undefined);
|
|
8222
8076
|
__decorate([
|
|
8223
8077
|
nameForSerialization('onFirstItemUnpickCompletedHintText')
|
|
8224
|
-
], BarcodePickViewSettings.prototype, "_onFirstItemUnpickCompletedHintText",
|
|
8078
|
+
], BarcodePickViewSettings.prototype, "_onFirstItemUnpickCompletedHintText", undefined);
|
|
8225
8079
|
__decorate([
|
|
8226
8080
|
ignoreFromSerialization
|
|
8227
8081
|
], BarcodePickViewSettings, "barcodePickDefaults", null);
|
|
@@ -8230,10 +8084,10 @@ class BrushForStateObject extends DefaultSerializeable {
|
|
|
8230
8084
|
}
|
|
8231
8085
|
__decorate([
|
|
8232
8086
|
nameForSerialization('barcodePickState')
|
|
8233
|
-
], BrushForStateObject.prototype, "barcodePickState",
|
|
8087
|
+
], BrushForStateObject.prototype, "barcodePickState", undefined);
|
|
8234
8088
|
__decorate([
|
|
8235
8089
|
nameForSerialization('brush')
|
|
8236
|
-
], BrushForStateObject.prototype, "brush",
|
|
8090
|
+
], BrushForStateObject.prototype, "brush", undefined);
|
|
8237
8091
|
|
|
8238
8092
|
class BarcodePickStatusIconSettings extends DefaultSerializeable {
|
|
8239
8093
|
constructor() {
|
|
@@ -8268,21 +8122,21 @@ class BarcodePickStatusIconSettings extends DefaultSerializeable {
|
|
|
8268
8122
|
return null;
|
|
8269
8123
|
}
|
|
8270
8124
|
const barcodePickStatusIconSettings = new BarcodePickStatusIconSettings();
|
|
8271
|
-
barcodePickStatusIconSettings._ratioToHighlightSize = json === null || json ===
|
|
8272
|
-
barcodePickStatusIconSettings._minSize = json === null || json ===
|
|
8273
|
-
barcodePickStatusIconSettings._maxSize = json === null || json ===
|
|
8125
|
+
barcodePickStatusIconSettings._ratioToHighlightSize = json === null || json === undefined ? undefined : json.ratioToHighlightSize;
|
|
8126
|
+
barcodePickStatusIconSettings._minSize = json === null || json === undefined ? undefined : json.minSize;
|
|
8127
|
+
barcodePickStatusIconSettings._maxSize = json === null || json === undefined ? undefined : json.maxSize;
|
|
8274
8128
|
return barcodePickStatusIconSettings;
|
|
8275
8129
|
}
|
|
8276
8130
|
}
|
|
8277
8131
|
__decorate([
|
|
8278
8132
|
nameForSerialization('ratioToHighlightSize')
|
|
8279
|
-
], BarcodePickStatusIconSettings.prototype, "_ratioToHighlightSize",
|
|
8133
|
+
], BarcodePickStatusIconSettings.prototype, "_ratioToHighlightSize", undefined);
|
|
8280
8134
|
__decorate([
|
|
8281
8135
|
nameForSerialization('minSize')
|
|
8282
|
-
], BarcodePickStatusIconSettings.prototype, "_minSize",
|
|
8136
|
+
], BarcodePickStatusIconSettings.prototype, "_minSize", undefined);
|
|
8283
8137
|
__decorate([
|
|
8284
8138
|
nameForSerialization('maxSize')
|
|
8285
|
-
], BarcodePickStatusIconSettings.prototype, "_maxSize",
|
|
8139
|
+
], BarcodePickStatusIconSettings.prototype, "_maxSize", undefined);
|
|
8286
8140
|
__decorate([
|
|
8287
8141
|
ignoreFromSerialization
|
|
8288
8142
|
], BarcodePickStatusIconSettings, "barcodePickDefaults", null);
|
|
@@ -8307,10 +8161,10 @@ class Dot extends DefaultSerializeable {
|
|
|
8307
8161
|
}
|
|
8308
8162
|
__decorate([
|
|
8309
8163
|
nameForSerialization('type')
|
|
8310
|
-
], Dot.prototype, "_type",
|
|
8164
|
+
], Dot.prototype, "_type", undefined);
|
|
8311
8165
|
__decorate([
|
|
8312
8166
|
nameForSerialization('brushesForState')
|
|
8313
|
-
], Dot.prototype, "_brushesForState",
|
|
8167
|
+
], Dot.prototype, "_brushesForState", undefined);
|
|
8314
8168
|
__decorate([
|
|
8315
8169
|
ignoreFromSerialization
|
|
8316
8170
|
], Dot, "barcodePickDefaults", null);
|
|
@@ -8330,10 +8184,10 @@ class IconForStateObject extends DefaultSerializeable {
|
|
|
8330
8184
|
}
|
|
8331
8185
|
__decorate([
|
|
8332
8186
|
nameForSerialization('barcodePickState')
|
|
8333
|
-
], IconForStateObject.prototype, "_barcodePickState",
|
|
8187
|
+
], IconForStateObject.prototype, "_barcodePickState", undefined);
|
|
8334
8188
|
__decorate([
|
|
8335
8189
|
nameForSerialization('icon')
|
|
8336
|
-
], IconForStateObject.prototype, "_icon",
|
|
8190
|
+
], IconForStateObject.prototype, "_icon", undefined);
|
|
8337
8191
|
|
|
8338
8192
|
class DotWithIcons extends DefaultSerializeable {
|
|
8339
8193
|
static get barcodePickDefaults() {
|
|
@@ -8370,16 +8224,16 @@ class DotWithIcons extends DefaultSerializeable {
|
|
|
8370
8224
|
}
|
|
8371
8225
|
__decorate([
|
|
8372
8226
|
nameForSerialization('type')
|
|
8373
|
-
], DotWithIcons.prototype, "_type",
|
|
8227
|
+
], DotWithIcons.prototype, "_type", undefined);
|
|
8374
8228
|
__decorate([
|
|
8375
8229
|
nameForSerialization('brushesForState')
|
|
8376
|
-
], DotWithIcons.prototype, "_brushesForState",
|
|
8230
|
+
], DotWithIcons.prototype, "_brushesForState", undefined);
|
|
8377
8231
|
__decorate([
|
|
8378
8232
|
nameForSerialization('iconsForState')
|
|
8379
|
-
], DotWithIcons.prototype, "_iconsForState",
|
|
8233
|
+
], DotWithIcons.prototype, "_iconsForState", undefined);
|
|
8380
8234
|
__decorate([
|
|
8381
8235
|
nameForSerialization('iconStyle')
|
|
8382
|
-
], DotWithIcons.prototype, "_iconStyle",
|
|
8236
|
+
], DotWithIcons.prototype, "_iconStyle", undefined);
|
|
8383
8237
|
__decorate([
|
|
8384
8238
|
ignoreFromSerialization
|
|
8385
8239
|
], DotWithIcons, "barcodePickDefaults", null);
|
|
@@ -8418,16 +8272,16 @@ class Rectangular extends DefaultSerializeable {
|
|
|
8418
8272
|
}
|
|
8419
8273
|
__decorate([
|
|
8420
8274
|
nameForSerialization('type')
|
|
8421
|
-
], Rectangular.prototype, "_type",
|
|
8275
|
+
], Rectangular.prototype, "_type", undefined);
|
|
8422
8276
|
__decorate([
|
|
8423
8277
|
nameForSerialization('brushesForState')
|
|
8424
|
-
], Rectangular.prototype, "_brushesForState",
|
|
8278
|
+
], Rectangular.prototype, "_brushesForState", undefined);
|
|
8425
8279
|
__decorate([
|
|
8426
8280
|
nameForSerialization('minimumHighlightWidth')
|
|
8427
|
-
], Rectangular.prototype, "_minimumHighlightWidth",
|
|
8281
|
+
], Rectangular.prototype, "_minimumHighlightWidth", undefined);
|
|
8428
8282
|
__decorate([
|
|
8429
8283
|
nameForSerialization('minimumHighlightHeight')
|
|
8430
|
-
], Rectangular.prototype, "_minimumHighlightHeight",
|
|
8284
|
+
], Rectangular.prototype, "_minimumHighlightHeight", undefined);
|
|
8431
8285
|
__decorate([
|
|
8432
8286
|
ignoreFromSerialization
|
|
8433
8287
|
], Rectangular, "barcodePickDefaults", null);
|
|
@@ -8487,25 +8341,25 @@ class RectangularWithIcons extends DefaultSerializeable {
|
|
|
8487
8341
|
}
|
|
8488
8342
|
__decorate([
|
|
8489
8343
|
nameForSerialization('type')
|
|
8490
|
-
], RectangularWithIcons.prototype, "_type",
|
|
8344
|
+
], RectangularWithIcons.prototype, "_type", undefined);
|
|
8491
8345
|
__decorate([
|
|
8492
8346
|
nameForSerialization('brushesForState')
|
|
8493
|
-
], RectangularWithIcons.prototype, "_brushesForState",
|
|
8347
|
+
], RectangularWithIcons.prototype, "_brushesForState", undefined);
|
|
8494
8348
|
__decorate([
|
|
8495
8349
|
nameForSerialization('iconsForState')
|
|
8496
|
-
], RectangularWithIcons.prototype, "_iconsForState",
|
|
8350
|
+
], RectangularWithIcons.prototype, "_iconsForState", undefined);
|
|
8497
8351
|
__decorate([
|
|
8498
8352
|
nameForSerialization('iconStyle')
|
|
8499
|
-
], RectangularWithIcons.prototype, "_iconStyle",
|
|
8353
|
+
], RectangularWithIcons.prototype, "_iconStyle", undefined);
|
|
8500
8354
|
__decorate([
|
|
8501
8355
|
nameForSerialization('statusIconSettings')
|
|
8502
|
-
], RectangularWithIcons.prototype, "_statusIconSettings",
|
|
8356
|
+
], RectangularWithIcons.prototype, "_statusIconSettings", undefined);
|
|
8503
8357
|
__decorate([
|
|
8504
8358
|
nameForSerialization('minimumHighlightWidth')
|
|
8505
|
-
], RectangularWithIcons.prototype, "_minimumHighlightWidth",
|
|
8359
|
+
], RectangularWithIcons.prototype, "_minimumHighlightWidth", undefined);
|
|
8506
8360
|
__decorate([
|
|
8507
8361
|
nameForSerialization('minimumHighlightHeight')
|
|
8508
|
-
], RectangularWithIcons.prototype, "_minimumHighlightHeight",
|
|
8362
|
+
], RectangularWithIcons.prototype, "_minimumHighlightHeight", undefined);
|
|
8509
8363
|
__decorate([
|
|
8510
8364
|
ignoreFromSerialization
|
|
8511
8365
|
], RectangularWithIcons, "barcodePickDefaults", null);
|
|
@@ -8533,7 +8387,7 @@ class BarcodeFindFeedback extends DefaultSerializeable {
|
|
|
8533
8387
|
}
|
|
8534
8388
|
updateFeedback() {
|
|
8535
8389
|
var _a;
|
|
8536
|
-
(_a = this.controller) === null || _a ===
|
|
8390
|
+
(_a = this.controller) === null || _a === undefined ? undefined : _a.updateFeedback(JSON.stringify(this.toJSON()));
|
|
8537
8391
|
}
|
|
8538
8392
|
static get barcodeFindDefaults() {
|
|
8539
8393
|
return getBarcodeFindDefaults();
|
|
@@ -8544,13 +8398,13 @@ class BarcodeFindFeedback extends DefaultSerializeable {
|
|
|
8544
8398
|
}
|
|
8545
8399
|
__decorate([
|
|
8546
8400
|
ignoreFromSerialization
|
|
8547
|
-
], BarcodeFindFeedback.prototype, "controller",
|
|
8401
|
+
], BarcodeFindFeedback.prototype, "controller", undefined);
|
|
8548
8402
|
__decorate([
|
|
8549
8403
|
nameForSerialization('found')
|
|
8550
|
-
], BarcodeFindFeedback.prototype, "_found",
|
|
8404
|
+
], BarcodeFindFeedback.prototype, "_found", undefined);
|
|
8551
8405
|
__decorate([
|
|
8552
8406
|
nameForSerialization('itemListUpdated')
|
|
8553
|
-
], BarcodeFindFeedback.prototype, "_itemListUpdated",
|
|
8407
|
+
], BarcodeFindFeedback.prototype, "_itemListUpdated", undefined);
|
|
8554
8408
|
|
|
8555
8409
|
var BarcodeFindListenerEvents;
|
|
8556
8410
|
(function (BarcodeFindListenerEvents) {
|
|
@@ -8589,7 +8443,7 @@ class BarcodeFindController extends BaseController {
|
|
|
8589
8443
|
this._proxy.setModeEnabledState(isEnabled);
|
|
8590
8444
|
}
|
|
8591
8445
|
setBarcodeTransformer() {
|
|
8592
|
-
return __awaiter(this,
|
|
8446
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
8593
8447
|
yield this._proxy.setBarcodeTransformer();
|
|
8594
8448
|
this.subscribeBarcodeFindTransformerEvent();
|
|
8595
8449
|
});
|
|
@@ -8608,7 +8462,7 @@ class BarcodeFindController extends BaseController {
|
|
|
8608
8462
|
console.error('BarcodeFindController onTransformBarcodeData payload is null');
|
|
8609
8463
|
return;
|
|
8610
8464
|
}
|
|
8611
|
-
const transformed = (_a = this._barcodeFind.barcodeTransformer) === null || _a ===
|
|
8465
|
+
const transformed = (_a = this._barcodeFind.barcodeTransformer) === null || _a === undefined ? undefined : _a.transformBarcodeData(payload.data);
|
|
8612
8466
|
this._proxy.submitBarcodeFindTransformerResult(transformed);
|
|
8613
8467
|
});
|
|
8614
8468
|
}
|
|
@@ -8618,21 +8472,21 @@ class BarcodeFindController extends BaseController {
|
|
|
8618
8472
|
var _a;
|
|
8619
8473
|
const listeners = this._barcodeFind.listeners;
|
|
8620
8474
|
for (const listener of listeners) {
|
|
8621
|
-
(_a = listener === null || listener ===
|
|
8475
|
+
(_a = listener === null || listener === undefined ? undefined : listener.didStartSearch) === null || _a === undefined ? undefined : _a.call(listener);
|
|
8622
8476
|
}
|
|
8623
8477
|
});
|
|
8624
8478
|
this.eventEmitter.on(BarcodeFindListenerEvents.onSearchPausedEvent, (data) => {
|
|
8625
8479
|
var _a;
|
|
8626
8480
|
const foundItems = this.filterFoundItemsFromEvent(data);
|
|
8627
8481
|
for (const listener of this._barcodeFind.listeners) {
|
|
8628
|
-
(_a = listener === null || listener ===
|
|
8482
|
+
(_a = listener === null || listener === undefined ? undefined : listener.didPauseSearch) === null || _a === undefined ? undefined : _a.call(listener, foundItems);
|
|
8629
8483
|
}
|
|
8630
8484
|
});
|
|
8631
8485
|
this.eventEmitter.on(BarcodeFindListenerEvents.onSearchStoppedEvent, (data) => {
|
|
8632
8486
|
var _a;
|
|
8633
8487
|
const foundItems = this.filterFoundItemsFromEvent(data);
|
|
8634
8488
|
for (const listener of this._barcodeFind.listeners) {
|
|
8635
|
-
(_a = listener === null || listener ===
|
|
8489
|
+
(_a = listener === null || listener === undefined ? undefined : listener.didStopSearch) === null || _a === undefined ? undefined : _a.call(listener, foundItems);
|
|
8636
8490
|
}
|
|
8637
8491
|
});
|
|
8638
8492
|
}
|
|
@@ -8751,28 +8605,28 @@ class BarcodeFind extends DefaultSerializeable {
|
|
|
8751
8605
|
}
|
|
8752
8606
|
__decorate([
|
|
8753
8607
|
nameForSerialization('feedback')
|
|
8754
|
-
], BarcodeFind.prototype, "_feedback",
|
|
8608
|
+
], BarcodeFind.prototype, "_feedback", undefined);
|
|
8755
8609
|
__decorate([
|
|
8756
8610
|
nameForSerialization('enabled')
|
|
8757
|
-
], BarcodeFind.prototype, "_enabled",
|
|
8611
|
+
], BarcodeFind.prototype, "_enabled", undefined);
|
|
8758
8612
|
__decorate([
|
|
8759
8613
|
ignoreFromSerialization
|
|
8760
|
-
], BarcodeFind.prototype, "_isInCallback",
|
|
8614
|
+
], BarcodeFind.prototype, "_isInCallback", undefined);
|
|
8761
8615
|
__decorate([
|
|
8762
8616
|
nameForSerialization('settings')
|
|
8763
|
-
], BarcodeFind.prototype, "_settings",
|
|
8617
|
+
], BarcodeFind.prototype, "_settings", undefined);
|
|
8764
8618
|
__decorate([
|
|
8765
8619
|
nameForSerialization('hasBarcodeTransformer')
|
|
8766
|
-
], BarcodeFind.prototype, "_hasBarcodeTransformer",
|
|
8620
|
+
], BarcodeFind.prototype, "_hasBarcodeTransformer", undefined);
|
|
8767
8621
|
__decorate([
|
|
8768
8622
|
ignoreFromSerialization
|
|
8769
|
-
], BarcodeFind.prototype, "listeners",
|
|
8623
|
+
], BarcodeFind.prototype, "listeners", undefined);
|
|
8770
8624
|
__decorate([
|
|
8771
8625
|
ignoreFromSerialization
|
|
8772
|
-
], BarcodeFind.prototype, "_controller",
|
|
8626
|
+
], BarcodeFind.prototype, "_controller", undefined);
|
|
8773
8627
|
__decorate([
|
|
8774
8628
|
ignoreFromSerialization
|
|
8775
|
-
], BarcodeFind.prototype, "_dataCaptureContext",
|
|
8629
|
+
], BarcodeFind.prototype, "_dataCaptureContext", undefined);
|
|
8776
8630
|
__decorate([
|
|
8777
8631
|
ignoreFromSerialization
|
|
8778
8632
|
], BarcodeFind, "barcodeFindDefaults", null);
|
|
@@ -8792,10 +8646,10 @@ class BarcodeFindItem extends DefaultSerializeable {
|
|
|
8792
8646
|
}
|
|
8793
8647
|
__decorate([
|
|
8794
8648
|
nameForSerialization('searchOptions')
|
|
8795
|
-
], BarcodeFindItem.prototype, "_searchOptions",
|
|
8649
|
+
], BarcodeFindItem.prototype, "_searchOptions", undefined);
|
|
8796
8650
|
__decorate([
|
|
8797
8651
|
nameForSerialization('content')
|
|
8798
|
-
], BarcodeFindItem.prototype, "_content",
|
|
8652
|
+
], BarcodeFindItem.prototype, "_content", undefined);
|
|
8799
8653
|
|
|
8800
8654
|
class BarcodeFindItemContent extends DefaultSerializeable {
|
|
8801
8655
|
constructor(info, additionalInfo, image) {
|
|
@@ -8806,39 +8660,51 @@ class BarcodeFindItemContent extends DefaultSerializeable {
|
|
|
8806
8660
|
}
|
|
8807
8661
|
get info() {
|
|
8808
8662
|
var _a;
|
|
8809
|
-
return (_a = this._info) !== null && _a !==
|
|
8663
|
+
return (_a = this._info) !== null && _a !== undefined ? _a : null;
|
|
8810
8664
|
}
|
|
8811
8665
|
get additionalInfo() {
|
|
8812
8666
|
var _a;
|
|
8813
|
-
return (_a = this._additionalInfo) !== null && _a !==
|
|
8667
|
+
return (_a = this._additionalInfo) !== null && _a !== undefined ? _a : null;
|
|
8814
8668
|
}
|
|
8815
8669
|
get image() {
|
|
8816
8670
|
var _a;
|
|
8817
|
-
return (_a = this._image) !== null && _a !==
|
|
8671
|
+
return (_a = this._image) !== null && _a !== undefined ? _a : null;
|
|
8818
8672
|
}
|
|
8819
8673
|
}
|
|
8820
8674
|
__decorate([
|
|
8821
8675
|
nameForSerialization('info')
|
|
8822
|
-
], BarcodeFindItemContent.prototype, "_info",
|
|
8676
|
+
], BarcodeFindItemContent.prototype, "_info", undefined);
|
|
8823
8677
|
__decorate([
|
|
8824
8678
|
nameForSerialization('additionalInfo')
|
|
8825
|
-
], BarcodeFindItemContent.prototype, "_additionalInfo",
|
|
8679
|
+
], BarcodeFindItemContent.prototype, "_additionalInfo", undefined);
|
|
8826
8680
|
__decorate([
|
|
8827
8681
|
nameForSerialization('image')
|
|
8828
|
-
], BarcodeFindItemContent.prototype, "_image",
|
|
8682
|
+
], BarcodeFindItemContent.prototype, "_image", undefined);
|
|
8829
8683
|
|
|
8830
8684
|
class BarcodeFindItemSearchOptions extends DefaultSerializeable {
|
|
8831
8685
|
constructor(barcodeData) {
|
|
8832
8686
|
super();
|
|
8687
|
+
this._brush = null;
|
|
8833
8688
|
this._barcodeData = barcodeData;
|
|
8834
8689
|
}
|
|
8690
|
+
static withBrush(barcodeData, brush) {
|
|
8691
|
+
const options = new BarcodeFindItemSearchOptions(barcodeData);
|
|
8692
|
+
options._brush = brush;
|
|
8693
|
+
return options;
|
|
8694
|
+
}
|
|
8835
8695
|
get barcodeData() {
|
|
8836
8696
|
return this._barcodeData;
|
|
8837
8697
|
}
|
|
8698
|
+
get brush() {
|
|
8699
|
+
return this._brush;
|
|
8700
|
+
}
|
|
8838
8701
|
}
|
|
8839
8702
|
__decorate([
|
|
8840
8703
|
nameForSerialization("barcodeData")
|
|
8841
|
-
], BarcodeFindItemSearchOptions.prototype, "_barcodeData",
|
|
8704
|
+
], BarcodeFindItemSearchOptions.prototype, "_barcodeData", undefined);
|
|
8705
|
+
__decorate([
|
|
8706
|
+
nameForSerialization("brush")
|
|
8707
|
+
], BarcodeFindItemSearchOptions.prototype, "_brush", undefined);
|
|
8842
8708
|
|
|
8843
8709
|
class BarcodeFindSettings extends DefaultSerializeable {
|
|
8844
8710
|
constructor() {
|
|
@@ -8876,10 +8742,10 @@ class BarcodeFindSettings extends DefaultSerializeable {
|
|
|
8876
8742
|
}
|
|
8877
8743
|
__decorate([
|
|
8878
8744
|
nameForSerialization('symbologies')
|
|
8879
|
-
], BarcodeFindSettings.prototype, "_symbologies",
|
|
8745
|
+
], BarcodeFindSettings.prototype, "_symbologies", undefined);
|
|
8880
8746
|
__decorate([
|
|
8881
8747
|
nameForSerialization('properties')
|
|
8882
|
-
], BarcodeFindSettings.prototype, "_properties",
|
|
8748
|
+
], BarcodeFindSettings.prototype, "_properties", undefined);
|
|
8883
8749
|
__decorate([
|
|
8884
8750
|
ignoreFromSerialization
|
|
8885
8751
|
], BarcodeFindSettings, "barcodeDefaults", null);
|
|
@@ -8918,22 +8784,22 @@ class BarcodeFindViewSettings extends DefaultSerializeable {
|
|
|
8918
8784
|
}
|
|
8919
8785
|
__decorate([
|
|
8920
8786
|
nameForSerialization('inListItemColor')
|
|
8921
|
-
], BarcodeFindViewSettings.prototype, "_inListItemColor",
|
|
8787
|
+
], BarcodeFindViewSettings.prototype, "_inListItemColor", undefined);
|
|
8922
8788
|
__decorate([
|
|
8923
8789
|
nameForSerialization('notInListItemColor')
|
|
8924
|
-
], BarcodeFindViewSettings.prototype, "_notInListItemColor",
|
|
8790
|
+
], BarcodeFindViewSettings.prototype, "_notInListItemColor", undefined);
|
|
8925
8791
|
__decorate([
|
|
8926
8792
|
nameForSerialization('soundEnabled')
|
|
8927
|
-
], BarcodeFindViewSettings.prototype, "_soundEnabled",
|
|
8793
|
+
], BarcodeFindViewSettings.prototype, "_soundEnabled", undefined);
|
|
8928
8794
|
__decorate([
|
|
8929
8795
|
nameForSerialization('hapticEnabled')
|
|
8930
|
-
], BarcodeFindViewSettings.prototype, "_hapticEnabled",
|
|
8796
|
+
], BarcodeFindViewSettings.prototype, "_hapticEnabled", undefined);
|
|
8931
8797
|
__decorate([
|
|
8932
8798
|
nameForSerialization('hardwareTriggerEnabled')
|
|
8933
|
-
], BarcodeFindViewSettings.prototype, "_hardwareTriggerEnabled",
|
|
8799
|
+
], BarcodeFindViewSettings.prototype, "_hardwareTriggerEnabled", undefined);
|
|
8934
8800
|
__decorate([
|
|
8935
8801
|
nameForSerialization('hardwareTriggerKeyCode')
|
|
8936
|
-
], BarcodeFindViewSettings.prototype, "_hardwareTriggerKeyCode",
|
|
8802
|
+
], BarcodeFindViewSettings.prototype, "_hardwareTriggerKeyCode", undefined);
|
|
8937
8803
|
|
|
8938
8804
|
var BarcodeFindViewEvents;
|
|
8939
8805
|
(function (BarcodeFindViewEvents) {
|
|
@@ -8954,7 +8820,7 @@ class BarcodeFindViewController extends BaseController {
|
|
|
8954
8820
|
return viewController;
|
|
8955
8821
|
}
|
|
8956
8822
|
setUiListener(listener) {
|
|
8957
|
-
return __awaiter(this,
|
|
8823
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
8958
8824
|
if (listener && !this.isListenerEnabled) {
|
|
8959
8825
|
this.isListenerEnabled = true;
|
|
8960
8826
|
this.subscribeToEvents();
|
|
@@ -8965,12 +8831,6 @@ class BarcodeFindViewController extends BaseController {
|
|
|
8965
8831
|
}
|
|
8966
8832
|
});
|
|
8967
8833
|
}
|
|
8968
|
-
viewPaused() {
|
|
8969
|
-
return this._proxy.onPause();
|
|
8970
|
-
}
|
|
8971
|
-
viewResumed() {
|
|
8972
|
-
return this._proxy.onResume();
|
|
8973
|
-
}
|
|
8974
8834
|
startSearching() {
|
|
8975
8835
|
return this._proxy.startSearching();
|
|
8976
8836
|
}
|
|
@@ -8995,7 +8855,7 @@ class BarcodeFindViewController extends BaseController {
|
|
|
8995
8855
|
}
|
|
8996
8856
|
removeNativeView() {
|
|
8997
8857
|
var _a, _b, _c;
|
|
8998
|
-
return (_c = (_b = (_a = this._proxy).removeView) === null || _b ===
|
|
8858
|
+
return (_c = (_b = (_a = this._proxy).removeView) === null || _b === undefined ? undefined : _b.call(_a)) !== null && _c !== undefined ? _c : Promise.resolve();
|
|
8999
8859
|
}
|
|
9000
8860
|
create() {
|
|
9001
8861
|
const barcodeFindView = this.baseView.toJSON();
|
|
@@ -9004,7 +8864,7 @@ class BarcodeFindViewController extends BaseController {
|
|
|
9004
8864
|
return this._proxy.createView(id, json);
|
|
9005
8865
|
}
|
|
9006
8866
|
initialize() {
|
|
9007
|
-
return __awaiter(this,
|
|
8867
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
9008
8868
|
yield this.baseView.context.update();
|
|
9009
8869
|
if (this.autoCreateNativeView) {
|
|
9010
8870
|
yield this.create();
|
|
@@ -9019,7 +8879,7 @@ class BarcodeFindViewController extends BaseController {
|
|
|
9019
8879
|
return;
|
|
9020
8880
|
}
|
|
9021
8881
|
const { foundItems: barcodeFindItems = [] } = JSON.parse(data);
|
|
9022
|
-
(_b = (_a = this.baseView) === null || _a ===
|
|
8882
|
+
(_b = (_a = this.baseView) === null || _a === undefined ? undefined : _a.barcodeFindViewUiListener) === null || _b === undefined ? undefined : _b.didTapFinishButton(barcodeFindItems);
|
|
9023
8883
|
});
|
|
9024
8884
|
}
|
|
9025
8885
|
unsubscribeToEvents() {
|
|
@@ -9032,7 +8892,7 @@ class BarcodeFindViewController extends BaseController {
|
|
|
9032
8892
|
}
|
|
9033
8893
|
__decorate([
|
|
9034
8894
|
ignoreFromSerialization
|
|
9035
|
-
], BarcodeFindViewController.prototype, "autoCreateNativeView",
|
|
8895
|
+
], BarcodeFindViewController.prototype, "autoCreateNativeView", undefined);
|
|
9036
8896
|
|
|
9037
8897
|
class BaseBarcodeFindView {
|
|
9038
8898
|
get barcodeFindViewUiListener() {
|
|
@@ -9074,12 +8934,6 @@ class BaseBarcodeFindView {
|
|
|
9074
8934
|
static get barcodeFindViewDefaults() {
|
|
9075
8935
|
return getBarcodeFindDefaults().BarcodeFindView;
|
|
9076
8936
|
}
|
|
9077
|
-
viewPaused() {
|
|
9078
|
-
return this.controller.viewPaused();
|
|
9079
|
-
}
|
|
9080
|
-
viewResumed() {
|
|
9081
|
-
return this.controller.viewResumed();
|
|
9082
|
-
}
|
|
9083
8937
|
stopSearching() {
|
|
9084
8938
|
this._startSearching = false;
|
|
9085
8939
|
return this.controller.stopSearching();
|
|
@@ -9102,7 +8956,7 @@ class BaseBarcodeFindView {
|
|
|
9102
8956
|
return BaseBarcodeFindView.barcodeFindViewDefaults.hardwareTriggerSupported;
|
|
9103
8957
|
}
|
|
9104
8958
|
createNativeView() {
|
|
9105
|
-
return __awaiter(this,
|
|
8959
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
9106
8960
|
if (this.isViewCreated) {
|
|
9107
8961
|
return Promise.resolve();
|
|
9108
8962
|
}
|
|
@@ -9111,7 +8965,7 @@ class BaseBarcodeFindView {
|
|
|
9111
8965
|
});
|
|
9112
8966
|
}
|
|
9113
8967
|
removeNativeView() {
|
|
9114
|
-
return __awaiter(this,
|
|
8968
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
9115
8969
|
yield this.controller.removeNativeView();
|
|
9116
8970
|
this.isViewCreated = false;
|
|
9117
8971
|
});
|
|
@@ -9257,7 +9111,7 @@ class BaseBarcodeFindView {
|
|
|
9257
9111
|
shouldShowFinishButton: this.shouldShowFinishButton,
|
|
9258
9112
|
shouldShowProgressBar: this.shouldShowProgressBar,
|
|
9259
9113
|
shouldShowTorchControl: this.shouldShowTorchControl,
|
|
9260
|
-
torchControlPosition: (_a = this.torchControlPosition) === null || _a ===
|
|
9114
|
+
torchControlPosition: (_a = this.torchControlPosition) === null || _a === undefined ? undefined : _a.toString(),
|
|
9261
9115
|
textForCollapseCardsButton: this.textForCollapseCardsButton,
|
|
9262
9116
|
textForAllItemsFoundSuccessfullyHint: this.textForAllItemsFoundSuccessfullyHint,
|
|
9263
9117
|
textForItemListUpdatedHint: this.textForItemListUpdatedHint,
|
|
@@ -9273,20 +9127,20 @@ class BaseBarcodeFindView {
|
|
|
9273
9127
|
BarcodeFind: this._barcodeFind.toJSON()
|
|
9274
9128
|
};
|
|
9275
9129
|
if (this._barcodeFindViewSettings != null) {
|
|
9276
|
-
json.View.viewSettings = (_b = this._barcodeFindViewSettings) === null || _b ===
|
|
9130
|
+
json.View.viewSettings = (_b = this._barcodeFindViewSettings) === null || _b === undefined ? undefined : _b.toJSON();
|
|
9277
9131
|
}
|
|
9278
9132
|
if (this._cameraSettings != null) {
|
|
9279
|
-
json.View.cameraSettings = (_c = this._cameraSettings) === null || _c ===
|
|
9133
|
+
json.View.cameraSettings = (_c = this._cameraSettings) === null || _c === undefined ? undefined : _c.toJSON();
|
|
9280
9134
|
}
|
|
9281
9135
|
return json;
|
|
9282
9136
|
}
|
|
9283
9137
|
}
|
|
9284
9138
|
__decorate([
|
|
9285
9139
|
ignoreFromSerialization
|
|
9286
|
-
], BaseBarcodeFindView.prototype, "isViewCreated",
|
|
9140
|
+
], BaseBarcodeFindView.prototype, "isViewCreated", undefined);
|
|
9287
9141
|
__decorate([
|
|
9288
9142
|
ignoreFromSerialization
|
|
9289
|
-
], BaseBarcodeFindView.prototype, "autoCreateNativeView",
|
|
9143
|
+
], BaseBarcodeFindView.prototype, "autoCreateNativeView", undefined);
|
|
9290
9144
|
|
|
9291
9145
|
class BarcodeGeneratorCreationOptions {
|
|
9292
9146
|
constructor(backgroundColor = null, foregroundColor = null, errorCorrectionLevel = null, versionNumber = null, minimumErrorCorrectionPercent = null, layers = null) {
|
|
@@ -9378,7 +9232,7 @@ class BarcodeGeneratorController {
|
|
|
9378
9232
|
return controller;
|
|
9379
9233
|
}
|
|
9380
9234
|
initialize() {
|
|
9381
|
-
return __awaiter(this,
|
|
9235
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
9382
9236
|
// We call update because it returns a promise, this guarantees, that by the time
|
|
9383
9237
|
// we need the deserialized context, it will be set in the native layer.
|
|
9384
9238
|
yield this.generator.dataCaptureContext.update();
|
|
@@ -9389,7 +9243,7 @@ class BarcodeGeneratorController {
|
|
|
9389
9243
|
return this._proxy.create(JSON.stringify(this.generator.toJSON()));
|
|
9390
9244
|
}
|
|
9391
9245
|
generateFromBase64EncodedData(data, imageWidth) {
|
|
9392
|
-
return __awaiter(this,
|
|
9246
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
9393
9247
|
const result = yield this._proxy.generateFromBase64EncodedData(this.generator.id, data, imageWidth);
|
|
9394
9248
|
if (result == null) {
|
|
9395
9249
|
return '';
|
|
@@ -9398,7 +9252,7 @@ class BarcodeGeneratorController {
|
|
|
9398
9252
|
});
|
|
9399
9253
|
}
|
|
9400
9254
|
generate(text, imageWidth) {
|
|
9401
|
-
return __awaiter(this,
|
|
9255
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
9402
9256
|
const result = yield this._proxy.generate(this.generator.id, text, imageWidth);
|
|
9403
9257
|
if (result == null) {
|
|
9404
9258
|
return '';
|
|
@@ -9442,7 +9296,7 @@ class BarcodeGenerator extends DefaultSerializeable {
|
|
|
9442
9296
|
this.versionNumber = versionNumber;
|
|
9443
9297
|
}
|
|
9444
9298
|
initialize() {
|
|
9445
|
-
return __awaiter(this,
|
|
9299
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
9446
9300
|
this.controller = BarcodeGeneratorController.forBarcodeGenerator(this);
|
|
9447
9301
|
this.initializationPromise = this.controller.initialize();
|
|
9448
9302
|
return this.initializationPromise;
|
|
@@ -9454,13 +9308,13 @@ class BarcodeGenerator extends DefaultSerializeable {
|
|
|
9454
9308
|
return generator;
|
|
9455
9309
|
}
|
|
9456
9310
|
generate(text, imageWidth) {
|
|
9457
|
-
return __awaiter(this,
|
|
9311
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
9458
9312
|
yield this.initializationPromise;
|
|
9459
9313
|
return this.controller.generate(text, imageWidth);
|
|
9460
9314
|
});
|
|
9461
9315
|
}
|
|
9462
9316
|
generateFromBase64EncodedData(data, imageWidth) {
|
|
9463
|
-
return __awaiter(this,
|
|
9317
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
9464
9318
|
yield this.initializationPromise;
|
|
9465
9319
|
return this.controller.generateFromBase64EncodedData(data, imageWidth);
|
|
9466
9320
|
});
|
|
@@ -9495,13 +9349,13 @@ class BarcodeGenerator extends DefaultSerializeable {
|
|
|
9495
9349
|
}
|
|
9496
9350
|
__decorate([
|
|
9497
9351
|
nameForSerialization('id')
|
|
9498
|
-
], BarcodeGenerator.prototype, "_id",
|
|
9352
|
+
], BarcodeGenerator.prototype, "_id", undefined);
|
|
9499
9353
|
__decorate([
|
|
9500
9354
|
ignoreFromSerialization
|
|
9501
|
-
], BarcodeGenerator.prototype, "dataCaptureContext",
|
|
9355
|
+
], BarcodeGenerator.prototype, "dataCaptureContext", undefined);
|
|
9502
9356
|
__decorate([
|
|
9503
9357
|
ignoreFromSerialization
|
|
9504
|
-
], BarcodeGenerator.prototype, "controller",
|
|
9358
|
+
], BarcodeGenerator.prototype, "controller", undefined);
|
|
9505
9359
|
|
|
9506
9360
|
var QrCodeErrorCorrectionLevel;
|
|
9507
9361
|
(function (QrCodeErrorCorrectionLevel) {
|