scandit-capacitor-datacapture-barcode 6.25.2 → 6.26.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ScanditCapacitorDatacaptureBarcode.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.kt +1 -1
- package/dist/barcode.js +1899 -1813
- package/dist/barcode.js.map +1 -1
- package/dist/dts/ts/BarcodeCountView.d.ts +7 -1
- package/dist/dts/ts/Capacitor/SparkScanViewProxy.d.ts +1 -0
- package/dist/dts/ts/SparkScanView.d.ts +26 -0
- package/dist/index.js +60 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BarcodeCount } from 'scandit-datacapture-frameworks-barcode';
|
|
2
|
-
import { DefaultSerializeable } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
import { Anchor, DefaultSerializeable } from 'scandit-datacapture-frameworks-core';
|
|
3
3
|
import { BarcodeCountViewListener, BarcodeCountViewUiListener, BarcodeCountToolbarSettings } from 'scandit-datacapture-frameworks-barcode';
|
|
4
4
|
import { Brush } from 'scandit-datacapture-frameworks-core';
|
|
5
5
|
import { BarcodeFilterHighlightSettings } from 'scandit-datacapture-frameworks-barcode';
|
|
@@ -98,6 +98,10 @@ export declare class BarcodeCountView extends DefaultSerializeable {
|
|
|
98
98
|
set shouldShowListProgressBar(newValue: boolean);
|
|
99
99
|
get textForUnrecognizedBarcodesDetectedHint(): string;
|
|
100
100
|
set textForUnrecognizedBarcodesDetectedHint(newValue: string);
|
|
101
|
+
get shouldShowTorchControl(): boolean;
|
|
102
|
+
set shouldShowTorchControl(newValue: boolean);
|
|
103
|
+
get torchControlPosition(): Anchor;
|
|
104
|
+
set torchControlPosition(newValue: Anchor);
|
|
101
105
|
private _barcodeCount;
|
|
102
106
|
private _context;
|
|
103
107
|
private viewProxy;
|
|
@@ -145,6 +149,8 @@ export declare class BarcodeCountView extends DefaultSerializeable {
|
|
|
145
149
|
private _shouldShowListProgressBar;
|
|
146
150
|
private _textForUnrecognizedBarcodesDetectedHint;
|
|
147
151
|
private _toolbarSettings;
|
|
152
|
+
private _shouldShowTorchControl;
|
|
153
|
+
private _torchControlPosition;
|
|
148
154
|
private htmlElement;
|
|
149
155
|
private _htmlElementState;
|
|
150
156
|
private set htmlElementState(value);
|
|
@@ -4,6 +4,7 @@ export declare class NativeSparkScanViewProxy extends BaseNativeProxy implements
|
|
|
4
4
|
private fastFindButtonTappedListenerHandler;
|
|
5
5
|
private barcodeCountButtonTappedListenerHandler;
|
|
6
6
|
private feedbackForBarcodeHandler;
|
|
7
|
+
private barcodeFindButtonTappedListenerHandler;
|
|
7
8
|
private nativeEventSubscriptions;
|
|
8
9
|
updateSparkScanView(viewJson: string): Promise<void>;
|
|
9
10
|
createSparkScanView(viewJson: string): Promise<void>;
|
|
@@ -7,7 +7,13 @@ export declare class SparkScanView {
|
|
|
7
7
|
static forContext(context: DataCaptureContext, sparkScan: SparkScan, settings: SparkScanViewSettings | null): SparkScanView;
|
|
8
8
|
static get defaultBrush(): Brush;
|
|
9
9
|
private constructor();
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated This property is deprecated as it's no longer needed.
|
|
12
|
+
*/
|
|
10
13
|
get shouldShowScanAreaGuides(): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated This property is deprecated as it's no longer needed.
|
|
16
|
+
*/
|
|
11
17
|
set shouldShowScanAreaGuides(newValue: boolean);
|
|
12
18
|
get brush(): Brush;
|
|
13
19
|
set brush(newValue: Brush);
|
|
@@ -21,13 +27,33 @@ export declare class SparkScanView {
|
|
|
21
27
|
set handModeButtonVisible(newValue: boolean);
|
|
22
28
|
get barcodeCountButtonVisible(): boolean;
|
|
23
29
|
set barcodeCountButtonVisible(newValue: boolean);
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated This property was renamed. Use the property `barcodeFindButtonVisible` instead.
|
|
32
|
+
*/
|
|
24
33
|
get fastFindButtonVisible(): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated This property was renamed. Use the property `barcodeFindButtonVisible` instead.
|
|
36
|
+
*/
|
|
25
37
|
set fastFindButtonVisible(newValue: boolean);
|
|
38
|
+
get barcodeFindButtonVisible(): boolean;
|
|
39
|
+
set barcodeFindButtonVisible(newValue: boolean);
|
|
26
40
|
get targetModeButtonVisible(): boolean;
|
|
27
41
|
set targetModeButtonVisible(newValue: boolean);
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated This property is deprecated as sound mode button will be removed in the future.
|
|
44
|
+
*/
|
|
28
45
|
get soundModeButtonVisible(): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated This property is deprecated as sound mode button will be removed in the future.
|
|
48
|
+
*/
|
|
29
49
|
set soundModeButtonVisible(newValue: boolean);
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated This property is deprecated as haptic mode button will be removed in the future.
|
|
52
|
+
*/
|
|
30
53
|
get hapticModeButtonVisible(): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated This property is deprecated as haptic mode button will be removed in the future.
|
|
56
|
+
*/
|
|
31
57
|
set hapticModeButtonVisible(newValue: boolean);
|
|
32
58
|
get stopCapturingText(): string | null;
|
|
33
59
|
set stopCapturingText(newValue: string | null);
|
package/dist/index.js
CHANGED
|
@@ -1823,6 +1823,9 @@ class NativeSparkScanViewProxy extends BaseNativeProxy {
|
|
|
1823
1823
|
this.barcodeCountButtonTappedListenerHandler = window.Capacitor.Plugins[Capacitor.pluginName]
|
|
1824
1824
|
.addListener(SparkScanViewEvents.barcodeCountButtonTapped, this.notifyListeners.bind(this));
|
|
1825
1825
|
this.nativeEventSubscriptions.push(this.barcodeCountButtonTappedListenerHandler);
|
|
1826
|
+
this.barcodeFindButtonTappedListenerHandler = window.Capacitor.Plugins[Capacitor.pluginName]
|
|
1827
|
+
.addListener(SparkScanViewEvents.barcodeFindButtonTapped, this.notifyListeners.bind(this));
|
|
1828
|
+
this.nativeEventSubscriptions.push(this.barcodeFindButtonTappedListenerHandler);
|
|
1826
1829
|
}
|
|
1827
1830
|
unregisterSparkScanViewListenerEvents() {
|
|
1828
1831
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1893,6 +1896,9 @@ class NativeSparkScanViewProxy extends BaseNativeProxy {
|
|
|
1893
1896
|
case SparkScanViewEvents.fastFindButtonTapped:
|
|
1894
1897
|
this.eventEmitter.emit(SparkScanViewEvents.fastFindButtonTapped, this);
|
|
1895
1898
|
break;
|
|
1899
|
+
case SparkScanViewEvents.barcodeFindButtonTapped:
|
|
1900
|
+
this.eventEmitter.emit(SparkScanViewEvents.barcodeFindButtonTapped, this);
|
|
1901
|
+
break;
|
|
1896
1902
|
case SparkScanFeedbackDelegateEvents.feedbackForBarcode:
|
|
1897
1903
|
this.eventEmitter.emit(SparkScanFeedbackDelegateEvents.feedbackForBarcode, JSON.stringify(event));
|
|
1898
1904
|
break;
|
|
@@ -2163,9 +2169,15 @@ class SparkScanView {
|
|
|
2163
2169
|
constructor({ context, sparkScan, settings }) {
|
|
2164
2170
|
this.baseSparkScanView = BaseSparkScanView.forContext(context, sparkScan, settings);
|
|
2165
2171
|
}
|
|
2172
|
+
/**
|
|
2173
|
+
* @deprecated This property is deprecated as it's no longer needed.
|
|
2174
|
+
*/
|
|
2166
2175
|
get shouldShowScanAreaGuides() {
|
|
2167
2176
|
return this.baseSparkScanView.shouldShowScanAreaGuides;
|
|
2168
2177
|
}
|
|
2178
|
+
/**
|
|
2179
|
+
* @deprecated This property is deprecated as it's no longer needed.
|
|
2180
|
+
*/
|
|
2169
2181
|
set shouldShowScanAreaGuides(newValue) {
|
|
2170
2182
|
this.baseSparkScanView.shouldShowScanAreaGuides = newValue;
|
|
2171
2183
|
}
|
|
@@ -2205,27 +2217,51 @@ class SparkScanView {
|
|
|
2205
2217
|
set barcodeCountButtonVisible(newValue) {
|
|
2206
2218
|
this.baseSparkScanView.barcodeCountButtonVisible = newValue;
|
|
2207
2219
|
}
|
|
2220
|
+
/**
|
|
2221
|
+
* @deprecated This property was renamed. Use the property `barcodeFindButtonVisible` instead.
|
|
2222
|
+
*/
|
|
2208
2223
|
get fastFindButtonVisible() {
|
|
2209
2224
|
return this.baseSparkScanView.fastFindButtonVisible;
|
|
2210
2225
|
}
|
|
2226
|
+
/**
|
|
2227
|
+
* @deprecated This property was renamed. Use the property `barcodeFindButtonVisible` instead.
|
|
2228
|
+
*/
|
|
2211
2229
|
set fastFindButtonVisible(newValue) {
|
|
2212
2230
|
this.baseSparkScanView.fastFindButtonVisible = newValue;
|
|
2213
2231
|
}
|
|
2232
|
+
get barcodeFindButtonVisible() {
|
|
2233
|
+
return this.baseSparkScanView.barcodeFindButtonVisible;
|
|
2234
|
+
}
|
|
2235
|
+
set barcodeFindButtonVisible(newValue) {
|
|
2236
|
+
this.baseSparkScanView.barcodeFindButtonVisible = newValue;
|
|
2237
|
+
}
|
|
2214
2238
|
get targetModeButtonVisible() {
|
|
2215
2239
|
return this.baseSparkScanView.targetModeButtonVisible;
|
|
2216
2240
|
}
|
|
2217
2241
|
set targetModeButtonVisible(newValue) {
|
|
2218
2242
|
this.baseSparkScanView.targetModeButtonVisible = newValue;
|
|
2219
2243
|
}
|
|
2244
|
+
/**
|
|
2245
|
+
* @deprecated This property is deprecated as sound mode button will be removed in the future.
|
|
2246
|
+
*/
|
|
2220
2247
|
get soundModeButtonVisible() {
|
|
2221
2248
|
return this.baseSparkScanView.soundModeButtonVisible;
|
|
2222
2249
|
}
|
|
2250
|
+
/**
|
|
2251
|
+
* @deprecated This property is deprecated as sound mode button will be removed in the future.
|
|
2252
|
+
*/
|
|
2223
2253
|
set soundModeButtonVisible(newValue) {
|
|
2224
2254
|
this.baseSparkScanView.soundModeButtonVisible = newValue;
|
|
2225
2255
|
}
|
|
2256
|
+
/**
|
|
2257
|
+
* @deprecated This property is deprecated as haptic mode button will be removed in the future.
|
|
2258
|
+
*/
|
|
2226
2259
|
get hapticModeButtonVisible() {
|
|
2227
2260
|
return this.baseSparkScanView.hapticModeButtonVisible;
|
|
2228
2261
|
}
|
|
2262
|
+
/**
|
|
2263
|
+
* @deprecated This property is deprecated as haptic mode button will be removed in the future.
|
|
2264
|
+
*/
|
|
2229
2265
|
set hapticModeButtonVisible(newValue) {
|
|
2230
2266
|
this.baseSparkScanView.hapticModeButtonVisible = newValue;
|
|
2231
2267
|
}
|
|
@@ -2549,8 +2585,8 @@ class BarcodeCountViewProxy {
|
|
|
2549
2585
|
create() {
|
|
2550
2586
|
const barcodeCountView = this.view.toJSON();
|
|
2551
2587
|
const json = {
|
|
2552
|
-
BarcodeCount:
|
|
2553
|
-
View:
|
|
2588
|
+
BarcodeCount: this.view._barcodeCount.toJSON(),
|
|
2589
|
+
View: barcodeCountView
|
|
2554
2590
|
};
|
|
2555
2591
|
return ScanditBarcodeCountPluginNative.createView(json);
|
|
2556
2592
|
}
|
|
@@ -3046,6 +3082,20 @@ class BarcodeCountView extends DefaultSerializeable {
|
|
|
3046
3082
|
this._textForUnrecognizedBarcodesDetectedHint = newValue;
|
|
3047
3083
|
this.updateNative();
|
|
3048
3084
|
}
|
|
3085
|
+
get shouldShowTorchControl() {
|
|
3086
|
+
return this._shouldShowTorchControl;
|
|
3087
|
+
}
|
|
3088
|
+
set shouldShowTorchControl(newValue) {
|
|
3089
|
+
this._shouldShowTorchControl = newValue;
|
|
3090
|
+
this.updateNative();
|
|
3091
|
+
}
|
|
3092
|
+
get torchControlPosition() {
|
|
3093
|
+
return this._torchControlPosition;
|
|
3094
|
+
}
|
|
3095
|
+
set torchControlPosition(newValue) {
|
|
3096
|
+
this._torchControlPosition = newValue;
|
|
3097
|
+
this.updateNative();
|
|
3098
|
+
}
|
|
3049
3099
|
set htmlElementState(newState) {
|
|
3050
3100
|
const didChangeShown = this._htmlElementState.isShown !== newState.isShown;
|
|
3051
3101
|
const didChangePositionOrSize = this._htmlElementState.didChangeComparedTo(newState);
|
|
@@ -3120,6 +3170,8 @@ class BarcodeCountView extends DefaultSerializeable {
|
|
|
3120
3170
|
this._shouldShowListProgressBar = BarcodeCountDefaults.BarcodeCountView.shouldShowListProgressBar;
|
|
3121
3171
|
this._textForUnrecognizedBarcodesDetectedHint = BarcodeCountDefaults.BarcodeCountView.textForUnrecognizedBarcodesDetectedHint;
|
|
3122
3172
|
this._toolbarSettings = null;
|
|
3173
|
+
this._shouldShowTorchControl = BarcodeCountDefaults.BarcodeCountView.shouldShowTorchControl;
|
|
3174
|
+
this._torchControlPosition = BarcodeCountDefaults.BarcodeCountView.torchControlPosition;
|
|
3123
3175
|
this.htmlElement = null;
|
|
3124
3176
|
this._htmlElementState = new HTMLElementState();
|
|
3125
3177
|
this.scrollListener = this.elementDidChange.bind(this);
|
|
@@ -3361,6 +3413,12 @@ __decorate([
|
|
|
3361
3413
|
__decorate([
|
|
3362
3414
|
nameForSerialization('toolbarSettings')
|
|
3363
3415
|
], BarcodeCountView.prototype, "_toolbarSettings", void 0);
|
|
3416
|
+
__decorate([
|
|
3417
|
+
nameForSerialization('shouldShowTorchControl')
|
|
3418
|
+
], BarcodeCountView.prototype, "_shouldShowTorchControl", void 0);
|
|
3419
|
+
__decorate([
|
|
3420
|
+
nameForSerialization('torchControlPosition')
|
|
3421
|
+
], BarcodeCountView.prototype, "_torchControlPosition", void 0);
|
|
3364
3422
|
__decorate([
|
|
3365
3423
|
ignoreFromSerialization
|
|
3366
3424
|
], BarcodeCountView.prototype, "htmlElement", void 0);
|