scandit-datacapture-frameworks-label 8.0.0 → 8.1.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/dist/dts/index.d.ts +2 -0
- package/dist/dts/labelcapture/LabelCapture.d.ts +6 -6
- package/dist/dts/labelcapture/LabelCaptureFeedback.d.ts +1 -1
- package/dist/dts/labelcapture/LabelDateResult.d.ts +1 -1
- package/dist/dts/labelcapture/LabelDefinition.d.ts +1 -1
- package/dist/dts/labelcapture/LabelField.d.ts +1 -1
- package/dist/dts/labelcapture/controller/LabelCaptureAdvancedOverlayController.d.ts +10 -14
- package/dist/dts/labelcapture/controller/LabelCaptureBasicOverlayController.d.ts +6 -10
- package/dist/dts/labelcapture/controller/LabelCaptureController.d.ts +6 -10
- package/dist/dts/labelcapture/controller/LabelCaptureValidationFlowOverlayController.d.ts +6 -10
- package/dist/dts/labelcapture/private/PrivateLabelField.d.ts +2 -2
- package/dist/dts/labelcapture/view/LabelCaptureValidationFlowOverlay.d.ts +1 -1
- package/dist/dts/proxy-registration.d.ts +2 -0
- package/dist/dts/proxy-types.d.ts +5 -0
- package/dist/index.js +240 -202
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
package/dist/dts/index.d.ts
CHANGED
|
@@ -3,22 +3,22 @@ import { LabelCaptureListener } from './LabelCaptureListener';
|
|
|
3
3
|
import { LabelCaptureSettings } from './LabelCaptureSettings';
|
|
4
4
|
import { LabelCaptureFeedback } from './LabelCaptureFeedback';
|
|
5
5
|
export declare class LabelCapture extends DefaultSerializeable implements DataCaptureMode {
|
|
6
|
+
protected listeners: LabelCaptureListener[];
|
|
6
7
|
private type;
|
|
7
8
|
private modeId;
|
|
8
9
|
private parentId;
|
|
9
|
-
get isEnabled(): boolean;
|
|
10
|
-
set isEnabled(isEnabled: boolean);
|
|
11
|
-
get context(): DataCaptureContext | null;
|
|
12
|
-
static createRecommendedCameraSettings(): CameraSettings;
|
|
13
10
|
private _isEnabled;
|
|
14
11
|
private settings;
|
|
15
12
|
private _feedback;
|
|
16
13
|
private hasListeners;
|
|
17
14
|
private privateContext;
|
|
15
|
+
private controller;
|
|
16
|
+
static createRecommendedCameraSettings(): CameraSettings;
|
|
17
|
+
get isEnabled(): boolean;
|
|
18
|
+
set isEnabled(isEnabled: boolean);
|
|
19
|
+
get context(): DataCaptureContext | null;
|
|
18
20
|
private get _context();
|
|
19
21
|
private set _context(value);
|
|
20
|
-
private listeners;
|
|
21
|
-
private controller;
|
|
22
22
|
constructor(settings: LabelCaptureSettings);
|
|
23
23
|
applySettings(settings: LabelCaptureSettings): Promise<void>;
|
|
24
24
|
addListener(listener: LabelCaptureListener): void;
|
|
@@ -7,8 +7,8 @@ export declare class LabelCaptureFeedback extends DefaultSerializeable {
|
|
|
7
7
|
get success(): Feedback;
|
|
8
8
|
set success(success: Feedback);
|
|
9
9
|
private controller;
|
|
10
|
-
private updateFeedback;
|
|
11
10
|
constructor();
|
|
11
|
+
private updateFeedback;
|
|
12
12
|
}
|
|
13
13
|
export interface PrivateLabelCaptureFeedback {
|
|
14
14
|
controller: LabelCaptureController | null;
|
|
@@ -6,6 +6,7 @@ export declare class LabelDateResult extends DefaultSerializeable {
|
|
|
6
6
|
private _dayString;
|
|
7
7
|
private _monthString;
|
|
8
8
|
private _yearString;
|
|
9
|
+
private static fromJSON;
|
|
9
10
|
private constructor();
|
|
10
11
|
get day(): number | null;
|
|
11
12
|
get month(): number | null;
|
|
@@ -13,5 +14,4 @@ export declare class LabelDateResult extends DefaultSerializeable {
|
|
|
13
14
|
get dayString(): string;
|
|
14
15
|
get monthString(): string;
|
|
15
16
|
get yearString(): string;
|
|
16
|
-
private static fromJSON;
|
|
17
17
|
}
|
|
@@ -14,9 +14,9 @@ export declare class LabelDefinition extends DefaultSerializeable {
|
|
|
14
14
|
set hiddenProperties(newValue: {
|
|
15
15
|
[key: string]: object;
|
|
16
16
|
});
|
|
17
|
-
private static fromJSON;
|
|
18
17
|
static createVinLabelDefinition(name: string): LabelDefinition;
|
|
19
18
|
static createPriceCaptureDefinition(name: string): LabelDefinition;
|
|
20
19
|
static createSevenSegmentDisplayLabelDefinition(name: string): LabelDefinition;
|
|
20
|
+
private static fromJSON;
|
|
21
21
|
constructor(name: string);
|
|
22
22
|
}
|
|
@@ -12,6 +12,7 @@ export declare class LabelField {
|
|
|
12
12
|
private _barcode;
|
|
13
13
|
private _text;
|
|
14
14
|
private _dateResult;
|
|
15
|
+
private static fromJSON;
|
|
15
16
|
get name(): string;
|
|
16
17
|
get type(): LabelFieldType;
|
|
17
18
|
get predictedLocation(): Quadrilateral;
|
|
@@ -20,5 +21,4 @@ export declare class LabelField {
|
|
|
20
21
|
get barcode(): Barcode | null;
|
|
21
22
|
get text(): string | null;
|
|
22
23
|
asDate(): LabelDateResult | null;
|
|
23
|
-
private static fromJSON;
|
|
24
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PointWithUnit, Anchor, BaseController,
|
|
1
|
+
import { PointWithUnit, Anchor, BaseController, BaseProxy } from 'scandit-datacapture-frameworks-core';
|
|
2
2
|
import { LabelCaptureAdvancedOverlayView } from '../view/LabelCaptureAdvancedOverlayView';
|
|
3
3
|
import { LabelCaptureAdvancedOverlay } from '../view/LabelCaptureAdvancedOverlay';
|
|
4
4
|
import { CapturedLabel } from '../CapturedLabel';
|
|
@@ -11,7 +11,7 @@ export declare enum LabelCaptureAdvancedOverlayListenerEvents {
|
|
|
11
11
|
anchorForCapturedLabelField = "LabelCaptureAdvancedOverlayListener.anchorForFieldOfLabel",
|
|
12
12
|
offsetForCapturedLabelField = "LabelCaptureAdvancedOverlayListener.offsetForFieldOfLabel"
|
|
13
13
|
}
|
|
14
|
-
export interface LabelCaptureAdvancedOverlayProxy {
|
|
14
|
+
export interface LabelCaptureAdvancedOverlayProxy extends BaseProxy {
|
|
15
15
|
$setViewForCapturedLabel({ dataCaptureViewId, jsonView, trackingId }: {
|
|
16
16
|
dataCaptureViewId: number;
|
|
17
17
|
jsonView: string | null;
|
|
@@ -55,35 +55,31 @@ export interface LabelCaptureAdvancedOverlayProxy {
|
|
|
55
55
|
dataCaptureViewId: number;
|
|
56
56
|
advancedOverlayJson: string;
|
|
57
57
|
}): Promise<void>;
|
|
58
|
-
subscribeForEvents(events: string[]): void;
|
|
59
|
-
unsubscribeFromEvents(events: string[]): void;
|
|
60
|
-
dispose(): void;
|
|
61
|
-
eventEmitter: EventEmitter;
|
|
62
58
|
}
|
|
63
59
|
export declare class LabelCaptureAdvancedOverlayController extends BaseController<LabelCaptureAdvancedOverlayProxy> {
|
|
64
60
|
private overlay;
|
|
65
61
|
constructor(overlay: LabelCaptureAdvancedOverlay);
|
|
66
|
-
private initialize;
|
|
67
62
|
setViewForCapturedLabel(label: CapturedLabel, view: LabelCaptureAdvancedOverlayView | null | Promise<LabelCaptureAdvancedOverlayView>): Promise<void>;
|
|
68
63
|
setAnchorForCapturedLabel(label: CapturedLabel, anchor: Anchor): Promise<void>;
|
|
69
64
|
setOffsetForCapturedLabel(label: CapturedLabel, offset: PointWithUnit): Promise<void>;
|
|
70
65
|
setViewForCapturedLabelField(label: CapturedLabel, field: LabelField, view: LabelCaptureAdvancedOverlayView | null): Promise<void>;
|
|
71
|
-
private setViewForCapturedLabelFieldPrivate;
|
|
72
66
|
setAnchorForCapturedLabelField(label: CapturedLabel, field: LabelField, anchor: Anchor): Promise<void>;
|
|
73
|
-
private setAnchorForCapturedLabelFieldPrivate;
|
|
74
67
|
setOffsetForCapturedLabelField(label: CapturedLabel, field: LabelField, offset: PointWithUnit): Promise<void>;
|
|
75
|
-
private setOffsetForCapturedLabelFieldPrivate;
|
|
76
68
|
clearCapturedLabelViews(): Promise<void>;
|
|
77
|
-
subscribeListener(): void
|
|
69
|
+
subscribeListener(): Promise<void>;
|
|
70
|
+
unsubscribeListener(): Promise<void>;
|
|
71
|
+
dispose(): void;
|
|
72
|
+
updateAdvancedOverlay(advancedOverlayJson: string): Promise<void>;
|
|
73
|
+
private initialize;
|
|
74
|
+
private setViewForCapturedLabelFieldPrivate;
|
|
75
|
+
private setAnchorForCapturedLabelFieldPrivate;
|
|
76
|
+
private setOffsetForCapturedLabelFieldPrivate;
|
|
78
77
|
private handleViewForLabel;
|
|
79
78
|
private handleAnchorForLabel;
|
|
80
79
|
private handleViewForCapturedLabelField;
|
|
81
80
|
private handleOffsetForLabel;
|
|
82
81
|
private handleAnchorForCapturedLabelField;
|
|
83
82
|
private handleOffsetForCapturedLabelField;
|
|
84
|
-
unsubscribeListener(): void;
|
|
85
|
-
dispose(): void;
|
|
86
|
-
updateAdvancedOverlay(advancedOverlayJson: string): Promise<void>;
|
|
87
83
|
private get dataCaptureViewId();
|
|
88
84
|
private handleViewForLabelWrapper;
|
|
89
85
|
private handleAnchorForLabelWrapper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseController,
|
|
1
|
+
import { BaseController, BaseProxy, Brush } from 'scandit-datacapture-frameworks-core';
|
|
2
2
|
import { LabelCaptureBasicOverlay } from '../view/LabelCaptureBasicOverlay';
|
|
3
3
|
import { LabelField } from '../LabelField';
|
|
4
4
|
import { CapturedLabel } from '../CapturedLabel';
|
|
@@ -7,7 +7,7 @@ export declare enum LabelCaptureBasicOverlayListenerEvents {
|
|
|
7
7
|
brushForLabel = "LabelCaptureBasicOverlayListener.brushForLabel",
|
|
8
8
|
didTapLabel = "LabelCaptureBasicOverlayListener.didTapLabel"
|
|
9
9
|
}
|
|
10
|
-
export interface LabelCaptureBasicOverlayProxy {
|
|
10
|
+
export interface LabelCaptureBasicOverlayProxy extends BaseProxy {
|
|
11
11
|
$setBrushForFieldOfLabel({ dataCaptureViewId, brushJson, fieldName, trackingId }: {
|
|
12
12
|
dataCaptureViewId: number;
|
|
13
13
|
brushJson: string | null;
|
|
@@ -29,24 +29,20 @@ export interface LabelCaptureBasicOverlayProxy {
|
|
|
29
29
|
dataCaptureViewId: number;
|
|
30
30
|
basicOverlayJson: string;
|
|
31
31
|
}): Promise<void>;
|
|
32
|
-
subscribeForEvents(events: string[]): void;
|
|
33
|
-
unsubscribeFromEvents(events: string[]): void;
|
|
34
|
-
dispose(): void;
|
|
35
|
-
eventEmitter: EventEmitter;
|
|
36
32
|
}
|
|
37
33
|
export declare class LabelCaptureBasicOverlayController extends BaseController<LabelCaptureBasicOverlayProxy> {
|
|
38
34
|
private overlay;
|
|
39
35
|
constructor(overlay: LabelCaptureBasicOverlay);
|
|
40
|
-
private initialize;
|
|
41
36
|
setBrushForFieldOfLabel(brush: Brush | null, field: LabelField, label: CapturedLabel): Promise<void>;
|
|
42
37
|
setBrushForLabel(brush: Brush | null, label: CapturedLabel): Promise<void>;
|
|
43
38
|
subscribeListener(): Promise<void>;
|
|
44
|
-
private handleBrushForFieldOfLabel;
|
|
45
|
-
private handleBrushForLabel;
|
|
46
|
-
private handleDidTapLabel;
|
|
47
39
|
unsubscribeListener(): Promise<void>;
|
|
48
40
|
updateBasicOverlay(basicOverlayJson: string): Promise<void>;
|
|
49
41
|
dispose(): void;
|
|
42
|
+
private initialize;
|
|
43
|
+
private handleBrushForFieldOfLabel;
|
|
44
|
+
private handleBrushForLabel;
|
|
45
|
+
private handleDidTapLabel;
|
|
50
46
|
private get dataCaptureViewId();
|
|
51
47
|
private handleBrushForFieldOfLabelWrapper;
|
|
52
48
|
private handleBrushForLabelWrapper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseController, BaseProxy } from "scandit-datacapture-frameworks-core";
|
|
2
2
|
import { LabelCapture } from "../LabelCapture";
|
|
3
3
|
import { LabelCaptureFeedback } from "../LabelCaptureFeedback";
|
|
4
4
|
export declare enum LabelCaptureListenerEvents {
|
|
@@ -8,7 +8,7 @@ export interface LabelCaptureSessionEventPayload {
|
|
|
8
8
|
session: string;
|
|
9
9
|
isBarcodeArFull: boolean | null;
|
|
10
10
|
}
|
|
11
|
-
export interface LabelCaptureProxy {
|
|
11
|
+
export interface LabelCaptureProxy extends BaseProxy {
|
|
12
12
|
$setModeEnabledState({ modeId, isEnabled }: {
|
|
13
13
|
modeId: number;
|
|
14
14
|
isEnabled: boolean;
|
|
@@ -31,23 +31,19 @@ export interface LabelCaptureProxy {
|
|
|
31
31
|
modeId: number;
|
|
32
32
|
feedbackJson: string;
|
|
33
33
|
}): Promise<void>;
|
|
34
|
-
subscribeForEvents(events: string[]): void;
|
|
35
|
-
unsubscribeFromEvents(events: string[]): void;
|
|
36
|
-
dispose(): void;
|
|
37
|
-
eventEmitter: EventEmitter;
|
|
38
34
|
}
|
|
39
|
-
export declare class LabelCaptureController extends
|
|
35
|
+
export declare class LabelCaptureController extends BaseController<LabelCaptureProxy> {
|
|
40
36
|
private mode;
|
|
41
37
|
private _boundHandleDidUpdateSession?;
|
|
42
38
|
constructor(mode: LabelCapture);
|
|
43
|
-
private initialize;
|
|
44
39
|
setModeEnabledState(isEnabled: boolean): Promise<void>;
|
|
45
40
|
updateLabelCaptureSettings(settingsJson: string): Promise<void>;
|
|
46
41
|
subscribeLabelCaptureListener(): Promise<void>;
|
|
47
|
-
private handleDidUpdateSessionEvent;
|
|
48
42
|
unsubscribeLabelCaptureListener(): Promise<void>;
|
|
49
|
-
updateFeedback(feedback: LabelCaptureFeedback): void
|
|
43
|
+
updateFeedback(feedback: LabelCaptureFeedback): Promise<void>;
|
|
50
44
|
dispose(): void;
|
|
45
|
+
private initialize;
|
|
46
|
+
private handleDidUpdateSessionEvent;
|
|
51
47
|
private get modeId();
|
|
52
48
|
private notifyListenersOfDidUpdateSession;
|
|
53
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseController,
|
|
1
|
+
import { BaseController, BaseProxy } from 'scandit-datacapture-frameworks-core';
|
|
2
2
|
import { LabelCaptureValidationFlowOverlay } from '../view/LabelCaptureValidationFlowOverlay';
|
|
3
3
|
import { LabelCapture } from '../LabelCapture';
|
|
4
4
|
export interface LabelCaptureValidationFlowListenerEventPayload {
|
|
@@ -7,7 +7,7 @@ export interface LabelCaptureValidationFlowListenerEventPayload {
|
|
|
7
7
|
export declare enum LabelCaptureValidationFlowListenerEvents {
|
|
8
8
|
didCaptureLabelWithFields = "LabelCaptureValidationFlowListener.didCaptureLabelWithFields"
|
|
9
9
|
}
|
|
10
|
-
export interface LabelCaptureValidationFlowOverlayProxy {
|
|
10
|
+
export interface LabelCaptureValidationFlowOverlayProxy extends BaseProxy {
|
|
11
11
|
$registerListenerForValidationFlowEvents({ dataCaptureViewId }: {
|
|
12
12
|
dataCaptureViewId: number;
|
|
13
13
|
}): Promise<void>;
|
|
@@ -18,23 +18,19 @@ export interface LabelCaptureValidationFlowOverlayProxy {
|
|
|
18
18
|
dataCaptureViewId: number;
|
|
19
19
|
overlayJson: string;
|
|
20
20
|
}): Promise<void>;
|
|
21
|
-
subscribeForEvents(events: string[]): void;
|
|
22
|
-
unsubscribeFromEvents(events: string[]): void;
|
|
23
|
-
dispose(): void;
|
|
24
|
-
eventEmitter: EventEmitter;
|
|
25
21
|
}
|
|
26
22
|
export declare class LabelCaptureValidationFlowOverlayController extends BaseController<LabelCaptureValidationFlowOverlayProxy> {
|
|
27
23
|
private overlay;
|
|
28
24
|
private isSubscribed;
|
|
29
25
|
constructor(overlay: LabelCaptureValidationFlowOverlay);
|
|
30
|
-
private initialize;
|
|
31
26
|
updateValidationFlowOverlay(): Promise<void>;
|
|
32
|
-
subscribeLabelCaptureValidationFlowListener(): void
|
|
33
|
-
unsubscribeLabelCaptureValidationFlowListener(): void
|
|
27
|
+
subscribeLabelCaptureValidationFlowListener(): Promise<void>;
|
|
28
|
+
unsubscribeLabelCaptureValidationFlowListener(): Promise<void>;
|
|
29
|
+
dispose(): void;
|
|
30
|
+
private initialize;
|
|
34
31
|
private handleDidCaptureLabelWithFieldsEvent;
|
|
35
32
|
private notifyListenersOfDidCaptureLabelWithFields;
|
|
36
33
|
private get dataCaptureViewId();
|
|
37
|
-
dispose(): void;
|
|
38
34
|
private handleDidCaptureLabelWithFieldsEventWrapper;
|
|
39
35
|
}
|
|
40
36
|
export interface PrivateLabelCaptureValidationFlowOverlay {
|
|
@@ -3,10 +3,10 @@ import { QuadrilateralJSON } from "scandit-datacapture-frameworks-core";
|
|
|
3
3
|
import { LabelDateResultJSON } from "./PrivateLabelCaptureSession";
|
|
4
4
|
import { LabelField } from "../LabelField";
|
|
5
5
|
export interface PrivateExpiryDateText {
|
|
6
|
-
_dataTypePatterns: string[];
|
|
6
|
+
_dataTypePatterns: string[] | null;
|
|
7
7
|
}
|
|
8
8
|
export interface PrivatePackingDateText {
|
|
9
|
-
_dataTypePatterns: string[];
|
|
9
|
+
_dataTypePatterns: string[] | null;
|
|
10
10
|
}
|
|
11
11
|
export interface LabelFieldJSON {
|
|
12
12
|
name: string;
|
|
@@ -12,8 +12,8 @@ export declare class LabelCaptureValidationFlowOverlay extends DefaultSerializea
|
|
|
12
12
|
private modeId;
|
|
13
13
|
private get view();
|
|
14
14
|
private set view(value);
|
|
15
|
+
constructor(mode: LabelCapture);
|
|
15
16
|
get listener(): LabelCaptureValidationFlowListener | null;
|
|
16
17
|
set listener(listener: LabelCaptureValidationFlowListener | null);
|
|
17
18
|
applySettings(settings: LabelCaptureValidationFlowSettings): Promise<void>;
|
|
18
|
-
constructor(mode: LabelCapture);
|
|
19
19
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { NativeCallerProvider } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
export declare const LABEL_PROXY_TYPE_NAMES: readonly ["LabelCaptureProxy", "LabelCaptureBasicOverlayProxy", "LabelCaptureAdvancedOverlayProxy", "LabelCaptureValidationFlowOverlayProxy"];
|
|
3
|
+
export type LabelProxyType = typeof LABEL_PROXY_TYPE_NAMES[number];
|
|
4
|
+
export interface LabelNativeCallerProvider extends NativeCallerProvider<LabelProxyType> {
|
|
5
|
+
}
|