scandit-datacapture-frameworks-label 7.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dts/defaults/LabelCaptureDefaults.d.ts +13 -0
- package/dist/dts/defaults/index.d.ts +1 -0
- package/dist/dts/index.d.ts +2 -0
- package/dist/dts/labelcapture/BarcodeField.d.ts +8 -0
- package/dist/dts/labelcapture/CapturedLabel.d.ts +18 -0
- package/dist/dts/labelcapture/CustomBarcode.d.ts +15 -0
- package/dist/dts/labelcapture/CustomText.d.ts +10 -0
- package/dist/dts/labelcapture/ExpiryDateText.d.ts +11 -0
- package/dist/dts/labelcapture/ImeiOneBarcode.d.ts +10 -0
- package/dist/dts/labelcapture/ImeiTwoBarcode.d.ts +10 -0
- package/dist/dts/labelcapture/LabelCapture.d.ts +24 -0
- package/dist/dts/labelcapture/LabelCaptureContextFeatures.d.ts +7 -0
- package/dist/dts/labelcapture/LabelCaptureListener.d.ts +5 -0
- package/dist/dts/labelcapture/LabelCaptureSession.d.ts +8 -0
- package/dist/dts/labelcapture/LabelCaptureSettings.d.ts +15 -0
- package/dist/dts/labelcapture/LabelDateComponentFormat.d.ts +5 -0
- package/dist/dts/labelcapture/LabelDateFormat.d.ts +9 -0
- package/dist/dts/labelcapture/LabelDateResult.d.ts +17 -0
- package/dist/dts/labelcapture/LabelDefinition.d.ts +18 -0
- package/dist/dts/labelcapture/LabelField.d.ts +24 -0
- package/dist/dts/labelcapture/LabelFieldDefinition.d.ts +19 -0
- package/dist/dts/labelcapture/LabelFieldLocation.d.ts +17 -0
- package/dist/dts/labelcapture/LabelFieldLocationType.d.ts +12 -0
- package/dist/dts/labelcapture/LabelFieldState.d.ts +5 -0
- package/dist/dts/labelcapture/LabelFieldType.d.ts +5 -0
- package/dist/dts/labelcapture/PackingDateText.d.ts +11 -0
- package/dist/dts/labelcapture/PartNumberBarcode.d.ts +10 -0
- package/dist/dts/labelcapture/SerialNumberBarcode.d.ts +10 -0
- package/dist/dts/labelcapture/TextField.d.ts +3 -0
- package/dist/dts/labelcapture/TotalPriceText.d.ts +5 -0
- package/dist/dts/labelcapture/UnitPriceText.d.ts +5 -0
- package/dist/dts/labelcapture/WeightText.d.ts +5 -0
- package/dist/dts/labelcapture/controller/LabelCaptureAdvancedOverlayController.d.ts +76 -0
- package/dist/dts/labelcapture/controller/LabelCaptureBasicOverlayController.d.ts +42 -0
- package/dist/dts/labelcapture/controller/LabelCaptureController.d.ts +14 -0
- package/dist/dts/labelcapture/controller/LabelCaptureListenerController.d.ts +25 -0
- package/dist/dts/labelcapture/index.d.ts +36 -0
- package/dist/dts/labelcapture/private/PrivateLabelCapture.d.ts +7 -0
- package/dist/dts/labelcapture/private/PrivateLabelCaptureAdvancedOverlayView.d.ts +3 -0
- package/dist/dts/labelcapture/private/PrivateLabelCaptureContextFeatures.d.ts +5 -0
- package/dist/dts/labelcapture/private/PrivateLabelCaptureDateResult.d.ts +5 -0
- package/dist/dts/labelcapture/private/PrivateLabelCaptureSession.d.ts +34 -0
- package/dist/dts/labelcapture/private/PrivateLabelField.d.ts +24 -0
- package/dist/dts/labelcapture/view/LabelCaptureAdvancedOverlay.d.ts +27 -0
- package/dist/dts/labelcapture/view/LabelCaptureAdvancedOverlayListener.d.ts +13 -0
- package/dist/dts/labelcapture/view/LabelCaptureAdvancedOverlayView.d.ts +3 -0
- package/dist/dts/labelcapture/view/LabelCaptureBasicOverlay.d.ts +42 -0
- package/dist/index.js +1303 -0
- package/dist/index.js.map +1 -0
- package/package.json +22 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Brush, CameraSettings } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
export interface LabelCaptureDefaults {
|
|
3
|
+
LabelCapture: {
|
|
4
|
+
RecommendedCameraSettings: CameraSettings;
|
|
5
|
+
LabelCaptureBasicOverlay: {
|
|
6
|
+
DefaultPredictedFieldBrush: Brush;
|
|
7
|
+
DefaultCapturedFieldBrush: Brush;
|
|
8
|
+
DefaultLabelBrush: Brush;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare function loadLabelCaptureDefaults(jsonDefaults: any): void;
|
|
13
|
+
export declare function getLabelCaptureDefaults(): LabelCaptureDefaults;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { loadLabelCaptureDefaults, getLabelCaptureDefaults, LabelCaptureDefaults } from './LabelCaptureDefaults';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SymbologySettings } from 'scandit-datacapture-frameworks-barcode';
|
|
2
|
+
import { LabelFieldDefinition } from './LabelFieldDefinition';
|
|
3
|
+
export declare class BarcodeField extends LabelFieldDefinition {
|
|
4
|
+
private _symbologies;
|
|
5
|
+
private _symbologySettings;
|
|
6
|
+
get symbologySettings(): SymbologySettings[];
|
|
7
|
+
protected constructor(name: string, symbologies: SymbologySettings[]);
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Quadrilateral } from "scandit-datacapture-frameworks-core";
|
|
2
|
+
import { LabelField } from "./LabelField";
|
|
3
|
+
export declare class CapturedLabel {
|
|
4
|
+
private _fields;
|
|
5
|
+
private _name;
|
|
6
|
+
private _predictedBounds;
|
|
7
|
+
private _deltaTimeToPrediction;
|
|
8
|
+
private _trackingID;
|
|
9
|
+
private _isComplete;
|
|
10
|
+
get fields(): LabelField[];
|
|
11
|
+
get name(): string;
|
|
12
|
+
get isComplete(): boolean;
|
|
13
|
+
get predictedBounds(): Quadrilateral;
|
|
14
|
+
get deltaTimeToPrediction(): number;
|
|
15
|
+
get trackingID(): number;
|
|
16
|
+
private frameSequenceID;
|
|
17
|
+
private static fromJSON;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BarcodeField } from './BarcodeField';
|
|
2
|
+
import { LabelFieldLocation } from './LabelFieldLocation';
|
|
3
|
+
import { Symbology, SymbologySettings } from 'scandit-datacapture-frameworks-barcode';
|
|
4
|
+
export declare class CustomBarcode extends BarcodeField {
|
|
5
|
+
location: LabelFieldLocation | null;
|
|
6
|
+
private _dataTypePatterns;
|
|
7
|
+
private _fieldType;
|
|
8
|
+
static initWithNameAndSymbologySettings(name: string, symbologySettings: SymbologySettings[]): CustomBarcode;
|
|
9
|
+
static initWithNameAndSymbologies(name: string, symbologies: Symbology[]): CustomBarcode;
|
|
10
|
+
static initWithNameAndSymbology(name: string, symbology: Symbology): CustomBarcode;
|
|
11
|
+
private constructor();
|
|
12
|
+
get dataTypePatterns(): string[];
|
|
13
|
+
set dataTypePatterns(value: string[]);
|
|
14
|
+
private static get barcodeDefaults();
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LabelFieldLocation } from './LabelFieldLocation';
|
|
2
|
+
import { TextField } from './TextField';
|
|
3
|
+
export declare class CustomText extends TextField {
|
|
4
|
+
location: LabelFieldLocation | null;
|
|
5
|
+
private _dataTypePatterns;
|
|
6
|
+
private _fieldType;
|
|
7
|
+
constructor(name: string);
|
|
8
|
+
get dataTypePatterns(): string[];
|
|
9
|
+
set dataTypePatterns(value: string[]);
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TextField } from './TextField';
|
|
2
|
+
import { LabelDateFormat } from './LabelDateFormat';
|
|
3
|
+
export declare class ExpiryDateText extends TextField {
|
|
4
|
+
private _fieldType;
|
|
5
|
+
private _dataTypePatterns;
|
|
6
|
+
private _labelDateFormat;
|
|
7
|
+
constructor(name: string);
|
|
8
|
+
get labelDateFormat(): LabelDateFormat | null;
|
|
9
|
+
set labelDateFormat(value: LabelDateFormat | null);
|
|
10
|
+
get dataTypePatterns(): string[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Symbology, SymbologySettings } from 'scandit-datacapture-frameworks-barcode';
|
|
2
|
+
import { BarcodeField } from './BarcodeField';
|
|
3
|
+
export declare class ImeiOneBarcode extends BarcodeField {
|
|
4
|
+
private _fieldType;
|
|
5
|
+
static initWithNameAndSymbologySettings(name: string, symbologySettings: SymbologySettings[]): ImeiOneBarcode;
|
|
6
|
+
static initWithNameAndSymbologies(name: string, symbologies: Symbology[]): ImeiOneBarcode;
|
|
7
|
+
static initWithNameAndSymbology(name: string, symbology: Symbology): ImeiOneBarcode;
|
|
8
|
+
private static get barcodeDefaults();
|
|
9
|
+
private constructor();
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Symbology, SymbologySettings } from 'scandit-datacapture-frameworks-barcode';
|
|
2
|
+
import { BarcodeField } from './BarcodeField';
|
|
3
|
+
export declare class ImeiTwoBarcode extends BarcodeField {
|
|
4
|
+
private _fieldType;
|
|
5
|
+
static initWithNameAndSymbologySettings(name: string, symbologySettings: SymbologySettings[]): ImeiTwoBarcode;
|
|
6
|
+
static initWithNameAndSymbologies(name: string, symbologies: Symbology[]): ImeiTwoBarcode;
|
|
7
|
+
static initWithNameAndSymbology(name: string, symbology: Symbology): ImeiTwoBarcode;
|
|
8
|
+
private static get barcodeDefaults();
|
|
9
|
+
private constructor();
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DefaultSerializeable, CameraSettings, DataCaptureContext, DataCaptureMode } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
import { LabelCaptureListener } from './LabelCaptureListener';
|
|
3
|
+
import { LabelCaptureSettings } from './LabelCaptureSettings';
|
|
4
|
+
export declare class LabelCapture extends DefaultSerializeable implements DataCaptureMode {
|
|
5
|
+
get isEnabled(): boolean;
|
|
6
|
+
set isEnabled(isEnabled: boolean);
|
|
7
|
+
get context(): DataCaptureContext | null;
|
|
8
|
+
static get recommendedCameraSettings(): CameraSettings;
|
|
9
|
+
private type;
|
|
10
|
+
private _isEnabled;
|
|
11
|
+
private settings;
|
|
12
|
+
private privateContext;
|
|
13
|
+
private get _context();
|
|
14
|
+
private set _context(value);
|
|
15
|
+
private listeners;
|
|
16
|
+
private listenerController;
|
|
17
|
+
private isInListenerCallback;
|
|
18
|
+
private modeController;
|
|
19
|
+
static forContext(context: DataCaptureContext | null, settings: LabelCaptureSettings): LabelCapture;
|
|
20
|
+
private constructor();
|
|
21
|
+
applySettings(settings: LabelCaptureSettings): Promise<void>;
|
|
22
|
+
addListener(listener: LabelCaptureListener): void;
|
|
23
|
+
removeListener(listener: LabelCaptureListener): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DefaultSerializeable } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
import { LabelDefinition } from './LabelDefinition';
|
|
3
|
+
export declare class LabelCaptureSettings extends DefaultSerializeable {
|
|
4
|
+
private _definitions;
|
|
5
|
+
private properties;
|
|
6
|
+
static fromJSON(json: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}): LabelCaptureSettings | null;
|
|
9
|
+
static settingsFromLabelDefinitions(definitions: LabelDefinition[], properties: {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
} | null): LabelCaptureSettings;
|
|
12
|
+
private constructor();
|
|
13
|
+
setProperty(name: string, value: any): void;
|
|
14
|
+
getProperty(name: string): any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DefaultSerializeable } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
import { LabelDateComponentFormat } from './LabelDateComponentFormat';
|
|
3
|
+
export declare class LabelDateFormat extends DefaultSerializeable {
|
|
4
|
+
private _componentFormat;
|
|
5
|
+
private _acceptPartialDates;
|
|
6
|
+
constructor(componentFormat: LabelDateComponentFormat, acceptPartialDates: boolean);
|
|
7
|
+
get componentFormat(): LabelDateComponentFormat;
|
|
8
|
+
get acceptPartialDates(): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DefaultSerializeable } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
export declare class LabelDateResult extends DefaultSerializeable {
|
|
3
|
+
private _day;
|
|
4
|
+
private _month;
|
|
5
|
+
private _year;
|
|
6
|
+
private _dayString;
|
|
7
|
+
private _monthString;
|
|
8
|
+
private _yearString;
|
|
9
|
+
private constructor();
|
|
10
|
+
get day(): number | null;
|
|
11
|
+
get month(): number | null;
|
|
12
|
+
get year(): number | null;
|
|
13
|
+
get dayString(): string;
|
|
14
|
+
get monthString(): string;
|
|
15
|
+
get yearString(): string;
|
|
16
|
+
private static fromJSON;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DefaultSerializeable } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
import { LabelFieldDefinition } from './LabelFieldDefinition';
|
|
3
|
+
export declare class LabelDefinition extends DefaultSerializeable {
|
|
4
|
+
private _name;
|
|
5
|
+
private _fields;
|
|
6
|
+
private _hiddenProperties;
|
|
7
|
+
get name(): string;
|
|
8
|
+
get fields(): LabelFieldDefinition[];
|
|
9
|
+
set fields(values: LabelFieldDefinition[]);
|
|
10
|
+
get hiddenProperties(): {
|
|
11
|
+
[key: string]: object;
|
|
12
|
+
};
|
|
13
|
+
set hiddenProperties(newValue: {
|
|
14
|
+
[key: string]: object;
|
|
15
|
+
});
|
|
16
|
+
private static fromJSON;
|
|
17
|
+
constructor(name: string);
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Quadrilateral } from "scandit-datacapture-frameworks-core";
|
|
2
|
+
import { Barcode } from "scandit-datacapture-frameworks-barcode";
|
|
3
|
+
import { LabelDateResult } from "./LabelDateResult";
|
|
4
|
+
import { LabelFieldState } from "./LabelFieldState";
|
|
5
|
+
import { LabelFieldType } from "./LabelFieldType";
|
|
6
|
+
export declare class LabelField {
|
|
7
|
+
private _name;
|
|
8
|
+
private _type;
|
|
9
|
+
private _predictedLocation;
|
|
10
|
+
private _state;
|
|
11
|
+
private _isRequired;
|
|
12
|
+
private _barcode;
|
|
13
|
+
private _text;
|
|
14
|
+
private _dateResult;
|
|
15
|
+
get name(): string;
|
|
16
|
+
get type(): LabelFieldType;
|
|
17
|
+
get predictedLocation(): Quadrilateral;
|
|
18
|
+
get state(): LabelFieldState;
|
|
19
|
+
get isRequired(): boolean;
|
|
20
|
+
get barcode(): Barcode | null;
|
|
21
|
+
get text(): string | null;
|
|
22
|
+
asDate(): LabelDateResult | null;
|
|
23
|
+
private static fromJSON;
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DefaultSerializeable } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
export declare class LabelFieldDefinition extends DefaultSerializeable {
|
|
3
|
+
private _name;
|
|
4
|
+
private _patterns;
|
|
5
|
+
private _optional;
|
|
6
|
+
private _hiddenProperties;
|
|
7
|
+
get name(): string;
|
|
8
|
+
get patterns(): string[];
|
|
9
|
+
set patterns(value: string[]);
|
|
10
|
+
get optional(): boolean;
|
|
11
|
+
set optional(value: boolean);
|
|
12
|
+
get hiddenProperties(): {
|
|
13
|
+
[key: string]: object;
|
|
14
|
+
};
|
|
15
|
+
set hiddenProperties(newValue: {
|
|
16
|
+
[key: string]: object;
|
|
17
|
+
});
|
|
18
|
+
protected constructor(name: string);
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DefaultSerializeable, Rect } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
export declare class LabelFieldLocation extends DefaultSerializeable {
|
|
3
|
+
private _rect;
|
|
4
|
+
private _type;
|
|
5
|
+
static forRect(rect: Rect): LabelFieldLocation;
|
|
6
|
+
static for(left: number, top: number, right: number, bottom: number): LabelFieldLocation;
|
|
7
|
+
static topLeft(): LabelFieldLocation;
|
|
8
|
+
static topRight(): LabelFieldLocation;
|
|
9
|
+
static bottomLeft(): LabelFieldLocation;
|
|
10
|
+
static bottomRight(): LabelFieldLocation;
|
|
11
|
+
static top(): LabelFieldLocation;
|
|
12
|
+
static bottom(): LabelFieldLocation;
|
|
13
|
+
static left(): LabelFieldLocation;
|
|
14
|
+
static right(): LabelFieldLocation;
|
|
15
|
+
static center(): LabelFieldLocation;
|
|
16
|
+
static wholeLabel(): LabelFieldLocation;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum LabelFieldLocationType {
|
|
2
|
+
TopLeft = "topLeft",
|
|
3
|
+
TopRight = "topRight",
|
|
4
|
+
BottomRight = "bottomRight",
|
|
5
|
+
BottomLeft = "bottomLeft",
|
|
6
|
+
Top = "top",
|
|
7
|
+
Right = "right",
|
|
8
|
+
Bottom = "bottom",
|
|
9
|
+
Left = "left",
|
|
10
|
+
Center = "center",
|
|
11
|
+
WholeLabel = "wholeLabel"
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TextField } from './TextField';
|
|
2
|
+
import { LabelDateFormat } from './LabelDateFormat';
|
|
3
|
+
export declare class PackingDateText extends TextField {
|
|
4
|
+
private _fieldType;
|
|
5
|
+
private _dataTypePatterns;
|
|
6
|
+
private _labelDateFormat;
|
|
7
|
+
constructor(name: string);
|
|
8
|
+
get dataTypePatterns(): string[];
|
|
9
|
+
get labelDateFormat(): LabelDateFormat | null;
|
|
10
|
+
set labelDateFormat(value: LabelDateFormat | null);
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Symbology, SymbologySettings } from 'scandit-datacapture-frameworks-barcode';
|
|
2
|
+
import { BarcodeField } from './BarcodeField';
|
|
3
|
+
export declare class PartNumberBarcode extends BarcodeField {
|
|
4
|
+
private _fieldType;
|
|
5
|
+
static initWithNameAndSymbologySettings(name: string, symbologySettings: SymbologySettings[]): PartNumberBarcode;
|
|
6
|
+
static initWithNameAndSymbologies(name: string, symbologies: Symbology[]): PartNumberBarcode;
|
|
7
|
+
static initWithNameAndSymbology(name: string, symbology: Symbology): PartNumberBarcode;
|
|
8
|
+
private static get barcodeDefaults();
|
|
9
|
+
private constructor();
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Symbology, SymbologySettings } from 'scandit-datacapture-frameworks-barcode';
|
|
2
|
+
import { BarcodeField } from './BarcodeField';
|
|
3
|
+
export declare class SerialNumberBarcode extends BarcodeField {
|
|
4
|
+
private _fieldType;
|
|
5
|
+
static initWithNameAndSymbologySettings(name: string, symbologySettings: SymbologySettings[]): SerialNumberBarcode;
|
|
6
|
+
static initWithNameAndSymbologies(name: string, symbologies: Symbology[]): SerialNumberBarcode;
|
|
7
|
+
static initWithNameAndSymbology(name: string, symbology: Symbology): SerialNumberBarcode;
|
|
8
|
+
private static get barcodeDefaults();
|
|
9
|
+
private constructor();
|
|
10
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { PointWithUnit, Anchor, BaseController, EventPayload } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
import { LabelCaptureAdvancedOverlayView } from '../view/LabelCaptureAdvancedOverlayView';
|
|
3
|
+
import { LabelCaptureAdvancedOverlay } from '../view/LabelCaptureAdvancedOverlay';
|
|
4
|
+
import { CapturedLabel } from '../CapturedLabel';
|
|
5
|
+
import { LabelField } from '../LabelField';
|
|
6
|
+
export declare enum LabelCaptureAdvancedOverlayListenerEvents {
|
|
7
|
+
viewForLabel = "LabelCaptureAdvancedOverlayListener.viewForLabel",
|
|
8
|
+
anchorForLabel = "LabelCaptureAdvancedOverlayListener.anchorForLabel",
|
|
9
|
+
offsetForLabel = "LabelCaptureAdvancedOverlayListener.offsetForLabel",
|
|
10
|
+
viewForCapturedLabelField = "LabelCaptureAdvancedOverlayListener.viewForCapturedLabelField",
|
|
11
|
+
anchorForCapturedLabelField = "LabelCaptureAdvancedOverlayListener.anchorForCapturedLabelField",
|
|
12
|
+
offsetForCapturedLabelField = "LabelCaptureAdvancedOverlayListener.offsetForCapturedLabelField"
|
|
13
|
+
}
|
|
14
|
+
export interface LabelCaptureAdvancedOverlayProxy {
|
|
15
|
+
$setViewForCapturedLabel({ jsonView, trackingId }: {
|
|
16
|
+
jsonView: string | null;
|
|
17
|
+
trackingId: number;
|
|
18
|
+
}): Promise<void>;
|
|
19
|
+
$setAnchorForCapturedLabel({ anchor, trackingId }: {
|
|
20
|
+
anchor: Anchor;
|
|
21
|
+
trackingId: number;
|
|
22
|
+
}): Promise<void>;
|
|
23
|
+
$setOffsetForCapturedLabel({ offsetJson, trackingId }: {
|
|
24
|
+
offsetJson: string;
|
|
25
|
+
trackingId: number;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
$setViewForCapturedLabelField({ view, identifier }: {
|
|
28
|
+
view: string | null;
|
|
29
|
+
identifier: string;
|
|
30
|
+
}): Promise<void>;
|
|
31
|
+
$setAnchorForCapturedLabelField({ anchor, identifier }: {
|
|
32
|
+
anchor: Anchor;
|
|
33
|
+
identifier: string;
|
|
34
|
+
}): Promise<void>;
|
|
35
|
+
$setOffsetForCapturedLabelField({ offset, identifier }: {
|
|
36
|
+
offset: string;
|
|
37
|
+
identifier: string;
|
|
38
|
+
}): Promise<void>;
|
|
39
|
+
$clearCapturedLabelViews(): Promise<void>;
|
|
40
|
+
$registerListenerForAdvancedOverlayEvents(): Promise<void>;
|
|
41
|
+
$unregisterListenerForAdvancedOverlayEvents(): Promise<void>;
|
|
42
|
+
$updateLabelCaptureAdvancedOverlay({ advancedOverlayJson }: {
|
|
43
|
+
advancedOverlayJson: string;
|
|
44
|
+
}): Promise<void>;
|
|
45
|
+
on$viewForLabel: (ev: EventPayload) => Promise<void>;
|
|
46
|
+
on$anchorForLabel: (ev: EventPayload) => Promise<void>;
|
|
47
|
+
on$offsetForLabel: (ev: EventPayload) => Promise<void>;
|
|
48
|
+
on$viewForCapturedLabelField: (ev: EventPayload) => Promise<void>;
|
|
49
|
+
on$anchorForCapturedLabelField: (ev: EventPayload) => Promise<void>;
|
|
50
|
+
on$offsetForCapturedLabelField: (ev: EventPayload) => Promise<void>;
|
|
51
|
+
}
|
|
52
|
+
export declare class LabelCaptureAdvancedOverlayController extends BaseController<LabelCaptureAdvancedOverlayProxy> {
|
|
53
|
+
private overlay;
|
|
54
|
+
private constructor();
|
|
55
|
+
static forOverlay(overlay: LabelCaptureAdvancedOverlay): LabelCaptureAdvancedOverlayController;
|
|
56
|
+
setViewForCapturedLabel(label: CapturedLabel, view: LabelCaptureAdvancedOverlayView | null): Promise<void>;
|
|
57
|
+
setAnchorForCapturedLabel(label: CapturedLabel, anchor: Anchor): Promise<void>;
|
|
58
|
+
setOffsetForCapturedLabel(label: CapturedLabel, offset: PointWithUnit): Promise<void>;
|
|
59
|
+
setViewForCapturedLabelField(label: CapturedLabel, field: LabelField, view: LabelCaptureAdvancedOverlayView | null): Promise<void>;
|
|
60
|
+
private setViewForCapturedLabelFieldPrivate;
|
|
61
|
+
setAnchorForCapturedLabelField(label: CapturedLabel, field: LabelField, anchor: Anchor): Promise<void>;
|
|
62
|
+
private setAnchorForCapturedLabelFieldPrivate;
|
|
63
|
+
setOffsetForCapturedLabelField(label: CapturedLabel, field: LabelField, offset: PointWithUnit): Promise<void>;
|
|
64
|
+
private setOffsetForCapturedLabelFieldPrivate;
|
|
65
|
+
clearCapturedLabelViews(): Promise<void>;
|
|
66
|
+
subscribeListener(): void;
|
|
67
|
+
unsubscribeListener(): Promise<void>;
|
|
68
|
+
updateAdvancedOverlay(advancedOverlayJson: string): Promise<void>;
|
|
69
|
+
}
|
|
70
|
+
export interface LabelCaptureAdvancedOverlayEventPayload {
|
|
71
|
+
label: string;
|
|
72
|
+
}
|
|
73
|
+
export interface LabelCaptureAdvancedOverlayFieldEventPayload {
|
|
74
|
+
field: string;
|
|
75
|
+
identifier: string;
|
|
76
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BaseController, Brush, EventPayload } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
import { LabelCaptureBasicOverlay } from '../view/LabelCaptureBasicOverlay';
|
|
3
|
+
import { LabelField } from '../LabelField';
|
|
4
|
+
import { CapturedLabel } from '../CapturedLabel';
|
|
5
|
+
export declare enum LabelCaptureBasicOverlayListenerEvents {
|
|
6
|
+
brushForFieldOfLabel = "LabelCaptureBasicOverlayListener.brushForFieldOfLabel",
|
|
7
|
+
brushForLabel = "LabelCaptureBasicOverlayListener.brushForLabel",
|
|
8
|
+
didTapLabel = "LabelCaptureBasicOverlayListener.didTapLabel"
|
|
9
|
+
}
|
|
10
|
+
export interface LabelCaptureBasicOverlayProxy {
|
|
11
|
+
$setBrushForFieldOfLabel({ brushJson, fieldName, trackingId }: {
|
|
12
|
+
brushJson: string | null;
|
|
13
|
+
fieldName: string;
|
|
14
|
+
trackingId: number;
|
|
15
|
+
}): Promise<void>;
|
|
16
|
+
$setBrushForLabel({ brushJson, trackingId }: {
|
|
17
|
+
brushJson: string | null;
|
|
18
|
+
trackingId: number;
|
|
19
|
+
}): Promise<void>;
|
|
20
|
+
$registerListenerForBasicOverlayEvents(): Promise<void>;
|
|
21
|
+
$unregisterListenerForBasicOverlayEvents(): Promise<void>;
|
|
22
|
+
$updateLabelCaptureBasicOverlay({ basicOverlayJson }: {
|
|
23
|
+
basicOverlayJson: string;
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
on$brushForFieldOfLabel: (ev: EventPayload) => Promise<void>;
|
|
26
|
+
on$brushForLabel: (ev: EventPayload) => Promise<void>;
|
|
27
|
+
on$didTapLabel: (ev: EventPayload) => Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
export declare class LabelCaptureBasicOverlayController extends BaseController<LabelCaptureBasicOverlayProxy> {
|
|
30
|
+
private overlay;
|
|
31
|
+
private constructor();
|
|
32
|
+
static forOverlay(overlay: LabelCaptureBasicOverlay): LabelCaptureBasicOverlayController;
|
|
33
|
+
setBrushForFieldOfLabel(brush: Brush | null, field: LabelField, label: CapturedLabel): Promise<void>;
|
|
34
|
+
setBrushForLabel(brush: Brush | null, label: CapturedLabel): Promise<void>;
|
|
35
|
+
subscribeListener(): Promise<void>;
|
|
36
|
+
unsubscribeListener(): Promise<void>;
|
|
37
|
+
updateBasicOverlay(basicOverlayJson: string): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
export interface LabelCaptureBasicOverlayEventPayload {
|
|
40
|
+
field: string;
|
|
41
|
+
label: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseController } from "scandit-datacapture-frameworks-core";
|
|
2
|
+
export interface LabelCaptureProxy {
|
|
3
|
+
$setModeEnabledState({ isEnabled }: {
|
|
4
|
+
isEnabled: boolean;
|
|
5
|
+
}): Promise<void>;
|
|
6
|
+
$updateLabelCaptureSettings({ settingsJson }: {
|
|
7
|
+
settingsJson: string;
|
|
8
|
+
}): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
export declare class LabelCaptureController extends BaseController<LabelCaptureProxy> {
|
|
11
|
+
constructor();
|
|
12
|
+
setModeEnabledState(isEnabled: boolean): Promise<void>;
|
|
13
|
+
updateLabelCaptureSettings(settingsJson: string): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LabelCapture } from '../LabelCapture';
|
|
2
|
+
import { BaseController, EventPayload } from "scandit-datacapture-frameworks-core";
|
|
3
|
+
export declare enum LabelCaptureListenerEvents {
|
|
4
|
+
didUpdateSession = "LabelCaptureListener.didUpdateSession"
|
|
5
|
+
}
|
|
6
|
+
export interface LabelCaptureListenerProxy {
|
|
7
|
+
$registerListenerForEvents(): Promise<void>;
|
|
8
|
+
$unregisterListenerForEvents(): Promise<void>;
|
|
9
|
+
$finishDidUpdateSessionCallback({ isEnabled }: {
|
|
10
|
+
isEnabled: boolean;
|
|
11
|
+
}): Promise<void>;
|
|
12
|
+
on$didUpdateSession: (ev: EventPayload) => Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export declare class LabelCaptureListenerController extends BaseController<LabelCaptureListenerProxy> {
|
|
15
|
+
private mode;
|
|
16
|
+
private constructor();
|
|
17
|
+
static forLabelCapture(labelCapture: LabelCapture): LabelCaptureListenerController;
|
|
18
|
+
subscribeListener(): Promise<void>;
|
|
19
|
+
unsubscribeListener(): Promise<void>;
|
|
20
|
+
private notifyListenersOfDidUpdateSession;
|
|
21
|
+
}
|
|
22
|
+
export interface LabelCaptureSessionEventPayload {
|
|
23
|
+
session: string;
|
|
24
|
+
isBarcodeArFull: boolean | null;
|
|
25
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export * from './BarcodeField';
|
|
2
|
+
export * from './CapturedLabel';
|
|
3
|
+
export * from './CustomBarcode';
|
|
4
|
+
export * from './CustomText';
|
|
5
|
+
export * from './ExpiryDateText';
|
|
6
|
+
export * from './ImeiOneBarcode';
|
|
7
|
+
export * from './ImeiTwoBarcode';
|
|
8
|
+
export * from './LabelCapture';
|
|
9
|
+
export * from './view/LabelCaptureAdvancedOverlay';
|
|
10
|
+
export * from './LabelCaptureListener';
|
|
11
|
+
export * from './LabelCaptureSession';
|
|
12
|
+
export * from './LabelCaptureSettings';
|
|
13
|
+
export * from './LabelDateComponentFormat';
|
|
14
|
+
export * from './LabelDateFormat';
|
|
15
|
+
export * from './LabelDateResult';
|
|
16
|
+
export * from './LabelDefinition';
|
|
17
|
+
export * from './LabelField';
|
|
18
|
+
export * from './LabelFieldDefinition';
|
|
19
|
+
export * from './LabelFieldLocation';
|
|
20
|
+
export * from './LabelFieldLocationType';
|
|
21
|
+
export * from './LabelFieldState';
|
|
22
|
+
export * from './LabelFieldType';
|
|
23
|
+
export * from './PackingDateText';
|
|
24
|
+
export * from './PartNumberBarcode';
|
|
25
|
+
export * from './SerialNumberBarcode';
|
|
26
|
+
export * from './TextField';
|
|
27
|
+
export * from './TotalPriceText';
|
|
28
|
+
export * from './UnitPriceText';
|
|
29
|
+
export * from './WeightText';
|
|
30
|
+
export * from './view/LabelCaptureBasicOverlay';
|
|
31
|
+
export * from './view/LabelCaptureAdvancedOverlayListener';
|
|
32
|
+
export * from './controller/LabelCaptureAdvancedOverlayController';
|
|
33
|
+
export * from './controller/LabelCaptureBasicOverlayController';
|
|
34
|
+
export * from './controller/LabelCaptureController';
|
|
35
|
+
export * from './controller/LabelCaptureListenerController';
|
|
36
|
+
export * from './LabelCaptureContextFeatures';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PrivateDataCaptureMode, DataCaptureContext } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
import { LabelCaptureListener } from '../LabelCaptureListener';
|
|
3
|
+
export interface PrivateLabelCapture extends PrivateDataCaptureMode {
|
|
4
|
+
_context: DataCaptureContext | null;
|
|
5
|
+
listeners: LabelCaptureListener[];
|
|
6
|
+
isInListenerCallback: boolean;
|
|
7
|
+
}
|