scandit-capacitor-datacapture-barcode 7.2.2 → 7.3.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ScanditCapacitorDatacaptureBarcode.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.kt +49 -37
- package/dist/barcode.js +1236 -1099
- package/dist/barcode.js.map +1 -1
- package/dist/dts/definitions.d.ts +1 -44
- package/dist/dts/web.d.ts +1 -2
- package/dist/index.js +9 -161
- package/dist/index.js.map +1 -1
- package/ios/Plugin/Plugin.m +5 -5
- package/ios/Plugin/ScanditBarcodeCapture.swift +116 -36
- package/package.json +4 -4
- package/dist/dts/ts/Capacitor/SparkScanListenerProxy.d.ts +0 -18
- package/dist/dts/ts/Capacitor/SparkScanViewProxy.d.ts +0 -25
package/dist/barcode.js
CHANGED
|
@@ -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", void 0);
|
|
103
103
|
__decorate([
|
|
104
104
|
nameForSerialization('maximum')
|
|
105
|
-
], Range.prototype, "_maximum",
|
|
105
|
+
], Range.prototype, "_maximum", void 0);
|
|
106
106
|
__decorate([
|
|
107
107
|
nameForSerialization('step')
|
|
108
|
-
], Range.prototype, "_step",
|
|
108
|
+
], Range.prototype, "_step", void 0);
|
|
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", void 0);
|
|
199
199
|
__decorate([
|
|
200
200
|
nameForSerialization('enabled')
|
|
201
|
-
], SymbologySettings.prototype, "isEnabled",
|
|
201
|
+
], SymbologySettings.prototype, "isEnabled", void 0);
|
|
202
202
|
__decorate([
|
|
203
203
|
nameForSerialization('colorInvertedEnabled')
|
|
204
|
-
], SymbologySettings.prototype, "isColorInvertedEnabled",
|
|
204
|
+
], SymbologySettings.prototype, "isColorInvertedEnabled", void 0);
|
|
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 === void 0 ? void 0 : _a.length) === 12 || (((_b = barcode.data) === null || _b === void 0 ? void 0 : _b.length) === 13 && ((_c = barcode.data) === null || _c === void 0 ? void 0 : _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 === void 0 ? void 0 : _a.length) === 13 && ((_b = barcode.data) === null || _b === void 0 ? void 0 : _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", void 0);
|
|
244
244
|
__decorate([
|
|
245
245
|
nameForSerialization('markers')
|
|
246
|
-
], ArucoDictionary.prototype, "_markers",
|
|
246
|
+
], ArucoDictionary.prototype, "_markers", void 0);
|
|
247
247
|
__decorate([
|
|
248
248
|
nameForSerialization('markerSize')
|
|
249
|
-
], ArucoDictionary.prototype, "_markerSize",
|
|
249
|
+
], ArucoDictionary.prototype, "_markerSize", void 0);
|
|
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", void 0);
|
|
279
279
|
__decorate([
|
|
280
280
|
nameForSerialization('markerSize')
|
|
281
|
-
], ArucoMarker.prototype, "_markerSize",
|
|
281
|
+
], ArucoMarker.prototype, "_markerSize", void 0);
|
|
282
282
|
|
|
283
283
|
function getBarcodeDefaults() {
|
|
284
284
|
return FactoryMaker.getInstance('BarcodeDefaults');
|
|
@@ -332,8 +332,8 @@ function parseBarcodeCaptureDefaults(jsonDefaults) {
|
|
|
332
332
|
return barcodeCaptureDefaults;
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
function
|
|
336
|
-
return FactoryMaker.getInstance('
|
|
335
|
+
function getBarcodeArDefaults() {
|
|
336
|
+
return FactoryMaker.getInstance('BarcodeArDefaults');
|
|
337
337
|
}
|
|
338
338
|
function parseCircleHighlightPresets(jsonPresets) {
|
|
339
339
|
const presets = {};
|
|
@@ -345,21 +345,21 @@ function parseCircleHighlightPresets(jsonPresets) {
|
|
|
345
345
|
function parseBrush$1(brushJson) {
|
|
346
346
|
return new Brush(brushJson.fill.color, brushJson.stroke.color, brushJson.stroke.width);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
const viewJsonDefaults = jsonDefaults.
|
|
350
|
-
const
|
|
348
|
+
function parseBarcodeArDefaults(jsonDefaults) {
|
|
349
|
+
const viewJsonDefaults = jsonDefaults.BarcodeArView;
|
|
350
|
+
const barcodeArDefaults = {
|
|
351
351
|
RecommendedCameraSettings: CameraSettings
|
|
352
352
|
.fromJSON(jsonDefaults.RecommendedCameraSettings),
|
|
353
353
|
Feedback: {
|
|
354
|
-
scanned: Feedback.fromJSON(JSON.parse(jsonDefaults.
|
|
355
|
-
tapped: Feedback.fromJSON(JSON.parse(jsonDefaults.
|
|
354
|
+
scanned: Feedback.fromJSON(JSON.parse(jsonDefaults.barcodeArFeedback).scanned),
|
|
355
|
+
tapped: Feedback.fromJSON(JSON.parse(jsonDefaults.barcodeArFeedback).tapped)
|
|
356
356
|
},
|
|
357
|
-
|
|
357
|
+
BarcodeArView: {
|
|
358
358
|
circleHighlightPresets: parseCircleHighlightPresets(viewJsonDefaults.circleHighlightPresets),
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
.fromJSON(viewJsonDefaults.
|
|
362
|
-
|
|
359
|
+
defaultBarcodeArPopoverAnnotationButtonEnabled: viewJsonDefaults.defaultBarcodeArPopoverAnnotationButtonEnabled,
|
|
360
|
+
defaultBarcodeArPopoverAnnotationButtonTextColor: Color
|
|
361
|
+
.fromJSON(viewJsonDefaults.defaultBarcodeArPopoverAnnotationButtonTextColor),
|
|
362
|
+
defaultBarcodeArPopoverAnnotationButtonTextSize: viewJsonDefaults.defaultBarcodeArPopoverAnnotationButtonTextSize,
|
|
363
363
|
defaultCameraPosition: viewJsonDefaults.defaultCameraPosition,
|
|
364
364
|
defaultCameraSwitchControlPosition: viewJsonDefaults.defaultCameraSwitchControlPosition,
|
|
365
365
|
defaultHapticsEnabled: viewJsonDefaults.defaultHapticsEnabled,
|
|
@@ -419,7 +419,7 @@ function parseBarcodeCheckDefaults(jsonDefaults) {
|
|
|
419
419
|
.fromJSON(viewJsonDefaults.defaultHighlightIcon) || null,
|
|
420
420
|
}
|
|
421
421
|
};
|
|
422
|
-
return
|
|
422
|
+
return barcodeArDefaults;
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
function getBarcodeSelectionDefaults() {
|
|
@@ -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 === void 0 ? void 0 : _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", void 0);
|
|
548
548
|
__decorate([
|
|
549
549
|
nameForSerialization('success')
|
|
550
|
-
], BarcodeCountFeedback.prototype, "_success",
|
|
550
|
+
], BarcodeCountFeedback.prototype, "_success", void 0);
|
|
551
551
|
__decorate([
|
|
552
552
|
nameForSerialization('failure')
|
|
553
|
-
], BarcodeCountFeedback.prototype, "_failure",
|
|
553
|
+
], BarcodeCountFeedback.prototype, "_failure", void 0);
|
|
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 !== void 0 ? _a : [];
|
|
580
|
+
const wrongBarcodes = (_b = json.wrongBarcodes) !== null && _b !== void 0 ? _b : [];
|
|
581
|
+
const missingBarcodes = (_c = json.missingBarcodes) !== null && _c !== void 0 ? _c : [];
|
|
582
|
+
const additionalBarcodes = (_d = json.additionalBarcodes) !== null && _d !== void 0 ? _d : [];
|
|
583
|
+
const acceptedBarcodes = (_e = json.acceptedBarcodes) !== null && _e !== void 0 ? _e : [];
|
|
584
|
+
const rejectedBarcodes = (_f = json.rejectedBarcodes) !== null && _f !== void 0 ? _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", void 0);
|
|
607
607
|
__decorate([
|
|
608
608
|
nameForSerialization('wrongBarcodes')
|
|
609
|
-
], BarcodeCountCaptureListSession.prototype, "_wrongBarcodes",
|
|
609
|
+
], BarcodeCountCaptureListSession.prototype, "_wrongBarcodes", void 0);
|
|
610
610
|
__decorate([
|
|
611
611
|
nameForSerialization('missingBarcodes')
|
|
612
|
-
], BarcodeCountCaptureListSession.prototype, "_missingBarcodes",
|
|
612
|
+
], BarcodeCountCaptureListSession.prototype, "_missingBarcodes", void 0);
|
|
613
613
|
__decorate([
|
|
614
614
|
nameForSerialization('additionalBarcodes')
|
|
615
|
-
], BarcodeCountCaptureListSession.prototype, "_additionalBarcodes",
|
|
615
|
+
], BarcodeCountCaptureListSession.prototype, "_additionalBarcodes", void 0);
|
|
616
616
|
__decorate([
|
|
617
617
|
nameForSerialization('acceptedBarcodes')
|
|
618
|
-
], BarcodeCountCaptureListSession.prototype, "_acceptedBarcodes",
|
|
618
|
+
], BarcodeCountCaptureListSession.prototype, "_acceptedBarcodes", void 0);
|
|
619
619
|
__decorate([
|
|
620
620
|
nameForSerialization('rejectedBarcodes')
|
|
621
|
-
], BarcodeCountCaptureListSession.prototype, "_rejectedBarcodes",
|
|
621
|
+
], BarcodeCountCaptureListSession.prototype, "_rejectedBarcodes", void 0);
|
|
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", void 0);
|
|
700
700
|
__decorate([
|
|
701
701
|
nameForSerialization('data')
|
|
702
|
-
], Barcode.prototype, "_data",
|
|
702
|
+
], Barcode.prototype, "_data", void 0);
|
|
703
703
|
__decorate([
|
|
704
704
|
nameForSerialization('rawData')
|
|
705
|
-
], Barcode.prototype, "_rawData",
|
|
705
|
+
], Barcode.prototype, "_rawData", void 0);
|
|
706
706
|
__decorate([
|
|
707
707
|
nameForSerialization('compositeData')
|
|
708
|
-
], Barcode.prototype, "_compositeData",
|
|
708
|
+
], Barcode.prototype, "_compositeData", void 0);
|
|
709
709
|
__decorate([
|
|
710
710
|
nameForSerialization('compositeRawData')
|
|
711
|
-
], Barcode.prototype, "_compositeRawData",
|
|
711
|
+
], Barcode.prototype, "_compositeRawData", void 0);
|
|
712
712
|
__decorate([
|
|
713
713
|
nameForSerialization('addOnData')
|
|
714
|
-
], Barcode.prototype, "_addOnData",
|
|
714
|
+
], Barcode.prototype, "_addOnData", void 0);
|
|
715
715
|
__decorate([
|
|
716
716
|
nameForSerialization('encodingRanges')
|
|
717
|
-
], Barcode.prototype, "_encodingRanges",
|
|
717
|
+
], Barcode.prototype, "_encodingRanges", void 0);
|
|
718
718
|
__decorate([
|
|
719
719
|
nameForSerialization('location')
|
|
720
|
-
], Barcode.prototype, "_location",
|
|
720
|
+
], Barcode.prototype, "_location", void 0);
|
|
721
721
|
__decorate([
|
|
722
722
|
nameForSerialization('isGS1DataCarrier')
|
|
723
|
-
], Barcode.prototype, "_isGS1DataCarrier",
|
|
723
|
+
], Barcode.prototype, "_isGS1DataCarrier", void 0);
|
|
724
724
|
__decorate([
|
|
725
725
|
nameForSerialization('compositeFlag')
|
|
726
|
-
], Barcode.prototype, "_compositeFlag",
|
|
726
|
+
], Barcode.prototype, "_compositeFlag", void 0);
|
|
727
727
|
__decorate([
|
|
728
728
|
nameForSerialization('isColorInverted')
|
|
729
|
-
], Barcode.prototype, "_isColorInverted",
|
|
729
|
+
], Barcode.prototype, "_isColorInverted", void 0);
|
|
730
730
|
__decorate([
|
|
731
731
|
nameForSerialization('symbolCount')
|
|
732
|
-
], Barcode.prototype, "_symbolCount",
|
|
732
|
+
], Barcode.prototype, "_symbolCount", void 0);
|
|
733
733
|
__decorate([
|
|
734
734
|
nameForSerialization('frameID')
|
|
735
|
-
], Barcode.prototype, "_frameID",
|
|
735
|
+
], Barcode.prototype, "_frameID", void 0);
|
|
736
736
|
__decorate([
|
|
737
737
|
nameForSerialization('structuredAppendData')
|
|
738
|
-
], Barcode.prototype, "_structuredAppendData",
|
|
738
|
+
], Barcode.prototype, "_structuredAppendData", void 0);
|
|
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", void 0);
|
|
796
796
|
__decorate([
|
|
797
797
|
nameForSerialization('quantity')
|
|
798
|
-
], TargetBarcode.prototype, "_quantity",
|
|
798
|
+
], TargetBarcode.prototype, "_quantity", void 0);
|
|
799
799
|
|
|
800
800
|
class TrackedBarcode {
|
|
801
801
|
get barcode() { return this._barcode; }
|
|
@@ -855,13 +855,13 @@ class BarcodeSpatialGrid extends DefaultSerializeable {
|
|
|
855
855
|
}
|
|
856
856
|
__decorate([
|
|
857
857
|
nameForSerialization('rows')
|
|
858
|
-
], BarcodeSpatialGrid.prototype, "_rows",
|
|
858
|
+
], BarcodeSpatialGrid.prototype, "_rows", void 0);
|
|
859
859
|
__decorate([
|
|
860
860
|
nameForSerialization('columns')
|
|
861
|
-
], BarcodeSpatialGrid.prototype, "_columns",
|
|
861
|
+
], BarcodeSpatialGrid.prototype, "_columns", void 0);
|
|
862
862
|
__decorate([
|
|
863
863
|
nameForSerialization('grid')
|
|
864
|
-
], BarcodeSpatialGrid.prototype, "_grid",
|
|
864
|
+
], BarcodeSpatialGrid.prototype, "_grid", void 0);
|
|
865
865
|
|
|
866
866
|
class BarcodeCountSessionController extends BaseController {
|
|
867
867
|
constructor() {
|
|
@@ -871,7 +871,7 @@ class BarcodeCountSessionController extends BaseController {
|
|
|
871
871
|
return this._proxy.$resetSession();
|
|
872
872
|
}
|
|
873
873
|
getSpatialMap() {
|
|
874
|
-
return __awaiter(this,
|
|
874
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
875
875
|
const result = yield this._proxy.$getSpatialMap();
|
|
876
876
|
if (result) {
|
|
877
877
|
const payload = JSON.parse(result.data);
|
|
@@ -880,7 +880,7 @@ class BarcodeCountSessionController extends BaseController {
|
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
882
|
getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns) {
|
|
883
|
-
return __awaiter(this,
|
|
883
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
884
884
|
const result = yield this._proxy.$getSpatialMapWithHints({ expectedNumberOfRows, expectedNumberOfColumns });
|
|
885
885
|
if (result) {
|
|
886
886
|
const payload = JSON.parse(result.data);
|
|
@@ -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 !== void 0 ? _a : '';
|
|
902
902
|
return session;
|
|
903
903
|
}
|
|
904
904
|
constructor() {
|
|
@@ -918,33 +918,33 @@ class BarcodeCountSession extends DefaultSerializeable {
|
|
|
918
918
|
return this.sessionController.resetSession();
|
|
919
919
|
}
|
|
920
920
|
getSpatialMap() {
|
|
921
|
-
return __awaiter(this,
|
|
921
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
922
922
|
var _a;
|
|
923
|
-
return (_a = yield this.sessionController.getSpatialMap()) !== null && _a !==
|
|
923
|
+
return (_a = yield this.sessionController.getSpatialMap()) !== null && _a !== void 0 ? _a : null;
|
|
924
924
|
});
|
|
925
925
|
}
|
|
926
926
|
getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns) {
|
|
927
|
-
return __awaiter(this,
|
|
927
|
+
return __awaiter(this, void 0, void 0, 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 !== void 0 ? _a : null;
|
|
930
930
|
});
|
|
931
931
|
}
|
|
932
932
|
}
|
|
933
933
|
__decorate([
|
|
934
934
|
nameForSerialization('recognizedBarcodes')
|
|
935
|
-
], BarcodeCountSession.prototype, "_recognizedBarcodes",
|
|
935
|
+
], BarcodeCountSession.prototype, "_recognizedBarcodes", void 0);
|
|
936
936
|
__decorate([
|
|
937
937
|
nameForSerialization('additionalBarcodes')
|
|
938
|
-
], BarcodeCountSession.prototype, "_additionalBarcodes",
|
|
938
|
+
], BarcodeCountSession.prototype, "_additionalBarcodes", void 0);
|
|
939
939
|
__decorate([
|
|
940
940
|
nameForSerialization('frameSequenceID')
|
|
941
|
-
], BarcodeCountSession.prototype, "_frameSequenceID",
|
|
941
|
+
], BarcodeCountSession.prototype, "_frameSequenceID", void 0);
|
|
942
942
|
__decorate([
|
|
943
943
|
ignoreFromSerialization
|
|
944
|
-
], BarcodeCountSession.prototype, "sessionController",
|
|
944
|
+
], BarcodeCountSession.prototype, "sessionController", void 0);
|
|
945
945
|
__decorate([
|
|
946
946
|
ignoreFromSerialization
|
|
947
|
-
], BarcodeCountSession.prototype, "frameId",
|
|
947
|
+
], BarcodeCountSession.prototype, "frameId", void 0);
|
|
948
948
|
|
|
949
949
|
var BarcodeCountListenerEvents;
|
|
950
950
|
(function (BarcodeCountListenerEvents) {
|
|
@@ -972,9 +972,9 @@ class BarcodeCountListenerController extends BaseController {
|
|
|
972
972
|
this._proxy.$setBarcodeCountModeEnabledState({ isEnabled: enabled });
|
|
973
973
|
}
|
|
974
974
|
subscribeListener() {
|
|
975
|
-
return __awaiter(this,
|
|
975
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
976
976
|
yield this._proxy.$registerBarcodeCountListener();
|
|
977
|
-
this._proxy.on$didScan = (ev) => __awaiter(this,
|
|
977
|
+
this._proxy.on$didScan = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
978
978
|
const payload = EventDataParser.parse(ev.data);
|
|
979
979
|
if (payload === null) {
|
|
980
980
|
console.error('BarcodeCountListenerController didScan payload is null');
|
|
@@ -984,7 +984,7 @@ class BarcodeCountListenerController extends BaseController {
|
|
|
984
984
|
yield this.notifyListenersOfDidScanSession(session);
|
|
985
985
|
yield this._proxy.$finishBarcodeCountOnScan();
|
|
986
986
|
});
|
|
987
|
-
this._proxy.on$didUpdateSession = (ev) => __awaiter(this,
|
|
987
|
+
this._proxy.on$didUpdateSession = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
988
988
|
const payload = EventDataParser.parse(ev.data);
|
|
989
989
|
if (payload === null) {
|
|
990
990
|
console.error('BarcodeCountListenerController.subscribeListener: didListSessionUpdate payload is null');
|
|
@@ -997,7 +997,7 @@ class BarcodeCountListenerController extends BaseController {
|
|
|
997
997
|
});
|
|
998
998
|
}
|
|
999
999
|
unsubscribeListener() {
|
|
1000
|
-
return __awaiter(this,
|
|
1000
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1001
1001
|
yield this._proxy.$unregisterBarcodeCountListener();
|
|
1002
1002
|
this._proxy.dispose();
|
|
1003
1003
|
});
|
|
@@ -1016,7 +1016,7 @@ class BarcodeCountListenerController extends BaseController {
|
|
|
1016
1016
|
this._proxy.$setBarcodeCountCaptureList({ captureListJson: JSON.stringify(barcodeCountCaptureList.targetBarcodes) });
|
|
1017
1017
|
}
|
|
1018
1018
|
notifyListenersOfDidScanSession(session) {
|
|
1019
|
-
return __awaiter(this,
|
|
1019
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1020
1020
|
const mode = this.barcodeCount;
|
|
1021
1021
|
for (const listener of mode.listeners) {
|
|
1022
1022
|
if (listener.didScan) {
|
|
@@ -1027,9 +1027,9 @@ class BarcodeCountListenerController extends BaseController {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
notifyListenersOfDidListSessionUpdate(session) {
|
|
1029
1029
|
var _a;
|
|
1030
|
-
const barcodeCountCaptureListListener = (_a = this._barcodeCountCaptureList) === null || _a ===
|
|
1031
|
-
if (barcodeCountCaptureListListener && (barcodeCountCaptureListListener === null || barcodeCountCaptureListListener ===
|
|
1032
|
-
barcodeCountCaptureListListener === null || barcodeCountCaptureListListener ===
|
|
1030
|
+
const barcodeCountCaptureListListener = (_a = this._barcodeCountCaptureList) === null || _a === void 0 ? void 0 : _a.listener;
|
|
1031
|
+
if (barcodeCountCaptureListListener && (barcodeCountCaptureListListener === null || barcodeCountCaptureListListener === void 0 ? void 0 : barcodeCountCaptureListListener.didUpdateSession)) {
|
|
1032
|
+
barcodeCountCaptureListListener === null || barcodeCountCaptureListListener === void 0 ? void 0 : barcodeCountCaptureListListener.didUpdateSession(this._barcodeCountCaptureList, session);
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
@@ -1138,22 +1138,22 @@ class BarcodeCount extends DefaultSerializeable {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
__decorate([
|
|
1140
1140
|
nameForSerialization('feedback')
|
|
1141
|
-
], BarcodeCount.prototype, "_feedback",
|
|
1141
|
+
], BarcodeCount.prototype, "_feedback", void 0);
|
|
1142
1142
|
__decorate([
|
|
1143
1143
|
ignoreFromSerialization
|
|
1144
|
-
], BarcodeCount.prototype, "_isEnabled",
|
|
1144
|
+
], BarcodeCount.prototype, "_isEnabled", void 0);
|
|
1145
1145
|
__decorate([
|
|
1146
1146
|
ignoreFromSerialization
|
|
1147
|
-
], BarcodeCount.prototype, "listeners",
|
|
1147
|
+
], BarcodeCount.prototype, "listeners", void 0);
|
|
1148
1148
|
__decorate([
|
|
1149
1149
|
nameForSerialization('additionalBarcodes')
|
|
1150
|
-
], BarcodeCount.prototype, "_additionalBarcodes",
|
|
1150
|
+
], BarcodeCount.prototype, "_additionalBarcodes", void 0);
|
|
1151
1151
|
__decorate([
|
|
1152
1152
|
ignoreFromSerialization
|
|
1153
|
-
], BarcodeCount.prototype, "privateContext",
|
|
1153
|
+
], BarcodeCount.prototype, "privateContext", void 0);
|
|
1154
1154
|
__decorate([
|
|
1155
1155
|
ignoreFromSerialization
|
|
1156
|
-
], BarcodeCount.prototype, "listenerController",
|
|
1156
|
+
], BarcodeCount.prototype, "listenerController", void 0);
|
|
1157
1157
|
__decorate([
|
|
1158
1158
|
ignoreFromSerialization
|
|
1159
1159
|
], BarcodeCount, "barcodeCountDefaults", null);
|
|
@@ -1236,13 +1236,13 @@ class BarcodeCountSettings extends DefaultSerializeable {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
__decorate([
|
|
1238
1238
|
nameForSerialization('barcodeFilterSettings')
|
|
1239
|
-
], BarcodeCountSettings.prototype, "_filterSettings",
|
|
1239
|
+
], BarcodeCountSettings.prototype, "_filterSettings", void 0);
|
|
1240
1240
|
__decorate([
|
|
1241
1241
|
nameForSerialization('expectOnlyUniqueBarcodes')
|
|
1242
|
-
], BarcodeCountSettings.prototype, "_expectsOnlyUniqueBarcodes",
|
|
1242
|
+
], BarcodeCountSettings.prototype, "_expectsOnlyUniqueBarcodes", void 0);
|
|
1243
1243
|
__decorate([
|
|
1244
1244
|
nameForSerialization('mappingEnabled')
|
|
1245
|
-
], BarcodeCountSettings.prototype, "_mappingEnabled",
|
|
1245
|
+
], BarcodeCountSettings.prototype, "_mappingEnabled", void 0);
|
|
1246
1246
|
__decorate([
|
|
1247
1247
|
ignoreFromSerialization
|
|
1248
1248
|
], BarcodeCountSettings, "barcodeCountDefaults", null);
|
|
@@ -1311,7 +1311,7 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1311
1311
|
this.barcodeCount = barcodeCount;
|
|
1312
1312
|
}
|
|
1313
1313
|
initialize(autoCreateNativeView) {
|
|
1314
|
-
return __awaiter(this,
|
|
1314
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1315
1315
|
const context = this.view.context;
|
|
1316
1316
|
yield context.update();
|
|
1317
1317
|
if (autoCreateNativeView) {
|
|
@@ -1330,14 +1330,14 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1330
1330
|
}
|
|
1331
1331
|
removeNativeView() {
|
|
1332
1332
|
var _a, _b, _c;
|
|
1333
|
-
return (_c = (_b = (_a = this._proxy).$removeBarcodeCountView) === null || _b ===
|
|
1333
|
+
return (_c = (_b = (_a = this._proxy).$removeBarcodeCountView) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : Promise.resolve();
|
|
1334
1334
|
}
|
|
1335
1335
|
createView() {
|
|
1336
1336
|
const barcodeCountViewJson = this.view.toJSON();
|
|
1337
1337
|
return this._proxy.$createBarcodeCountView({ viewJson: JSON.stringify(barcodeCountViewJson) });
|
|
1338
1338
|
}
|
|
1339
1339
|
setUiListener(listener) {
|
|
1340
|
-
return __awaiter(this,
|
|
1340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1341
1341
|
if (listener != null) {
|
|
1342
1342
|
yield this._proxy.$registerBarcodeCountViewUiListener();
|
|
1343
1343
|
}
|
|
@@ -1347,7 +1347,7 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1347
1347
|
});
|
|
1348
1348
|
}
|
|
1349
1349
|
setViewListener(listener) {
|
|
1350
|
-
return __awaiter(this,
|
|
1350
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1351
1351
|
if (listener != null) {
|
|
1352
1352
|
yield this._proxy.$registerBarcodeCountViewListener();
|
|
1353
1353
|
}
|
|
@@ -1357,12 +1357,12 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1357
1357
|
});
|
|
1358
1358
|
}
|
|
1359
1359
|
clearHighlights() {
|
|
1360
|
-
return __awaiter(this,
|
|
1360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1361
1361
|
yield this._proxy.$clearBarcodeCountHighlights();
|
|
1362
1362
|
});
|
|
1363
1363
|
}
|
|
1364
1364
|
dispose() {
|
|
1365
|
-
return __awaiter(this,
|
|
1365
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1366
1366
|
yield this.unsubscribeListeners();
|
|
1367
1367
|
});
|
|
1368
1368
|
}
|
|
@@ -1407,21 +1407,21 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1407
1407
|
};
|
|
1408
1408
|
}
|
|
1409
1409
|
subscribeListeners() {
|
|
1410
|
-
return __awaiter(this,
|
|
1410
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1411
1411
|
yield this._proxy.$registerBarcodeCountViewListener();
|
|
1412
1412
|
this._proxy.on$singleScanButtonTapped = () => {
|
|
1413
1413
|
var _a, _b;
|
|
1414
|
-
(_b = (_a = this.view.uiListener) === null || _a ===
|
|
1414
|
+
(_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapSingleScanButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view.nativeView);
|
|
1415
1415
|
};
|
|
1416
1416
|
this._proxy.on$listButtonTapped = () => {
|
|
1417
1417
|
var _a, _b;
|
|
1418
|
-
(_b = (_a = this.view.uiListener) === null || _a ===
|
|
1418
|
+
(_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapListButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view.nativeView);
|
|
1419
1419
|
};
|
|
1420
1420
|
this._proxy.on$exitButtonTapped = () => {
|
|
1421
1421
|
var _a, _b;
|
|
1422
|
-
(_b = (_a = this.view.uiListener) === null || _a ===
|
|
1422
|
+
(_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapExitButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view.nativeView);
|
|
1423
1423
|
};
|
|
1424
|
-
this._proxy.on$brushForRecognizedBarcode = (ev) => __awaiter(this,
|
|
1424
|
+
this._proxy.on$brushForRecognizedBarcode = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
1425
1425
|
const payload = EventDataParser.parse(ev.data);
|
|
1426
1426
|
if (payload === null) {
|
|
1427
1427
|
console.error('BarcodeCountViewController brushForRecognizedBarcode payload is null');
|
|
@@ -1436,7 +1436,7 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1436
1436
|
const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
|
|
1437
1437
|
yield this._proxy.$finishBarcodeCountBrushForRecognizedBarcode({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
|
|
1438
1438
|
});
|
|
1439
|
-
this._proxy.on$brushForRecognizedBarcodeNotInList = (ev) => __awaiter(this,
|
|
1439
|
+
this._proxy.on$brushForRecognizedBarcodeNotInList = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
1440
1440
|
const payload = EventDataParser.parse(ev.data);
|
|
1441
1441
|
if (payload === null) {
|
|
1442
1442
|
console.error('BarcodeCountViewController brushForRecognizedBarcodeNotInList payload is null');
|
|
@@ -1451,7 +1451,7 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1451
1451
|
const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
|
|
1452
1452
|
yield this._proxy.$finishBarcodeCountBrushForRecognizedBarcodeNotInList({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
|
|
1453
1453
|
});
|
|
1454
|
-
this._proxy.on$brushForAcceptedBarcode = (ev) => __awaiter(this,
|
|
1454
|
+
this._proxy.on$brushForAcceptedBarcode = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
1455
1455
|
const payload = EventDataParser.parse(ev.data);
|
|
1456
1456
|
if (payload === null) {
|
|
1457
1457
|
console.error('BarcodeCountViewController brushForAcceptedBarcode payload is null');
|
|
@@ -1466,7 +1466,7 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1466
1466
|
const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
|
|
1467
1467
|
yield this._proxy.$finishBarcodeCountBrushForAcceptedBarcode({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
|
|
1468
1468
|
});
|
|
1469
|
-
this._proxy.on$brushForRejectedBarcode = (ev) => __awaiter(this,
|
|
1469
|
+
this._proxy.on$brushForRejectedBarcode = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
1470
1470
|
const payload = EventDataParser.parse(ev.data);
|
|
1471
1471
|
if (payload === null) {
|
|
1472
1472
|
console.error('BarcodeCountViewController brushForRejectedBarcode payload is null');
|
|
@@ -1481,7 +1481,7 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1481
1481
|
const finishPayload = this.buildTrackedBarcodeBrushPayload(trackedBarcode, brush);
|
|
1482
1482
|
yield this._proxy.$finishBarcodeCountBrushForRejectedBarcode({ brushJson: finishPayload.brush, trackedBarcodeId: finishPayload.trackedBarcodeID });
|
|
1483
1483
|
});
|
|
1484
|
-
this._proxy.on$filteredBarcodeTapped = (ev) => __awaiter(this,
|
|
1484
|
+
this._proxy.on$filteredBarcodeTapped = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
1485
1485
|
const payload = EventDataParser.parse(ev.data);
|
|
1486
1486
|
if (payload === null) {
|
|
1487
1487
|
console.error('BarcodeCountViewController filteredBarcodeTapped payload is null');
|
|
@@ -1493,7 +1493,7 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1493
1493
|
this.view.listener.didTapFilteredBarcode(this.view.nativeView, trackedBarcode);
|
|
1494
1494
|
}
|
|
1495
1495
|
});
|
|
1496
|
-
this._proxy.on$recognizedBarcodeNotInListTapped = (ev) => __awaiter(this,
|
|
1496
|
+
this._proxy.on$recognizedBarcodeNotInListTapped = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
1497
1497
|
const payload = EventDataParser.parse(ev.data);
|
|
1498
1498
|
if (payload === null) {
|
|
1499
1499
|
console.error('BarcodeCountViewController recognizedBarcodeNotInListTapped payload is null');
|
|
@@ -1505,7 +1505,7 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1505
1505
|
this.view.listener.didTapRecognizedBarcodeNotInList(this.view.nativeView, trackedBarcode);
|
|
1506
1506
|
}
|
|
1507
1507
|
});
|
|
1508
|
-
this._proxy.on$recognizedBarcodeTapped = (ev) => __awaiter(this,
|
|
1508
|
+
this._proxy.on$recognizedBarcodeTapped = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
1509
1509
|
const payload = EventDataParser.parse(ev.data);
|
|
1510
1510
|
if (payload === null) {
|
|
1511
1511
|
console.error('BarcodeCountViewController recognizedBarcodeTapped payload is null');
|
|
@@ -1517,7 +1517,7 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1517
1517
|
this.view.listener.didTapRecognizedBarcode(this.view.nativeView, trackedBarcode);
|
|
1518
1518
|
}
|
|
1519
1519
|
});
|
|
1520
|
-
this._proxy.on$acceptedBarcodeTapped = (ev) => __awaiter(this,
|
|
1520
|
+
this._proxy.on$acceptedBarcodeTapped = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
1521
1521
|
const payload = EventDataParser.parse(ev.data);
|
|
1522
1522
|
if (payload === null) {
|
|
1523
1523
|
console.error('BarcodeCountViewController acceptedBarcodeTapped payload is null');
|
|
@@ -1529,7 +1529,7 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1529
1529
|
this.view.listener.didTapAcceptedBarcode(this.view.nativeView, trackedBarcode);
|
|
1530
1530
|
}
|
|
1531
1531
|
});
|
|
1532
|
-
this._proxy.on$rejectedBarcodeTapped = (ev) => __awaiter(this,
|
|
1532
|
+
this._proxy.on$rejectedBarcodeTapped = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
1533
1533
|
const payload = EventDataParser.parse(ev.data);
|
|
1534
1534
|
if (payload === null) {
|
|
1535
1535
|
console.error('BarcodeCountViewController rejectedBarcodeTapped payload is null');
|
|
@@ -1549,7 +1549,7 @@ class BarcodeCountViewController extends BaseController {
|
|
|
1549
1549
|
});
|
|
1550
1550
|
}
|
|
1551
1551
|
unsubscribeListeners() {
|
|
1552
|
-
return __awaiter(this,
|
|
1552
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1553
1553
|
this._proxy.dispose();
|
|
1554
1554
|
yield this._proxy.$unregisterBarcodeCountViewListener();
|
|
1555
1555
|
yield this._proxy.$unregisterBarcodeCountViewUiListener();
|
|
@@ -1672,49 +1672,49 @@ class BarcodeCountNotInListActionSettings extends DefaultSerializeable {
|
|
|
1672
1672
|
}
|
|
1673
1673
|
__decorate([
|
|
1674
1674
|
nameForSerialization('enabled')
|
|
1675
|
-
], BarcodeCountNotInListActionSettings.prototype, "_enabled",
|
|
1675
|
+
], BarcodeCountNotInListActionSettings.prototype, "_enabled", void 0);
|
|
1676
1676
|
__decorate([
|
|
1677
1677
|
nameForSerialization('acceptButtonText')
|
|
1678
|
-
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonText",
|
|
1678
|
+
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonText", void 0);
|
|
1679
1679
|
__decorate([
|
|
1680
1680
|
nameForSerialization('acceptButtonAccessibilityLabel')
|
|
1681
|
-
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityLabel",
|
|
1681
|
+
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityLabel", void 0);
|
|
1682
1682
|
__decorate([
|
|
1683
1683
|
nameForSerialization('acceptButtonAccessibilityHint')
|
|
1684
|
-
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityHint",
|
|
1684
|
+
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonAccessibilityHint", void 0);
|
|
1685
1685
|
__decorate([
|
|
1686
1686
|
nameForSerialization('acceptButtonContentDescription')
|
|
1687
|
-
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonContentDescription",
|
|
1687
|
+
], BarcodeCountNotInListActionSettings.prototype, "_acceptButtonContentDescription", void 0);
|
|
1688
1688
|
__decorate([
|
|
1689
1689
|
nameForSerialization('rejectButtonText')
|
|
1690
|
-
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonText",
|
|
1690
|
+
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonText", void 0);
|
|
1691
1691
|
__decorate([
|
|
1692
1692
|
nameForSerialization('rejectButtonAccessibilityLabel')
|
|
1693
|
-
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityLabel",
|
|
1693
|
+
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityLabel", void 0);
|
|
1694
1694
|
__decorate([
|
|
1695
1695
|
nameForSerialization('rejectButtonAccessibilityHint')
|
|
1696
|
-
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityHint",
|
|
1696
|
+
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonAccessibilityHint", void 0);
|
|
1697
1697
|
__decorate([
|
|
1698
1698
|
nameForSerialization('rejectButtonContentDescription')
|
|
1699
|
-
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonContentDescription",
|
|
1699
|
+
], BarcodeCountNotInListActionSettings.prototype, "_rejectButtonContentDescription", void 0);
|
|
1700
1700
|
__decorate([
|
|
1701
1701
|
nameForSerialization('cancelButtonText')
|
|
1702
|
-
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonText",
|
|
1702
|
+
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonText", void 0);
|
|
1703
1703
|
__decorate([
|
|
1704
1704
|
nameForSerialization('cancelButtonAccessibilityLabel')
|
|
1705
|
-
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityLabel",
|
|
1705
|
+
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityLabel", void 0);
|
|
1706
1706
|
__decorate([
|
|
1707
1707
|
nameForSerialization('cancelButtonAccessibilityHint')
|
|
1708
|
-
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityHint",
|
|
1708
|
+
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonAccessibilityHint", void 0);
|
|
1709
1709
|
__decorate([
|
|
1710
1710
|
nameForSerialization('cancelButtonContentDescription')
|
|
1711
|
-
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonContentDescription",
|
|
1711
|
+
], BarcodeCountNotInListActionSettings.prototype, "_cancelButtonContentDescription", void 0);
|
|
1712
1712
|
__decorate([
|
|
1713
1713
|
nameForSerialization('barcodeAcceptedHint')
|
|
1714
|
-
], BarcodeCountNotInListActionSettings.prototype, "_barcodeAcceptedHint",
|
|
1714
|
+
], BarcodeCountNotInListActionSettings.prototype, "_barcodeAcceptedHint", void 0);
|
|
1715
1715
|
__decorate([
|
|
1716
1716
|
nameForSerialization('barcodeRejectedHint')
|
|
1717
|
-
], BarcodeCountNotInListActionSettings.prototype, "_barcodeRejectedHint",
|
|
1717
|
+
], BarcodeCountNotInListActionSettings.prototype, "_barcodeRejectedHint", void 0);
|
|
1718
1718
|
|
|
1719
1719
|
class BaseBarcodeCountView {
|
|
1720
1720
|
static get defaultRecognizedBrush() {
|
|
@@ -2149,7 +2149,7 @@ class BaseBarcodeCountView {
|
|
|
2149
2149
|
this._controller.initialize(autoCreateNativeView);
|
|
2150
2150
|
}
|
|
2151
2151
|
dispose() {
|
|
2152
|
-
return __awaiter(this,
|
|
2152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2153
2153
|
yield this._controller.dispose();
|
|
2154
2154
|
this.isViewCreated = false;
|
|
2155
2155
|
});
|
|
@@ -2186,7 +2186,7 @@ class BaseBarcodeCountView {
|
|
|
2186
2186
|
return this._controller.enableHardwareTrigger(hardwareTriggerKeyCode);
|
|
2187
2187
|
}
|
|
2188
2188
|
createNativeView() {
|
|
2189
|
-
return __awaiter(this,
|
|
2189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2190
2190
|
if (this.isViewCreated) {
|
|
2191
2191
|
return Promise.resolve();
|
|
2192
2192
|
}
|
|
@@ -2195,7 +2195,7 @@ class BaseBarcodeCountView {
|
|
|
2195
2195
|
});
|
|
2196
2196
|
}
|
|
2197
2197
|
removeNativeView() {
|
|
2198
|
-
return __awaiter(this,
|
|
2198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2199
2199
|
yield this._controller.removeNativeView();
|
|
2200
2200
|
this.isViewCreated = false;
|
|
2201
2201
|
});
|
|
@@ -2219,16 +2219,16 @@ class BaseBarcodeCountView {
|
|
|
2219
2219
|
shouldShowFloatingShutterButton: this.shouldShowFloatingShutterButton,
|
|
2220
2220
|
shouldShowToolbar: this.shouldShowToolbar,
|
|
2221
2221
|
shouldShowScanAreaGuides: this.shouldShowScanAreaGuides,
|
|
2222
|
-
toolbarSettings: (_a = this._toolbarSettings) === null || _a ===
|
|
2222
|
+
toolbarSettings: (_a = this._toolbarSettings) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
2223
2223
|
shouldShowTorchControl: this.shouldShowTorchControl,
|
|
2224
2224
|
torchControlPosition: this.torchControlPosition,
|
|
2225
2225
|
tapToUncountEnabled: this.tapToUncountEnabled,
|
|
2226
2226
|
textForTapToUncountHint: this.textForTapToUncountHint,
|
|
2227
2227
|
barcodeNotInListActionSettings: this.barcodeNotInListActionSettings.toJSON(),
|
|
2228
|
-
recognizedBrush: (_b = this.recognizedBrush) === null || _b ===
|
|
2229
|
-
notInListBrush: (_c = this.notInListBrush) === null || _c ===
|
|
2230
|
-
acceptedBrush: (_d = this.acceptedBrush) === null || _d ===
|
|
2231
|
-
rejectedBrush: (_e = this.rejectedBrush) === null || _e ===
|
|
2228
|
+
recognizedBrush: (_b = this.recognizedBrush) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
2229
|
+
notInListBrush: (_c = this.notInListBrush) === null || _c === void 0 ? void 0 : _c.toJSON(),
|
|
2230
|
+
acceptedBrush: (_d = this.acceptedBrush) === null || _d === void 0 ? void 0 : _d.toJSON(),
|
|
2231
|
+
rejectedBrush: (_e = this.rejectedBrush) === null || _e === void 0 ? void 0 : _e.toJSON(),
|
|
2232
2232
|
hardwareTriggerEnabled: this._hardwareTriggerEnabled
|
|
2233
2233
|
},
|
|
2234
2234
|
BarcodeCount: this._barcodeCount.toJSON()
|
|
@@ -2309,23 +2309,23 @@ class BaseBarcodeCountView {
|
|
|
2309
2309
|
json.View.shouldShowListProgressBar = this.shouldShowListProgressBar;
|
|
2310
2310
|
}
|
|
2311
2311
|
if (this.recognizedBrush) {
|
|
2312
|
-
json.View.recognizedBrush = (_f = this.recognizedBrush) === null || _f ===
|
|
2312
|
+
json.View.recognizedBrush = (_f = this.recognizedBrush) === null || _f === void 0 ? void 0 : _f.toJSON();
|
|
2313
2313
|
}
|
|
2314
2314
|
if (this.notInListBrush) {
|
|
2315
|
-
json.View.notInListBrush = (_g = this.notInListBrush) === null || _g ===
|
|
2315
|
+
json.View.notInListBrush = (_g = this.notInListBrush) === null || _g === void 0 ? void 0 : _g.toJSON();
|
|
2316
2316
|
}
|
|
2317
2317
|
if (this.filterSettings) {
|
|
2318
|
-
json.View.filterSettings = (_h = this.filterSettings) === null || _h ===
|
|
2318
|
+
json.View.filterSettings = (_h = this.filterSettings) === null || _h === void 0 ? void 0 : _h.toJSON();
|
|
2319
2319
|
}
|
|
2320
2320
|
return json;
|
|
2321
2321
|
}
|
|
2322
2322
|
}
|
|
2323
2323
|
__decorate([
|
|
2324
2324
|
ignoreFromSerialization
|
|
2325
|
-
], BaseBarcodeCountView.prototype, "isViewCreated",
|
|
2325
|
+
], BaseBarcodeCountView.prototype, "isViewCreated", void 0);
|
|
2326
2326
|
__decorate([
|
|
2327
2327
|
ignoreFromSerialization
|
|
2328
|
-
], BaseBarcodeCountView.prototype, "autoCreateNativeView",
|
|
2328
|
+
], BaseBarcodeCountView.prototype, "autoCreateNativeView", void 0);
|
|
2329
2329
|
__decorate([
|
|
2330
2330
|
ignoreFromSerialization
|
|
2331
2331
|
], BaseBarcodeCountView, "barcodeCountDefaults", null);
|
|
@@ -2349,10 +2349,10 @@ class BarcodeFilterHighlightSettingsBrush extends DefaultSerializeable {
|
|
|
2349
2349
|
}
|
|
2350
2350
|
__decorate([
|
|
2351
2351
|
nameForSerialization('highlightType')
|
|
2352
|
-
], BarcodeFilterHighlightSettingsBrush.prototype, "_highlightType",
|
|
2352
|
+
], BarcodeFilterHighlightSettingsBrush.prototype, "_highlightType", void 0);
|
|
2353
2353
|
__decorate([
|
|
2354
2354
|
nameForSerialization('brush')
|
|
2355
|
-
], BarcodeFilterHighlightSettingsBrush.prototype, "_brush",
|
|
2355
|
+
], BarcodeFilterHighlightSettingsBrush.prototype, "_brush", void 0);
|
|
2356
2356
|
|
|
2357
2357
|
class BarcodeFilterSettings extends DefaultSerializeable {
|
|
2358
2358
|
get excludeEan13() {
|
|
@@ -2409,19 +2409,19 @@ class BarcodeFilterSettings extends DefaultSerializeable {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
__decorate([
|
|
2411
2411
|
nameForSerialization('excludeEan13')
|
|
2412
|
-
], BarcodeFilterSettings.prototype, "_excludeEan13",
|
|
2412
|
+
], BarcodeFilterSettings.prototype, "_excludeEan13", void 0);
|
|
2413
2413
|
__decorate([
|
|
2414
2414
|
nameForSerialization('excludeUpca')
|
|
2415
|
-
], BarcodeFilterSettings.prototype, "_excludeUpca",
|
|
2415
|
+
], BarcodeFilterSettings.prototype, "_excludeUpca", void 0);
|
|
2416
2416
|
__decorate([
|
|
2417
2417
|
nameForSerialization('excludedCodesRegex')
|
|
2418
|
-
], BarcodeFilterSettings.prototype, "_excludedCodesRegex",
|
|
2418
|
+
], BarcodeFilterSettings.prototype, "_excludedCodesRegex", void 0);
|
|
2419
2419
|
__decorate([
|
|
2420
2420
|
nameForSerialization('excludedSymbolCounts')
|
|
2421
|
-
], BarcodeFilterSettings.prototype, "_excludedSymbolCounts",
|
|
2421
|
+
], BarcodeFilterSettings.prototype, "_excludedSymbolCounts", void 0);
|
|
2422
2422
|
__decorate([
|
|
2423
2423
|
nameForSerialization('excludedSymbologies')
|
|
2424
|
-
], BarcodeFilterSettings.prototype, "_excludedSymbologies",
|
|
2424
|
+
], BarcodeFilterSettings.prototype, "_excludedSymbologies", void 0);
|
|
2425
2425
|
|
|
2426
2426
|
function getBarcodeCountDefaults() {
|
|
2427
2427
|
return FactoryMaker.getInstance('BarcodeCountDefaults');
|
|
@@ -2582,8 +2582,9 @@ function parseBarcodePickDefaults(jsonDefaults) {
|
|
|
2582
2582
|
highlightStyle: JSON.parse(jsonDefaults.ViewSettings.HighlightStyle),
|
|
2583
2583
|
initialGuidelineText: jsonDefaults.ViewSettings.initialGuidelineText,
|
|
2584
2584
|
moveCloserGuidelineText: jsonDefaults.ViewSettings.moveCloserGuidelineText,
|
|
2585
|
-
loadingDialogText: jsonDefaults.ViewSettings.loadingDialogText,
|
|
2586
2585
|
showLoadingDialog: jsonDefaults.ViewSettings.showLoadingDialog,
|
|
2586
|
+
loadingDialogTextForPicking: jsonDefaults.ViewSettings.loadingDialogTextForPicking,
|
|
2587
|
+
loadingDialogTextForUnpicking: jsonDefaults.ViewSettings.loadingDialogTextForUnpicking,
|
|
2587
2588
|
onFirstItemPickCompletedHintText: jsonDefaults.ViewSettings.onFirstItemPickCompletedHintText,
|
|
2588
2589
|
onFirstItemToPickFoundHintText: jsonDefaults.ViewSettings.onFirstItemToPickFoundHintText,
|
|
2589
2590
|
onFirstItemUnpickCompletedHintText: jsonDefaults.ViewSettings.onFirstItemUnpickCompletedHintText,
|
|
@@ -2633,14 +2634,14 @@ function parseBarcodeFindDefaults(jsonDefaults) {
|
|
|
2633
2634
|
shouldShowUserGuidanceView: jsonDefaults.shouldShowUserGuidanceView,
|
|
2634
2635
|
shouldShowTorchControl: jsonDefaults.shouldShowTorchControl,
|
|
2635
2636
|
shouldShowZoomControl: jsonDefaults.shouldShowZoomControl,
|
|
2636
|
-
textForAllItemsFoundSuccessfullyHint: (_a = jsonDefaults.textForAllItemsFoundSuccessfullyHint) !== null && _a !==
|
|
2637
|
-
textForItemListUpdatedHint: (_b = jsonDefaults.textForItemListUpdatedHint) !== null && _b !==
|
|
2638
|
-
textForItemListUpdatedWhenPausedHint: (_c = jsonDefaults.textForItemListUpdatedWhenPausedHint) !== null && _c !==
|
|
2639
|
-
textForCollapseCardsButton: (_d = jsonDefaults.textForCollapseCardsButton) !== null && _d !==
|
|
2640
|
-
textForMoveCloserToBarcodesHint: (_e = jsonDefaults.textForMoveCloserToBarcodesHint) !== null && _e !==
|
|
2641
|
-
textForPointAtBarcodesToSearchHint: (_f = jsonDefaults.textForPointAtBarcodesToSearchHint) !== null && _f !==
|
|
2642
|
-
textForTapShutterToPauseScreenHint: (_g = jsonDefaults.textForTapShutterToPauseScreenHint) !== null && _g !==
|
|
2643
|
-
textForTapShutterToResumeSearchHint: (_h = jsonDefaults.textForTapShutterToResumeSearchHint) !== null && _h !==
|
|
2637
|
+
textForAllItemsFoundSuccessfullyHint: (_a = jsonDefaults.textForAllItemsFoundSuccessfullyHint) !== null && _a !== void 0 ? _a : null,
|
|
2638
|
+
textForItemListUpdatedHint: (_b = jsonDefaults.textForItemListUpdatedHint) !== null && _b !== void 0 ? _b : null,
|
|
2639
|
+
textForItemListUpdatedWhenPausedHint: (_c = jsonDefaults.textForItemListUpdatedWhenPausedHint) !== null && _c !== void 0 ? _c : null,
|
|
2640
|
+
textForCollapseCardsButton: (_d = jsonDefaults.textForCollapseCardsButton) !== null && _d !== void 0 ? _d : null,
|
|
2641
|
+
textForMoveCloserToBarcodesHint: (_e = jsonDefaults.textForMoveCloserToBarcodesHint) !== null && _e !== void 0 ? _e : null,
|
|
2642
|
+
textForPointAtBarcodesToSearchHint: (_f = jsonDefaults.textForPointAtBarcodesToSearchHint) !== null && _f !== void 0 ? _f : null,
|
|
2643
|
+
textForTapShutterToPauseScreenHint: (_g = jsonDefaults.textForTapShutterToPauseScreenHint) !== null && _g !== void 0 ? _g : null,
|
|
2644
|
+
textForTapShutterToResumeSearchHint: (_h = jsonDefaults.textForTapShutterToResumeSearchHint) !== null && _h !== void 0 ? _h : null,
|
|
2644
2645
|
torchControlPosition: jsonDefaults.torchControlPosition,
|
|
2645
2646
|
}
|
|
2646
2647
|
};
|
|
@@ -2742,9 +2743,9 @@ function loadBarcodeCaptureDefaults(jsonDefaults) {
|
|
|
2742
2743
|
const defaults = parseBarcodeCaptureDefaults(jsonDefaults);
|
|
2743
2744
|
FactoryMaker.bindInstanceIfNotExists('BarcodeCaptureDefaults', defaults);
|
|
2744
2745
|
}
|
|
2745
|
-
function
|
|
2746
|
-
const defaults =
|
|
2747
|
-
FactoryMaker.bindInstanceIfNotExists('
|
|
2746
|
+
function loadBarcodeArDefaults(jsonDefaults) {
|
|
2747
|
+
const defaults = parseBarcodeArDefaults(jsonDefaults);
|
|
2748
|
+
FactoryMaker.bindInstanceIfNotExists('BarcodeArDefaults', defaults);
|
|
2748
2749
|
}
|
|
2749
2750
|
function loadBarcodeCountDefaults(jsonDefaults) {
|
|
2750
2751
|
const defaults = parseBarcodeCountDefaults(jsonDefaults);
|
|
@@ -2791,7 +2792,7 @@ class BarcodeCaptureSession {
|
|
|
2791
2792
|
session._newlyLocalizedBarcodes = sessionJson.newlyLocalizedBarcodes
|
|
2792
2793
|
.map(LocalizedOnlyBarcode.fromJSON);
|
|
2793
2794
|
session._frameSequenceID = sessionJson.frameSequenceId;
|
|
2794
|
-
session.frameId = (_a = json.frameId) !== null && _a !==
|
|
2795
|
+
session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
|
|
2795
2796
|
return session;
|
|
2796
2797
|
}
|
|
2797
2798
|
reset() {
|
|
@@ -2830,7 +2831,7 @@ class BarcodeCaptureListenerController extends BaseNewController {
|
|
|
2830
2831
|
}
|
|
2831
2832
|
subscribeListener() {
|
|
2832
2833
|
this._proxy.$registerBarcodeCaptureListenerForEvents();
|
|
2833
|
-
this._proxy.on$didUpdateSession = (ev) => __awaiter(this,
|
|
2834
|
+
this._proxy.on$didUpdateSession = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
2834
2835
|
const payload = EventDataParser.parse(ev.data);
|
|
2835
2836
|
if (payload === null) {
|
|
2836
2837
|
console.error('BarcodeCaptureListenerController.subscribeListener: didUpdateSession payload is null');
|
|
@@ -2840,7 +2841,7 @@ class BarcodeCaptureListenerController extends BaseNewController {
|
|
|
2840
2841
|
yield this.notifyListenersOfDidUpdateSession(session);
|
|
2841
2842
|
this._proxy.$finishBarcodeCaptureDidUpdateSession({ enabled: this.barcodeCapture.isEnabled });
|
|
2842
2843
|
});
|
|
2843
|
-
this._proxy.on$didScan = (ev) => __awaiter(this,
|
|
2844
|
+
this._proxy.on$didScan = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
2844
2845
|
const payload = EventDataParser.parse(ev.data);
|
|
2845
2846
|
if (payload === null) {
|
|
2846
2847
|
console.error('BarcodeCaptureListenerController.subscribeListener: didScan payload is null');
|
|
@@ -2856,7 +2857,7 @@ class BarcodeCaptureListenerController extends BaseNewController {
|
|
|
2856
2857
|
this._proxy.dispose();
|
|
2857
2858
|
}
|
|
2858
2859
|
notifyListenersOfDidUpdateSession(session) {
|
|
2859
|
-
return __awaiter(this,
|
|
2860
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2860
2861
|
const mode = this.barcodeCapture;
|
|
2861
2862
|
for (const listener of mode.listeners) {
|
|
2862
2863
|
if (listener.didUpdateSession) {
|
|
@@ -2866,7 +2867,7 @@ class BarcodeCaptureListenerController extends BaseNewController {
|
|
|
2866
2867
|
});
|
|
2867
2868
|
}
|
|
2868
2869
|
notifyListenersOfDidScan(session) {
|
|
2869
|
-
return __awaiter(this,
|
|
2870
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2870
2871
|
const mode = this.barcodeCapture;
|
|
2871
2872
|
for (const listener of mode.listeners) {
|
|
2872
2873
|
if (listener.didScan) {
|
|
@@ -2948,19 +2949,19 @@ class BarcodeCapture extends DefaultSerializeable {
|
|
|
2948
2949
|
}
|
|
2949
2950
|
__decorate([
|
|
2950
2951
|
ignoreFromSerialization
|
|
2951
|
-
], BarcodeCapture.prototype, "_isEnabled",
|
|
2952
|
+
], BarcodeCapture.prototype, "_isEnabled", void 0);
|
|
2952
2953
|
__decorate([
|
|
2953
2954
|
nameForSerialization('feedback')
|
|
2954
|
-
], BarcodeCapture.prototype, "_feedback",
|
|
2955
|
+
], BarcodeCapture.prototype, "_feedback", void 0);
|
|
2955
2956
|
__decorate([
|
|
2956
2957
|
ignoreFromSerialization
|
|
2957
|
-
], BarcodeCapture.prototype, "privateContext",
|
|
2958
|
+
], BarcodeCapture.prototype, "privateContext", void 0);
|
|
2958
2959
|
__decorate([
|
|
2959
2960
|
ignoreFromSerialization
|
|
2960
|
-
], BarcodeCapture.prototype, "listeners",
|
|
2961
|
+
], BarcodeCapture.prototype, "listeners", void 0);
|
|
2961
2962
|
__decorate([
|
|
2962
2963
|
ignoreFromSerialization
|
|
2963
|
-
], BarcodeCapture.prototype, "controller",
|
|
2964
|
+
], BarcodeCapture.prototype, "controller", void 0);
|
|
2964
2965
|
__decorate([
|
|
2965
2966
|
ignoreFromSerialization
|
|
2966
2967
|
], BarcodeCapture, "barcodeCaptureDefaults", null);
|
|
@@ -3042,26 +3043,26 @@ class BarcodeCaptureOverlay extends DefaultSerializeable {
|
|
|
3042
3043
|
}
|
|
3043
3044
|
__decorate([
|
|
3044
3045
|
ignoreFromSerialization
|
|
3045
|
-
], BarcodeCaptureOverlay.prototype, "barcodeCapture",
|
|
3046
|
+
], BarcodeCaptureOverlay.prototype, "barcodeCapture", void 0);
|
|
3046
3047
|
__decorate([
|
|
3047
3048
|
ignoreFromSerialization
|
|
3048
|
-
], BarcodeCaptureOverlay.prototype, "view",
|
|
3049
|
+
], BarcodeCaptureOverlay.prototype, "view", void 0);
|
|
3049
3050
|
__decorate([
|
|
3050
3051
|
nameForSerialization('shouldShowScanAreaGuides')
|
|
3051
|
-
], BarcodeCaptureOverlay.prototype, "_shouldShowScanAreaGuides",
|
|
3052
|
+
], BarcodeCaptureOverlay.prototype, "_shouldShowScanAreaGuides", void 0);
|
|
3052
3053
|
__decorate([
|
|
3053
3054
|
serializationDefault(NoViewfinder),
|
|
3054
3055
|
nameForSerialization('viewfinder')
|
|
3055
|
-
], BarcodeCaptureOverlay.prototype, "_viewfinder",
|
|
3056
|
+
], BarcodeCaptureOverlay.prototype, "_viewfinder", void 0);
|
|
3056
3057
|
__decorate([
|
|
3057
3058
|
nameForSerialization('style')
|
|
3058
|
-
], BarcodeCaptureOverlay.prototype, "_style",
|
|
3059
|
+
], BarcodeCaptureOverlay.prototype, "_style", void 0);
|
|
3059
3060
|
__decorate([
|
|
3060
3061
|
ignoreFromSerialization
|
|
3061
|
-
], BarcodeCaptureOverlay.prototype, "eventEmitter",
|
|
3062
|
+
], BarcodeCaptureOverlay.prototype, "eventEmitter", void 0);
|
|
3062
3063
|
__decorate([
|
|
3063
3064
|
nameForSerialization('brush')
|
|
3064
|
-
], BarcodeCaptureOverlay.prototype, "_brush",
|
|
3065
|
+
], BarcodeCaptureOverlay.prototype, "_brush", void 0);
|
|
3065
3066
|
__decorate([
|
|
3066
3067
|
ignoreFromSerialization
|
|
3067
3068
|
], BarcodeCaptureOverlay, "barcodeCaptureDefaults", null);
|
|
@@ -3140,13 +3141,13 @@ class BarcodeCaptureSettings extends DefaultSerializeable {
|
|
|
3140
3141
|
}
|
|
3141
3142
|
__decorate([
|
|
3142
3143
|
serializationDefault(NoneLocationSelection)
|
|
3143
|
-
], BarcodeCaptureSettings.prototype, "locationSelection",
|
|
3144
|
+
], BarcodeCaptureSettings.prototype, "locationSelection", void 0);
|
|
3144
3145
|
__decorate([
|
|
3145
3146
|
nameForSerialization('codeDuplicateFilter')
|
|
3146
|
-
], BarcodeCaptureSettings.prototype, "_codeDuplicateFilter",
|
|
3147
|
+
], BarcodeCaptureSettings.prototype, "_codeDuplicateFilter", void 0);
|
|
3147
3148
|
__decorate([
|
|
3148
3149
|
nameForSerialization('arucoDictionary')
|
|
3149
|
-
], BarcodeCaptureSettings.prototype, "_arucoDictionary",
|
|
3150
|
+
], BarcodeCaptureSettings.prototype, "_arucoDictionary", void 0);
|
|
3150
3151
|
__decorate([
|
|
3151
3152
|
ignoreFromSerialization
|
|
3152
3153
|
], BarcodeCaptureSettings, "barcodeDefaults", null);
|
|
@@ -3154,77 +3155,19 @@ __decorate([
|
|
|
3154
3155
|
ignoreFromSerialization
|
|
3155
3156
|
], BarcodeCaptureSettings, "barcodeCaptureDefaults", null);
|
|
3156
3157
|
|
|
3157
|
-
class
|
|
3158
|
-
static get defaultFeedback() {
|
|
3159
|
-
const feedback = new BarcodeCheckFeedback();
|
|
3160
|
-
feedback.scanned = BarcodeCheckFeedback.barcodeCheckDefaults.Feedback.scanned;
|
|
3161
|
-
feedback.tapped = BarcodeCheckFeedback.barcodeCheckDefaults.Feedback.tapped;
|
|
3162
|
-
return feedback;
|
|
3163
|
-
}
|
|
3164
|
-
static get barcodeCheckDefaults() {
|
|
3165
|
-
return getBarcodeCheckDefaults();
|
|
3166
|
-
}
|
|
3167
|
-
static fromJSON(json) {
|
|
3168
|
-
const scanned = Feedback.fromJSON(json.scanned);
|
|
3169
|
-
const tapped = Feedback.fromJSON(json.tapped);
|
|
3170
|
-
const feedback = new BarcodeCheckFeedback();
|
|
3171
|
-
feedback.scanned = scanned;
|
|
3172
|
-
feedback.tapped = tapped;
|
|
3173
|
-
return feedback;
|
|
3174
|
-
}
|
|
3175
|
-
get scanned() {
|
|
3176
|
-
return this._scanned;
|
|
3177
|
-
}
|
|
3178
|
-
set scanned(scanned) {
|
|
3179
|
-
this._scanned = scanned;
|
|
3180
|
-
this.updateFeedback();
|
|
3181
|
-
}
|
|
3182
|
-
get tapped() {
|
|
3183
|
-
return this._tapped;
|
|
3184
|
-
}
|
|
3185
|
-
set tapped(tapped) {
|
|
3186
|
-
this._tapped = tapped;
|
|
3187
|
-
this.updateFeedback();
|
|
3188
|
-
}
|
|
3189
|
-
updateFeedback() {
|
|
3190
|
-
var _a;
|
|
3191
|
-
(_a = this.listenerController) === null || _a === undefined ? undefined : _a.updateFeedback(JSON.stringify(this.toJSON()));
|
|
3192
|
-
}
|
|
3193
|
-
constructor() {
|
|
3194
|
-
super();
|
|
3195
|
-
this.listenerController = null;
|
|
3196
|
-
this._scanned = BarcodeCheckFeedback.barcodeCheckDefaults.Feedback.scanned;
|
|
3197
|
-
this._tapped = BarcodeCheckFeedback.barcodeCheckDefaults.Feedback.tapped;
|
|
3198
|
-
this.scanned = new Feedback(null, null);
|
|
3199
|
-
this.tapped = new Feedback(null, null);
|
|
3200
|
-
}
|
|
3201
|
-
}
|
|
3202
|
-
__decorate([
|
|
3203
|
-
ignoreFromSerialization
|
|
3204
|
-
], BarcodeCheckFeedback.prototype, "listenerController", undefined);
|
|
3205
|
-
__decorate([
|
|
3206
|
-
nameForSerialization('scanned')
|
|
3207
|
-
], BarcodeCheckFeedback.prototype, "_scanned", undefined);
|
|
3208
|
-
__decorate([
|
|
3209
|
-
nameForSerialization('tapped')
|
|
3210
|
-
], BarcodeCheckFeedback.prototype, "_tapped", undefined);
|
|
3211
|
-
__decorate([
|
|
3212
|
-
ignoreFromSerialization
|
|
3213
|
-
], BarcodeCheckFeedback, "barcodeCheckDefaults", null);
|
|
3214
|
-
|
|
3215
|
-
class BarcodeCheckSessionController {
|
|
3158
|
+
class BarcodeArSessionController {
|
|
3216
3159
|
get _proxy() {
|
|
3217
|
-
return FactoryMaker.getInstance('
|
|
3160
|
+
return FactoryMaker.getInstance('BarcodeArSessionProxy');
|
|
3218
3161
|
}
|
|
3219
3162
|
resetSession() {
|
|
3220
3163
|
return this._proxy.resetSession();
|
|
3221
3164
|
}
|
|
3222
3165
|
}
|
|
3223
3166
|
|
|
3224
|
-
class
|
|
3167
|
+
class BarcodeArSession extends DefaultSerializeable {
|
|
3225
3168
|
static fromJSON(json) {
|
|
3226
3169
|
const sessionJson = JSON.parse(json);
|
|
3227
|
-
const session = new
|
|
3170
|
+
const session = new BarcodeArSession();
|
|
3228
3171
|
session._addedTrackedBarcodes = sessionJson.addedTrackedBarcodes
|
|
3229
3172
|
.map((trackedBarcodeJSON) => {
|
|
3230
3173
|
return TrackedBarcode
|
|
@@ -3241,7 +3184,7 @@ class BarcodeCheckSession extends DefaultSerializeable {
|
|
|
3241
3184
|
}
|
|
3242
3185
|
constructor() {
|
|
3243
3186
|
super();
|
|
3244
|
-
this.sessionController = new
|
|
3187
|
+
this.sessionController = new BarcodeArSessionController();
|
|
3245
3188
|
}
|
|
3246
3189
|
get addedTrackedBarcodes() {
|
|
3247
3190
|
return this._addedTrackedBarcodes;
|
|
@@ -3258,73 +3201,73 @@ class BarcodeCheckSession extends DefaultSerializeable {
|
|
|
3258
3201
|
}
|
|
3259
3202
|
__decorate([
|
|
3260
3203
|
nameForSerialization('addedTrackedBarcodes')
|
|
3261
|
-
],
|
|
3204
|
+
], BarcodeArSession.prototype, "_addedTrackedBarcodes", void 0);
|
|
3262
3205
|
__decorate([
|
|
3263
3206
|
nameForSerialization('removedTrackedBarcodes')
|
|
3264
|
-
],
|
|
3207
|
+
], BarcodeArSession.prototype, "_removedTrackedBarcodes", void 0);
|
|
3265
3208
|
__decorate([
|
|
3266
3209
|
nameForSerialization('trackedBarcodes')
|
|
3267
|
-
],
|
|
3210
|
+
], BarcodeArSession.prototype, "_trackedBarcodes", void 0);
|
|
3268
3211
|
__decorate([
|
|
3269
3212
|
ignoreFromSerialization
|
|
3270
|
-
],
|
|
3213
|
+
], BarcodeArSession.prototype, "sessionController", void 0);
|
|
3271
3214
|
|
|
3272
|
-
var
|
|
3273
|
-
(function (
|
|
3274
|
-
|
|
3275
|
-
})(
|
|
3276
|
-
class
|
|
3215
|
+
var BarcodeArListenerEvents;
|
|
3216
|
+
(function (BarcodeArListenerEvents) {
|
|
3217
|
+
BarcodeArListenerEvents["didUpdateSession"] = "BarcodeArListener.didUpdateSession";
|
|
3218
|
+
})(BarcodeArListenerEvents || (BarcodeArListenerEvents = {}));
|
|
3219
|
+
class BarcodeArListenerController {
|
|
3277
3220
|
constructor() {
|
|
3278
3221
|
this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
|
|
3279
3222
|
}
|
|
3280
|
-
static
|
|
3281
|
-
const controller = new
|
|
3282
|
-
controller.
|
|
3223
|
+
static forBarcodeAr(barcodeAr) {
|
|
3224
|
+
const controller = new BarcodeArListenerController();
|
|
3225
|
+
controller.barcodeAr = barcodeAr;
|
|
3283
3226
|
return controller;
|
|
3284
3227
|
}
|
|
3285
3228
|
update() {
|
|
3286
|
-
const
|
|
3287
|
-
const json = JSON.stringify(
|
|
3229
|
+
const barcodeAr = this.barcodeAr.toJSON();
|
|
3230
|
+
const json = JSON.stringify(barcodeAr);
|
|
3288
3231
|
return this._proxy.updateMode(json);
|
|
3289
3232
|
}
|
|
3290
3233
|
reset() {
|
|
3291
|
-
return this._proxy.
|
|
3234
|
+
return this._proxy.resetBarcodeAr();
|
|
3292
3235
|
}
|
|
3293
3236
|
setModeEnabledState(enabled) {
|
|
3294
3237
|
this._proxy.setModeEnabledState(enabled);
|
|
3295
3238
|
}
|
|
3296
3239
|
subscribeListener() {
|
|
3297
3240
|
var _a, _b;
|
|
3298
|
-
this._proxy.
|
|
3299
|
-
(_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b ===
|
|
3300
|
-
this.eventEmitter.on(
|
|
3241
|
+
this._proxy.registerBarcodeArListener();
|
|
3242
|
+
(_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
3243
|
+
this.eventEmitter.on(BarcodeArListenerEvents.didUpdateSession, (data) => __awaiter(this, void 0, void 0, function* () {
|
|
3301
3244
|
const payload = EventDataParser.parse(data);
|
|
3302
3245
|
if (payload === null) {
|
|
3303
|
-
console.error('
|
|
3246
|
+
console.error('BarcodeArListenerController didUpdateSession payload is null');
|
|
3304
3247
|
return;
|
|
3305
3248
|
}
|
|
3306
|
-
const session =
|
|
3249
|
+
const session = BarcodeArSession.fromJSON(payload.session);
|
|
3307
3250
|
yield this.notifyListenersOfDidUpdateSession(session, payload.frameId);
|
|
3308
3251
|
this._proxy.finishOnDidUpdateSession();
|
|
3309
3252
|
}));
|
|
3310
3253
|
}
|
|
3311
3254
|
unsubscribeListener() {
|
|
3312
|
-
this._proxy.
|
|
3313
|
-
this.eventEmitter.removeAllListeners(
|
|
3255
|
+
this._proxy.unregisterBarcodeArListener();
|
|
3256
|
+
this.eventEmitter.removeAllListeners(BarcodeArListenerEvents.didUpdateSession);
|
|
3314
3257
|
}
|
|
3315
3258
|
updateFeedback(feedbackJson) {
|
|
3316
3259
|
this._proxy.updateFeedback(feedbackJson);
|
|
3317
3260
|
}
|
|
3318
3261
|
get _proxy() {
|
|
3319
|
-
return FactoryMaker.getInstance('
|
|
3262
|
+
return FactoryMaker.getInstance('BarcodeArListenerProxy');
|
|
3320
3263
|
}
|
|
3321
3264
|
notifyListenersOfDidUpdateSession(session, frameId) {
|
|
3322
|
-
return __awaiter(this,
|
|
3323
|
-
const mode = this.
|
|
3265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3266
|
+
const mode = this.barcodeAr;
|
|
3324
3267
|
mode.isInListenerCallback = true;
|
|
3325
3268
|
for (const listener of mode.listeners) {
|
|
3326
3269
|
if (listener.didUpdateSession) {
|
|
3327
|
-
yield listener.didUpdateSession(this.
|
|
3270
|
+
yield listener.didUpdateSession(this.barcodeAr, session, () => CameraController.getFrame(frameId));
|
|
3328
3271
|
}
|
|
3329
3272
|
}
|
|
3330
3273
|
mode.isInListenerCallback = false;
|
|
@@ -3332,26 +3275,84 @@ class BarcodeCheckListenerController {
|
|
|
3332
3275
|
}
|
|
3333
3276
|
}
|
|
3334
3277
|
|
|
3335
|
-
class
|
|
3336
|
-
static get
|
|
3337
|
-
|
|
3278
|
+
class BarcodeArFeedback extends DefaultSerializeable {
|
|
3279
|
+
static get defaultFeedback() {
|
|
3280
|
+
const feedback = new BarcodeArFeedback();
|
|
3281
|
+
feedback.scanned = BarcodeArFeedback.barcodeArDefaults.Feedback.scanned;
|
|
3282
|
+
feedback.tapped = BarcodeArFeedback.barcodeArDefaults.Feedback.tapped;
|
|
3283
|
+
return feedback;
|
|
3284
|
+
}
|
|
3285
|
+
static get barcodeArDefaults() {
|
|
3286
|
+
return getBarcodeArDefaults();
|
|
3287
|
+
}
|
|
3288
|
+
static fromJSON(json) {
|
|
3289
|
+
const scanned = Feedback.fromJSON(json.scanned);
|
|
3290
|
+
const tapped = Feedback.fromJSON(json.tapped);
|
|
3291
|
+
const feedback = new BarcodeArFeedback();
|
|
3292
|
+
feedback.scanned = scanned;
|
|
3293
|
+
feedback.tapped = tapped;
|
|
3294
|
+
return feedback;
|
|
3295
|
+
}
|
|
3296
|
+
get scanned() {
|
|
3297
|
+
return this._scanned;
|
|
3298
|
+
}
|
|
3299
|
+
set scanned(scanned) {
|
|
3300
|
+
this._scanned = scanned;
|
|
3301
|
+
this.updateFeedback();
|
|
3302
|
+
}
|
|
3303
|
+
get tapped() {
|
|
3304
|
+
return this._tapped;
|
|
3305
|
+
}
|
|
3306
|
+
set tapped(tapped) {
|
|
3307
|
+
this._tapped = tapped;
|
|
3308
|
+
this.updateFeedback();
|
|
3309
|
+
}
|
|
3310
|
+
updateFeedback() {
|
|
3311
|
+
var _a;
|
|
3312
|
+
(_a = this.listenerController) === null || _a === void 0 ? void 0 : _a.updateFeedback(JSON.stringify(this.toJSON()));
|
|
3313
|
+
}
|
|
3314
|
+
constructor() {
|
|
3315
|
+
super();
|
|
3316
|
+
this.listenerController = null;
|
|
3317
|
+
this._scanned = BarcodeArFeedback.barcodeArDefaults.Feedback.scanned;
|
|
3318
|
+
this._tapped = BarcodeArFeedback.barcodeArDefaults.Feedback.tapped;
|
|
3319
|
+
this.scanned = new Feedback(null, null);
|
|
3320
|
+
this.tapped = new Feedback(null, null);
|
|
3321
|
+
}
|
|
3322
|
+
}
|
|
3323
|
+
__decorate([
|
|
3324
|
+
ignoreFromSerialization
|
|
3325
|
+
], BarcodeArFeedback.prototype, "listenerController", void 0);
|
|
3326
|
+
__decorate([
|
|
3327
|
+
nameForSerialization('scanned')
|
|
3328
|
+
], BarcodeArFeedback.prototype, "_scanned", void 0);
|
|
3329
|
+
__decorate([
|
|
3330
|
+
nameForSerialization('tapped')
|
|
3331
|
+
], BarcodeArFeedback.prototype, "_tapped", void 0);
|
|
3332
|
+
__decorate([
|
|
3333
|
+
ignoreFromSerialization
|
|
3334
|
+
], BarcodeArFeedback, "barcodeArDefaults", null);
|
|
3335
|
+
|
|
3336
|
+
class BarcodeAr extends DefaultSerializeable {
|
|
3337
|
+
static get barcodeArDefaults() {
|
|
3338
|
+
return getBarcodeArDefaults();
|
|
3338
3339
|
}
|
|
3339
3340
|
static get recommendedCameraSettings() {
|
|
3340
|
-
return
|
|
3341
|
+
return BarcodeAr.barcodeArDefaults.RecommendedCameraSettings;
|
|
3341
3342
|
}
|
|
3342
3343
|
static forContext(context, settings) {
|
|
3343
|
-
return new
|
|
3344
|
+
return new BarcodeAr(context, settings);
|
|
3344
3345
|
}
|
|
3345
3346
|
constructor(context, settings) {
|
|
3346
3347
|
super();
|
|
3347
|
-
this.type = '
|
|
3348
|
+
this.type = 'barcodeAr';
|
|
3348
3349
|
this.privateContext = null;
|
|
3349
3350
|
this.isInListenerCallback = false;
|
|
3350
|
-
this._feedback =
|
|
3351
|
+
this._feedback = BarcodeArFeedback.defaultFeedback;
|
|
3351
3352
|
this.listeners = [];
|
|
3352
3353
|
this._context = context;
|
|
3353
3354
|
this._settings = settings;
|
|
3354
|
-
this.listenerController =
|
|
3355
|
+
this.listenerController = BarcodeArListenerController.forBarcodeAr(this);
|
|
3355
3356
|
this._feedback.listenerController = this.listenerController;
|
|
3356
3357
|
}
|
|
3357
3358
|
applySettings(settings) {
|
|
@@ -3408,38 +3409,38 @@ class BarcodeCheck extends DefaultSerializeable {
|
|
|
3408
3409
|
}
|
|
3409
3410
|
__decorate([
|
|
3410
3411
|
ignoreFromSerialization
|
|
3411
|
-
],
|
|
3412
|
+
], BarcodeAr.prototype, "privateContext", void 0);
|
|
3412
3413
|
__decorate([
|
|
3413
3414
|
ignoreFromSerialization
|
|
3414
|
-
],
|
|
3415
|
+
], BarcodeAr.prototype, "listenerController", void 0);
|
|
3415
3416
|
__decorate([
|
|
3416
3417
|
ignoreFromSerialization
|
|
3417
|
-
],
|
|
3418
|
+
], BarcodeAr.prototype, "isInListenerCallback", void 0);
|
|
3418
3419
|
__decorate([
|
|
3419
3420
|
nameForSerialization('feedback')
|
|
3420
|
-
],
|
|
3421
|
+
], BarcodeAr.prototype, "_feedback", void 0);
|
|
3421
3422
|
__decorate([
|
|
3422
3423
|
nameForSerialization('settings')
|
|
3423
|
-
],
|
|
3424
|
+
], BarcodeAr.prototype, "_settings", void 0);
|
|
3424
3425
|
__decorate([
|
|
3425
3426
|
ignoreFromSerialization
|
|
3426
|
-
],
|
|
3427
|
+
], BarcodeAr.prototype, "listeners", void 0);
|
|
3427
3428
|
__decorate([
|
|
3428
3429
|
ignoreFromSerialization
|
|
3429
|
-
],
|
|
3430
|
+
], BarcodeAr, "barcodeArDefaults", null);
|
|
3430
3431
|
|
|
3431
|
-
class
|
|
3432
|
-
static get
|
|
3433
|
-
return
|
|
3432
|
+
class BarcodeArCircleHighlight extends Observable {
|
|
3433
|
+
static get barcodeArDefaults() {
|
|
3434
|
+
return getBarcodeArDefaults();
|
|
3434
3435
|
}
|
|
3435
3436
|
constructor(barcode, preset) {
|
|
3436
3437
|
super();
|
|
3437
|
-
this._type = '
|
|
3438
|
+
this._type = 'barcodeArCircleHighlight';
|
|
3438
3439
|
this._barcode = barcode;
|
|
3439
3440
|
this._preset = preset;
|
|
3440
|
-
this._brush =
|
|
3441
|
-
this._size =
|
|
3442
|
-
this._icon =
|
|
3441
|
+
this._brush = BarcodeArCircleHighlight.barcodeArDefaults.BarcodeArView.circleHighlightPresets[preset].brush;
|
|
3442
|
+
this._size = BarcodeArCircleHighlight.barcodeArDefaults.BarcodeArView.circleHighlightPresets[preset].size;
|
|
3443
|
+
this._icon = BarcodeArCircleHighlight.barcodeArDefaults.BarcodeArView.defaultHighlightIcon;
|
|
3443
3444
|
}
|
|
3444
3445
|
get barcode() {
|
|
3445
3446
|
return this._barcode;
|
|
@@ -3468,49 +3469,49 @@ class BarcodeCheckCircleHighlight extends Observable {
|
|
|
3468
3469
|
}
|
|
3469
3470
|
__decorate([
|
|
3470
3471
|
nameForSerialization('type')
|
|
3471
|
-
],
|
|
3472
|
+
], BarcodeArCircleHighlight.prototype, "_type", void 0);
|
|
3472
3473
|
__decorate([
|
|
3473
3474
|
ignoreFromSerialization
|
|
3474
|
-
],
|
|
3475
|
+
], BarcodeArCircleHighlight.prototype, "_barcode", void 0);
|
|
3475
3476
|
__decorate([
|
|
3476
3477
|
nameForSerialization('brush')
|
|
3477
|
-
],
|
|
3478
|
+
], BarcodeArCircleHighlight.prototype, "_brush", void 0);
|
|
3478
3479
|
__decorate([
|
|
3479
3480
|
nameForSerialization('icon')
|
|
3480
|
-
],
|
|
3481
|
+
], BarcodeArCircleHighlight.prototype, "_icon", void 0);
|
|
3481
3482
|
__decorate([
|
|
3482
3483
|
nameForSerialization('preset')
|
|
3483
|
-
],
|
|
3484
|
+
], BarcodeArCircleHighlight.prototype, "_preset", void 0);
|
|
3484
3485
|
__decorate([
|
|
3485
3486
|
nameForSerialization('size')
|
|
3486
|
-
],
|
|
3487
|
+
], BarcodeArCircleHighlight.prototype, "_size", void 0);
|
|
3487
3488
|
__decorate([
|
|
3488
3489
|
ignoreFromSerialization
|
|
3489
|
-
],
|
|
3490
|
+
], BarcodeArCircleHighlight, "barcodeArDefaults", null);
|
|
3490
3491
|
|
|
3491
|
-
class
|
|
3492
|
-
static get
|
|
3493
|
-
return
|
|
3492
|
+
class BarcodeArInfoAnnotation extends Observable {
|
|
3493
|
+
static get barcodeArDefaults() {
|
|
3494
|
+
return getBarcodeArDefaults();
|
|
3494
3495
|
}
|
|
3495
3496
|
constructor(barcode) {
|
|
3496
3497
|
super();
|
|
3497
|
-
this._type = '
|
|
3498
|
-
this._annotationTrigger =
|
|
3499
|
-
.
|
|
3500
|
-
this._anchor =
|
|
3501
|
-
.
|
|
3502
|
-
this._backgroundColor =
|
|
3503
|
-
.
|
|
3498
|
+
this._type = 'barcodeArInfoAnnotation';
|
|
3499
|
+
this._annotationTrigger = BarcodeArInfoAnnotation.barcodeArDefaults
|
|
3500
|
+
.BarcodeArView.defaultInfoAnnotationTrigger;
|
|
3501
|
+
this._anchor = BarcodeArInfoAnnotation.barcodeArDefaults
|
|
3502
|
+
.BarcodeArView.defaultInfoAnnotationAnchor;
|
|
3503
|
+
this._backgroundColor = BarcodeArInfoAnnotation.barcodeArDefaults
|
|
3504
|
+
.BarcodeArView.defaultInfoAnnotationBackgroundColor;
|
|
3504
3505
|
this._body = [];
|
|
3505
3506
|
this._footer = null;
|
|
3506
|
-
this._hasTip =
|
|
3507
|
-
.
|
|
3507
|
+
this._hasTip = BarcodeArInfoAnnotation.barcodeArDefaults
|
|
3508
|
+
.BarcodeArView.defaultInfoAnnotationHasTip;
|
|
3508
3509
|
this._header = null;
|
|
3509
|
-
this._isEntireAnnotationTappable =
|
|
3510
|
-
.
|
|
3510
|
+
this._isEntireAnnotationTappable = BarcodeArInfoAnnotation.barcodeArDefaults
|
|
3511
|
+
.BarcodeArView.defaultInfoAnnotationEntireAnnotationTappable;
|
|
3511
3512
|
this._listener = null;
|
|
3512
3513
|
this._hasListener = false;
|
|
3513
|
-
this._width =
|
|
3514
|
+
this._width = BarcodeArInfoAnnotation.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationWidth;
|
|
3514
3515
|
this.footerChangedListener = () => {
|
|
3515
3516
|
this.notifyListeners('footer', this._footer);
|
|
3516
3517
|
};
|
|
@@ -3560,9 +3561,9 @@ class BarcodeCheckInfoAnnotation extends Observable {
|
|
|
3560
3561
|
}
|
|
3561
3562
|
set footer(newValue) {
|
|
3562
3563
|
var _a, _b;
|
|
3563
|
-
(_a = this._footer) === null || _a ===
|
|
3564
|
+
(_a = this._footer) === null || _a === void 0 ? void 0 : _a.removeListener(this.footerChangedListener);
|
|
3564
3565
|
this._footer = newValue;
|
|
3565
|
-
(_b = this._footer) === null || _b ===
|
|
3566
|
+
(_b = this._footer) === null || _b === void 0 ? void 0 : _b.addListener(this.footerChangedListener);
|
|
3566
3567
|
this.notifyListeners('footer', newValue);
|
|
3567
3568
|
}
|
|
3568
3569
|
get hasTip() {
|
|
@@ -3577,9 +3578,9 @@ class BarcodeCheckInfoAnnotation extends Observable {
|
|
|
3577
3578
|
}
|
|
3578
3579
|
set header(newValue) {
|
|
3579
3580
|
var _a, _b;
|
|
3580
|
-
(_a = this._header) === null || _a ===
|
|
3581
|
+
(_a = this._header) === null || _a === void 0 ? void 0 : _a.removeListener(this.headerChangedListener);
|
|
3581
3582
|
this._header = newValue;
|
|
3582
|
-
(_b = this._header) === null || _b ===
|
|
3583
|
+
(_b = this._header) === null || _b === void 0 ? void 0 : _b.addListener(this.headerChangedListener);
|
|
3583
3584
|
this.notifyListeners('header', newValue);
|
|
3584
3585
|
}
|
|
3585
3586
|
get isEntireAnnotationTappable() {
|
|
@@ -3607,69 +3608,69 @@ class BarcodeCheckInfoAnnotation extends Observable {
|
|
|
3607
3608
|
}
|
|
3608
3609
|
__decorate([
|
|
3609
3610
|
ignoreFromSerialization
|
|
3610
|
-
],
|
|
3611
|
+
], BarcodeArInfoAnnotation.prototype, "_barcode", void 0);
|
|
3611
3612
|
__decorate([
|
|
3612
3613
|
nameForSerialization('type')
|
|
3613
|
-
],
|
|
3614
|
+
], BarcodeArInfoAnnotation.prototype, "_type", void 0);
|
|
3614
3615
|
__decorate([
|
|
3615
3616
|
nameForSerialization('annotationTrigger')
|
|
3616
|
-
],
|
|
3617
|
+
], BarcodeArInfoAnnotation.prototype, "_annotationTrigger", void 0);
|
|
3617
3618
|
__decorate([
|
|
3618
3619
|
nameForSerialization('anchor')
|
|
3619
|
-
],
|
|
3620
|
+
], BarcodeArInfoAnnotation.prototype, "_anchor", void 0);
|
|
3620
3621
|
__decorate([
|
|
3621
3622
|
nameForSerialization('backgroundColor')
|
|
3622
|
-
],
|
|
3623
|
+
], BarcodeArInfoAnnotation.prototype, "_backgroundColor", void 0);
|
|
3623
3624
|
__decorate([
|
|
3624
3625
|
nameForSerialization('body')
|
|
3625
|
-
],
|
|
3626
|
+
], BarcodeArInfoAnnotation.prototype, "_body", void 0);
|
|
3626
3627
|
__decorate([
|
|
3627
3628
|
nameForSerialization('footer')
|
|
3628
|
-
],
|
|
3629
|
+
], BarcodeArInfoAnnotation.prototype, "_footer", void 0);
|
|
3629
3630
|
__decorate([
|
|
3630
3631
|
nameForSerialization('hasTip')
|
|
3631
|
-
],
|
|
3632
|
+
], BarcodeArInfoAnnotation.prototype, "_hasTip", void 0);
|
|
3632
3633
|
__decorate([
|
|
3633
3634
|
nameForSerialization('header')
|
|
3634
|
-
],
|
|
3635
|
+
], BarcodeArInfoAnnotation.prototype, "_header", void 0);
|
|
3635
3636
|
__decorate([
|
|
3636
3637
|
nameForSerialization('isEntireAnnotationTappable')
|
|
3637
|
-
],
|
|
3638
|
+
], BarcodeArInfoAnnotation.prototype, "_isEntireAnnotationTappable", void 0);
|
|
3638
3639
|
__decorate([
|
|
3639
3640
|
ignoreFromSerialization
|
|
3640
|
-
],
|
|
3641
|
+
], BarcodeArInfoAnnotation.prototype, "_listener", void 0);
|
|
3641
3642
|
__decorate([
|
|
3642
3643
|
nameForSerialization('hasListener')
|
|
3643
|
-
],
|
|
3644
|
+
], BarcodeArInfoAnnotation.prototype, "_hasListener", void 0);
|
|
3644
3645
|
__decorate([
|
|
3645
3646
|
nameForSerialization('width')
|
|
3646
|
-
],
|
|
3647
|
+
], BarcodeArInfoAnnotation.prototype, "_width", void 0);
|
|
3647
3648
|
__decorate([
|
|
3648
3649
|
ignoreFromSerialization
|
|
3649
|
-
],
|
|
3650
|
+
], BarcodeArInfoAnnotation, "barcodeArDefaults", null);
|
|
3650
3651
|
|
|
3651
|
-
class
|
|
3652
|
+
class BarcodeArInfoAnnotationBodyComponent extends Observable {
|
|
3652
3653
|
constructor() {
|
|
3653
3654
|
super(...arguments);
|
|
3654
|
-
this._isRightIconTappable =
|
|
3655
|
-
.
|
|
3656
|
-
this._isLeftIconTappable =
|
|
3657
|
-
.
|
|
3658
|
-
this._rightIcon =
|
|
3659
|
-
.
|
|
3660
|
-
this._leftIcon =
|
|
3661
|
-
.
|
|
3662
|
-
this._text =
|
|
3663
|
-
.
|
|
3655
|
+
this._isRightIconTappable = BarcodeArInfoAnnotationBodyComponent
|
|
3656
|
+
.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementRightIconTappable;
|
|
3657
|
+
this._isLeftIconTappable = BarcodeArInfoAnnotationBodyComponent
|
|
3658
|
+
.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementLeftIconTappable;
|
|
3659
|
+
this._rightIcon = BarcodeArInfoAnnotationBodyComponent
|
|
3660
|
+
.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementRightIcon;
|
|
3661
|
+
this._leftIcon = BarcodeArInfoAnnotationBodyComponent
|
|
3662
|
+
.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementLeftIcon;
|
|
3663
|
+
this._text = BarcodeArInfoAnnotationBodyComponent
|
|
3664
|
+
.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementText;
|
|
3664
3665
|
this._textAlign = TextAlignment.Center;
|
|
3665
|
-
this._textColor =
|
|
3666
|
-
.
|
|
3667
|
-
this._textSize =
|
|
3668
|
-
.
|
|
3666
|
+
this._textColor = BarcodeArInfoAnnotationBodyComponent
|
|
3667
|
+
.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementTextColor;
|
|
3668
|
+
this._textSize = BarcodeArInfoAnnotationBodyComponent
|
|
3669
|
+
.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementTextSize;
|
|
3669
3670
|
this._fontFamily = FontFamily.SystemDefault;
|
|
3670
3671
|
}
|
|
3671
|
-
static get
|
|
3672
|
-
return
|
|
3672
|
+
static get barcodeArDefaults() {
|
|
3673
|
+
return getBarcodeArDefaults();
|
|
3673
3674
|
}
|
|
3674
3675
|
get isRightIconTappable() {
|
|
3675
3676
|
return this._isRightIconTappable;
|
|
@@ -3737,51 +3738,51 @@ class BarcodeCheckInfoAnnotationBodyComponent extends Observable {
|
|
|
3737
3738
|
}
|
|
3738
3739
|
__decorate([
|
|
3739
3740
|
nameForSerialization('isRightIconTappable')
|
|
3740
|
-
],
|
|
3741
|
+
], BarcodeArInfoAnnotationBodyComponent.prototype, "_isRightIconTappable", void 0);
|
|
3741
3742
|
__decorate([
|
|
3742
3743
|
nameForSerialization('isLeftIconTappable')
|
|
3743
|
-
],
|
|
3744
|
+
], BarcodeArInfoAnnotationBodyComponent.prototype, "_isLeftIconTappable", void 0);
|
|
3744
3745
|
__decorate([
|
|
3745
3746
|
nameForSerialization('rightIcon')
|
|
3746
|
-
],
|
|
3747
|
+
], BarcodeArInfoAnnotationBodyComponent.prototype, "_rightIcon", void 0);
|
|
3747
3748
|
__decorate([
|
|
3748
3749
|
nameForSerialization('leftIcon')
|
|
3749
|
-
],
|
|
3750
|
+
], BarcodeArInfoAnnotationBodyComponent.prototype, "_leftIcon", void 0);
|
|
3750
3751
|
__decorate([
|
|
3751
3752
|
nameForSerialization('text')
|
|
3752
|
-
],
|
|
3753
|
+
], BarcodeArInfoAnnotationBodyComponent.prototype, "_text", void 0);
|
|
3753
3754
|
__decorate([
|
|
3754
3755
|
nameForSerialization('textAlign')
|
|
3755
|
-
],
|
|
3756
|
+
], BarcodeArInfoAnnotationBodyComponent.prototype, "_textAlign", void 0);
|
|
3756
3757
|
__decorate([
|
|
3757
3758
|
nameForSerialization('textColor')
|
|
3758
|
-
],
|
|
3759
|
+
], BarcodeArInfoAnnotationBodyComponent.prototype, "_textColor", void 0);
|
|
3759
3760
|
__decorate([
|
|
3760
3761
|
nameForSerialization('textSize')
|
|
3761
|
-
],
|
|
3762
|
+
], BarcodeArInfoAnnotationBodyComponent.prototype, "_textSize", void 0);
|
|
3762
3763
|
__decorate([
|
|
3763
3764
|
nameForSerialization('fontFamily')
|
|
3764
|
-
],
|
|
3765
|
+
], BarcodeArInfoAnnotationBodyComponent.prototype, "_fontFamily", void 0);
|
|
3765
3766
|
__decorate([
|
|
3766
3767
|
ignoreFromSerialization
|
|
3767
|
-
],
|
|
3768
|
+
], BarcodeArInfoAnnotationBodyComponent, "barcodeArDefaults", null);
|
|
3768
3769
|
|
|
3769
|
-
class
|
|
3770
|
-
static get
|
|
3771
|
-
return
|
|
3770
|
+
class BarcodeArInfoAnnotationFooter extends Observable {
|
|
3771
|
+
static get barcodeArDefaults() {
|
|
3772
|
+
return getBarcodeArDefaults();
|
|
3772
3773
|
}
|
|
3773
3774
|
constructor() {
|
|
3774
3775
|
super();
|
|
3775
|
-
this._text =
|
|
3776
|
-
.
|
|
3777
|
-
this._icon =
|
|
3778
|
-
.
|
|
3779
|
-
this._textSize =
|
|
3780
|
-
.
|
|
3781
|
-
this._textColor =
|
|
3782
|
-
.
|
|
3783
|
-
this._backgroundColor =
|
|
3784
|
-
.
|
|
3776
|
+
this._text = BarcodeArInfoAnnotationFooter.barcodeArDefaults
|
|
3777
|
+
.BarcodeArView.defaultInfoAnnotationFooterText;
|
|
3778
|
+
this._icon = BarcodeArInfoAnnotationFooter.barcodeArDefaults
|
|
3779
|
+
.BarcodeArView.defaultInfoAnnotationFooterIcon;
|
|
3780
|
+
this._textSize = BarcodeArInfoAnnotationFooter.barcodeArDefaults
|
|
3781
|
+
.BarcodeArView.defaultInfoAnnotationFooterTextSize;
|
|
3782
|
+
this._textColor = BarcodeArInfoAnnotationFooter.barcodeArDefaults
|
|
3783
|
+
.BarcodeArView.defaultInfoAnnotationFooterTextColor;
|
|
3784
|
+
this._backgroundColor = BarcodeArInfoAnnotationFooter.barcodeArDefaults
|
|
3785
|
+
.BarcodeArView.defaultInfoAnnotationFooterBackgroundColor;
|
|
3785
3786
|
this._fontFamily = FontFamily.SystemDefault;
|
|
3786
3787
|
}
|
|
3787
3788
|
get text() {
|
|
@@ -3829,42 +3830,42 @@ class BarcodeCheckInfoAnnotationFooter extends Observable {
|
|
|
3829
3830
|
}
|
|
3830
3831
|
__decorate([
|
|
3831
3832
|
nameForSerialization('text')
|
|
3832
|
-
],
|
|
3833
|
+
], BarcodeArInfoAnnotationFooter.prototype, "_text", void 0);
|
|
3833
3834
|
__decorate([
|
|
3834
3835
|
nameForSerialization('icon')
|
|
3835
|
-
],
|
|
3836
|
+
], BarcodeArInfoAnnotationFooter.prototype, "_icon", void 0);
|
|
3836
3837
|
__decorate([
|
|
3837
3838
|
nameForSerialization('textSize')
|
|
3838
|
-
],
|
|
3839
|
+
], BarcodeArInfoAnnotationFooter.prototype, "_textSize", void 0);
|
|
3839
3840
|
__decorate([
|
|
3840
3841
|
nameForSerialization('textColor')
|
|
3841
|
-
],
|
|
3842
|
+
], BarcodeArInfoAnnotationFooter.prototype, "_textColor", void 0);
|
|
3842
3843
|
__decorate([
|
|
3843
3844
|
nameForSerialization('backgroundColor')
|
|
3844
|
-
],
|
|
3845
|
+
], BarcodeArInfoAnnotationFooter.prototype, "_backgroundColor", void 0);
|
|
3845
3846
|
__decorate([
|
|
3846
3847
|
nameForSerialization('fontFamily')
|
|
3847
|
-
],
|
|
3848
|
+
], BarcodeArInfoAnnotationFooter.prototype, "_fontFamily", void 0);
|
|
3848
3849
|
__decorate([
|
|
3849
3850
|
ignoreFromSerialization
|
|
3850
|
-
],
|
|
3851
|
+
], BarcodeArInfoAnnotationFooter, "barcodeArDefaults", null);
|
|
3851
3852
|
|
|
3852
|
-
class
|
|
3853
|
-
static get
|
|
3854
|
-
return
|
|
3853
|
+
class BarcodeArInfoAnnotationHeader extends Observable {
|
|
3854
|
+
static get barcodeArDefaults() {
|
|
3855
|
+
return getBarcodeArDefaults();
|
|
3855
3856
|
}
|
|
3856
3857
|
constructor() {
|
|
3857
3858
|
super();
|
|
3858
|
-
this._text =
|
|
3859
|
-
.
|
|
3860
|
-
this._icon =
|
|
3861
|
-
.
|
|
3862
|
-
this._textSize =
|
|
3863
|
-
.
|
|
3864
|
-
this._textColor =
|
|
3865
|
-
.
|
|
3866
|
-
this._backgroundColor =
|
|
3867
|
-
.
|
|
3859
|
+
this._text = BarcodeArInfoAnnotationHeader.barcodeArDefaults
|
|
3860
|
+
.BarcodeArView.defaultInfoAnnotationHeaderText;
|
|
3861
|
+
this._icon = BarcodeArInfoAnnotationHeader.barcodeArDefaults
|
|
3862
|
+
.BarcodeArView.defaultInfoAnnotationHeaderIcon;
|
|
3863
|
+
this._textSize = BarcodeArInfoAnnotationHeader.barcodeArDefaults
|
|
3864
|
+
.BarcodeArView.defaultInfoAnnotationHeaderTextSize;
|
|
3865
|
+
this._textColor = BarcodeArInfoAnnotationHeader.barcodeArDefaults
|
|
3866
|
+
.BarcodeArView.defaultInfoAnnotationHeaderTextColor;
|
|
3867
|
+
this._backgroundColor = BarcodeArInfoAnnotationHeader.barcodeArDefaults
|
|
3868
|
+
.BarcodeArView.defaultInfoAnnotationHeaderBackgroundColor;
|
|
3868
3869
|
this._fontFamily = FontFamily.SystemDefault;
|
|
3869
3870
|
}
|
|
3870
3871
|
get text() {
|
|
@@ -3912,39 +3913,39 @@ class BarcodeCheckInfoAnnotationHeader extends Observable {
|
|
|
3912
3913
|
}
|
|
3913
3914
|
__decorate([
|
|
3914
3915
|
nameForSerialization('text')
|
|
3915
|
-
],
|
|
3916
|
+
], BarcodeArInfoAnnotationHeader.prototype, "_text", void 0);
|
|
3916
3917
|
__decorate([
|
|
3917
3918
|
nameForSerialization('icon')
|
|
3918
|
-
],
|
|
3919
|
+
], BarcodeArInfoAnnotationHeader.prototype, "_icon", void 0);
|
|
3919
3920
|
__decorate([
|
|
3920
3921
|
nameForSerialization('textSize')
|
|
3921
|
-
],
|
|
3922
|
+
], BarcodeArInfoAnnotationHeader.prototype, "_textSize", void 0);
|
|
3922
3923
|
__decorate([
|
|
3923
3924
|
nameForSerialization('textColor')
|
|
3924
|
-
],
|
|
3925
|
+
], BarcodeArInfoAnnotationHeader.prototype, "_textColor", void 0);
|
|
3925
3926
|
__decorate([
|
|
3926
3927
|
nameForSerialization('backgroundColor')
|
|
3927
|
-
],
|
|
3928
|
+
], BarcodeArInfoAnnotationHeader.prototype, "_backgroundColor", void 0);
|
|
3928
3929
|
__decorate([
|
|
3929
3930
|
nameForSerialization('fontFamily')
|
|
3930
|
-
],
|
|
3931
|
+
], BarcodeArInfoAnnotationHeader.prototype, "_fontFamily", void 0);
|
|
3931
3932
|
__decorate([
|
|
3932
3933
|
ignoreFromSerialization
|
|
3933
|
-
],
|
|
3934
|
+
], BarcodeArInfoAnnotationHeader, "barcodeArDefaults", null);
|
|
3934
3935
|
|
|
3935
|
-
class
|
|
3936
|
-
static get
|
|
3937
|
-
return
|
|
3936
|
+
class BarcodeArPopoverAnnotation extends Observable {
|
|
3937
|
+
static get barcodeArDefaults() {
|
|
3938
|
+
return getBarcodeArDefaults();
|
|
3938
3939
|
}
|
|
3939
3940
|
constructor(barcode, buttons) {
|
|
3940
3941
|
super();
|
|
3941
|
-
this._type = '
|
|
3942
|
-
this._isEntirePopoverTappable =
|
|
3943
|
-
.
|
|
3942
|
+
this._type = 'barcodeArPopoverAnnotation';
|
|
3943
|
+
this._isEntirePopoverTappable = BarcodeArPopoverAnnotation.barcodeArDefaults
|
|
3944
|
+
.BarcodeArView.defaultIsEntirePopoverTappable;
|
|
3944
3945
|
this._listener = null;
|
|
3945
3946
|
this._hasListener = false;
|
|
3946
|
-
this._annotationTrigger =
|
|
3947
|
-
.
|
|
3947
|
+
this._annotationTrigger = BarcodeArPopoverAnnotation.barcodeArDefaults
|
|
3948
|
+
.BarcodeArView.defaultInfoAnnotationTrigger;
|
|
3948
3949
|
this.buttonChangedListener = (property, index) => {
|
|
3949
3950
|
this.notifyListeners(property, index);
|
|
3950
3951
|
};
|
|
@@ -3952,7 +3953,7 @@ class BarcodeCheckPopoverAnnotation extends Observable {
|
|
|
3952
3953
|
this._buttons = buttons;
|
|
3953
3954
|
for (const button of buttons) {
|
|
3954
3955
|
button.addListener(() => {
|
|
3955
|
-
this.buttonChangedListener('
|
|
3956
|
+
this.buttonChangedListener('BarcodeArPopoverAnnotation.button', buttons.indexOf(button));
|
|
3956
3957
|
});
|
|
3957
3958
|
}
|
|
3958
3959
|
}
|
|
@@ -3987,39 +3988,39 @@ class BarcodeCheckPopoverAnnotation extends Observable {
|
|
|
3987
3988
|
}
|
|
3988
3989
|
__decorate([
|
|
3989
3990
|
nameForSerialization('type')
|
|
3990
|
-
],
|
|
3991
|
+
], BarcodeArPopoverAnnotation.prototype, "_type", void 0);
|
|
3991
3992
|
__decorate([
|
|
3992
3993
|
nameForSerialization('isEntirePopoverTappable')
|
|
3993
|
-
],
|
|
3994
|
+
], BarcodeArPopoverAnnotation.prototype, "_isEntirePopoverTappable", void 0);
|
|
3994
3995
|
__decorate([
|
|
3995
3996
|
ignoreFromSerialization
|
|
3996
|
-
],
|
|
3997
|
+
], BarcodeArPopoverAnnotation.prototype, "_listener", void 0);
|
|
3997
3998
|
__decorate([
|
|
3998
3999
|
nameForSerialization('hasListener')
|
|
3999
|
-
],
|
|
4000
|
+
], BarcodeArPopoverAnnotation.prototype, "_hasListener", void 0);
|
|
4000
4001
|
__decorate([
|
|
4001
4002
|
nameForSerialization('annotationTrigger')
|
|
4002
|
-
],
|
|
4003
|
+
], BarcodeArPopoverAnnotation.prototype, "_annotationTrigger", void 0);
|
|
4003
4004
|
__decorate([
|
|
4004
4005
|
ignoreFromSerialization
|
|
4005
|
-
],
|
|
4006
|
+
], BarcodeArPopoverAnnotation.prototype, "_barcode", void 0);
|
|
4006
4007
|
__decorate([
|
|
4007
4008
|
nameForSerialization('buttons')
|
|
4008
|
-
],
|
|
4009
|
+
], BarcodeArPopoverAnnotation.prototype, "_buttons", void 0);
|
|
4009
4010
|
__decorate([
|
|
4010
4011
|
ignoreFromSerialization
|
|
4011
|
-
],
|
|
4012
|
+
], BarcodeArPopoverAnnotation, "barcodeArDefaults", null);
|
|
4012
4013
|
|
|
4013
|
-
class
|
|
4014
|
-
static get
|
|
4015
|
-
return
|
|
4014
|
+
class BarcodeArPopoverAnnotationButton extends Observable {
|
|
4015
|
+
static get barcodeArDefaults() {
|
|
4016
|
+
return getBarcodeArDefaults();
|
|
4016
4017
|
}
|
|
4017
4018
|
constructor(icon, text) {
|
|
4018
4019
|
super();
|
|
4019
|
-
this._textColor =
|
|
4020
|
-
.
|
|
4021
|
-
this._textSize =
|
|
4022
|
-
.
|
|
4020
|
+
this._textColor = BarcodeArPopoverAnnotationButton
|
|
4021
|
+
.barcodeArDefaults.BarcodeArView.defaultBarcodeArPopoverAnnotationButtonTextColor;
|
|
4022
|
+
this._textSize = BarcodeArPopoverAnnotationButton
|
|
4023
|
+
.barcodeArDefaults.BarcodeArView.defaultBarcodeArPopoverAnnotationButtonTextSize;
|
|
4023
4024
|
this._fontFamily = FontFamily.SystemDefault;
|
|
4024
4025
|
this._icon = icon;
|
|
4025
4026
|
this._text = text;
|
|
@@ -4054,34 +4055,34 @@ class BarcodeCheckPopoverAnnotationButton extends Observable {
|
|
|
4054
4055
|
}
|
|
4055
4056
|
__decorate([
|
|
4056
4057
|
nameForSerialization('textColor')
|
|
4057
|
-
],
|
|
4058
|
+
], BarcodeArPopoverAnnotationButton.prototype, "_textColor", void 0);
|
|
4058
4059
|
__decorate([
|
|
4059
4060
|
nameForSerialization('textSize')
|
|
4060
|
-
],
|
|
4061
|
+
], BarcodeArPopoverAnnotationButton.prototype, "_textSize", void 0);
|
|
4061
4062
|
__decorate([
|
|
4062
4063
|
nameForSerialization('fontFamily')
|
|
4063
|
-
],
|
|
4064
|
+
], BarcodeArPopoverAnnotationButton.prototype, "_fontFamily", void 0);
|
|
4064
4065
|
__decorate([
|
|
4065
4066
|
nameForSerialization('icon')
|
|
4066
|
-
],
|
|
4067
|
+
], BarcodeArPopoverAnnotationButton.prototype, "_icon", void 0);
|
|
4067
4068
|
__decorate([
|
|
4068
4069
|
nameForSerialization('text')
|
|
4069
|
-
],
|
|
4070
|
+
], BarcodeArPopoverAnnotationButton.prototype, "_text", void 0);
|
|
4070
4071
|
__decorate([
|
|
4071
4072
|
ignoreFromSerialization
|
|
4072
|
-
],
|
|
4073
|
+
], BarcodeArPopoverAnnotationButton, "barcodeArDefaults", null);
|
|
4073
4074
|
|
|
4074
|
-
class
|
|
4075
|
-
static get
|
|
4076
|
-
return
|
|
4075
|
+
class BarcodeArRectangleHighlight extends Observable {
|
|
4076
|
+
static get barcodeArDefaults() {
|
|
4077
|
+
return getBarcodeArDefaults();
|
|
4077
4078
|
}
|
|
4078
4079
|
constructor(barcode) {
|
|
4079
4080
|
super();
|
|
4080
|
-
this._type = '
|
|
4081
|
-
this._brush =
|
|
4082
|
-
.
|
|
4083
|
-
this._icon =
|
|
4084
|
-
.
|
|
4081
|
+
this._type = 'barcodeArRectangleHighlight';
|
|
4082
|
+
this._brush = BarcodeArRectangleHighlight
|
|
4083
|
+
.barcodeArDefaults.BarcodeArView.defaultRectangleHighlightBrush;
|
|
4084
|
+
this._icon = BarcodeArRectangleHighlight
|
|
4085
|
+
.barcodeArDefaults.BarcodeArView.defaultHighlightIcon;
|
|
4085
4086
|
this._barcode = barcode;
|
|
4086
4087
|
}
|
|
4087
4088
|
get barcode() {
|
|
@@ -4104,21 +4105,21 @@ class BarcodeCheckRectangleHighlight extends Observable {
|
|
|
4104
4105
|
}
|
|
4105
4106
|
__decorate([
|
|
4106
4107
|
ignoreFromSerialization
|
|
4107
|
-
],
|
|
4108
|
+
], BarcodeArRectangleHighlight.prototype, "_barcode", void 0);
|
|
4108
4109
|
__decorate([
|
|
4109
4110
|
nameForSerialization('type')
|
|
4110
|
-
],
|
|
4111
|
+
], BarcodeArRectangleHighlight.prototype, "_type", void 0);
|
|
4111
4112
|
__decorate([
|
|
4112
4113
|
nameForSerialization('brush')
|
|
4113
|
-
],
|
|
4114
|
+
], BarcodeArRectangleHighlight.prototype, "_brush", void 0);
|
|
4114
4115
|
__decorate([
|
|
4115
4116
|
nameForSerialization('icon')
|
|
4116
|
-
],
|
|
4117
|
+
], BarcodeArRectangleHighlight.prototype, "_icon", void 0);
|
|
4117
4118
|
__decorate([
|
|
4118
4119
|
ignoreFromSerialization
|
|
4119
|
-
],
|
|
4120
|
+
], BarcodeArRectangleHighlight, "barcodeArDefaults", null);
|
|
4120
4121
|
|
|
4121
|
-
class
|
|
4122
|
+
class BarcodeArSettings extends DefaultSerializeable {
|
|
4122
4123
|
constructor() {
|
|
4123
4124
|
super(...arguments);
|
|
4124
4125
|
this.symbologies = {};
|
|
@@ -4133,7 +4134,7 @@ class BarcodeCheckSettings extends DefaultSerializeable {
|
|
|
4133
4134
|
}
|
|
4134
4135
|
settingsForSymbology(symbology) {
|
|
4135
4136
|
if (!this.symbologies[symbology]) {
|
|
4136
|
-
const symbologySettings =
|
|
4137
|
+
const symbologySettings = BarcodeArSettings.barcodeDefaults.SymbologySettings[symbology];
|
|
4137
4138
|
symbologySettings._symbology = symbology;
|
|
4138
4139
|
this.symbologies[symbology] = symbologySettings;
|
|
4139
4140
|
}
|
|
@@ -4154,27 +4155,27 @@ class BarcodeCheckSettings extends DefaultSerializeable {
|
|
|
4154
4155
|
}
|
|
4155
4156
|
__decorate([
|
|
4156
4157
|
ignoreFromSerialization
|
|
4157
|
-
],
|
|
4158
|
+
], BarcodeArSettings, "barcodeDefaults", null);
|
|
4158
4159
|
|
|
4159
|
-
class
|
|
4160
|
-
static get
|
|
4161
|
-
return
|
|
4160
|
+
class BarcodeArStatusIconAnnotation extends Observable {
|
|
4161
|
+
static get barcodeArDefaults() {
|
|
4162
|
+
return getBarcodeArDefaults();
|
|
4162
4163
|
}
|
|
4163
4164
|
constructor(barcode) {
|
|
4164
4165
|
super();
|
|
4165
|
-
this._type = '
|
|
4166
|
-
this._hasTip =
|
|
4167
|
-
.
|
|
4168
|
-
this._icon =
|
|
4169
|
-
.
|
|
4170
|
-
this._text =
|
|
4171
|
-
.
|
|
4172
|
-
this._textColor =
|
|
4173
|
-
.
|
|
4174
|
-
this._backgroundColor =
|
|
4175
|
-
.
|
|
4176
|
-
this._annotationTrigger =
|
|
4177
|
-
.
|
|
4166
|
+
this._type = 'barcodeArStatusIconAnnotation';
|
|
4167
|
+
this._hasTip = BarcodeArStatusIconAnnotation
|
|
4168
|
+
.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationHasTip;
|
|
4169
|
+
this._icon = BarcodeArStatusIconAnnotation
|
|
4170
|
+
.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationIcon;
|
|
4171
|
+
this._text = BarcodeArStatusIconAnnotation
|
|
4172
|
+
.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationText;
|
|
4173
|
+
this._textColor = BarcodeArStatusIconAnnotation
|
|
4174
|
+
.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationTextColor;
|
|
4175
|
+
this._backgroundColor = BarcodeArStatusIconAnnotation
|
|
4176
|
+
.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationBackgroundColor;
|
|
4177
|
+
this._annotationTrigger = BarcodeArStatusIconAnnotation
|
|
4178
|
+
.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationTrigger;
|
|
4178
4179
|
this._barcode = barcode;
|
|
4179
4180
|
}
|
|
4180
4181
|
get barcode() {
|
|
@@ -4225,48 +4226,48 @@ class BarcodeCheckStatusIconAnnotation extends Observable {
|
|
|
4225
4226
|
}
|
|
4226
4227
|
__decorate([
|
|
4227
4228
|
nameForSerialization('type')
|
|
4228
|
-
],
|
|
4229
|
+
], BarcodeArStatusIconAnnotation.prototype, "_type", void 0);
|
|
4229
4230
|
__decorate([
|
|
4230
4231
|
nameForSerialization('barcode')
|
|
4231
|
-
],
|
|
4232
|
+
], BarcodeArStatusIconAnnotation.prototype, "_barcode", void 0);
|
|
4232
4233
|
__decorate([
|
|
4233
4234
|
nameForSerialization('hasTip')
|
|
4234
|
-
],
|
|
4235
|
+
], BarcodeArStatusIconAnnotation.prototype, "_hasTip", void 0);
|
|
4235
4236
|
__decorate([
|
|
4236
4237
|
nameForSerialization('icon')
|
|
4237
|
-
],
|
|
4238
|
+
], BarcodeArStatusIconAnnotation.prototype, "_icon", void 0);
|
|
4238
4239
|
__decorate([
|
|
4239
4240
|
nameForSerialization('text')
|
|
4240
|
-
],
|
|
4241
|
+
], BarcodeArStatusIconAnnotation.prototype, "_text", void 0);
|
|
4241
4242
|
__decorate([
|
|
4242
4243
|
nameForSerialization('textColor')
|
|
4243
|
-
],
|
|
4244
|
+
], BarcodeArStatusIconAnnotation.prototype, "_textColor", void 0);
|
|
4244
4245
|
__decorate([
|
|
4245
4246
|
nameForSerialization('backgroundColor')
|
|
4246
|
-
],
|
|
4247
|
+
], BarcodeArStatusIconAnnotation.prototype, "_backgroundColor", void 0);
|
|
4247
4248
|
__decorate([
|
|
4248
4249
|
nameForSerialization('annotationTrigger')
|
|
4249
|
-
],
|
|
4250
|
-
__decorate([
|
|
4251
|
-
ignoreFromSerialization
|
|
4252
|
-
],
|
|
4253
|
-
|
|
4254
|
-
var
|
|
4255
|
-
(function (
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
})(
|
|
4267
|
-
class
|
|
4250
|
+
], BarcodeArStatusIconAnnotation.prototype, "_annotationTrigger", void 0);
|
|
4251
|
+
__decorate([
|
|
4252
|
+
ignoreFromSerialization
|
|
4253
|
+
], BarcodeArStatusIconAnnotation, "barcodeArDefaults", null);
|
|
4254
|
+
|
|
4255
|
+
var BarcodeArViewEvents;
|
|
4256
|
+
(function (BarcodeArViewEvents) {
|
|
4257
|
+
BarcodeArViewEvents["didTapHighlightForBarcode"] = "BarcodeArViewUiListener.didTapHighlightForBarcode";
|
|
4258
|
+
BarcodeArViewEvents["highlightForBarcode"] = "BarcodeArHighlightProvider.highlightForBarcode";
|
|
4259
|
+
BarcodeArViewEvents["annotationForBarcode"] = "BarcodeArAnnotationProvider.annotationForBarcode";
|
|
4260
|
+
BarcodeArViewEvents["didTapPopoverEvent"] = "BarcodeArPopoverAnnotationListener.didTapPopover";
|
|
4261
|
+
BarcodeArViewEvents["didTapPopoverButtonEvent"] = "BarcodeArPopoverAnnotationListener.didTapPopoverButton";
|
|
4262
|
+
BarcodeArViewEvents["didTapInfoAnnotationRightIconEvent"] = "BarcodeArInfoAnnotationListener.didTapInfoAnnotationRightIcon";
|
|
4263
|
+
BarcodeArViewEvents["didTapInfoAnnotationLeftIconEvent"] = "BarcodeArInfoAnnotationListener.didTapInfoAnnotationLeftIcon";
|
|
4264
|
+
BarcodeArViewEvents["didTapInfoAnnotationEvent"] = "BarcodeArInfoAnnotationListener.didTapInfoAnnotation";
|
|
4265
|
+
BarcodeArViewEvents["didTapInfoAnnotationHeaderEvent"] = "BarcodeArInfoAnnotationListener.didTapInfoAnnotationHeader";
|
|
4266
|
+
BarcodeArViewEvents["didTapInfoAnnotationFooterEvent"] = "BarcodeArInfoAnnotationListener.didTapInfoAnnotationFooter";
|
|
4267
|
+
})(BarcodeArViewEvents || (BarcodeArViewEvents = {}));
|
|
4268
|
+
class BarcodeArViewController extends BaseController {
|
|
4268
4269
|
constructor() {
|
|
4269
|
-
super('
|
|
4270
|
+
super('BarcodeArViewProxy');
|
|
4270
4271
|
this.autoCreateNativeView = true;
|
|
4271
4272
|
this.isListenerEnabled = false;
|
|
4272
4273
|
this.highlightCache = {};
|
|
@@ -4279,13 +4280,13 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4279
4280
|
this.setAnnotationProvider(null);
|
|
4280
4281
|
this.setUiListener(null);
|
|
4281
4282
|
}
|
|
4282
|
-
static
|
|
4283
|
-
const viewController = new
|
|
4283
|
+
static forBarcodeArView(barcodeAr, baseView, autoCreateNativeView = true) {
|
|
4284
|
+
const viewController = new BarcodeArViewController();
|
|
4284
4285
|
viewController.baseView = baseView;
|
|
4285
4286
|
viewController.autoCreateNativeView = autoCreateNativeView;
|
|
4286
|
-
viewController.
|
|
4287
|
+
viewController.barcodeAr = barcodeAr;
|
|
4287
4288
|
viewController.initialize();
|
|
4288
|
-
if (baseView.
|
|
4289
|
+
if (baseView.barcodeArViewUiListener) {
|
|
4289
4290
|
viewController.subscribeForUiListenerEvents();
|
|
4290
4291
|
}
|
|
4291
4292
|
if (baseView.annotationProvider) {
|
|
@@ -4297,7 +4298,7 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4297
4298
|
return viewController;
|
|
4298
4299
|
}
|
|
4299
4300
|
initialize() {
|
|
4300
|
-
return __awaiter(this,
|
|
4301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4301
4302
|
yield this.baseView.context.update();
|
|
4302
4303
|
if (this.autoCreateNativeView) {
|
|
4303
4304
|
yield this.createView();
|
|
@@ -4305,22 +4306,22 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4305
4306
|
});
|
|
4306
4307
|
}
|
|
4307
4308
|
createView() {
|
|
4308
|
-
return __awaiter(this,
|
|
4309
|
-
const
|
|
4310
|
-
const json = JSON.stringify(
|
|
4309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4310
|
+
const barcodeArView = this.baseView.toJSON();
|
|
4311
|
+
const json = JSON.stringify(barcodeArView);
|
|
4311
4312
|
return this._proxy.createView(this.baseView.nativeView, json);
|
|
4312
4313
|
});
|
|
4313
4314
|
}
|
|
4314
4315
|
subscribeForUiListenerEvents() {
|
|
4315
4316
|
this.unsubscribeForUiListenerEvents();
|
|
4316
|
-
this.eventEmitter.on(
|
|
4317
|
+
this.eventEmitter.on(BarcodeArViewEvents.didTapHighlightForBarcode, (data) => {
|
|
4317
4318
|
var _a, _b;
|
|
4318
|
-
if (!this.baseView.
|
|
4319
|
+
if (!this.baseView.barcodeArViewUiListener) {
|
|
4319
4320
|
return;
|
|
4320
4321
|
}
|
|
4321
4322
|
const payload = EventDataParser.parse(data);
|
|
4322
4323
|
if (payload === null) {
|
|
4323
|
-
console.error('
|
|
4324
|
+
console.error('BarcodeArViewController didTapHighlightForBarcode payload is null');
|
|
4324
4325
|
return;
|
|
4325
4326
|
}
|
|
4326
4327
|
const barcodeJson = JSON.parse(payload.barcode);
|
|
@@ -4329,31 +4330,31 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4329
4330
|
if (!highlight) {
|
|
4330
4331
|
return;
|
|
4331
4332
|
}
|
|
4332
|
-
(_b = (_a = this.baseView) === null || _a ===
|
|
4333
|
+
(_b = (_a = this.baseView) === null || _a === void 0 ? void 0 : _a.barcodeArViewUiListener) === null || _b === void 0 ? void 0 : _b.didTapHighlightForBarcode(this.barcodeAr, barcode, highlight);
|
|
4333
4334
|
});
|
|
4334
4335
|
this._proxy.subscribeViewListeners();
|
|
4335
4336
|
}
|
|
4336
4337
|
unsubscribeForUiListenerEvents() {
|
|
4337
4338
|
this._proxy.unsubscribeViewListeners();
|
|
4338
|
-
this.eventEmitter.off(
|
|
4339
|
+
this.eventEmitter.off(BarcodeArViewEvents.didTapHighlightForBarcode);
|
|
4339
4340
|
}
|
|
4340
4341
|
subscribeForAnnotationProviderEvents() {
|
|
4341
4342
|
this.unsubscribeForAnnotationProviderEvents();
|
|
4342
|
-
this.eventEmitter.on(
|
|
4343
|
+
this.eventEmitter.on(BarcodeArViewEvents.annotationForBarcode, (data) => __awaiter(this, void 0, void 0, function* () {
|
|
4343
4344
|
var _a, _b;
|
|
4344
4345
|
const payload = EventDataParser.parse(data);
|
|
4345
4346
|
if (payload === null) {
|
|
4346
|
-
console.error('
|
|
4347
|
+
console.error('BarcodeArViewController annotationForBarcode payload is null');
|
|
4347
4348
|
return;
|
|
4348
4349
|
}
|
|
4349
4350
|
const barcodeJson = JSON.parse(payload.barcode);
|
|
4350
4351
|
const barcode = Barcode.fromJSON(barcodeJson);
|
|
4351
4352
|
barcode.barcodeId = payload.barcodeId;
|
|
4352
|
-
const annotation = yield ((_b = (_a = this.baseView) === null || _a ===
|
|
4353
|
+
const annotation = yield ((_b = (_a = this.baseView) === null || _a === void 0 ? void 0 : _a.annotationProvider) === null || _b === void 0 ? void 0 : _b.annotationForBarcode(barcode));
|
|
4353
4354
|
if (annotation) {
|
|
4354
4355
|
this.annotationsCache[payload.barcodeId] = annotation;
|
|
4355
4356
|
annotation.addListener((property, value) => {
|
|
4356
|
-
if (property === '
|
|
4357
|
+
if (property === 'BarcodeArPopoverAnnotation.button') {
|
|
4357
4358
|
const popover = annotation;
|
|
4358
4359
|
const button = popover.buttons[value];
|
|
4359
4360
|
const buttonJson = button.toJSON();
|
|
@@ -4372,28 +4373,28 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4372
4373
|
}
|
|
4373
4374
|
const result = {
|
|
4374
4375
|
barcodeId: payload.barcodeId,
|
|
4375
|
-
annotation: annotation === null || annotation ===
|
|
4376
|
+
annotation: annotation === null || annotation === void 0 ? void 0 : annotation.toJSON()
|
|
4376
4377
|
};
|
|
4377
4378
|
this._proxy.finishAnnotationForBarcode(JSON.stringify(result));
|
|
4378
4379
|
}));
|
|
4379
|
-
this.eventEmitter.on(
|
|
4380
|
+
this.eventEmitter.on(BarcodeArViewEvents.didTapPopoverEvent, (data) => __awaiter(this, void 0, void 0, function* () {
|
|
4380
4381
|
var _a, _b;
|
|
4381
4382
|
const payload = EventDataParser.parse(data);
|
|
4382
4383
|
if (payload === null) {
|
|
4383
|
-
console.error('
|
|
4384
|
+
console.error('BarcodeArViewController didTapPopoverEvent payload is null');
|
|
4384
4385
|
return;
|
|
4385
4386
|
}
|
|
4386
4387
|
const popover = this.annotationsCache[payload.barcodeId];
|
|
4387
4388
|
if (!popover) {
|
|
4388
4389
|
return;
|
|
4389
4390
|
}
|
|
4390
|
-
(_b = (_a = popover.listener) === null || _a ===
|
|
4391
|
+
(_b = (_a = popover.listener) === null || _a === void 0 ? void 0 : _a.didTap) === null || _b === void 0 ? void 0 : _b.call(_a, popover);
|
|
4391
4392
|
}));
|
|
4392
|
-
this.eventEmitter.on(
|
|
4393
|
+
this.eventEmitter.on(BarcodeArViewEvents.didTapPopoverButtonEvent, (data) => __awaiter(this, void 0, void 0, function* () {
|
|
4393
4394
|
var _a, _b;
|
|
4394
4395
|
const payload = EventDataParser.parse(data);
|
|
4395
4396
|
if (payload === null) {
|
|
4396
|
-
console.error('
|
|
4397
|
+
console.error('BarcodeArViewController didTapPopoverButtonEvent payload is null');
|
|
4397
4398
|
return;
|
|
4398
4399
|
}
|
|
4399
4400
|
const popover = this.annotationsCache[payload.barcodeId];
|
|
@@ -4401,13 +4402,13 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4401
4402
|
return;
|
|
4402
4403
|
}
|
|
4403
4404
|
const button = popover.buttons[payload.index];
|
|
4404
|
-
(_b = (_a = popover.listener) === null || _a ===
|
|
4405
|
+
(_b = (_a = popover.listener) === null || _a === void 0 ? void 0 : _a.didTapButton) === null || _b === void 0 ? void 0 : _b.call(_a, popover, button, payload.index);
|
|
4405
4406
|
}));
|
|
4406
|
-
this.eventEmitter.on(
|
|
4407
|
+
this.eventEmitter.on(BarcodeArViewEvents.didTapInfoAnnotationRightIconEvent, (data) => __awaiter(this, void 0, void 0, function* () {
|
|
4407
4408
|
var _a, _b;
|
|
4408
4409
|
const payload = EventDataParser.parse(data);
|
|
4409
4410
|
if (payload === null) {
|
|
4410
|
-
console.error('
|
|
4411
|
+
console.error('BarcodeArViewController didTapInfoAnnotationRightIconEvent payload is null');
|
|
4411
4412
|
return;
|
|
4412
4413
|
}
|
|
4413
4414
|
const infoAnnotation = this.annotationsCache[payload.barcodeId];
|
|
@@ -4415,13 +4416,13 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4415
4416
|
return;
|
|
4416
4417
|
}
|
|
4417
4418
|
const component = infoAnnotation.body[payload.componentIndex];
|
|
4418
|
-
(_b = (_a = infoAnnotation.listener) === null || _a ===
|
|
4419
|
+
(_b = (_a = infoAnnotation.listener) === null || _a === void 0 ? void 0 : _a.didTapRightIcon) === null || _b === void 0 ? void 0 : _b.call(_a, infoAnnotation, component, payload.componentIndex);
|
|
4419
4420
|
}));
|
|
4420
|
-
this.eventEmitter.on(
|
|
4421
|
+
this.eventEmitter.on(BarcodeArViewEvents.didTapInfoAnnotationLeftIconEvent, (data) => __awaiter(this, void 0, void 0, function* () {
|
|
4421
4422
|
var _a, _b;
|
|
4422
4423
|
const payload = EventDataParser.parse(data);
|
|
4423
4424
|
if (payload === null) {
|
|
4424
|
-
console.error('
|
|
4425
|
+
console.error('BarcodeArViewController didTapInfoAnnotationLeftIconEvent payload is null');
|
|
4425
4426
|
return;
|
|
4426
4427
|
}
|
|
4427
4428
|
const infoAnnotation = this.annotationsCache[payload.barcodeId];
|
|
@@ -4429,66 +4430,66 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4429
4430
|
return;
|
|
4430
4431
|
}
|
|
4431
4432
|
const component = infoAnnotation.body[payload.componentIndex];
|
|
4432
|
-
(_b = (_a = infoAnnotation.listener) === null || _a ===
|
|
4433
|
+
(_b = (_a = infoAnnotation.listener) === null || _a === void 0 ? void 0 : _a.didTapLeftIcon) === null || _b === void 0 ? void 0 : _b.call(_a, infoAnnotation, component, payload.componentIndex);
|
|
4433
4434
|
}));
|
|
4434
|
-
this.eventEmitter.on(
|
|
4435
|
+
this.eventEmitter.on(BarcodeArViewEvents.didTapInfoAnnotationEvent, (data) => __awaiter(this, void 0, void 0, function* () {
|
|
4435
4436
|
var _a, _b;
|
|
4436
4437
|
const payload = EventDataParser.parse(data);
|
|
4437
4438
|
if (payload === null) {
|
|
4438
|
-
console.error('
|
|
4439
|
+
console.error('BarcodeArViewController didTapInfoAnnotationEvent payload is null');
|
|
4439
4440
|
return;
|
|
4440
4441
|
}
|
|
4441
4442
|
const infoAnnotation = this.annotationsCache[payload.barcodeId];
|
|
4442
4443
|
if (infoAnnotation == null) {
|
|
4443
4444
|
return;
|
|
4444
4445
|
}
|
|
4445
|
-
(_b = (_a = infoAnnotation.listener) === null || _a ===
|
|
4446
|
+
(_b = (_a = infoAnnotation.listener) === null || _a === void 0 ? void 0 : _a.didTap) === null || _b === void 0 ? void 0 : _b.call(_a, infoAnnotation);
|
|
4446
4447
|
}));
|
|
4447
|
-
this.eventEmitter.on(
|
|
4448
|
+
this.eventEmitter.on(BarcodeArViewEvents.didTapInfoAnnotationHeaderEvent, (data) => __awaiter(this, void 0, void 0, function* () {
|
|
4448
4449
|
var _a, _b;
|
|
4449
4450
|
const payload = EventDataParser.parse(data);
|
|
4450
4451
|
if (payload === null) {
|
|
4451
|
-
console.error('
|
|
4452
|
+
console.error('BarcodeArViewController didTapInfoAnnotationHeaderEvent payload is null');
|
|
4452
4453
|
return;
|
|
4453
4454
|
}
|
|
4454
4455
|
const infoAnnotation = this.annotationsCache[payload.barcodeId];
|
|
4455
4456
|
if (infoAnnotation == null) {
|
|
4456
4457
|
return;
|
|
4457
4458
|
}
|
|
4458
|
-
(_b = (_a = infoAnnotation.listener) === null || _a ===
|
|
4459
|
+
(_b = (_a = infoAnnotation.listener) === null || _a === void 0 ? void 0 : _a.didTapHeader) === null || _b === void 0 ? void 0 : _b.call(_a, infoAnnotation);
|
|
4459
4460
|
}));
|
|
4460
|
-
this.eventEmitter.on(
|
|
4461
|
+
this.eventEmitter.on(BarcodeArViewEvents.didTapInfoAnnotationFooterEvent, (data) => __awaiter(this, void 0, void 0, function* () {
|
|
4461
4462
|
var _a, _b;
|
|
4462
4463
|
const payload = EventDataParser.parse(data);
|
|
4463
4464
|
if (payload === null) {
|
|
4464
|
-
console.error('
|
|
4465
|
+
console.error('BarcodeArViewController didTapInfoAnnotationFooterEvent payload is null');
|
|
4465
4466
|
return;
|
|
4466
4467
|
}
|
|
4467
4468
|
const infoAnnotation = this.annotationsCache[payload.barcodeId];
|
|
4468
4469
|
if (infoAnnotation == null) {
|
|
4469
4470
|
return;
|
|
4470
4471
|
}
|
|
4471
|
-
(_b = (_a = infoAnnotation.listener) === null || _a ===
|
|
4472
|
+
(_b = (_a = infoAnnotation.listener) === null || _a === void 0 ? void 0 : _a.didTapFooter) === null || _b === void 0 ? void 0 : _b.call(_a, infoAnnotation);
|
|
4472
4473
|
}));
|
|
4473
4474
|
this._proxy.subscribeToAnnotationProviderEvents();
|
|
4474
4475
|
}
|
|
4475
4476
|
unsubscribeForAnnotationProviderEvents() {
|
|
4476
4477
|
this._proxy.unsubscribeFromAnnotationProviderEvents();
|
|
4477
|
-
this.eventEmitter.off(
|
|
4478
|
+
this.eventEmitter.off(BarcodeArViewEvents.annotationForBarcode);
|
|
4478
4479
|
}
|
|
4479
4480
|
subscribeForHighlightProviderEvents() {
|
|
4480
4481
|
this.unsubscribeForHighlightProviderEvents();
|
|
4481
|
-
this.eventEmitter.on(
|
|
4482
|
+
this.eventEmitter.on(BarcodeArViewEvents.highlightForBarcode, (data) => __awaiter(this, void 0, void 0, function* () {
|
|
4482
4483
|
var _a, _b;
|
|
4483
4484
|
const payload = EventDataParser.parse(data);
|
|
4484
4485
|
if (payload === null) {
|
|
4485
|
-
console.error('
|
|
4486
|
+
console.error('BarcodeArViewController highlightForBarcode payload is null');
|
|
4486
4487
|
return;
|
|
4487
4488
|
}
|
|
4488
4489
|
const barcodeJson = JSON.parse(payload.barcode);
|
|
4489
4490
|
const barcode = Barcode.fromJSON(barcodeJson);
|
|
4490
4491
|
barcode.barcodeId = payload.barcodeId;
|
|
4491
|
-
const highlight = yield ((_b = (_a = this.baseView) === null || _a ===
|
|
4492
|
+
const highlight = yield ((_b = (_a = this.baseView) === null || _a === void 0 ? void 0 : _a.highlightProvider) === null || _b === void 0 ? void 0 : _b.highlightForBarcode(barcode));
|
|
4492
4493
|
if (highlight) {
|
|
4493
4494
|
this.highlightCache[payload.barcodeId] = highlight;
|
|
4494
4495
|
highlight.addListener(() => {
|
|
@@ -4499,7 +4500,7 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4499
4500
|
}
|
|
4500
4501
|
const result = {
|
|
4501
4502
|
barcodeId: payload.barcodeId,
|
|
4502
|
-
highlight: highlight === null || highlight ===
|
|
4503
|
+
highlight: highlight === null || highlight === void 0 ? void 0 : highlight.toJSON()
|
|
4503
4504
|
};
|
|
4504
4505
|
this._proxy.finishHighlightForBarcode(JSON.stringify(result));
|
|
4505
4506
|
}));
|
|
@@ -4507,10 +4508,10 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4507
4508
|
}
|
|
4508
4509
|
unsubscribeForHighlightProviderEvents() {
|
|
4509
4510
|
this._proxy.unsubscribeFromHighlightProviderEvents();
|
|
4510
|
-
this.eventEmitter.off(
|
|
4511
|
+
this.eventEmitter.off(BarcodeArViewEvents.highlightForBarcode);
|
|
4511
4512
|
}
|
|
4512
4513
|
setUiListener(listener) {
|
|
4513
|
-
return __awaiter(this,
|
|
4514
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4514
4515
|
if (listener && !this.isListenerEnabled) {
|
|
4515
4516
|
this.isListenerEnabled = true;
|
|
4516
4517
|
this.subscribeForUiListenerEvents();
|
|
@@ -4522,25 +4523,25 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4522
4523
|
});
|
|
4523
4524
|
}
|
|
4524
4525
|
setAnnotationProvider(provider) {
|
|
4525
|
-
return __awaiter(this,
|
|
4526
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4526
4527
|
if (provider != null) {
|
|
4527
|
-
yield this._proxy.
|
|
4528
|
+
yield this._proxy.registerBarcodeArAnnotationProvider();
|
|
4528
4529
|
this.subscribeForAnnotationProviderEvents();
|
|
4529
4530
|
}
|
|
4530
4531
|
else {
|
|
4531
|
-
yield this._proxy.
|
|
4532
|
+
yield this._proxy.unregisterBarcodeArAnnotationProvider();
|
|
4532
4533
|
this.unsubscribeForAnnotationProviderEvents();
|
|
4533
4534
|
}
|
|
4534
4535
|
});
|
|
4535
4536
|
}
|
|
4536
4537
|
setHighlightProvider(provider) {
|
|
4537
|
-
return __awaiter(this,
|
|
4538
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4538
4539
|
if (provider != null) {
|
|
4539
|
-
yield this._proxy.
|
|
4540
|
+
yield this._proxy.registerBarcodeArHighlightProvider();
|
|
4540
4541
|
this.subscribeForHighlightProviderEvents();
|
|
4541
4542
|
}
|
|
4542
4543
|
else {
|
|
4543
|
-
yield this._proxy.
|
|
4544
|
+
yield this._proxy.unregisterBarcodeArHighlightProvider();
|
|
4544
4545
|
this.unsubscribeForHighlightProviderEvents();
|
|
4545
4546
|
}
|
|
4546
4547
|
});
|
|
@@ -4561,71 +4562,71 @@ class BarcodeCheckViewController extends BaseController {
|
|
|
4561
4562
|
return this._proxy.pause();
|
|
4562
4563
|
}
|
|
4563
4564
|
update() {
|
|
4564
|
-
const
|
|
4565
|
-
const json = JSON.stringify(
|
|
4565
|
+
const barcodeArView = this.baseView.toJSON().View;
|
|
4566
|
+
const json = JSON.stringify(barcodeArView);
|
|
4566
4567
|
return this._proxy.update(json);
|
|
4567
4568
|
}
|
|
4568
4569
|
reset() {
|
|
4569
4570
|
this.highlightCache = {};
|
|
4570
4571
|
this.annotationsCache = {};
|
|
4571
|
-
return this._proxy.
|
|
4572
|
+
return this._proxy.barcodeArViewReset();
|
|
4572
4573
|
}
|
|
4573
4574
|
}
|
|
4574
4575
|
__decorate([
|
|
4575
4576
|
ignoreFromSerialization
|
|
4576
|
-
],
|
|
4577
|
+
], BarcodeArViewController.prototype, "autoCreateNativeView", void 0);
|
|
4577
4578
|
__decorate([
|
|
4578
4579
|
ignoreFromSerialization
|
|
4579
|
-
],
|
|
4580
|
+
], BarcodeArViewController.prototype, "highlightCache", void 0);
|
|
4580
4581
|
__decorate([
|
|
4581
4582
|
ignoreFromSerialization
|
|
4582
|
-
],
|
|
4583
|
+
], BarcodeArViewController.prototype, "annotationsCache", void 0);
|
|
4583
4584
|
|
|
4584
|
-
class
|
|
4585
|
-
static get
|
|
4586
|
-
return
|
|
4585
|
+
class BaseBarcodeArView extends DefaultSerializeable {
|
|
4586
|
+
static get barcodeArDefaults() {
|
|
4587
|
+
return getBarcodeArDefaults();
|
|
4587
4588
|
}
|
|
4588
|
-
constructor(context,
|
|
4589
|
+
constructor(context, barcodeAr, nativeView = null, barcodeArViewSettings, cameraSettings, annotationProvider, highlightProvider, uiListener, autoCreateNativeView = true) {
|
|
4589
4590
|
super();
|
|
4590
4591
|
this._autoCreateNativeView = true;
|
|
4591
4592
|
this._annotationProvider = null;
|
|
4592
|
-
this.
|
|
4593
|
+
this._barcodeArViewUiListener = null;
|
|
4593
4594
|
this._highlightProvider = null;
|
|
4594
4595
|
this.nativeView = null;
|
|
4595
4596
|
this._isStarted = false;
|
|
4596
4597
|
this._shouldShowMacroControl = false;
|
|
4597
|
-
this._macroModeControlPosition =
|
|
4598
|
-
.
|
|
4598
|
+
this._macroModeControlPosition = BaseBarcodeArView
|
|
4599
|
+
.barcodeArDefaults.BarcodeArView.defaultCameraSwitchControlPosition;
|
|
4599
4600
|
this._shouldShowTorchControl = false;
|
|
4600
|
-
this._torchControlPosition =
|
|
4601
|
-
.
|
|
4602
|
-
this._shouldShowZoomControl =
|
|
4603
|
-
.
|
|
4604
|
-
this._zoomControlPosition =
|
|
4605
|
-
.
|
|
4601
|
+
this._torchControlPosition = BaseBarcodeArView
|
|
4602
|
+
.barcodeArDefaults.BarcodeArView.defaultTorchControlPosition;
|
|
4603
|
+
this._shouldShowZoomControl = BaseBarcodeArView
|
|
4604
|
+
.barcodeArDefaults.BarcodeArView.defaultShouldShowZoomControl;
|
|
4605
|
+
this._zoomControlPosition = BaseBarcodeArView
|
|
4606
|
+
.barcodeArDefaults.BarcodeArView.defaultZoomControlPosition;
|
|
4606
4607
|
this._dataCaptureContext = context;
|
|
4607
|
-
this.
|
|
4608
|
-
this.
|
|
4608
|
+
this._barcodeAr = barcodeAr;
|
|
4609
|
+
this._barcodeArViewSettings = barcodeArViewSettings;
|
|
4609
4610
|
this._cameraSettings = cameraSettings;
|
|
4610
4611
|
this._autoCreateNativeView = autoCreateNativeView;
|
|
4611
|
-
this._annotationProvider = annotationProvider !== null && annotationProvider !==
|
|
4612
|
-
this._highlightProvider = highlightProvider !== null && highlightProvider !==
|
|
4613
|
-
this.
|
|
4612
|
+
this._annotationProvider = annotationProvider !== null && annotationProvider !== void 0 ? annotationProvider : null;
|
|
4613
|
+
this._highlightProvider = highlightProvider !== null && highlightProvider !== void 0 ? highlightProvider : null;
|
|
4614
|
+
this._barcodeArViewUiListener = uiListener !== null && uiListener !== void 0 ? uiListener : null;
|
|
4614
4615
|
this.nativeView = nativeView;
|
|
4615
|
-
this.controller =
|
|
4616
|
+
this.controller = BarcodeArViewController.forBarcodeArView(this._barcodeAr, this, this._autoCreateNativeView);
|
|
4616
4617
|
}
|
|
4617
4618
|
dispose() {
|
|
4618
4619
|
this.controller.dispose();
|
|
4619
|
-
this.
|
|
4620
|
+
this._barcodeAr.unsubscribeNativeListeners();
|
|
4620
4621
|
}
|
|
4621
4622
|
updateNative() {
|
|
4622
4623
|
return this.controller.update();
|
|
4623
4624
|
}
|
|
4624
|
-
get
|
|
4625
|
-
return this.
|
|
4625
|
+
get barcodeArViewUiListener() {
|
|
4626
|
+
return this._barcodeArViewUiListener;
|
|
4626
4627
|
}
|
|
4627
|
-
set
|
|
4628
|
-
this.
|
|
4628
|
+
set barcodeArViewUiListener(value) {
|
|
4629
|
+
this._barcodeArViewUiListener = value;
|
|
4629
4630
|
this.controller.setUiListener(value);
|
|
4630
4631
|
}
|
|
4631
4632
|
get annotationProvider() {
|
|
@@ -4719,7 +4720,7 @@ class BaseBarcodeCheckView extends DefaultSerializeable {
|
|
|
4719
4720
|
toJSON() {
|
|
4720
4721
|
const json = {
|
|
4721
4722
|
View: {
|
|
4722
|
-
|
|
4723
|
+
barcodeArViewSettings: this._barcodeArViewSettings,
|
|
4723
4724
|
cameraSettings: this._cameraSettings,
|
|
4724
4725
|
shouldShowMacroControl: this._shouldShowMacroControl,
|
|
4725
4726
|
macroModeControlPosition: this._macroModeControlPosition,
|
|
@@ -4728,82 +4729,82 @@ class BaseBarcodeCheckView extends DefaultSerializeable {
|
|
|
4728
4729
|
shouldShowZoomControl: this._shouldShowZoomControl,
|
|
4729
4730
|
zoomControlPosition: this._zoomControlPosition,
|
|
4730
4731
|
annotationProvider: this._annotationProvider,
|
|
4731
|
-
|
|
4732
|
+
barcodeArViewUiListener: this._barcodeArViewUiListener,
|
|
4732
4733
|
highlightProvider: this._highlightProvider,
|
|
4733
4734
|
isStarted: this._isStarted,
|
|
4734
|
-
hasUiListener: this.
|
|
4735
|
+
hasUiListener: this._barcodeArViewUiListener != null,
|
|
4735
4736
|
hasHighlightProvider: this._highlightProvider != null,
|
|
4736
4737
|
hasAnnotationProvider: this._annotationProvider != null,
|
|
4737
4738
|
},
|
|
4738
|
-
|
|
4739
|
+
BarcodeAr: this._barcodeAr.toJSON(),
|
|
4739
4740
|
};
|
|
4740
4741
|
return json;
|
|
4741
4742
|
}
|
|
4742
4743
|
}
|
|
4743
4744
|
__decorate([
|
|
4744
4745
|
ignoreFromSerialization
|
|
4745
|
-
],
|
|
4746
|
+
], BaseBarcodeArView.prototype, "_autoCreateNativeView", void 0);
|
|
4746
4747
|
__decorate([
|
|
4747
4748
|
ignoreFromSerialization
|
|
4748
|
-
],
|
|
4749
|
+
], BaseBarcodeArView.prototype, "_annotationProvider", void 0);
|
|
4749
4750
|
__decorate([
|
|
4750
4751
|
ignoreFromSerialization
|
|
4751
|
-
],
|
|
4752
|
+
], BaseBarcodeArView.prototype, "_barcodeArViewUiListener", void 0);
|
|
4752
4753
|
__decorate([
|
|
4753
4754
|
ignoreFromSerialization
|
|
4754
|
-
],
|
|
4755
|
+
], BaseBarcodeArView.prototype, "_highlightProvider", void 0);
|
|
4755
4756
|
__decorate([
|
|
4756
4757
|
ignoreFromSerialization
|
|
4757
|
-
],
|
|
4758
|
+
], BaseBarcodeArView.prototype, "nativeView", void 0);
|
|
4758
4759
|
__decorate([
|
|
4759
|
-
nameForSerialization('
|
|
4760
|
-
],
|
|
4760
|
+
nameForSerialization('barcodeAr')
|
|
4761
|
+
], BaseBarcodeArView.prototype, "_barcodeAr", void 0);
|
|
4761
4762
|
__decorate([
|
|
4762
4763
|
nameForSerialization('isStarted')
|
|
4763
|
-
],
|
|
4764
|
+
], BaseBarcodeArView.prototype, "_isStarted", void 0);
|
|
4764
4765
|
__decorate([
|
|
4765
4766
|
nameForSerialization('viewSettings')
|
|
4766
|
-
],
|
|
4767
|
+
], BaseBarcodeArView.prototype, "_barcodeArViewSettings", void 0);
|
|
4767
4768
|
__decorate([
|
|
4768
4769
|
nameForSerialization('cameraSettings')
|
|
4769
|
-
],
|
|
4770
|
+
], BaseBarcodeArView.prototype, "_cameraSettings", void 0);
|
|
4770
4771
|
__decorate([
|
|
4771
4772
|
nameForSerialization('dataCaptureContext')
|
|
4772
|
-
],
|
|
4773
|
+
], BaseBarcodeArView.prototype, "_dataCaptureContext", void 0);
|
|
4773
4774
|
__decorate([
|
|
4774
4775
|
nameForSerialization('shouldShowMacroControl')
|
|
4775
|
-
],
|
|
4776
|
+
], BaseBarcodeArView.prototype, "_shouldShowMacroControl", void 0);
|
|
4776
4777
|
__decorate([
|
|
4777
4778
|
nameForSerialization('macroModeControlPosition')
|
|
4778
|
-
],
|
|
4779
|
+
], BaseBarcodeArView.prototype, "_macroModeControlPosition", void 0);
|
|
4779
4780
|
__decorate([
|
|
4780
4781
|
nameForSerialization('shouldShowTorchControl')
|
|
4781
|
-
],
|
|
4782
|
+
], BaseBarcodeArView.prototype, "_shouldShowTorchControl", void 0);
|
|
4782
4783
|
__decorate([
|
|
4783
4784
|
nameForSerialization('torchControlPosition')
|
|
4784
|
-
],
|
|
4785
|
+
], BaseBarcodeArView.prototype, "_torchControlPosition", void 0);
|
|
4785
4786
|
__decorate([
|
|
4786
4787
|
nameForSerialization('shouldShowZoomControl')
|
|
4787
|
-
],
|
|
4788
|
+
], BaseBarcodeArView.prototype, "_shouldShowZoomControl", void 0);
|
|
4788
4789
|
__decorate([
|
|
4789
4790
|
nameForSerialization('zoomControlPosition')
|
|
4790
|
-
],
|
|
4791
|
+
], BaseBarcodeArView.prototype, "_zoomControlPosition", void 0);
|
|
4791
4792
|
__decorate([
|
|
4792
4793
|
ignoreFromSerialization
|
|
4793
|
-
],
|
|
4794
|
+
], BaseBarcodeArView, "barcodeArDefaults", null);
|
|
4794
4795
|
|
|
4795
|
-
class
|
|
4796
|
-
static get
|
|
4797
|
-
return
|
|
4796
|
+
class BarcodeArViewSettings extends DefaultSerializeable {
|
|
4797
|
+
static get barcodeArDefaults() {
|
|
4798
|
+
return getBarcodeArDefaults();
|
|
4798
4799
|
}
|
|
4799
4800
|
constructor() {
|
|
4800
4801
|
super();
|
|
4801
|
-
this._soundEnabled =
|
|
4802
|
-
.
|
|
4803
|
-
this._hapticEnabled =
|
|
4804
|
-
.
|
|
4805
|
-
this._defaultCameraPosition =
|
|
4806
|
-
.
|
|
4802
|
+
this._soundEnabled = BarcodeArViewSettings
|
|
4803
|
+
.barcodeArDefaults.BarcodeArView.defaultSoundEnabled;
|
|
4804
|
+
this._hapticEnabled = BarcodeArViewSettings
|
|
4805
|
+
.barcodeArDefaults.BarcodeArView.defaultHapticsEnabled;
|
|
4806
|
+
this._defaultCameraPosition = BarcodeArViewSettings
|
|
4807
|
+
.barcodeArDefaults.BarcodeArView.defaultCameraPosition;
|
|
4807
4808
|
}
|
|
4808
4809
|
get soundEnabled() {
|
|
4809
4810
|
return this._soundEnabled;
|
|
@@ -4826,43 +4827,43 @@ class BarcodeCheckViewSettings extends DefaultSerializeable {
|
|
|
4826
4827
|
}
|
|
4827
4828
|
__decorate([
|
|
4828
4829
|
nameForSerialization("soundEnabled")
|
|
4829
|
-
],
|
|
4830
|
+
], BarcodeArViewSettings.prototype, "_soundEnabled", void 0);
|
|
4830
4831
|
__decorate([
|
|
4831
4832
|
nameForSerialization("hapticEnabled")
|
|
4832
|
-
],
|
|
4833
|
+
], BarcodeArViewSettings.prototype, "_hapticEnabled", void 0);
|
|
4833
4834
|
__decorate([
|
|
4834
4835
|
nameForSerialization("defaultCameraPosition")
|
|
4835
|
-
],
|
|
4836
|
-
__decorate([
|
|
4837
|
-
ignoreFromSerialization
|
|
4838
|
-
],
|
|
4839
|
-
|
|
4840
|
-
var
|
|
4841
|
-
(function (
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
})(
|
|
4845
|
-
|
|
4846
|
-
var
|
|
4847
|
-
(function (
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
})(
|
|
4851
|
-
|
|
4852
|
-
var
|
|
4853
|
-
(function (
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
})(
|
|
4859
|
-
|
|
4860
|
-
var
|
|
4861
|
-
(function (
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
})(
|
|
4836
|
+
], BarcodeArViewSettings.prototype, "_defaultCameraPosition", void 0);
|
|
4837
|
+
__decorate([
|
|
4838
|
+
ignoreFromSerialization
|
|
4839
|
+
], BarcodeArViewSettings, "barcodeArDefaults", null);
|
|
4840
|
+
|
|
4841
|
+
var BarcodeArAnnotationTrigger;
|
|
4842
|
+
(function (BarcodeArAnnotationTrigger) {
|
|
4843
|
+
BarcodeArAnnotationTrigger["HighlightTap"] = "highlightTap";
|
|
4844
|
+
BarcodeArAnnotationTrigger["HighlightTapAndBarcodeScan"] = "highlightTapAndBarcodeScan";
|
|
4845
|
+
})(BarcodeArAnnotationTrigger || (BarcodeArAnnotationTrigger = {}));
|
|
4846
|
+
|
|
4847
|
+
var BarcodeArCircleHighlightPreset;
|
|
4848
|
+
(function (BarcodeArCircleHighlightPreset) {
|
|
4849
|
+
BarcodeArCircleHighlightPreset["Dot"] = "dot";
|
|
4850
|
+
BarcodeArCircleHighlightPreset["Icon"] = "icon";
|
|
4851
|
+
})(BarcodeArCircleHighlightPreset || (BarcodeArCircleHighlightPreset = {}));
|
|
4852
|
+
|
|
4853
|
+
var BarcodeArInfoAnnotationAnchor;
|
|
4854
|
+
(function (BarcodeArInfoAnnotationAnchor) {
|
|
4855
|
+
BarcodeArInfoAnnotationAnchor["Top"] = "top";
|
|
4856
|
+
BarcodeArInfoAnnotationAnchor["Bottom"] = "bottom";
|
|
4857
|
+
BarcodeArInfoAnnotationAnchor["Left"] = "left";
|
|
4858
|
+
BarcodeArInfoAnnotationAnchor["Right"] = "right";
|
|
4859
|
+
})(BarcodeArInfoAnnotationAnchor || (BarcodeArInfoAnnotationAnchor = {}));
|
|
4860
|
+
|
|
4861
|
+
var BarcodeArInfoAnnotationWidthPreset;
|
|
4862
|
+
(function (BarcodeArInfoAnnotationWidthPreset) {
|
|
4863
|
+
BarcodeArInfoAnnotationWidthPreset["Small"] = "small";
|
|
4864
|
+
BarcodeArInfoAnnotationWidthPreset["Medium"] = "medium";
|
|
4865
|
+
BarcodeArInfoAnnotationWidthPreset["Large"] = "large";
|
|
4866
|
+
})(BarcodeArInfoAnnotationWidthPreset || (BarcodeArInfoAnnotationWidthPreset = {}));
|
|
4866
4867
|
|
|
4867
4868
|
class BarcodeSelectionFeedback extends DefaultSerializeable {
|
|
4868
4869
|
constructor() {
|
|
@@ -4885,15 +4886,15 @@ class BarcodeSelectionFeedback extends DefaultSerializeable {
|
|
|
4885
4886
|
}
|
|
4886
4887
|
updateFeedback() {
|
|
4887
4888
|
var _a;
|
|
4888
|
-
(_a = this.controller) === null || _a ===
|
|
4889
|
+
(_a = this.controller) === null || _a === void 0 ? void 0 : _a.updateFeedback(JSON.stringify(this.toJSON()));
|
|
4889
4890
|
}
|
|
4890
4891
|
}
|
|
4891
4892
|
__decorate([
|
|
4892
4893
|
ignoreFromSerialization
|
|
4893
|
-
], BarcodeSelectionFeedback.prototype, "controller",
|
|
4894
|
+
], BarcodeSelectionFeedback.prototype, "controller", void 0);
|
|
4894
4895
|
__decorate([
|
|
4895
4896
|
nameForSerialization('selection')
|
|
4896
|
-
], BarcodeSelectionFeedback.prototype, "_selection",
|
|
4897
|
+
], BarcodeSelectionFeedback.prototype, "_selection", void 0);
|
|
4897
4898
|
__decorate([
|
|
4898
4899
|
ignoreFromSerialization
|
|
4899
4900
|
], BarcodeSelectionFeedback, "barcodeSelectionDefaults", null);
|
|
@@ -4922,7 +4923,7 @@ class BarcodeSelectionSession {
|
|
|
4922
4923
|
session._newlyUnselectedBarcodes = sessionJson.newlyUnselectedBarcodes
|
|
4923
4924
|
.map(Barcode.fromJSON);
|
|
4924
4925
|
session._frameSequenceID = sessionJson.frameSequenceId;
|
|
4925
|
-
session.frameId = (_a = json.frameId) !== null && _a !==
|
|
4926
|
+
session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
|
|
4926
4927
|
return session;
|
|
4927
4928
|
}
|
|
4928
4929
|
getCount(barcode) {
|
|
@@ -4949,7 +4950,7 @@ class BarcodeSelectionListenerController extends BaseNewController {
|
|
|
4949
4950
|
super('BarcodeSelectionListenerProxy');
|
|
4950
4951
|
}
|
|
4951
4952
|
getCount(barcode) {
|
|
4952
|
-
return __awaiter(this,
|
|
4953
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4953
4954
|
const result = yield this._proxy.$getCountForBarcodeInBarcodeSelectionSession({ selectionIdentifier: barcode.selectionIdentifier });
|
|
4954
4955
|
if (result == null) {
|
|
4955
4956
|
return 0;
|
|
@@ -4962,7 +4963,7 @@ class BarcodeSelectionListenerController extends BaseNewController {
|
|
|
4962
4963
|
}
|
|
4963
4964
|
subscribeListener() {
|
|
4964
4965
|
this._proxy.$registerBarcodeSelectionListenerForEvents();
|
|
4965
|
-
this._proxy.on$didUpdateSelection = (ev) => __awaiter(this,
|
|
4966
|
+
this._proxy.on$didUpdateSelection = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
4966
4967
|
const payload = EventDataParser.parse(ev.data);
|
|
4967
4968
|
if (payload === null) {
|
|
4968
4969
|
console.error('BarcodeSelectionListenerController didUpdateSelection payload is null');
|
|
@@ -4973,7 +4974,7 @@ class BarcodeSelectionListenerController extends BaseNewController {
|
|
|
4973
4974
|
yield this.notifyListenersOfDidUpdateSelection(session);
|
|
4974
4975
|
this._proxy.$finishBarcodeSelectionDidSelect({ enabled: this.barcodeSelection.isEnabled });
|
|
4975
4976
|
});
|
|
4976
|
-
this._proxy.on$didUpdateSession = (ev) => __awaiter(this,
|
|
4977
|
+
this._proxy.on$didUpdateSession = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
4977
4978
|
const payload = EventDataParser.parse(ev.data);
|
|
4978
4979
|
if (payload === null) {
|
|
4979
4980
|
console.error('BarcodeSelectionListenerController didUpdateSession payload is null');
|
|
@@ -4990,7 +4991,7 @@ class BarcodeSelectionListenerController extends BaseNewController {
|
|
|
4990
4991
|
this._proxy.dispose();
|
|
4991
4992
|
}
|
|
4992
4993
|
notifyListenersOfDidUpdateSelection(session) {
|
|
4993
|
-
return __awaiter(this,
|
|
4994
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4994
4995
|
const mode = this.barcodeSelection;
|
|
4995
4996
|
for (const listener of mode.listeners) {
|
|
4996
4997
|
if (listener.didUpdateSelection) {
|
|
@@ -5000,7 +5001,7 @@ class BarcodeSelectionListenerController extends BaseNewController {
|
|
|
5000
5001
|
});
|
|
5001
5002
|
}
|
|
5002
5003
|
notifyListenersOfDidUpdateSession(session) {
|
|
5003
|
-
return __awaiter(this,
|
|
5004
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5004
5005
|
const mode = this.barcodeSelection;
|
|
5005
5006
|
for (const listener of mode.listeners) {
|
|
5006
5007
|
if (listener.didUpdateSession) {
|
|
@@ -5162,25 +5163,25 @@ class BarcodeSelection extends DefaultSerializeable {
|
|
|
5162
5163
|
}
|
|
5163
5164
|
__decorate([
|
|
5164
5165
|
ignoreFromSerialization
|
|
5165
|
-
], BarcodeSelection.prototype, "_isEnabled",
|
|
5166
|
+
], BarcodeSelection.prototype, "_isEnabled", void 0);
|
|
5166
5167
|
__decorate([
|
|
5167
5168
|
nameForSerialization('feedback')
|
|
5168
|
-
], BarcodeSelection.prototype, "_feedback",
|
|
5169
|
+
], BarcodeSelection.prototype, "_feedback", void 0);
|
|
5169
5170
|
__decorate([
|
|
5170
5171
|
nameForSerialization('pointOfInterest')
|
|
5171
|
-
], BarcodeSelection.prototype, "_pointOfInterest",
|
|
5172
|
+
], BarcodeSelection.prototype, "_pointOfInterest", void 0);
|
|
5172
5173
|
__decorate([
|
|
5173
5174
|
ignoreFromSerialization
|
|
5174
|
-
], BarcodeSelection.prototype, "privateContext",
|
|
5175
|
+
], BarcodeSelection.prototype, "privateContext", void 0);
|
|
5175
5176
|
__decorate([
|
|
5176
5177
|
ignoreFromSerialization
|
|
5177
|
-
], BarcodeSelection.prototype, "listeners",
|
|
5178
|
+
], BarcodeSelection.prototype, "listeners", void 0);
|
|
5178
5179
|
__decorate([
|
|
5179
5180
|
ignoreFromSerialization
|
|
5180
|
-
], BarcodeSelection.prototype, "listenerController",
|
|
5181
|
+
], BarcodeSelection.prototype, "listenerController", void 0);
|
|
5181
5182
|
__decorate([
|
|
5182
5183
|
ignoreFromSerialization
|
|
5183
|
-
], BarcodeSelection.prototype, "modeController",
|
|
5184
|
+
], BarcodeSelection.prototype, "modeController", void 0);
|
|
5184
5185
|
__decorate([
|
|
5185
5186
|
ignoreFromSerialization
|
|
5186
5187
|
], BarcodeSelection, "barcodeSelectionDefaults", null);
|
|
@@ -5225,7 +5226,7 @@ class BarcodeSelectionOverlayController extends BaseNewController {
|
|
|
5225
5226
|
super('BarcodeSelectionOverlayProxy');
|
|
5226
5227
|
}
|
|
5227
5228
|
setTextForAimToSelectAutoHint(text) {
|
|
5228
|
-
return __awaiter(this,
|
|
5229
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5229
5230
|
return yield this._proxy.$setTextForAimToSelectAutoHint({ text });
|
|
5230
5231
|
});
|
|
5231
5232
|
}
|
|
@@ -5380,37 +5381,37 @@ class BarcodeSelectionBasicOverlay extends DefaultSerializeable {
|
|
|
5380
5381
|
}
|
|
5381
5382
|
__decorate([
|
|
5382
5383
|
ignoreFromSerialization
|
|
5383
|
-
], BarcodeSelectionBasicOverlay.prototype, "barcodeSelection",
|
|
5384
|
+
], BarcodeSelectionBasicOverlay.prototype, "barcodeSelection", void 0);
|
|
5384
5385
|
__decorate([
|
|
5385
5386
|
ignoreFromSerialization
|
|
5386
|
-
], BarcodeSelectionBasicOverlay.prototype, "overlayController",
|
|
5387
|
+
], BarcodeSelectionBasicOverlay.prototype, "overlayController", void 0);
|
|
5387
5388
|
__decorate([
|
|
5388
5389
|
ignoreFromSerialization
|
|
5389
|
-
], BarcodeSelectionBasicOverlay.prototype, "view",
|
|
5390
|
+
], BarcodeSelectionBasicOverlay.prototype, "view", void 0);
|
|
5390
5391
|
__decorate([
|
|
5391
5392
|
nameForSerialization('shouldShowScanAreaGuides')
|
|
5392
|
-
], BarcodeSelectionBasicOverlay.prototype, "_shouldShowScanAreaGuides",
|
|
5393
|
+
], BarcodeSelectionBasicOverlay.prototype, "_shouldShowScanAreaGuides", void 0);
|
|
5393
5394
|
__decorate([
|
|
5394
5395
|
nameForSerialization('shouldShowHints')
|
|
5395
|
-
], BarcodeSelectionBasicOverlay.prototype, "_shouldShowHints",
|
|
5396
|
+
], BarcodeSelectionBasicOverlay.prototype, "_shouldShowHints", void 0);
|
|
5396
5397
|
__decorate([
|
|
5397
5398
|
nameForSerialization('viewfinder')
|
|
5398
|
-
], BarcodeSelectionBasicOverlay.prototype, "_viewfinder",
|
|
5399
|
+
], BarcodeSelectionBasicOverlay.prototype, "_viewfinder", void 0);
|
|
5399
5400
|
__decorate([
|
|
5400
5401
|
nameForSerialization('style')
|
|
5401
|
-
], BarcodeSelectionBasicOverlay.prototype, "_style",
|
|
5402
|
+
], BarcodeSelectionBasicOverlay.prototype, "_style", void 0);
|
|
5402
5403
|
__decorate([
|
|
5403
5404
|
nameForSerialization('trackedBrush')
|
|
5404
|
-
], BarcodeSelectionBasicOverlay.prototype, "_trackedBrush",
|
|
5405
|
+
], BarcodeSelectionBasicOverlay.prototype, "_trackedBrush", void 0);
|
|
5405
5406
|
__decorate([
|
|
5406
5407
|
nameForSerialization('aimedBrush')
|
|
5407
|
-
], BarcodeSelectionBasicOverlay.prototype, "_aimedBrush",
|
|
5408
|
+
], BarcodeSelectionBasicOverlay.prototype, "_aimedBrush", void 0);
|
|
5408
5409
|
__decorate([
|
|
5409
5410
|
nameForSerialization('selectedBrush')
|
|
5410
|
-
], BarcodeSelectionBasicOverlay.prototype, "_selectedBrush",
|
|
5411
|
+
], BarcodeSelectionBasicOverlay.prototype, "_selectedBrush", void 0);
|
|
5411
5412
|
__decorate([
|
|
5412
5413
|
nameForSerialization('selectingBrush')
|
|
5413
|
-
], BarcodeSelectionBasicOverlay.prototype, "_selectingBrush",
|
|
5414
|
+
], BarcodeSelectionBasicOverlay.prototype, "_selectingBrush", void 0);
|
|
5414
5415
|
__decorate([
|
|
5415
5416
|
ignoreFromSerialization
|
|
5416
5417
|
], BarcodeSelectionBasicOverlay, "barcodeSelectionDefaults", null);
|
|
@@ -5556,7 +5557,7 @@ class BarcodeSelectionSettings extends DefaultSerializeable {
|
|
|
5556
5557
|
}
|
|
5557
5558
|
__decorate([
|
|
5558
5559
|
nameForSerialization('singleBarcodeAutoDetectionEnabled')
|
|
5559
|
-
], BarcodeSelectionSettings.prototype, "singleBarcodeAutoDetection",
|
|
5560
|
+
], BarcodeSelectionSettings.prototype, "singleBarcodeAutoDetection", void 0);
|
|
5560
5561
|
__decorate([
|
|
5561
5562
|
ignoreFromSerialization
|
|
5562
5563
|
], BarcodeSelectionSettings, "barcodeSelectionDefaults", null);
|
|
@@ -5617,7 +5618,7 @@ class BarcodeBatchSession {
|
|
|
5617
5618
|
.fromJSON(sessionJson.trackedBarcodes[identifier], sessionJson.frameSequenceId);
|
|
5618
5619
|
return trackedBarcodes;
|
|
5619
5620
|
}, {});
|
|
5620
|
-
session.frameId = (_a = json.frameId) !== null && _a !==
|
|
5621
|
+
session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
|
|
5621
5622
|
return session;
|
|
5622
5623
|
}
|
|
5623
5624
|
reset() {
|
|
@@ -5649,11 +5650,11 @@ class BarcodeBatchListenerController {
|
|
|
5649
5650
|
subscribeListener() {
|
|
5650
5651
|
var _a, _b;
|
|
5651
5652
|
this._proxy.registerListenerForEvents();
|
|
5652
|
-
(_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b ===
|
|
5653
|
+
(_b = (_a = this._proxy).subscribeDidUpdateSession) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
5653
5654
|
this.eventEmitter.on(BarcodeBatchListenerEvents.inCallback, (value) => {
|
|
5654
5655
|
this.barcodeBatch.isInListenerCallback = value;
|
|
5655
5656
|
});
|
|
5656
|
-
this.eventEmitter.on(BarcodeBatchListenerEvents.didUpdateSession, (data) => __awaiter(this,
|
|
5657
|
+
this.eventEmitter.on(BarcodeBatchListenerEvents.didUpdateSession, (data) => __awaiter(this, void 0, void 0, function* () {
|
|
5657
5658
|
const payload = EventDataParser.parse(data);
|
|
5658
5659
|
if (payload === null) {
|
|
5659
5660
|
console.error('BarcodeBatchListenerController didUpdateSession payload is null');
|
|
@@ -5679,7 +5680,7 @@ class BarcodeBatchListenerController {
|
|
|
5679
5680
|
return this._proxy.applyBarcodeBatchModeSettings(JSON.stringify(newSettings.toJSON()));
|
|
5680
5681
|
}
|
|
5681
5682
|
notifyListenersOfDidUpdateSession(session) {
|
|
5682
|
-
return __awaiter(this,
|
|
5683
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5683
5684
|
const mode = this.barcodeBatch;
|
|
5684
5685
|
mode.isInListenerCallback = true;
|
|
5685
5686
|
for (const listener of mode.listeners) {
|
|
@@ -5756,24 +5757,24 @@ class BarcodeBatch extends DefaultSerializeable {
|
|
|
5756
5757
|
}
|
|
5757
5758
|
reset() {
|
|
5758
5759
|
var _a, _b;
|
|
5759
|
-
return (_b = (_a = this.listenerController) === null || _a ===
|
|
5760
|
+
return (_b = (_a = this.listenerController) === null || _a === void 0 ? void 0 : _a.resetSession()) !== null && _b !== void 0 ? _b : Promise.resolve();
|
|
5760
5761
|
}
|
|
5761
5762
|
}
|
|
5762
5763
|
__decorate([
|
|
5763
5764
|
ignoreFromSerialization
|
|
5764
|
-
], BarcodeBatch.prototype, "_isEnabled",
|
|
5765
|
+
], BarcodeBatch.prototype, "_isEnabled", void 0);
|
|
5765
5766
|
__decorate([
|
|
5766
5767
|
ignoreFromSerialization
|
|
5767
|
-
], BarcodeBatch.prototype, "privateContext",
|
|
5768
|
+
], BarcodeBatch.prototype, "privateContext", void 0);
|
|
5768
5769
|
__decorate([
|
|
5769
5770
|
ignoreFromSerialization
|
|
5770
|
-
], BarcodeBatch.prototype, "listeners",
|
|
5771
|
+
], BarcodeBatch.prototype, "listeners", void 0);
|
|
5771
5772
|
__decorate([
|
|
5772
5773
|
ignoreFromSerialization
|
|
5773
|
-
], BarcodeBatch.prototype, "listenerController",
|
|
5774
|
+
], BarcodeBatch.prototype, "listenerController", void 0);
|
|
5774
5775
|
__decorate([
|
|
5775
5776
|
ignoreFromSerialization
|
|
5776
|
-
], BarcodeBatch.prototype, "isInListenerCallback",
|
|
5777
|
+
], BarcodeBatch.prototype, "isInListenerCallback", void 0);
|
|
5777
5778
|
__decorate([
|
|
5778
5779
|
ignoreFromSerialization
|
|
5779
5780
|
], BarcodeBatch, "barcodeBatchDefaults", null);
|
|
@@ -5801,7 +5802,7 @@ class BarcodeBatchAdvancedOverlayController {
|
|
|
5801
5802
|
return this._proxy.setBrushForTrackedBarcode(JSON.stringify(brush.toJSON()), trackedBarcode.sessionFrameSequenceID, trackedBarcode.identifier);
|
|
5802
5803
|
}
|
|
5803
5804
|
setViewForTrackedBarcode(view, trackedBarcode) {
|
|
5804
|
-
return __awaiter(this,
|
|
5805
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5805
5806
|
const awitedView = yield view;
|
|
5806
5807
|
const viewJson = this._proxy.getJSONStringForView(awitedView);
|
|
5807
5808
|
return this._proxy.setViewForTrackedBarcode(viewJson, trackedBarcode.identifier, trackedBarcode.sessionFrameSequenceID);
|
|
@@ -5822,11 +5823,11 @@ class BarcodeBatchAdvancedOverlayController {
|
|
|
5822
5823
|
subscribeListener() {
|
|
5823
5824
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5824
5825
|
this._proxy.registerListenerForAdvancedOverlayEvents();
|
|
5825
|
-
(_b = (_a = this._proxy).subscribeViewForTrackedBarcode) === null || _b ===
|
|
5826
|
-
(_d = (_c = this._proxy).subscribeAnchorForTrackedBarcode) === null || _d ===
|
|
5827
|
-
(_f = (_e = this._proxy).subscribeOffsetForTrackedBarcode) === null || _f ===
|
|
5828
|
-
(_h = (_g = this._proxy).subscribeDidTapViewForTrackedBarcode) === null || _h ===
|
|
5829
|
-
this.eventEmitter.on(BarcodeBatchAdvancedOverlayListenerEvents.viewForTrackedBarcode, (data) => __awaiter(this,
|
|
5826
|
+
(_b = (_a = this._proxy).subscribeViewForTrackedBarcode) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
5827
|
+
(_d = (_c = this._proxy).subscribeAnchorForTrackedBarcode) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
5828
|
+
(_f = (_e = this._proxy).subscribeOffsetForTrackedBarcode) === null || _f === void 0 ? void 0 : _f.call(_e);
|
|
5829
|
+
(_h = (_g = this._proxy).subscribeDidTapViewForTrackedBarcode) === null || _h === void 0 ? void 0 : _h.call(_g);
|
|
5830
|
+
this.eventEmitter.on(BarcodeBatchAdvancedOverlayListenerEvents.viewForTrackedBarcode, (data) => __awaiter(this, void 0, void 0, function* () {
|
|
5830
5831
|
const payload = EventDataParser.parse(data);
|
|
5831
5832
|
if (payload === null) {
|
|
5832
5833
|
console.error('BarcodeBatchAdvancedOverlayController viewForTrackedBarcode payload is null');
|
|
@@ -5876,7 +5877,7 @@ class BarcodeBatchAdvancedOverlayController {
|
|
|
5876
5877
|
}
|
|
5877
5878
|
const trackedBarcode = TrackedBarcode
|
|
5878
5879
|
.fromJSON(JSON.parse(payload.trackedBarcode));
|
|
5879
|
-
(_b = (_a = this.overlay.listener) === null || _a ===
|
|
5880
|
+
(_b = (_a = this.overlay.listener) === null || _a === void 0 ? void 0 : _a.didTapViewForTrackedBarcode) === null || _b === void 0 ? void 0 : _b.call(_a, this.overlay, trackedBarcode);
|
|
5880
5881
|
});
|
|
5881
5882
|
}
|
|
5882
5883
|
unsubscribeListener() {
|
|
@@ -5916,8 +5917,8 @@ class BarcodeBatchBasicOverlayController {
|
|
|
5916
5917
|
subscribeListener() {
|
|
5917
5918
|
var _a, _b, _c, _d;
|
|
5918
5919
|
this._proxy.registerListenerForBasicOverlayEvents();
|
|
5919
|
-
(_b = (_a = this._proxy).subscribeBrushForTrackedBarcode) === null || _b ===
|
|
5920
|
-
(_d = (_c = this._proxy).subscribeDidTapTrackedBarcode) === null || _d ===
|
|
5920
|
+
(_b = (_a = this._proxy).subscribeBrushForTrackedBarcode) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
5921
|
+
(_d = (_c = this._proxy).subscribeDidTapTrackedBarcode) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
5921
5922
|
this.eventEmitter.on(BarcodeBatchBasicOverlayListenerEvents.brushForTrackedBarcode, (data) => {
|
|
5922
5923
|
const payload = EventDataParser.parse(data);
|
|
5923
5924
|
if (payload === null) {
|
|
@@ -6022,28 +6023,28 @@ class BarcodeBatchBasicOverlay extends DefaultSerializeable {
|
|
|
6022
6023
|
}
|
|
6023
6024
|
__decorate([
|
|
6024
6025
|
ignoreFromSerialization
|
|
6025
|
-
], BarcodeBatchBasicOverlay.prototype, "barcodeBatch",
|
|
6026
|
+
], BarcodeBatchBasicOverlay.prototype, "barcodeBatch", void 0);
|
|
6026
6027
|
__decorate([
|
|
6027
6028
|
ignoreFromSerialization
|
|
6028
|
-
], BarcodeBatchBasicOverlay.prototype, "_view",
|
|
6029
|
+
], BarcodeBatchBasicOverlay.prototype, "_view", void 0);
|
|
6029
6030
|
__decorate([
|
|
6030
6031
|
nameForSerialization('style')
|
|
6031
|
-
], BarcodeBatchBasicOverlay.prototype, "_style",
|
|
6032
|
+
], BarcodeBatchBasicOverlay.prototype, "_style", void 0);
|
|
6032
6033
|
__decorate([
|
|
6033
6034
|
ignoreFromSerialization
|
|
6034
6035
|
], BarcodeBatchBasicOverlay.prototype, "defaultBrush", null);
|
|
6035
6036
|
__decorate([
|
|
6036
6037
|
nameForSerialization('defaultBrush')
|
|
6037
|
-
], BarcodeBatchBasicOverlay.prototype, "_brush",
|
|
6038
|
+
], BarcodeBatchBasicOverlay.prototype, "_brush", void 0);
|
|
6038
6039
|
__decorate([
|
|
6039
6040
|
nameForSerialization('shouldShowScanAreaGuides')
|
|
6040
|
-
], BarcodeBatchBasicOverlay.prototype, "_shouldShowScanAreaGuides",
|
|
6041
|
+
], BarcodeBatchBasicOverlay.prototype, "_shouldShowScanAreaGuides", void 0);
|
|
6041
6042
|
__decorate([
|
|
6042
6043
|
ignoreFromSerialization
|
|
6043
|
-
], BarcodeBatchBasicOverlay.prototype, "listener",
|
|
6044
|
+
], BarcodeBatchBasicOverlay.prototype, "listener", void 0);
|
|
6044
6045
|
__decorate([
|
|
6045
6046
|
ignoreFromSerialization
|
|
6046
|
-
], BarcodeBatchBasicOverlay.prototype, "controller",
|
|
6047
|
+
], BarcodeBatchBasicOverlay.prototype, "controller", void 0);
|
|
6047
6048
|
__decorate([
|
|
6048
6049
|
ignoreFromSerialization
|
|
6049
6050
|
], BarcodeBatchBasicOverlay, "barcodeBatchDefaults", null);
|
|
@@ -6098,7 +6099,7 @@ class BarcodeBatchSettings extends DefaultSerializeable {
|
|
|
6098
6099
|
}
|
|
6099
6100
|
__decorate([
|
|
6100
6101
|
nameForSerialization('arucoDictionary')
|
|
6101
|
-
], BarcodeBatchSettings.prototype, "_arucoDictionary",
|
|
6102
|
+
], BarcodeBatchSettings.prototype, "_arucoDictionary", void 0);
|
|
6102
6103
|
__decorate([
|
|
6103
6104
|
ignoreFromSerialization
|
|
6104
6105
|
], BarcodeBatchSettings, "barcodeDefaults", null);
|
|
@@ -6151,140 +6152,28 @@ class BaseBarcodeBatchAdvancedOverlay extends DefaultSerializeable {
|
|
|
6151
6152
|
}
|
|
6152
6153
|
__decorate([
|
|
6153
6154
|
nameForSerialization('shouldShowScanAreaGuides')
|
|
6154
|
-
], BaseBarcodeBatchAdvancedOverlay.prototype, "_shouldShowScanAreaGuides",
|
|
6155
|
+
], BaseBarcodeBatchAdvancedOverlay.prototype, "_shouldShowScanAreaGuides", void 0);
|
|
6155
6156
|
__decorate([
|
|
6156
6157
|
ignoreFromSerialization
|
|
6157
|
-
], BaseBarcodeBatchAdvancedOverlay.prototype, "barcodeBatch",
|
|
6158
|
+
], BaseBarcodeBatchAdvancedOverlay.prototype, "barcodeBatch", void 0);
|
|
6158
6159
|
__decorate([
|
|
6159
6160
|
ignoreFromSerialization
|
|
6160
|
-
], BaseBarcodeBatchAdvancedOverlay.prototype, "listener",
|
|
6161
|
+
], BaseBarcodeBatchAdvancedOverlay.prototype, "listener", void 0);
|
|
6161
6162
|
__decorate([
|
|
6162
6163
|
ignoreFromSerialization
|
|
6163
|
-
], BaseBarcodeBatchAdvancedOverlay.prototype, "controller",
|
|
6164
|
+
], BaseBarcodeBatchAdvancedOverlay.prototype, "controller", void 0);
|
|
6164
6165
|
__decorate([
|
|
6165
6166
|
ignoreFromSerialization
|
|
6166
|
-
], BaseBarcodeBatchAdvancedOverlay.prototype, "_view",
|
|
6167
|
-
|
|
6168
|
-
class SparkScanSession {
|
|
6169
|
-
static fromJSON(json) {
|
|
6170
|
-
var _a;
|
|
6171
|
-
const sessionJson = JSON.parse(json.session);
|
|
6172
|
-
const session = new SparkScanSession();
|
|
6173
|
-
session._newlyRecognizedBarcode = sessionJson.newlyRecognizedBarcode != null ?
|
|
6174
|
-
Barcode.fromJSON(sessionJson.newlyRecognizedBarcode) :
|
|
6175
|
-
null;
|
|
6176
|
-
session._frameSequenceID = sessionJson.frameSequenceId;
|
|
6177
|
-
session.frameId = (_a = json.frameId) !== null && _a !== undefined ? _a : '';
|
|
6178
|
-
return session;
|
|
6179
|
-
}
|
|
6180
|
-
get newlyRecognizedBarcode() {
|
|
6181
|
-
return this._newlyRecognizedBarcode;
|
|
6182
|
-
}
|
|
6183
|
-
get frameSequenceID() {
|
|
6184
|
-
return this._frameSequenceID;
|
|
6185
|
-
}
|
|
6186
|
-
reset() {
|
|
6187
|
-
return this.listenerController.reset();
|
|
6188
|
-
}
|
|
6189
|
-
}
|
|
6190
|
-
|
|
6191
|
-
var SparkScanListenerEvents;
|
|
6192
|
-
(function (SparkScanListenerEvents) {
|
|
6193
|
-
SparkScanListenerEvents["didUpdateSession"] = "SparkScanListener.didUpdateSession";
|
|
6194
|
-
SparkScanListenerEvents["didScan"] = "SparkScanListener.didScan";
|
|
6195
|
-
})(SparkScanListenerEvents || (SparkScanListenerEvents = {}));
|
|
6196
|
-
class SparkScanListenerController extends BaseNewController {
|
|
6197
|
-
static forSparkScan(sparkScan) {
|
|
6198
|
-
const controller = new SparkScanListenerController();
|
|
6199
|
-
controller.sparkScan = sparkScan;
|
|
6200
|
-
return controller;
|
|
6201
|
-
}
|
|
6202
|
-
constructor() {
|
|
6203
|
-
super('SparkScanListenerProxy');
|
|
6204
|
-
this.hasNativeListenerSubscriptions = false;
|
|
6205
|
-
this.didUpdateSessionListener = (data) => __awaiter(this, undefined, undefined, function* () {
|
|
6206
|
-
const payload = EventDataParser.parse(data);
|
|
6207
|
-
if (payload === null) {
|
|
6208
|
-
console.error('SparkScanListenerController didUpdateSession payload is null');
|
|
6209
|
-
return;
|
|
6210
|
-
}
|
|
6211
|
-
const session = SparkScanSession.fromJSON(payload);
|
|
6212
|
-
yield this.notifyListenersOfDidUpdateSession(session);
|
|
6213
|
-
this._proxy.finishDidUpdateSessionCallback(this.sparkScan.isEnabled);
|
|
6214
|
-
});
|
|
6215
|
-
this.didScanListener = (data) => __awaiter(this, undefined, undefined, function* () {
|
|
6216
|
-
const payload = EventDataParser.parse(data);
|
|
6217
|
-
if (payload === null) {
|
|
6218
|
-
console.error('SparkScanListenerController.subscribeListener: didScan payload is null');
|
|
6219
|
-
return;
|
|
6220
|
-
}
|
|
6221
|
-
const session = SparkScanSession.fromJSON(payload);
|
|
6222
|
-
yield this.notifyListenersOfDidScan(session);
|
|
6223
|
-
this._proxy.finishDidScanCallback(this.sparkScan.isEnabled);
|
|
6224
|
-
});
|
|
6225
|
-
}
|
|
6226
|
-
reset() {
|
|
6227
|
-
return this._proxy.resetSession();
|
|
6228
|
-
}
|
|
6229
|
-
update() {
|
|
6230
|
-
const sparkScanJson = this.sparkScan.toJSON();
|
|
6231
|
-
const json = JSON.stringify(sparkScanJson);
|
|
6232
|
-
return this._proxy.updateMode(json);
|
|
6233
|
-
}
|
|
6234
|
-
subscribeListener() {
|
|
6235
|
-
if (this.hasNativeListenerSubscriptions === false) {
|
|
6236
|
-
this._proxy.registerListenerForEvents();
|
|
6237
|
-
this.hasNativeListenerSubscriptions = true;
|
|
6238
|
-
}
|
|
6239
|
-
this._proxy.subscribeDidScanListener();
|
|
6240
|
-
this._proxy.subscribeDidUpdateSessionListener();
|
|
6241
|
-
this.eventEmitter.on(SparkScanListenerEvents.didUpdateSession, this.didUpdateSessionListener);
|
|
6242
|
-
this.eventEmitter.on(SparkScanListenerEvents.didScan, this.didScanListener);
|
|
6243
|
-
}
|
|
6244
|
-
unsubscribeListener() {
|
|
6245
|
-
if (this.hasNativeListenerSubscriptions === true) {
|
|
6246
|
-
this._proxy.unregisterListenerForEvents();
|
|
6247
|
-
this.hasNativeListenerSubscriptions = false;
|
|
6248
|
-
}
|
|
6249
|
-
this.eventEmitter.off(SparkScanListenerEvents.didUpdateSession, this.didUpdateSessionListener);
|
|
6250
|
-
this.eventEmitter.off(SparkScanListenerEvents.didScan, this.didScanListener);
|
|
6251
|
-
}
|
|
6252
|
-
setModeEnabledState(enabled) {
|
|
6253
|
-
this._proxy.setModeEnabledState(enabled);
|
|
6254
|
-
}
|
|
6255
|
-
notifyListenersOfDidUpdateSession(session) {
|
|
6256
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
6257
|
-
const mode = this.sparkScan;
|
|
6258
|
-
mode.isInListenerCallback = true;
|
|
6259
|
-
for (const listener of mode.listeners) {
|
|
6260
|
-
if (listener.didUpdateSession) {
|
|
6261
|
-
yield listener.didUpdateSession(this.sparkScan, session, () => CameraController.getFrameOrNull(session.frameId));
|
|
6262
|
-
}
|
|
6263
|
-
}
|
|
6264
|
-
mode.isInListenerCallback = false;
|
|
6265
|
-
});
|
|
6266
|
-
}
|
|
6267
|
-
notifyListenersOfDidScan(session) {
|
|
6268
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
6269
|
-
const mode = this.sparkScan;
|
|
6270
|
-
mode.isInListenerCallback = true;
|
|
6271
|
-
for (const listener of mode.listeners) {
|
|
6272
|
-
if (listener.didScan) {
|
|
6273
|
-
yield listener.didScan(this.sparkScan, session, () => CameraController.getFrameOrNull(session.frameId));
|
|
6274
|
-
}
|
|
6275
|
-
}
|
|
6276
|
-
mode.isInListenerCallback = false;
|
|
6277
|
-
});
|
|
6278
|
-
}
|
|
6279
|
-
}
|
|
6167
|
+
], BaseBarcodeBatchAdvancedOverlay.prototype, "_view", void 0);
|
|
6280
6168
|
|
|
6281
6169
|
class SparkScan extends DefaultSerializeable {
|
|
6282
6170
|
get isEnabled() {
|
|
6283
6171
|
return this._isEnabled;
|
|
6284
6172
|
}
|
|
6285
6173
|
set isEnabled(isEnabled) {
|
|
6174
|
+
var _a;
|
|
6286
6175
|
this._isEnabled = isEnabled;
|
|
6287
|
-
this.
|
|
6176
|
+
(_a = this.controller) === null || _a === void 0 ? void 0 : _a.setModeEnabledState(isEnabled);
|
|
6288
6177
|
}
|
|
6289
6178
|
get context() {
|
|
6290
6179
|
return this._context;
|
|
@@ -6304,10 +6193,11 @@ class SparkScan extends DefaultSerializeable {
|
|
|
6304
6193
|
super();
|
|
6305
6194
|
this.type = 'sparkScan';
|
|
6306
6195
|
this._isEnabled = true;
|
|
6196
|
+
this.hasListeners = false;
|
|
6307
6197
|
this.privateContext = null;
|
|
6308
6198
|
this.listeners = [];
|
|
6199
|
+
this.controller = null;
|
|
6309
6200
|
this.isInListenerCallback = false;
|
|
6310
|
-
this.listenerController = SparkScanListenerController.forSparkScan(this);
|
|
6311
6201
|
}
|
|
6312
6202
|
applySettings(settings) {
|
|
6313
6203
|
this.settings = settings;
|
|
@@ -6319,15 +6209,18 @@ class SparkScan extends DefaultSerializeable {
|
|
|
6319
6209
|
return;
|
|
6320
6210
|
}
|
|
6321
6211
|
this.listeners.push(listener);
|
|
6212
|
+
this.hasListeners = this.listeners.length > 0;
|
|
6322
6213
|
}
|
|
6323
6214
|
checkAndSubscribeListeners() {
|
|
6215
|
+
var _a;
|
|
6324
6216
|
if (this.listeners.length === 0) {
|
|
6325
|
-
this.
|
|
6217
|
+
(_a = this.controller) === null || _a === void 0 ? void 0 : _a.subscribeModeListener();
|
|
6326
6218
|
}
|
|
6327
6219
|
}
|
|
6328
6220
|
checkAndUnsubscribeListeners() {
|
|
6221
|
+
var _a;
|
|
6329
6222
|
if (this.listeners.length === 0) {
|
|
6330
|
-
this.
|
|
6223
|
+
(_a = this.controller) === null || _a === void 0 ? void 0 : _a.unsubscribeModeListener();
|
|
6331
6224
|
}
|
|
6332
6225
|
}
|
|
6333
6226
|
removeListener(listener) {
|
|
@@ -6335,39 +6228,37 @@ class SparkScan extends DefaultSerializeable {
|
|
|
6335
6228
|
return;
|
|
6336
6229
|
}
|
|
6337
6230
|
this.listeners.splice(this.listeners.indexOf(listener));
|
|
6231
|
+
this.hasListeners = this.listeners.length > 0;
|
|
6338
6232
|
this.checkAndUnsubscribeListeners();
|
|
6339
6233
|
}
|
|
6340
6234
|
didChange() {
|
|
6341
|
-
if (this.
|
|
6342
|
-
return this.
|
|
6235
|
+
if (this.controller) {
|
|
6236
|
+
return this.controller.updateMode();
|
|
6343
6237
|
}
|
|
6344
6238
|
else {
|
|
6345
6239
|
return Promise.resolve();
|
|
6346
6240
|
}
|
|
6347
6241
|
}
|
|
6348
|
-
unsubscribeNativeListeners() {
|
|
6349
|
-
this.listenerController.unsubscribeListener();
|
|
6350
|
-
}
|
|
6351
6242
|
}
|
|
6352
6243
|
__decorate([
|
|
6353
|
-
|
|
6354
|
-
], SparkScan.prototype, "_isEnabled",
|
|
6244
|
+
nameForSerialization('isEnabled')
|
|
6245
|
+
], SparkScan.prototype, "_isEnabled", void 0);
|
|
6355
6246
|
__decorate([
|
|
6356
6247
|
ignoreFromSerialization
|
|
6357
|
-
], SparkScan.prototype, "privateContext",
|
|
6248
|
+
], SparkScan.prototype, "privateContext", void 0);
|
|
6358
6249
|
__decorate([
|
|
6359
6250
|
ignoreFromSerialization
|
|
6360
|
-
], SparkScan.prototype, "listeners",
|
|
6251
|
+
], SparkScan.prototype, "listeners", void 0);
|
|
6361
6252
|
__decorate([
|
|
6362
6253
|
ignoreFromSerialization
|
|
6363
|
-
], SparkScan.prototype, "
|
|
6254
|
+
], SparkScan.prototype, "controller", void 0);
|
|
6364
6255
|
__decorate([
|
|
6365
6256
|
ignoreFromSerialization
|
|
6366
|
-
], SparkScan.prototype, "isInListenerCallback",
|
|
6257
|
+
], SparkScan.prototype, "isInListenerCallback", void 0);
|
|
6367
6258
|
|
|
6368
6259
|
var SparkScanMiniPreviewSize;
|
|
6369
6260
|
(function (SparkScanMiniPreviewSize) {
|
|
6370
|
-
SparkScanMiniPreviewSize["Regular"] = "
|
|
6261
|
+
SparkScanMiniPreviewSize["Regular"] = "regular";
|
|
6371
6262
|
SparkScanMiniPreviewSize["Expanded"] = "expanded";
|
|
6372
6263
|
})(SparkScanMiniPreviewSize || (SparkScanMiniPreviewSize = {}));
|
|
6373
6264
|
|
|
@@ -6488,46 +6379,46 @@ class SparkScanToastSettings extends DefaultSerializeable {
|
|
|
6488
6379
|
}
|
|
6489
6380
|
__decorate([
|
|
6490
6381
|
nameForSerialization('toastEnabled')
|
|
6491
|
-
], SparkScanToastSettings.prototype, "_toastEnabled",
|
|
6382
|
+
], SparkScanToastSettings.prototype, "_toastEnabled", void 0);
|
|
6492
6383
|
__decorate([
|
|
6493
6384
|
nameForSerialization('toastBackgroundColor')
|
|
6494
|
-
], SparkScanToastSettings.prototype, "_toastBackgroundColor",
|
|
6385
|
+
], SparkScanToastSettings.prototype, "_toastBackgroundColor", void 0);
|
|
6495
6386
|
__decorate([
|
|
6496
6387
|
nameForSerialization('toastTextColor')
|
|
6497
|
-
], SparkScanToastSettings.prototype, "_toastTextColor",
|
|
6388
|
+
], SparkScanToastSettings.prototype, "_toastTextColor", void 0);
|
|
6498
6389
|
__decorate([
|
|
6499
6390
|
nameForSerialization('targetModeEnabledMessage')
|
|
6500
|
-
], SparkScanToastSettings.prototype, "_targetModeEnabledMessage",
|
|
6391
|
+
], SparkScanToastSettings.prototype, "_targetModeEnabledMessage", void 0);
|
|
6501
6392
|
__decorate([
|
|
6502
6393
|
nameForSerialization('targetModeDisabledMessage')
|
|
6503
|
-
], SparkScanToastSettings.prototype, "_targetModeDisabledMessage",
|
|
6394
|
+
], SparkScanToastSettings.prototype, "_targetModeDisabledMessage", void 0);
|
|
6504
6395
|
__decorate([
|
|
6505
6396
|
nameForSerialization('continuousModeEnabledMessage')
|
|
6506
|
-
], SparkScanToastSettings.prototype, "_continuousModeEnabledMessage",
|
|
6397
|
+
], SparkScanToastSettings.prototype, "_continuousModeEnabledMessage", void 0);
|
|
6507
6398
|
__decorate([
|
|
6508
6399
|
nameForSerialization('continuousModeDisabledMessage')
|
|
6509
|
-
], SparkScanToastSettings.prototype, "_continuousModeDisabledMessage",
|
|
6400
|
+
], SparkScanToastSettings.prototype, "_continuousModeDisabledMessage", void 0);
|
|
6510
6401
|
__decorate([
|
|
6511
6402
|
nameForSerialization('scanPausedMessage')
|
|
6512
|
-
], SparkScanToastSettings.prototype, "_scanPausedMessage",
|
|
6403
|
+
], SparkScanToastSettings.prototype, "_scanPausedMessage", void 0);
|
|
6513
6404
|
__decorate([
|
|
6514
6405
|
nameForSerialization('zoomedInMessage')
|
|
6515
|
-
], SparkScanToastSettings.prototype, "_zoomedInMessage",
|
|
6406
|
+
], SparkScanToastSettings.prototype, "_zoomedInMessage", void 0);
|
|
6516
6407
|
__decorate([
|
|
6517
6408
|
nameForSerialization('zoomedOutMessage')
|
|
6518
|
-
], SparkScanToastSettings.prototype, "_zoomedOutMessage",
|
|
6409
|
+
], SparkScanToastSettings.prototype, "_zoomedOutMessage", void 0);
|
|
6519
6410
|
__decorate([
|
|
6520
6411
|
nameForSerialization('torchEnabledMessage')
|
|
6521
|
-
], SparkScanToastSettings.prototype, "_torchEnabledMessage",
|
|
6412
|
+
], SparkScanToastSettings.prototype, "_torchEnabledMessage", void 0);
|
|
6522
6413
|
__decorate([
|
|
6523
6414
|
nameForSerialization('torchDisabledMessage')
|
|
6524
|
-
], SparkScanToastSettings.prototype, "_torchDisabledMessage",
|
|
6415
|
+
], SparkScanToastSettings.prototype, "_torchDisabledMessage", void 0);
|
|
6525
6416
|
__decorate([
|
|
6526
6417
|
nameForSerialization('userFacingCameraEnabledMessage')
|
|
6527
|
-
], SparkScanToastSettings.prototype, "_userFacingCameraEnabledMessage",
|
|
6418
|
+
], SparkScanToastSettings.prototype, "_userFacingCameraEnabledMessage", void 0);
|
|
6528
6419
|
__decorate([
|
|
6529
6420
|
nameForSerialization('worldFacingCameraEnabledMessage')
|
|
6530
|
-
], SparkScanToastSettings.prototype, "_worldFacingCameraEnabledMessage",
|
|
6421
|
+
], SparkScanToastSettings.prototype, "_worldFacingCameraEnabledMessage", void 0);
|
|
6531
6422
|
__decorate([
|
|
6532
6423
|
ignoreFromSerialization
|
|
6533
6424
|
], SparkScanToastSettings, "sparkScanDefaults", null);
|
|
@@ -6553,10 +6444,10 @@ class PrivateSparkScanScanningModeSettings extends DefaultSerializeable {
|
|
|
6553
6444
|
}
|
|
6554
6445
|
__decorate([
|
|
6555
6446
|
nameForSerialization('scanningBehavior')
|
|
6556
|
-
], PrivateSparkScanScanningModeSettings.prototype, "_scanningBehavior",
|
|
6447
|
+
], PrivateSparkScanScanningModeSettings.prototype, "_scanningBehavior", void 0);
|
|
6557
6448
|
__decorate([
|
|
6558
6449
|
nameForSerialization('previewBehavior')
|
|
6559
|
-
], PrivateSparkScanScanningModeSettings.prototype, "_previewBehavior",
|
|
6450
|
+
], PrivateSparkScanScanningModeSettings.prototype, "_previewBehavior", void 0);
|
|
6560
6451
|
|
|
6561
6452
|
class SparkScanScanningModeDefault extends DefaultSerializeable {
|
|
6562
6453
|
get scanningBehavior() {
|
|
@@ -6580,7 +6471,7 @@ class SparkScanScanningModeDefault extends DefaultSerializeable {
|
|
|
6580
6471
|
}
|
|
6581
6472
|
__decorate([
|
|
6582
6473
|
nameForSerialization('settings')
|
|
6583
|
-
], SparkScanScanningModeDefault.prototype, "_settings",
|
|
6474
|
+
], SparkScanScanningModeDefault.prototype, "_settings", void 0);
|
|
6584
6475
|
|
|
6585
6476
|
class SparkScanScanningModeTarget extends DefaultSerializeable {
|
|
6586
6477
|
get scanningBehavior() {
|
|
@@ -6604,7 +6495,30 @@ class SparkScanScanningModeTarget extends DefaultSerializeable {
|
|
|
6604
6495
|
}
|
|
6605
6496
|
__decorate([
|
|
6606
6497
|
nameForSerialization('settings')
|
|
6607
|
-
], SparkScanScanningModeTarget.prototype, "_settings",
|
|
6498
|
+
], SparkScanScanningModeTarget.prototype, "_settings", void 0);
|
|
6499
|
+
|
|
6500
|
+
class SparkScanSession {
|
|
6501
|
+
static fromJSON(json) {
|
|
6502
|
+
var _a;
|
|
6503
|
+
const sessionJson = JSON.parse(json.session);
|
|
6504
|
+
const session = new SparkScanSession();
|
|
6505
|
+
session._newlyRecognizedBarcode = sessionJson.newlyRecognizedBarcode != null ?
|
|
6506
|
+
Barcode.fromJSON(sessionJson.newlyRecognizedBarcode) :
|
|
6507
|
+
null;
|
|
6508
|
+
session._frameSequenceID = sessionJson.frameSequenceId;
|
|
6509
|
+
session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
|
|
6510
|
+
return session;
|
|
6511
|
+
}
|
|
6512
|
+
get newlyRecognizedBarcode() {
|
|
6513
|
+
return this._newlyRecognizedBarcode;
|
|
6514
|
+
}
|
|
6515
|
+
get frameSequenceID() {
|
|
6516
|
+
return this._frameSequenceID;
|
|
6517
|
+
}
|
|
6518
|
+
reset() {
|
|
6519
|
+
return this.controller.resetSession();
|
|
6520
|
+
}
|
|
6521
|
+
}
|
|
6608
6522
|
|
|
6609
6523
|
class SparkScanSettings extends DefaultSerializeable {
|
|
6610
6524
|
get batterySaving() {
|
|
@@ -6661,10 +6575,10 @@ class SparkScanSettings extends DefaultSerializeable {
|
|
|
6661
6575
|
}
|
|
6662
6576
|
__decorate([
|
|
6663
6577
|
nameForSerialization('batterySaving')
|
|
6664
|
-
], SparkScanSettings.prototype, "_batterySaving",
|
|
6578
|
+
], SparkScanSettings.prototype, "_batterySaving", void 0);
|
|
6665
6579
|
__decorate([
|
|
6666
6580
|
nameForSerialization('locationSelection')
|
|
6667
|
-
], SparkScanSettings.prototype, "_locationSelection",
|
|
6581
|
+
], SparkScanSettings.prototype, "_locationSelection", void 0);
|
|
6668
6582
|
__decorate([
|
|
6669
6583
|
ignoreFromSerialization
|
|
6670
6584
|
], SparkScanSettings, "sparkScanDefaults", null);
|
|
@@ -6729,158 +6643,319 @@ var SparkScanViewEvents;
|
|
|
6729
6643
|
SparkScanViewEvents["barcodeFindButtonTapped"] = "SparkScanViewUiListener.barcodeFindButtonTapped";
|
|
6730
6644
|
SparkScanViewEvents["barcodeCountButtonTapped"] = "SparkScanViewUiListener.barcodeCountButtonTapped";
|
|
6731
6645
|
SparkScanViewEvents["didChangeViewState"] = "SparkScanViewUiListener.didChangeViewState";
|
|
6646
|
+
SparkScanViewEvents["feedbackForBarcode"] = "SparkScanFeedbackDelegate.feedbackForBarcode";
|
|
6647
|
+
SparkScanViewEvents["didUpdateSession"] = "SparkScanListener.didUpdateSession";
|
|
6648
|
+
SparkScanViewEvents["didScan"] = "SparkScanListener.didScan";
|
|
6732
6649
|
})(SparkScanViewEvents || (SparkScanViewEvents = {}));
|
|
6733
|
-
var SparkScanFeedbackDelegateEvents;
|
|
6734
|
-
(function (SparkScanFeedbackDelegateEvents) {
|
|
6735
|
-
SparkScanFeedbackDelegateEvents["feedbackForBarcode"] = "SparkScanFeedbackDelegate.feedbackForBarcode";
|
|
6736
|
-
})(SparkScanFeedbackDelegateEvents || (SparkScanFeedbackDelegateEvents = {}));
|
|
6737
6650
|
class SparkScanViewController extends BaseNewController {
|
|
6738
|
-
static forSparkScanView(view, sparkScan
|
|
6651
|
+
static forSparkScanView(view, sparkScan) {
|
|
6739
6652
|
const controller = new SparkScanViewController();
|
|
6740
6653
|
controller.view = view;
|
|
6741
6654
|
controller.sparkScan = sparkScan;
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
controller.initialize(autoCreateNativeView);
|
|
6655
|
+
controller.sparkScan.controller = controller;
|
|
6656
|
+
controller.initialize();
|
|
6745
6657
|
return controller;
|
|
6746
6658
|
}
|
|
6747
6659
|
constructor() {
|
|
6748
6660
|
super('SparkScanViewProxy');
|
|
6749
6661
|
this.hasFeedbackDelegateListener = false;
|
|
6750
|
-
this.
|
|
6751
|
-
this.
|
|
6662
|
+
this.hasNativeViewListenerSubscriptions = false;
|
|
6663
|
+
this.hasNativeModeListenerSubscriptions = false;
|
|
6664
|
+
this.viewInstanceId = -1;
|
|
6665
|
+
this.didUpdateSessionListener = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
6666
|
+
const payload = EventDataParser.parse(ev.data);
|
|
6667
|
+
if (payload === null) {
|
|
6668
|
+
console.error('SparkScanListenerController didUpdateSession payload is null');
|
|
6669
|
+
return;
|
|
6670
|
+
}
|
|
6671
|
+
if (payload.viewId !== this.viewInstanceId) {
|
|
6672
|
+
return;
|
|
6673
|
+
}
|
|
6674
|
+
const session = SparkScanSession.fromJSON(payload);
|
|
6675
|
+
session.controller = this;
|
|
6676
|
+
yield this.notifyListenersOfDidUpdateSession(session);
|
|
6677
|
+
this._proxy.$finishSparkScanDidUpdateSession({ viewId: this.viewInstanceId, isEnabled: this.sparkScan.isEnabled });
|
|
6678
|
+
});
|
|
6679
|
+
this.didScanListener = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
6680
|
+
const payload = EventDataParser.parse(ev.data);
|
|
6681
|
+
if (payload === null) {
|
|
6682
|
+
console.error('SparkScanListenerController.subscribeListener: didScan payload is null');
|
|
6683
|
+
return;
|
|
6684
|
+
}
|
|
6685
|
+
if (payload.viewId !== this.viewInstanceId) {
|
|
6686
|
+
return;
|
|
6687
|
+
}
|
|
6688
|
+
const session = SparkScanSession.fromJSON(payload);
|
|
6689
|
+
session.controller = this;
|
|
6690
|
+
yield this.notifyListenersOfDidScan(session);
|
|
6691
|
+
this._proxy.$finishSparkScanDidScan({ viewId: this.viewInstanceId, isEnabled: this.sparkScan.isEnabled });
|
|
6692
|
+
});
|
|
6693
|
+
this.barcodeCountButtonTappedListener = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
6752
6694
|
var _a, _b;
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6695
|
+
const payload = EventDataParser.parse(ev.data);
|
|
6696
|
+
if (payload === null) {
|
|
6697
|
+
return;
|
|
6698
|
+
}
|
|
6699
|
+
if (payload.viewId !== this.viewInstanceId) {
|
|
6700
|
+
return;
|
|
6701
|
+
}
|
|
6702
|
+
(_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapBarcodeCountButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view);
|
|
6703
|
+
});
|
|
6704
|
+
this.barcodeFindButtonTappedListener = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
6756
6705
|
var _a, _b;
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6706
|
+
const payload = EventDataParser.parse(ev.data);
|
|
6707
|
+
if (payload === null) {
|
|
6708
|
+
return;
|
|
6709
|
+
}
|
|
6710
|
+
if (payload.viewId !== this.viewInstanceId) {
|
|
6711
|
+
return;
|
|
6712
|
+
}
|
|
6713
|
+
(_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didTapBarcodeFindButton) === null || _b === void 0 ? void 0 : _b.call(_a, this.view);
|
|
6714
|
+
});
|
|
6715
|
+
this.didChangeViewStateListener = (ev) => __awaiter(this, void 0, void 0, function* () {
|
|
6760
6716
|
var _a, _b;
|
|
6761
|
-
const payload = EventDataParser.parse(data);
|
|
6717
|
+
const payload = EventDataParser.parse(ev.data);
|
|
6762
6718
|
if (payload === null) {
|
|
6763
6719
|
console.error('SparkScanViewController didChangeViewState payload is null');
|
|
6764
6720
|
return;
|
|
6765
6721
|
}
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
};
|
|
6769
|
-
}
|
|
6770
|
-
initialize(autoCreateNativeView) {
|
|
6771
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
6772
|
-
this.subscribeListeners();
|
|
6773
|
-
yield this.view.context.update();
|
|
6774
|
-
if (autoCreateNativeView) {
|
|
6775
|
-
yield this.create();
|
|
6722
|
+
if (payload.viewId !== this.viewInstanceId) {
|
|
6723
|
+
return;
|
|
6776
6724
|
}
|
|
6777
|
-
|
|
6725
|
+
const newState = payload.state;
|
|
6726
|
+
(_b = (_a = this.view.uiListener) === null || _a === void 0 ? void 0 : _a.didChangeViewState) === null || _b === void 0 ? void 0 : _b.call(_a, newState);
|
|
6778
6727
|
});
|
|
6779
6728
|
}
|
|
6729
|
+
initialize() {
|
|
6730
|
+
this._proxy.on$barcodeCountButtonTapped = this.barcodeCountButtonTappedListener;
|
|
6731
|
+
this._proxy.on$barcodeFindButtonTapped = this.barcodeFindButtonTappedListener;
|
|
6732
|
+
this._proxy.on$didChangeViewState = this.didChangeViewStateListener;
|
|
6733
|
+
this._proxy.on$didUpdateSession = this.didUpdateSessionListener;
|
|
6734
|
+
this._proxy.on$didScan = this.didScanListener;
|
|
6735
|
+
this._proxy.on$feedbackForBarcode = this.handleFeedbackForBarcode.bind(this);
|
|
6736
|
+
if (this.sparkScan.listeners.length > 0) {
|
|
6737
|
+
this.subscribeModeListener();
|
|
6738
|
+
}
|
|
6739
|
+
if (this.view.uiListener) {
|
|
6740
|
+
this.subscribeViewListeners();
|
|
6741
|
+
}
|
|
6742
|
+
if (this.view.feedbackDelegate) {
|
|
6743
|
+
this.addFeedbackDelegate();
|
|
6744
|
+
}
|
|
6745
|
+
}
|
|
6780
6746
|
dispose() {
|
|
6781
|
-
this.
|
|
6782
|
-
this.
|
|
6747
|
+
this.unsubscribeModeListener();
|
|
6748
|
+
this.unsubscribeViewListeners();
|
|
6783
6749
|
this.removeFeedbackDelegate();
|
|
6784
|
-
this._proxy
|
|
6750
|
+
this._proxy.$disposeSparkScanView({ viewId: this.viewInstanceId });
|
|
6751
|
+
this._proxy.dispose();
|
|
6785
6752
|
}
|
|
6786
|
-
|
|
6787
|
-
if (this.
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
this.
|
|
6792
|
-
this.
|
|
6793
|
-
this.eventEmitter.on(SparkScanViewEvents.didChangeViewState, this.didChangeViewStateListener);
|
|
6753
|
+
subscribeViewListeners() {
|
|
6754
|
+
if (!this.isViewCreated)
|
|
6755
|
+
return; // view not created yet
|
|
6756
|
+
if (this.hasNativeViewListenerSubscriptions)
|
|
6757
|
+
return;
|
|
6758
|
+
this._proxy.$registerSparkScanViewListenerEvents({ viewId: this.viewInstanceId });
|
|
6759
|
+
this.hasNativeViewListenerSubscriptions = true;
|
|
6794
6760
|
}
|
|
6795
|
-
|
|
6796
|
-
if (this.
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
this.
|
|
6801
|
-
this.
|
|
6802
|
-
this.eventEmitter.off(SparkScanViewEvents.didChangeViewState, this.didChangeViewStateListener);
|
|
6761
|
+
unsubscribeViewListeners() {
|
|
6762
|
+
if (!this.isViewCreated)
|
|
6763
|
+
return; // view not created yet
|
|
6764
|
+
if (this.hasNativeViewListenerSubscriptions === false)
|
|
6765
|
+
return;
|
|
6766
|
+
this._proxy.$unregisterSparkScanViewListenerEvents({ viewId: this.viewInstanceId });
|
|
6767
|
+
this.hasNativeViewListenerSubscriptions = false;
|
|
6803
6768
|
}
|
|
6804
|
-
|
|
6769
|
+
createView() {
|
|
6805
6770
|
const viewJson = {
|
|
6806
6771
|
SparkScan: this.sparkScan.toJSON(),
|
|
6807
6772
|
SparkScanView: this.view.toJSON()
|
|
6808
6773
|
};
|
|
6774
|
+
const viewId = this.view.viewId;
|
|
6809
6775
|
const json = JSON.stringify(viewJson);
|
|
6810
|
-
return this._proxy
|
|
6776
|
+
return this._proxy.$createSparkScanView({ viewId, viewJson: json }).then(() => {
|
|
6777
|
+
this.viewInstanceId = viewId;
|
|
6778
|
+
this.initialize();
|
|
6779
|
+
});
|
|
6811
6780
|
}
|
|
6812
|
-
|
|
6781
|
+
updateView() {
|
|
6782
|
+
if (!this.isViewCreated) {
|
|
6783
|
+
return Promise.resolve(); // No updates if view not created yet
|
|
6784
|
+
}
|
|
6813
6785
|
const sparkScanViewJson = this.view.toJSON();
|
|
6814
|
-
const json = JSON.stringify({
|
|
6815
|
-
return this._proxy
|
|
6786
|
+
const json = JSON.stringify({ SparkScanView: sparkScanViewJson });
|
|
6787
|
+
return this._proxy.$updateSparkScanView({ viewId: this.viewInstanceId, viewJson: json });
|
|
6816
6788
|
}
|
|
6817
6789
|
stopScanning() {
|
|
6818
|
-
|
|
6790
|
+
if (!this.isViewCreated) {
|
|
6791
|
+
return Promise.resolve(); // No updates if view not created yet
|
|
6792
|
+
}
|
|
6793
|
+
return this._proxy.$stopSparkScanViewScanning({ viewId: this.viewInstanceId });
|
|
6819
6794
|
}
|
|
6820
6795
|
pauseScanning() {
|
|
6821
|
-
|
|
6796
|
+
if (!this.isViewCreated) {
|
|
6797
|
+
return Promise.resolve(); // No updates if view not created yet
|
|
6798
|
+
}
|
|
6799
|
+
return this._proxy.$pauseSparkScanViewScanning({ viewId: this.viewInstanceId });
|
|
6822
6800
|
}
|
|
6823
6801
|
startScanning() {
|
|
6824
|
-
|
|
6802
|
+
if (!this.isViewCreated) {
|
|
6803
|
+
return Promise.resolve(); // No updates if view not created yet
|
|
6804
|
+
}
|
|
6805
|
+
return this._proxy.$startSparkScanViewScanning({ viewId: this.viewInstanceId });
|
|
6825
6806
|
}
|
|
6826
6807
|
prepareScanning() {
|
|
6827
|
-
|
|
6808
|
+
if (!this.isViewCreated) {
|
|
6809
|
+
return Promise.resolve(); // No updates if view not created yet
|
|
6810
|
+
}
|
|
6811
|
+
return this._proxy.$prepareSparkScanViewScanning({ viewId: this.viewInstanceId });
|
|
6828
6812
|
}
|
|
6829
6813
|
showToast(text) {
|
|
6830
|
-
|
|
6814
|
+
if (!this.isViewCreated) {
|
|
6815
|
+
return Promise.resolve(); // No updates if view not created yet
|
|
6816
|
+
}
|
|
6817
|
+
return this._proxy.$showSparkScanViewToast({ viewId: this.viewInstanceId, text: text });
|
|
6831
6818
|
}
|
|
6832
|
-
|
|
6833
|
-
|
|
6819
|
+
showView() {
|
|
6820
|
+
if (!this.isViewCreated) {
|
|
6821
|
+
return Promise.resolve(); // No updates if view not created yet
|
|
6822
|
+
}
|
|
6823
|
+
return this._proxy.$showSparkScanView({ viewId: this.viewInstanceId });
|
|
6834
6824
|
}
|
|
6835
|
-
|
|
6836
|
-
|
|
6825
|
+
hideView() {
|
|
6826
|
+
if (!this.isViewCreated) {
|
|
6827
|
+
return Promise.resolve(); // No updates if view not created yet
|
|
6828
|
+
}
|
|
6829
|
+
return this._proxy.$hideSparkScanView({ viewId: this.viewInstanceId });
|
|
6837
6830
|
}
|
|
6838
6831
|
addFeedbackDelegate() {
|
|
6839
|
-
if (this.
|
|
6832
|
+
if (!this.isViewCreated)
|
|
6833
|
+
return; // view not created yet
|
|
6834
|
+
if (this.hasFeedbackDelegateListener)
|
|
6840
6835
|
return;
|
|
6836
|
+
this._proxy.$registerSparkScanFeedbackDelegateForEvents({ viewId: this.viewInstanceId });
|
|
6837
|
+
this.hasFeedbackDelegateListener = true;
|
|
6838
|
+
}
|
|
6839
|
+
removeFeedbackDelegate() {
|
|
6840
|
+
if (!this.isViewCreated)
|
|
6841
|
+
return; // view not created yet
|
|
6842
|
+
if (!this.hasFeedbackDelegateListener)
|
|
6843
|
+
return;
|
|
6844
|
+
this._proxy.$unregisterSparkScanFeedbackDelegateForEvents({ viewId: this.viewInstanceId });
|
|
6845
|
+
this.hasFeedbackDelegateListener = false;
|
|
6846
|
+
}
|
|
6847
|
+
resetSession() {
|
|
6848
|
+
if (!this.isViewCreated) {
|
|
6849
|
+
return Promise.resolve(); // view not created yet
|
|
6841
6850
|
}
|
|
6842
|
-
this._proxy.
|
|
6843
|
-
|
|
6851
|
+
return this._proxy.$resetSparkScanSession({ viewId: this.viewInstanceId });
|
|
6852
|
+
}
|
|
6853
|
+
updateMode() {
|
|
6854
|
+
if (!this.isViewCreated) {
|
|
6855
|
+
return Promise.resolve(); // No updates if view not created yet
|
|
6856
|
+
}
|
|
6857
|
+
const sparkScanJson = this.sparkScan.toJSON();
|
|
6858
|
+
const json = JSON.stringify(sparkScanJson);
|
|
6859
|
+
return this._proxy.$updateSparkScanMode({ viewId: this.viewInstanceId, modeJson: json });
|
|
6860
|
+
}
|
|
6861
|
+
subscribeModeListener() {
|
|
6862
|
+
if (!this.isViewCreated)
|
|
6863
|
+
return; // view not created yet
|
|
6864
|
+
if (this.hasNativeModeListenerSubscriptions)
|
|
6865
|
+
return;
|
|
6866
|
+
this._proxy.$registerSparkScanListenerForEvents({ viewId: this.viewInstanceId });
|
|
6867
|
+
this.hasNativeModeListenerSubscriptions = true;
|
|
6868
|
+
}
|
|
6869
|
+
unsubscribeModeListener() {
|
|
6870
|
+
if (!this.isViewCreated)
|
|
6871
|
+
return; // view not created yet
|
|
6872
|
+
if (this.hasNativeModeListenerSubscriptions == false)
|
|
6873
|
+
return;
|
|
6874
|
+
this._proxy.$unregisterSparkScanListenerForEvents({ viewId: this.viewInstanceId });
|
|
6875
|
+
this.hasNativeModeListenerSubscriptions = false;
|
|
6876
|
+
}
|
|
6877
|
+
setModeEnabledState(enabled) {
|
|
6878
|
+
if (!this.isViewCreated)
|
|
6879
|
+
return; // view not created yet
|
|
6880
|
+
this._proxy.$setSparkScanModeEnabledState({ viewId: this.viewInstanceId, isEnabled: enabled });
|
|
6881
|
+
}
|
|
6882
|
+
get isViewCreated() {
|
|
6883
|
+
return this.viewInstanceId !== -1;
|
|
6884
|
+
}
|
|
6885
|
+
handleFeedbackForBarcode(ev) {
|
|
6886
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6844
6887
|
var _a, _b;
|
|
6845
|
-
const payload = EventDataParser.parse(data);
|
|
6888
|
+
const payload = EventDataParser.parse(ev.data);
|
|
6846
6889
|
if (payload === null) {
|
|
6847
6890
|
console.error('SparkScanViewController feedbackForBarcode payload is null');
|
|
6848
6891
|
return;
|
|
6849
6892
|
}
|
|
6893
|
+
if (payload.viewId !== this.viewInstanceId) {
|
|
6894
|
+
return;
|
|
6895
|
+
}
|
|
6850
6896
|
const barcode = Barcode.fromJSON(JSON.parse(payload.barcode));
|
|
6851
|
-
const feedback = (_b = (_a = this.view.feedbackDelegate) === null || _a ===
|
|
6897
|
+
const feedback = (_b = (_a = this.view.feedbackDelegate) === null || _a === void 0 ? void 0 : _a.feedbackForBarcode) === null || _b === void 0 ? void 0 : _b.call(_a, barcode);
|
|
6852
6898
|
if (feedback instanceof Promise) {
|
|
6853
6899
|
feedback.then((feedback) => {
|
|
6854
|
-
this._proxy.
|
|
6900
|
+
this._proxy.$submitSparkScanFeedbackForBarcode({ viewId: this.viewInstanceId, feedbackJson: JSON.stringify(feedback === null || feedback === void 0 ? void 0 : feedback.toJSON()) });
|
|
6855
6901
|
});
|
|
6856
6902
|
}
|
|
6857
6903
|
else {
|
|
6858
|
-
this._proxy.
|
|
6904
|
+
this._proxy.$submitSparkScanFeedbackForBarcode({ viewId: this.viewInstanceId, feedbackJson: JSON.stringify(feedback === null || feedback === void 0 ? void 0 : feedback.toJSON()) });
|
|
6859
6905
|
}
|
|
6860
6906
|
});
|
|
6861
|
-
this.hasFeedbackDelegateListener = true;
|
|
6862
6907
|
}
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6908
|
+
notifyListenersOfDidUpdateSession(session) {
|
|
6909
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6910
|
+
const mode = this.sparkScan;
|
|
6911
|
+
mode.isInListenerCallback = true;
|
|
6912
|
+
for (const listener of mode.listeners) {
|
|
6913
|
+
if (listener.didUpdateSession) {
|
|
6914
|
+
yield listener.didUpdateSession(this.sparkScan, session, () => CameraController.getFrameOrNull(session.frameId));
|
|
6915
|
+
}
|
|
6916
|
+
}
|
|
6917
|
+
mode.isInListenerCallback = false;
|
|
6918
|
+
});
|
|
6919
|
+
}
|
|
6920
|
+
notifyListenersOfDidScan(session) {
|
|
6921
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6922
|
+
const mode = this.sparkScan;
|
|
6923
|
+
mode.isInListenerCallback = true;
|
|
6924
|
+
for (const listener of mode.listeners) {
|
|
6925
|
+
if (listener.didScan) {
|
|
6926
|
+
yield listener.didScan(this.sparkScan, session, () => CameraController.getFrameOrNull(session.frameId));
|
|
6927
|
+
}
|
|
6928
|
+
}
|
|
6929
|
+
mode.isInListenerCallback = false;
|
|
6930
|
+
});
|
|
6870
6931
|
}
|
|
6871
6932
|
}
|
|
6872
6933
|
|
|
6873
6934
|
class BaseSparkScanView {
|
|
6874
|
-
|
|
6875
|
-
|
|
6935
|
+
get viewId() {
|
|
6936
|
+
return this._viewId;
|
|
6937
|
+
}
|
|
6938
|
+
get uiListener() {
|
|
6939
|
+
return this._uiListener;
|
|
6940
|
+
}
|
|
6941
|
+
set uiListener(listener) {
|
|
6942
|
+
this._uiListener = listener;
|
|
6943
|
+
if (listener) {
|
|
6944
|
+
this._controller.subscribeViewListeners();
|
|
6945
|
+
}
|
|
6946
|
+
else {
|
|
6947
|
+
this._controller.unsubscribeViewListeners();
|
|
6948
|
+
}
|
|
6949
|
+
}
|
|
6950
|
+
static forContext(context, sparkScan, settings) {
|
|
6951
|
+
const view = new BaseSparkScanView({ context, sparkScan, settings });
|
|
6876
6952
|
return view;
|
|
6877
6953
|
}
|
|
6878
|
-
static withProps(props
|
|
6954
|
+
static withProps(props) {
|
|
6879
6955
|
const view = new BaseSparkScanView({
|
|
6880
6956
|
context: props.context,
|
|
6881
6957
|
sparkScan: props.sparkScan,
|
|
6882
6958
|
settings: props.sparkScanViewSettings,
|
|
6883
|
-
autoCreateNativeView
|
|
6884
6959
|
});
|
|
6885
6960
|
if (props.uiListener) {
|
|
6886
6961
|
view.uiListener = props.uiListener;
|
|
@@ -6944,16 +7019,15 @@ class BaseSparkScanView {
|
|
|
6944
7019
|
static get defaultBrush() {
|
|
6945
7020
|
return BaseSparkScanView.sparkScanDefaults.SparkScanView.brush;
|
|
6946
7021
|
}
|
|
6947
|
-
constructor({ context, sparkScan, settings
|
|
6948
|
-
this.
|
|
6949
|
-
this.
|
|
7022
|
+
constructor({ context, sparkScan, settings }) {
|
|
7023
|
+
this._viewId = -1; // -1 means the view is not created yet
|
|
7024
|
+
this._uiListener = null;
|
|
6950
7025
|
this._brush = BaseSparkScanView.defaultBrush;
|
|
6951
7026
|
this._feedbackDelegate = null;
|
|
6952
7027
|
this._previewSizeControlVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.previewSizeControlVisible;
|
|
6953
7028
|
this._cameraSwitchButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.cameraSwitchButtonVisible;
|
|
6954
7029
|
this._scanningBehaviorButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.scanningBehaviorButtonVisible;
|
|
6955
7030
|
this._barcodeCountButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.barcodeCountButtonVisible;
|
|
6956
|
-
this._fastFindButtonVisible = false;
|
|
6957
7031
|
this._barcodeFindButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.barcodeFindButtonVisible;
|
|
6958
7032
|
this._targetModeButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.targetModeButtonVisible;
|
|
6959
7033
|
this._toolbarBackgroundColor = BaseSparkScanView.sparkScanDefaults.SparkScanView.toolbarBackgroundColor;
|
|
@@ -6969,8 +7043,8 @@ class BaseSparkScanView {
|
|
|
6969
7043
|
this._previewCloseControlVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.previewSizeControlVisible;
|
|
6970
7044
|
this._sparkScan = sparkScan;
|
|
6971
7045
|
this.context = context;
|
|
6972
|
-
this._viewSettings = settings !== null && settings !==
|
|
6973
|
-
this._controller = SparkScanViewController.forSparkScanView(this, sparkScan
|
|
7046
|
+
this._viewSettings = settings !== null && settings !== void 0 ? settings : new SparkScanViewSettings();
|
|
7047
|
+
this._controller = SparkScanViewController.forSparkScanView(this, sparkScan);
|
|
6974
7048
|
}
|
|
6975
7049
|
get previewSizeControlVisible() {
|
|
6976
7050
|
return this._previewSizeControlVisible;
|
|
@@ -6988,7 +7062,6 @@ class BaseSparkScanView {
|
|
|
6988
7062
|
/**
|
|
6989
7063
|
* @deprecated The torch button has been moved to the mini preview. Use property `torchControlVisible` instead.
|
|
6990
7064
|
*/
|
|
6991
|
-
// @ts-ignore
|
|
6992
7065
|
set torchButtonVisible(newValue) {
|
|
6993
7066
|
console.warn('The torch button has been moved to the mini preview. Use property `torchControlVisible` instead.');
|
|
6994
7067
|
}
|
|
@@ -7043,7 +7116,6 @@ class BaseSparkScanView {
|
|
|
7043
7116
|
/**
|
|
7044
7117
|
* @deprecated The trigger button no longer displays text.
|
|
7045
7118
|
*/
|
|
7046
|
-
// @ts-ignore
|
|
7047
7119
|
set stopCapturingText(newValue) {
|
|
7048
7120
|
console.warn('The trigger button no longer displays text.');
|
|
7049
7121
|
}
|
|
@@ -7056,7 +7128,6 @@ class BaseSparkScanView {
|
|
|
7056
7128
|
/**
|
|
7057
7129
|
* @deprecated The trigger button no longer displays text.
|
|
7058
7130
|
*/
|
|
7059
|
-
// @ts-ignore
|
|
7060
7131
|
set startCapturingText(newValue) {
|
|
7061
7132
|
console.warn('The trigger button no longer displays text.');
|
|
7062
7133
|
}
|
|
@@ -7069,7 +7140,6 @@ class BaseSparkScanView {
|
|
|
7069
7140
|
/**
|
|
7070
7141
|
* @deprecated The trigger button no longer displays text.
|
|
7071
7142
|
*/
|
|
7072
|
-
// @ts-ignore
|
|
7073
7143
|
set resumeCapturingText(newValue) {
|
|
7074
7144
|
console.warn('The trigger button no longer displays text.');
|
|
7075
7145
|
}
|
|
@@ -7082,7 +7152,6 @@ class BaseSparkScanView {
|
|
|
7082
7152
|
/**
|
|
7083
7153
|
* @deprecated The trigger button no longer displays text.
|
|
7084
7154
|
*/
|
|
7085
|
-
// @ts-ignore
|
|
7086
7155
|
set scanningCapturingText(newValue) {
|
|
7087
7156
|
console.warn('The trigger button no longer displays text.');
|
|
7088
7157
|
}
|
|
@@ -7095,7 +7164,6 @@ class BaseSparkScanView {
|
|
|
7095
7164
|
/**
|
|
7096
7165
|
* @deprecated This property is not relevant anymore.
|
|
7097
7166
|
*/
|
|
7098
|
-
// @ts-ignore
|
|
7099
7167
|
set captureButtonActiveBackgroundColor(newValue) {
|
|
7100
7168
|
console.warn('captureButtonActiveBackgroundColor is deprecated.');
|
|
7101
7169
|
}
|
|
@@ -7108,7 +7176,6 @@ class BaseSparkScanView {
|
|
|
7108
7176
|
/**
|
|
7109
7177
|
* @deprecated Use triggerButtonCollapsedColor and triggerButtonExpandedColor instead.
|
|
7110
7178
|
*/
|
|
7111
|
-
// @ts-ignore
|
|
7112
7179
|
set captureButtonBackgroundColor(newValue) {
|
|
7113
7180
|
console.warn('captureButtonBackgroundColor is deprecated. ' +
|
|
7114
7181
|
'Use triggerButtonCollapsedColor and triggerButtonExpandedColor instead.');
|
|
@@ -7122,7 +7189,6 @@ class BaseSparkScanView {
|
|
|
7122
7189
|
/**
|
|
7123
7190
|
* @deprecated use triggerButtonTintColor instead.
|
|
7124
7191
|
*/
|
|
7125
|
-
// @ts-ignore
|
|
7126
7192
|
set captureButtonTintColor(newValue) {
|
|
7127
7193
|
console.warn('triggerButtonTintColor is deprecated. Use triggerButtonTintColor instead.');
|
|
7128
7194
|
}
|
|
@@ -7212,7 +7278,7 @@ class BaseSparkScanView {
|
|
|
7212
7278
|
this._controller.stopScanning();
|
|
7213
7279
|
}
|
|
7214
7280
|
update() {
|
|
7215
|
-
return this._controller.
|
|
7281
|
+
return this._controller.updateView();
|
|
7216
7282
|
}
|
|
7217
7283
|
dispose() {
|
|
7218
7284
|
this._controller.dispose();
|
|
@@ -7223,6 +7289,10 @@ class BaseSparkScanView {
|
|
|
7223
7289
|
hide() {
|
|
7224
7290
|
return this._hide();
|
|
7225
7291
|
}
|
|
7292
|
+
createNativeView(viewId) {
|
|
7293
|
+
this._viewId = viewId;
|
|
7294
|
+
return this._controller.createView();
|
|
7295
|
+
}
|
|
7226
7296
|
get feedbackDelegate() {
|
|
7227
7297
|
return this._feedbackDelegate;
|
|
7228
7298
|
}
|
|
@@ -7235,17 +7305,99 @@ class BaseSparkScanView {
|
|
|
7235
7305
|
this._controller.addFeedbackDelegate();
|
|
7236
7306
|
}
|
|
7237
7307
|
}
|
|
7308
|
+
updateWithProps(prevProps, props) {
|
|
7309
|
+
// Update UI Listener
|
|
7310
|
+
if (props.uiListener !== prevProps.uiListener) {
|
|
7311
|
+
this.uiListener = props.uiListener || null;
|
|
7312
|
+
}
|
|
7313
|
+
// Update visibility controls
|
|
7314
|
+
if (props.previewSizeControlVisible !== prevProps.previewSizeControlVisible &&
|
|
7315
|
+
props.previewSizeControlVisible !== undefined) {
|
|
7316
|
+
this.previewSizeControlVisible = props.previewSizeControlVisible;
|
|
7317
|
+
}
|
|
7318
|
+
if (props.scanningBehaviorButtonVisible !== prevProps.scanningBehaviorButtonVisible &&
|
|
7319
|
+
props.scanningBehaviorButtonVisible !== undefined) {
|
|
7320
|
+
this.scanningBehaviorButtonVisible = props.scanningBehaviorButtonVisible;
|
|
7321
|
+
}
|
|
7322
|
+
if (props.barcodeCountButtonVisible !== prevProps.barcodeCountButtonVisible &&
|
|
7323
|
+
props.barcodeCountButtonVisible !== undefined) {
|
|
7324
|
+
this.barcodeCountButtonVisible = props.barcodeCountButtonVisible;
|
|
7325
|
+
}
|
|
7326
|
+
if (props.barcodeFindButtonVisible !== prevProps.barcodeFindButtonVisible &&
|
|
7327
|
+
props.barcodeFindButtonVisible !== undefined) {
|
|
7328
|
+
this.barcodeFindButtonVisible = props.barcodeFindButtonVisible;
|
|
7329
|
+
}
|
|
7330
|
+
if (props.targetModeButtonVisible !== prevProps.targetModeButtonVisible &&
|
|
7331
|
+
props.targetModeButtonVisible !== undefined) {
|
|
7332
|
+
this.targetModeButtonVisible = props.targetModeButtonVisible;
|
|
7333
|
+
}
|
|
7334
|
+
if (props.cameraSwitchButtonVisible !== prevProps.cameraSwitchButtonVisible &&
|
|
7335
|
+
props.cameraSwitchButtonVisible !== undefined) {
|
|
7336
|
+
this.cameraSwitchButtonVisible = props.cameraSwitchButtonVisible;
|
|
7337
|
+
}
|
|
7338
|
+
if (props.torchControlVisible !== prevProps.torchControlVisible &&
|
|
7339
|
+
props.torchControlVisible !== undefined) {
|
|
7340
|
+
this.torchControlVisible = props.torchControlVisible;
|
|
7341
|
+
}
|
|
7342
|
+
if (props.previewCloseControlVisible !== prevProps.previewCloseControlVisible &&
|
|
7343
|
+
props.previewCloseControlVisible !== undefined) {
|
|
7344
|
+
this.previewCloseControlVisible = props.previewCloseControlVisible;
|
|
7345
|
+
}
|
|
7346
|
+
if (props.triggerButtonVisible !== prevProps.triggerButtonVisible &&
|
|
7347
|
+
props.triggerButtonVisible !== undefined) {
|
|
7348
|
+
this.triggerButtonVisible = props.triggerButtonVisible;
|
|
7349
|
+
}
|
|
7350
|
+
// Update color customizations
|
|
7351
|
+
if (props.toolbarBackgroundColor !== prevProps.toolbarBackgroundColor &&
|
|
7352
|
+
props.toolbarBackgroundColor !== undefined) {
|
|
7353
|
+
this.toolbarBackgroundColor = props.toolbarBackgroundColor;
|
|
7354
|
+
}
|
|
7355
|
+
if (props.toolbarIconActiveTintColor !== prevProps.toolbarIconActiveTintColor &&
|
|
7356
|
+
props.toolbarIconActiveTintColor !== undefined) {
|
|
7357
|
+
this.toolbarIconActiveTintColor = props.toolbarIconActiveTintColor;
|
|
7358
|
+
}
|
|
7359
|
+
if (props.toolbarIconInactiveTintColor !== prevProps.toolbarIconInactiveTintColor &&
|
|
7360
|
+
props.toolbarIconInactiveTintColor !== undefined) {
|
|
7361
|
+
this.toolbarIconInactiveTintColor = props.toolbarIconInactiveTintColor;
|
|
7362
|
+
}
|
|
7363
|
+
if (props.triggerButtonAnimationColor !== prevProps.triggerButtonAnimationColor &&
|
|
7364
|
+
props.triggerButtonAnimationColor !== undefined) {
|
|
7365
|
+
this.triggerButtonAnimationColor = props.triggerButtonAnimationColor;
|
|
7366
|
+
}
|
|
7367
|
+
if (props.triggerButtonExpandedColor !== prevProps.triggerButtonExpandedColor &&
|
|
7368
|
+
props.triggerButtonExpandedColor !== undefined) {
|
|
7369
|
+
this.triggerButtonExpandedColor = props.triggerButtonExpandedColor;
|
|
7370
|
+
}
|
|
7371
|
+
if (props.triggerButtonCollapsedColor !== prevProps.triggerButtonCollapsedColor &&
|
|
7372
|
+
props.triggerButtonCollapsedColor !== undefined) {
|
|
7373
|
+
this.triggerButtonCollapsedColor = props.triggerButtonCollapsedColor;
|
|
7374
|
+
}
|
|
7375
|
+
if (props.triggerButtonTintColor !== prevProps.triggerButtonTintColor &&
|
|
7376
|
+
props.triggerButtonTintColor !== undefined) {
|
|
7377
|
+
this.triggerButtonTintColor = props.triggerButtonTintColor;
|
|
7378
|
+
}
|
|
7379
|
+
// Update image customizations
|
|
7380
|
+
if (props.triggerButtonImage !== prevProps.triggerButtonImage &&
|
|
7381
|
+
props.triggerButtonImage !== undefined) {
|
|
7382
|
+
this.triggerButtonImage = props.triggerButtonImage;
|
|
7383
|
+
}
|
|
7384
|
+
// Update feedback delegate
|
|
7385
|
+
if (props.feedbackDelegate !== prevProps.feedbackDelegate &&
|
|
7386
|
+
props.feedbackDelegate !== undefined) {
|
|
7387
|
+
this.feedbackDelegate = props.feedbackDelegate;
|
|
7388
|
+
}
|
|
7389
|
+
}
|
|
7238
7390
|
_show() {
|
|
7239
7391
|
if (!this.context) {
|
|
7240
7392
|
throw new Error('There should be a context attached to a view that should be shown');
|
|
7241
7393
|
}
|
|
7242
|
-
return this._controller.
|
|
7394
|
+
return this._controller.showView();
|
|
7243
7395
|
}
|
|
7244
7396
|
_hide() {
|
|
7245
7397
|
if (!this.context) {
|
|
7246
7398
|
throw new Error('There should be a context attached to a view that should be shown');
|
|
7247
7399
|
}
|
|
7248
|
-
return this._controller.
|
|
7400
|
+
return this._controller.hideView();
|
|
7249
7401
|
}
|
|
7250
7402
|
static get sparkScanDefaults() {
|
|
7251
7403
|
return getSparkScanDefaults();
|
|
@@ -7275,10 +7427,11 @@ class BaseSparkScanView {
|
|
|
7275
7427
|
triggerButtonImage: this.triggerButtonImage,
|
|
7276
7428
|
torchControlVisible: this.torchControlVisible,
|
|
7277
7429
|
previewCloseControlVisible: this.previewCloseControlVisible,
|
|
7430
|
+
hasUiListener: this.uiListener !== null,
|
|
7278
7431
|
viewId: this.viewId,
|
|
7279
7432
|
};
|
|
7280
7433
|
if (this._viewSettings != null) {
|
|
7281
|
-
json.viewSettings = (_a = this._viewSettings) === null || _a ===
|
|
7434
|
+
json.viewSettings = (_a = this._viewSettings) === null || _a === void 0 ? void 0 : _a.toJSON();
|
|
7282
7435
|
}
|
|
7283
7436
|
return json;
|
|
7284
7437
|
}
|
|
@@ -7326,7 +7479,7 @@ class SparkScanBarcodeErrorFeedback extends SparkScanBarcodeFeedback {
|
|
|
7326
7479
|
}
|
|
7327
7480
|
__decorate([
|
|
7328
7481
|
nameForSerialization('barcodeFeedback')
|
|
7329
|
-
], SparkScanBarcodeErrorFeedback.prototype, "_barcodeFeedback",
|
|
7482
|
+
], SparkScanBarcodeErrorFeedback.prototype, "_barcodeFeedback", void 0);
|
|
7330
7483
|
__decorate([
|
|
7331
7484
|
ignoreFromSerialization
|
|
7332
7485
|
], SparkScanBarcodeErrorFeedback, "sparkScanDefaults", null);
|
|
@@ -7365,7 +7518,7 @@ class SparkScanBarcodeSuccessFeedback extends SparkScanBarcodeFeedback {
|
|
|
7365
7518
|
}
|
|
7366
7519
|
__decorate([
|
|
7367
7520
|
nameForSerialization('barcodeFeedback')
|
|
7368
|
-
], SparkScanBarcodeSuccessFeedback.prototype, "_barcodeFeedback",
|
|
7521
|
+
], SparkScanBarcodeSuccessFeedback.prototype, "_barcodeFeedback", void 0);
|
|
7369
7522
|
__decorate([
|
|
7370
7523
|
ignoreFromSerialization
|
|
7371
7524
|
], SparkScanBarcodeSuccessFeedback, "sparkScanDefaults", null);
|
|
@@ -7498,19 +7651,19 @@ class BarcodePick extends DefaultSerializeable {
|
|
|
7498
7651
|
}
|
|
7499
7652
|
__decorate([
|
|
7500
7653
|
ignoreFromSerialization
|
|
7501
|
-
], BarcodePick.prototype, "privateContext",
|
|
7654
|
+
], BarcodePick.prototype, "privateContext", void 0);
|
|
7502
7655
|
__decorate([
|
|
7503
7656
|
ignoreFromSerialization
|
|
7504
|
-
], BarcodePick.prototype, "_listenerController",
|
|
7657
|
+
], BarcodePick.prototype, "_listenerController", void 0);
|
|
7505
7658
|
__decorate([
|
|
7506
7659
|
ignoreFromSerialization
|
|
7507
|
-
], BarcodePick.prototype, "listeners",
|
|
7660
|
+
], BarcodePick.prototype, "listeners", void 0);
|
|
7508
7661
|
__decorate([
|
|
7509
7662
|
nameForSerialization('settings')
|
|
7510
|
-
], BarcodePick.prototype, "_settings",
|
|
7663
|
+
], BarcodePick.prototype, "_settings", void 0);
|
|
7511
7664
|
__decorate([
|
|
7512
7665
|
nameForSerialization('ProductProvider')
|
|
7513
|
-
], BarcodePick.prototype, "_productProvider",
|
|
7666
|
+
], BarcodePick.prototype, "_productProvider", void 0);
|
|
7514
7667
|
__decorate([
|
|
7515
7668
|
ignoreFromSerialization
|
|
7516
7669
|
], BarcodePick, "barcodePickDefaults", null);
|
|
@@ -7550,7 +7703,7 @@ class BarcodePickViewController extends BaseController {
|
|
|
7550
7703
|
super('BarcodePickViewProxy');
|
|
7551
7704
|
}
|
|
7552
7705
|
initialize(autoCreateNativeView) {
|
|
7553
|
-
return __awaiter(this,
|
|
7706
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7554
7707
|
// We call update because it returns a promise, this guarantees, that by the time
|
|
7555
7708
|
// we need the deserialized context, it will be set in the native layer.
|
|
7556
7709
|
yield this.view.context.update();
|
|
@@ -7582,7 +7735,7 @@ class BarcodePickViewController extends BaseController {
|
|
|
7582
7735
|
}
|
|
7583
7736
|
removeNativeView() {
|
|
7584
7737
|
var _a, _b, _c;
|
|
7585
|
-
return (_c = (_b = (_a = this._proxy).removeView) === null || _b ===
|
|
7738
|
+
return (_c = (_b = (_a = this._proxy).removeView) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : Promise.resolve();
|
|
7586
7739
|
}
|
|
7587
7740
|
create() {
|
|
7588
7741
|
const barcodePickView = this.view.toJSON();
|
|
@@ -7594,7 +7747,7 @@ class BarcodePickViewController extends BaseController {
|
|
|
7594
7747
|
this.unsubscribeListeners();
|
|
7595
7748
|
}
|
|
7596
7749
|
setUiListener(listener) {
|
|
7597
|
-
return __awaiter(this,
|
|
7750
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7598
7751
|
if (listener) {
|
|
7599
7752
|
yield this._proxy.subscribeBarcodePickViewUiListener();
|
|
7600
7753
|
}
|
|
@@ -7634,7 +7787,7 @@ class BarcodePickViewController extends BaseController {
|
|
|
7634
7787
|
if (!this.view.uiListener) {
|
|
7635
7788
|
return;
|
|
7636
7789
|
}
|
|
7637
|
-
(_b = (_a = this.view) === null || _a ===
|
|
7790
|
+
(_b = (_a = this.view) === null || _a === void 0 ? void 0 : _a.uiListener) === null || _b === void 0 ? void 0 : _b.didTapFinishButton(this);
|
|
7638
7791
|
});
|
|
7639
7792
|
this.eventEmitter.on(BarcodePickViewListenerEvents.DidStartScanning, () => {
|
|
7640
7793
|
this.view.listeners
|
|
@@ -7716,22 +7869,16 @@ class BarcodePickAsyncMapperProductProvider extends DefaultSerializeable {
|
|
|
7716
7869
|
}
|
|
7717
7870
|
__decorate([
|
|
7718
7871
|
ignoreFromSerialization
|
|
7719
|
-
], BarcodePickAsyncMapperProductProvider.prototype, "_callback",
|
|
7872
|
+
], BarcodePickAsyncMapperProductProvider.prototype, "_callback", void 0);
|
|
7720
7873
|
__decorate([
|
|
7721
7874
|
ignoreFromSerialization
|
|
7722
|
-
], BarcodePickAsyncMapperProductProvider.prototype, "_productController",
|
|
7875
|
+
], BarcodePickAsyncMapperProductProvider.prototype, "_productController", void 0);
|
|
7723
7876
|
__decorate([
|
|
7724
7877
|
ignoreFromSerialization
|
|
7725
|
-
], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPick",
|
|
7878
|
+
], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPick", void 0);
|
|
7726
7879
|
__decorate([
|
|
7727
7880
|
nameForSerialization('products')
|
|
7728
|
-
], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPickForSerialization",
|
|
7729
|
-
|
|
7730
|
-
var BarcodePickIconStyle;
|
|
7731
|
-
(function (BarcodePickIconStyle) {
|
|
7732
|
-
BarcodePickIconStyle["Preset_1"] = "preset1";
|
|
7733
|
-
BarcodePickIconStyle["Preset_2"] = "preset2";
|
|
7734
|
-
})(BarcodePickIconStyle || (BarcodePickIconStyle = {}));
|
|
7881
|
+
], BarcodePickAsyncMapperProductProvider.prototype, "_productsToPickForSerialization", void 0);
|
|
7735
7882
|
|
|
7736
7883
|
class BarcodePickProduct extends DefaultSerializeable {
|
|
7737
7884
|
constructor(identifier, quantityToPick) {
|
|
@@ -7748,10 +7895,10 @@ class BarcodePickProduct extends DefaultSerializeable {
|
|
|
7748
7895
|
}
|
|
7749
7896
|
__decorate([
|
|
7750
7897
|
nameForSerialization('identifier')
|
|
7751
|
-
], BarcodePickProduct.prototype, "_identifier",
|
|
7898
|
+
], BarcodePickProduct.prototype, "_identifier", void 0);
|
|
7752
7899
|
__decorate([
|
|
7753
7900
|
nameForSerialization('quantityToPick')
|
|
7754
|
-
], BarcodePickProduct.prototype, "_quantityToPick",
|
|
7901
|
+
], BarcodePickProduct.prototype, "_quantityToPick", void 0);
|
|
7755
7902
|
|
|
7756
7903
|
class BarcodePickProductProviderCallback {
|
|
7757
7904
|
// eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars
|
|
@@ -7775,10 +7922,10 @@ class BarcodePickProductProviderCallbackItem extends DefaultSerializeable {
|
|
|
7775
7922
|
}
|
|
7776
7923
|
__decorate([
|
|
7777
7924
|
nameForSerialization('itemData')
|
|
7778
|
-
], BarcodePickProductProviderCallbackItem.prototype, "_itemData",
|
|
7925
|
+
], BarcodePickProductProviderCallbackItem.prototype, "_itemData", void 0);
|
|
7779
7926
|
__decorate([
|
|
7780
7927
|
nameForSerialization('productIdentifier')
|
|
7781
|
-
], BarcodePickProductProviderCallbackItem.prototype, "_productIdentifier",
|
|
7928
|
+
], BarcodePickProductProviderCallbackItem.prototype, "_productIdentifier", void 0);
|
|
7782
7929
|
|
|
7783
7930
|
class BarcodePickSettings extends DefaultSerializeable {
|
|
7784
7931
|
static get barcodePickDefaults() {
|
|
@@ -7841,16 +7988,16 @@ class BarcodePickSettings extends DefaultSerializeable {
|
|
|
7841
7988
|
}
|
|
7842
7989
|
__decorate([
|
|
7843
7990
|
nameForSerialization('soundEnabled')
|
|
7844
|
-
], BarcodePickSettings.prototype, "_soundEnabled",
|
|
7991
|
+
], BarcodePickSettings.prototype, "_soundEnabled", void 0);
|
|
7845
7992
|
__decorate([
|
|
7846
7993
|
nameForSerialization('hapticEnabled')
|
|
7847
|
-
], BarcodePickSettings.prototype, "_hapticsEnabled",
|
|
7994
|
+
], BarcodePickSettings.prototype, "_hapticsEnabled", void 0);
|
|
7848
7995
|
__decorate([
|
|
7849
7996
|
nameForSerialization('cachingEnabled')
|
|
7850
|
-
], BarcodePickSettings.prototype, "_cachingEnabled",
|
|
7997
|
+
], BarcodePickSettings.prototype, "_cachingEnabled", void 0);
|
|
7851
7998
|
__decorate([
|
|
7852
7999
|
nameForSerialization('arucoDictionary')
|
|
7853
|
-
], BarcodePickSettings.prototype, "_arucoDictionary",
|
|
8000
|
+
], BarcodePickSettings.prototype, "_arucoDictionary", void 0);
|
|
7854
8001
|
__decorate([
|
|
7855
8002
|
ignoreFromSerialization
|
|
7856
8003
|
], BarcodePickSettings, "barcodePickDefaults", null);
|
|
@@ -7898,7 +8045,7 @@ class BaseBarcodePickView extends DefaultSerializeable {
|
|
|
7898
8045
|
this.viewController = BarcodePickViewController.forBarcodePick(this, nativeView, this.autoCreateNativeView);
|
|
7899
8046
|
}
|
|
7900
8047
|
createNativeView() {
|
|
7901
|
-
return __awaiter(this,
|
|
8048
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7902
8049
|
if (this.isViewCreated) {
|
|
7903
8050
|
return Promise.resolve();
|
|
7904
8051
|
}
|
|
@@ -7907,7 +8054,7 @@ class BaseBarcodePickView extends DefaultSerializeable {
|
|
|
7907
8054
|
});
|
|
7908
8055
|
}
|
|
7909
8056
|
removeNativeView() {
|
|
7910
|
-
return __awaiter(this,
|
|
8057
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7911
8058
|
yield this.viewController.removeNativeView();
|
|
7912
8059
|
this.isViewCreated = false;
|
|
7913
8060
|
});
|
|
@@ -7983,28 +8130,28 @@ class BaseBarcodePickView extends DefaultSerializeable {
|
|
|
7983
8130
|
}
|
|
7984
8131
|
__decorate([
|
|
7985
8132
|
ignoreFromSerialization
|
|
7986
|
-
], BaseBarcodePickView.prototype, "viewController",
|
|
8133
|
+
], BaseBarcodePickView.prototype, "viewController", void 0);
|
|
7987
8134
|
__decorate([
|
|
7988
8135
|
ignoreFromSerialization
|
|
7989
|
-
], BaseBarcodePickView.prototype, "actionListeners",
|
|
8136
|
+
], BaseBarcodePickView.prototype, "actionListeners", void 0);
|
|
7990
8137
|
__decorate([
|
|
7991
8138
|
ignoreFromSerialization
|
|
7992
|
-
], BaseBarcodePickView.prototype, "listeners",
|
|
8139
|
+
], BaseBarcodePickView.prototype, "listeners", void 0);
|
|
7993
8140
|
__decorate([
|
|
7994
8141
|
nameForSerialization('isStarted')
|
|
7995
|
-
], BaseBarcodePickView.prototype, "isStarted",
|
|
8142
|
+
], BaseBarcodePickView.prototype, "isStarted", void 0);
|
|
7996
8143
|
__decorate([
|
|
7997
8144
|
ignoreFromSerialization
|
|
7998
|
-
], BaseBarcodePickView.prototype, "_context",
|
|
8145
|
+
], BaseBarcodePickView.prototype, "_context", void 0);
|
|
7999
8146
|
__decorate([
|
|
8000
8147
|
ignoreFromSerialization
|
|
8001
|
-
], BaseBarcodePickView.prototype, "isViewCreated",
|
|
8148
|
+
], BaseBarcodePickView.prototype, "isViewCreated", void 0);
|
|
8002
8149
|
__decorate([
|
|
8003
8150
|
ignoreFromSerialization
|
|
8004
|
-
], BaseBarcodePickView.prototype, "autoCreateNativeView",
|
|
8151
|
+
], BaseBarcodePickView.prototype, "autoCreateNativeView", void 0);
|
|
8005
8152
|
__decorate([
|
|
8006
8153
|
ignoreFromSerialization
|
|
8007
|
-
], BaseBarcodePickView.prototype, "_barcodePickViewUiListener",
|
|
8154
|
+
], BaseBarcodePickView.prototype, "_barcodePickViewUiListener", void 0);
|
|
8008
8155
|
|
|
8009
8156
|
class BarcodePickViewSettings extends DefaultSerializeable {
|
|
8010
8157
|
static get barcodePickDefaults() {
|
|
@@ -8017,7 +8164,8 @@ class BarcodePickViewSettings extends DefaultSerializeable {
|
|
|
8017
8164
|
this._showFinishButton = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.showFinishButton;
|
|
8018
8165
|
this._showPauseButton = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.showPauseButton;
|
|
8019
8166
|
this._showZoomButton = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.showZoomButton;
|
|
8020
|
-
this.
|
|
8167
|
+
this._loadingDialogTextForPicking = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.loadingDialogTextForPicking;
|
|
8168
|
+
this._loadingDialogTextForUnpicking = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.loadingDialogTextForUnpicking;
|
|
8021
8169
|
this._showGuidelines = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.showGuidelines;
|
|
8022
8170
|
this._initialGuidelineText = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.initialGuidelineText;
|
|
8023
8171
|
this._moveCloserGuidelineText = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.moveCloserGuidelineText;
|
|
@@ -8057,11 +8205,17 @@ class BarcodePickViewSettings extends DefaultSerializeable {
|
|
|
8057
8205
|
set showZoomButton(show) {
|
|
8058
8206
|
this._showZoomButton = show;
|
|
8059
8207
|
}
|
|
8060
|
-
get
|
|
8061
|
-
return this.
|
|
8208
|
+
get loadingDialogTextForPicking() {
|
|
8209
|
+
return this._loadingDialogTextForPicking;
|
|
8210
|
+
}
|
|
8211
|
+
set loadingDialogTextForPicking(text) {
|
|
8212
|
+
this._loadingDialogTextForPicking = text;
|
|
8062
8213
|
}
|
|
8063
|
-
|
|
8064
|
-
this.
|
|
8214
|
+
get loadingDialogTextForUnpicking() {
|
|
8215
|
+
return this._loadingDialogTextForUnpicking;
|
|
8216
|
+
}
|
|
8217
|
+
set loadingDialogTextForUnpicking(text) {
|
|
8218
|
+
this._loadingDialogTextForUnpicking = text;
|
|
8065
8219
|
}
|
|
8066
8220
|
get showGuidelines() {
|
|
8067
8221
|
return this._showGuidelines;
|
|
@@ -8114,46 +8268,49 @@ class BarcodePickViewSettings extends DefaultSerializeable {
|
|
|
8114
8268
|
}
|
|
8115
8269
|
__decorate([
|
|
8116
8270
|
nameForSerialization('highlightStyle')
|
|
8117
|
-
], BarcodePickViewSettings.prototype, "_highlightStyle",
|
|
8271
|
+
], BarcodePickViewSettings.prototype, "_highlightStyle", void 0);
|
|
8118
8272
|
__decorate([
|
|
8119
8273
|
nameForSerialization('shouldShowLoadingDialog')
|
|
8120
|
-
], BarcodePickViewSettings.prototype, "_showLoadingDialog",
|
|
8274
|
+
], BarcodePickViewSettings.prototype, "_showLoadingDialog", void 0);
|
|
8121
8275
|
__decorate([
|
|
8122
8276
|
nameForSerialization('showFinishButton')
|
|
8123
|
-
], BarcodePickViewSettings.prototype, "_showFinishButton",
|
|
8277
|
+
], BarcodePickViewSettings.prototype, "_showFinishButton", void 0);
|
|
8124
8278
|
__decorate([
|
|
8125
8279
|
nameForSerialization('showPauseButton')
|
|
8126
|
-
], BarcodePickViewSettings.prototype, "_showPauseButton",
|
|
8280
|
+
], BarcodePickViewSettings.prototype, "_showPauseButton", void 0);
|
|
8127
8281
|
__decorate([
|
|
8128
8282
|
nameForSerialization('showZoomButton')
|
|
8129
|
-
], BarcodePickViewSettings.prototype, "_showZoomButton",
|
|
8283
|
+
], BarcodePickViewSettings.prototype, "_showZoomButton", void 0);
|
|
8284
|
+
__decorate([
|
|
8285
|
+
nameForSerialization('showLoadingDialogTextForPicking')
|
|
8286
|
+
], BarcodePickViewSettings.prototype, "_loadingDialogTextForPicking", void 0);
|
|
8130
8287
|
__decorate([
|
|
8131
|
-
nameForSerialization('
|
|
8132
|
-
], BarcodePickViewSettings.prototype, "
|
|
8288
|
+
nameForSerialization('showLoadingDialogTextForUnpicking')
|
|
8289
|
+
], BarcodePickViewSettings.prototype, "_loadingDialogTextForUnpicking", void 0);
|
|
8133
8290
|
__decorate([
|
|
8134
8291
|
nameForSerialization('shouldShowGuidelines')
|
|
8135
|
-
], BarcodePickViewSettings.prototype, "_showGuidelines",
|
|
8292
|
+
], BarcodePickViewSettings.prototype, "_showGuidelines", void 0);
|
|
8136
8293
|
__decorate([
|
|
8137
8294
|
nameForSerialization('initialGuidelineText')
|
|
8138
|
-
], BarcodePickViewSettings.prototype, "_initialGuidelineText",
|
|
8295
|
+
], BarcodePickViewSettings.prototype, "_initialGuidelineText", void 0);
|
|
8139
8296
|
__decorate([
|
|
8140
8297
|
nameForSerialization('moveCloserGuidelineText')
|
|
8141
|
-
], BarcodePickViewSettings.prototype, "_moveCloserGuidelineText",
|
|
8298
|
+
], BarcodePickViewSettings.prototype, "_moveCloserGuidelineText", void 0);
|
|
8142
8299
|
__decorate([
|
|
8143
8300
|
nameForSerialization('shouldShowHints')
|
|
8144
|
-
], BarcodePickViewSettings.prototype, "_showHints",
|
|
8301
|
+
], BarcodePickViewSettings.prototype, "_showHints", void 0);
|
|
8145
8302
|
__decorate([
|
|
8146
8303
|
nameForSerialization('onFirstItemToPickFoundHintText')
|
|
8147
|
-
], BarcodePickViewSettings.prototype, "_onFirstItemToPickFoundHintText",
|
|
8304
|
+
], BarcodePickViewSettings.prototype, "_onFirstItemToPickFoundHintText", void 0);
|
|
8148
8305
|
__decorate([
|
|
8149
8306
|
nameForSerialization('onFirstItemPickCompletedHintText')
|
|
8150
|
-
], BarcodePickViewSettings.prototype, "_onFirstItemPickCompletedHintText",
|
|
8307
|
+
], BarcodePickViewSettings.prototype, "_onFirstItemPickCompletedHintText", void 0);
|
|
8151
8308
|
__decorate([
|
|
8152
8309
|
nameForSerialization('onFirstUnmarkedItemPickCompletedHintText')
|
|
8153
|
-
], BarcodePickViewSettings.prototype, "_onFirstUnmarkedItemPickCompletedHintText",
|
|
8310
|
+
], BarcodePickViewSettings.prototype, "_onFirstUnmarkedItemPickCompletedHintText", void 0);
|
|
8154
8311
|
__decorate([
|
|
8155
8312
|
nameForSerialization('onFirstItemUnpickCompletedHintText')
|
|
8156
|
-
], BarcodePickViewSettings.prototype, "_onFirstItemUnpickCompletedHintText",
|
|
8313
|
+
], BarcodePickViewSettings.prototype, "_onFirstItemUnpickCompletedHintText", void 0);
|
|
8157
8314
|
__decorate([
|
|
8158
8315
|
ignoreFromSerialization
|
|
8159
8316
|
], BarcodePickViewSettings, "barcodePickDefaults", null);
|
|
@@ -8162,10 +8319,10 @@ class BrushForStateObject extends DefaultSerializeable {
|
|
|
8162
8319
|
}
|
|
8163
8320
|
__decorate([
|
|
8164
8321
|
nameForSerialization('barcodePickState')
|
|
8165
|
-
], BrushForStateObject.prototype, "barcodePickState",
|
|
8322
|
+
], BrushForStateObject.prototype, "barcodePickState", void 0);
|
|
8166
8323
|
__decorate([
|
|
8167
8324
|
nameForSerialization('brush')
|
|
8168
|
-
], BrushForStateObject.prototype, "brush",
|
|
8325
|
+
], BrushForStateObject.prototype, "brush", void 0);
|
|
8169
8326
|
|
|
8170
8327
|
class BarcodePickStatusIconSettings extends DefaultSerializeable {
|
|
8171
8328
|
constructor() {
|
|
@@ -8200,21 +8357,21 @@ class BarcodePickStatusIconSettings extends DefaultSerializeable {
|
|
|
8200
8357
|
return null;
|
|
8201
8358
|
}
|
|
8202
8359
|
const barcodePickStatusIconSettings = new BarcodePickStatusIconSettings();
|
|
8203
|
-
barcodePickStatusIconSettings._ratioToHighlightSize = json === null || json ===
|
|
8204
|
-
barcodePickStatusIconSettings._minSize = json === null || json ===
|
|
8205
|
-
barcodePickStatusIconSettings._maxSize = json === null || json ===
|
|
8360
|
+
barcodePickStatusIconSettings._ratioToHighlightSize = json === null || json === void 0 ? void 0 : json.ratioToHighlightSize;
|
|
8361
|
+
barcodePickStatusIconSettings._minSize = json === null || json === void 0 ? void 0 : json.minSize;
|
|
8362
|
+
barcodePickStatusIconSettings._maxSize = json === null || json === void 0 ? void 0 : json.maxSize;
|
|
8206
8363
|
return barcodePickStatusIconSettings;
|
|
8207
8364
|
}
|
|
8208
8365
|
}
|
|
8209
8366
|
__decorate([
|
|
8210
8367
|
nameForSerialization('ratioToHighlightSize')
|
|
8211
|
-
], BarcodePickStatusIconSettings.prototype, "_ratioToHighlightSize",
|
|
8368
|
+
], BarcodePickStatusIconSettings.prototype, "_ratioToHighlightSize", void 0);
|
|
8212
8369
|
__decorate([
|
|
8213
8370
|
nameForSerialization('minSize')
|
|
8214
|
-
], BarcodePickStatusIconSettings.prototype, "_minSize",
|
|
8371
|
+
], BarcodePickStatusIconSettings.prototype, "_minSize", void 0);
|
|
8215
8372
|
__decorate([
|
|
8216
8373
|
nameForSerialization('maxSize')
|
|
8217
|
-
], BarcodePickStatusIconSettings.prototype, "_maxSize",
|
|
8374
|
+
], BarcodePickStatusIconSettings.prototype, "_maxSize", void 0);
|
|
8218
8375
|
__decorate([
|
|
8219
8376
|
ignoreFromSerialization
|
|
8220
8377
|
], BarcodePickStatusIconSettings, "barcodePickDefaults", null);
|
|
@@ -8239,10 +8396,10 @@ class Dot extends DefaultSerializeable {
|
|
|
8239
8396
|
}
|
|
8240
8397
|
__decorate([
|
|
8241
8398
|
nameForSerialization('type')
|
|
8242
|
-
], Dot.prototype, "_type",
|
|
8399
|
+
], Dot.prototype, "_type", void 0);
|
|
8243
8400
|
__decorate([
|
|
8244
8401
|
nameForSerialization('brushesForState')
|
|
8245
|
-
], Dot.prototype, "_brushesForState",
|
|
8402
|
+
], Dot.prototype, "_brushesForState", void 0);
|
|
8246
8403
|
__decorate([
|
|
8247
8404
|
ignoreFromSerialization
|
|
8248
8405
|
], Dot, "barcodePickDefaults", null);
|
|
@@ -8262,10 +8419,10 @@ class IconForStateObject extends DefaultSerializeable {
|
|
|
8262
8419
|
}
|
|
8263
8420
|
__decorate([
|
|
8264
8421
|
nameForSerialization('barcodePickState')
|
|
8265
|
-
], IconForStateObject.prototype, "_barcodePickState",
|
|
8422
|
+
], IconForStateObject.prototype, "_barcodePickState", void 0);
|
|
8266
8423
|
__decorate([
|
|
8267
8424
|
nameForSerialization('icon')
|
|
8268
|
-
], IconForStateObject.prototype, "_icon",
|
|
8425
|
+
], IconForStateObject.prototype, "_icon", void 0);
|
|
8269
8426
|
|
|
8270
8427
|
class DotWithIcons extends DefaultSerializeable {
|
|
8271
8428
|
static get barcodePickDefaults() {
|
|
@@ -8277,7 +8434,6 @@ class DotWithIcons extends DefaultSerializeable {
|
|
|
8277
8434
|
this._type = 'dotWithIcons';
|
|
8278
8435
|
this._brushesForState = DotWithIcons.barcodePickDefaults.BarcodePickViewHighlightStyle.DotWithIcons.brushesForState;
|
|
8279
8436
|
this._iconsForState = [];
|
|
8280
|
-
this._iconStyle = DotWithIcons.barcodePickDefaults.BarcodePickViewHighlightStyle.DotWithIcons.iconStyle;
|
|
8281
8437
|
}
|
|
8282
8438
|
getBrushForState(state) {
|
|
8283
8439
|
return (this._brushesForState.filter(item => item.barcodePickState === state)[0] || {}).brush;
|
|
@@ -8293,25 +8449,16 @@ class DotWithIcons extends DefaultSerializeable {
|
|
|
8293
8449
|
}
|
|
8294
8450
|
this._iconsForState.push(new IconForStateObject(state, image));
|
|
8295
8451
|
}
|
|
8296
|
-
get iconStyle() {
|
|
8297
|
-
return this._iconStyle;
|
|
8298
|
-
}
|
|
8299
|
-
set iconStyle(style) {
|
|
8300
|
-
this._iconStyle = style;
|
|
8301
|
-
}
|
|
8302
8452
|
}
|
|
8303
8453
|
__decorate([
|
|
8304
8454
|
nameForSerialization('type')
|
|
8305
|
-
], DotWithIcons.prototype, "_type",
|
|
8455
|
+
], DotWithIcons.prototype, "_type", void 0);
|
|
8306
8456
|
__decorate([
|
|
8307
8457
|
nameForSerialization('brushesForState')
|
|
8308
|
-
], DotWithIcons.prototype, "_brushesForState",
|
|
8458
|
+
], DotWithIcons.prototype, "_brushesForState", void 0);
|
|
8309
8459
|
__decorate([
|
|
8310
8460
|
nameForSerialization('iconsForState')
|
|
8311
|
-
], DotWithIcons.prototype, "_iconsForState",
|
|
8312
|
-
__decorate([
|
|
8313
|
-
nameForSerialization('iconStyle')
|
|
8314
|
-
], DotWithIcons.prototype, "_iconStyle", undefined);
|
|
8461
|
+
], DotWithIcons.prototype, "_iconsForState", void 0);
|
|
8315
8462
|
__decorate([
|
|
8316
8463
|
ignoreFromSerialization
|
|
8317
8464
|
], DotWithIcons, "barcodePickDefaults", null);
|
|
@@ -8350,16 +8497,16 @@ class Rectangular extends DefaultSerializeable {
|
|
|
8350
8497
|
}
|
|
8351
8498
|
__decorate([
|
|
8352
8499
|
nameForSerialization('type')
|
|
8353
|
-
], Rectangular.prototype, "_type",
|
|
8500
|
+
], Rectangular.prototype, "_type", void 0);
|
|
8354
8501
|
__decorate([
|
|
8355
8502
|
nameForSerialization('brushesForState')
|
|
8356
|
-
], Rectangular.prototype, "_brushesForState",
|
|
8503
|
+
], Rectangular.prototype, "_brushesForState", void 0);
|
|
8357
8504
|
__decorate([
|
|
8358
8505
|
nameForSerialization('minimumHighlightWidth')
|
|
8359
|
-
], Rectangular.prototype, "_minimumHighlightWidth",
|
|
8506
|
+
], Rectangular.prototype, "_minimumHighlightWidth", void 0);
|
|
8360
8507
|
__decorate([
|
|
8361
8508
|
nameForSerialization('minimumHighlightHeight')
|
|
8362
|
-
], Rectangular.prototype, "_minimumHighlightHeight",
|
|
8509
|
+
], Rectangular.prototype, "_minimumHighlightHeight", void 0);
|
|
8363
8510
|
__decorate([
|
|
8364
8511
|
ignoreFromSerialization
|
|
8365
8512
|
], Rectangular, "barcodePickDefaults", null);
|
|
@@ -8374,7 +8521,6 @@ class RectangularWithIcons extends DefaultSerializeable {
|
|
|
8374
8521
|
this._type = 'rectangularWithIcons';
|
|
8375
8522
|
this._brushesForState = RectangularWithIcons.barcodePickDefaults.BarcodePickViewHighlightStyle.RectangularWithIcons.brushesForState;
|
|
8376
8523
|
this._iconsForState = [];
|
|
8377
|
-
this._iconStyle = RectangularWithIcons.barcodePickDefaults.BarcodePickViewHighlightStyle.RectangularWithIcons.iconStyle;
|
|
8378
8524
|
this._minimumHighlightWidth = RectangularWithIcons.barcodePickDefaults.BarcodePickViewHighlightStyle.RectangularWithIcons.minimumHighlightWidth;
|
|
8379
8525
|
this._minimumHighlightHeight = RectangularWithIcons.barcodePickDefaults.BarcodePickViewHighlightStyle.RectangularWithIcons.minimumHighlightHeight;
|
|
8380
8526
|
}
|
|
@@ -8392,12 +8538,6 @@ class RectangularWithIcons extends DefaultSerializeable {
|
|
|
8392
8538
|
}
|
|
8393
8539
|
this._iconsForState.push(new IconForStateObject(state, image));
|
|
8394
8540
|
}
|
|
8395
|
-
get iconStyle() {
|
|
8396
|
-
return this._iconStyle;
|
|
8397
|
-
}
|
|
8398
|
-
set iconStyle(style) {
|
|
8399
|
-
this._iconStyle = style;
|
|
8400
|
-
}
|
|
8401
8541
|
get statusIconSettings() {
|
|
8402
8542
|
return this._statusIconSettings;
|
|
8403
8543
|
}
|
|
@@ -8419,25 +8559,22 @@ class RectangularWithIcons extends DefaultSerializeable {
|
|
|
8419
8559
|
}
|
|
8420
8560
|
__decorate([
|
|
8421
8561
|
nameForSerialization('type')
|
|
8422
|
-
], RectangularWithIcons.prototype, "_type",
|
|
8562
|
+
], RectangularWithIcons.prototype, "_type", void 0);
|
|
8423
8563
|
__decorate([
|
|
8424
8564
|
nameForSerialization('brushesForState')
|
|
8425
|
-
], RectangularWithIcons.prototype, "_brushesForState",
|
|
8565
|
+
], RectangularWithIcons.prototype, "_brushesForState", void 0);
|
|
8426
8566
|
__decorate([
|
|
8427
8567
|
nameForSerialization('iconsForState')
|
|
8428
|
-
], RectangularWithIcons.prototype, "_iconsForState",
|
|
8429
|
-
__decorate([
|
|
8430
|
-
nameForSerialization('iconStyle')
|
|
8431
|
-
], RectangularWithIcons.prototype, "_iconStyle", undefined);
|
|
8568
|
+
], RectangularWithIcons.prototype, "_iconsForState", void 0);
|
|
8432
8569
|
__decorate([
|
|
8433
8570
|
nameForSerialization('statusIconSettings')
|
|
8434
|
-
], RectangularWithIcons.prototype, "_statusIconSettings",
|
|
8571
|
+
], RectangularWithIcons.prototype, "_statusIconSettings", void 0);
|
|
8435
8572
|
__decorate([
|
|
8436
8573
|
nameForSerialization('minimumHighlightWidth')
|
|
8437
|
-
], RectangularWithIcons.prototype, "_minimumHighlightWidth",
|
|
8574
|
+
], RectangularWithIcons.prototype, "_minimumHighlightWidth", void 0);
|
|
8438
8575
|
__decorate([
|
|
8439
8576
|
nameForSerialization('minimumHighlightHeight')
|
|
8440
|
-
], RectangularWithIcons.prototype, "_minimumHighlightHeight",
|
|
8577
|
+
], RectangularWithIcons.prototype, "_minimumHighlightHeight", void 0);
|
|
8441
8578
|
__decorate([
|
|
8442
8579
|
ignoreFromSerialization
|
|
8443
8580
|
], RectangularWithIcons, "barcodePickDefaults", null);
|
|
@@ -8465,7 +8602,7 @@ class BarcodeFindFeedback extends DefaultSerializeable {
|
|
|
8465
8602
|
}
|
|
8466
8603
|
updateFeedback() {
|
|
8467
8604
|
var _a;
|
|
8468
|
-
(_a = this.controller) === null || _a ===
|
|
8605
|
+
(_a = this.controller) === null || _a === void 0 ? void 0 : _a.updateFeedback(JSON.stringify(this.toJSON()));
|
|
8469
8606
|
}
|
|
8470
8607
|
static get barcodeFindDefaults() {
|
|
8471
8608
|
return getBarcodeFindDefaults();
|
|
@@ -8476,13 +8613,13 @@ class BarcodeFindFeedback extends DefaultSerializeable {
|
|
|
8476
8613
|
}
|
|
8477
8614
|
__decorate([
|
|
8478
8615
|
ignoreFromSerialization
|
|
8479
|
-
], BarcodeFindFeedback.prototype, "controller",
|
|
8616
|
+
], BarcodeFindFeedback.prototype, "controller", void 0);
|
|
8480
8617
|
__decorate([
|
|
8481
8618
|
nameForSerialization('found')
|
|
8482
|
-
], BarcodeFindFeedback.prototype, "_found",
|
|
8619
|
+
], BarcodeFindFeedback.prototype, "_found", void 0);
|
|
8483
8620
|
__decorate([
|
|
8484
8621
|
nameForSerialization('itemListUpdated')
|
|
8485
|
-
], BarcodeFindFeedback.prototype, "_itemListUpdated",
|
|
8622
|
+
], BarcodeFindFeedback.prototype, "_itemListUpdated", void 0);
|
|
8486
8623
|
|
|
8487
8624
|
var BarcodeFindListenerEvents;
|
|
8488
8625
|
(function (BarcodeFindListenerEvents) {
|
|
@@ -8521,7 +8658,7 @@ class BarcodeFindController extends BaseController {
|
|
|
8521
8658
|
this._proxy.setModeEnabledState(isEnabled);
|
|
8522
8659
|
}
|
|
8523
8660
|
setBarcodeTransformer() {
|
|
8524
|
-
return __awaiter(this,
|
|
8661
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8525
8662
|
yield this._proxy.setBarcodeTransformer();
|
|
8526
8663
|
this.subscribeBarcodeFindTransformerEvent();
|
|
8527
8664
|
});
|
|
@@ -8540,7 +8677,7 @@ class BarcodeFindController extends BaseController {
|
|
|
8540
8677
|
console.error('BarcodeFindController onTransformBarcodeData payload is null');
|
|
8541
8678
|
return;
|
|
8542
8679
|
}
|
|
8543
|
-
const transformed = (_a = this._barcodeFind.barcodeTransformer) === null || _a ===
|
|
8680
|
+
const transformed = (_a = this._barcodeFind.barcodeTransformer) === null || _a === void 0 ? void 0 : _a.transformBarcodeData(payload.data);
|
|
8544
8681
|
this._proxy.submitBarcodeFindTransformerResult(transformed);
|
|
8545
8682
|
});
|
|
8546
8683
|
}
|
|
@@ -8550,21 +8687,21 @@ class BarcodeFindController extends BaseController {
|
|
|
8550
8687
|
var _a;
|
|
8551
8688
|
const listeners = this._barcodeFind.listeners;
|
|
8552
8689
|
for (const listener of listeners) {
|
|
8553
|
-
(_a = listener === null || listener ===
|
|
8690
|
+
(_a = listener === null || listener === void 0 ? void 0 : listener.didStartSearch) === null || _a === void 0 ? void 0 : _a.call(listener);
|
|
8554
8691
|
}
|
|
8555
8692
|
});
|
|
8556
8693
|
this.eventEmitter.on(BarcodeFindListenerEvents.onSearchPausedEvent, (data) => {
|
|
8557
8694
|
var _a;
|
|
8558
8695
|
const foundItems = this.filterFoundItemsFromEvent(data);
|
|
8559
8696
|
for (const listener of this._barcodeFind.listeners) {
|
|
8560
|
-
(_a = listener === null || listener ===
|
|
8697
|
+
(_a = listener === null || listener === void 0 ? void 0 : listener.didPauseSearch) === null || _a === void 0 ? void 0 : _a.call(listener, foundItems);
|
|
8561
8698
|
}
|
|
8562
8699
|
});
|
|
8563
8700
|
this.eventEmitter.on(BarcodeFindListenerEvents.onSearchStoppedEvent, (data) => {
|
|
8564
8701
|
var _a;
|
|
8565
8702
|
const foundItems = this.filterFoundItemsFromEvent(data);
|
|
8566
8703
|
for (const listener of this._barcodeFind.listeners) {
|
|
8567
|
-
(_a = listener === null || listener ===
|
|
8704
|
+
(_a = listener === null || listener === void 0 ? void 0 : listener.didStopSearch) === null || _a === void 0 ? void 0 : _a.call(listener, foundItems);
|
|
8568
8705
|
}
|
|
8569
8706
|
});
|
|
8570
8707
|
}
|
|
@@ -8683,28 +8820,28 @@ class BarcodeFind extends DefaultSerializeable {
|
|
|
8683
8820
|
}
|
|
8684
8821
|
__decorate([
|
|
8685
8822
|
nameForSerialization('feedback')
|
|
8686
|
-
], BarcodeFind.prototype, "_feedback",
|
|
8823
|
+
], BarcodeFind.prototype, "_feedback", void 0);
|
|
8687
8824
|
__decorate([
|
|
8688
8825
|
nameForSerialization('enabled')
|
|
8689
|
-
], BarcodeFind.prototype, "_enabled",
|
|
8826
|
+
], BarcodeFind.prototype, "_enabled", void 0);
|
|
8690
8827
|
__decorate([
|
|
8691
8828
|
ignoreFromSerialization
|
|
8692
|
-
], BarcodeFind.prototype, "_isInCallback",
|
|
8829
|
+
], BarcodeFind.prototype, "_isInCallback", void 0);
|
|
8693
8830
|
__decorate([
|
|
8694
8831
|
nameForSerialization('settings')
|
|
8695
|
-
], BarcodeFind.prototype, "_settings",
|
|
8832
|
+
], BarcodeFind.prototype, "_settings", void 0);
|
|
8696
8833
|
__decorate([
|
|
8697
8834
|
nameForSerialization('hasBarcodeTransformer')
|
|
8698
|
-
], BarcodeFind.prototype, "_hasBarcodeTransformer",
|
|
8835
|
+
], BarcodeFind.prototype, "_hasBarcodeTransformer", void 0);
|
|
8699
8836
|
__decorate([
|
|
8700
8837
|
ignoreFromSerialization
|
|
8701
|
-
], BarcodeFind.prototype, "listeners",
|
|
8838
|
+
], BarcodeFind.prototype, "listeners", void 0);
|
|
8702
8839
|
__decorate([
|
|
8703
8840
|
ignoreFromSerialization
|
|
8704
|
-
], BarcodeFind.prototype, "_controller",
|
|
8841
|
+
], BarcodeFind.prototype, "_controller", void 0);
|
|
8705
8842
|
__decorate([
|
|
8706
8843
|
ignoreFromSerialization
|
|
8707
|
-
], BarcodeFind.prototype, "_dataCaptureContext",
|
|
8844
|
+
], BarcodeFind.prototype, "_dataCaptureContext", void 0);
|
|
8708
8845
|
__decorate([
|
|
8709
8846
|
ignoreFromSerialization
|
|
8710
8847
|
], BarcodeFind, "barcodeFindDefaults", null);
|
|
@@ -8724,10 +8861,10 @@ class BarcodeFindItem extends DefaultSerializeable {
|
|
|
8724
8861
|
}
|
|
8725
8862
|
__decorate([
|
|
8726
8863
|
nameForSerialization('searchOptions')
|
|
8727
|
-
], BarcodeFindItem.prototype, "_searchOptions",
|
|
8864
|
+
], BarcodeFindItem.prototype, "_searchOptions", void 0);
|
|
8728
8865
|
__decorate([
|
|
8729
8866
|
nameForSerialization('content')
|
|
8730
|
-
], BarcodeFindItem.prototype, "_content",
|
|
8867
|
+
], BarcodeFindItem.prototype, "_content", void 0);
|
|
8731
8868
|
|
|
8732
8869
|
class BarcodeFindItemContent extends DefaultSerializeable {
|
|
8733
8870
|
constructor(info, additionalInfo, image) {
|
|
@@ -8738,26 +8875,26 @@ class BarcodeFindItemContent extends DefaultSerializeable {
|
|
|
8738
8875
|
}
|
|
8739
8876
|
get info() {
|
|
8740
8877
|
var _a;
|
|
8741
|
-
return (_a = this._info) !== null && _a !==
|
|
8878
|
+
return (_a = this._info) !== null && _a !== void 0 ? _a : null;
|
|
8742
8879
|
}
|
|
8743
8880
|
get additionalInfo() {
|
|
8744
8881
|
var _a;
|
|
8745
|
-
return (_a = this._additionalInfo) !== null && _a !==
|
|
8882
|
+
return (_a = this._additionalInfo) !== null && _a !== void 0 ? _a : null;
|
|
8746
8883
|
}
|
|
8747
8884
|
get image() {
|
|
8748
8885
|
var _a;
|
|
8749
|
-
return (_a = this._image) !== null && _a !==
|
|
8886
|
+
return (_a = this._image) !== null && _a !== void 0 ? _a : null;
|
|
8750
8887
|
}
|
|
8751
8888
|
}
|
|
8752
8889
|
__decorate([
|
|
8753
8890
|
nameForSerialization('info')
|
|
8754
|
-
], BarcodeFindItemContent.prototype, "_info",
|
|
8891
|
+
], BarcodeFindItemContent.prototype, "_info", void 0);
|
|
8755
8892
|
__decorate([
|
|
8756
8893
|
nameForSerialization('additionalInfo')
|
|
8757
|
-
], BarcodeFindItemContent.prototype, "_additionalInfo",
|
|
8894
|
+
], BarcodeFindItemContent.prototype, "_additionalInfo", void 0);
|
|
8758
8895
|
__decorate([
|
|
8759
8896
|
nameForSerialization('image')
|
|
8760
|
-
], BarcodeFindItemContent.prototype, "_image",
|
|
8897
|
+
], BarcodeFindItemContent.prototype, "_image", void 0);
|
|
8761
8898
|
|
|
8762
8899
|
class BarcodeFindItemSearchOptions extends DefaultSerializeable {
|
|
8763
8900
|
constructor(barcodeData) {
|
|
@@ -8779,10 +8916,10 @@ class BarcodeFindItemSearchOptions extends DefaultSerializeable {
|
|
|
8779
8916
|
}
|
|
8780
8917
|
__decorate([
|
|
8781
8918
|
nameForSerialization("barcodeData")
|
|
8782
|
-
], BarcodeFindItemSearchOptions.prototype, "_barcodeData",
|
|
8919
|
+
], BarcodeFindItemSearchOptions.prototype, "_barcodeData", void 0);
|
|
8783
8920
|
__decorate([
|
|
8784
8921
|
nameForSerialization("brush")
|
|
8785
|
-
], BarcodeFindItemSearchOptions.prototype, "_brush",
|
|
8922
|
+
], BarcodeFindItemSearchOptions.prototype, "_brush", void 0);
|
|
8786
8923
|
|
|
8787
8924
|
class BarcodeFindSettings extends DefaultSerializeable {
|
|
8788
8925
|
constructor() {
|
|
@@ -8820,10 +8957,10 @@ class BarcodeFindSettings extends DefaultSerializeable {
|
|
|
8820
8957
|
}
|
|
8821
8958
|
__decorate([
|
|
8822
8959
|
nameForSerialization('symbologies')
|
|
8823
|
-
], BarcodeFindSettings.prototype, "_symbologies",
|
|
8960
|
+
], BarcodeFindSettings.prototype, "_symbologies", void 0);
|
|
8824
8961
|
__decorate([
|
|
8825
8962
|
nameForSerialization('properties')
|
|
8826
|
-
], BarcodeFindSettings.prototype, "_properties",
|
|
8963
|
+
], BarcodeFindSettings.prototype, "_properties", void 0);
|
|
8827
8964
|
__decorate([
|
|
8828
8965
|
ignoreFromSerialization
|
|
8829
8966
|
], BarcodeFindSettings, "barcodeDefaults", null);
|
|
@@ -8862,22 +8999,22 @@ class BarcodeFindViewSettings extends DefaultSerializeable {
|
|
|
8862
8999
|
}
|
|
8863
9000
|
__decorate([
|
|
8864
9001
|
nameForSerialization('inListItemColor')
|
|
8865
|
-
], BarcodeFindViewSettings.prototype, "_inListItemColor",
|
|
9002
|
+
], BarcodeFindViewSettings.prototype, "_inListItemColor", void 0);
|
|
8866
9003
|
__decorate([
|
|
8867
9004
|
nameForSerialization('notInListItemColor')
|
|
8868
|
-
], BarcodeFindViewSettings.prototype, "_notInListItemColor",
|
|
9005
|
+
], BarcodeFindViewSettings.prototype, "_notInListItemColor", void 0);
|
|
8869
9006
|
__decorate([
|
|
8870
9007
|
nameForSerialization('soundEnabled')
|
|
8871
|
-
], BarcodeFindViewSettings.prototype, "_soundEnabled",
|
|
9008
|
+
], BarcodeFindViewSettings.prototype, "_soundEnabled", void 0);
|
|
8872
9009
|
__decorate([
|
|
8873
9010
|
nameForSerialization('hapticEnabled')
|
|
8874
|
-
], BarcodeFindViewSettings.prototype, "_hapticEnabled",
|
|
9011
|
+
], BarcodeFindViewSettings.prototype, "_hapticEnabled", void 0);
|
|
8875
9012
|
__decorate([
|
|
8876
9013
|
nameForSerialization('hardwareTriggerEnabled')
|
|
8877
|
-
], BarcodeFindViewSettings.prototype, "_hardwareTriggerEnabled",
|
|
9014
|
+
], BarcodeFindViewSettings.prototype, "_hardwareTriggerEnabled", void 0);
|
|
8878
9015
|
__decorate([
|
|
8879
9016
|
nameForSerialization('hardwareTriggerKeyCode')
|
|
8880
|
-
], BarcodeFindViewSettings.prototype, "_hardwareTriggerKeyCode",
|
|
9017
|
+
], BarcodeFindViewSettings.prototype, "_hardwareTriggerKeyCode", void 0);
|
|
8881
9018
|
|
|
8882
9019
|
var BarcodeFindViewEvents;
|
|
8883
9020
|
(function (BarcodeFindViewEvents) {
|
|
@@ -8898,7 +9035,7 @@ class BarcodeFindViewController extends BaseController {
|
|
|
8898
9035
|
return viewController;
|
|
8899
9036
|
}
|
|
8900
9037
|
setUiListener(listener) {
|
|
8901
|
-
return __awaiter(this,
|
|
9038
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8902
9039
|
if (listener && !this.isListenerEnabled) {
|
|
8903
9040
|
this.isListenerEnabled = true;
|
|
8904
9041
|
this.subscribeToEvents();
|
|
@@ -8933,7 +9070,7 @@ class BarcodeFindViewController extends BaseController {
|
|
|
8933
9070
|
}
|
|
8934
9071
|
removeNativeView() {
|
|
8935
9072
|
var _a, _b, _c;
|
|
8936
|
-
return (_c = (_b = (_a = this._proxy).removeView) === null || _b ===
|
|
9073
|
+
return (_c = (_b = (_a = this._proxy).removeView) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : Promise.resolve();
|
|
8937
9074
|
}
|
|
8938
9075
|
create() {
|
|
8939
9076
|
const barcodeFindView = this.baseView.toJSON();
|
|
@@ -8942,7 +9079,7 @@ class BarcodeFindViewController extends BaseController {
|
|
|
8942
9079
|
return this._proxy.createView(id, json);
|
|
8943
9080
|
}
|
|
8944
9081
|
initialize() {
|
|
8945
|
-
return __awaiter(this,
|
|
9082
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8946
9083
|
yield this.baseView.context.update();
|
|
8947
9084
|
if (this.autoCreateNativeView) {
|
|
8948
9085
|
yield this.create();
|
|
@@ -8957,7 +9094,7 @@ class BarcodeFindViewController extends BaseController {
|
|
|
8957
9094
|
return;
|
|
8958
9095
|
}
|
|
8959
9096
|
const { foundItems: barcodeFindItems = [] } = JSON.parse(data);
|
|
8960
|
-
(_b = (_a = this.baseView) === null || _a ===
|
|
9097
|
+
(_b = (_a = this.baseView) === null || _a === void 0 ? void 0 : _a.barcodeFindViewUiListener) === null || _b === void 0 ? void 0 : _b.didTapFinishButton(barcodeFindItems);
|
|
8961
9098
|
});
|
|
8962
9099
|
}
|
|
8963
9100
|
unsubscribeToEvents() {
|
|
@@ -8970,7 +9107,7 @@ class BarcodeFindViewController extends BaseController {
|
|
|
8970
9107
|
}
|
|
8971
9108
|
__decorate([
|
|
8972
9109
|
ignoreFromSerialization
|
|
8973
|
-
], BarcodeFindViewController.prototype, "autoCreateNativeView",
|
|
9110
|
+
], BarcodeFindViewController.prototype, "autoCreateNativeView", void 0);
|
|
8974
9111
|
|
|
8975
9112
|
class BaseBarcodeFindView {
|
|
8976
9113
|
get barcodeFindViewUiListener() {
|
|
@@ -9034,7 +9171,7 @@ class BaseBarcodeFindView {
|
|
|
9034
9171
|
return BaseBarcodeFindView.barcodeFindViewDefaults.hardwareTriggerSupported;
|
|
9035
9172
|
}
|
|
9036
9173
|
createNativeView() {
|
|
9037
|
-
return __awaiter(this,
|
|
9174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9038
9175
|
if (this.isViewCreated) {
|
|
9039
9176
|
return Promise.resolve();
|
|
9040
9177
|
}
|
|
@@ -9043,7 +9180,7 @@ class BaseBarcodeFindView {
|
|
|
9043
9180
|
});
|
|
9044
9181
|
}
|
|
9045
9182
|
removeNativeView() {
|
|
9046
|
-
return __awaiter(this,
|
|
9183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9047
9184
|
yield this.controller.removeNativeView();
|
|
9048
9185
|
this.isViewCreated = false;
|
|
9049
9186
|
});
|
|
@@ -9189,7 +9326,7 @@ class BaseBarcodeFindView {
|
|
|
9189
9326
|
shouldShowFinishButton: this.shouldShowFinishButton,
|
|
9190
9327
|
shouldShowProgressBar: this.shouldShowProgressBar,
|
|
9191
9328
|
shouldShowTorchControl: this.shouldShowTorchControl,
|
|
9192
|
-
torchControlPosition: (_a = this.torchControlPosition) === null || _a ===
|
|
9329
|
+
torchControlPosition: (_a = this.torchControlPosition) === null || _a === void 0 ? void 0 : _a.toString(),
|
|
9193
9330
|
textForCollapseCardsButton: this.textForCollapseCardsButton,
|
|
9194
9331
|
textForAllItemsFoundSuccessfullyHint: this.textForAllItemsFoundSuccessfullyHint,
|
|
9195
9332
|
textForItemListUpdatedHint: this.textForItemListUpdatedHint,
|
|
@@ -9205,20 +9342,20 @@ class BaseBarcodeFindView {
|
|
|
9205
9342
|
BarcodeFind: this._barcodeFind.toJSON()
|
|
9206
9343
|
};
|
|
9207
9344
|
if (this._barcodeFindViewSettings != null) {
|
|
9208
|
-
json.View.viewSettings = (_b = this._barcodeFindViewSettings) === null || _b ===
|
|
9345
|
+
json.View.viewSettings = (_b = this._barcodeFindViewSettings) === null || _b === void 0 ? void 0 : _b.toJSON();
|
|
9209
9346
|
}
|
|
9210
9347
|
if (this._cameraSettings != null) {
|
|
9211
|
-
json.View.cameraSettings = (_c = this._cameraSettings) === null || _c ===
|
|
9348
|
+
json.View.cameraSettings = (_c = this._cameraSettings) === null || _c === void 0 ? void 0 : _c.toJSON();
|
|
9212
9349
|
}
|
|
9213
9350
|
return json;
|
|
9214
9351
|
}
|
|
9215
9352
|
}
|
|
9216
9353
|
__decorate([
|
|
9217
9354
|
ignoreFromSerialization
|
|
9218
|
-
], BaseBarcodeFindView.prototype, "isViewCreated",
|
|
9355
|
+
], BaseBarcodeFindView.prototype, "isViewCreated", void 0);
|
|
9219
9356
|
__decorate([
|
|
9220
9357
|
ignoreFromSerialization
|
|
9221
|
-
], BaseBarcodeFindView.prototype, "autoCreateNativeView",
|
|
9358
|
+
], BaseBarcodeFindView.prototype, "autoCreateNativeView", void 0);
|
|
9222
9359
|
|
|
9223
9360
|
class BarcodeGeneratorCreationOptions {
|
|
9224
9361
|
constructor(backgroundColor = null, foregroundColor = null, errorCorrectionLevel = null, versionNumber = null, minimumErrorCorrectionPercent = null, layers = null) {
|
|
@@ -9310,7 +9447,7 @@ class BarcodeGeneratorController {
|
|
|
9310
9447
|
return controller;
|
|
9311
9448
|
}
|
|
9312
9449
|
initialize() {
|
|
9313
|
-
return __awaiter(this,
|
|
9450
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9314
9451
|
// We call update because it returns a promise, this guarantees, that by the time
|
|
9315
9452
|
// we need the deserialized context, it will be set in the native layer.
|
|
9316
9453
|
yield this.generator.dataCaptureContext.update();
|
|
@@ -9321,7 +9458,7 @@ class BarcodeGeneratorController {
|
|
|
9321
9458
|
return this._proxy.create(JSON.stringify(this.generator.toJSON()));
|
|
9322
9459
|
}
|
|
9323
9460
|
generateFromBase64EncodedData(data, imageWidth) {
|
|
9324
|
-
return __awaiter(this,
|
|
9461
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9325
9462
|
const result = yield this._proxy.generateFromBase64EncodedData(this.generator.id, data, imageWidth);
|
|
9326
9463
|
if (result == null) {
|
|
9327
9464
|
return '';
|
|
@@ -9330,7 +9467,7 @@ class BarcodeGeneratorController {
|
|
|
9330
9467
|
});
|
|
9331
9468
|
}
|
|
9332
9469
|
generate(text, imageWidth) {
|
|
9333
|
-
return __awaiter(this,
|
|
9470
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9334
9471
|
const result = yield this._proxy.generate(this.generator.id, text, imageWidth);
|
|
9335
9472
|
if (result == null) {
|
|
9336
9473
|
return '';
|
|
@@ -9374,7 +9511,7 @@ class BarcodeGenerator extends DefaultSerializeable {
|
|
|
9374
9511
|
this.versionNumber = versionNumber;
|
|
9375
9512
|
}
|
|
9376
9513
|
initialize() {
|
|
9377
|
-
return __awaiter(this,
|
|
9514
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9378
9515
|
this.controller = BarcodeGeneratorController.forBarcodeGenerator(this);
|
|
9379
9516
|
this.initializationPromise = this.controller.initialize();
|
|
9380
9517
|
return this.initializationPromise;
|
|
@@ -9386,13 +9523,13 @@ class BarcodeGenerator extends DefaultSerializeable {
|
|
|
9386
9523
|
return generator;
|
|
9387
9524
|
}
|
|
9388
9525
|
generate(text, imageWidth) {
|
|
9389
|
-
return __awaiter(this,
|
|
9526
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9390
9527
|
yield this.initializationPromise;
|
|
9391
9528
|
return this.controller.generate(text, imageWidth);
|
|
9392
9529
|
});
|
|
9393
9530
|
}
|
|
9394
9531
|
generateFromBase64EncodedData(data, imageWidth) {
|
|
9395
|
-
return __awaiter(this,
|
|
9532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9396
9533
|
yield this.initializationPromise;
|
|
9397
9534
|
return this.controller.generateFromBase64EncodedData(data, imageWidth);
|
|
9398
9535
|
});
|
|
@@ -9427,13 +9564,13 @@ class BarcodeGenerator extends DefaultSerializeable {
|
|
|
9427
9564
|
}
|
|
9428
9565
|
__decorate([
|
|
9429
9566
|
nameForSerialization('id')
|
|
9430
|
-
], BarcodeGenerator.prototype, "_id",
|
|
9567
|
+
], BarcodeGenerator.prototype, "_id", void 0);
|
|
9431
9568
|
__decorate([
|
|
9432
9569
|
ignoreFromSerialization
|
|
9433
|
-
], BarcodeGenerator.prototype, "dataCaptureContext",
|
|
9570
|
+
], BarcodeGenerator.prototype, "dataCaptureContext", void 0);
|
|
9434
9571
|
__decorate([
|
|
9435
9572
|
ignoreFromSerialization
|
|
9436
|
-
], BarcodeGenerator.prototype, "controller",
|
|
9573
|
+
], BarcodeGenerator.prototype, "controller", void 0);
|
|
9437
9574
|
|
|
9438
9575
|
var QrCodeErrorCorrectionLevel;
|
|
9439
9576
|
(function (QrCodeErrorCorrectionLevel) {
|
|
@@ -9443,4 +9580,4 @@ var QrCodeErrorCorrectionLevel;
|
|
|
9443
9580
|
QrCodeErrorCorrectionLevel["High"] = "high";
|
|
9444
9581
|
})(QrCodeErrorCorrectionLevel || (QrCodeErrorCorrectionLevel = {}));
|
|
9445
9582
|
|
|
9446
|
-
export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, Barcode,
|
|
9583
|
+
export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, Barcode, BarcodeAr, BarcodeArAnnotationTrigger, BarcodeArCircleHighlight, BarcodeArCircleHighlightPreset, BarcodeArFeedback, BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor, BarcodeArInfoAnnotationBodyComponent, BarcodeArInfoAnnotationFooter, BarcodeArInfoAnnotationHeader, BarcodeArInfoAnnotationWidthPreset, BarcodeArListenerController, BarcodeArListenerEvents, BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationButton, BarcodeArRectangleHighlight, BarcodeArSession, BarcodeArSessionController, BarcodeArSettings, BarcodeArStatusIconAnnotation, BarcodeArViewController, BarcodeArViewEvents, BarcodeArViewSettings, BarcodeBatch, BarcodeBatchAdvancedOverlayController, BarcodeBatchAdvancedOverlayListenerEvents, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayController, BarcodeBatchBasicOverlayListenerEvents, BarcodeBatchBasicOverlayStyle, BarcodeBatchListenerController, BarcodeBatchListenerEvents, BarcodeBatchScenario, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureListenerController, BarcodeCaptureListenerEvents, BarcodeCaptureOverlay, BarcodeCaptureOverlayStyle, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountListenerController, BarcodeCountListenerEvents, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSessionController, BarcodeCountSettings, BarcodeCountToolbarSettings, BarcodeCountViewController, BarcodeCountViewEvents, BarcodeCountViewStyle, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindController, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindListenerEvents, BarcodeFindSettings, BarcodeFindViewEvents, BarcodeFindViewSettings, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeGeneratorController, BarcodePick, BarcodePickActionCallback, BarcodePickAsyncMapperProductProvider, BarcodePickEvents, BarcodePickListenerController, BarcodePickListenerEvents, BarcodePickProduct, BarcodePickProductController, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickViewController, BarcodePickViewListenerEvents, BarcodePickViewSettings, BarcodePickViewUiListenerEvents, BarcodeSelection, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionBrushProviderEvents, BarcodeSelectionController, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionListenerController, BarcodeSelectionListenerEvents, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionOverlayController, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionStrategyType, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BarcodeSelectionTypeName, BarcodeSpatialGrid, BaseBarcodeArView, BaseBarcodeBatchAdvancedOverlay, BaseBarcodeCountView, BaseBarcodeFindView, BaseBarcodePickView, BaseSparkScanView, BatterySavingMode, BrushForStateObject, Checksum, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, PrivateBarcodeSelectionStrategy, PrivateBarcodeSelectionType, QrCodeBarcodeGeneratorBuilder, QrCodeErrorCorrectionLevel, Range, Rectangular, RectangularWithIcons, SparkScan, SparkScanBarcodeErrorFeedback, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior, SparkScanScanningModeDefault, SparkScanScanningModeTarget, SparkScanSession, SparkScanSettings, SparkScanToastSettings, SparkScanViewController, SparkScanViewEvents, SparkScanViewSettings, SparkScanViewState, StructuredAppendData, Symbology, SymbologyDescription, SymbologySettings, TargetBarcode, TrackedBarcode, UpcaBarcodeGeneratorBuilder, getBarcodeArDefaults, getBarcodeBatchDefaults, getBarcodeCaptureDefaults, getBarcodeCountDefaults, getBarcodeDefaults, getBarcodeFindDefaults, getBarcodePickDefaults, getBarcodeSelectionDefaults, getSparkScanDefaults, loadBarcodeArDefaults, loadBarcodeBatchDefaults, loadBarcodeCaptureDefaults, loadBarcodeCountDefaults, loadBarcodeDefaults, loadBarcodeFindDefaults, loadBarcodePickDefaults, loadBarcodeSelectionDefaults, loadSparkScanDefaults };
|