scandit-capacitor-datacapture-parser 6.20.0 → 6.21.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/ScanditCapacitorDatacaptureParser.podspec +1 -1
  2. package/android/build.gradle +1 -1
  3. package/dist/esm/definitions.d.ts +4 -0
  4. package/dist/esm/ts/Capacitor/ParserProxy.d.ts +10 -0
  5. package/dist/esm/ts/ParsedData.d.ts +17 -0
  6. package/dist/esm/ts/ParsedField.d.ts +20 -0
  7. package/dist/esm/ts/Parser.d.ts +35 -0
  8. package/dist/esm/ts/ParserDataFormat.d.ts +21 -0
  9. package/dist/{plugin.cjs.js → index.js} +44 -120
  10. package/dist/index.js.map +1 -0
  11. package/package.json +13 -9
  12. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Camera+Related.js +0 -163
  13. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Camera+Related.js.map +0 -1
  14. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/Capacitor.d.ts +0 -34
  15. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/Capacitor.js +0 -45
  16. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/Capacitor.js.map +0 -1
  17. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/CommonCapacitor.d.ts +0 -11
  18. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/CommonCapacitor.js +0 -61
  19. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/CommonCapacitor.js.map +0 -1
  20. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/DataCaptureContextProxy.js +0 -69
  21. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/DataCaptureContextProxy.js.map +0 -1
  22. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/DataCaptureViewProxy.js +0 -73
  23. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/DataCaptureViewProxy.js.map +0 -1
  24. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/Defaults.d.ts +0 -169
  25. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/Defaults.js +0 -79
  26. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/Defaults.js.map +0 -1
  27. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Common.js +0 -467
  28. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Common.js.map +0 -1
  29. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/DataCaptureContext+Related.js +0 -19
  30. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/DataCaptureContext+Related.js.map +0 -1
  31. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/DataCaptureContext.js +0 -136
  32. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/DataCaptureContext.js.map +0 -1
  33. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/DataCaptureView+Related.js +0 -39
  34. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/DataCaptureView+Related.js.map +0 -1
  35. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/DataCaptureView.js +0 -352
  36. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/DataCaptureView.js.map +0 -1
  37. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Serializeable.js +0 -67
  38. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Serializeable.js.map +0 -1
  39. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Viewfinder+Related.js +0 -43
  40. package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Viewfinder+Related.js.map +0 -1
  41. package/dist/esm/scandit-capacitor-datacapture-parser/src/definitions.d.ts +0 -735
  42. package/dist/esm/scandit-capacitor-datacapture-parser/src/definitions.js +0 -2
  43. package/dist/esm/scandit-capacitor-datacapture-parser/src/definitions.js.map +0 -1
  44. package/dist/esm/scandit-capacitor-datacapture-parser/src/index.js +0 -3
  45. package/dist/esm/scandit-capacitor-datacapture-parser/src/index.js.map +0 -1
  46. package/dist/esm/scandit-capacitor-datacapture-parser/src/ts/Capacitor/Capacitor.js +0 -19
  47. package/dist/esm/scandit-capacitor-datacapture-parser/src/ts/Capacitor/Capacitor.js.map +0 -1
  48. package/dist/esm/scandit-capacitor-datacapture-parser/src/ts/Capacitor/ParserProxy.js +0 -23
  49. package/dist/esm/scandit-capacitor-datacapture-parser/src/ts/Capacitor/ParserProxy.js.map +0 -1
  50. package/dist/esm/scandit-capacitor-datacapture-parser/src/ts/ParsedData.js +0 -23
  51. package/dist/esm/scandit-capacitor-datacapture-parser/src/ts/ParsedData.js.map +0 -1
  52. package/dist/esm/scandit-capacitor-datacapture-parser/src/ts/ParsedField.js +0 -23
  53. package/dist/esm/scandit-capacitor-datacapture-parser/src/ts/ParsedField.js.map +0 -1
  54. package/dist/esm/scandit-capacitor-datacapture-parser/src/ts/Parser.js +0 -71
  55. package/dist/esm/scandit-capacitor-datacapture-parser/src/ts/Parser.js.map +0 -1
  56. package/dist/esm/scandit-capacitor-datacapture-parser/src/ts/ParserDataFormat.js +0 -11
  57. package/dist/esm/scandit-capacitor-datacapture-parser/src/ts/ParserDataFormat.js.map +0 -1
  58. package/dist/esm/scandit-capacitor-datacapture-parser/src/web.js +0 -26
  59. package/dist/esm/scandit-capacitor-datacapture-parser/src/web.js.map +0 -1
  60. package/dist/plugin.cjs.js.map +0 -1
  61. package/dist/plugin.js +0 -303
  62. package/dist/plugin.js.map +0 -1
  63. /package/dist/esm/{scandit-capacitor-datacapture-parser/src/index.d.ts → index.d.ts} +0 -0
  64. /package/dist/esm/{scandit-capacitor-datacapture-parser/src/ts → ts}/Capacitor/Capacitor.d.ts +0 -0
  65. /package/dist/esm/{scandit-capacitor-datacapture-parser/src/web.d.ts → web.d.ts} +0 -0
