scandit-capacitor-datacapture-barcode 8.4.1 → 8.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Package.swift +2 -2
- package/ScanditCapacitorDatacaptureBarcode.podspec +1 -1
- package/THIRD_PARTY.txt +201 -0
- package/android/build.gradle +1 -1
- package/dist/barcode.js +1109 -687
- package/dist/barcode.js.map +1 -1
- package/dist/dts/definitions.d.ts +5 -1
- package/dist/dts/ts/BarcodeCountView.d.ts +1 -1
- package/dist/dts/ts/SparkScanView.d.ts +2 -0
- package/dist/index.js +24 -17
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
package/dist/barcode.js
CHANGED
|
@@ -1,22 +1,41 @@
|
|
|
1
1
|
import { nameForSerialization, ignoreFromSerializationIfNull, serializationDefault, NoViewfinder, NoneLocationSelection, DefaultSerializeable, ignoreFromSerialization, Quadrilateral, Point, FactoryMaker, Feedback, BaseController, FrameDataController, CameraSettings, Observable, TextAlignment, FontFamily, AimerViewfinder, Brush, EventDataParser, SKIP, generateIdentifier, ScanditIcon, registerProxies, Color, NumberWithUnit } from 'scandit-capacitor-datacapture-core/dist/core';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
3
|
+
var Symbology;
|
|
4
|
+
(function (Symbology) {
|
|
5
|
+
Symbology["EAN13UPCA"] = "ean13Upca";
|
|
6
|
+
Symbology["UPCE"] = "upce";
|
|
7
|
+
Symbology["EAN8"] = "ean8";
|
|
8
|
+
Symbology["Code39"] = "code39";
|
|
9
|
+
Symbology["Code93"] = "code93";
|
|
10
|
+
Symbology["Code128"] = "code128";
|
|
11
|
+
Symbology["Code11"] = "code11";
|
|
12
|
+
Symbology["Code25"] = "code25";
|
|
13
|
+
Symbology["Codabar"] = "codabar";
|
|
14
|
+
Symbology["InterleavedTwoOfFive"] = "interleavedTwoOfFive";
|
|
15
|
+
Symbology["MSIPlessey"] = "msiPlessey";
|
|
16
|
+
Symbology["QR"] = "qr";
|
|
17
|
+
Symbology["DataMatrix"] = "dataMatrix";
|
|
18
|
+
Symbology["Aztec"] = "aztec";
|
|
19
|
+
Symbology["MaxiCode"] = "maxicode";
|
|
20
|
+
Symbology["DotCode"] = "dotcode";
|
|
21
|
+
Symbology["KIX"] = "kix";
|
|
22
|
+
Symbology["RoyalMail4state"] = "royal-mail-4state";
|
|
23
|
+
Symbology["GS1Databar"] = "databar";
|
|
24
|
+
Symbology["GS1DatabarExpanded"] = "databarExpanded";
|
|
25
|
+
Symbology["GS1DatabarLimited"] = "databarLimited";
|
|
26
|
+
Symbology["PDF417"] = "pdf417";
|
|
27
|
+
Symbology["MicroPDF417"] = "microPdf417";
|
|
28
|
+
Symbology["MicroQR"] = "microQr";
|
|
29
|
+
Symbology["Code32"] = "code32";
|
|
30
|
+
Symbology["Lapa4SC"] = "lapa4sc";
|
|
31
|
+
Symbology["IATATwoOfFive"] = "iata2of5";
|
|
32
|
+
Symbology["MatrixTwoOfFive"] = "matrix2of5";
|
|
33
|
+
Symbology["USPSIntelligentMail"] = "uspsIntelligentMail";
|
|
34
|
+
Symbology["ArUco"] = "aruco";
|
|
35
|
+
Symbology["Upu4State"] = "upu-4state";
|
|
36
|
+
Symbology["AustralianPost"] = "australian-post-4state";
|
|
37
|
+
Symbology["FrenchPost"] = "french-post";
|
|
38
|
+
})(Symbology || (Symbology = {}));
|
|
20
39
|
|
|
21
40
|
/******************************************************************************
|
|
22
41
|
Copyright (c) Microsoft Corporation.
|
|
@@ -57,6 +76,257 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
57
76
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
58
77
|
};
|
|
59
78
|
|
|
79
|
+
class Range extends DefaultSerializeable {
|
|
80
|
+
get minimum() {
|
|
81
|
+
return this._minimum;
|
|
82
|
+
}
|
|
83
|
+
get maximum() {
|
|
84
|
+
return this._maximum;
|
|
85
|
+
}
|
|
86
|
+
get step() {
|
|
87
|
+
return this._step;
|
|
88
|
+
}
|
|
89
|
+
get isFixed() {
|
|
90
|
+
return this.minimum === this.maximum || this.step <= 0;
|
|
91
|
+
}
|
|
92
|
+
static fromJSON(json) {
|
|
93
|
+
const range = new Range();
|
|
94
|
+
range._minimum = json.minimum;
|
|
95
|
+
range._maximum = json.maximum;
|
|
96
|
+
range._step = json.step;
|
|
97
|
+
return range;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
__decorate([
|
|
101
|
+
nameForSerialization('minimum')
|
|
102
|
+
], Range.prototype, "_minimum", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
nameForSerialization('maximum')
|
|
105
|
+
], Range.prototype, "_maximum", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
nameForSerialization('step')
|
|
108
|
+
], Range.prototype, "_step", void 0);
|
|
109
|
+
|
|
110
|
+
class SymbologyDescription {
|
|
111
|
+
static get all() {
|
|
112
|
+
return this.defaults().SymbologyDescriptions;
|
|
113
|
+
}
|
|
114
|
+
get identifier() {
|
|
115
|
+
return this._identifier;
|
|
116
|
+
}
|
|
117
|
+
get symbology() {
|
|
118
|
+
return this.identifier;
|
|
119
|
+
}
|
|
120
|
+
get readableName() {
|
|
121
|
+
return this._readableName;
|
|
122
|
+
}
|
|
123
|
+
get isAvailable() {
|
|
124
|
+
return this._isAvailable;
|
|
125
|
+
}
|
|
126
|
+
get isColorInvertible() {
|
|
127
|
+
return this._isColorInvertible;
|
|
128
|
+
}
|
|
129
|
+
get activeSymbolCountRange() {
|
|
130
|
+
return this._activeSymbolCountRange;
|
|
131
|
+
}
|
|
132
|
+
get defaultSymbolCountRange() {
|
|
133
|
+
return this._defaultSymbolCountRange;
|
|
134
|
+
}
|
|
135
|
+
get supportedExtensions() {
|
|
136
|
+
return this._supportedExtensions;
|
|
137
|
+
}
|
|
138
|
+
static forIdentifier(identifier) {
|
|
139
|
+
const identifierIndex = SymbologyDescription.all.findIndex(description => description.identifier === identifier);
|
|
140
|
+
if (identifierIndex === -1) {
|
|
141
|
+
return null;
|
|
142
|
+
}
|
|
143
|
+
return new SymbologyDescription(identifier);
|
|
144
|
+
}
|
|
145
|
+
static fromJSON(json) {
|
|
146
|
+
const symbologyDescription = new SymbologyDescription();
|
|
147
|
+
symbologyDescription._identifier = json.identifier;
|
|
148
|
+
symbologyDescription._readableName = json.readableName;
|
|
149
|
+
symbologyDescription._isAvailable = json.isAvailable;
|
|
150
|
+
symbologyDescription._isColorInvertible = json.isColorInvertible;
|
|
151
|
+
symbologyDescription._activeSymbolCountRange = Range['fromJSON'](json.activeSymbolCountRange);
|
|
152
|
+
symbologyDescription._defaultSymbolCountRange = Range['fromJSON'](json.defaultSymbolCountRange);
|
|
153
|
+
symbologyDescription._supportedExtensions = json.supportedExtensions;
|
|
154
|
+
return symbologyDescription;
|
|
155
|
+
}
|
|
156
|
+
constructor(symbology) {
|
|
157
|
+
if (!symbology) {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
return SymbologyDescription.all[SymbologyDescription.all.findIndex(description => description.identifier === symbology.toString())];
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
var CompositeType;
|
|
165
|
+
(function (CompositeType) {
|
|
166
|
+
CompositeType["A"] = "A";
|
|
167
|
+
CompositeType["B"] = "B";
|
|
168
|
+
CompositeType["C"] = "C";
|
|
169
|
+
})(CompositeType || (CompositeType = {}));
|
|
170
|
+
|
|
171
|
+
var Checksum;
|
|
172
|
+
(function (Checksum) {
|
|
173
|
+
Checksum["Mod10"] = "mod10";
|
|
174
|
+
Checksum["Mod11"] = "mod11";
|
|
175
|
+
Checksum["Mod16"] = "mod16";
|
|
176
|
+
Checksum["Mod43"] = "mod43";
|
|
177
|
+
Checksum["Mod47"] = "mod47";
|
|
178
|
+
Checksum["Mod103"] = "mod103";
|
|
179
|
+
Checksum["Mod10AndMod11"] = "mod1110";
|
|
180
|
+
Checksum["Mod10AndMod10"] = "mod1010";
|
|
181
|
+
})(Checksum || (Checksum = {}));
|
|
182
|
+
|
|
183
|
+
class SymbologySettings extends DefaultSerializeable {
|
|
184
|
+
get symbology() {
|
|
185
|
+
return this._symbology;
|
|
186
|
+
}
|
|
187
|
+
get enabledExtensions() {
|
|
188
|
+
return this.extensions;
|
|
189
|
+
}
|
|
190
|
+
static fromJSON(identifier, json) {
|
|
191
|
+
const symbologySettings = new SymbologySettings();
|
|
192
|
+
symbologySettings.extensions = json.extensions;
|
|
193
|
+
symbologySettings.isEnabled = json.enabled;
|
|
194
|
+
symbologySettings.isColorInvertedEnabled = json.colorInvertedEnabled;
|
|
195
|
+
symbologySettings.checksums = json.checksums;
|
|
196
|
+
symbologySettings.activeSymbolCounts = json.activeSymbolCounts;
|
|
197
|
+
symbologySettings._symbology = identifier;
|
|
198
|
+
return symbologySettings;
|
|
199
|
+
}
|
|
200
|
+
setExtensionEnabled(extension, enabled) {
|
|
201
|
+
const included = this.extensions.includes(extension);
|
|
202
|
+
if (enabled && !included) {
|
|
203
|
+
this.extensions.push(extension);
|
|
204
|
+
}
|
|
205
|
+
else if (!enabled && included) {
|
|
206
|
+
this.extensions.splice(this.extensions.indexOf(extension), 1);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
__decorate([
|
|
211
|
+
nameForSerialization('enabled')
|
|
212
|
+
], SymbologySettings.prototype, "isEnabled", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
nameForSerialization('colorInvertedEnabled')
|
|
215
|
+
], SymbologySettings.prototype, "isColorInvertedEnabled", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
ignoreFromSerialization
|
|
218
|
+
], SymbologySettings.prototype, "_symbology", void 0);
|
|
219
|
+
|
|
220
|
+
class Ean13UpcaClassification {
|
|
221
|
+
static isUpca(barcode) {
|
|
222
|
+
var _a, _b, _c;
|
|
223
|
+
if (barcode.symbology !== Symbology.EAN13UPCA) {
|
|
224
|
+
return false;
|
|
225
|
+
}
|
|
226
|
+
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');
|
|
227
|
+
}
|
|
228
|
+
static isEan13(barcode) {
|
|
229
|
+
var _a, _b;
|
|
230
|
+
if (barcode.symbology !== Symbology.EAN13UPCA) {
|
|
231
|
+
return false;
|
|
232
|
+
}
|
|
233
|
+
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';
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
class ArucoDictionary {
|
|
238
|
+
constructor() {
|
|
239
|
+
this._preset = null;
|
|
240
|
+
this._markers = null;
|
|
241
|
+
this._markerSize = null;
|
|
242
|
+
}
|
|
243
|
+
static fromPreset(preset) {
|
|
244
|
+
const arucoDictionary = new ArucoDictionary();
|
|
245
|
+
arucoDictionary._preset = preset;
|
|
246
|
+
return arucoDictionary;
|
|
247
|
+
}
|
|
248
|
+
static createWithMarkers(markerSize, markers) {
|
|
249
|
+
const arucoDictionary = new ArucoDictionary();
|
|
250
|
+
arucoDictionary._markerSize = markerSize;
|
|
251
|
+
arucoDictionary._markers = markers;
|
|
252
|
+
return arucoDictionary;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
__decorate([
|
|
256
|
+
nameForSerialization('preset')
|
|
257
|
+
], ArucoDictionary.prototype, "_preset", void 0);
|
|
258
|
+
__decorate([
|
|
259
|
+
nameForSerialization('markers')
|
|
260
|
+
], ArucoDictionary.prototype, "_markers", void 0);
|
|
261
|
+
__decorate([
|
|
262
|
+
nameForSerialization('markerSize')
|
|
263
|
+
], ArucoDictionary.prototype, "_markerSize", void 0);
|
|
264
|
+
|
|
265
|
+
var ArucoDictionaryPreset;
|
|
266
|
+
(function (ArucoDictionaryPreset) {
|
|
267
|
+
ArucoDictionaryPreset["ArucoDictionaryPreset_5X5_50"] = "5X5_50";
|
|
268
|
+
ArucoDictionaryPreset["ArucoDictionaryPreset_5X5_100"] = "5X5_100";
|
|
269
|
+
ArucoDictionaryPreset["ArucoDictionaryPreset_5X5_250"] = "5X5_250";
|
|
270
|
+
ArucoDictionaryPreset["ArucoDictionaryPreset_5X5_1000"] = "5X5_1000";
|
|
271
|
+
ArucoDictionaryPreset["ArucoDictionaryPreset_5X5_1023"] = "5X5_1023";
|
|
272
|
+
ArucoDictionaryPreset["ArucoDictionaryPreset_4X4_250"] = "4X4_250";
|
|
273
|
+
ArucoDictionaryPreset["ArucoDictionaryPreset_6X6_250"] = "6X6_250";
|
|
274
|
+
})(ArucoDictionaryPreset || (ArucoDictionaryPreset = {}));
|
|
275
|
+
|
|
276
|
+
class ArucoMarker extends DefaultSerializeable {
|
|
277
|
+
get size() {
|
|
278
|
+
return this._markerSize;
|
|
279
|
+
}
|
|
280
|
+
get data() {
|
|
281
|
+
return this._markerData;
|
|
282
|
+
}
|
|
283
|
+
static create(markerSize, markerData) {
|
|
284
|
+
const arucoMarker = new ArucoMarker();
|
|
285
|
+
arucoMarker._markerSize = markerSize || 0;
|
|
286
|
+
arucoMarker._markerData = markerData || '';
|
|
287
|
+
return arucoMarker;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
__decorate([
|
|
291
|
+
nameForSerialization('markerData')
|
|
292
|
+
], ArucoMarker.prototype, "_markerData", void 0);
|
|
293
|
+
__decorate([
|
|
294
|
+
nameForSerialization('markerSize')
|
|
295
|
+
], ArucoMarker.prototype, "_markerSize", void 0);
|
|
296
|
+
|
|
297
|
+
function parseOrUse$6(value) {
|
|
298
|
+
return typeof value === 'string' ? JSON.parse(value) : value;
|
|
299
|
+
}
|
|
300
|
+
function parseBarcodeDefaults(jsonDefaults) {
|
|
301
|
+
const barcodeDefaults = {
|
|
302
|
+
SymbologySettings: Object.keys(jsonDefaults.SymbologySettings).reduce((settings, identifier) => {
|
|
303
|
+
const symbologySettings = SymbologySettings['fromJSON'](identifier, parseOrUse$6(jsonDefaults.SymbologySettings[identifier]));
|
|
304
|
+
settings[identifier] = symbologySettings;
|
|
305
|
+
return settings;
|
|
306
|
+
}, {}),
|
|
307
|
+
SymbologyDescriptions: jsonDefaults.SymbologyDescriptions.map((description) => SymbologyDescription['fromJSON'](parseOrUse$6(description))),
|
|
308
|
+
CompositeTypeDescriptions: jsonDefaults.CompositeTypeDescriptions.map(parseOrUse$6),
|
|
309
|
+
};
|
|
310
|
+
SymbologyDescription['defaults'] = () => barcodeDefaults;
|
|
311
|
+
return barcodeDefaults;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
function parseBarcodeCaptureDefaults(jsonDefaults) {
|
|
315
|
+
const barcodeCaptureDefaults = {
|
|
316
|
+
RecommendedCameraSettings: CameraSettings['fromJSON'](jsonDefaults.RecommendedCameraSettings),
|
|
317
|
+
BarcodeCaptureSettings: {
|
|
318
|
+
codeDuplicateFilter: jsonDefaults.BarcodeCaptureSettings.codeDuplicateFilter,
|
|
319
|
+
batterySaving: jsonDefaults.BarcodeCaptureSettings.batterySaving,
|
|
320
|
+
scanIntention: jsonDefaults.BarcodeCaptureSettings.scanIntention,
|
|
321
|
+
selectionMode: jsonDefaults.BarcodeCaptureSettings.selectionMode,
|
|
322
|
+
},
|
|
323
|
+
BarcodeCaptureOverlay: {
|
|
324
|
+
DefaultBrush: new Brush(Color['fromJSON'](jsonDefaults.BarcodeCaptureOverlay.DefaultBrush.fillColor), Color['fromJSON'](jsonDefaults.BarcodeCaptureOverlay.DefaultBrush.strokeColor), jsonDefaults.BarcodeCaptureOverlay.DefaultBrush.strokeWidth),
|
|
325
|
+
},
|
|
326
|
+
};
|
|
327
|
+
return barcodeCaptureDefaults;
|
|
328
|
+
}
|
|
329
|
+
|
|
60
330
|
class BarcodeFilterSettings extends DefaultSerializeable {
|
|
61
331
|
get excludeEan13() {
|
|
62
332
|
return this._excludeEan13;
|
|
@@ -127,12 +397,9 @@ __decorate([
|
|
|
127
397
|
nameForSerialization('excludedSymbologies')
|
|
128
398
|
], BarcodeFilterSettings.prototype, "_excludedSymbologies", void 0);
|
|
129
399
|
|
|
130
|
-
function parseOrUse$
|
|
400
|
+
function parseOrUse$5(value) {
|
|
131
401
|
return typeof value === 'string' ? JSON.parse(value) : value;
|
|
132
402
|
}
|
|
133
|
-
function getBarcodeCountDefaults() {
|
|
134
|
-
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeCount);
|
|
135
|
-
}
|
|
136
403
|
function parseBarcodeCountToolbarDefaults(jsonDefaults) {
|
|
137
404
|
const barcodeCountToolbarSettingsDefault = {
|
|
138
405
|
audioOnButtonText: jsonDefaults.audioOnButtonText,
|
|
@@ -178,8 +445,8 @@ function parseBarcodeCountDefaults(jsonDefaults) {
|
|
|
178
445
|
const barcodeCountDefaults = {
|
|
179
446
|
RecommendedCameraSettings: CameraSettings['fromJSON'](jsonDefaults.RecommendedCameraSettings),
|
|
180
447
|
Feedback: {
|
|
181
|
-
success: Feedback['fromJSON'](parseOrUse$
|
|
182
|
-
failure: Feedback['fromJSON'](parseOrUse$
|
|
448
|
+
success: Feedback['fromJSON'](parseOrUse$5(jsonDefaults.BarcodeCountFeedback).success),
|
|
449
|
+
failure: Feedback['fromJSON'](parseOrUse$5(jsonDefaults.BarcodeCountFeedback).failure),
|
|
183
450
|
},
|
|
184
451
|
BarcodeCountSettings: {
|
|
185
452
|
expectOnlyUniqueBarcodes: jsonDefaults.BarcodeCountSettings.expectOnlyUniqueBarcodes,
|
|
@@ -236,266 +503,31 @@ function parseBarcodeCountDefaults(jsonDefaults) {
|
|
|
236
503
|
clearHighlightsButtonAccessibilityLabel: viewJsonDefaults.clearHighlightsButtonAccessibilityLabel || null,
|
|
237
504
|
clearHighlightsButtonContentDescription: viewJsonDefaults.clearHighlightsButtonContentDescription || null,
|
|
238
505
|
singleScanButtonAccessibilityHint: viewJsonDefaults.singleScanButtonAccessibilityHint || null,
|
|
239
|
-
singleScanButtonAccessibilityLabel: viewJsonDefaults.singleScanButtonAccessibilityLabel || null,
|
|
240
|
-
singleScanButtonContentDescription: viewJsonDefaults.singleScanButtonContentDescription || null,
|
|
241
|
-
statusModeButtonAccessibilityHint: viewJsonDefaults.statusModeButtonAccessibilityHint || null,
|
|
242
|
-
statusModeButtonAccessibilityLabel: viewJsonDefaults.statusModeButtonAccessibilityLabel || null,
|
|
243
|
-
statusModeButtonContentDescription: viewJsonDefaults.statusModeButtonContentDescription || null,
|
|
244
|
-
shouldShowTorchControl: viewJsonDefaults.shouldShowTorchControl,
|
|
245
|
-
torchControlPosition: viewJsonDefaults.torchControlPosition,
|
|
246
|
-
tapToUncountEnabled: viewJsonDefaults.tapToUncountEnabled,
|
|
247
|
-
textForTapToUncountHint: viewJsonDefaults.textForTapToUncountHint,
|
|
248
|
-
hardwareTriggerSupported: viewJsonDefaults.hardwareTriggerSupported,
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
return barcodeCountDefaults;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
var Symbology;
|
|
255
|
-
(function (Symbology) {
|
|
256
|
-
Symbology["EAN13UPCA"] = "ean13Upca";
|
|
257
|
-
Symbology["UPCE"] = "upce";
|
|
258
|
-
Symbology["EAN8"] = "ean8";
|
|
259
|
-
Symbology["Code39"] = "code39";
|
|
260
|
-
Symbology["Code93"] = "code93";
|
|
261
|
-
Symbology["Code128"] = "code128";
|
|
262
|
-
Symbology["Code11"] = "code11";
|
|
263
|
-
Symbology["Code25"] = "code25";
|
|
264
|
-
Symbology["Codabar"] = "codabar";
|
|
265
|
-
Symbology["InterleavedTwoOfFive"] = "interleavedTwoOfFive";
|
|
266
|
-
Symbology["MSIPlessey"] = "msiPlessey";
|
|
267
|
-
Symbology["QR"] = "qr";
|
|
268
|
-
Symbology["DataMatrix"] = "dataMatrix";
|
|
269
|
-
Symbology["Aztec"] = "aztec";
|
|
270
|
-
Symbology["MaxiCode"] = "maxicode";
|
|
271
|
-
Symbology["DotCode"] = "dotcode";
|
|
272
|
-
Symbology["KIX"] = "kix";
|
|
273
|
-
Symbology["RoyalMail4state"] = "royal-mail-4state";
|
|
274
|
-
Symbology["GS1Databar"] = "databar";
|
|
275
|
-
Symbology["GS1DatabarExpanded"] = "databarExpanded";
|
|
276
|
-
Symbology["GS1DatabarLimited"] = "databarLimited";
|
|
277
|
-
Symbology["PDF417"] = "pdf417";
|
|
278
|
-
Symbology["MicroPDF417"] = "microPdf417";
|
|
279
|
-
Symbology["MicroQR"] = "microQr";
|
|
280
|
-
Symbology["Code32"] = "code32";
|
|
281
|
-
Symbology["Lapa4SC"] = "lapa4sc";
|
|
282
|
-
Symbology["IATATwoOfFive"] = "iata2of5";
|
|
283
|
-
Symbology["MatrixTwoOfFive"] = "matrix2of5";
|
|
284
|
-
Symbology["USPSIntelligentMail"] = "uspsIntelligentMail";
|
|
285
|
-
Symbology["ArUco"] = "aruco";
|
|
286
|
-
Symbology["Upu4State"] = "upu-4state";
|
|
287
|
-
Symbology["AustralianPost"] = "australian-post-4state";
|
|
288
|
-
Symbology["FrenchPost"] = "french-post";
|
|
289
|
-
})(Symbology || (Symbology = {}));
|
|
290
|
-
|
|
291
|
-
class Range extends DefaultSerializeable {
|
|
292
|
-
get minimum() {
|
|
293
|
-
return this._minimum;
|
|
294
|
-
}
|
|
295
|
-
get maximum() {
|
|
296
|
-
return this._maximum;
|
|
297
|
-
}
|
|
298
|
-
get step() {
|
|
299
|
-
return this._step;
|
|
300
|
-
}
|
|
301
|
-
get isFixed() {
|
|
302
|
-
return this.minimum === this.maximum || this.step <= 0;
|
|
303
|
-
}
|
|
304
|
-
static fromJSON(json) {
|
|
305
|
-
const range = new Range();
|
|
306
|
-
range._minimum = json.minimum;
|
|
307
|
-
range._maximum = json.maximum;
|
|
308
|
-
range._step = json.step;
|
|
309
|
-
return range;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
__decorate([
|
|
313
|
-
nameForSerialization('minimum')
|
|
314
|
-
], Range.prototype, "_minimum", void 0);
|
|
315
|
-
__decorate([
|
|
316
|
-
nameForSerialization('maximum')
|
|
317
|
-
], Range.prototype, "_maximum", void 0);
|
|
318
|
-
__decorate([
|
|
319
|
-
nameForSerialization('step')
|
|
320
|
-
], Range.prototype, "_step", void 0);
|
|
321
|
-
|
|
322
|
-
class SymbologyDescription {
|
|
323
|
-
static get all() {
|
|
324
|
-
return this.defaults().SymbologyDescriptions;
|
|
325
|
-
}
|
|
326
|
-
get identifier() { return this._identifier; }
|
|
327
|
-
get symbology() { return this.identifier; }
|
|
328
|
-
get readableName() { return this._readableName; }
|
|
329
|
-
get isAvailable() { return this._isAvailable; }
|
|
330
|
-
get isColorInvertible() { return this._isColorInvertible; }
|
|
331
|
-
get activeSymbolCountRange() { return this._activeSymbolCountRange; }
|
|
332
|
-
get defaultSymbolCountRange() { return this._defaultSymbolCountRange; }
|
|
333
|
-
get supportedExtensions() { return this._supportedExtensions; }
|
|
334
|
-
static forIdentifier(identifier) {
|
|
335
|
-
const identifierIndex = SymbologyDescription.all
|
|
336
|
-
.findIndex(description => description.identifier === identifier);
|
|
337
|
-
if (identifierIndex === -1) {
|
|
338
|
-
return null;
|
|
339
|
-
}
|
|
340
|
-
return new SymbologyDescription(identifier);
|
|
341
|
-
}
|
|
342
|
-
static fromJSON(json) {
|
|
343
|
-
const symbologyDescription = new SymbologyDescription();
|
|
344
|
-
symbologyDescription._identifier = json.identifier;
|
|
345
|
-
symbologyDescription._readableName = json.readableName;
|
|
346
|
-
symbologyDescription._isAvailable = json.isAvailable;
|
|
347
|
-
symbologyDescription._isColorInvertible = json.isColorInvertible;
|
|
348
|
-
symbologyDescription._activeSymbolCountRange = Range['fromJSON'](json.activeSymbolCountRange);
|
|
349
|
-
symbologyDescription._defaultSymbolCountRange = Range['fromJSON'](json.defaultSymbolCountRange);
|
|
350
|
-
symbologyDescription._supportedExtensions = json.supportedExtensions;
|
|
351
|
-
return symbologyDescription;
|
|
352
|
-
}
|
|
353
|
-
constructor(symbology) {
|
|
354
|
-
if (!symbology) {
|
|
355
|
-
return;
|
|
356
|
-
}
|
|
357
|
-
return SymbologyDescription.all[SymbologyDescription.all
|
|
358
|
-
.findIndex(description => description.identifier === symbology.toString())];
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
var CompositeType;
|
|
363
|
-
(function (CompositeType) {
|
|
364
|
-
CompositeType["A"] = "A";
|
|
365
|
-
CompositeType["B"] = "B";
|
|
366
|
-
CompositeType["C"] = "C";
|
|
367
|
-
})(CompositeType || (CompositeType = {}));
|
|
368
|
-
|
|
369
|
-
var Checksum;
|
|
370
|
-
(function (Checksum) {
|
|
371
|
-
Checksum["Mod10"] = "mod10";
|
|
372
|
-
Checksum["Mod11"] = "mod11";
|
|
373
|
-
Checksum["Mod16"] = "mod16";
|
|
374
|
-
Checksum["Mod43"] = "mod43";
|
|
375
|
-
Checksum["Mod47"] = "mod47";
|
|
376
|
-
Checksum["Mod103"] = "mod103";
|
|
377
|
-
Checksum["Mod10AndMod11"] = "mod1110";
|
|
378
|
-
Checksum["Mod10AndMod10"] = "mod1010";
|
|
379
|
-
})(Checksum || (Checksum = {}));
|
|
380
|
-
|
|
381
|
-
class SymbologySettings extends DefaultSerializeable {
|
|
382
|
-
get symbology() {
|
|
383
|
-
return this._symbology;
|
|
384
|
-
}
|
|
385
|
-
get enabledExtensions() {
|
|
386
|
-
return this.extensions;
|
|
387
|
-
}
|
|
388
|
-
static fromJSON(identifier, json) {
|
|
389
|
-
const symbologySettings = new SymbologySettings();
|
|
390
|
-
symbologySettings.extensions = json.extensions;
|
|
391
|
-
symbologySettings.isEnabled = json.enabled;
|
|
392
|
-
symbologySettings.isColorInvertedEnabled = json.colorInvertedEnabled;
|
|
393
|
-
symbologySettings.checksums = json.checksums;
|
|
394
|
-
symbologySettings.activeSymbolCounts = json.activeSymbolCounts;
|
|
395
|
-
symbologySettings._symbology = identifier;
|
|
396
|
-
return symbologySettings;
|
|
397
|
-
}
|
|
398
|
-
setExtensionEnabled(extension, enabled) {
|
|
399
|
-
const included = this.extensions.includes(extension);
|
|
400
|
-
if (enabled && !included) {
|
|
401
|
-
this.extensions.push(extension);
|
|
402
|
-
}
|
|
403
|
-
else if (!enabled && included) {
|
|
404
|
-
this.extensions.splice(this.extensions.indexOf(extension), 1);
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
__decorate([
|
|
409
|
-
nameForSerialization('enabled')
|
|
410
|
-
], SymbologySettings.prototype, "isEnabled", void 0);
|
|
411
|
-
__decorate([
|
|
412
|
-
nameForSerialization('colorInvertedEnabled')
|
|
413
|
-
], SymbologySettings.prototype, "isColorInvertedEnabled", void 0);
|
|
414
|
-
__decorate([
|
|
415
|
-
ignoreFromSerialization
|
|
416
|
-
], SymbologySettings.prototype, "_symbology", void 0);
|
|
417
|
-
|
|
418
|
-
class Ean13UpcaClassification {
|
|
419
|
-
static isUpca(barcode) {
|
|
420
|
-
var _a, _b, _c;
|
|
421
|
-
if (barcode.symbology !== Symbology.EAN13UPCA) {
|
|
422
|
-
return false;
|
|
423
|
-
}
|
|
424
|
-
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');
|
|
425
|
-
}
|
|
426
|
-
static isEan13(barcode) {
|
|
427
|
-
var _a, _b;
|
|
428
|
-
if (barcode.symbology !== Symbology.EAN13UPCA) {
|
|
429
|
-
return false;
|
|
430
|
-
}
|
|
431
|
-
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';
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
class ArucoDictionary {
|
|
436
|
-
constructor() {
|
|
437
|
-
this._preset = null;
|
|
438
|
-
this._markers = null;
|
|
439
|
-
this._markerSize = null;
|
|
440
|
-
}
|
|
441
|
-
static fromPreset(preset) {
|
|
442
|
-
const arucoDictionary = new ArucoDictionary();
|
|
443
|
-
arucoDictionary._preset = preset;
|
|
444
|
-
return arucoDictionary;
|
|
445
|
-
}
|
|
446
|
-
static createWithMarkers(markerSize, markers) {
|
|
447
|
-
const arucoDictionary = new ArucoDictionary();
|
|
448
|
-
arucoDictionary._markerSize = markerSize;
|
|
449
|
-
arucoDictionary._markers = markers;
|
|
450
|
-
return arucoDictionary;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
__decorate([
|
|
454
|
-
nameForSerialization('preset')
|
|
455
|
-
], ArucoDictionary.prototype, "_preset", void 0);
|
|
456
|
-
__decorate([
|
|
457
|
-
nameForSerialization('markers')
|
|
458
|
-
], ArucoDictionary.prototype, "_markers", void 0);
|
|
459
|
-
__decorate([
|
|
460
|
-
nameForSerialization('markerSize')
|
|
461
|
-
], ArucoDictionary.prototype, "_markerSize", void 0);
|
|
462
|
-
|
|
463
|
-
var ArucoDictionaryPreset;
|
|
464
|
-
(function (ArucoDictionaryPreset) {
|
|
465
|
-
ArucoDictionaryPreset["ArucoDictionaryPreset_5X5_50"] = "5X5_50";
|
|
466
|
-
ArucoDictionaryPreset["ArucoDictionaryPreset_5X5_100"] = "5X5_100";
|
|
467
|
-
ArucoDictionaryPreset["ArucoDictionaryPreset_5X5_250"] = "5X5_250";
|
|
468
|
-
ArucoDictionaryPreset["ArucoDictionaryPreset_5X5_1000"] = "5X5_1000";
|
|
469
|
-
ArucoDictionaryPreset["ArucoDictionaryPreset_5X5_1023"] = "5X5_1023";
|
|
470
|
-
ArucoDictionaryPreset["ArucoDictionaryPreset_4X4_250"] = "4X4_250";
|
|
471
|
-
ArucoDictionaryPreset["ArucoDictionaryPreset_6X6_250"] = "6X6_250";
|
|
472
|
-
})(ArucoDictionaryPreset || (ArucoDictionaryPreset = {}));
|
|
506
|
+
singleScanButtonAccessibilityLabel: viewJsonDefaults.singleScanButtonAccessibilityLabel || null,
|
|
507
|
+
singleScanButtonContentDescription: viewJsonDefaults.singleScanButtonContentDescription || null,
|
|
508
|
+
statusModeButtonAccessibilityHint: viewJsonDefaults.statusModeButtonAccessibilityHint || null,
|
|
509
|
+
statusModeButtonAccessibilityLabel: viewJsonDefaults.statusModeButtonAccessibilityLabel || null,
|
|
510
|
+
statusModeButtonContentDescription: viewJsonDefaults.statusModeButtonContentDescription || null,
|
|
511
|
+
shouldShowTorchControl: viewJsonDefaults.shouldShowTorchControl,
|
|
512
|
+
torchControlPosition: viewJsonDefaults.torchControlPosition,
|
|
513
|
+
tapToUncountEnabled: viewJsonDefaults.tapToUncountEnabled,
|
|
514
|
+
textForTapToUncountHint: viewJsonDefaults.textForTapToUncountHint,
|
|
515
|
+
hardwareTriggerSupported: viewJsonDefaults.hardwareTriggerSupported,
|
|
516
|
+
},
|
|
517
|
+
};
|
|
518
|
+
return barcodeCountDefaults;
|
|
519
|
+
}
|
|
473
520
|
|
|
474
|
-
class
|
|
475
|
-
get
|
|
476
|
-
return this.
|
|
521
|
+
class EncodingRange {
|
|
522
|
+
get ianaName() {
|
|
523
|
+
return this._ianaName;
|
|
477
524
|
}
|
|
478
|
-
get
|
|
479
|
-
return this.
|
|
525
|
+
get startIndex() {
|
|
526
|
+
return this._startIndex;
|
|
480
527
|
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
arucoMarker._markerSize = markerSize || 0;
|
|
484
|
-
arucoMarker._markerData = markerData || '';
|
|
485
|
-
return arucoMarker;
|
|
528
|
+
get endIndex() {
|
|
529
|
+
return this._endIndex;
|
|
486
530
|
}
|
|
487
|
-
}
|
|
488
|
-
__decorate([
|
|
489
|
-
nameForSerialization('markerData')
|
|
490
|
-
], ArucoMarker.prototype, "_markerData", void 0);
|
|
491
|
-
__decorate([
|
|
492
|
-
nameForSerialization('markerSize')
|
|
493
|
-
], ArucoMarker.prototype, "_markerSize", void 0);
|
|
494
|
-
|
|
495
|
-
class EncodingRange {
|
|
496
|
-
get ianaName() { return this._ianaName; }
|
|
497
|
-
get startIndex() { return this._startIndex; }
|
|
498
|
-
get endIndex() { return this._endIndex; }
|
|
499
531
|
static fromJSON(json) {
|
|
500
532
|
const encodingRange = new EncodingRange();
|
|
501
533
|
encodingRange._ianaName = json.ianaName;
|
|
@@ -506,13 +538,27 @@ class EncodingRange {
|
|
|
506
538
|
}
|
|
507
539
|
|
|
508
540
|
class StructuredAppendData {
|
|
509
|
-
get isComplete() {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
get
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
get
|
|
541
|
+
get isComplete() {
|
|
542
|
+
return this._isComplete;
|
|
543
|
+
}
|
|
544
|
+
get barcodeSetId() {
|
|
545
|
+
return this._barcodeSetId;
|
|
546
|
+
}
|
|
547
|
+
get scannedSegmentCount() {
|
|
548
|
+
return this._scannedSegmentCount;
|
|
549
|
+
}
|
|
550
|
+
get totalSegmentCount() {
|
|
551
|
+
return this._totalSegmentCount;
|
|
552
|
+
}
|
|
553
|
+
get encodingRanges() {
|
|
554
|
+
return this._encodingRanges;
|
|
555
|
+
}
|
|
556
|
+
get completeData() {
|
|
557
|
+
return this._completeData;
|
|
558
|
+
}
|
|
559
|
+
get rawCompleteData() {
|
|
560
|
+
return this._rawCompleteData;
|
|
561
|
+
}
|
|
516
562
|
static fromJSON(json) {
|
|
517
563
|
const structuredAppendData = new StructuredAppendData();
|
|
518
564
|
if (!json)
|
|
@@ -521,8 +567,7 @@ class StructuredAppendData {
|
|
|
521
567
|
structuredAppendData._barcodeSetId = json.barcodeSetId;
|
|
522
568
|
structuredAppendData._scannedSegmentCount = json.scannedSegmentCount;
|
|
523
569
|
structuredAppendData._totalSegmentCount = json.totalSegmentCount;
|
|
524
|
-
structuredAppendData._encodingRanges =
|
|
525
|
-
json.completeDataEncodings.map(EncodingRange['fromJSON']);
|
|
570
|
+
structuredAppendData._encodingRanges = json.completeDataEncodings.map(EncodingRange['fromJSON']);
|
|
526
571
|
structuredAppendData._completeData = json.completeDataUtf8String;
|
|
527
572
|
structuredAppendData._rawCompleteData = json.completeDataRaw;
|
|
528
573
|
return structuredAppendData;
|
|
@@ -769,6 +814,36 @@ class BarcodeProxyAdapter {
|
|
|
769
814
|
return result;
|
|
770
815
|
});
|
|
771
816
|
}
|
|
817
|
+
/**
|
|
818
|
+
* Freezes the camera in barcode selection mode
|
|
819
|
+
* @param modeId Unique identifier of the barcode selection mode
|
|
820
|
+
*/
|
|
821
|
+
freezeCameraInBarcodeSelection(_a) {
|
|
822
|
+
return __awaiter(this, arguments, void 0, function* ({ modeId }) {
|
|
823
|
+
const result = yield this.proxy.$executeBarcode({
|
|
824
|
+
moduleName: 'BarcodeSelectionModule',
|
|
825
|
+
methodName: 'freezeCameraInBarcodeSelection',
|
|
826
|
+
isEventRegistration: false,
|
|
827
|
+
modeId,
|
|
828
|
+
});
|
|
829
|
+
return result;
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
* Selects the unselected barcodes in the current selection session
|
|
834
|
+
* @param modeId Unique identifier of the barcode selection mode
|
|
835
|
+
*/
|
|
836
|
+
selectUnselectedBarcodes(_a) {
|
|
837
|
+
return __awaiter(this, arguments, void 0, function* ({ modeId }) {
|
|
838
|
+
const result = yield this.proxy.$executeBarcode({
|
|
839
|
+
moduleName: 'BarcodeSelectionModule',
|
|
840
|
+
methodName: 'selectUnselectedBarcodes',
|
|
841
|
+
isEventRegistration: false,
|
|
842
|
+
modeId,
|
|
843
|
+
});
|
|
844
|
+
return result;
|
|
845
|
+
});
|
|
846
|
+
}
|
|
772
847
|
/**
|
|
773
848
|
* Resets the barcode selection
|
|
774
849
|
* @param modeId Unique identifier of the barcode selection mode
|
|
@@ -952,6 +1027,36 @@ class BarcodeProxyAdapter {
|
|
|
952
1027
|
return result;
|
|
953
1028
|
});
|
|
954
1029
|
}
|
|
1030
|
+
/**
|
|
1031
|
+
* Selects the unselected barcodes currently tracked in the barcode selection session
|
|
1032
|
+
* @param modeId Unique identifier of the barcode selection mode
|
|
1033
|
+
*/
|
|
1034
|
+
selectUnselectedBarcodesInBarcodeSelectionSession(_a) {
|
|
1035
|
+
return __awaiter(this, arguments, void 0, function* ({ modeId }) {
|
|
1036
|
+
const result = yield this.proxy.$executeBarcode({
|
|
1037
|
+
moduleName: 'BarcodeSelectionModule',
|
|
1038
|
+
methodName: 'selectUnselectedBarcodesInBarcodeSelectionSession',
|
|
1039
|
+
isEventRegistration: false,
|
|
1040
|
+
modeId,
|
|
1041
|
+
});
|
|
1042
|
+
return result;
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Returns the BarcodeSelectionLicenseInfo JSON, or null when not available
|
|
1047
|
+
* @param modeId Unique identifier of the barcode selection mode
|
|
1048
|
+
*/
|
|
1049
|
+
getBarcodeSelectionLicenseInfo(_a) {
|
|
1050
|
+
return __awaiter(this, arguments, void 0, function* ({ modeId }) {
|
|
1051
|
+
const result = yield this.proxy.$executeBarcode({
|
|
1052
|
+
moduleName: 'BarcodeSelectionModule',
|
|
1053
|
+
methodName: 'getBarcodeSelectionLicenseInfo',
|
|
1054
|
+
isEventRegistration: false,
|
|
1055
|
+
modeId,
|
|
1056
|
+
});
|
|
1057
|
+
return result.data;
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
955
1060
|
/**
|
|
956
1061
|
* Finish callback for barcode selection did select event
|
|
957
1062
|
* @param modeId Unique identifier of the barcode selection mode
|
|
@@ -1031,6 +1136,19 @@ class BarcodeProxyAdapter {
|
|
|
1031
1136
|
return result;
|
|
1032
1137
|
});
|
|
1033
1138
|
}
|
|
1139
|
+
/**
|
|
1140
|
+
* Clears the brushes applied to selected barcodes
|
|
1141
|
+
*/
|
|
1142
|
+
clearSelectedBarcodeBrushes() {
|
|
1143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1144
|
+
const result = yield this.proxy.$executeBarcode({
|
|
1145
|
+
moduleName: 'BarcodeSelectionModule',
|
|
1146
|
+
methodName: 'clearSelectedBarcodeBrushes',
|
|
1147
|
+
isEventRegistration: false,
|
|
1148
|
+
});
|
|
1149
|
+
return result;
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1034
1152
|
/**
|
|
1035
1153
|
* Removes the aimed barcode brush provider
|
|
1036
1154
|
*/
|
|
@@ -3204,6 +3322,53 @@ class BarcodeProxyAdapter {
|
|
|
3204
3322
|
return result;
|
|
3205
3323
|
});
|
|
3206
3324
|
}
|
|
3325
|
+
/**
|
|
3326
|
+
* Register persistent event callback for BarcodeAr filter events
|
|
3327
|
+
* @param viewId Unique identifier of the BarcodeAr view
|
|
3328
|
+
*/
|
|
3329
|
+
registerBarcodeArFilter(_a) {
|
|
3330
|
+
return __awaiter(this, arguments, void 0, function* ({ viewId }) {
|
|
3331
|
+
const result = yield this.proxy.$executeBarcode({
|
|
3332
|
+
moduleName: 'BarcodeArModule',
|
|
3333
|
+
methodName: 'registerBarcodeArFilter',
|
|
3334
|
+
isEventRegistration: true,
|
|
3335
|
+
viewId,
|
|
3336
|
+
});
|
|
3337
|
+
return result;
|
|
3338
|
+
});
|
|
3339
|
+
}
|
|
3340
|
+
/**
|
|
3341
|
+
* Unregister event callback for BarcodeAr filter events
|
|
3342
|
+
* @param viewId Unique identifier of the BarcodeAr view
|
|
3343
|
+
*/
|
|
3344
|
+
unregisterBarcodeArFilter(_a) {
|
|
3345
|
+
return __awaiter(this, arguments, void 0, function* ({ viewId }) {
|
|
3346
|
+
const result = yield this.proxy.$executeBarcode({
|
|
3347
|
+
moduleName: 'BarcodeArModule',
|
|
3348
|
+
methodName: 'unregisterBarcodeArFilter',
|
|
3349
|
+
isEventRegistration: false,
|
|
3350
|
+
viewId,
|
|
3351
|
+
});
|
|
3352
|
+
return result;
|
|
3353
|
+
});
|
|
3354
|
+
}
|
|
3355
|
+
/**
|
|
3356
|
+
* Finish callback for BarcodeAr filter barcodes
|
|
3357
|
+
* @param viewId Unique identifier of the BarcodeAr view
|
|
3358
|
+
* @param filteredBarcodesJson JSON array of barcode IDs to keep
|
|
3359
|
+
*/
|
|
3360
|
+
finishBarcodeArFilterBarcodes(_a) {
|
|
3361
|
+
return __awaiter(this, arguments, void 0, function* ({ viewId, filteredBarcodesJson, }) {
|
|
3362
|
+
const result = yield this.proxy.$executeBarcode({
|
|
3363
|
+
moduleName: 'BarcodeArModule',
|
|
3364
|
+
methodName: 'finishBarcodeArFilterBarcodes',
|
|
3365
|
+
isEventRegistration: false,
|
|
3366
|
+
viewId,
|
|
3367
|
+
filteredBarcodesJson,
|
|
3368
|
+
});
|
|
3369
|
+
return result;
|
|
3370
|
+
});
|
|
3371
|
+
}
|
|
3207
3372
|
/**
|
|
3208
3373
|
* Handles custom highlight click event
|
|
3209
3374
|
* @param viewId Unique identifier of the BarcodeAr view
|
|
@@ -3713,9 +3878,7 @@ class Cluster {
|
|
|
3713
3878
|
// Format 2: Barcode identifiers from session - uses _barcodeMap
|
|
3714
3879
|
const barcodeMap = json._barcodeMap;
|
|
3715
3880
|
if (json.barcodeIdentifiers && barcodeMap) {
|
|
3716
|
-
cluster._barcodes = json.barcodeIdentifiers
|
|
3717
|
-
.filter(id => barcodeMap.has(id))
|
|
3718
|
-
.map(id => barcodeMap.get(id));
|
|
3881
|
+
cluster._barcodes = json.barcodeIdentifiers.filter(id => barcodeMap.has(id)).map(id => barcodeMap.get(id));
|
|
3719
3882
|
return cluster;
|
|
3720
3883
|
}
|
|
3721
3884
|
// Fallback: empty cluster
|
|
@@ -3789,9 +3952,15 @@ __decorate([
|
|
|
3789
3952
|
], TargetBarcode.prototype, "_quantity", void 0);
|
|
3790
3953
|
|
|
3791
3954
|
class TrackedBarcode {
|
|
3792
|
-
get barcode() {
|
|
3793
|
-
|
|
3794
|
-
|
|
3955
|
+
get barcode() {
|
|
3956
|
+
return this._barcode;
|
|
3957
|
+
}
|
|
3958
|
+
get location() {
|
|
3959
|
+
return this._location;
|
|
3960
|
+
}
|
|
3961
|
+
get identifier() {
|
|
3962
|
+
return this._identifier;
|
|
3963
|
+
}
|
|
3795
3964
|
get sessionFrameSequenceID() {
|
|
3796
3965
|
return this._sessionFrameSequenceID;
|
|
3797
3966
|
}
|
|
@@ -3853,7 +4022,7 @@ class BarcodeSpatialGrid extends DefaultSerializeable {
|
|
|
3853
4022
|
return this._columns;
|
|
3854
4023
|
}
|
|
3855
4024
|
barcodeAt(row, column) {
|
|
3856
|
-
const barcodeJSON = this._grid[row][column][
|
|
4025
|
+
const barcodeJSON = this._grid[row][column]['mainBarcode'];
|
|
3857
4026
|
if (barcodeJSON) {
|
|
3858
4027
|
return Barcode['fromJSON'](barcodeJSON);
|
|
3859
4028
|
}
|
|
@@ -3862,14 +4031,14 @@ class BarcodeSpatialGrid extends DefaultSerializeable {
|
|
|
3862
4031
|
row(index) {
|
|
3863
4032
|
const elementsJSON = this._grid[index];
|
|
3864
4033
|
if (elementsJSON) {
|
|
3865
|
-
return
|
|
4034
|
+
return elementsJSON.map(it => it.mainBarcode).map(Barcode['fromJSON']);
|
|
3866
4035
|
}
|
|
3867
4036
|
return [];
|
|
3868
4037
|
}
|
|
3869
4038
|
column(index) {
|
|
3870
4039
|
const elementsJSON = this._grid.map(elements => elements[index]);
|
|
3871
4040
|
if (elementsJSON) {
|
|
3872
|
-
return
|
|
4041
|
+
return elementsJSON.map(it => it.mainBarcode).map(Barcode['fromJSON']);
|
|
3873
4042
|
}
|
|
3874
4043
|
return [];
|
|
3875
4044
|
}
|
|
@@ -3913,41 +4082,13 @@ __decorate([
|
|
|
3913
4082
|
nameForSerialization('brush')
|
|
3914
4083
|
], BarcodeFilterHighlightSettingsBrush.prototype, "_brush", void 0);
|
|
3915
4084
|
|
|
3916
|
-
function parseOrUse$
|
|
4085
|
+
function parseOrUse$4(value) {
|
|
3917
4086
|
return typeof value === 'string' ? JSON.parse(value) : value;
|
|
3918
4087
|
}
|
|
3919
|
-
function getBarcodePickDefaults() {
|
|
3920
|
-
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodePick);
|
|
3921
|
-
}
|
|
3922
|
-
/**
|
|
3923
|
-
* Helper function to get symbology settings from BarcodePickDefaults with proper error handling.
|
|
3924
|
-
*
|
|
3925
|
-
* @param symbology - The symbology to get settings for (Symbology enum or string identifier)
|
|
3926
|
-
* @param errorPrefix - Prefix for error messages (e.g., "Barcode pick")
|
|
3927
|
-
* @returns SymbologySettings instance with _symbology property set (if symbology is an enum)
|
|
3928
|
-
* @throws Error if defaults are missing or symbology settings are not found
|
|
3929
|
-
*/
|
|
3930
|
-
function getSymbologySettingsFromBarcodePickDefaults(symbology, errorPrefix) {
|
|
3931
|
-
const defaults = ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodePick);
|
|
3932
|
-
if (!defaults) {
|
|
3933
|
-
throw new Error(`${errorPrefix} defaults missing`);
|
|
3934
|
-
}
|
|
3935
|
-
// Convert Symbology enum to string key for dictionary access
|
|
3936
|
-
const symbologyKey = typeof symbology === 'string' ? symbology : String(symbology);
|
|
3937
|
-
const symbologySettings = defaults.SymbologySettings[symbologyKey];
|
|
3938
|
-
if (!symbologySettings) {
|
|
3939
|
-
throw new Error(`Missing symbology defaults for ${symbology}`);
|
|
3940
|
-
}
|
|
3941
|
-
// Set the _symbology property if symbology is not a string (i.e., it's a Symbology enum)
|
|
3942
|
-
if (typeof symbology !== 'string') {
|
|
3943
|
-
symbologySettings['_symbology'] = symbology;
|
|
3944
|
-
}
|
|
3945
|
-
return symbologySettings;
|
|
3946
|
-
}
|
|
3947
4088
|
function parseBarcodePickViewHighlightStyle(jsonStyles) {
|
|
3948
4089
|
const styles = {};
|
|
3949
4090
|
Object.entries(jsonStyles).forEach(([key, value]) => {
|
|
3950
|
-
styles[key] = parseOrUse$
|
|
4091
|
+
styles[key] = parseOrUse$4(value);
|
|
3951
4092
|
});
|
|
3952
4093
|
return styles;
|
|
3953
4094
|
}
|
|
@@ -3972,7 +4113,7 @@ function parseBarcodePickDefaults(jsonDefaults) {
|
|
|
3972
4113
|
filterHighlightSettings: filterHighlightSettings,
|
|
3973
4114
|
},
|
|
3974
4115
|
ViewSettings: {
|
|
3975
|
-
highlightStyle: parseOrUse$
|
|
4116
|
+
highlightStyle: parseOrUse$4(jsonDefaults.ViewSettings.HighlightStyle),
|
|
3976
4117
|
initialGuidelineText: jsonDefaults.ViewSettings.initialGuidelineText,
|
|
3977
4118
|
moveCloserGuidelineText: jsonDefaults.ViewSettings.moveCloserGuidelineText,
|
|
3978
4119
|
showLoadingDialog: jsonDefaults.ViewSettings.showLoadingDialog,
|
|
@@ -3993,13 +4134,13 @@ function parseBarcodePickDefaults(jsonDefaults) {
|
|
|
3993
4134
|
tapShutterToPauseGuidelineText: jsonDefaults.ViewSettings.tapShutterToPauseGuidelineText,
|
|
3994
4135
|
hardwareTriggerEnabled: jsonDefaults.ViewSettings.hardwareTriggerEnabled,
|
|
3995
4136
|
uiButtonsOffset: jsonDefaults.ViewSettings.uiButtonsOffset
|
|
3996
|
-
? NumberWithUnit['fromJSON'](parseOrUse$
|
|
4137
|
+
? NumberWithUnit['fromJSON'](parseOrUse$4(jsonDefaults.ViewSettings.uiButtonsOffset))
|
|
3997
4138
|
: null,
|
|
3998
4139
|
hardwareTriggerKeyCode: jsonDefaults.ViewSettings.hardwareTriggerKeyCode,
|
|
3999
4140
|
},
|
|
4000
4141
|
BarcodePickViewHighlightStyle: parseBarcodePickViewHighlightStyle(jsonDefaults.BarcodePickViewHighlightStyle),
|
|
4001
4142
|
SymbologySettings: Object.keys(jsonDefaults.SymbologySettings).reduce((settings, identifier) => {
|
|
4002
|
-
settings[identifier] = SymbologySettings['fromJSON'](identifier, parseOrUse$
|
|
4143
|
+
settings[identifier] = SymbologySettings['fromJSON'](identifier, parseOrUse$4(jsonDefaults.SymbologySettings[identifier]));
|
|
4003
4144
|
return settings;
|
|
4004
4145
|
}, {}),
|
|
4005
4146
|
BarcodePickStatusIconSettings: {
|
|
@@ -4011,131 +4152,113 @@ function parseBarcodePickDefaults(jsonDefaults) {
|
|
|
4011
4152
|
return barcodePickDefaults;
|
|
4012
4153
|
}
|
|
4013
4154
|
|
|
4014
|
-
function parseOrUse$
|
|
4155
|
+
function parseOrUse$3(value) {
|
|
4015
4156
|
return typeof value === 'string' ? JSON.parse(value) : value;
|
|
4016
4157
|
}
|
|
4017
|
-
function getBarcodeSelectionDefaults() {
|
|
4018
|
-
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeSelection);
|
|
4019
|
-
}
|
|
4020
4158
|
function parseBarcodeSelectionDefaults(jsonDefaults) {
|
|
4021
4159
|
const barcodeSelectionDefaults = {
|
|
4022
4160
|
RecommendedCameraSettings: CameraSettings['fromJSON'](jsonDefaults.RecommendedCameraSettings),
|
|
4023
|
-
Feedback:
|
|
4024
|
-
selection: Feedback['fromJSON'](parseOrUse$
|
|
4025
|
-
}
|
|
4161
|
+
Feedback: {
|
|
4162
|
+
selection: Feedback['fromJSON'](parseOrUse$3(jsonDefaults.Feedback).selection),
|
|
4163
|
+
},
|
|
4026
4164
|
BarcodeSelectionSettings: {
|
|
4027
4165
|
codeDuplicateFilter: jsonDefaults.BarcodeSelectionSettings.codeDuplicateFilter,
|
|
4028
4166
|
singleBarcodeAutoDetection: jsonDefaults.BarcodeSelectionSettings.singleBarcodeAutoDetection,
|
|
4029
|
-
selectionType: (fromJSON) => fromJSON(parseOrUse$
|
|
4167
|
+
selectionType: (fromJSON) => fromJSON(parseOrUse$3(jsonDefaults.BarcodeSelectionSettings.selectionType)),
|
|
4030
4168
|
},
|
|
4031
4169
|
BarcodeSelectionTapSelection: {
|
|
4032
4170
|
defaultFreezeBehavior: jsonDefaults.BarcodeSelectionTapSelection
|
|
4033
4171
|
.defaultFreezeBehavior,
|
|
4034
|
-
defaultTapBehavior: jsonDefaults.BarcodeSelectionTapSelection
|
|
4035
|
-
.defaultTapBehavior,
|
|
4172
|
+
defaultTapBehavior: jsonDefaults.BarcodeSelectionTapSelection.defaultTapBehavior,
|
|
4036
4173
|
},
|
|
4037
4174
|
BarcodeSelectionAimerSelection: {
|
|
4038
|
-
defaultSelectionStrategy: (fromJSON) => fromJSON(parseOrUse$
|
|
4175
|
+
defaultSelectionStrategy: (fromJSON) => fromJSON(parseOrUse$3(jsonDefaults.BarcodeSelectionAimerSelection.defaultSelectionStrategy)),
|
|
4039
4176
|
},
|
|
4040
4177
|
BarcodeSelectionBasicOverlay: {
|
|
4041
4178
|
defaultStyle: jsonDefaults.BarcodeSelectionBasicOverlay.defaultStyle,
|
|
4042
|
-
styles: Object
|
|
4043
|
-
.keys(jsonDefaults.BarcodeSelectionBasicOverlay.styles)
|
|
4044
|
-
.reduce((previousValue, currentValue) => {
|
|
4179
|
+
styles: Object.keys(jsonDefaults.BarcodeSelectionBasicOverlay.styles).reduce((previousValue, currentValue) => {
|
|
4045
4180
|
return Object.assign(Object.assign({}, previousValue), { [currentValue]: {
|
|
4046
4181
|
DefaultTrackedBrush: {
|
|
4047
|
-
fillColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue]
|
|
4048
|
-
.
|
|
4049
|
-
strokeColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue]
|
|
4050
|
-
.
|
|
4051
|
-
strokeWidth: jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue]
|
|
4052
|
-
.DefaultTrackedBrush.strokeWidth,
|
|
4182
|
+
fillColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue].DefaultTrackedBrush
|
|
4183
|
+
.fillColor),
|
|
4184
|
+
strokeColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue].DefaultTrackedBrush
|
|
4185
|
+
.strokeColor),
|
|
4186
|
+
strokeWidth: jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue].DefaultTrackedBrush.strokeWidth,
|
|
4053
4187
|
},
|
|
4054
4188
|
DefaultAimedBrush: {
|
|
4055
|
-
fillColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue]
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
strokeWidth: jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue]
|
|
4060
|
-
.DefaultAimedBrush.strokeWidth,
|
|
4189
|
+
fillColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue].DefaultAimedBrush.fillColor),
|
|
4190
|
+
strokeColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue].DefaultAimedBrush
|
|
4191
|
+
.strokeColor),
|
|
4192
|
+
strokeWidth: jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue].DefaultAimedBrush.strokeWidth,
|
|
4061
4193
|
},
|
|
4062
4194
|
DefaultSelectedBrush: {
|
|
4063
|
-
fillColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue]
|
|
4064
|
-
.
|
|
4065
|
-
strokeColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue]
|
|
4066
|
-
.
|
|
4067
|
-
strokeWidth: jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue]
|
|
4068
|
-
.DefaultSelectedBrush.strokeWidth,
|
|
4195
|
+
fillColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue].DefaultSelectedBrush
|
|
4196
|
+
.fillColor),
|
|
4197
|
+
strokeColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue].DefaultSelectedBrush
|
|
4198
|
+
.strokeColor),
|
|
4199
|
+
strokeWidth: jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue].DefaultSelectedBrush.strokeWidth,
|
|
4069
4200
|
},
|
|
4070
4201
|
DefaultSelectingBrush: {
|
|
4071
|
-
fillColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue]
|
|
4072
|
-
.
|
|
4073
|
-
strokeColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue]
|
|
4074
|
-
.
|
|
4075
|
-
strokeWidth: jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue]
|
|
4076
|
-
.DefaultSelectingBrush.strokeWidth,
|
|
4202
|
+
fillColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue].DefaultSelectingBrush
|
|
4203
|
+
.fillColor),
|
|
4204
|
+
strokeColor: Color['fromJSON'](jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue].DefaultSelectingBrush
|
|
4205
|
+
.strokeColor),
|
|
4206
|
+
strokeWidth: jsonDefaults.BarcodeSelectionBasicOverlay.styles[currentValue].DefaultSelectingBrush.strokeWidth,
|
|
4077
4207
|
},
|
|
4078
4208
|
} });
|
|
4079
4209
|
}, {}),
|
|
4080
|
-
}
|
|
4210
|
+
},
|
|
4081
4211
|
};
|
|
4082
4212
|
return barcodeSelectionDefaults;
|
|
4083
4213
|
}
|
|
4084
4214
|
|
|
4085
|
-
function getBarcodeBatchDefaults() {
|
|
4086
|
-
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeBatch);
|
|
4087
|
-
}
|
|
4088
4215
|
function parseBarcodeBatchDefaults(jsonDefaults) {
|
|
4089
4216
|
const barcodeBatchDefaults = {
|
|
4090
4217
|
RecommendedCameraSettings: CameraSettings['fromJSON'](jsonDefaults.RecommendedCameraSettings),
|
|
4091
4218
|
BarcodeBatchBasicOverlay: {
|
|
4092
4219
|
defaultStyle: jsonDefaults.BarcodeBatchBasicOverlay.defaultStyle,
|
|
4093
|
-
styles: Object
|
|
4094
|
-
.keys(jsonDefaults.BarcodeBatchBasicOverlay.Brushes)
|
|
4095
|
-
.reduce((previousValue, currentValue) => {
|
|
4220
|
+
styles: Object.keys(jsonDefaults.BarcodeBatchBasicOverlay.Brushes).reduce((previousValue, currentValue) => {
|
|
4096
4221
|
return Object.assign(Object.assign({}, previousValue), { [currentValue]: {
|
|
4097
4222
|
DefaultBrush: {
|
|
4098
|
-
fillColor: Color['fromJSON'](jsonDefaults.BarcodeBatchBasicOverlay.
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
Brushes[currentValue].strokeColor),
|
|
4102
|
-
strokeWidth: jsonDefaults.BarcodeBatchBasicOverlay.
|
|
4103
|
-
Brushes[currentValue].strokeWidth,
|
|
4223
|
+
fillColor: Color['fromJSON'](jsonDefaults.BarcodeBatchBasicOverlay.Brushes[currentValue].fillColor),
|
|
4224
|
+
strokeColor: Color['fromJSON'](jsonDefaults.BarcodeBatchBasicOverlay.Brushes[currentValue].strokeColor),
|
|
4225
|
+
strokeWidth: jsonDefaults.BarcodeBatchBasicOverlay.Brushes[currentValue].strokeWidth,
|
|
4104
4226
|
},
|
|
4105
4227
|
} });
|
|
4106
4228
|
}, {}),
|
|
4107
|
-
}
|
|
4229
|
+
},
|
|
4108
4230
|
};
|
|
4109
4231
|
return barcodeBatchDefaults;
|
|
4110
4232
|
}
|
|
4111
4233
|
|
|
4112
|
-
function parseOrUse$
|
|
4234
|
+
function parseOrUse$2(value) {
|
|
4113
4235
|
return typeof value === 'string' ? JSON.parse(value) : value;
|
|
4114
4236
|
}
|
|
4115
4237
|
function parseSparkScanDefaults(jsonDefaults) {
|
|
4116
4238
|
var _a;
|
|
4117
|
-
const sparkScanViewSettingsDefaults = parseOrUse$
|
|
4118
|
-
const toastSettingsDefaults = parseOrUse$
|
|
4239
|
+
const sparkScanViewSettingsDefaults = parseOrUse$2(jsonDefaults.SparkScanView.SparkScanViewSettings);
|
|
4240
|
+
const toastSettingsDefaults = parseOrUse$2(sparkScanViewSettingsDefaults.toastSettings);
|
|
4119
4241
|
const sparkScanDefaults = {
|
|
4120
|
-
Feedback:
|
|
4242
|
+
Feedback: {
|
|
4121
4243
|
success: {
|
|
4122
|
-
visualFeedbackColor: Color['fromJSON'](parseOrUse$
|
|
4123
|
-
brush: new Brush(Color['fromJSON'](parseOrUse$
|
|
4124
|
-
feedbackDefault: Feedback['fromJSON'](parseOrUse$
|
|
4244
|
+
visualFeedbackColor: Color['fromJSON'](parseOrUse$2(jsonDefaults.Feedback.success).barcodeFeedback.visualFeedbackColor),
|
|
4245
|
+
brush: new Brush(Color['fromJSON'](parseOrUse$2(jsonDefaults.Feedback.success).barcodeFeedback.brush.fill.color), Color['fromJSON'](parseOrUse$2(jsonDefaults.Feedback.success).barcodeFeedback.brush.stroke.color), parseOrUse$2(parseOrUse$2(jsonDefaults.Feedback.success).barcodeFeedback.brush.stroke.width)),
|
|
4246
|
+
feedbackDefault: Feedback['fromJSON'](parseOrUse$2(jsonDefaults.Feedback.success).barcodeFeedback.feedback),
|
|
4125
4247
|
},
|
|
4126
4248
|
error: {
|
|
4127
|
-
visualFeedbackColor: parseOrUse$
|
|
4128
|
-
brush: new Brush(Color['fromJSON'](parseOrUse$
|
|
4129
|
-
feedbackDefault: Feedback['fromJSON'](parseOrUse$
|
|
4130
|
-
}
|
|
4131
|
-
}
|
|
4249
|
+
visualFeedbackColor: parseOrUse$2(jsonDefaults.Feedback.error).barcodeFeedback.visualFeedbackColor,
|
|
4250
|
+
brush: new Brush(Color['fromJSON'](parseOrUse$2(jsonDefaults.Feedback.error).barcodeFeedback.brush.fill.color), Color['fromJSON'](parseOrUse$2(jsonDefaults.Feedback.error).barcodeFeedback.brush.stroke.color), parseOrUse$2(parseOrUse$2(jsonDefaults.Feedback.error).barcodeFeedback.brush.stroke.width)),
|
|
4251
|
+
feedbackDefault: Feedback['fromJSON'](parseOrUse$2(jsonDefaults.Feedback.error).barcodeFeedback.feedback),
|
|
4252
|
+
},
|
|
4253
|
+
},
|
|
4132
4254
|
SparkScanSettings: {
|
|
4133
4255
|
batterySaving: jsonDefaults.SparkScanSettings.batterySaving,
|
|
4134
4256
|
codeDuplicateFilter: jsonDefaults.SparkScanSettings.codeDuplicateFilter,
|
|
4135
4257
|
locationSelection: (fromJSON) => {
|
|
4136
|
-
return fromJSON(parseOrUse$
|
|
4258
|
+
return fromJSON(parseOrUse$2(jsonDefaults.SparkScanSettings.locationSelection));
|
|
4137
4259
|
},
|
|
4138
4260
|
scanIntention: jsonDefaults.SparkScanSettings.scanIntention,
|
|
4261
|
+
selectionMode: jsonDefaults.SparkScanSettings.selectionMode,
|
|
4139
4262
|
},
|
|
4140
4263
|
SparkScanView: {
|
|
4141
4264
|
brush: new Brush(Color['fromJSON'](jsonDefaults.SparkScanView.brush.fillColor), Color['fromJSON'](jsonDefaults.SparkScanView.brush.strokeColor), jsonDefaults.SparkScanView.brush.strokeWidth),
|
|
@@ -4144,6 +4267,7 @@ function parseSparkScanDefaults(jsonDefaults) {
|
|
|
4144
4267
|
barcodeCountButtonVisible: jsonDefaults.SparkScanView.barcodeCountButtonVisible,
|
|
4145
4268
|
barcodeFindButtonVisible: jsonDefaults.SparkScanView.barcodeFindButtonVisible,
|
|
4146
4269
|
targetModeButtonVisible: jsonDefaults.SparkScanView.targetModeButtonVisible,
|
|
4270
|
+
selectionModeButtonVisible: jsonDefaults.SparkScanView.selectionModeButtonVisible,
|
|
4147
4271
|
labelCaptureButtonVisible: jsonDefaults.SparkScanView.labelCaptureButtonVisible,
|
|
4148
4272
|
previewSizeControlVisible: jsonDefaults.SparkScanView.previewSizeControlVisible,
|
|
4149
4273
|
previewCloseControlVisible: jsonDefaults.SparkScanView.previewCloseControlVisible,
|
|
@@ -4153,15 +4277,21 @@ function parseSparkScanDefaults(jsonDefaults) {
|
|
|
4153
4277
|
triggerButtonTintColor: jsonDefaults.SparkScanView.triggerButtonTintColor || null,
|
|
4154
4278
|
triggerButtonVisible: jsonDefaults.SparkScanView.triggerButtonVisible || null,
|
|
4155
4279
|
triggerButtonImage: jsonDefaults.SparkScanView.triggerButtonImage || null,
|
|
4156
|
-
toolbarBackgroundColor: jsonDefaults.SparkScanView.toolbarBackgroundColor
|
|
4157
|
-
|
|
4158
|
-
|
|
4280
|
+
toolbarBackgroundColor: jsonDefaults.SparkScanView.toolbarBackgroundColor
|
|
4281
|
+
? Color['fromJSON'](jsonDefaults.SparkScanView.toolbarBackgroundColor)
|
|
4282
|
+
: null,
|
|
4283
|
+
toolbarIconActiveTintColor: jsonDefaults.SparkScanView.toolbarIconActiveTintColor
|
|
4284
|
+
? Color['fromJSON'](jsonDefaults.SparkScanView.toolbarIconActiveTintColor)
|
|
4285
|
+
: null,
|
|
4286
|
+
toolbarIconInactiveTintColor: jsonDefaults.SparkScanView.toolbarIconInactiveTintColor
|
|
4287
|
+
? Color['fromJSON'](jsonDefaults.SparkScanView.toolbarIconInactiveTintColor)
|
|
4288
|
+
: null,
|
|
4159
4289
|
cameraSwitchButtonVisible: jsonDefaults.SparkScanView.cameraSwitchButtonVisible,
|
|
4160
4290
|
zoomSwitchControlVisible: jsonDefaults.SparkScanView.zoomSwitchControlVisible,
|
|
4161
4291
|
SparkScanViewSettings: {
|
|
4162
4292
|
triggerButtonCollapseTimeout: sparkScanViewSettingsDefaults.triggerButtonCollapseTimeout,
|
|
4163
4293
|
defaultScanningMode: (fromJSON) => {
|
|
4164
|
-
return fromJSON(parseOrUse$
|
|
4294
|
+
return fromJSON(parseOrUse$2(sparkScanViewSettingsDefaults.defaultScanningMode));
|
|
4165
4295
|
},
|
|
4166
4296
|
defaultTorchState: sparkScanViewSettingsDefaults.defaultTorchState,
|
|
4167
4297
|
soundEnabled: sparkScanViewSettingsDefaults.soundEnabled,
|
|
@@ -4169,13 +4299,21 @@ function parseSparkScanDefaults(jsonDefaults) {
|
|
|
4169
4299
|
holdToScanEnabled: sparkScanViewSettingsDefaults.holdToScanEnabled,
|
|
4170
4300
|
hardwareTriggerEnabled: sparkScanViewSettingsDefaults.hardwareTriggerEnabled,
|
|
4171
4301
|
hardwareTriggerKeyCode: sparkScanViewSettingsDefaults.hardwareTriggerKeyCode,
|
|
4172
|
-
visualFeedbackEnabled: sparkScanViewSettingsDefaults.visualFeedbackEnabled
|
|
4302
|
+
visualFeedbackEnabled: sparkScanViewSettingsDefaults.visualFeedbackEnabled
|
|
4303
|
+
? sparkScanViewSettingsDefaults.visualFeedbackEnabled
|
|
4304
|
+
: false,
|
|
4173
4305
|
toastSettings: {
|
|
4174
4306
|
toastEnabled: toastSettingsDefaults.toastEnabled,
|
|
4175
|
-
toastBackgroundColor: toastSettingsDefaults.toastBackgroundColor
|
|
4176
|
-
|
|
4307
|
+
toastBackgroundColor: toastSettingsDefaults.toastBackgroundColor
|
|
4308
|
+
? Color['fromJSON'](toastSettingsDefaults.toastBackgroundColor)
|
|
4309
|
+
: null,
|
|
4310
|
+
toastTextColor: toastSettingsDefaults.toastTextColor
|
|
4311
|
+
? Color['fromJSON'](toastSettingsDefaults.toastTextColor)
|
|
4312
|
+
: null,
|
|
4177
4313
|
targetModeEnabledMessage: toastSettingsDefaults.targetModeEnabledMessage,
|
|
4178
4314
|
targetModeDisabledMessage: toastSettingsDefaults.targetModeDisabledMessage,
|
|
4315
|
+
selectionModeOnMessage: toastSettingsDefaults.selectionModeOnMessage,
|
|
4316
|
+
selectionModeOffMessage: toastSettingsDefaults.selectionModeOffMessage,
|
|
4179
4317
|
continuousModeEnabledMessage: toastSettingsDefaults.continuousModeEnabledMessage,
|
|
4180
4318
|
continuousModeDisabledMessage: toastSettingsDefaults.continuousModeDisabledMessage,
|
|
4181
4319
|
worldFacingCameraEnabledMessage: toastSettingsDefaults.worldFacingCameraEnabledMessage,
|
|
@@ -4192,18 +4330,15 @@ function parseSparkScanDefaults(jsonDefaults) {
|
|
|
4192
4330
|
defaultCameraPosition: sparkScanViewSettingsDefaults.defaultCameraPosition,
|
|
4193
4331
|
defaultMiniPreviewSize: sparkScanViewSettingsDefaults.defaultMiniPreviewSize,
|
|
4194
4332
|
periscopeModeEnabled: (_a = sparkScanViewSettingsDefaults.periscopeModeEnabled) !== null && _a !== void 0 ? _a : false,
|
|
4195
|
-
}
|
|
4333
|
+
},
|
|
4196
4334
|
},
|
|
4197
4335
|
};
|
|
4198
4336
|
return sparkScanDefaults;
|
|
4199
4337
|
}
|
|
4200
4338
|
|
|
4201
|
-
function parseOrUse$
|
|
4339
|
+
function parseOrUse$1(value) {
|
|
4202
4340
|
return typeof value === 'string' ? JSON.parse(value) : value;
|
|
4203
4341
|
}
|
|
4204
|
-
function getBarcodeFindDefaults() {
|
|
4205
|
-
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeFind);
|
|
4206
|
-
}
|
|
4207
4342
|
function parseBarcodeFindDefaults(jsonDefaults) {
|
|
4208
4343
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4209
4344
|
const viewJsonDefaults = jsonDefaults.BarcodeFindView;
|
|
@@ -4211,8 +4346,8 @@ function parseBarcodeFindDefaults(jsonDefaults) {
|
|
|
4211
4346
|
return {
|
|
4212
4347
|
RecommendedCameraSettings: CameraSettings['fromJSON'](jsonDefaults.RecommendedCameraSettings),
|
|
4213
4348
|
Feedback: {
|
|
4214
|
-
found: Feedback['fromJSON'](parseOrUse$
|
|
4215
|
-
itemListUpdated: Feedback['fromJSON'](parseOrUse$
|
|
4349
|
+
found: Feedback['fromJSON'](parseOrUse$1(jsonDefaults.BarcodeFindFeedback).found),
|
|
4350
|
+
itemListUpdated: Feedback['fromJSON'](parseOrUse$1(jsonDefaults.BarcodeFindFeedback).itemListUpdated),
|
|
4216
4351
|
},
|
|
4217
4352
|
BarcodeFindView: {
|
|
4218
4353
|
hardwareTriggerSupported: viewJsonDefaults.hardwareTriggerSupported,
|
|
@@ -4237,16 +4372,13 @@ function parseBarcodeFindDefaults(jsonDefaults) {
|
|
|
4237
4372
|
BarcodeFindViewSettings: {
|
|
4238
4373
|
progressBarStartColor: Color['fromJSON'](settingsJsonDefaults.progressBarStartColor),
|
|
4239
4374
|
progressBarFinishColor: Color['fromJSON'](settingsJsonDefaults.progressBarFinishColor),
|
|
4240
|
-
}
|
|
4375
|
+
},
|
|
4241
4376
|
};
|
|
4242
4377
|
}
|
|
4243
4378
|
|
|
4244
|
-
function parseOrUse
|
|
4379
|
+
function parseOrUse(value) {
|
|
4245
4380
|
return typeof value === 'string' ? JSON.parse(value) : value;
|
|
4246
4381
|
}
|
|
4247
|
-
function getBarcodeArDefaults() {
|
|
4248
|
-
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeAr);
|
|
4249
|
-
}
|
|
4250
4382
|
function parseCircleHighlightPresets(jsonPresets) {
|
|
4251
4383
|
const presets = {};
|
|
4252
4384
|
Object.entries(jsonPresets).forEach(([key, value]) => {
|
|
@@ -4262,8 +4394,8 @@ function parseBarcodeArDefaults(jsonDefaults) {
|
|
|
4262
4394
|
const barcodeArDefaults = {
|
|
4263
4395
|
RecommendedCameraSettings: CameraSettings['fromJSON'](jsonDefaults.RecommendedCameraSettings),
|
|
4264
4396
|
Feedback: {
|
|
4265
|
-
scanned: Feedback['fromJSON'](parseOrUse
|
|
4266
|
-
tapped: Feedback['fromJSON'](parseOrUse
|
|
4397
|
+
scanned: Feedback['fromJSON'](parseOrUse(jsonDefaults.barcodeArFeedback).scanned),
|
|
4398
|
+
tapped: Feedback['fromJSON'](parseOrUse(jsonDefaults.barcodeArFeedback).tapped),
|
|
4267
4399
|
},
|
|
4268
4400
|
BarcodeArView: {
|
|
4269
4401
|
circleHighlightPresets: parseCircleHighlightPresets(viewJsonDefaults.circleHighlightPresets),
|
|
@@ -4301,7 +4433,7 @@ function parseBarcodeArDefaults(jsonDefaults) {
|
|
|
4301
4433
|
defaultResponsiveAnnotationTrigger: viewJsonDefaults.defaultResponsiveAnnotationTrigger,
|
|
4302
4434
|
defaultIsEntirePopoverTappable: viewJsonDefaults.defaultIsEntirePopoverTappable,
|
|
4303
4435
|
defaultPopoverAnnotationTrigger: viewJsonDefaults.defaultPopoverAnnotationTrigger,
|
|
4304
|
-
defaultRectangleHighlightBrush: parseBrush(parseOrUse
|
|
4436
|
+
defaultRectangleHighlightBrush: parseBrush(parseOrUse(viewJsonDefaults.defaultRectangleHighlightBrush)),
|
|
4305
4437
|
defaultShouldShowCameraSwitchControl: viewJsonDefaults.defaultShouldShowCameraSwitchControl,
|
|
4306
4438
|
defaultShouldShowTorchControl: viewJsonDefaults.defaultShouldShowTorchControl,
|
|
4307
4439
|
defaultShouldShowZoomControl: viewJsonDefaults.defaultShouldShowZoomControl,
|
|
@@ -4315,7 +4447,7 @@ function parseBarcodeArDefaults(jsonDefaults) {
|
|
|
4315
4447
|
defaultTorchControlPosition: viewJsonDefaults.defaultTorchControlPosition,
|
|
4316
4448
|
defaultZoomControlPosition: viewJsonDefaults.defaultZoomControlPosition,
|
|
4317
4449
|
defaultHighlightIcon: ScanditIcon['fromJSON'](viewJsonDefaults.defaultHighlightIcon) || null,
|
|
4318
|
-
}
|
|
4450
|
+
},
|
|
4319
4451
|
};
|
|
4320
4452
|
return barcodeArDefaults;
|
|
4321
4453
|
}
|
|
@@ -4454,52 +4586,85 @@ function loadAllBarcodeDefaults(jsonDefaults) {
|
|
|
4454
4586
|
loadBarcodeArDefaults(jsonDefaults.BarcodeAr);
|
|
4455
4587
|
}
|
|
4456
4588
|
|
|
4457
|
-
function
|
|
4458
|
-
return
|
|
4589
|
+
function getBarcodeDefaults() {
|
|
4590
|
+
return ensureBarcodeDefaults();
|
|
4591
|
+
}
|
|
4592
|
+
/**
|
|
4593
|
+
* Helper function to get symbology settings from BarcodeDefaults with proper error handling.
|
|
4594
|
+
* This centralizes the common pattern used across various Settings classes.
|
|
4595
|
+
*
|
|
4596
|
+
* @param symbology - The symbology to get settings for (Symbology enum or string identifier)
|
|
4597
|
+
* @param errorPrefix - Prefix for error messages (e.g., "Barcode", "Barcode batch", "Barcode selection")
|
|
4598
|
+
* @returns SymbologySettings instance with _symbology property set (if symbology is an enum)
|
|
4599
|
+
* @throws Error if defaults are missing or symbology settings are not found
|
|
4600
|
+
*/
|
|
4601
|
+
function getSymbologySettingsFromDefaults(symbology, errorPrefix) {
|
|
4602
|
+
const defaults = ensureBarcodeDefaults();
|
|
4603
|
+
if (!defaults) {
|
|
4604
|
+
throw new Error(`${errorPrefix} defaults missing`);
|
|
4605
|
+
}
|
|
4606
|
+
const symbologyKey = symbology.toString();
|
|
4607
|
+
const symbologySettings = defaults.SymbologySettings[symbologyKey];
|
|
4608
|
+
if (!symbologySettings) {
|
|
4609
|
+
throw new Error(`Missing symbology defaults for ${symbology}`);
|
|
4610
|
+
}
|
|
4611
|
+
symbologySettings['_symbology'] = symbology;
|
|
4612
|
+
return symbologySettings;
|
|
4613
|
+
}
|
|
4614
|
+
|
|
4615
|
+
function getBarcodeCaptureDefaults() {
|
|
4616
|
+
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeCapture);
|
|
4617
|
+
}
|
|
4618
|
+
|
|
4619
|
+
function getBarcodeArDefaults() {
|
|
4620
|
+
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeAr);
|
|
4621
|
+
}
|
|
4622
|
+
|
|
4623
|
+
function getBarcodeSelectionDefaults() {
|
|
4624
|
+
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeSelection);
|
|
4625
|
+
}
|
|
4626
|
+
|
|
4627
|
+
function getBarcodeCountDefaults() {
|
|
4628
|
+
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeCount);
|
|
4629
|
+
}
|
|
4630
|
+
|
|
4631
|
+
function getBarcodeBatchDefaults() {
|
|
4632
|
+
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeBatch);
|
|
4633
|
+
}
|
|
4634
|
+
|
|
4635
|
+
function getSparkScanDefaults() {
|
|
4636
|
+
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.SparkScan);
|
|
4459
4637
|
}
|
|
4460
|
-
|
|
4461
|
-
|
|
4638
|
+
|
|
4639
|
+
function getBarcodePickDefaults() {
|
|
4640
|
+
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodePick);
|
|
4462
4641
|
}
|
|
4463
4642
|
/**
|
|
4464
|
-
* Helper function to get symbology settings from
|
|
4465
|
-
* This centralizes the common pattern used across various Settings classes.
|
|
4643
|
+
* Helper function to get symbology settings from BarcodePickDefaults with proper error handling.
|
|
4466
4644
|
*
|
|
4467
4645
|
* @param symbology - The symbology to get settings for (Symbology enum or string identifier)
|
|
4468
|
-
* @param errorPrefix - Prefix for error messages (e.g., "Barcode
|
|
4646
|
+
* @param errorPrefix - Prefix for error messages (e.g., "Barcode pick")
|
|
4469
4647
|
* @returns SymbologySettings instance with _symbology property set (if symbology is an enum)
|
|
4470
4648
|
* @throws Error if defaults are missing or symbology settings are not found
|
|
4471
4649
|
*/
|
|
4472
|
-
function
|
|
4473
|
-
const defaults =
|
|
4650
|
+
function getSymbologySettingsFromBarcodePickDefaults(symbology, errorPrefix) {
|
|
4651
|
+
const defaults = ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodePick);
|
|
4474
4652
|
if (!defaults) {
|
|
4475
4653
|
throw new Error(`${errorPrefix} defaults missing`);
|
|
4476
4654
|
}
|
|
4477
|
-
|
|
4478
|
-
const symbologyKey = symbology.toString();
|
|
4655
|
+
const symbologyKey = typeof symbology === 'string' ? symbology : String(symbology);
|
|
4479
4656
|
const symbologySettings = defaults.SymbologySettings[symbologyKey];
|
|
4480
4657
|
if (!symbologySettings) {
|
|
4481
4658
|
throw new Error(`Missing symbology defaults for ${symbology}`);
|
|
4482
4659
|
}
|
|
4483
|
-
|
|
4660
|
+
if (typeof symbology !== 'string') {
|
|
4661
|
+
symbologySettings['_symbology'] = symbology;
|
|
4662
|
+
}
|
|
4484
4663
|
return symbologySettings;
|
|
4485
4664
|
}
|
|
4486
|
-
function parseBarcodeDefaults(jsonDefaults) {
|
|
4487
|
-
const barcodeDefaults = {
|
|
4488
|
-
SymbologySettings: Object.keys(jsonDefaults.SymbologySettings)
|
|
4489
|
-
.reduce((settings, identifier) => {
|
|
4490
|
-
const symbologySettings = SymbologySettings['fromJSON'](identifier, parseOrUse(jsonDefaults.SymbologySettings[identifier]));
|
|
4491
|
-
settings[identifier] = symbologySettings;
|
|
4492
|
-
return settings;
|
|
4493
|
-
}, {}),
|
|
4494
|
-
SymbologyDescriptions: jsonDefaults.SymbologyDescriptions.map((description) => SymbologyDescription['fromJSON'](parseOrUse(description))),
|
|
4495
|
-
CompositeTypeDescriptions: jsonDefaults.CompositeTypeDescriptions.map(parseOrUse),
|
|
4496
|
-
};
|
|
4497
|
-
SymbologyDescription['defaults'] = () => barcodeDefaults;
|
|
4498
|
-
return barcodeDefaults;
|
|
4499
|
-
}
|
|
4500
4665
|
|
|
4501
|
-
function
|
|
4502
|
-
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.
|
|
4666
|
+
function getBarcodeFindDefaults() {
|
|
4667
|
+
return ensureBarcodeDefaultsFor(BarcodeDefaultsType.BarcodeFind);
|
|
4503
4668
|
}
|
|
4504
4669
|
|
|
4505
4670
|
class BarcodeCaptureFeedback extends DefaultSerializeable {
|
|
@@ -4526,11 +4691,9 @@ class BarcodeCaptureSession {
|
|
|
4526
4691
|
var _a;
|
|
4527
4692
|
const sessionJson = JSON.parse(json.session);
|
|
4528
4693
|
const session = new BarcodeCaptureSession();
|
|
4529
|
-
session._newlyRecognizedBarcode =
|
|
4530
|
-
Barcode['fromJSON'](sessionJson.newlyRecognizedBarcode) :
|
|
4531
|
-
|
|
4532
|
-
session._newlyLocalizedBarcodes = sessionJson.newlyLocalizedBarcodes
|
|
4533
|
-
.map(LocalizedOnlyBarcode['fromJSON']);
|
|
4694
|
+
session._newlyRecognizedBarcode =
|
|
4695
|
+
sessionJson.newlyRecognizedBarcode != null ? Barcode['fromJSON'](sessionJson.newlyRecognizedBarcode) : null;
|
|
4696
|
+
session._newlyLocalizedBarcodes = sessionJson.newlyLocalizedBarcodes.map(LocalizedOnlyBarcode['fromJSON']);
|
|
4534
4697
|
session._frameSequenceID = sessionJson.frameSequenceId;
|
|
4535
4698
|
session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
|
|
4536
4699
|
return session;
|
|
@@ -4573,7 +4736,10 @@ class BarcodeCaptureListenerController extends BaseController {
|
|
|
4573
4736
|
return this.adapter.updateBarcodeCaptureMode({ modeJson: JSON.stringify(this.mode.toJSON()) });
|
|
4574
4737
|
}
|
|
4575
4738
|
applyBarcodeCaptureModeSettings(modeSettings) {
|
|
4576
|
-
return this.adapter.applyBarcodeCaptureModeSettings({
|
|
4739
|
+
return this.adapter.applyBarcodeCaptureModeSettings({
|
|
4740
|
+
modeId: this.modeId,
|
|
4741
|
+
modeSettingsJson: JSON.stringify(modeSettings.toJSON()),
|
|
4742
|
+
});
|
|
4577
4743
|
}
|
|
4578
4744
|
subscribeListener() {
|
|
4579
4745
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4778,7 +4944,7 @@ class BarcodeCaptureOverlayController extends BaseController {
|
|
|
4778
4944
|
}
|
|
4779
4945
|
return this.adapter.updateBarcodeCaptureOverlay({
|
|
4780
4946
|
viewId: view.viewId,
|
|
4781
|
-
overlayJson: JSON.stringify(overlay.toJSON())
|
|
4947
|
+
overlayJson: JSON.stringify(overlay.toJSON()),
|
|
4782
4948
|
});
|
|
4783
4949
|
}
|
|
4784
4950
|
dispose() {
|
|
@@ -4870,8 +5036,7 @@ __decorate([
|
|
|
4870
5036
|
|
|
4871
5037
|
class BarcodeCaptureSettings extends DefaultSerializeable {
|
|
4872
5038
|
get enabledSymbologies() {
|
|
4873
|
-
return Object.keys(this.symbologies)
|
|
4874
|
-
.filter(symbology => this.symbologies[symbology].isEnabled);
|
|
5039
|
+
return Object.keys(this.symbologies).filter(symbology => this.symbologies[symbology].isEnabled);
|
|
4875
5040
|
}
|
|
4876
5041
|
get compositeTypeDescriptions() {
|
|
4877
5042
|
return BarcodeCaptureSettings.barcodeDefaults.CompositeTypeDescriptions.reduce((descriptions, description) => {
|
|
@@ -4891,6 +5056,7 @@ class BarcodeCaptureSettings extends DefaultSerializeable {
|
|
|
4891
5056
|
this.enabledCompositeTypes = [];
|
|
4892
5057
|
this.batterySaving = BarcodeCaptureSettings.barcodeCaptureDefaults.BarcodeCaptureSettings.batterySaving;
|
|
4893
5058
|
this.scanIntention = BarcodeCaptureSettings.barcodeCaptureDefaults.BarcodeCaptureSettings.scanIntention;
|
|
5059
|
+
this.selectionMode = BarcodeCaptureSettings.barcodeCaptureDefaults.BarcodeCaptureSettings.selectionMode;
|
|
4894
5060
|
this.properties = {};
|
|
4895
5061
|
this.symbologies = {};
|
|
4896
5062
|
this._codeDuplicateFilter = BarcodeCaptureSettings.barcodeCaptureDefaults.BarcodeCaptureSettings.codeDuplicateFilter;
|
|
@@ -5026,6 +5192,7 @@ class BarcodeAr extends DefaultSerializeable {
|
|
|
5026
5192
|
this.privateContext = null;
|
|
5027
5193
|
this._feedback = BarcodeArFeedback.defaultFeedback;
|
|
5028
5194
|
this.listeners = [];
|
|
5195
|
+
this._barcodeFilter = null;
|
|
5029
5196
|
this._controller = null;
|
|
5030
5197
|
this._settings = settings;
|
|
5031
5198
|
}
|
|
@@ -5051,8 +5218,20 @@ class BarcodeAr extends DefaultSerializeable {
|
|
|
5051
5218
|
this.listeners.splice(index, 1);
|
|
5052
5219
|
this.checkAndUnsubscribeListeners();
|
|
5053
5220
|
}
|
|
5221
|
+
setBarcodeFilter(filter) {
|
|
5222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5223
|
+
var _a, _b;
|
|
5224
|
+
this._barcodeFilter = filter;
|
|
5225
|
+
if (filter != null) {
|
|
5226
|
+
return (_a = this._controller) === null || _a === void 0 ? void 0 : _a.registerBarcodeFilter();
|
|
5227
|
+
}
|
|
5228
|
+
else {
|
|
5229
|
+
return (_b = this._controller) === null || _b === void 0 ? void 0 : _b.unregisterBarcodeFilter();
|
|
5230
|
+
}
|
|
5231
|
+
});
|
|
5232
|
+
}
|
|
5054
5233
|
toJSON() {
|
|
5055
|
-
const json = Object.assign(Object.assign({}, super.toJSON()), { hasModeListener: this.listeners.length > 0 });
|
|
5234
|
+
const json = Object.assign(Object.assign({}, super.toJSON()), { hasModeListener: this.listeners.length > 0, hasBarcodeFilter: this._barcodeFilter != null });
|
|
5056
5235
|
return json;
|
|
5057
5236
|
}
|
|
5058
5237
|
checkAndSubscribeListeners() {
|
|
@@ -5105,6 +5284,9 @@ __decorate([
|
|
|
5105
5284
|
__decorate([
|
|
5106
5285
|
ignoreFromSerialization
|
|
5107
5286
|
], BarcodeAr.prototype, "listeners", void 0);
|
|
5287
|
+
__decorate([
|
|
5288
|
+
ignoreFromSerialization
|
|
5289
|
+
], BarcodeAr.prototype, "_barcodeFilter", void 0);
|
|
5108
5290
|
__decorate([
|
|
5109
5291
|
ignoreFromSerialization
|
|
5110
5292
|
], BarcodeAr.prototype, "_controller", void 0);
|
|
@@ -5179,19 +5361,14 @@ class BarcodeArInfoAnnotation extends Observable {
|
|
|
5179
5361
|
constructor(barcode) {
|
|
5180
5362
|
super();
|
|
5181
5363
|
this._type = 'barcodeArInfoAnnotation';
|
|
5182
|
-
this._annotationTrigger = BarcodeArInfoAnnotation.barcodeArDefaults
|
|
5183
|
-
|
|
5184
|
-
this.
|
|
5185
|
-
.BarcodeArView.defaultInfoAnnotationAnchor;
|
|
5186
|
-
this._backgroundColor = BarcodeArInfoAnnotation.barcodeArDefaults
|
|
5187
|
-
.BarcodeArView.defaultInfoAnnotationBackgroundColor;
|
|
5364
|
+
this._annotationTrigger = BarcodeArInfoAnnotation.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationTrigger;
|
|
5365
|
+
this._anchor = BarcodeArInfoAnnotation.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationAnchor;
|
|
5366
|
+
this._backgroundColor = BarcodeArInfoAnnotation.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBackgroundColor;
|
|
5188
5367
|
this._body = [];
|
|
5189
5368
|
this._footer = null;
|
|
5190
|
-
this._hasTip = BarcodeArInfoAnnotation.barcodeArDefaults
|
|
5191
|
-
.BarcodeArView.defaultInfoAnnotationHasTip;
|
|
5369
|
+
this._hasTip = BarcodeArInfoAnnotation.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationHasTip;
|
|
5192
5370
|
this._header = null;
|
|
5193
|
-
this._isEntireAnnotationTappable = BarcodeArInfoAnnotation.barcodeArDefaults
|
|
5194
|
-
.BarcodeArView.defaultInfoAnnotationEntireAnnotationTappable;
|
|
5371
|
+
this._isEntireAnnotationTappable = BarcodeArInfoAnnotation.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationEntireAnnotationTappable;
|
|
5195
5372
|
this._listener = null;
|
|
5196
5373
|
this._hasListener = false;
|
|
5197
5374
|
this._width = BarcodeArInfoAnnotation.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationWidth;
|
|
@@ -5335,21 +5512,16 @@ __decorate([
|
|
|
5335
5512
|
class BarcodeArInfoAnnotationBodyComponent extends Observable {
|
|
5336
5513
|
constructor() {
|
|
5337
5514
|
super(...arguments);
|
|
5338
|
-
this._isRightIconTappable = BarcodeArInfoAnnotationBodyComponent
|
|
5339
|
-
.
|
|
5340
|
-
this._isLeftIconTappable = BarcodeArInfoAnnotationBodyComponent
|
|
5341
|
-
.
|
|
5342
|
-
this._rightIcon = BarcodeArInfoAnnotationBodyComponent
|
|
5343
|
-
|
|
5344
|
-
this.
|
|
5345
|
-
.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementLeftIcon;
|
|
5346
|
-
this._text = BarcodeArInfoAnnotationBodyComponent
|
|
5347
|
-
.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementText;
|
|
5515
|
+
this._isRightIconTappable = BarcodeArInfoAnnotationBodyComponent.barcodeArDefaults.BarcodeArView
|
|
5516
|
+
.defaultInfoAnnotationBodyElementRightIconTappable;
|
|
5517
|
+
this._isLeftIconTappable = BarcodeArInfoAnnotationBodyComponent.barcodeArDefaults.BarcodeArView
|
|
5518
|
+
.defaultInfoAnnotationBodyElementLeftIconTappable;
|
|
5519
|
+
this._rightIcon = BarcodeArInfoAnnotationBodyComponent.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementRightIcon;
|
|
5520
|
+
this._leftIcon = BarcodeArInfoAnnotationBodyComponent.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementLeftIcon;
|
|
5521
|
+
this._text = BarcodeArInfoAnnotationBodyComponent.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementText;
|
|
5348
5522
|
this._textAlign = TextAlignment.Center;
|
|
5349
|
-
this._textColor = BarcodeArInfoAnnotationBodyComponent
|
|
5350
|
-
|
|
5351
|
-
this._textSize = BarcodeArInfoAnnotationBodyComponent
|
|
5352
|
-
.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementTextSize;
|
|
5523
|
+
this._textColor = BarcodeArInfoAnnotationBodyComponent.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementTextColor;
|
|
5524
|
+
this._textSize = BarcodeArInfoAnnotationBodyComponent.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationBodyElementTextSize;
|
|
5353
5525
|
this._fontFamily = FontFamily.SystemDefault;
|
|
5354
5526
|
}
|
|
5355
5527
|
static get barcodeArDefaults() {
|
|
@@ -5456,16 +5628,11 @@ class BarcodeArInfoAnnotationFooter extends Observable {
|
|
|
5456
5628
|
}
|
|
5457
5629
|
constructor() {
|
|
5458
5630
|
super();
|
|
5459
|
-
this._text = BarcodeArInfoAnnotationFooter.barcodeArDefaults
|
|
5460
|
-
|
|
5461
|
-
this.
|
|
5462
|
-
|
|
5463
|
-
this.
|
|
5464
|
-
.BarcodeArView.defaultInfoAnnotationFooterTextSize;
|
|
5465
|
-
this._textColor = BarcodeArInfoAnnotationFooter.barcodeArDefaults
|
|
5466
|
-
.BarcodeArView.defaultInfoAnnotationFooterTextColor;
|
|
5467
|
-
this._backgroundColor = BarcodeArInfoAnnotationFooter.barcodeArDefaults
|
|
5468
|
-
.BarcodeArView.defaultInfoAnnotationFooterBackgroundColor;
|
|
5631
|
+
this._text = BarcodeArInfoAnnotationFooter.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationFooterText;
|
|
5632
|
+
this._icon = BarcodeArInfoAnnotationFooter.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationFooterIcon;
|
|
5633
|
+
this._textSize = BarcodeArInfoAnnotationFooter.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationFooterTextSize;
|
|
5634
|
+
this._textColor = BarcodeArInfoAnnotationFooter.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationFooterTextColor;
|
|
5635
|
+
this._backgroundColor = BarcodeArInfoAnnotationFooter.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationFooterBackgroundColor;
|
|
5469
5636
|
this._fontFamily = FontFamily.SystemDefault;
|
|
5470
5637
|
}
|
|
5471
5638
|
get text() {
|
|
@@ -5539,16 +5706,11 @@ class BarcodeArInfoAnnotationHeader extends Observable {
|
|
|
5539
5706
|
}
|
|
5540
5707
|
constructor() {
|
|
5541
5708
|
super();
|
|
5542
|
-
this._text = BarcodeArInfoAnnotationHeader.barcodeArDefaults
|
|
5543
|
-
|
|
5544
|
-
this.
|
|
5545
|
-
|
|
5546
|
-
this.
|
|
5547
|
-
.BarcodeArView.defaultInfoAnnotationHeaderTextSize;
|
|
5548
|
-
this._textColor = BarcodeArInfoAnnotationHeader.barcodeArDefaults
|
|
5549
|
-
.BarcodeArView.defaultInfoAnnotationHeaderTextColor;
|
|
5550
|
-
this._backgroundColor = BarcodeArInfoAnnotationHeader.barcodeArDefaults
|
|
5551
|
-
.BarcodeArView.defaultInfoAnnotationHeaderBackgroundColor;
|
|
5709
|
+
this._text = BarcodeArInfoAnnotationHeader.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationHeaderText;
|
|
5710
|
+
this._icon = BarcodeArInfoAnnotationHeader.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationHeaderIcon;
|
|
5711
|
+
this._textSize = BarcodeArInfoAnnotationHeader.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationHeaderTextSize;
|
|
5712
|
+
this._textColor = BarcodeArInfoAnnotationHeader.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationHeaderTextColor;
|
|
5713
|
+
this._backgroundColor = BarcodeArInfoAnnotationHeader.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationHeaderBackgroundColor;
|
|
5552
5714
|
this._fontFamily = FontFamily.SystemDefault;
|
|
5553
5715
|
}
|
|
5554
5716
|
get text() {
|
|
@@ -5696,12 +5858,10 @@ class BarcodeArPopoverAnnotation extends Observable {
|
|
|
5696
5858
|
constructor(barcode, buttons) {
|
|
5697
5859
|
super();
|
|
5698
5860
|
this._type = 'barcodeArPopoverAnnotation';
|
|
5699
|
-
this._isEntirePopoverTappable = BarcodeArPopoverAnnotation.barcodeArDefaults
|
|
5700
|
-
.BarcodeArView.defaultIsEntirePopoverTappable;
|
|
5861
|
+
this._isEntirePopoverTappable = BarcodeArPopoverAnnotation.barcodeArDefaults.BarcodeArView.defaultIsEntirePopoverTappable;
|
|
5701
5862
|
this._listener = null;
|
|
5702
5863
|
this._hasListener = false;
|
|
5703
|
-
this._annotationTrigger = BarcodeArPopoverAnnotation.barcodeArDefaults
|
|
5704
|
-
.BarcodeArView.defaultInfoAnnotationTrigger;
|
|
5864
|
+
this._annotationTrigger = BarcodeArPopoverAnnotation.barcodeArDefaults.BarcodeArView.defaultInfoAnnotationTrigger;
|
|
5705
5865
|
this.buttonChangedListener = (property, index) => {
|
|
5706
5866
|
this.notifyListeners(property, index);
|
|
5707
5867
|
};
|
|
@@ -5773,10 +5933,8 @@ class BarcodeArPopoverAnnotationButton extends Observable {
|
|
|
5773
5933
|
}
|
|
5774
5934
|
constructor(icon, text) {
|
|
5775
5935
|
super();
|
|
5776
|
-
this._textColor = BarcodeArPopoverAnnotationButton
|
|
5777
|
-
|
|
5778
|
-
this._textSize = BarcodeArPopoverAnnotationButton
|
|
5779
|
-
.barcodeArDefaults.BarcodeArView.defaultBarcodeArPopoverAnnotationButtonTextSize;
|
|
5936
|
+
this._textColor = BarcodeArPopoverAnnotationButton.barcodeArDefaults.BarcodeArView.defaultBarcodeArPopoverAnnotationButtonTextColor;
|
|
5937
|
+
this._textSize = BarcodeArPopoverAnnotationButton.barcodeArDefaults.BarcodeArView.defaultBarcodeArPopoverAnnotationButtonTextSize;
|
|
5780
5938
|
this._fontFamily = FontFamily.SystemDefault;
|
|
5781
5939
|
this._icon = icon;
|
|
5782
5940
|
this._text = text;
|
|
@@ -5835,10 +5993,8 @@ class BarcodeArRectangleHighlight extends Observable {
|
|
|
5835
5993
|
constructor(barcode) {
|
|
5836
5994
|
super();
|
|
5837
5995
|
this._type = 'barcodeArRectangleHighlight';
|
|
5838
|
-
this._brush = BarcodeArRectangleHighlight
|
|
5839
|
-
|
|
5840
|
-
this._icon = BarcodeArRectangleHighlight
|
|
5841
|
-
.barcodeArDefaults.BarcodeArView.defaultHighlightIcon;
|
|
5996
|
+
this._brush = BarcodeArRectangleHighlight.barcodeArDefaults.BarcodeArView.defaultRectangleHighlightBrush;
|
|
5997
|
+
this._icon = BarcodeArRectangleHighlight.barcodeArDefaults.BarcodeArView.defaultHighlightIcon;
|
|
5842
5998
|
this._barcode = barcode;
|
|
5843
5999
|
}
|
|
5844
6000
|
get barcode() {
|
|
@@ -5890,13 +6046,11 @@ class BarcodeArSession extends DefaultSerializeable {
|
|
|
5890
6046
|
static fromJSON(json) {
|
|
5891
6047
|
const sessionJson = JSON.parse(json);
|
|
5892
6048
|
const session = new BarcodeArSession(json.viewId);
|
|
5893
|
-
session._addedTrackedBarcodes = sessionJson.addedTrackedBarcodes
|
|
5894
|
-
.map((trackedBarcodeJSON) => {
|
|
6049
|
+
session._addedTrackedBarcodes = sessionJson.addedTrackedBarcodes.map((trackedBarcodeJSON) => {
|
|
5895
6050
|
return TrackedBarcode['fromJSON'](trackedBarcodeJSON, sessionJson.frameSequenceId);
|
|
5896
6051
|
});
|
|
5897
6052
|
session._removedTrackedBarcodes = sessionJson.removedTrackedBarcodes;
|
|
5898
|
-
session._trackedBarcodes = Object.keys(sessionJson.allTrackedBarcodes)
|
|
5899
|
-
.reduce((trackedBarcodes, identifier) => {
|
|
6053
|
+
session._trackedBarcodes = Object.keys(sessionJson.allTrackedBarcodes).reduce((trackedBarcodes, identifier) => {
|
|
5900
6054
|
trackedBarcodes[identifier] = TrackedBarcode['fromJSON'](sessionJson.allTrackedBarcodes[identifier], sessionJson.frameSequenceId);
|
|
5901
6055
|
return trackedBarcodes;
|
|
5902
6056
|
}, {});
|
|
@@ -5939,8 +6093,7 @@ class BarcodeArSettings extends DefaultSerializeable {
|
|
|
5939
6093
|
this.properties = {};
|
|
5940
6094
|
}
|
|
5941
6095
|
get enabledSymbologies() {
|
|
5942
|
-
return Object.keys(this.symbologies)
|
|
5943
|
-
.filter(symbology => this.symbologies[symbology].isEnabled);
|
|
6096
|
+
return Object.keys(this.symbologies).filter(symbology => this.symbologies[symbology].isEnabled);
|
|
5944
6097
|
}
|
|
5945
6098
|
settingsForSymbology(symbology) {
|
|
5946
6099
|
if (!this.symbologies[symbology]) {
|
|
@@ -5970,18 +6123,12 @@ class BarcodeArStatusIconAnnotation extends Observable {
|
|
|
5970
6123
|
constructor(barcode) {
|
|
5971
6124
|
super();
|
|
5972
6125
|
this._type = 'barcodeArStatusIconAnnotation';
|
|
5973
|
-
this._hasTip = BarcodeArStatusIconAnnotation
|
|
5974
|
-
|
|
5975
|
-
this.
|
|
5976
|
-
|
|
5977
|
-
this.
|
|
5978
|
-
|
|
5979
|
-
this._textColor = BarcodeArStatusIconAnnotation
|
|
5980
|
-
.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationTextColor;
|
|
5981
|
-
this._backgroundColor = BarcodeArStatusIconAnnotation
|
|
5982
|
-
.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationBackgroundColor;
|
|
5983
|
-
this._annotationTrigger = BarcodeArStatusIconAnnotation
|
|
5984
|
-
.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationTrigger;
|
|
6126
|
+
this._hasTip = BarcodeArStatusIconAnnotation.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationHasTip;
|
|
6127
|
+
this._icon = BarcodeArStatusIconAnnotation.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationIcon;
|
|
6128
|
+
this._text = BarcodeArStatusIconAnnotation.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationText;
|
|
6129
|
+
this._textColor = BarcodeArStatusIconAnnotation.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationTextColor;
|
|
6130
|
+
this._backgroundColor = BarcodeArStatusIconAnnotation.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationBackgroundColor;
|
|
6131
|
+
this._annotationTrigger = BarcodeArStatusIconAnnotation.barcodeArDefaults.BarcodeArView.defaultStatusIconAnnotationTrigger;
|
|
5985
6132
|
this._barcode = barcode;
|
|
5986
6133
|
}
|
|
5987
6134
|
get barcode() {
|
|
@@ -6092,6 +6239,33 @@ class BarcodeArViewEventHandlers {
|
|
|
6092
6239
|
}
|
|
6093
6240
|
void ((_b = (_a = this.view) === null || _a === void 0 ? void 0 : _a.barcodeArViewUiListener) === null || _b === void 0 ? void 0 : _b.didTapHighlightForBarcode(this.barcodeAr, barcode, highlight));
|
|
6094
6241
|
}
|
|
6242
|
+
handleFilterBarcodes(ev) {
|
|
6243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6244
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, { viewId: this.view.viewId });
|
|
6245
|
+
if (payload === SKIP) {
|
|
6246
|
+
return;
|
|
6247
|
+
}
|
|
6248
|
+
if (payload === null) {
|
|
6249
|
+
console.error('BarcodeArViewController filterBarcodes payload is null');
|
|
6250
|
+
return;
|
|
6251
|
+
}
|
|
6252
|
+
const entries = payload.barcodes;
|
|
6253
|
+
const barcodes = entries.map((e) => Barcode['fromJSON'](JSON.parse(e.barcode)));
|
|
6254
|
+
const ids = entries.map((e) => e.barcodeId);
|
|
6255
|
+
const filter = this.barcodeAr['_barcodeFilter'];
|
|
6256
|
+
const filtered = filter ? yield filter.filterBarcodes(barcodes) : barcodes;
|
|
6257
|
+
const filteredIds = filtered
|
|
6258
|
+
.map((fb) => {
|
|
6259
|
+
const idx = barcodes.findIndex((b) => b === fb);
|
|
6260
|
+
return idx >= 0 ? ids[idx] : null;
|
|
6261
|
+
})
|
|
6262
|
+
.filter((id) => id !== null);
|
|
6263
|
+
yield this.adapter.finishBarcodeArFilterBarcodes({
|
|
6264
|
+
viewId: this.view.viewId,
|
|
6265
|
+
filteredBarcodesJson: JSON.stringify({ barcodes: filteredIds }),
|
|
6266
|
+
});
|
|
6267
|
+
});
|
|
6268
|
+
}
|
|
6095
6269
|
handleHighlightForBarcode(ev) {
|
|
6096
6270
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6097
6271
|
var _a, _b;
|
|
@@ -6388,6 +6562,10 @@ var BarcodeArAnnotationProviderEvents;
|
|
|
6388
6562
|
BarcodeArAnnotationProviderEvents["didTapPopoverEvent"] = "BarcodeArPopoverAnnotationListener.didTapPopover";
|
|
6389
6563
|
BarcodeArAnnotationProviderEvents["didTapPopoverButtonEvent"] = "BarcodeArPopoverAnnotationListener.didTapPopoverButton";
|
|
6390
6564
|
})(BarcodeArAnnotationProviderEvents || (BarcodeArAnnotationProviderEvents = {}));
|
|
6565
|
+
var BarcodeArFilterEvents;
|
|
6566
|
+
(function (BarcodeArFilterEvents) {
|
|
6567
|
+
BarcodeArFilterEvents["filterBarcodes"] = "BarcodeArFilter.filterBarcodes";
|
|
6568
|
+
})(BarcodeArFilterEvents || (BarcodeArFilterEvents = {}));
|
|
6391
6569
|
var BarcodeArEvents;
|
|
6392
6570
|
(function (BarcodeArEvents) {
|
|
6393
6571
|
// Listener Events
|
|
@@ -6405,6 +6583,7 @@ class BarcodeArViewController extends BaseController {
|
|
|
6405
6583
|
this.isUiListenerRegistered = false;
|
|
6406
6584
|
this.isAnnotationProviderRegistered = false;
|
|
6407
6585
|
this.isHighlightProviderRegistered = false;
|
|
6586
|
+
this.isBarcodeFilterRegistered = false;
|
|
6408
6587
|
this.handleDidUpdateSessionWrapper = (ev) => {
|
|
6409
6588
|
return this.eventHandlers.handleDidUpdateSession(ev);
|
|
6410
6589
|
};
|
|
@@ -6438,6 +6617,9 @@ class BarcodeArViewController extends BaseController {
|
|
|
6438
6617
|
this.handleHighlightForBarcodeWrapper = (ev) => {
|
|
6439
6618
|
return this.eventHandlers.handleHighlightForBarcode(ev);
|
|
6440
6619
|
};
|
|
6620
|
+
this.handleFilterBarcodesWrapper = (ev) => {
|
|
6621
|
+
return this.eventHandlers.handleFilterBarcodes(ev);
|
|
6622
|
+
};
|
|
6441
6623
|
this.adapter = new BarcodeProxyAdapter(this._proxy);
|
|
6442
6624
|
this.baseView = baseView;
|
|
6443
6625
|
this.barcodeAr = barcodeAr;
|
|
@@ -6571,7 +6753,9 @@ class BarcodeArViewController extends BaseController {
|
|
|
6571
6753
|
}
|
|
6572
6754
|
registerCustomHighlightCreateEvent(onCreate) {
|
|
6573
6755
|
const onCreateWrapper = (data) => {
|
|
6574
|
-
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6756
|
+
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6757
|
+
viewId: this.baseView.viewId,
|
|
6758
|
+
});
|
|
6575
6759
|
if (parsedData === SKIP || parsedData === null) {
|
|
6576
6760
|
return;
|
|
6577
6761
|
}
|
|
@@ -6590,7 +6774,7 @@ class BarcodeArViewController extends BaseController {
|
|
|
6590
6774
|
if (parsedData === SKIP || parsedData === null) {
|
|
6591
6775
|
return;
|
|
6592
6776
|
}
|
|
6593
|
-
parsedData.updates.forEach(
|
|
6777
|
+
parsedData.updates.forEach(update => {
|
|
6594
6778
|
const receivedBarcodeId = update.barcodeId;
|
|
6595
6779
|
if (barcodeId !== receivedBarcodeId) {
|
|
6596
6780
|
return;
|
|
@@ -6606,7 +6790,9 @@ class BarcodeArViewController extends BaseController {
|
|
|
6606
6790
|
}
|
|
6607
6791
|
registerCustomHighlightHideEvent(onHide, barcodeId) {
|
|
6608
6792
|
const onHideWrapper = (data) => {
|
|
6609
|
-
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6793
|
+
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6794
|
+
viewId: this.baseView.viewId,
|
|
6795
|
+
});
|
|
6610
6796
|
if (parsedData === SKIP || parsedData === null) {
|
|
6611
6797
|
return;
|
|
6612
6798
|
}
|
|
@@ -6623,7 +6809,9 @@ class BarcodeArViewController extends BaseController {
|
|
|
6623
6809
|
}
|
|
6624
6810
|
registerCustomHighlightShowEvent(onShow, barcodeId) {
|
|
6625
6811
|
const onShowWrapper = (data) => {
|
|
6626
|
-
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6812
|
+
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6813
|
+
viewId: this.baseView.viewId,
|
|
6814
|
+
});
|
|
6627
6815
|
if (parsedData === SKIP || parsedData === null) {
|
|
6628
6816
|
return;
|
|
6629
6817
|
}
|
|
@@ -6640,7 +6828,9 @@ class BarcodeArViewController extends BaseController {
|
|
|
6640
6828
|
}
|
|
6641
6829
|
registerCustomHighlightDisposeEvent(onDispose) {
|
|
6642
6830
|
const onDisposeWrapper = (data) => {
|
|
6643
|
-
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6831
|
+
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6832
|
+
viewId: this.baseView.viewId,
|
|
6833
|
+
});
|
|
6644
6834
|
if (parsedData === SKIP || parsedData === null) {
|
|
6645
6835
|
return;
|
|
6646
6836
|
}
|
|
@@ -6668,7 +6858,9 @@ class BarcodeArViewController extends BaseController {
|
|
|
6668
6858
|
}
|
|
6669
6859
|
registerCustomAnnotationCreateEvent(onCreate) {
|
|
6670
6860
|
const onCreateWrapper = (data) => {
|
|
6671
|
-
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6861
|
+
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6862
|
+
viewId: this.baseView.viewId,
|
|
6863
|
+
});
|
|
6672
6864
|
if (parsedData === SKIP || parsedData === null) {
|
|
6673
6865
|
return;
|
|
6674
6866
|
}
|
|
@@ -6687,7 +6879,7 @@ class BarcodeArViewController extends BaseController {
|
|
|
6687
6879
|
if (parsedData === SKIP || parsedData === null) {
|
|
6688
6880
|
return;
|
|
6689
6881
|
}
|
|
6690
|
-
parsedData.updates.forEach(
|
|
6882
|
+
parsedData.updates.forEach(update => {
|
|
6691
6883
|
const receivedBarcodeId = update.barcodeId;
|
|
6692
6884
|
if (barcodeId !== receivedBarcodeId) {
|
|
6693
6885
|
return;
|
|
@@ -6703,7 +6895,9 @@ class BarcodeArViewController extends BaseController {
|
|
|
6703
6895
|
}
|
|
6704
6896
|
registerCustomAnnotationHideEvent(onHide, barcodeId) {
|
|
6705
6897
|
const onHideWrapper = (data) => {
|
|
6706
|
-
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6898
|
+
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6899
|
+
viewId: this.baseView.viewId,
|
|
6900
|
+
});
|
|
6707
6901
|
if (parsedData === SKIP || parsedData === null) {
|
|
6708
6902
|
return;
|
|
6709
6903
|
}
|
|
@@ -6720,7 +6914,9 @@ class BarcodeArViewController extends BaseController {
|
|
|
6720
6914
|
}
|
|
6721
6915
|
registerCustomAnnotationShowEvent(onShow, barcodeId) {
|
|
6722
6916
|
const onShowWrapper = (data) => {
|
|
6723
|
-
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6917
|
+
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6918
|
+
viewId: this.baseView.viewId,
|
|
6919
|
+
});
|
|
6724
6920
|
if (parsedData === SKIP || parsedData === null) {
|
|
6725
6921
|
return;
|
|
6726
6922
|
}
|
|
@@ -6737,7 +6933,9 @@ class BarcodeArViewController extends BaseController {
|
|
|
6737
6933
|
}
|
|
6738
6934
|
registerCustomAnnotationDisposeEvent(onDispose) {
|
|
6739
6935
|
const onDisposeWrapper = (data) => {
|
|
6740
|
-
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6936
|
+
const parsedData = EventDataParser.parseIfShouldHandle(data, {
|
|
6937
|
+
viewId: this.baseView.viewId,
|
|
6938
|
+
});
|
|
6741
6939
|
if (parsedData === SKIP || parsedData === null) {
|
|
6742
6940
|
return;
|
|
6743
6941
|
}
|
|
@@ -6769,6 +6967,34 @@ class BarcodeArViewController extends BaseController {
|
|
|
6769
6967
|
this.isHighlightProviderRegistered = false;
|
|
6770
6968
|
});
|
|
6771
6969
|
}
|
|
6970
|
+
registerBarcodeFilter() {
|
|
6971
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6972
|
+
if (!this.isViewCreated) {
|
|
6973
|
+
return;
|
|
6974
|
+
}
|
|
6975
|
+
if (this.isBarcodeFilterRegistered) {
|
|
6976
|
+
return;
|
|
6977
|
+
}
|
|
6978
|
+
this.isBarcodeFilterRegistered = true;
|
|
6979
|
+
this._proxy.subscribeForEvents(Object.values(BarcodeArFilterEvents));
|
|
6980
|
+
this._proxy.eventEmitter.on(BarcodeArFilterEvents.filterBarcodes, this.handleFilterBarcodesWrapper);
|
|
6981
|
+
yield this.adapter.registerBarcodeArFilter({ viewId: this.baseView.viewId });
|
|
6982
|
+
});
|
|
6983
|
+
}
|
|
6984
|
+
unregisterBarcodeFilter() {
|
|
6985
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6986
|
+
if (!this.isViewCreated) {
|
|
6987
|
+
return;
|
|
6988
|
+
}
|
|
6989
|
+
if (!this.isBarcodeFilterRegistered) {
|
|
6990
|
+
return;
|
|
6991
|
+
}
|
|
6992
|
+
this._proxy.unsubscribeFromEvents(Object.values(BarcodeArFilterEvents));
|
|
6993
|
+
this._proxy.eventEmitter.off(BarcodeArFilterEvents.filterBarcodes, this.handleFilterBarcodesWrapper);
|
|
6994
|
+
yield this.adapter.unregisterBarcodeArFilter({ viewId: this.baseView.viewId });
|
|
6995
|
+
this.isBarcodeFilterRegistered = false;
|
|
6996
|
+
});
|
|
6997
|
+
}
|
|
6772
6998
|
start() {
|
|
6773
6999
|
this.eventHandlers.clearCaches();
|
|
6774
7000
|
return this.adapter.barcodeArViewStart({ viewId: this.baseView.viewId });
|
|
@@ -6835,6 +7061,9 @@ class BarcodeArViewController extends BaseController {
|
|
|
6835
7061
|
if (this.baseView.highlightProvider) {
|
|
6836
7062
|
yield this.registerHighlightProvider();
|
|
6837
7063
|
}
|
|
7064
|
+
if (this.barcodeAr['_barcodeFilter']) {
|
|
7065
|
+
yield this.registerBarcodeFilter();
|
|
7066
|
+
}
|
|
6838
7067
|
});
|
|
6839
7068
|
}
|
|
6840
7069
|
createView() {
|
|
@@ -7117,12 +7346,9 @@ class BarcodeArViewSettings extends DefaultSerializeable {
|
|
|
7117
7346
|
}
|
|
7118
7347
|
constructor() {
|
|
7119
7348
|
super();
|
|
7120
|
-
this._soundEnabled = BarcodeArViewSettings
|
|
7121
|
-
|
|
7122
|
-
this.
|
|
7123
|
-
.barcodeArDefaults.BarcodeArView.defaultHapticsEnabled;
|
|
7124
|
-
this._defaultCameraPosition = BarcodeArViewSettings
|
|
7125
|
-
.barcodeArDefaults.BarcodeArView.defaultCameraPosition;
|
|
7349
|
+
this._soundEnabled = BarcodeArViewSettings.barcodeArDefaults.BarcodeArView.defaultSoundEnabled;
|
|
7350
|
+
this._hapticEnabled = BarcodeArViewSettings.barcodeArDefaults.BarcodeArView.defaultHapticsEnabled;
|
|
7351
|
+
this._defaultCameraPosition = BarcodeArViewSettings.barcodeArDefaults.BarcodeArView.defaultCameraPosition;
|
|
7126
7352
|
}
|
|
7127
7353
|
get soundEnabled() {
|
|
7128
7354
|
return this._soundEnabled;
|
|
@@ -7144,13 +7370,13 @@ class BarcodeArViewSettings extends DefaultSerializeable {
|
|
|
7144
7370
|
}
|
|
7145
7371
|
}
|
|
7146
7372
|
__decorate([
|
|
7147
|
-
nameForSerialization(
|
|
7373
|
+
nameForSerialization('soundEnabled')
|
|
7148
7374
|
], BarcodeArViewSettings.prototype, "_soundEnabled", void 0);
|
|
7149
7375
|
__decorate([
|
|
7150
|
-
nameForSerialization(
|
|
7376
|
+
nameForSerialization('hapticEnabled')
|
|
7151
7377
|
], BarcodeArViewSettings.prototype, "_hapticEnabled", void 0);
|
|
7152
7378
|
__decorate([
|
|
7153
|
-
nameForSerialization(
|
|
7379
|
+
nameForSerialization('defaultCameraPosition')
|
|
7154
7380
|
], BarcodeArViewSettings.prototype, "_defaultCameraPosition", void 0);
|
|
7155
7381
|
__decorate([
|
|
7156
7382
|
ignoreFromSerialization
|
|
@@ -7236,12 +7462,9 @@ class BarcodeSelectionSession {
|
|
|
7236
7462
|
var _a;
|
|
7237
7463
|
const sessionJson = JSON.parse(json.session);
|
|
7238
7464
|
const session = new BarcodeSelectionSession();
|
|
7239
|
-
session._selectedBarcodes = sessionJson.selectedBarcodes
|
|
7240
|
-
|
|
7241
|
-
session.
|
|
7242
|
-
.map(Barcode['fromJSON']);
|
|
7243
|
-
session._newlyUnselectedBarcodes = sessionJson.newlyUnselectedBarcodes
|
|
7244
|
-
.map(Barcode['fromJSON']);
|
|
7465
|
+
session._selectedBarcodes = sessionJson.selectedBarcodes.map(Barcode['fromJSON']);
|
|
7466
|
+
session._newlySelectedBarcodes = sessionJson.newlySelectedBarcodes.map(Barcode['fromJSON']);
|
|
7467
|
+
session._newlyUnselectedBarcodes = sessionJson.newlyUnselectedBarcodes.map(Barcode['fromJSON']);
|
|
7245
7468
|
session._frameSequenceID = sessionJson.frameSequenceId;
|
|
7246
7469
|
session.frameId = (_a = json.frameId) !== null && _a !== void 0 ? _a : '';
|
|
7247
7470
|
return session;
|
|
@@ -7325,7 +7548,9 @@ class BarcodeSelectionListenerController extends BaseController {
|
|
|
7325
7548
|
}
|
|
7326
7549
|
handleDidUpdateSession(ev) {
|
|
7327
7550
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7328
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
7551
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
7552
|
+
modeId: this.modeId,
|
|
7553
|
+
});
|
|
7329
7554
|
if (payload === SKIP) {
|
|
7330
7555
|
return;
|
|
7331
7556
|
}
|
|
@@ -7344,7 +7569,9 @@ class BarcodeSelectionListenerController extends BaseController {
|
|
|
7344
7569
|
}
|
|
7345
7570
|
handleDidUpdateSelection(ev) {
|
|
7346
7571
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7347
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
7572
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
7573
|
+
modeId: this.modeId,
|
|
7574
|
+
});
|
|
7348
7575
|
if (payload === SKIP) {
|
|
7349
7576
|
return;
|
|
7350
7577
|
}
|
|
@@ -7407,7 +7634,11 @@ class BarcodeSelectionController extends BaseController {
|
|
|
7407
7634
|
}
|
|
7408
7635
|
setSelectBarcodeEnabled(barcode, enabled) {
|
|
7409
7636
|
const barcodesJson = this.convertBarcodesToJson([barcode]);
|
|
7410
|
-
return this.adapter.setSelectBarcodeEnabled({
|
|
7637
|
+
return this.adapter.setSelectBarcodeEnabled({
|
|
7638
|
+
barcodeJson: JSON.stringify(barcodesJson[0]),
|
|
7639
|
+
enabled: enabled,
|
|
7640
|
+
modeId: this.modeId,
|
|
7641
|
+
});
|
|
7411
7642
|
}
|
|
7412
7643
|
increaseCountForBarcodes(barcodes) {
|
|
7413
7644
|
const barcodesJson = this.convertBarcodesToJson(barcodes);
|
|
@@ -7417,10 +7648,16 @@ class BarcodeSelectionController extends BaseController {
|
|
|
7417
7648
|
return this.adapter.setBarcodeSelectionModeEnabledState({ modeId: this.modeId, enabled: enabled });
|
|
7418
7649
|
}
|
|
7419
7650
|
updateBarcodeSelectionMode(barcodeSelection) {
|
|
7420
|
-
return this.adapter.updateBarcodeSelectionMode({
|
|
7651
|
+
return this.adapter.updateBarcodeSelectionMode({
|
|
7652
|
+
modeJson: JSON.stringify(barcodeSelection.toJSON()),
|
|
7653
|
+
modeId: this.modeId,
|
|
7654
|
+
});
|
|
7421
7655
|
}
|
|
7422
7656
|
applyBarcodeSelectionModeSettings(newSettings) {
|
|
7423
|
-
return this.adapter.applyBarcodeSelectionModeSettings({
|
|
7657
|
+
return this.adapter.applyBarcodeSelectionModeSettings({
|
|
7658
|
+
modeSettingsJson: JSON.stringify(newSettings.toJSON()),
|
|
7659
|
+
modeId: this.modeId,
|
|
7660
|
+
});
|
|
7424
7661
|
}
|
|
7425
7662
|
updateFeedback(feedbackJson) {
|
|
7426
7663
|
return this.adapter.updateBarcodeSelectionFeedback({ feedbackJson: feedbackJson, modeId: this.modeId });
|
|
@@ -7433,7 +7670,7 @@ class BarcodeSelectionController extends BaseController {
|
|
|
7433
7670
|
data: barcode.data,
|
|
7434
7671
|
rawData: barcode.rawData,
|
|
7435
7672
|
symbology: barcode.symbology,
|
|
7436
|
-
symbolCount: barcode.symbolCount
|
|
7673
|
+
symbolCount: barcode.symbolCount,
|
|
7437
7674
|
}));
|
|
7438
7675
|
}
|
|
7439
7676
|
}
|
|
@@ -7847,7 +8084,8 @@ class BarcodeSelectionBasicOverlay extends DefaultSerializeable {
|
|
|
7847
8084
|
this._aimedBrush = new Brush(BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay['styles'][BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay.defaultStyle].DefaultAimedBrush.fillColor, BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay['styles'][BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay.defaultStyle].DefaultAimedBrush.strokeColor, BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay['styles'][BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay.defaultStyle].DefaultAimedBrush.strokeWidth);
|
|
7848
8085
|
this._selectedBrush = new Brush(BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay['styles'][BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay.defaultStyle].DefaultSelectedBrush.fillColor, BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay['styles'][BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay.defaultStyle].DefaultSelectedBrush.strokeColor, BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay['styles'][BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay.defaultStyle].DefaultSelectedBrush.strokeWidth);
|
|
7849
8086
|
this._selectingBrush = new Brush(BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay['styles'][BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay.defaultStyle].DefaultSelectingBrush.fillColor, BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay['styles'][BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay.defaultStyle].DefaultSelectingBrush.strokeColor, BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay['styles'][BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay.defaultStyle].DefaultSelectingBrush.strokeWidth);
|
|
7850
|
-
this._style =
|
|
8087
|
+
this._style =
|
|
8088
|
+
style !== null && style !== void 0 ? style : BarcodeSelectionBasicOverlay.barcodeSelectionDefaults.BarcodeSelectionBasicOverlay.defaultStyle;
|
|
7851
8089
|
this.modeId = mode['modeId'];
|
|
7852
8090
|
}
|
|
7853
8091
|
setTextForAimToSelectAutoHint(text) {
|
|
@@ -7977,8 +8215,8 @@ class BarcodeSelectionAimerSelection extends DefaultSerializeable {
|
|
|
7977
8215
|
constructor() {
|
|
7978
8216
|
super();
|
|
7979
8217
|
this.type = BarcodeSelectionTypeName.Aimer;
|
|
7980
|
-
this.selectionStrategy =
|
|
7981
|
-
.defaultSelectionStrategy((json) => PrivateBarcodeSelectionStrategy.fromJSON(json));
|
|
8218
|
+
this.selectionStrategy =
|
|
8219
|
+
BarcodeSelectionAimerSelection.barcodeSelectionDefaults.BarcodeSelectionAimerSelection.defaultSelectionStrategy((json) => PrivateBarcodeSelectionStrategy.fromJSON(json));
|
|
7982
8220
|
}
|
|
7983
8221
|
}
|
|
7984
8222
|
__decorate([
|
|
@@ -8019,8 +8257,7 @@ class BarcodeSelectionSettings extends DefaultSerializeable {
|
|
|
8019
8257
|
return getBarcodeSelectionDefaults();
|
|
8020
8258
|
}
|
|
8021
8259
|
get enabledSymbologies() {
|
|
8022
|
-
return Object.keys(this.symbologies)
|
|
8023
|
-
.filter(symbology => this.symbologies[symbology].isEnabled);
|
|
8260
|
+
return Object.keys(this.symbologies).filter(symbology => this.symbologies[symbology].isEnabled);
|
|
8024
8261
|
}
|
|
8025
8262
|
constructor() {
|
|
8026
8263
|
super();
|
|
@@ -8324,10 +8561,10 @@ class BarcodeCountCaptureListSession extends DefaultSerializeable {
|
|
|
8324
8561
|
missingBarcodes,
|
|
8325
8562
|
additionalBarcodes,
|
|
8326
8563
|
acceptedBarcodes,
|
|
8327
|
-
rejectedBarcodes
|
|
8564
|
+
rejectedBarcodes,
|
|
8328
8565
|
});
|
|
8329
8566
|
}
|
|
8330
|
-
constructor({ correctBarcodes, wrongBarcodes, missingBarcodes, additionalBarcodes, acceptedBarcodes, rejectedBarcodes }) {
|
|
8567
|
+
constructor({ correctBarcodes, wrongBarcodes, missingBarcodes, additionalBarcodes, acceptedBarcodes, rejectedBarcodes, }) {
|
|
8331
8568
|
super();
|
|
8332
8569
|
this._correctBarcodes = correctBarcodes;
|
|
8333
8570
|
this._wrongBarcodes = wrongBarcodes;
|
|
@@ -8400,7 +8637,11 @@ class BarcodeCountSessionController extends BaseController {
|
|
|
8400
8637
|
}
|
|
8401
8638
|
getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns) {
|
|
8402
8639
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8403
|
-
const result = yield this.adapter.getBarcodeCountSpatialMapWithHints({
|
|
8640
|
+
const result = yield this.adapter.getBarcodeCountSpatialMapWithHints({
|
|
8641
|
+
viewId: this.viewId,
|
|
8642
|
+
expectedNumberOfRows,
|
|
8643
|
+
expectedNumberOfColumns,
|
|
8644
|
+
});
|
|
8404
8645
|
if (result) {
|
|
8405
8646
|
const payload = JSON.parse(result.data);
|
|
8406
8647
|
return BarcodeSpatialGrid['fromJSON'](payload);
|
|
@@ -8461,13 +8702,13 @@ class BarcodeCountSession extends DefaultSerializeable {
|
|
|
8461
8702
|
getSpatialMap() {
|
|
8462
8703
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8463
8704
|
var _a;
|
|
8464
|
-
return (_a = yield this.sessionController.getSpatialMap()) !== null && _a !== void 0 ? _a : null;
|
|
8705
|
+
return (_a = (yield this.sessionController.getSpatialMap())) !== null && _a !== void 0 ? _a : null;
|
|
8465
8706
|
});
|
|
8466
8707
|
}
|
|
8467
8708
|
getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns) {
|
|
8468
8709
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8469
8710
|
var _a;
|
|
8470
|
-
return (_a = yield this.sessionController.getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns)) !== null && _a !== void 0 ? _a : null;
|
|
8711
|
+
return (_a = (yield this.sessionController.getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns))) !== null && _a !== void 0 ? _a : null;
|
|
8471
8712
|
});
|
|
8472
8713
|
}
|
|
8473
8714
|
}
|
|
@@ -8503,7 +8744,8 @@ class BarcodeCountSettings extends DefaultSerializeable {
|
|
|
8503
8744
|
this._mappingEnabled = BarcodeCountSettings.barcodeCountDefaults.BarcodeCountSettings.mappingEnabled;
|
|
8504
8745
|
this._disableModeWhenCaptureListCompleted = BarcodeCountSettings.barcodeCountDefaults.BarcodeCountSettings.disableModeWhenCaptureListCompleted;
|
|
8505
8746
|
this._clusteringMode = BarcodeCountSettings.barcodeCountDefaults.BarcodeCountSettings.clusteringMode;
|
|
8506
|
-
this._scanPreviewEnabled =
|
|
8747
|
+
this._scanPreviewEnabled =
|
|
8748
|
+
scanPreviewEnabled !== null && scanPreviewEnabled !== void 0 ? scanPreviewEnabled : BarcodeCountSettings.barcodeCountDefaults.BarcodeCountSettings.scanPreviewEnabled;
|
|
8507
8749
|
}
|
|
8508
8750
|
get expectsOnlyUniqueBarcodes() {
|
|
8509
8751
|
return this._expectsOnlyUniqueBarcodes;
|
|
@@ -8536,8 +8778,7 @@ class BarcodeCountSettings extends DefaultSerializeable {
|
|
|
8536
8778
|
return this._filterSettings;
|
|
8537
8779
|
}
|
|
8538
8780
|
get enabledSymbologies() {
|
|
8539
|
-
return Object.keys(this.symbologies)
|
|
8540
|
-
.filter(symbology => this.symbologies[symbology].isEnabled);
|
|
8781
|
+
return Object.keys(this.symbologies).filter(symbology => this.symbologies[symbology].isEnabled);
|
|
8541
8782
|
}
|
|
8542
8783
|
settingsForSymbology(symbology) {
|
|
8543
8784
|
if (!this.symbologies[symbology]) {
|
|
@@ -8716,9 +8957,12 @@ class BarcodeCountToolbarSettings extends DefaultSerializeable {
|
|
|
8716
8957
|
this.strapModeButtonAccessibilityLabel = BarcodeCountToolbarSettings.barcodeCountDefaults.BarcodeCountView.toolbarSettings.strapModeButtonAccessibilityLabel;
|
|
8717
8958
|
this.colorSchemeOnButtonText = BarcodeCountToolbarSettings.barcodeCountDefaults.BarcodeCountView.toolbarSettings.colorSchemeOnButtonText;
|
|
8718
8959
|
this.colorSchemeOffButtonText = BarcodeCountToolbarSettings.barcodeCountDefaults.BarcodeCountView.toolbarSettings.colorSchemeOffButtonText;
|
|
8719
|
-
this.colorSchemeButtonContentDescription = BarcodeCountToolbarSettings.barcodeCountDefaults.BarcodeCountView.toolbarSettings
|
|
8720
|
-
|
|
8721
|
-
this.
|
|
8960
|
+
this.colorSchemeButtonContentDescription = BarcodeCountToolbarSettings.barcodeCountDefaults.BarcodeCountView.toolbarSettings
|
|
8961
|
+
.colorSchemeButtonContentDescription;
|
|
8962
|
+
this.colorSchemeButtonAccessibilityHint = BarcodeCountToolbarSettings.barcodeCountDefaults.BarcodeCountView.toolbarSettings
|
|
8963
|
+
.colorSchemeButtonAccessibilityHint;
|
|
8964
|
+
this.colorSchemeButtonAccessibilityLabel = BarcodeCountToolbarSettings.barcodeCountDefaults.BarcodeCountView.toolbarSettings
|
|
8965
|
+
.colorSchemeButtonAccessibilityLabel;
|
|
8722
8966
|
}
|
|
8723
8967
|
}
|
|
8724
8968
|
__decorate([
|
|
@@ -8770,7 +9014,9 @@ class BarcodeCountViewEventHandlers {
|
|
|
8770
9014
|
}
|
|
8771
9015
|
handleBrushForRecognizedBarcode(ev) {
|
|
8772
9016
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8773
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9017
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9018
|
+
viewId: this.view.viewId,
|
|
9019
|
+
});
|
|
8774
9020
|
if (payload === SKIP) {
|
|
8775
9021
|
return;
|
|
8776
9022
|
}
|
|
@@ -8793,7 +9039,9 @@ class BarcodeCountViewEventHandlers {
|
|
|
8793
9039
|
}
|
|
8794
9040
|
handleBrushForRecognizedBarcodeNotInList(ev) {
|
|
8795
9041
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8796
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9042
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9043
|
+
viewId: this.view.viewId,
|
|
9044
|
+
});
|
|
8797
9045
|
if (payload === SKIP) {
|
|
8798
9046
|
return;
|
|
8799
9047
|
}
|
|
@@ -8816,7 +9064,9 @@ class BarcodeCountViewEventHandlers {
|
|
|
8816
9064
|
}
|
|
8817
9065
|
handleBrushForAcceptedBarcode(ev) {
|
|
8818
9066
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8819
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9067
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9068
|
+
viewId: this.view.viewId,
|
|
9069
|
+
});
|
|
8820
9070
|
if (payload === SKIP) {
|
|
8821
9071
|
return;
|
|
8822
9072
|
}
|
|
@@ -8839,7 +9089,9 @@ class BarcodeCountViewEventHandlers {
|
|
|
8839
9089
|
}
|
|
8840
9090
|
handleBrushForRejectedBarcode(ev) {
|
|
8841
9091
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8842
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9092
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9093
|
+
viewId: this.view.viewId,
|
|
9094
|
+
});
|
|
8843
9095
|
if (payload === SKIP) {
|
|
8844
9096
|
return;
|
|
8845
9097
|
}
|
|
@@ -8861,7 +9113,9 @@ class BarcodeCountViewEventHandlers {
|
|
|
8861
9113
|
});
|
|
8862
9114
|
}
|
|
8863
9115
|
handleFilteredBarcodeTapped(ev) {
|
|
8864
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9116
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9117
|
+
viewId: this.view.viewId,
|
|
9118
|
+
});
|
|
8865
9119
|
if (payload === SKIP) {
|
|
8866
9120
|
return;
|
|
8867
9121
|
}
|
|
@@ -8875,7 +9129,9 @@ class BarcodeCountViewEventHandlers {
|
|
|
8875
9129
|
}
|
|
8876
9130
|
}
|
|
8877
9131
|
handleRecognizedBarcodeNotInListTapped(ev) {
|
|
8878
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9132
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9133
|
+
viewId: this.view.viewId,
|
|
9134
|
+
});
|
|
8879
9135
|
if (payload === SKIP) {
|
|
8880
9136
|
return;
|
|
8881
9137
|
}
|
|
@@ -8889,7 +9145,9 @@ class BarcodeCountViewEventHandlers {
|
|
|
8889
9145
|
}
|
|
8890
9146
|
}
|
|
8891
9147
|
handleRecognizedBarcodeTapped(ev) {
|
|
8892
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9148
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9149
|
+
viewId: this.view.viewId,
|
|
9150
|
+
});
|
|
8893
9151
|
if (payload === SKIP) {
|
|
8894
9152
|
return;
|
|
8895
9153
|
}
|
|
@@ -8903,7 +9161,9 @@ class BarcodeCountViewEventHandlers {
|
|
|
8903
9161
|
}
|
|
8904
9162
|
}
|
|
8905
9163
|
handleAcceptedBarcodeTapped(ev) {
|
|
8906
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9164
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9165
|
+
viewId: this.view.viewId,
|
|
9166
|
+
});
|
|
8907
9167
|
if (payload === SKIP) {
|
|
8908
9168
|
return;
|
|
8909
9169
|
}
|
|
@@ -8917,7 +9177,9 @@ class BarcodeCountViewEventHandlers {
|
|
|
8917
9177
|
}
|
|
8918
9178
|
}
|
|
8919
9179
|
handleRejectedBarcodeTapped(ev) {
|
|
8920
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9180
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9181
|
+
viewId: this.view.viewId,
|
|
9182
|
+
});
|
|
8921
9183
|
if (payload === SKIP) {
|
|
8922
9184
|
return;
|
|
8923
9185
|
}
|
|
@@ -8945,7 +9207,9 @@ class BarcodeCountViewEventHandlers {
|
|
|
8945
9207
|
}
|
|
8946
9208
|
handleDidScan(ev) {
|
|
8947
9209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8948
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9210
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9211
|
+
viewId: this.view.viewId,
|
|
9212
|
+
});
|
|
8949
9213
|
if (payload === SKIP) {
|
|
8950
9214
|
return;
|
|
8951
9215
|
}
|
|
@@ -8960,7 +9224,9 @@ class BarcodeCountViewEventHandlers {
|
|
|
8960
9224
|
}
|
|
8961
9225
|
handleDidUpdateBarcodeCountSession(ev) {
|
|
8962
9226
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8963
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9227
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9228
|
+
viewId: this.view.viewId,
|
|
9229
|
+
});
|
|
8964
9230
|
if (payload === SKIP) {
|
|
8965
9231
|
return;
|
|
8966
9232
|
}
|
|
@@ -8974,7 +9240,9 @@ class BarcodeCountViewEventHandlers {
|
|
|
8974
9240
|
});
|
|
8975
9241
|
}
|
|
8976
9242
|
handleDidUpdateSession(ev, barcodeCountCaptureList) {
|
|
8977
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9243
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9244
|
+
viewId: this.view.viewId,
|
|
9245
|
+
});
|
|
8978
9246
|
if (payload === SKIP) {
|
|
8979
9247
|
return;
|
|
8980
9248
|
}
|
|
@@ -9112,7 +9380,7 @@ class BarcodeCountViewController extends BaseController {
|
|
|
9112
9380
|
const transformedData = this.transformBarcodeData(data);
|
|
9113
9381
|
yield this.adapter.submitBarcodeDataTransformerResult({
|
|
9114
9382
|
viewId: this.view.viewId,
|
|
9115
|
-
transformedData: transformedData
|
|
9383
|
+
transformedData: transformedData,
|
|
9116
9384
|
});
|
|
9117
9385
|
});
|
|
9118
9386
|
this.adapter = new BarcodeProxyAdapter(this._proxy);
|
|
@@ -9384,7 +9652,9 @@ class BarcodeCountViewController extends BaseController {
|
|
|
9384
9652
|
}
|
|
9385
9653
|
handleOnStatusRequested(ev) {
|
|
9386
9654
|
var _a;
|
|
9387
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9655
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
9656
|
+
viewId: this.view.viewId,
|
|
9657
|
+
});
|
|
9388
9658
|
if (payload === SKIP) {
|
|
9389
9659
|
return;
|
|
9390
9660
|
}
|
|
@@ -9440,7 +9710,7 @@ class BarcodeCountViewController extends BaseController {
|
|
|
9440
9710
|
void this.adapter.setBarcodeCountCaptureList({
|
|
9441
9711
|
viewId: this.view.viewId,
|
|
9442
9712
|
captureListJson: JSON.stringify(barcodeCountCaptureList['targetBarcodes']),
|
|
9443
|
-
hasTransformer: hasTransformer
|
|
9713
|
+
hasTransformer: hasTransformer,
|
|
9444
9714
|
});
|
|
9445
9715
|
}
|
|
9446
9716
|
unregisterViewListener() {
|
|
@@ -9502,20 +9772,20 @@ class BarcodeCountNotInListActionSettings extends DefaultSerializeable {
|
|
|
9502
9772
|
constructor() {
|
|
9503
9773
|
super();
|
|
9504
9774
|
this._enabled = false;
|
|
9505
|
-
this._acceptButtonText =
|
|
9506
|
-
this._acceptButtonAccessibilityLabel =
|
|
9507
|
-
this._acceptButtonAccessibilityHint =
|
|
9508
|
-
this._acceptButtonContentDescription =
|
|
9509
|
-
this._rejectButtonText =
|
|
9510
|
-
this._rejectButtonAccessibilityLabel =
|
|
9511
|
-
this._rejectButtonAccessibilityHint =
|
|
9512
|
-
this._rejectButtonContentDescription =
|
|
9513
|
-
this._cancelButtonText =
|
|
9514
|
-
this._cancelButtonAccessibilityLabel =
|
|
9515
|
-
this._cancelButtonAccessibilityHint =
|
|
9516
|
-
this._cancelButtonContentDescription =
|
|
9517
|
-
this._barcodeAcceptedHint =
|
|
9518
|
-
this._barcodeRejectedHint =
|
|
9775
|
+
this._acceptButtonText = '';
|
|
9776
|
+
this._acceptButtonAccessibilityLabel = '';
|
|
9777
|
+
this._acceptButtonAccessibilityHint = '';
|
|
9778
|
+
this._acceptButtonContentDescription = '';
|
|
9779
|
+
this._rejectButtonText = '';
|
|
9780
|
+
this._rejectButtonAccessibilityLabel = '';
|
|
9781
|
+
this._rejectButtonAccessibilityHint = '';
|
|
9782
|
+
this._rejectButtonContentDescription = '';
|
|
9783
|
+
this._cancelButtonText = '';
|
|
9784
|
+
this._cancelButtonAccessibilityLabel = '';
|
|
9785
|
+
this._cancelButtonAccessibilityHint = '';
|
|
9786
|
+
this._cancelButtonContentDescription = '';
|
|
9787
|
+
this._barcodeAcceptedHint = '';
|
|
9788
|
+
this._barcodeRejectedHint = '';
|
|
9519
9789
|
}
|
|
9520
9790
|
get enabled() {
|
|
9521
9791
|
return this._enabled;
|
|
@@ -10826,17 +11096,14 @@ class BarcodeBatchSession {
|
|
|
10826
11096
|
const sessionJson = JSON.parse(json.session);
|
|
10827
11097
|
const session = new BarcodeBatchSession();
|
|
10828
11098
|
session._frameSequenceID = sessionJson.frameSequenceId;
|
|
10829
|
-
session._addedTrackedBarcodes = sessionJson.addedTrackedBarcodes
|
|
10830
|
-
.map((trackedBarcodeJSON) => {
|
|
11099
|
+
session._addedTrackedBarcodes = sessionJson.addedTrackedBarcodes.map((trackedBarcodeJSON) => {
|
|
10831
11100
|
return TrackedBarcode['fromJSON'](trackedBarcodeJSON, sessionJson.frameSequenceId);
|
|
10832
11101
|
});
|
|
10833
11102
|
session._removedTrackedBarcodes = sessionJson.removedTrackedBarcodes;
|
|
10834
|
-
session._updatedTrackedBarcodes = sessionJson.updatedTrackedBarcodes
|
|
10835
|
-
.map((trackedBarcodeJSON) => {
|
|
11103
|
+
session._updatedTrackedBarcodes = sessionJson.updatedTrackedBarcodes.map((trackedBarcodeJSON) => {
|
|
10836
11104
|
return TrackedBarcode['fromJSON'](trackedBarcodeJSON, sessionJson.frameSequenceId);
|
|
10837
11105
|
});
|
|
10838
|
-
session._trackedBarcodes = Object.keys(sessionJson.trackedBarcodes)
|
|
10839
|
-
.reduce((trackedBarcodes, identifier) => {
|
|
11106
|
+
session._trackedBarcodes = Object.keys(sessionJson.trackedBarcodes).reduce((trackedBarcodes, identifier) => {
|
|
10840
11107
|
trackedBarcodes[identifier] = TrackedBarcode['fromJSON'](sessionJson.trackedBarcodes[identifier], sessionJson.frameSequenceId);
|
|
10841
11108
|
return trackedBarcodes;
|
|
10842
11109
|
}, {});
|
|
@@ -10915,7 +11182,9 @@ class BarcodeBatchListenerController extends BaseController {
|
|
|
10915
11182
|
}
|
|
10916
11183
|
handleDidUpdateSessionEvent(ev) {
|
|
10917
11184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10918
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
11185
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
11186
|
+
modeId: this.mode['modeId'],
|
|
11187
|
+
});
|
|
10919
11188
|
if (payload === SKIP) {
|
|
10920
11189
|
return;
|
|
10921
11190
|
}
|
|
@@ -11205,7 +11474,9 @@ class BarcodeBatchAdvancedOverlayController extends BaseController {
|
|
|
11205
11474
|
}
|
|
11206
11475
|
handleViewForTrackedBarcode(ev) {
|
|
11207
11476
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11208
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
11477
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
11478
|
+
viewId: this.dataCaptureViewId,
|
|
11479
|
+
});
|
|
11209
11480
|
if (payload === SKIP) {
|
|
11210
11481
|
return;
|
|
11211
11482
|
}
|
|
@@ -11226,7 +11497,9 @@ class BarcodeBatchAdvancedOverlayController extends BaseController {
|
|
|
11226
11497
|
}
|
|
11227
11498
|
handleAnchorForTrackedBarcode(ev) {
|
|
11228
11499
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11229
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
11500
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
11501
|
+
viewId: this.dataCaptureViewId,
|
|
11502
|
+
});
|
|
11230
11503
|
if (payload === SKIP) {
|
|
11231
11504
|
return;
|
|
11232
11505
|
}
|
|
@@ -11243,7 +11516,9 @@ class BarcodeBatchAdvancedOverlayController extends BaseController {
|
|
|
11243
11516
|
}
|
|
11244
11517
|
handleOffsetForTrackedBarcode(ev) {
|
|
11245
11518
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11246
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
11519
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
11520
|
+
viewId: this.dataCaptureViewId,
|
|
11521
|
+
});
|
|
11247
11522
|
if (payload === SKIP) {
|
|
11248
11523
|
return;
|
|
11249
11524
|
}
|
|
@@ -11260,7 +11535,9 @@ class BarcodeBatchAdvancedOverlayController extends BaseController {
|
|
|
11260
11535
|
}
|
|
11261
11536
|
handleDidTapViewForTrackedBarcode(ev) {
|
|
11262
11537
|
var _a, _b;
|
|
11263
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
11538
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
11539
|
+
viewId: this.dataCaptureViewId,
|
|
11540
|
+
});
|
|
11264
11541
|
if (payload === SKIP) {
|
|
11265
11542
|
return;
|
|
11266
11543
|
}
|
|
@@ -11309,7 +11586,7 @@ class BarcodeBatchBasicOverlayController extends BaseController {
|
|
|
11309
11586
|
return this.adapter.setBrushForTrackedBarcode({
|
|
11310
11587
|
dataCaptureViewId: this.dataCaptureViewId,
|
|
11311
11588
|
brushJson: brush ? JSON.stringify(brush.toJSON()) : null,
|
|
11312
|
-
trackedBarcodeIdentifier: trackedBarcode.identifier
|
|
11589
|
+
trackedBarcodeIdentifier: trackedBarcode.identifier,
|
|
11313
11590
|
});
|
|
11314
11591
|
});
|
|
11315
11592
|
}
|
|
@@ -11381,7 +11658,9 @@ class BarcodeBatchBasicOverlayController extends BaseController {
|
|
|
11381
11658
|
}
|
|
11382
11659
|
handleBrushForTrackedBarcode(ev) {
|
|
11383
11660
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11384
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
11661
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
11662
|
+
viewId: this.dataCaptureViewId,
|
|
11663
|
+
});
|
|
11385
11664
|
if (payload === SKIP) {
|
|
11386
11665
|
return;
|
|
11387
11666
|
}
|
|
@@ -11398,7 +11677,9 @@ class BarcodeBatchBasicOverlayController extends BaseController {
|
|
|
11398
11677
|
});
|
|
11399
11678
|
}
|
|
11400
11679
|
handleDidTapTrackedBarcode(ev) {
|
|
11401
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
11680
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
11681
|
+
viewId: this.dataCaptureViewId,
|
|
11682
|
+
});
|
|
11402
11683
|
if (payload === SKIP) {
|
|
11403
11684
|
return;
|
|
11404
11685
|
}
|
|
@@ -11540,8 +11821,7 @@ __decorate([
|
|
|
11540
11821
|
|
|
11541
11822
|
class BarcodeBatchSettings extends DefaultSerializeable {
|
|
11542
11823
|
get enabledSymbologies() {
|
|
11543
|
-
return Object.keys(this.symbologies)
|
|
11544
|
-
.filter(symbology => this.symbologies[symbology].isEnabled);
|
|
11824
|
+
return Object.keys(this.symbologies).filter(symbology => this.symbologies[symbology].isEnabled);
|
|
11545
11825
|
}
|
|
11546
11826
|
constructor() {
|
|
11547
11827
|
super();
|
|
@@ -11695,8 +11975,7 @@ class SparkScanSettings extends DefaultSerializeable {
|
|
|
11695
11975
|
this._locationSelection = newValue;
|
|
11696
11976
|
}
|
|
11697
11977
|
get enabledSymbologies() {
|
|
11698
|
-
return Object.keys(this.symbologies)
|
|
11699
|
-
.filter(symbology => this.symbologies[symbology].isEnabled);
|
|
11978
|
+
return Object.keys(this.symbologies).filter(symbology => this.symbologies[symbology].isEnabled);
|
|
11700
11979
|
}
|
|
11701
11980
|
get itemDefinitions() {
|
|
11702
11981
|
return this._itemDefinitions;
|
|
@@ -11714,6 +11993,7 @@ class SparkScanSettings extends DefaultSerializeable {
|
|
|
11714
11993
|
super();
|
|
11715
11994
|
this.codeDuplicateFilter = SparkScanSettings.sparkScanDefaults.SparkScanSettings.codeDuplicateFilter;
|
|
11716
11995
|
this.scanIntention = SparkScanSettings.sparkScanDefaults.SparkScanSettings.scanIntention;
|
|
11996
|
+
this.selectionMode = SparkScanSettings.sparkScanDefaults.SparkScanSettings.selectionMode;
|
|
11717
11997
|
this._batterySaving = SparkScanSettings.sparkScanDefaults.SparkScanSettings.batterySaving;
|
|
11718
11998
|
this._locationSelection = SparkScanSettings.sparkScanDefaults.SparkScanSettings.locationSelection;
|
|
11719
11999
|
this.enabledCompositeTypes = [];
|
|
@@ -11883,18 +12163,42 @@ class SparkScanToastSettings extends DefaultSerializeable {
|
|
|
11883
12163
|
get toastTextColor() {
|
|
11884
12164
|
return this._toastTextColor;
|
|
11885
12165
|
}
|
|
12166
|
+
/**
|
|
12167
|
+
* @deprecated Use selectionModeOnMessage instead. Will be removed in 9.0.
|
|
12168
|
+
*/
|
|
11886
12169
|
set targetModeEnabledMessage(message) {
|
|
11887
12170
|
this._targetModeEnabledMessage = message;
|
|
11888
12171
|
}
|
|
12172
|
+
/**
|
|
12173
|
+
* @deprecated Use selectionModeOnMessage instead. Will be removed in 9.0.
|
|
12174
|
+
*/
|
|
11889
12175
|
get targetModeEnabledMessage() {
|
|
11890
12176
|
return this._targetModeEnabledMessage;
|
|
11891
12177
|
}
|
|
12178
|
+
/**
|
|
12179
|
+
* @deprecated Use selectionModeOffMessage instead. Will be removed in 9.0.
|
|
12180
|
+
*/
|
|
11892
12181
|
set targetModeDisabledMessage(message) {
|
|
11893
12182
|
this._targetModeDisabledMessage = message;
|
|
11894
12183
|
}
|
|
12184
|
+
/**
|
|
12185
|
+
* @deprecated Use selectionModeOffMessage instead. Will be removed in 9.0.
|
|
12186
|
+
*/
|
|
11895
12187
|
get targetModeDisabledMessage() {
|
|
11896
12188
|
return this._targetModeDisabledMessage;
|
|
11897
12189
|
}
|
|
12190
|
+
set selectionModeOnMessage(message) {
|
|
12191
|
+
this._selectionModeOnMessage = message;
|
|
12192
|
+
}
|
|
12193
|
+
get selectionModeOnMessage() {
|
|
12194
|
+
return this._selectionModeOnMessage;
|
|
12195
|
+
}
|
|
12196
|
+
set selectionModeOffMessage(message) {
|
|
12197
|
+
this._selectionModeOffMessage = message;
|
|
12198
|
+
}
|
|
12199
|
+
get selectionModeOffMessage() {
|
|
12200
|
+
return this._selectionModeOffMessage;
|
|
12201
|
+
}
|
|
11898
12202
|
set continuousModeEnabledMessage(message) {
|
|
11899
12203
|
this._continuousModeEnabledMessage = message;
|
|
11900
12204
|
}
|
|
@@ -11949,13 +12253,15 @@ class SparkScanToastSettings extends DefaultSerializeable {
|
|
|
11949
12253
|
get userFacingCameraEnabledMessage() {
|
|
11950
12254
|
return this._userFacingCameraEnabledMessage;
|
|
11951
12255
|
}
|
|
11952
|
-
constructor(toastEnabled, toastBackgroundColor, toastTextColor, targetModeEnabledMessage, targetModeDisabledMessage, continuousModeEnabledMessage, continuousModeDisabledMessage, scanPausedMessage, zoomedInMessage, zoomedOutMessage, torchEnabledMessage, torchDisabledMessage, userFacingCameraEnabledMessage, worldFacingCameraEnabledMessage) {
|
|
12256
|
+
constructor(toastEnabled, toastBackgroundColor, toastTextColor, targetModeEnabledMessage, targetModeDisabledMessage, selectionModeOnMessage, selectionModeOffMessage, continuousModeEnabledMessage, continuousModeDisabledMessage, scanPausedMessage, zoomedInMessage, zoomedOutMessage, torchEnabledMessage, torchDisabledMessage, userFacingCameraEnabledMessage, worldFacingCameraEnabledMessage) {
|
|
11953
12257
|
super();
|
|
11954
12258
|
this._toastEnabled = SparkScanToastSettings.toastSettings.toastEnabled;
|
|
11955
12259
|
this._toastBackgroundColor = SparkScanToastSettings.toastSettings.toastBackgroundColor;
|
|
11956
12260
|
this._toastTextColor = SparkScanToastSettings.toastSettings.toastTextColor;
|
|
11957
12261
|
this._targetModeEnabledMessage = SparkScanToastSettings.toastSettings.targetModeEnabledMessage;
|
|
11958
12262
|
this._targetModeDisabledMessage = SparkScanToastSettings.toastSettings.targetModeDisabledMessage;
|
|
12263
|
+
this._selectionModeOnMessage = SparkScanToastSettings.toastSettings.selectionModeOnMessage;
|
|
12264
|
+
this._selectionModeOffMessage = SparkScanToastSettings.toastSettings.selectionModeOffMessage;
|
|
11959
12265
|
this._continuousModeEnabledMessage = SparkScanToastSettings.toastSettings.continuousModeEnabledMessage;
|
|
11960
12266
|
this._continuousModeDisabledMessage = SparkScanToastSettings.toastSettings.continuousModeDisabledMessage;
|
|
11961
12267
|
this._scanPausedMessage = SparkScanToastSettings.toastSettings.scanPausedMessage;
|
|
@@ -11980,6 +12286,12 @@ class SparkScanToastSettings extends DefaultSerializeable {
|
|
|
11980
12286
|
if (targetModeDisabledMessage !== undefined) {
|
|
11981
12287
|
this._targetModeDisabledMessage = targetModeDisabledMessage;
|
|
11982
12288
|
}
|
|
12289
|
+
if (selectionModeOnMessage !== undefined) {
|
|
12290
|
+
this._selectionModeOnMessage = selectionModeOnMessage;
|
|
12291
|
+
}
|
|
12292
|
+
if (selectionModeOffMessage !== undefined) {
|
|
12293
|
+
this._selectionModeOffMessage = selectionModeOffMessage;
|
|
12294
|
+
}
|
|
11983
12295
|
if (continuousModeEnabledMessage !== undefined) {
|
|
11984
12296
|
this._continuousModeEnabledMessage = continuousModeEnabledMessage;
|
|
11985
12297
|
}
|
|
@@ -12030,6 +12342,12 @@ __decorate([
|
|
|
12030
12342
|
__decorate([
|
|
12031
12343
|
nameForSerialization('targetModeDisabledMessage')
|
|
12032
12344
|
], SparkScanToastSettings.prototype, "_targetModeDisabledMessage", void 0);
|
|
12345
|
+
__decorate([
|
|
12346
|
+
nameForSerialization('selectionModeOnMessage')
|
|
12347
|
+
], SparkScanToastSettings.prototype, "_selectionModeOnMessage", void 0);
|
|
12348
|
+
__decorate([
|
|
12349
|
+
nameForSerialization('selectionModeOffMessage')
|
|
12350
|
+
], SparkScanToastSettings.prototype, "_selectionModeOffMessage", void 0);
|
|
12033
12351
|
__decorate([
|
|
12034
12352
|
nameForSerialization('continuousModeEnabledMessage')
|
|
12035
12353
|
], SparkScanToastSettings.prototype, "_continuousModeEnabledMessage", void 0);
|
|
@@ -12087,6 +12405,9 @@ __decorate([
|
|
|
12087
12405
|
nameForSerialization('previewBehavior')
|
|
12088
12406
|
], PrivateSparkScanScanningModeSettings.prototype, "_previewBehavior", void 0);
|
|
12089
12407
|
|
|
12408
|
+
/**
|
|
12409
|
+
* @deprecated Use SparkScanSettings.selectionMode = SelectionMode.Off instead. Will be removed in 9.0.
|
|
12410
|
+
*/
|
|
12090
12411
|
class SparkScanScanningModeDefault extends DefaultSerializeable {
|
|
12091
12412
|
get scanningBehavior() {
|
|
12092
12413
|
return this._settings.scanningBehavior;
|
|
@@ -12111,6 +12432,9 @@ __decorate([
|
|
|
12111
12432
|
nameForSerialization('settings')
|
|
12112
12433
|
], SparkScanScanningModeDefault.prototype, "_settings", void 0);
|
|
12113
12434
|
|
|
12435
|
+
/**
|
|
12436
|
+
* @deprecated Use SparkScanSettings.selectionMode = SelectionMode.On instead. Will be removed in 9.0.
|
|
12437
|
+
*/
|
|
12114
12438
|
class SparkScanScanningModeTarget extends DefaultSerializeable {
|
|
12115
12439
|
get scanningBehavior() {
|
|
12116
12440
|
return this._settings.scanningBehavior;
|
|
@@ -12161,10 +12485,25 @@ class SparkScanSession {
|
|
|
12161
12485
|
}
|
|
12162
12486
|
|
|
12163
12487
|
class SparkScanViewSettings extends DefaultSerializeable {
|
|
12488
|
+
/**
|
|
12489
|
+
* @deprecated Use selectionModeCandidateBrush instead. Will be removed in 9.0.
|
|
12490
|
+
*/
|
|
12491
|
+
get smartSelectionCandidateBrush() {
|
|
12492
|
+
return this.selectionModeCandidateBrush;
|
|
12493
|
+
}
|
|
12494
|
+
/**
|
|
12495
|
+
* @deprecated Use selectionModeCandidateBrush instead. Will be removed in 9.0.
|
|
12496
|
+
*/
|
|
12497
|
+
set smartSelectionCandidateBrush(value) {
|
|
12498
|
+
this.selectionModeCandidateBrush = value;
|
|
12499
|
+
}
|
|
12164
12500
|
constructor() {
|
|
12165
12501
|
super();
|
|
12166
12502
|
this.triggerButtonCollapseTimeout = SparkScanViewSettings.viewSettingsDefaults.triggerButtonCollapseTimeout;
|
|
12167
12503
|
this.defaultTorchState = SparkScanViewSettings.viewSettingsDefaults.defaultTorchState;
|
|
12504
|
+
/**
|
|
12505
|
+
* @deprecated Use SparkScanSettings.selectionMode instead. Will be removed in 9.0.
|
|
12506
|
+
*/
|
|
12168
12507
|
this.defaultScanningMode = SparkScanViewSettings.viewSettingsDefaults.defaultScanningMode;
|
|
12169
12508
|
this.holdToScanEnabled = SparkScanViewSettings.viewSettingsDefaults.holdToScanEnabled;
|
|
12170
12509
|
this.soundEnabled = SparkScanViewSettings.viewSettingsDefaults.soundEnabled;
|
|
@@ -12178,7 +12517,7 @@ class SparkScanViewSettings extends DefaultSerializeable {
|
|
|
12178
12517
|
this.inactiveStateTimeout = SparkScanViewSettings.viewSettingsDefaults.inactiveStateTimeout;
|
|
12179
12518
|
this.defaultCameraPosition = SparkScanViewSettings.viewSettingsDefaults.defaultCameraPosition;
|
|
12180
12519
|
this.defaultMiniPreviewSize = SparkScanViewSettings.viewSettingsDefaults.defaultMiniPreviewSize;
|
|
12181
|
-
this.
|
|
12520
|
+
this.selectionModeCandidateBrush = null;
|
|
12182
12521
|
this.periscopeModeEnabled = SparkScanViewSettings.viewSettingsDefaults.periscopeModeEnabled;
|
|
12183
12522
|
}
|
|
12184
12523
|
scanModeFromJSON(json) {
|
|
@@ -12414,11 +12753,13 @@ class ScannedItem {
|
|
|
12414
12753
|
return this._components;
|
|
12415
12754
|
}
|
|
12416
12755
|
barcodeForIdentifier(identifier) {
|
|
12417
|
-
const component = this._components.find(c => c.definitionIdentifier instanceof BarcodeIdentifier &&
|
|
12756
|
+
const component = this._components.find(c => c.definitionIdentifier instanceof BarcodeIdentifier &&
|
|
12757
|
+
c.definitionIdentifier['identifier'] === identifier['identifier']);
|
|
12418
12758
|
return component instanceof ScannedBarcode ? component : null;
|
|
12419
12759
|
}
|
|
12420
12760
|
textForIdentifier(identifier) {
|
|
12421
|
-
const component = this._components.find(c => c.definitionIdentifier instanceof TextIdentifier &&
|
|
12761
|
+
const component = this._components.find(c => c.definitionIdentifier instanceof TextIdentifier &&
|
|
12762
|
+
c.definitionIdentifier['identifier'] === identifier['identifier']);
|
|
12422
12763
|
return component instanceof ScannedText ? component : null;
|
|
12423
12764
|
}
|
|
12424
12765
|
}
|
|
@@ -12472,7 +12813,7 @@ class TextDefinition extends DefaultSerializeable {
|
|
|
12472
12813
|
}
|
|
12473
12814
|
constructor(identifier) {
|
|
12474
12815
|
super();
|
|
12475
|
-
this.type =
|
|
12816
|
+
this.type = 'text';
|
|
12476
12817
|
this._textIdentifier = new TextIdentifier();
|
|
12477
12818
|
this._location = null;
|
|
12478
12819
|
this._optional = false;
|
|
@@ -12629,7 +12970,7 @@ class BarcodeDefinition extends DefaultSerializeable {
|
|
|
12629
12970
|
this.hiddenProperties = null;
|
|
12630
12971
|
this.valueRegexes = [];
|
|
12631
12972
|
this.anchorRegexes = [];
|
|
12632
|
-
this.type =
|
|
12973
|
+
this.type = 'barcode';
|
|
12633
12974
|
this._optional = false;
|
|
12634
12975
|
this._mandatoryInstances = 1;
|
|
12635
12976
|
this._barcodeIdentifier = identifier;
|
|
@@ -12672,9 +13013,7 @@ class InternalSparkScanSession extends SparkScanSession {
|
|
|
12672
13013
|
static fromJSON(controller, json) {
|
|
12673
13014
|
var _a;
|
|
12674
13015
|
const sessionJson = JSON.parse(json.session);
|
|
12675
|
-
return new InternalSparkScanSession(sessionJson.newlyRecognizedBarcode != null
|
|
12676
|
-
? Barcode.fromJSON(sessionJson.newlyRecognizedBarcode)
|
|
12677
|
-
: null, sessionJson.frameSequenceId, (sessionJson.allItems || []).map((item) => ScannedItem.fromJSON(item)), (sessionJson.newItems || []).map((item) => ScannedItem.fromJSON(item)), (_a = json.frameId) !== null && _a !== void 0 ? _a : '', controller);
|
|
13016
|
+
return new InternalSparkScanSession(sessionJson.newlyRecognizedBarcode != null ? Barcode.fromJSON(sessionJson.newlyRecognizedBarcode) : null, sessionJson.frameSequenceId, (sessionJson.allItems || []).map((item) => ScannedItem.fromJSON(item)), (sessionJson.newItems || []).map((item) => ScannedItem.fromJSON(item)), (_a = json.frameId) !== null && _a !== void 0 ? _a : '', controller);
|
|
12678
13017
|
}
|
|
12679
13018
|
constructor(newlyRecognizedBarcode, frameSequenceID, allScannedItems, newlyRecognizedItems, frameId, controller) {
|
|
12680
13019
|
super(newlyRecognizedBarcode, frameSequenceID, allScannedItems, newlyRecognizedItems, controller);
|
|
@@ -12872,7 +13211,10 @@ class SparkScanViewController extends BaseController {
|
|
|
12872
13211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12873
13212
|
if (!this.isViewCreated || this.hasFeedbackDelegateListener)
|
|
12874
13213
|
return;
|
|
12875
|
-
this._proxy.subscribeForEvents([
|
|
13214
|
+
this._proxy.subscribeForEvents([
|
|
13215
|
+
SparkScanViewEvents.feedbackForBarcode,
|
|
13216
|
+
SparkScanViewEvents.feedbackForScannedItem,
|
|
13217
|
+
]);
|
|
12876
13218
|
this._proxy.eventEmitter.on(SparkScanViewEvents.feedbackForBarcode, this.handleFeedbackForBarcodeWrapper);
|
|
12877
13219
|
this._proxy.eventEmitter.on(SparkScanViewEvents.feedbackForScannedItem, this.handleFeedbackForScannedItemWrapper);
|
|
12878
13220
|
yield this.adapter.registerSparkScanFeedbackDelegateForEvents({ viewId: this.viewInstanceId });
|
|
@@ -12885,7 +13227,10 @@ class SparkScanViewController extends BaseController {
|
|
|
12885
13227
|
return;
|
|
12886
13228
|
this._proxy.eventEmitter.off(SparkScanViewEvents.feedbackForBarcode, this.handleFeedbackForBarcodeWrapper);
|
|
12887
13229
|
this._proxy.eventEmitter.off(SparkScanViewEvents.feedbackForScannedItem, this.handleFeedbackForScannedItemWrapper);
|
|
12888
|
-
this._proxy.unsubscribeFromEvents([
|
|
13230
|
+
this._proxy.unsubscribeFromEvents([
|
|
13231
|
+
SparkScanViewEvents.feedbackForBarcode,
|
|
13232
|
+
SparkScanViewEvents.feedbackForScannedItem,
|
|
13233
|
+
]);
|
|
12889
13234
|
yield this.adapter.unregisterSparkScanFeedbackDelegateForEvents({ viewId: this.viewInstanceId });
|
|
12890
13235
|
this.hasFeedbackDelegateListener = false;
|
|
12891
13236
|
});
|
|
@@ -13001,7 +13346,9 @@ class SparkScanViewController extends BaseController {
|
|
|
13001
13346
|
}
|
|
13002
13347
|
didUpdateSessionListener(ev) {
|
|
13003
13348
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13004
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
13349
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
13350
|
+
viewId: this.viewInstanceId,
|
|
13351
|
+
});
|
|
13005
13352
|
if (payload === SKIP) {
|
|
13006
13353
|
return;
|
|
13007
13354
|
}
|
|
@@ -13011,7 +13358,10 @@ class SparkScanViewController extends BaseController {
|
|
|
13011
13358
|
}
|
|
13012
13359
|
const session = InternalSparkScanSession.fromJSON(this, payload);
|
|
13013
13360
|
yield this.notifyListenersOfDidUpdateSession(session);
|
|
13014
|
-
yield this.adapter.finishSparkScanDidUpdateSession({
|
|
13361
|
+
yield this.adapter.finishSparkScanDidUpdateSession({
|
|
13362
|
+
viewId: this.viewInstanceId,
|
|
13363
|
+
isEnabled: this.sparkScan.isEnabled,
|
|
13364
|
+
});
|
|
13015
13365
|
});
|
|
13016
13366
|
}
|
|
13017
13367
|
notifyListenersOfDidUpdateSession(session) {
|
|
@@ -13027,7 +13377,9 @@ class SparkScanViewController extends BaseController {
|
|
|
13027
13377
|
}
|
|
13028
13378
|
didScanListener(ev) {
|
|
13029
13379
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13030
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
13380
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
13381
|
+
viewId: this.viewInstanceId,
|
|
13382
|
+
});
|
|
13031
13383
|
if (payload === SKIP) {
|
|
13032
13384
|
return;
|
|
13033
13385
|
}
|
|
@@ -13039,7 +13391,7 @@ class SparkScanViewController extends BaseController {
|
|
|
13039
13391
|
yield this.notifyListenersOfDidScan(session);
|
|
13040
13392
|
const settings = this.sparkScan.settings;
|
|
13041
13393
|
if (session.newlyRecognizedItems && settings.itemDefinitions) {
|
|
13042
|
-
// If there are new recognized items, and if there are
|
|
13394
|
+
// If there are new recognized items, and if there are definitions for them
|
|
13043
13395
|
for (const definition of settings.itemDefinitions || []) {
|
|
13044
13396
|
if (definition.onScan === undefined) {
|
|
13045
13397
|
continue;
|
|
@@ -13093,7 +13445,9 @@ class SparkScanViewController extends BaseController {
|
|
|
13093
13445
|
}
|
|
13094
13446
|
didChangeViewStateListener(ev) {
|
|
13095
13447
|
var _a, _b;
|
|
13096
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
13448
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
13449
|
+
viewId: this.viewInstanceId,
|
|
13450
|
+
});
|
|
13097
13451
|
if (payload === SKIP) {
|
|
13098
13452
|
return;
|
|
13099
13453
|
}
|
|
@@ -13128,7 +13482,8 @@ class BaseSparkScanView {
|
|
|
13128
13482
|
sparkScan: props.sparkScan,
|
|
13129
13483
|
settings: props.sparkScanViewSettings,
|
|
13130
13484
|
});
|
|
13131
|
-
if (props.shouldHandleAndroidLifecycleAutomatically !== undefined &&
|
|
13485
|
+
if (props.shouldHandleAndroidLifecycleAutomatically !== undefined &&
|
|
13486
|
+
props.shouldHandleAndroidLifecycleAutomatically !== null) {
|
|
13132
13487
|
view.shouldHandleAndroidLifecycleAutomatically = props.shouldHandleAndroidLifecycleAutomatically;
|
|
13133
13488
|
}
|
|
13134
13489
|
if (props.uiListener) {
|
|
@@ -13149,9 +13504,14 @@ class BaseSparkScanView {
|
|
|
13149
13504
|
if (props.barcodeFindButtonVisible !== undefined && props.barcodeFindButtonVisible !== null) {
|
|
13150
13505
|
view._barcodeFindButtonVisible = props.barcodeFindButtonVisible;
|
|
13151
13506
|
}
|
|
13507
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
13152
13508
|
if (props.targetModeButtonVisible !== undefined && props.targetModeButtonVisible !== null) {
|
|
13153
13509
|
view._targetModeButtonVisible = props.targetModeButtonVisible;
|
|
13154
13510
|
}
|
|
13511
|
+
/* eslint-enable @typescript-eslint/no-deprecated */
|
|
13512
|
+
if (props.selectionModeButtonVisible !== undefined && props.selectionModeButtonVisible !== null) {
|
|
13513
|
+
view._targetModeButtonVisible = props.selectionModeButtonVisible;
|
|
13514
|
+
}
|
|
13155
13515
|
if (props.labelCaptureButtonVisible !== undefined && props.labelCaptureButtonVisible !== null) {
|
|
13156
13516
|
view._labelCaptureButtonVisible = props.labelCaptureButtonVisible;
|
|
13157
13517
|
}
|
|
@@ -13199,7 +13559,7 @@ class BaseSparkScanView {
|
|
|
13199
13559
|
static get defaultBrush() {
|
|
13200
13560
|
return BaseSparkScanView.sparkScanDefaults.SparkScanView.brush;
|
|
13201
13561
|
}
|
|
13202
|
-
constructor({ context, sparkScan, settings }) {
|
|
13562
|
+
constructor({ context, sparkScan, settings, }) {
|
|
13203
13563
|
this._feedbackDelegate = null;
|
|
13204
13564
|
this.shouldHandleAndroidLifecycleAutomatically = true;
|
|
13205
13565
|
this._viewId = -1; // -1 means the view is not created yet
|
|
@@ -13210,6 +13570,8 @@ class BaseSparkScanView {
|
|
|
13210
13570
|
this._scanningBehaviorButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.scanningBehaviorButtonVisible;
|
|
13211
13571
|
this._barcodeCountButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.barcodeCountButtonVisible;
|
|
13212
13572
|
this._barcodeFindButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.barcodeFindButtonVisible;
|
|
13573
|
+
// targetModeButtonVisible and selectionModeButtonVisible are the same underlying
|
|
13574
|
+
// native state; both accessors share one backing field.
|
|
13213
13575
|
this._targetModeButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.targetModeButtonVisible;
|
|
13214
13576
|
this._labelCaptureButtonVisible = BaseSparkScanView.sparkScanDefaults.SparkScanView.labelCaptureButtonVisible;
|
|
13215
13577
|
this._toolbarBackgroundColor = BaseSparkScanView.sparkScanDefaults.SparkScanView.toolbarBackgroundColor;
|
|
@@ -13278,13 +13640,26 @@ class BaseSparkScanView {
|
|
|
13278
13640
|
this._barcodeFindButtonVisible = newValue;
|
|
13279
13641
|
void this.update();
|
|
13280
13642
|
}
|
|
13643
|
+
/**
|
|
13644
|
+
* @deprecated Use selectionModeButtonVisible instead. Will be removed in 9.0.
|
|
13645
|
+
*/
|
|
13281
13646
|
get targetModeButtonVisible() {
|
|
13282
13647
|
return this._targetModeButtonVisible;
|
|
13283
13648
|
}
|
|
13649
|
+
/**
|
|
13650
|
+
* @deprecated Use selectionModeButtonVisible instead. Will be removed in 9.0.
|
|
13651
|
+
*/
|
|
13284
13652
|
set targetModeButtonVisible(newValue) {
|
|
13285
13653
|
this._targetModeButtonVisible = newValue;
|
|
13286
13654
|
void this.update();
|
|
13287
13655
|
}
|
|
13656
|
+
get selectionModeButtonVisible() {
|
|
13657
|
+
return this._targetModeButtonVisible;
|
|
13658
|
+
}
|
|
13659
|
+
set selectionModeButtonVisible(newValue) {
|
|
13660
|
+
this._targetModeButtonVisible = newValue;
|
|
13661
|
+
void this.update();
|
|
13662
|
+
}
|
|
13288
13663
|
get labelCaptureButtonVisible() {
|
|
13289
13664
|
return this._labelCaptureButtonVisible;
|
|
13290
13665
|
}
|
|
@@ -13454,16 +13829,21 @@ class BaseSparkScanView {
|
|
|
13454
13829
|
props.barcodeFindButtonVisible !== undefined) {
|
|
13455
13830
|
this.barcodeFindButtonVisible = props.barcodeFindButtonVisible;
|
|
13456
13831
|
}
|
|
13832
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
13457
13833
|
if (props.targetModeButtonVisible !== prevProps.targetModeButtonVisible &&
|
|
13458
13834
|
props.targetModeButtonVisible !== undefined) {
|
|
13459
13835
|
this.targetModeButtonVisible = props.targetModeButtonVisible;
|
|
13460
13836
|
}
|
|
13837
|
+
/* eslint-enable @typescript-eslint/no-deprecated */
|
|
13838
|
+
if (props.selectionModeButtonVisible !== prevProps.selectionModeButtonVisible &&
|
|
13839
|
+
props.selectionModeButtonVisible !== undefined) {
|
|
13840
|
+
this.selectionModeButtonVisible = props.selectionModeButtonVisible;
|
|
13841
|
+
}
|
|
13461
13842
|
if (props.cameraSwitchButtonVisible !== prevProps.cameraSwitchButtonVisible &&
|
|
13462
13843
|
props.cameraSwitchButtonVisible !== undefined) {
|
|
13463
13844
|
this.cameraSwitchButtonVisible = props.cameraSwitchButtonVisible;
|
|
13464
13845
|
}
|
|
13465
|
-
if (props.torchControlVisible !== prevProps.torchControlVisible &&
|
|
13466
|
-
props.torchControlVisible !== undefined) {
|
|
13846
|
+
if (props.torchControlVisible !== prevProps.torchControlVisible && props.torchControlVisible !== undefined) {
|
|
13467
13847
|
this.torchControlVisible = props.torchControlVisible;
|
|
13468
13848
|
}
|
|
13469
13849
|
if (props.zoomSwitchControlVisible !== prevProps.zoomSwitchControlVisible &&
|
|
@@ -13474,8 +13854,7 @@ class BaseSparkScanView {
|
|
|
13474
13854
|
props.previewCloseControlVisible !== undefined) {
|
|
13475
13855
|
this.previewCloseControlVisible = props.previewCloseControlVisible;
|
|
13476
13856
|
}
|
|
13477
|
-
if (props.triggerButtonVisible !== prevProps.triggerButtonVisible &&
|
|
13478
|
-
props.triggerButtonVisible !== undefined) {
|
|
13857
|
+
if (props.triggerButtonVisible !== prevProps.triggerButtonVisible && props.triggerButtonVisible !== undefined) {
|
|
13479
13858
|
this.triggerButtonVisible = props.triggerButtonVisible;
|
|
13480
13859
|
}
|
|
13481
13860
|
// Update color customizations
|
|
@@ -13508,13 +13887,11 @@ class BaseSparkScanView {
|
|
|
13508
13887
|
this.triggerButtonTintColor = props.triggerButtonTintColor;
|
|
13509
13888
|
}
|
|
13510
13889
|
// Update image customizations
|
|
13511
|
-
if (props.triggerButtonImage !== prevProps.triggerButtonImage &&
|
|
13512
|
-
props.triggerButtonImage !== undefined) {
|
|
13890
|
+
if (props.triggerButtonImage !== prevProps.triggerButtonImage && props.triggerButtonImage !== undefined) {
|
|
13513
13891
|
this.triggerButtonImage = props.triggerButtonImage;
|
|
13514
13892
|
}
|
|
13515
13893
|
// Update feedback delegate
|
|
13516
|
-
if (props.feedbackDelegate !== prevProps.feedbackDelegate &&
|
|
13517
|
-
props.feedbackDelegate !== undefined) {
|
|
13894
|
+
if (props.feedbackDelegate !== prevProps.feedbackDelegate && props.feedbackDelegate !== undefined) {
|
|
13518
13895
|
this.feedbackDelegate = props.feedbackDelegate;
|
|
13519
13896
|
}
|
|
13520
13897
|
}
|
|
@@ -13525,7 +13902,9 @@ class BaseSparkScanView {
|
|
|
13525
13902
|
scanningBehaviorButtonVisible: this.scanningBehaviorButtonVisible,
|
|
13526
13903
|
barcodeCountButtonVisible: this.barcodeCountButtonVisible,
|
|
13527
13904
|
barcodeFindButtonVisible: this.barcodeFindButtonVisible,
|
|
13905
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
13528
13906
|
targetModeButtonVisible: this.targetModeButtonVisible,
|
|
13907
|
+
selectionModeButtonVisible: this.selectionModeButtonVisible,
|
|
13529
13908
|
labelCaptureButtonVisible: this.labelCaptureButtonVisible,
|
|
13530
13909
|
toolbarBackgroundColor: this.toolbarBackgroundColor,
|
|
13531
13910
|
toolbarIconActiveTintColor: this.toolbarIconActiveTintColor,
|
|
@@ -13621,7 +14000,7 @@ class SparkScanBarcodeErrorFeedback extends SparkScanBarcodeFeedback {
|
|
|
13621
14000
|
resumeCapturingDelay: resumeCapturingDelay,
|
|
13622
14001
|
visualFeedbackColor: visualFeedbackColor,
|
|
13623
14002
|
brush: brush,
|
|
13624
|
-
feedback: feedback
|
|
14003
|
+
feedback: feedback,
|
|
13625
14004
|
};
|
|
13626
14005
|
}
|
|
13627
14006
|
}
|
|
@@ -13644,7 +14023,7 @@ class SparkScanBarcodeSuccessFeedback extends SparkScanBarcodeFeedback {
|
|
|
13644
14023
|
successFeedback._barcodeFeedback = {
|
|
13645
14024
|
visualFeedbackColor: visualFeedbackColor,
|
|
13646
14025
|
brush: brush,
|
|
13647
|
-
feedback: feedback
|
|
14026
|
+
feedback: feedback,
|
|
13648
14027
|
};
|
|
13649
14028
|
return successFeedback;
|
|
13650
14029
|
}
|
|
@@ -13654,7 +14033,7 @@ class SparkScanBarcodeSuccessFeedback extends SparkScanBarcodeFeedback {
|
|
|
13654
14033
|
this._barcodeFeedback = {
|
|
13655
14034
|
visualFeedbackColor: SparkScanBarcodeSuccessFeedback.sparkScanDefaults.Feedback.success.visualFeedbackColor,
|
|
13656
14035
|
brush: SparkScanBarcodeSuccessFeedback.sparkScanDefaults.Feedback.success.brush,
|
|
13657
|
-
feedback: SparkScanBarcodeSuccessFeedback.sparkScanDefaults.Feedback.success.feedbackDefault
|
|
14036
|
+
feedback: SparkScanBarcodeSuccessFeedback.sparkScanDefaults.Feedback.success.feedbackDefault,
|
|
13658
14037
|
};
|
|
13659
14038
|
}
|
|
13660
14039
|
}
|
|
@@ -13887,8 +14266,7 @@ __decorate([
|
|
|
13887
14266
|
|
|
13888
14267
|
class BarcodePickProductProviderCallback {
|
|
13889
14268
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13890
|
-
onData(data) {
|
|
13891
|
-
}
|
|
14269
|
+
onData(data) { }
|
|
13892
14270
|
}
|
|
13893
14271
|
|
|
13894
14272
|
class BarcodePickProductProviderCallbackItem extends DefaultSerializeable {
|
|
@@ -14115,8 +14493,7 @@ class DotWithIcons extends DefaultSerializeable {
|
|
|
14115
14493
|
this._iconsForState = [];
|
|
14116
14494
|
this._selectedBrushesForState = [];
|
|
14117
14495
|
this._selectedIconsForState = [];
|
|
14118
|
-
this._styleResponseCacheEnabled = DotWithIcons.barcodePickDefaults.BarcodePickViewHighlightStyle.DotWithIcons
|
|
14119
|
-
.styleResponseCacheEnabled;
|
|
14496
|
+
this._styleResponseCacheEnabled = DotWithIcons.barcodePickDefaults.BarcodePickViewHighlightStyle.DotWithIcons.styleResponseCacheEnabled;
|
|
14120
14497
|
this._hasAsyncStleProvider = false;
|
|
14121
14498
|
this._asyncStyleProvider = null;
|
|
14122
14499
|
}
|
|
@@ -14359,9 +14736,12 @@ class BarcodePickViewHighlightStyleCustomView extends DefaultSerializeable {
|
|
|
14359
14736
|
constructor() {
|
|
14360
14737
|
super();
|
|
14361
14738
|
this._type = 'customView';
|
|
14362
|
-
this._fitViewsToBarcode = BarcodePickViewHighlightStyleCustomView.barcodePickDefaults.BarcodePickViewHighlightStyle.CustomView
|
|
14363
|
-
|
|
14364
|
-
this.
|
|
14739
|
+
this._fitViewsToBarcode = BarcodePickViewHighlightStyleCustomView.barcodePickDefaults.BarcodePickViewHighlightStyle.CustomView
|
|
14740
|
+
.fitViewsToBarcode;
|
|
14741
|
+
this._minimumHighlightWidth = BarcodePickViewHighlightStyleCustomView.barcodePickDefaults.BarcodePickViewHighlightStyle.CustomView
|
|
14742
|
+
.minimumHighlightWidth;
|
|
14743
|
+
this._minimumHighlightHeight = BarcodePickViewHighlightStyleCustomView.barcodePickDefaults.BarcodePickViewHighlightStyle.CustomView
|
|
14744
|
+
.minimumHighlightHeight;
|
|
14365
14745
|
this._hasAsyncProvider = false;
|
|
14366
14746
|
this._asyncCustomViewProvider = null;
|
|
14367
14747
|
}
|
|
@@ -14433,7 +14813,9 @@ class BarcodePickViewEventHandlers {
|
|
|
14433
14813
|
this.barcodePickMapperCallback = callback;
|
|
14434
14814
|
}
|
|
14435
14815
|
handleDidCompleteScanningSession(ev) {
|
|
14436
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
14816
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
14817
|
+
viewId: this.view.viewId,
|
|
14818
|
+
});
|
|
14437
14819
|
if (payload === SKIP) {
|
|
14438
14820
|
return;
|
|
14439
14821
|
}
|
|
@@ -14445,7 +14827,9 @@ class BarcodePickViewEventHandlers {
|
|
|
14445
14827
|
this.notifyListenersOfDidCompleteScanningSession(session);
|
|
14446
14828
|
}
|
|
14447
14829
|
handleDidUpdateScanningSession(ev) {
|
|
14448
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
14830
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
14831
|
+
viewId: this.view.viewId,
|
|
14832
|
+
});
|
|
14449
14833
|
if (payload === SKIP) {
|
|
14450
14834
|
return;
|
|
14451
14835
|
}
|
|
@@ -14457,7 +14841,9 @@ class BarcodePickViewEventHandlers {
|
|
|
14457
14841
|
this.notifyListenersOfDidUpdateScanningSession(session);
|
|
14458
14842
|
}
|
|
14459
14843
|
handleDidPick(ev) {
|
|
14460
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
14844
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
14845
|
+
viewId: this.view.viewId,
|
|
14846
|
+
});
|
|
14461
14847
|
if (payload === SKIP) {
|
|
14462
14848
|
return;
|
|
14463
14849
|
}
|
|
@@ -14471,7 +14857,9 @@ class BarcodePickViewEventHandlers {
|
|
|
14471
14857
|
this.view['actionListeners'].forEach(listener => listener.didPickItem(payload.itemData, barcodePickActionCallback));
|
|
14472
14858
|
}
|
|
14473
14859
|
handleDidUnpick(ev) {
|
|
14474
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
14860
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
14861
|
+
viewId: this.view.viewId,
|
|
14862
|
+
});
|
|
14475
14863
|
if (payload === SKIP) {
|
|
14476
14864
|
return;
|
|
14477
14865
|
}
|
|
@@ -14544,7 +14932,9 @@ class BarcodePickViewEventHandlers {
|
|
|
14544
14932
|
this.view['listeners'].forEach(listener => listener.didStopScanning(this.view));
|
|
14545
14933
|
}
|
|
14546
14934
|
handleProductIdentifierForItems(ev) {
|
|
14547
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
14935
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
14936
|
+
viewId: this.view.viewId,
|
|
14937
|
+
});
|
|
14548
14938
|
if (payload === SKIP) {
|
|
14549
14939
|
return;
|
|
14550
14940
|
}
|
|
@@ -14562,7 +14952,9 @@ class BarcodePickViewEventHandlers {
|
|
|
14562
14952
|
});
|
|
14563
14953
|
}
|
|
14564
14954
|
handleDidUpdateSession(ev) {
|
|
14565
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
14955
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
14956
|
+
viewId: this.view.viewId,
|
|
14957
|
+
});
|
|
14566
14958
|
if (payload === SKIP) {
|
|
14567
14959
|
return;
|
|
14568
14960
|
}
|
|
@@ -14575,7 +14967,9 @@ class BarcodePickViewEventHandlers {
|
|
|
14575
14967
|
}
|
|
14576
14968
|
handleRequestHighlightStyle(ev) {
|
|
14577
14969
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14578
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
14970
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
14971
|
+
viewId: this.view.viewId,
|
|
14972
|
+
});
|
|
14579
14973
|
if (payload === SKIP) {
|
|
14580
14974
|
return;
|
|
14581
14975
|
}
|
|
@@ -14607,7 +15001,9 @@ class BarcodePickViewEventHandlers {
|
|
|
14607
15001
|
}
|
|
14608
15002
|
handleRequestCustomView(ev) {
|
|
14609
15003
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14610
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
15004
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
15005
|
+
viewId: this.view.viewId,
|
|
15006
|
+
});
|
|
14611
15007
|
if (payload === SKIP) {
|
|
14612
15008
|
return;
|
|
14613
15009
|
}
|
|
@@ -15331,18 +15727,21 @@ __decorate([
|
|
|
15331
15727
|
class BarcodePickStatusIconStyle extends DefaultSerializeable {
|
|
15332
15728
|
static withIcon(iconBase64, text) {
|
|
15333
15729
|
const style = new BarcodePickStatusIconStyle();
|
|
15730
|
+
style._type = 'icon';
|
|
15334
15731
|
style._icon = iconBase64;
|
|
15335
15732
|
style._text = text;
|
|
15336
15733
|
return style;
|
|
15337
15734
|
}
|
|
15338
15735
|
static withScanditIcon(icon, text) {
|
|
15339
15736
|
const style = new BarcodePickStatusIconStyle();
|
|
15737
|
+
style._type = 'icon';
|
|
15340
15738
|
style._scanditIcon = icon;
|
|
15341
15739
|
style._text = text;
|
|
15342
15740
|
return style;
|
|
15343
15741
|
}
|
|
15344
15742
|
static withColors(iconColor, iconBackgroundColor, text) {
|
|
15345
15743
|
const style = new BarcodePickStatusIconStyle();
|
|
15744
|
+
style._type = 'colors';
|
|
15346
15745
|
style._iconColor = iconColor.toJSON();
|
|
15347
15746
|
style._iconBackgroundColor = iconBackgroundColor.toJSON();
|
|
15348
15747
|
style._text = text;
|
|
@@ -15352,6 +15751,7 @@ class BarcodePickStatusIconStyle extends DefaultSerializeable {
|
|
|
15352
15751
|
try {
|
|
15353
15752
|
const data = JSON.parse(json);
|
|
15354
15753
|
const style = new BarcodePickStatusIconStyle();
|
|
15754
|
+
style._type = data.type || '';
|
|
15355
15755
|
style._icon = data.icon || null;
|
|
15356
15756
|
style._scanditIcon = data.scanditIcon ? ScanditIcon['fromJSON'](data.scanditIcon) : null;
|
|
15357
15757
|
style._iconColor = data.iconColor || null;
|
|
@@ -15365,6 +15765,7 @@ class BarcodePickStatusIconStyle extends DefaultSerializeable {
|
|
|
15365
15765
|
}
|
|
15366
15766
|
constructor() {
|
|
15367
15767
|
super();
|
|
15768
|
+
this._type = '';
|
|
15368
15769
|
this._icon = null;
|
|
15369
15770
|
this._scanditIcon = null;
|
|
15370
15771
|
this._iconColor = null;
|
|
@@ -15372,6 +15773,9 @@ class BarcodePickStatusIconStyle extends DefaultSerializeable {
|
|
|
15372
15773
|
this._text = '';
|
|
15373
15774
|
}
|
|
15374
15775
|
}
|
|
15776
|
+
__decorate([
|
|
15777
|
+
nameForSerialization('type')
|
|
15778
|
+
], BarcodePickStatusIconStyle.prototype, "_type", void 0);
|
|
15375
15779
|
__decorate([
|
|
15376
15780
|
nameForSerialization('icon')
|
|
15377
15781
|
], BarcodePickStatusIconStyle.prototype, "_icon", void 0);
|
|
@@ -15572,9 +15976,11 @@ class BarcodePickViewSettings extends DefaultSerializeable {
|
|
|
15572
15976
|
this._onFirstItemPickCompletedHintText = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.onFirstItemPickCompletedHintText;
|
|
15573
15977
|
this._onFirstUnmarkedItemPickCompletedHintText = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.onFirstUnmarkedItemPickCompletedHintText;
|
|
15574
15978
|
this._onFirstItemUnpickCompletedHintText = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.onFirstItemUnpickCompletedHintText;
|
|
15575
|
-
this._zoomButtonPosition = BarcodePickViewSettings.barcodePickDefaults.ViewSettings
|
|
15979
|
+
this._zoomButtonPosition = BarcodePickViewSettings.barcodePickDefaults.ViewSettings
|
|
15980
|
+
.zoomButtonPosition;
|
|
15576
15981
|
this._showTorchButton = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.showTorchButton;
|
|
15577
|
-
this._torchButtonPosition = BarcodePickViewSettings.barcodePickDefaults.ViewSettings
|
|
15982
|
+
this._torchButtonPosition = BarcodePickViewSettings.barcodePickDefaults.ViewSettings
|
|
15983
|
+
.torchButtonPosition;
|
|
15578
15984
|
this._tapShutterToPauseGuidelineText = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.tapShutterToPauseGuidelineText;
|
|
15579
15985
|
this._hardwareTriggerEnabled = BarcodePickViewSettings.barcodePickDefaults.ViewSettings.hardwareTriggerEnabled;
|
|
15580
15986
|
this._filterHighlightSettings = BarcodePickViewSettings.barcodePickDefaults.BarcodePickSettings.filterHighlightSettings;
|
|
@@ -16238,10 +16644,10 @@ class BarcodeFindItemSearchOptions extends DefaultSerializeable {
|
|
|
16238
16644
|
}
|
|
16239
16645
|
}
|
|
16240
16646
|
__decorate([
|
|
16241
|
-
nameForSerialization(
|
|
16647
|
+
nameForSerialization('barcodeData')
|
|
16242
16648
|
], BarcodeFindItemSearchOptions.prototype, "_barcodeData", void 0);
|
|
16243
16649
|
__decorate([
|
|
16244
|
-
nameForSerialization(
|
|
16650
|
+
nameForSerialization('brush')
|
|
16245
16651
|
], BarcodeFindItemSearchOptions.prototype, "_brush", void 0);
|
|
16246
16652
|
|
|
16247
16653
|
class BarcodeFindSession {
|
|
@@ -16275,8 +16681,7 @@ class BarcodeFindSettings extends DefaultSerializeable {
|
|
|
16275
16681
|
this.settingsForSymbology(symbology).isEnabled = enabled;
|
|
16276
16682
|
}
|
|
16277
16683
|
get enabledSymbologies() {
|
|
16278
|
-
return Object.keys(this._symbologies)
|
|
16279
|
-
.filter(symbology => this._symbologies[symbology].isEnabled);
|
|
16684
|
+
return Object.keys(this._symbologies).filter(symbology => this._symbologies[symbology].isEnabled);
|
|
16280
16685
|
}
|
|
16281
16686
|
setProperty(name, value) {
|
|
16282
16687
|
this._properties[name] = value;
|
|
@@ -16315,8 +16720,10 @@ class BarcodeFindViewSettings extends DefaultSerializeable {
|
|
|
16315
16720
|
this._hapticEnabled = hapticEnabled;
|
|
16316
16721
|
this._hardwareTriggerEnabled = hardwareTriggerEnabled || false;
|
|
16317
16722
|
this._hardwareTriggerKeyCode = hardwareTriggerKeyCode || null;
|
|
16318
|
-
this._progressBarStartColor =
|
|
16319
|
-
|
|
16723
|
+
this._progressBarStartColor =
|
|
16724
|
+
progressBarStartColor || BarcodeFindViewSettings.barcodeFindViewSettingsDefaults.progressBarStartColor;
|
|
16725
|
+
this._progressBarFinishColor =
|
|
16726
|
+
progressBarFinishColor || BarcodeFindViewSettings.barcodeFindViewSettingsDefaults.progressBarFinishColor;
|
|
16320
16727
|
}
|
|
16321
16728
|
get inListItemColor() {
|
|
16322
16729
|
return this._inListItemColor;
|
|
@@ -16449,7 +16856,10 @@ class BarcodeFindViewController extends BaseController {
|
|
|
16449
16856
|
if (!this.isViewCreated)
|
|
16450
16857
|
return Promise.resolve(); // view not created yet
|
|
16451
16858
|
const barcodeFindViewJson = this.baseView.toJSON();
|
|
16452
|
-
return this.adapter.updateFindView({
|
|
16859
|
+
return this.adapter.updateFindView({
|
|
16860
|
+
viewId: this.baseView.viewId,
|
|
16861
|
+
barcodeFindViewJson: JSON.stringify(barcodeFindViewJson),
|
|
16862
|
+
});
|
|
16453
16863
|
}
|
|
16454
16864
|
showView() {
|
|
16455
16865
|
if (!this.isViewCreated)
|
|
@@ -16498,7 +16908,10 @@ class BarcodeFindViewController extends BaseController {
|
|
|
16498
16908
|
updateMode() {
|
|
16499
16909
|
if (!this.isViewCreated)
|
|
16500
16910
|
return Promise.resolve(); // view not created yet
|
|
16501
|
-
return this.adapter.updateFindMode({
|
|
16911
|
+
return this.adapter.updateFindMode({
|
|
16912
|
+
viewId: this.baseView.viewId,
|
|
16913
|
+
barcodeFindJson: JSON.stringify(this.baseView.barcodeFind.toJSON()),
|
|
16914
|
+
});
|
|
16502
16915
|
}
|
|
16503
16916
|
setItemList(items) {
|
|
16504
16917
|
if (!this.isViewCreated)
|
|
@@ -16586,7 +16999,9 @@ class BarcodeFindViewController extends BaseController {
|
|
|
16586
16999
|
if (!this.baseView.barcodeFindViewUiListener) {
|
|
16587
17000
|
return;
|
|
16588
17001
|
}
|
|
16589
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
17002
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
17003
|
+
viewId: this.baseView.viewId,
|
|
17004
|
+
});
|
|
16590
17005
|
if (payload === SKIP) {
|
|
16591
17006
|
return;
|
|
16592
17007
|
}
|
|
@@ -16600,7 +17015,9 @@ class BarcodeFindViewController extends BaseController {
|
|
|
16600
17015
|
handleOnTransformBarcodeDataEvent(ev) {
|
|
16601
17016
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16602
17017
|
var _a;
|
|
16603
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
17018
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
17019
|
+
viewId: this.baseView.viewId,
|
|
17020
|
+
});
|
|
16604
17021
|
if (payload === SKIP) {
|
|
16605
17022
|
return;
|
|
16606
17023
|
}
|
|
@@ -16609,7 +17026,10 @@ class BarcodeFindViewController extends BaseController {
|
|
|
16609
17026
|
return;
|
|
16610
17027
|
}
|
|
16611
17028
|
const transformed = (_a = this.baseView.barcodeFind['barcodeTransformer']) === null || _a === void 0 ? void 0 : _a.transformBarcodeData(payload.data);
|
|
16612
|
-
yield this.adapter.submitBarcodeFindTransformerResult({
|
|
17029
|
+
yield this.adapter.submitBarcodeFindTransformerResult({
|
|
17030
|
+
viewId: this.baseView.viewId,
|
|
17031
|
+
transformedBarcode: transformed !== null && transformed !== void 0 ? transformed : null,
|
|
17032
|
+
});
|
|
16613
17033
|
});
|
|
16614
17034
|
}
|
|
16615
17035
|
create() {
|
|
@@ -16635,7 +17055,9 @@ class BarcodeFindViewController extends BaseController {
|
|
|
16635
17055
|
}
|
|
16636
17056
|
handleDidUpdateSession(ev) {
|
|
16637
17057
|
var _a;
|
|
16638
|
-
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
17058
|
+
const payload = EventDataParser.parseIfShouldHandle(ev, {
|
|
17059
|
+
viewId: this.baseView.viewId,
|
|
17060
|
+
});
|
|
16639
17061
|
if (payload === SKIP) {
|
|
16640
17062
|
return;
|
|
16641
17063
|
}
|
|
@@ -16909,9 +17331,9 @@ class BaseBarcodeFindView {
|
|
|
16909
17331
|
viewSettings: undefined,
|
|
16910
17332
|
CameraSettings: undefined,
|
|
16911
17333
|
viewId: this._viewId,
|
|
16912
|
-
hasListener: this.barcodeFindViewUiListener != null
|
|
17334
|
+
hasListener: this.barcodeFindViewUiListener != null,
|
|
16913
17335
|
},
|
|
16914
|
-
BarcodeFind: this._barcodeFind.toJSON()
|
|
17336
|
+
BarcodeFind: this._barcodeFind.toJSON(),
|
|
16915
17337
|
};
|
|
16916
17338
|
if (this._barcodeFindViewSettings != null) {
|
|
16917
17339
|
json.View.viewSettings = (_b = this._barcodeFindViewSettings) === null || _b === void 0 ? void 0 : _b.toJSON();
|
|
@@ -17031,7 +17453,7 @@ class BarcodeGeneratorController extends BaseController {
|
|
|
17031
17453
|
}
|
|
17032
17454
|
create() {
|
|
17033
17455
|
return this.adapter.createBarcodeGenerator({
|
|
17034
|
-
barcodeGeneratorJson: JSON.stringify(this.generator.toJSON())
|
|
17456
|
+
barcodeGeneratorJson: JSON.stringify(this.generator.toJSON()),
|
|
17035
17457
|
});
|
|
17036
17458
|
}
|
|
17037
17459
|
generateFromBase64EncodedData(data, imageWidth) {
|
|
@@ -17056,7 +17478,7 @@ class BarcodeGeneratorController extends BaseController {
|
|
|
17056
17478
|
}
|
|
17057
17479
|
dispose() {
|
|
17058
17480
|
return this.adapter.disposeBarcodeGenerator({
|
|
17059
|
-
generatorId: this.generator.id
|
|
17481
|
+
generatorId: this.generator.id,
|
|
17060
17482
|
});
|
|
17061
17483
|
}
|
|
17062
17484
|
}
|
|
@@ -17217,4 +17639,4 @@ function registerBarcodeProxies(provider) {
|
|
|
17217
17639
|
registerProxies(BARCODE_PROXY_TYPE_NAMES, provider);
|
|
17218
17640
|
}
|
|
17219
17641
|
|
|
17220
|
-
export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, BARCODE_PROXY_TYPE_NAMES, Barcode, BarcodeAr, BarcodeArAnnotationLifecycleEvents, BarcodeArAnnotationProviderEvents, BarcodeArAnnotationTrigger, BarcodeArCircleHighlight, BarcodeArCircleHighlightPreset, BarcodeArEvents, BarcodeArFeedback, BarcodeArHighlightLifecycleEvents, BarcodeArHighlightProviderEvents, BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor, BarcodeArInfoAnnotationBodyComponent, BarcodeArInfoAnnotationFooter, BarcodeArInfoAnnotationHeader, BarcodeArInfoAnnotationWidthPreset, BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationButton, BarcodeArRectangleHighlight, BarcodeArResponsiveAnnotation, BarcodeArSession, BarcodeArSessionController, BarcodeArSettings, BarcodeArStatusIconAnnotation, BarcodeArViewController, BarcodeArViewEvents, BarcodeArViewSettings, BarcodeBatch, BarcodeBatchAdvancedOverlayController, BarcodeBatchAdvancedOverlayListenerEvents, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayController, BarcodeBatchBasicOverlayListenerEvents, BarcodeBatchBasicOverlayStyle, BarcodeBatchListenerController, BarcodeBatchListenerEvents, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureListenerController, BarcodeCaptureListenerEvents, BarcodeCaptureOverlay, BarcodeCaptureOverlayController, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountMappingFlowSettings, BarcodeCountModeListenerEvents, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSessionController, BarcodeCountSettings, BarcodeCountStatus, BarcodeCountStatusItem, BarcodeCountStatusProviderCallback, BarcodeCountStatusResultAbort, BarcodeCountStatusResultError, BarcodeCountStatusResultSuccess, BarcodeCountToolbarSettings, BarcodeCountUiListenerEvents, BarcodeCountViewController, BarcodeCountViewListenerEvents, BarcodeCountViewStyle, BarcodeDefaultsType, BarcodeDefinition, BarcodeDefinitionBuilder, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindListenerEvents, BarcodeFindSession, BarcodeFindSettings, BarcodeFindViewController, BarcodeFindViewEvents, BarcodeFindViewSettings, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeGeneratorController, BarcodeIdentifier, BarcodeInfo, BarcodePick, BarcodePickAction, BarcodePickActionCallback, BarcodePickActionEvents, BarcodePickAsyncMapperProductProvider, BarcodePickAsyncMapperProductProviderEvents, BarcodePickListenerEvents, BarcodePickProduct, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningEvents, BarcodePickScanningSession, BarcodePickSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickStatusIconStyle, BarcodePickViewController, BarcodePickViewEventHandlers, BarcodePickViewEvents, BarcodePickViewHighlightStyleCustomView, BarcodePickViewHighlightStyleCustomViewEvents, BarcodePickViewHighlightStyleCustomViewResponse, BarcodePickViewHighlightStyleEvents, BarcodePickViewHighlightStyleRequest, BarcodePickViewHighlightStyleResponse, BarcodePickViewHighlightStyleResponseBuilder, BarcodePickViewSettings, BarcodePickViewUiEvents, BarcodeSelection, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionBrushProviderEvents, BarcodeSelectionController, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionListenerController, BarcodeSelectionListenerEvents, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionOverlayController, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionStrategyType, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BarcodeSelectionTypeName, BarcodeSpatialGrid, BaseBarcodeArView, BaseBarcodeBatchAdvancedOverlay, BaseBarcodeCountView, BaseBarcodeFindView, BaseBarcodePickView, BaseSparkScanView, BatterySavingMode, BrushForStateObject, CapturePreset, Checksum, Cluster, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, Pdf417BarcodeGeneratorBuilder, Pdf417CompactionMode, Pdf417Dimensions, PrivateBarcodeSelectionStrategy, PrivateBarcodeSelectionType, QrCodeBarcodeGeneratorBuilder, QrCodeErrorCorrectionLevel, Range, Rectangular, RectangularWithIcons, ScanComponentBarcodePreset, ScanComponentTextSemanticType, ScanItemDefinition, ScanItemIdentifier, ScannedBarcode, ScannedComponentIdentifier, ScannedItem, ScannedItemIdentifier, ScannedText, SparkScan, SparkScanBarcodeErrorFeedback, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior, SparkScanScanningModeDefault, SparkScanScanningModeTarget, SparkScanSession, SparkScanSettings, SparkScanToastSettings, SparkScanViewController, SparkScanViewEvents, SparkScanViewSettings, SparkScanViewState, StructuredAppendData, Symbology, SymbologyDescription, SymbologySettings, TargetBarcode, TextDefinition, TextDefinitionBuilder, TextIdentifier, TrackedBarcode, TrackedObject, UpcaBarcodeGeneratorBuilder, ensureBarcodeDefaults, ensureBarcodeDefaultsFor, getBarcodeArDefaults, getBarcodeBatchDefaults, getBarcodeCaptureDefaults, getBarcodeCountDefaults, getBarcodeDefaults, getBarcodeFindDefaults, getBarcodePickDefaults, getBarcodeSelectionDefaults, getSparkScanDefaults, getSymbologySettingsFromBarcodePickDefaults, getSymbologySettingsFromDefaults, loadAllBarcodeDefaults, loadBarcodeArDefaults, loadBarcodeBatchDefaults, loadBarcodeCaptureDefaults, loadBarcodeCountDefaults, loadBarcodeDefaults, loadBarcodeFindDefaults, loadBarcodePickDefaults, loadBarcodeSelectionDefaults, loadSparkScanDefaults, registerBarcodeProxies, setBarcodeDefaultsLoader };
|
|
17642
|
+
export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, BARCODE_PROXY_TYPE_NAMES, Barcode, BarcodeAr, BarcodeArAnnotationLifecycleEvents, BarcodeArAnnotationProviderEvents, BarcodeArAnnotationTrigger, BarcodeArCircleHighlight, BarcodeArCircleHighlightPreset, BarcodeArEvents, BarcodeArFeedback, BarcodeArFilterEvents, BarcodeArHighlightLifecycleEvents, BarcodeArHighlightProviderEvents, BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor, BarcodeArInfoAnnotationBodyComponent, BarcodeArInfoAnnotationFooter, BarcodeArInfoAnnotationHeader, BarcodeArInfoAnnotationWidthPreset, BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationButton, BarcodeArRectangleHighlight, BarcodeArResponsiveAnnotation, BarcodeArSession, BarcodeArSessionController, BarcodeArSettings, BarcodeArStatusIconAnnotation, BarcodeArViewController, BarcodeArViewEvents, BarcodeArViewSettings, BarcodeBatch, BarcodeBatchAdvancedOverlayController, BarcodeBatchAdvancedOverlayListenerEvents, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayController, BarcodeBatchBasicOverlayListenerEvents, BarcodeBatchBasicOverlayStyle, BarcodeBatchListenerController, BarcodeBatchListenerEvents, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureListenerController, BarcodeCaptureListenerEvents, BarcodeCaptureOverlay, BarcodeCaptureOverlayController, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountMappingFlowSettings, BarcodeCountModeListenerEvents, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSessionController, BarcodeCountSettings, BarcodeCountStatus, BarcodeCountStatusItem, BarcodeCountStatusProviderCallback, BarcodeCountStatusResultAbort, BarcodeCountStatusResultError, BarcodeCountStatusResultSuccess, BarcodeCountToolbarSettings, BarcodeCountUiListenerEvents, BarcodeCountViewController, BarcodeCountViewListenerEvents, BarcodeCountViewStyle, BarcodeDefaultsType, BarcodeDefinition, BarcodeDefinitionBuilder, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindListenerEvents, BarcodeFindSession, BarcodeFindSettings, BarcodeFindViewController, BarcodeFindViewEvents, BarcodeFindViewSettings, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeGeneratorController, BarcodeIdentifier, BarcodeInfo, BarcodePick, BarcodePickAction, BarcodePickActionCallback, BarcodePickActionEvents, BarcodePickAsyncMapperProductProvider, BarcodePickAsyncMapperProductProviderEvents, BarcodePickListenerEvents, BarcodePickProduct, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningEvents, BarcodePickScanningSession, BarcodePickSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickStatusIconStyle, BarcodePickViewController, BarcodePickViewEventHandlers, BarcodePickViewEvents, BarcodePickViewHighlightStyleCustomView, BarcodePickViewHighlightStyleCustomViewEvents, BarcodePickViewHighlightStyleCustomViewResponse, BarcodePickViewHighlightStyleEvents, BarcodePickViewHighlightStyleRequest, BarcodePickViewHighlightStyleResponse, BarcodePickViewHighlightStyleResponseBuilder, BarcodePickViewSettings, BarcodePickViewUiEvents, BarcodeSelection, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionBrushProviderEvents, BarcodeSelectionController, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionListenerController, BarcodeSelectionListenerEvents, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionOverlayController, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionStrategyType, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BarcodeSelectionTypeName, BarcodeSpatialGrid, BaseBarcodeArView, BaseBarcodeBatchAdvancedOverlay, BaseBarcodeCountView, BaseBarcodeFindView, BaseBarcodePickView, BaseSparkScanView, BatterySavingMode, BrushForStateObject, CapturePreset, Checksum, Cluster, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, Pdf417BarcodeGeneratorBuilder, Pdf417CompactionMode, Pdf417Dimensions, PrivateBarcodeSelectionStrategy, PrivateBarcodeSelectionType, QrCodeBarcodeGeneratorBuilder, QrCodeErrorCorrectionLevel, Range, Rectangular, RectangularWithIcons, ScanComponentBarcodePreset, ScanComponentTextSemanticType, ScanItemDefinition, ScanItemIdentifier, ScannedBarcode, ScannedComponentIdentifier, ScannedItem, ScannedItemIdentifier, ScannedText, SparkScan, SparkScanBarcodeErrorFeedback, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior, SparkScanScanningModeDefault, SparkScanScanningModeTarget, SparkScanSession, SparkScanSettings, SparkScanToastSettings, SparkScanViewController, SparkScanViewEvents, SparkScanViewSettings, SparkScanViewState, StructuredAppendData, Symbology, SymbologyDescription, SymbologySettings, TargetBarcode, TextDefinition, TextDefinitionBuilder, TextIdentifier, TrackedBarcode, TrackedObject, UpcaBarcodeGeneratorBuilder, ensureBarcodeDefaults, ensureBarcodeDefaultsFor, getBarcodeArDefaults, getBarcodeBatchDefaults, getBarcodeCaptureDefaults, getBarcodeCountDefaults, getBarcodeDefaults, getBarcodeFindDefaults, getBarcodePickDefaults, getBarcodeSelectionDefaults, getSparkScanDefaults, getSymbologySettingsFromBarcodePickDefaults, getSymbologySettingsFromDefaults, loadAllBarcodeDefaults, loadBarcodeArDefaults, loadBarcodeBatchDefaults, loadBarcodeCaptureDefaults, loadBarcodeCountDefaults, loadBarcodeDefaults, loadBarcodeFindDefaults, loadBarcodePickDefaults, loadBarcodeSelectionDefaults, loadSparkScanDefaults, registerBarcodeProxies, setBarcodeDefaultsLoader };
|