@@ -1,467 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { DefaultSerializeable, nameForSerialization } from './Serializeable';
8
- export class Point extends DefaultSerializeable {
9
- get x() {
10
- return this._x;
11
- }
12
- get y() {
13
- return this._y;
14
- }
15
- static fromJSON(json) {
16
- return new Point(json.x, json.y);
17
- }
18
- constructor(x, y) {
19
- super();
20
- this._x = x;
21
- this._y = y;
22
- }
23
- }
24
- __decorate([
25
- nameForSerialization('x')
26
- ], Point.prototype, "_x", void 0);
27
- __decorate([
28
- nameForSerialization('y')
29
- ], Point.prototype, "_y", void 0);
30
- export class Quadrilateral extends DefaultSerializeable {
31
- get topLeft() {
32
- return this._topLeft;
33
- }
34
- get topRight() {
35
- return this._topRight;
36
- }
37
- get bottomRight() {
38
- return this._bottomRight;
39
- }
40
- get bottomLeft() {
41
- return this._bottomLeft;
42
- }
43
- static fromJSON(json) {
44
- return new Quadrilateral(Point.fromJSON(json.topLeft), Point.fromJSON(json.topRight), Point.fromJSON(json.bottomRight), Point.fromJSON(json.bottomLeft));
45
- }
46
- constructor(topLeft, topRight, bottomRight, bottomLeft) {
47
- super();
48
- this._topLeft = topLeft;
49
- this._topRight = topRight;
50
- this._bottomRight = bottomRight;
51
- this._bottomLeft = bottomLeft;
52
- }
53
- }
54
- __decorate([
55
- nameForSerialization('topLeft')
56
- ], Quadrilateral.prototype, "_topLeft", void 0);
57
- __decorate([
58
- nameForSerialization('topRight')
59
- ], Quadrilateral.prototype, "_topRight", void 0);
60
- __decorate([
61
- nameForSerialization('bottomRight')
62
- ], Quadrilateral.prototype, "_bottomRight", void 0);
63
- __decorate([
64
- nameForSerialization('bottomLeft')
65
- ], Quadrilateral.prototype, "_bottomLeft", void 0);
66
- export var MeasureUnit;
67
- (function (MeasureUnit) {
68
- MeasureUnit["DIP"] = "dip";
69
- MeasureUnit["Pixel"] = "pixel";
70
- MeasureUnit["Fraction"] = "fraction";
71
- })(MeasureUnit || (MeasureUnit = {}));
72
- export class NumberWithUnit extends DefaultSerializeable {
73
- get value() {
74
- return this._value;
75
- }
76
- get unit() {
77
- return this._unit;
78
- }
79
- static fromJSON(json) {
80
- return new NumberWithUnit(json.value, json.unit);
81
- }
82
- constructor(value, unit) {
83
- super();
84
- this._value = value;
85
- this._unit = unit;
86
- }
87
- }
88
- __decorate([
89
- nameForSerialization('value')
90
- ], NumberWithUnit.prototype, "_value", void 0);
91
- __decorate([
92
- nameForSerialization('unit')
93
- ], NumberWithUnit.prototype, "_unit", void 0);
94
- export class PointWithUnit extends DefaultSerializeable {
95
- get x() {
96
- return this._x;
97
- }
98
- get y() {
99
- return this._y;
100
- }
101
- static fromJSON(json) {
102
- return new PointWithUnit(NumberWithUnit.fromJSON(json.x), NumberWithUnit.fromJSON(json.y));
103
- }
104
- static get zero() {
105
- return new PointWithUnit(new NumberWithUnit(0, MeasureUnit.Pixel), new NumberWithUnit(0, MeasureUnit.Pixel));
106
- }
107
- constructor(x, y) {
108
- super();
109
- this._x = x;
110
- this._y = y;
111
- }
112
- }
113
- __decorate([
114
- nameForSerialization('x')
115
- ], PointWithUnit.prototype, "_x", void 0);
116
- __decorate([
117
- nameForSerialization('y')
118
- ], PointWithUnit.prototype, "_y", void 0);
119
- export class Rect extends DefaultSerializeable {
120
- get origin() {
121
- return this._origin;
122
- }
123
- get size() {
124
- return this._size;
125
- }
126
- constructor(origin, size) {
127
- super();
128
- this._origin = origin;
129
- this._size = size;
130
- }
131
- }
132
- __decorate([
133
- nameForSerialization('origin')
134
- ], Rect.prototype, "_origin", void 0);
135
- __decorate([
136
- nameForSerialization('size')
137
- ], Rect.prototype, "_size", void 0);
138
- export class RectWithUnit extends DefaultSerializeable {
139
- get origin() {
140
- return this._origin;
141
- }
142
- get size() {
143
- return this._size;
144
- }
145
- constructor(origin, size) {
146
- super();
147
- this._origin = origin;
148
- this._size = size;
149
- }
150
- }
151
- __decorate([
152
- nameForSerialization('origin')
153
- ], RectWithUnit.prototype, "_origin", void 0);
154
- __decorate([
155
- nameForSerialization('size')
156
- ], RectWithUnit.prototype, "_size", void 0);
157
- export class SizeWithUnit extends DefaultSerializeable {
158
- get width() {
159
- return this._width;
160
- }
161
- get height() {
162
- return this._height;
163
- }
164
- constructor(width, height) {
165
- super();
166
- this._width = width;
167
- this._height = height;
168
- }
169
- }
170
- __decorate([
171
- nameForSerialization('width')
172
- ], SizeWithUnit.prototype, "_width", void 0);
173
- __decorate([
174
- nameForSerialization('height')
175
- ], SizeWithUnit.prototype, "_height", void 0);
176
- export class Size extends DefaultSerializeable {
177
- get width() {
178
- return this._width;
179
- }
180
- get height() {
181
- return this._height;
182
- }
183
- static fromJSON(json) {
184
- return new Size(json.width, json.height);
185
- }
186
- constructor(width, height) {
187
- super();
188
- this._width = width;
189
- this._height = height;
190
- }
191
- }
192
- __decorate([
193
- nameForSerialization('width')
194
- ], Size.prototype, "_width", void 0);
195
- __decorate([
196
- nameForSerialization('height')
197
- ], Size.prototype, "_height", void 0);
198
- export class SizeWithAspect {
199
- get size() {
200
- return this._size;
201
- }
202
- get aspect() {
203
- return this._aspect;
204
- }
205
- constructor(size, aspect) {
206
- this._size = size;
207
- this._aspect = aspect;
208
- }
209
- }
210
- __decorate([
211
- nameForSerialization('size')
212
- ], SizeWithAspect.prototype, "_size", void 0);
213
- __decorate([
214
- nameForSerialization('aspect')
215
- ], SizeWithAspect.prototype, "_aspect", void 0);
216
- export var SizingMode;
217
- (function (SizingMode) {
218
- SizingMode["WidthAndHeight"] = "widthAndHeight";
219
- SizingMode["WidthAndAspectRatio"] = "widthAndAspectRatio";
220
- SizingMode["HeightAndAspectRatio"] = "heightAndAspectRatio";
221
- SizingMode["ShorterDimensionAndAspectRatio"] = "shorterDimensionAndAspectRatio";
222
- })(SizingMode || (SizingMode = {}));
223
- export class SizeWithUnitAndAspect {
224
- constructor() {
225
- this._shorterDimensionAndAspectRatio = null;
226
- }
227
- get widthAndHeight() {
228
- return this._widthAndHeight;
229
- }
230
- get widthAndAspectRatio() {
231
- return this._widthAndAspectRatio;
232
- }
233
- get heightAndAspectRatio() {
234
- return this._heightAndAspectRatio;
235
- }
236
- get shorterDimensionAndAspectRatio() {
237
- return this._shorterDimensionAndAspectRatio;
238
- }
239
- get sizingMode() {
240
- if (this.widthAndAspectRatio) {
241
- return SizingMode.WidthAndAspectRatio;
242
- }
243
- if (this.heightAndAspectRatio) {
244
- return SizingMode.HeightAndAspectRatio;
245
- }
246
- if (this.shorterDimensionAndAspectRatio) {
247
- return SizingMode.ShorterDimensionAndAspectRatio;
248
- }
249
- return SizingMode.WidthAndHeight;
250
- }
251
- static sizeWithWidthAndHeight(widthAndHeight) {
252
- const sizeWithUnitAndAspect = new SizeWithUnitAndAspect();
253
- sizeWithUnitAndAspect._widthAndHeight = widthAndHeight;
254
- return sizeWithUnitAndAspect;
255
- }
256
- static sizeWithWidthAndAspectRatio(width, aspectRatio) {
257
- const sizeWithUnitAndAspect = new SizeWithUnitAndAspect();
258
- sizeWithUnitAndAspect._widthAndAspectRatio = new SizeWithAspect(width, aspectRatio);
259
- return sizeWithUnitAndAspect;
260
- }
261
- static sizeWithHeightAndAspectRatio(height, aspectRatio) {
262
- const sizeWithUnitAndAspect = new SizeWithUnitAndAspect();
263
- sizeWithUnitAndAspect._heightAndAspectRatio = new SizeWithAspect(height, aspectRatio);
264
- return sizeWithUnitAndAspect;
265
- }
266
- static sizeWithShorterDimensionAndAspectRatio(shorterDimension, aspectRatio) {
267
- const sizeWithUnitAndAspect = new SizeWithUnitAndAspect();
268
- sizeWithUnitAndAspect._shorterDimensionAndAspectRatio = new SizeWithAspect(shorterDimension, aspectRatio);
269
- return sizeWithUnitAndAspect;
270
- }
271
- static fromJSON(json) {
272
- if (json.width && json.height) {
273
- return this.sizeWithWidthAndHeight(new SizeWithUnit(NumberWithUnit.fromJSON(json.width), NumberWithUnit.fromJSON(json.height)));
274
- }
275
- else if (json.width && json.aspect) {
276
- return this.sizeWithWidthAndAspectRatio(NumberWithUnit.fromJSON(json.width), json.aspect);
277
- }
278
- else if (json.height && json.aspect) {
279
- return this.sizeWithHeightAndAspectRatio(NumberWithUnit.fromJSON(json.height), json.aspect);
280
- }
281
- else if (json.shorterDimension && json.aspect) {
282
- return this.sizeWithShorterDimensionAndAspectRatio(NumberWithUnit.fromJSON(json.shorterDimension), json.aspect);
283
- }
284
- else {
285
- throw new Error(`SizeWithUnitAndAspectJSON is malformed: ${JSON.stringify(json)}`);
286
- }
287
- }
288
- // no member access so our coverage check doesn't pick it up
289
- // TODO: https://jira.scandit.com/browse/SDC-1773
290
- // tslint:disable-next-line:member-access
291
- toJSON() {
292
- switch (this.sizingMode) {
293
- case SizingMode.WidthAndAspectRatio:
294
- return {
295
- width: this.widthAndAspectRatio.size.toJSON(),
296
- aspect: this.widthAndAspectRatio.aspect,
297
- };
298
- case SizingMode.HeightAndAspectRatio:
299
- return {
300
- height: this.heightAndAspectRatio.size.toJSON(),
301
- aspect: this.heightAndAspectRatio.aspect,
302
- };
303
- case SizingMode.ShorterDimensionAndAspectRatio:
304
- return {
305
- shorterDimension: this.shorterDimensionAndAspectRatio.size.toJSON(),
306
- aspect: this.shorterDimensionAndAspectRatio.aspect,
307
- };
308
- default:
309
- return {
310
- width: this.widthAndHeight.width.toJSON(),
311
- height: this.widthAndHeight.height.toJSON(),
312
- };
313
- }
314
- }
315
- }
316
- __decorate([
317
- nameForSerialization('widthAndHeight')
318
- ], SizeWithUnitAndAspect.prototype, "_widthAndHeight", void 0);
319
- __decorate([
320
- nameForSerialization('widthAndAspectRatio')
321
- ], SizeWithUnitAndAspect.prototype, "_widthAndAspectRatio", void 0);
322
- __decorate([
323
- nameForSerialization('heightAndAspectRatio')
324
- ], SizeWithUnitAndAspect.prototype, "_heightAndAspectRatio", void 0);
325
- __decorate([
326
- nameForSerialization('shorterDimensionAndAspectRatio')
327
- ], SizeWithUnitAndAspect.prototype, "_shorterDimensionAndAspectRatio", void 0);
328
- export class MarginsWithUnit extends DefaultSerializeable {
329
- get left() {
330
- return this._left;
331
- }
332
- get right() {
333
- return this._right;
334
- }
335
- get top() {
336
- return this._top;
337
- }
338
- get bottom() {
339
- return this._bottom;
340
- }
341
- static fromJSON(json) {
342
- return new MarginsWithUnit(NumberWithUnit.fromJSON(json.left), NumberWithUnit.fromJSON(json.right), NumberWithUnit.fromJSON(json.top), NumberWithUnit.fromJSON(json.bottom));
343
- }
344
- static get zero() {
345
- return new MarginsWithUnit(new NumberWithUnit(0, MeasureUnit.Pixel), new NumberWithUnit(0, MeasureUnit.Pixel), new NumberWithUnit(0, MeasureUnit.Pixel), new NumberWithUnit(0, MeasureUnit.Pixel));
346
- }
347
- constructor(left, right, top, bottom) {
348
- super();
349
- this._left = left;
350
- this._right = right;
351
- this._top = top;
352
- this._bottom = bottom;
353
- }
354
- }
355
- __decorate([
356
- nameForSerialization('left')
357
- ], MarginsWithUnit.prototype, "_left", void 0);
358
- __decorate([
359
- nameForSerialization('right')
360
- ], MarginsWithUnit.prototype, "_right", void 0);
361
- __decorate([
362
- nameForSerialization('top')
363
- ], MarginsWithUnit.prototype, "_top", void 0);
364
- __decorate([
365
- nameForSerialization('bottom')
366
- ], MarginsWithUnit.prototype, "_bottom", void 0);
367
- export class Color {
368
- get redComponent() {
369
- return this.hexadecimalString.slice(0, 2);
370
- }
371
- get greenComponent() {
372
- return this.hexadecimalString.slice(2, 4);
373
- }
374
- get blueComponent() {
375
- return this.hexadecimalString.slice(4, 6);
376
- }
377
- get alphaComponent() {
378
- return this.hexadecimalString.slice(6, 8);
379
- }
380
- get red() {
381
- return Color.hexToNumber(this.redComponent);
382
- }
383
- get green() {
384
- return Color.hexToNumber(this.greenComponent);
385
- }
386
- get blue() {
387
- return Color.hexToNumber(this.blueComponent);
388
- }
389
- get alpha() {
390
- return Color.hexToNumber(this.alphaComponent);
391
- }
392
- static fromHex(hex) {
393
- return new Color(Color.normalizeHex(hex));
394
- }
395
- static fromRGBA(red, green, blue, alpha = 1) {
396
- const hexString = [red, green, blue, this.normalizeAlpha(alpha)]
397
- .reduce((hex, colorComponent) => hex + this.numberToHex(colorComponent), '');
398
- return new Color(hexString);
399
- }
400
- static hexToNumber(hex) {
401
- return parseInt(hex, 16);
402
- }
403
- static fromJSON(json) {
404
- return Color.fromHex(json);
405
- }
406
- static numberToHex(x) {
407
- x = Math.round(x);
408
- let hex = x.toString(16);
409
- if (hex.length === 1) {
410
- hex = '0' + hex;
411
- }
412
- return hex.toUpperCase();
413
- }
414
- static normalizeHex(hex) {
415
- // remove leading #
416
- if (hex[0] === '#') {
417
- hex = hex.slice(1);
418
- }
419
- // double digits if single digit
420
- if (hex.length < 6) {
421
- hex = hex.split('').map(s => s + s).join('');
422
- }
423
- // add alpha if missing
424
- if (hex.length === 6) {
425
- hex = hex + 'FF';
426
- }
427
- return hex.toUpperCase();
428
- }
429
- static normalizeAlpha(alpha) {
430
- if (alpha > 0 && alpha <= 1) {
431
- return 255 * alpha;
432
- }
433
- return alpha;
434
- }
435
- constructor(hex) {
436
- this.hexadecimalString = hex;
437
- }
438
- withAlpha(alpha) {
439
- const newHex = this.hexadecimalString.slice(0, 6) + Color.numberToHex(Color.normalizeAlpha(alpha));
440
- return Color.fromHex(newHex);
441
- }
442
- // no member access so our coverage check doesn't pick it up
443
- // TODO: https://jira.scandit.com/browse/SDC-1773
444
- // tslint:disable-next-line:member-access
445
- toJSON() {
446
- return this.hexadecimalString;
447
- }
448
- }
449
- export var Orientation;
450
- (function (Orientation) {
451
- Orientation["Unknown"] = "unknown";
452
- Orientation["Portrait"] = "portrait";
453
- Orientation["PortraitUpsideDown"] = "portraitUpsideDown";
454
- Orientation["LandscapeRight"] = "landscapeRight";
455
- Orientation["LandscapeLeft"] = "landscapeLeft";
456
- })(Orientation || (Orientation = {}));
457
- export var Direction;
458
- (function (Direction) {
459
- Direction["None"] = "none";
460
- Direction["Horizontal"] = "horizontal";
461
- Direction["LeftToRight"] = "leftToRight";
462
- Direction["RightToLeft"] = "rightToLeft";
463
- Direction["Vertical"] = "vertical";
464
- Direction["TopToBottom"] = "topToBottom";
465
- Direction["BottomToTop"] = "bottomToTop";
466
- })(Direction || (Direction = {}));
467
- //# sourceMappingURL=Common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Common.js","sourceRoot":"","sources":["../../../../../../scandit-capacitor-datacapture-core/src/ts/Common.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAsC,MAAM,iBAAiB,CAAC;AAQjH,MAAM,OAAO,KAAM,SAAQ,oBAAoB;IAM7C,IAAW,CAAC;QACV,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAED,IAAW,CAAC;QACV,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAEO,MAAM,CAAC,QAAQ,CAAC,IAAe;QACrC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC;IAED,YAAmB,CAAS,EAAE,CAAS;QACrC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;QACZ,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IACd,CAAC;CACF;AArBC;IADC,oBAAoB,CAAC,GAAG,CAAC;iCACP;AAEnB;IADC,oBAAoB,CAAC,GAAG,CAAC;iCACP;AAgCrB,MAAM,OAAO,aAAc,SAAQ,oBAAoB;IAUrD,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC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C;IAEM,SAAS,CAAC,KAAa;QAC5B,MAAM,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;QACnG,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;IAED,4DAA4D;IAC5D,iDAAiD;IACjD,yCAAyC;IACzC,MAAM;QACJ,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;CACF;AAED,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;IACrB,wDAAyC,CAAA;IACzC,gDAAiC,CAAA;IACjC,8CAA+B,CAAA;AACjC,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AAED,MAAM,CAAN,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,sCAAyB,CAAA;IACzB,wCAA2B,CAAA;IAC3B,wCAA2B,CAAA;IAC3B,kCAAqB,CAAA;IACrB,wCAA2B,CAAA;IAC3B,wCAA2B,CAAA;AAC7B,CAAC,EARW,SAAS,KAAT,SAAS,QAQpB"}
@@ -1,19 +0,0 @@
1
- export class ContextStatus {
2
- static fromJSON(json) {
3
- const status = new ContextStatus();
4
- status._code = json.code;
5
- status._message = json.message;
6
- status._isValid = json.isValid;
7
- return status;
8
- }
9
- get message() {
10
- return this._message;
11
- }
12
- get code() {
13
- return this._code;
14
- }
15
- get isValid() {
16
- return this._isValid;
17
- }
18
- }
19
- //# sourceMappingURL=DataCaptureContext+Related.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataCaptureContext+Related.js","sourceRoot":"","sources":["../../../../../../scandit-capacitor-datacapture-core/src/ts/DataCaptureContext+Related.ts"],"names":[],"mappings":"AAgCA,MAAM,OAAO,aAAa;IAKhB,MAAM,CAAC,QAAQ,CAAC,IAAuB;QAC7C,MAAM,MAAM,GAAG,IAAI,aAAa,EAAE,CAAC;QACnC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC;QACzB,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC;QAC/B,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC;QAC/B,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF"}
@@ -1,136 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { Capacitor } from './Capacitor/Capacitor';
8
- import { DataCaptureContextProxy } from './Capacitor/DataCaptureContextProxy';
9
- import { DefaultSerializeable, ignoreFromSerialization, nameForSerialization } from './Serializeable';
10
- export class DataCaptureContextSettings extends DefaultSerializeable {
11
- constructor() {
12
- super();
13
- }
14
- setProperty(name, value) {
15
- this[name] = value;
16
- }
17
- getProperty(name) {
18
- return this[name];
19
- }
20
- }
21
- export class DataCaptureContext extends DefaultSerializeable {
22
- get frameSource() {
23
- return this._frameSource;
24
- }
25
- static get deviceID() {
26
- return Capacitor.defaults.deviceID;
27
- }
28
- static forLicenseKey(licenseKey) {
29
- return DataCaptureContext.forLicenseKeyWithOptions(licenseKey, null);
30
- }
31
- static forLicenseKeyWithSettings(licenseKey, settings) {
32
- const context = this.forLicenseKey(licenseKey);
33
- if (settings !== null) {
34
- context.applySettings(settings);
35
- }
36
- return context;
37
- }
38
- static forLicenseKeyWithOptions(licenseKey, options) {
39
- if (options == null) {
40
- options = { deviceName: null };
41
- }
42
- return new DataCaptureContext(licenseKey, options.deviceName || '');
43
- }
44
- constructor(licenseKey, deviceName) {
45
- super();
46
- this.licenseKey = licenseKey;
47
- this.deviceName = deviceName;
48
- this.framework = 'capacitor';
49
- this.frameworkVersion = (() => Capacitor.defaults.capacitorVersion)();
50
- this.settings = new DataCaptureContextSettings();
51
- this._frameSource = null;
52
- this.view = null;
53
- this.modes = [];
54
- this.components = [];
55
- this.listeners = [];
56
- }
57
- setFrameSource(frameSource) {
58
- this._frameSource = frameSource;
59
- if (frameSource) {
60
- frameSource.context = this;
61
- }
62
- return this.update();
63
- }
64
- addListener(listener) {
65
- if (this.listeners.includes(listener)) {
66
- return;
67
- }
68
- this.listeners.push(listener);
69
- }
70
- removeListener(listener) {
71
- if (!this.listeners.includes(listener)) {
72
- return;
73
- }
74
- this.listeners.splice(this.listeners.indexOf(listener), 1);
75
- }
76
- addMode(mode) {
77
- if (!this.modes.includes(mode)) {
78
- this.modes.push(mode);
79
- mode._context = this;
80
- this.update();
81
- }
82
- }
83
- removeMode(mode) {
84
- if (this.modes.includes(mode)) {
85
- this.modes.splice(this.modes.indexOf(mode), 1);
86
- mode._context = null;
87
- this.update();
88
- }
89
- }
90
- removeAllModes() {
91
- this.modes = [];
92
- this.update();
93
- }
94
- dispose() {
95
- if (!this.proxy) {
96
- return;
97
- }
98
- this.proxy.dispose();
99
- }
100
- applySettings(settings) {
101
- this.settings = settings;
102
- return this.update();
103
- }
104
- initialize() {
105
- if (this.proxy) {
106
- return;
107
- }
108
- this.proxy = DataCaptureContextProxy.forDataCaptureContext(this);
109
- }
110
- update() {
111
- if (!this.proxy) {
112
- return Promise.resolve();
113
- }
114
- return this.proxy.updateContextFromJSON();
115
- }
116
- addComponent(component) {
117
- if (!this.components.includes(component)) {
118
- this.components.push(component);
119
- component._context = this;
120
- return this.update();
121
- }
122
- else {
123
- return Promise.resolve();
124
- }
125
- }
126
- }
127
- __decorate([
128
- nameForSerialization('frameSource')
129
- ], DataCaptureContext.prototype, "_frameSource", void 0);
130
- __decorate([
131
- ignoreFromSerialization
132
- ], DataCaptureContext.prototype, "proxy", void 0);
133
- __decorate([
134
- ignoreFromSerialization
135
- ], DataCaptureContext.prototype, "listeners", void 0);
136
- //# sourceMappingURL=DataCaptureContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataCaptureContext.js","sourceRoot":"","sources":["../../../../../../scandit-capacitor-datacapture-core/src/ts/DataCaptureContext.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAG9E,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,oBAAoB,EAAiB,MAAM,iBAAiB,CAAC;AAgCrH,MAAM,OAAO,0BAA2B,SAAQ,oBAAoB;IAClE;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAEM,WAAW,CAAC,IAAY,EAAE,KAAU;QACxC,IAAY,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;IAC9B,CAAC;IAEM,WAAW,CAAC,IAAY;QAC7B,OAAQ,IAAY,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACF;AAED,MAAM,OAAO,kBAAmB,SAAQ,oBAAoB;IAsB1D,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAEM,MAAM,KAAK,QAAQ;QACxB,OAAO,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC;IACrC,CAAC;IAEM,MAAM,CAAC,aAAa,CAAC,UAAkB;QAC5C,OAAO,kBAAkB,CAAC,wBAAwB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