scandit-capacitor-datacapture-barcode 8.3.1 → 8.4.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/ScanditCapacitorDatacaptureBarcode.podspec +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.java +36 -12
- package/dist/barcode.js +333 -35
- package/dist/barcode.js.map +1 -1
- package/dist/dts/definitions.d.ts +6 -0
- package/dist/dts/ts/SparkScanView.d.ts +3 -1
- package/dist/index.js +107 -115
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
|
@@ -137,6 +137,9 @@ export { BarcodePickViewHighlightStyleRequest } from 'scandit-datacapture-framew
|
|
|
137
137
|
export { BarcodePickViewHighlightStyleResponse } from 'scandit-datacapture-frameworks-barcode';
|
|
138
138
|
export { BarcodePickViewHighlightStyleResponseBuilder } from 'scandit-datacapture-frameworks-barcode';
|
|
139
139
|
export { BarcodePickViewHighlightStyleAsyncProvider } from 'scandit-datacapture-frameworks-barcode';
|
|
140
|
+
export { BarcodePickViewHighlightStyleCustomViewProvider } from 'scandit-datacapture-frameworks-barcode';
|
|
141
|
+
export { BarcodePickViewHighlightStyleCustomViewResponse } from 'scandit-datacapture-frameworks-barcode';
|
|
142
|
+
export { BarcodePickViewHighlightStyleCustomView } from 'scandit-datacapture-frameworks-barcode';
|
|
140
143
|
export { BarcodeGenerator } from 'scandit-datacapture-frameworks-barcode';
|
|
141
144
|
export { BarcodeGeneratorBuilder } from 'scandit-datacapture-frameworks-barcode';
|
|
142
145
|
export { Code39BarcodeGeneratorBuilder } from 'scandit-datacapture-frameworks-barcode';
|
|
@@ -148,6 +151,9 @@ export { QrCodeBarcodeGeneratorBuilder } from 'scandit-datacapture-frameworks-ba
|
|
|
148
151
|
export { DataMatrixBarcodeGeneratorBuilder } from 'scandit-datacapture-frameworks-barcode';
|
|
149
152
|
export { QrCodeErrorCorrectionLevel } from 'scandit-datacapture-frameworks-barcode';
|
|
150
153
|
export { AztecBarcodeGeneratorBuilder } from 'scandit-datacapture-frameworks-barcode';
|
|
154
|
+
export { Pdf417BarcodeGeneratorBuilder } from 'scandit-datacapture-frameworks-barcode';
|
|
155
|
+
export { Pdf417CompactionMode } from 'scandit-datacapture-frameworks-barcode';
|
|
156
|
+
export { Pdf417Dimensions } from 'scandit-datacapture-frameworks-barcode';
|
|
151
157
|
export { ArucoDictionary } from 'scandit-datacapture-frameworks-barcode';
|
|
152
158
|
export { ArucoDictionaryPreset } from 'scandit-datacapture-frameworks-barcode';
|
|
153
159
|
export { ArucoMarker } from 'scandit-datacapture-frameworks-barcode';
|
|
@@ -29,6 +29,8 @@ export declare class SparkScanView {
|
|
|
29
29
|
set cameraSwitchButtonVisible(newValue: boolean);
|
|
30
30
|
get torchControlVisible(): boolean;
|
|
31
31
|
set torchControlVisible(newValue: boolean);
|
|
32
|
+
get zoomSwitchControlVisible(): boolean;
|
|
33
|
+
set zoomSwitchControlVisible(newValue: boolean);
|
|
32
34
|
get previewCloseControlVisible(): boolean;
|
|
33
35
|
set previewCloseControlVisible(newValue: boolean);
|
|
34
36
|
get triggerButtonAnimationColor(): Color | null;
|
|
@@ -47,7 +49,7 @@ export declare class SparkScanView {
|
|
|
47
49
|
startScanning(): Promise<void>;
|
|
48
50
|
pauseScanning(): Promise<void>;
|
|
49
51
|
stopScanning(): Promise<void>;
|
|
50
|
-
dispose(): void
|
|
52
|
+
dispose(): Promise<void>;
|
|
51
53
|
show(): Promise<void>;
|
|
52
54
|
hide(): Promise<void>;
|
|
53
55
|
get feedbackDelegate(): SparkScanFeedbackDelegate | null;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SymbologyDescription, BaseBarcodeBatchAdvancedOverlay, BaseBarcodeCountView, BaseBarcodeFindView, BaseSparkScanView, BaseBarcodePickView, BaseBarcodeArView, getBarcodeCountDefaults, ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, Barcode, BarcodeAr, BarcodeArAnnotationTrigger, BarcodeArCircleHighlight, BarcodeArCircleHighlightPreset, BarcodeArFeedback, BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor, BarcodeArInfoAnnotationBodyComponent, BarcodeArInfoAnnotationFooter, BarcodeArInfoAnnotationHeader, BarcodeArInfoAnnotationWidthPreset, BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationButton, BarcodeArRectangleHighlight, BarcodeArResponsiveAnnotation, BarcodeArSession, BarcodeArSettings, BarcodeArStatusIconAnnotation, BarcodeArViewSettings, BarcodeBatch, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayStyle, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureOverlay, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountMappingFlowSettings, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSettings, BarcodeCountStatus, BarcodeCountStatusItem, BarcodeCountStatusProviderCallback, BarcodeCountStatusResultAbort, BarcodeCountStatusResultError, BarcodeCountStatusResultSuccess, BarcodeCountToolbarSettings, BarcodeCountViewStyle as BarcodeCountViewStyle$1, BarcodeDefinition, BarcodeDefinitionBuilder, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindSession, BarcodeFindSettings, BarcodeFindViewSettings, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeIdentifier, BarcodeInfo, BarcodePick, BarcodePickAction, BarcodePickActionCallback, BarcodePickAsyncMapperProductProvider, BarcodePickProduct, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningSession, BarcodePickSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickStatusIconStyle, BarcodePickViewHighlightStyleRequest, BarcodePickViewHighlightStyleResponse, BarcodePickViewHighlightStyleResponseBuilder, BarcodePickViewSettings, BarcodeSelection, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BarcodeSpatialGrid, BatterySavingMode, CapturePreset, Checksum, Cluster, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, 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, SparkScanViewSettings, SparkScanViewState, StructuredAppendData, Symbology, SymbologySettings, TargetBarcode, TextDefinition, TextDefinitionBuilder, TextIdentifier, TrackedBarcode, TrackedObject, UpcaBarcodeGeneratorBuilder, loadAllBarcodeDefaults, getBarcodeDefaults, registerBarcodeProxies } from './barcode.js';
|
|
2
|
-
export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, Barcode, BarcodeAr, BarcodeArAnnotationTrigger, BarcodeArCircleHighlight, BarcodeArCircleHighlightPreset, BarcodeArFeedback, BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor, BarcodeArInfoAnnotationBodyComponent, BarcodeArInfoAnnotationFooter, BarcodeArInfoAnnotationHeader, BarcodeArInfoAnnotationWidthPreset, BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationButton, BarcodeArRectangleHighlight, BarcodeArResponsiveAnnotation, BarcodeArSession, BarcodeArSettings, BarcodeArStatusIconAnnotation, BarcodeArViewSettings, BarcodeBatch, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayStyle, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureOverlay, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountMappingFlowSettings, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSettings, BarcodeCountStatus, BarcodeCountStatusItem, BarcodeCountStatusProviderCallback, BarcodeCountStatusResultAbort, BarcodeCountStatusResultError, BarcodeCountStatusResultSuccess, BarcodeCountToolbarSettings, BarcodeCountViewStyle, BarcodeDefinition, BarcodeDefinitionBuilder, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindSession, BarcodeFindSettings, BarcodeFindViewSettings, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeIdentifier, BarcodeInfo, BarcodePick, BarcodePickAction, BarcodePickActionCallback, BarcodePickAsyncMapperProductProvider, BarcodePickProduct, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningSession, BarcodePickSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickStatusIconStyle, BarcodePickViewHighlightStyleRequest, BarcodePickViewHighlightStyleResponse, BarcodePickViewHighlightStyleResponseBuilder, BarcodePickViewSettings, BarcodeSelection, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BarcodeSpatialGrid, BatterySavingMode, CapturePreset, Checksum, Cluster, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, 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, SparkScanViewSettings, SparkScanViewState, StructuredAppendData, Symbology, SymbologyDescription, SymbologySettings, TargetBarcode, TextDefinition, TextDefinitionBuilder, TextIdentifier, TrackedBarcode, TrackedObject, UpcaBarcodeGeneratorBuilder } from './barcode.js';
|
|
1
|
+
import { SymbologyDescription, BaseBarcodeBatchAdvancedOverlay, BaseBarcodeCountView, BaseBarcodeFindView, BaseSparkScanView, BaseBarcodePickView, BaseBarcodeArView, getBarcodeCountDefaults, ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, Barcode, BarcodeAr, BarcodeArAnnotationTrigger, BarcodeArCircleHighlight, BarcodeArCircleHighlightPreset, BarcodeArFeedback, BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor, BarcodeArInfoAnnotationBodyComponent, BarcodeArInfoAnnotationFooter, BarcodeArInfoAnnotationHeader, BarcodeArInfoAnnotationWidthPreset, BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationButton, BarcodeArRectangleHighlight, BarcodeArResponsiveAnnotation, BarcodeArSession, BarcodeArSettings, BarcodeArStatusIconAnnotation, BarcodeArViewSettings, BarcodeBatch, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayStyle, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureOverlay, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountMappingFlowSettings, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSettings, BarcodeCountStatus, BarcodeCountStatusItem, BarcodeCountStatusProviderCallback, BarcodeCountStatusResultAbort, BarcodeCountStatusResultError, BarcodeCountStatusResultSuccess, BarcodeCountToolbarSettings, BarcodeCountViewStyle as BarcodeCountViewStyle$1, BarcodeDefinition, BarcodeDefinitionBuilder, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindSession, BarcodeFindSettings, BarcodeFindViewSettings, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeIdentifier, BarcodeInfo, BarcodePick, BarcodePickAction, BarcodePickActionCallback, BarcodePickAsyncMapperProductProvider, BarcodePickProduct, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningSession, BarcodePickSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickStatusIconStyle, BarcodePickViewHighlightStyleCustomView, BarcodePickViewHighlightStyleCustomViewResponse, BarcodePickViewHighlightStyleRequest, BarcodePickViewHighlightStyleResponse, BarcodePickViewHighlightStyleResponseBuilder, BarcodePickViewSettings, BarcodeSelection, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BarcodeSpatialGrid, BatterySavingMode, CapturePreset, Checksum, Cluster, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, Pdf417BarcodeGeneratorBuilder, Pdf417CompactionMode, Pdf417Dimensions, 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, SparkScanViewSettings, SparkScanViewState, StructuredAppendData, Symbology, SymbologySettings, TargetBarcode, TextDefinition, TextDefinitionBuilder, TextIdentifier, TrackedBarcode, TrackedObject, UpcaBarcodeGeneratorBuilder, loadAllBarcodeDefaults, getBarcodeDefaults, registerBarcodeProxies } from './barcode.js';
|
|
2
|
+
export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, Barcode, BarcodeAr, BarcodeArAnnotationTrigger, BarcodeArCircleHighlight, BarcodeArCircleHighlightPreset, BarcodeArFeedback, BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor, BarcodeArInfoAnnotationBodyComponent, BarcodeArInfoAnnotationFooter, BarcodeArInfoAnnotationHeader, BarcodeArInfoAnnotationWidthPreset, BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationButton, BarcodeArRectangleHighlight, BarcodeArResponsiveAnnotation, BarcodeArSession, BarcodeArSettings, BarcodeArStatusIconAnnotation, BarcodeArViewSettings, BarcodeBatch, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayStyle, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureOverlay, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountMappingFlowSettings, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSettings, BarcodeCountStatus, BarcodeCountStatusItem, BarcodeCountStatusProviderCallback, BarcodeCountStatusResultAbort, BarcodeCountStatusResultError, BarcodeCountStatusResultSuccess, BarcodeCountToolbarSettings, BarcodeCountViewStyle, BarcodeDefinition, BarcodeDefinitionBuilder, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindSession, BarcodeFindSettings, BarcodeFindViewSettings, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeIdentifier, BarcodeInfo, BarcodePick, BarcodePickAction, BarcodePickActionCallback, BarcodePickAsyncMapperProductProvider, BarcodePickProduct, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningSession, BarcodePickSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickStatusIconStyle, BarcodePickViewHighlightStyleCustomView, BarcodePickViewHighlightStyleCustomViewResponse, BarcodePickViewHighlightStyleRequest, BarcodePickViewHighlightStyleResponse, BarcodePickViewHighlightStyleResponseBuilder, BarcodePickViewSettings, BarcodeSelection, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BarcodeSpatialGrid, BatterySavingMode, CapturePreset, Checksum, Cluster, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, Pdf417BarcodeGeneratorBuilder, Pdf417CompactionMode, Pdf417Dimensions, 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, SparkScanViewSettings, SparkScanViewState, StructuredAppendData, Symbology, SymbologyDescription, SymbologySettings, TargetBarcode, TextDefinition, TextDefinitionBuilder, TextIdentifier, TrackedBarcode, TrackedObject, UpcaBarcodeGeneratorBuilder } from './barcode.js';
|
|
3
3
|
import { DefaultSerializeable, Size, HTMLElementState, HtmlElementPosition, HtmlElementSize, ignoreFromSerialization } from 'scandit-capacitor-datacapture-core/dist/core';
|
|
4
4
|
import { capacitorExec, CapacitorCore, CapacitorNativeCaller } from 'scandit-capacitor-datacapture-core';
|
|
5
5
|
|
|
@@ -123,7 +123,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
123
123
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
124
124
|
PERFORMANCE OF THIS SOFTWARE.
|
|
125
125
|
***************************************************************************** */
|
|
126
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
126
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
function __decorate(decorators, target, key, desc) {
|
|
@@ -1028,6 +1028,12 @@ class SparkScanView {
|
|
|
1028
1028
|
set torchControlVisible(newValue) {
|
|
1029
1029
|
this.baseSparkScanView.torchControlVisible = newValue;
|
|
1030
1030
|
}
|
|
1031
|
+
get zoomSwitchControlVisible() {
|
|
1032
|
+
return this.baseSparkScanView.zoomSwitchControlVisible;
|
|
1033
|
+
}
|
|
1034
|
+
set zoomSwitchControlVisible(newValue) {
|
|
1035
|
+
this.baseSparkScanView.zoomSwitchControlVisible = newValue;
|
|
1036
|
+
}
|
|
1031
1037
|
get previewCloseControlVisible() {
|
|
1032
1038
|
return this.baseSparkScanView.previewCloseControlVisible;
|
|
1033
1039
|
}
|
|
@@ -1091,7 +1097,9 @@ class SparkScanView {
|
|
|
1091
1097
|
});
|
|
1092
1098
|
}
|
|
1093
1099
|
dispose() {
|
|
1094
|
-
this
|
|
1100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1101
|
+
yield this.baseSparkScanView.dispose();
|
|
1102
|
+
});
|
|
1095
1103
|
}
|
|
1096
1104
|
show() {
|
|
1097
1105
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1572,6 +1580,8 @@ var BarcodeExports = /*#__PURE__*/Object.freeze({
|
|
|
1572
1580
|
BarcodePickStatusIconSettings: BarcodePickStatusIconSettings,
|
|
1573
1581
|
BarcodePickStatusIconStyle: BarcodePickStatusIconStyle,
|
|
1574
1582
|
BarcodePickView: BarcodePickView,
|
|
1583
|
+
BarcodePickViewHighlightStyleCustomView: BarcodePickViewHighlightStyleCustomView,
|
|
1584
|
+
BarcodePickViewHighlightStyleCustomViewResponse: BarcodePickViewHighlightStyleCustomViewResponse,
|
|
1575
1585
|
BarcodePickViewHighlightStyleRequest: BarcodePickViewHighlightStyleRequest,
|
|
1576
1586
|
BarcodePickViewHighlightStyleResponse: BarcodePickViewHighlightStyleResponse,
|
|
1577
1587
|
BarcodePickViewHighlightStyleResponseBuilder: BarcodePickViewHighlightStyleResponseBuilder,
|
|
@@ -1605,6 +1615,9 @@ var BarcodeExports = /*#__PURE__*/Object.freeze({
|
|
|
1605
1615
|
EncodingRange: EncodingRange,
|
|
1606
1616
|
InterleavedTwoOfFiveBarcodeGeneratorBuilder: InterleavedTwoOfFiveBarcodeGeneratorBuilder,
|
|
1607
1617
|
LocalizedOnlyBarcode: LocalizedOnlyBarcode,
|
|
1618
|
+
Pdf417BarcodeGeneratorBuilder: Pdf417BarcodeGeneratorBuilder,
|
|
1619
|
+
get Pdf417CompactionMode () { return Pdf417CompactionMode; },
|
|
1620
|
+
Pdf417Dimensions: Pdf417Dimensions,
|
|
1608
1621
|
QrCodeBarcodeGeneratorBuilder: QrCodeBarcodeGeneratorBuilder,
|
|
1609
1622
|
get QrCodeErrorCorrectionLevel () { return QrCodeErrorCorrectionLevel; },
|
|
1610
1623
|
Range: Range,
|
|
@@ -1649,47 +1662,6 @@ var BarcodeExports = /*#__PURE__*/Object.freeze({
|
|
|
1649
1662
|
});
|
|
1650
1663
|
|
|
1651
1664
|
/*! Capacitor: https://capacitorjs.com/ - MIT License */
|
|
1652
|
-
const createCapacitorPlatforms = (win) => {
|
|
1653
|
-
const defaultPlatformMap = new Map();
|
|
1654
|
-
defaultPlatformMap.set('web', { name: 'web' });
|
|
1655
|
-
const capPlatforms = win.CapacitorPlatforms || {
|
|
1656
|
-
currentPlatform: { name: 'web' },
|
|
1657
|
-
platforms: defaultPlatformMap,
|
|
1658
|
-
};
|
|
1659
|
-
const addPlatform = (name, platform) => {
|
|
1660
|
-
capPlatforms.platforms.set(name, platform);
|
|
1661
|
-
};
|
|
1662
|
-
const setPlatform = (name) => {
|
|
1663
|
-
if (capPlatforms.platforms.has(name)) {
|
|
1664
|
-
capPlatforms.currentPlatform = capPlatforms.platforms.get(name);
|
|
1665
|
-
}
|
|
1666
|
-
};
|
|
1667
|
-
capPlatforms.addPlatform = addPlatform;
|
|
1668
|
-
capPlatforms.setPlatform = setPlatform;
|
|
1669
|
-
return capPlatforms;
|
|
1670
|
-
};
|
|
1671
|
-
const initPlatforms = (win) => (win.CapacitorPlatforms = createCapacitorPlatforms(win));
|
|
1672
|
-
/**
|
|
1673
|
-
* @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead
|
|
1674
|
-
*/
|
|
1675
|
-
const CapacitorPlatforms = /*#__PURE__*/ initPlatforms((typeof globalThis !== 'undefined'
|
|
1676
|
-
? globalThis
|
|
1677
|
-
: typeof self !== 'undefined'
|
|
1678
|
-
? self
|
|
1679
|
-
: typeof window !== 'undefined'
|
|
1680
|
-
? window
|
|
1681
|
-
: typeof global !== 'undefined'
|
|
1682
|
-
? global
|
|
1683
|
-
: {}));
|
|
1684
|
-
/**
|
|
1685
|
-
* @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead
|
|
1686
|
-
*/
|
|
1687
|
-
CapacitorPlatforms.addPlatform;
|
|
1688
|
-
/**
|
|
1689
|
-
* @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead
|
|
1690
|
-
*/
|
|
1691
|
-
CapacitorPlatforms.setPlatform;
|
|
1692
|
-
|
|
1693
1665
|
var ExceptionCode;
|
|
1694
1666
|
(function (ExceptionCode) {
|
|
1695
1667
|
/**
|
|
@@ -1730,23 +1702,14 @@ const getPlatformId = (win) => {
|
|
|
1730
1702
|
};
|
|
1731
1703
|
|
|
1732
1704
|
const createCapacitor = (win) => {
|
|
1733
|
-
var _a, _b, _c, _d, _e;
|
|
1734
1705
|
const capCustomPlatform = win.CapacitorCustomPlatform || null;
|
|
1735
1706
|
const cap = win.Capacitor || {};
|
|
1736
1707
|
const Plugins = (cap.Plugins = cap.Plugins || {});
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
*/
|
|
1740
|
-
const capPlatforms = win.CapacitorPlatforms;
|
|
1741
|
-
const defaultGetPlatform = () => {
|
|
1742
|
-
return capCustomPlatform !== null
|
|
1743
|
-
? capCustomPlatform.name
|
|
1744
|
-
: getPlatformId(win);
|
|
1708
|
+
const getPlatform = () => {
|
|
1709
|
+
return capCustomPlatform !== null ? capCustomPlatform.name : getPlatformId(win);
|
|
1745
1710
|
};
|
|
1746
|
-
const
|
|
1747
|
-
const
|
|
1748
|
-
const isNativePlatform = ((_b = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _b === void 0 ? void 0 : _b.isNativePlatform) || defaultIsNativePlatform;
|
|
1749
|
-
const defaultIsPluginAvailable = (pluginName) => {
|
|
1711
|
+
const isNativePlatform = () => getPlatform() !== 'web';
|
|
1712
|
+
const isPluginAvailable = (pluginName) => {
|
|
1750
1713
|
const plugin = registeredPlugins.get(pluginName);
|
|
1751
1714
|
if (plugin === null || plugin === void 0 ? void 0 : plugin.platforms.has(getPlatform())) {
|
|
1752
1715
|
// JS implementation available for the current platform.
|
|
@@ -1758,16 +1721,10 @@ const createCapacitor = (win) => {
|
|
|
1758
1721
|
}
|
|
1759
1722
|
return false;
|
|
1760
1723
|
};
|
|
1761
|
-
const
|
|
1762
|
-
defaultIsPluginAvailable;
|
|
1763
|
-
const defaultGetPluginHeader = (pluginName) => { var _a; return (_a = cap.PluginHeaders) === null || _a === void 0 ? void 0 : _a.find(h => h.name === pluginName); };
|
|
1764
|
-
const getPluginHeader = ((_d = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _d === void 0 ? void 0 : _d.getPluginHeader) || defaultGetPluginHeader;
|
|
1724
|
+
const getPluginHeader = (pluginName) => { var _a; return (_a = cap.PluginHeaders) === null || _a === void 0 ? void 0 : _a.find((h) => h.name === pluginName); };
|
|
1765
1725
|
const handleError = (err) => win.console.error(err);
|
|
1766
|
-
const pluginMethodNoop = (_target, prop, pluginName) => {
|
|
1767
|
-
return Promise.reject(`${pluginName} does not have an implementation of "${prop}".`);
|
|
1768
|
-
};
|
|
1769
1726
|
const registeredPlugins = new Map();
|
|
1770
|
-
const
|
|
1727
|
+
const registerPlugin = (pluginName, jsImplementations = {}) => {
|
|
1771
1728
|
const registeredPlugin = registeredPlugins.get(pluginName);
|
|
1772
1729
|
if (registeredPlugin) {
|
|
1773
1730
|
console.warn(`Capacitor plugin "${pluginName}" already registered. Cannot register plugins twice.`);
|
|
@@ -1783,9 +1740,7 @@ const createCapacitor = (win) => {
|
|
|
1783
1740
|
? (jsImplementation = await jsImplementations[platform]())
|
|
1784
1741
|
: (jsImplementation = jsImplementations[platform]);
|
|
1785
1742
|
}
|
|
1786
|
-
else if (capCustomPlatform !== null &&
|
|
1787
|
-
!jsImplementation &&
|
|
1788
|
-
'web' in jsImplementations) {
|
|
1743
|
+
else if (capCustomPlatform !== null && !jsImplementation && 'web' in jsImplementations) {
|
|
1789
1744
|
jsImplementation =
|
|
1790
1745
|
typeof jsImplementations['web'] === 'function'
|
|
1791
1746
|
? (jsImplementation = await jsImplementations['web']())
|
|
@@ -1796,7 +1751,7 @@ const createCapacitor = (win) => {
|
|
|
1796
1751
|
const createPluginMethod = (impl, prop) => {
|
|
1797
1752
|
var _a, _b;
|
|
1798
1753
|
if (pluginHeader) {
|
|
1799
|
-
const methodHeader = pluginHeader === null || pluginHeader === void 0 ? void 0 : pluginHeader.methods.find(m => prop === m.name);
|
|
1754
|
+
const methodHeader = pluginHeader === null || pluginHeader === void 0 ? void 0 : pluginHeader.methods.find((m) => prop === m.name);
|
|
1800
1755
|
if (methodHeader) {
|
|
1801
1756
|
if (methodHeader.rtype === 'promise') {
|
|
1802
1757
|
return (options) => cap.nativePromise(pluginName, prop.toString(), options);
|
|
@@ -1819,7 +1774,7 @@ const createCapacitor = (win) => {
|
|
|
1819
1774
|
const createPluginMethodWrapper = (prop) => {
|
|
1820
1775
|
let remove;
|
|
1821
1776
|
const wrapper = (...args) => {
|
|
1822
|
-
const p = loadPluginImplementation().then(impl => {
|
|
1777
|
+
const p = loadPluginImplementation().then((impl) => {
|
|
1823
1778
|
const fn = createPluginMethod(impl, prop);
|
|
1824
1779
|
if (fn) {
|
|
1825
1780
|
const p = fn(...args);
|
|
@@ -1855,7 +1810,7 @@ const createCapacitor = (win) => {
|
|
|
1855
1810
|
callbackId,
|
|
1856
1811
|
}, callback);
|
|
1857
1812
|
};
|
|
1858
|
-
const p = new Promise(resolve => call.then(() => resolve({ remove })));
|
|
1813
|
+
const p = new Promise((resolve) => call.then(() => resolve({ remove })));
|
|
1859
1814
|
p.remove = async () => {
|
|
1860
1815
|
console.warn(`Using addListener() without 'await' is deprecated.`);
|
|
1861
1816
|
await remove();
|
|
@@ -1883,30 +1838,22 @@ const createCapacitor = (win) => {
|
|
|
1883
1838
|
registeredPlugins.set(pluginName, {
|
|
1884
1839
|
name: pluginName,
|
|
1885
1840
|
proxy,
|
|
1886
|
-
platforms: new Set([
|
|
1887
|
-
...Object.keys(jsImplementations),
|
|
1888
|
-
...(pluginHeader ? [platform] : []),
|
|
1889
|
-
]),
|
|
1841
|
+
platforms: new Set([...Object.keys(jsImplementations), ...(pluginHeader ? [platform] : [])]),
|
|
1890
1842
|
});
|
|
1891
1843
|
return proxy;
|
|
1892
1844
|
};
|
|
1893
|
-
const registerPlugin = ((_e = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _e === void 0 ? void 0 : _e.registerPlugin) || defaultRegisterPlugin;
|
|
1894
1845
|
// Add in convertFileSrc for web, it will already be available in native context
|
|
1895
1846
|
if (!cap.convertFileSrc) {
|
|
1896
|
-
cap.convertFileSrc = filePath => filePath;
|
|
1847
|
+
cap.convertFileSrc = (filePath) => filePath;
|
|
1897
1848
|
}
|
|
1898
1849
|
cap.getPlatform = getPlatform;
|
|
1899
1850
|
cap.handleError = handleError;
|
|
1900
1851
|
cap.isNativePlatform = isNativePlatform;
|
|
1901
1852
|
cap.isPluginAvailable = isPluginAvailable;
|
|
1902
|
-
cap.pluginMethodNoop = pluginMethodNoop;
|
|
1903
1853
|
cap.registerPlugin = registerPlugin;
|
|
1904
1854
|
cap.Exception = CapacitorException;
|
|
1905
1855
|
cap.DEBUG = !!cap.DEBUG;
|
|
1906
1856
|
cap.isLoggingEnabled = !!cap.isLoggingEnabled;
|
|
1907
|
-
// Deprecated props
|
|
1908
|
-
cap.platform = cap.getPlatform();
|
|
1909
|
-
cap.isNative = cap.isNativePlatform();
|
|
1910
1857
|
return cap;
|
|
1911
1858
|
};
|
|
1912
1859
|
const initCapacitorGlobal = (win) => (win.Capacitor = createCapacitor(win));
|
|
@@ -1921,26 +1868,15 @@ const Capacitor$1 = /*#__PURE__*/ initCapacitorGlobal(typeof globalThis !== 'und
|
|
|
1921
1868
|
? global
|
|
1922
1869
|
: {});
|
|
1923
1870
|
const registerPlugin = Capacitor$1.registerPlugin;
|
|
1924
|
-
/**
|
|
1925
|
-
* @deprecated Provided for backwards compatibility for Capacitor v2 plugins.
|
|
1926
|
-
* Capacitor v3 plugins should import the plugin directly. This "Plugins"
|
|
1927
|
-
* export is deprecated in v3, and will be removed in v4.
|
|
1928
|
-
*/
|
|
1929
|
-
Capacitor$1.Plugins;
|
|
1930
1871
|
|
|
1931
1872
|
/**
|
|
1932
1873
|
* Base class web plugins should extend.
|
|
1933
1874
|
*/
|
|
1934
1875
|
class WebPlugin {
|
|
1935
|
-
constructor(
|
|
1876
|
+
constructor() {
|
|
1936
1877
|
this.listeners = {};
|
|
1937
1878
|
this.retainedEventArguments = {};
|
|
1938
1879
|
this.windowListeners = {};
|
|
1939
|
-
if (config) {
|
|
1940
|
-
// TODO: add link to upgrade guide
|
|
1941
|
-
console.warn(`Capacitor WebPlugin "${config.name}" config object was deprecated in v3 and will be removed in v4.`);
|
|
1942
|
-
this.config = config;
|
|
1943
|
-
}
|
|
1944
1880
|
}
|
|
1945
1881
|
addListener(eventName, listenerFunc) {
|
|
1946
1882
|
let firstListener = false;
|
|
@@ -1983,17 +1919,18 @@ class WebPlugin {
|
|
|
1983
1919
|
}
|
|
1984
1920
|
return;
|
|
1985
1921
|
}
|
|
1986
|
-
listeners.forEach(listener => listener(data));
|
|
1922
|
+
listeners.forEach((listener) => listener(data));
|
|
1987
1923
|
}
|
|
1988
1924
|
hasListeners(eventName) {
|
|
1989
|
-
|
|
1925
|
+
var _a;
|
|
1926
|
+
return !!((_a = this.listeners[eventName]) === null || _a === void 0 ? void 0 : _a.length);
|
|
1990
1927
|
}
|
|
1991
1928
|
registerWindowListener(windowEventName, pluginEventName) {
|
|
1992
1929
|
this.windowListeners[pluginEventName] = {
|
|
1993
1930
|
registered: false,
|
|
1994
1931
|
windowEventName,
|
|
1995
1932
|
pluginEventName,
|
|
1996
|
-
handler: event => {
|
|
1933
|
+
handler: (event) => {
|
|
1997
1934
|
this.notifyListeners(pluginEventName, event);
|
|
1998
1935
|
},
|
|
1999
1936
|
};
|
|
@@ -2034,7 +1971,7 @@ class WebPlugin {
|
|
|
2034
1971
|
return;
|
|
2035
1972
|
}
|
|
2036
1973
|
delete this.retainedEventArguments[eventName];
|
|
2037
|
-
args.forEach(arg => {
|
|
1974
|
+
args.forEach((arg) => {
|
|
2038
1975
|
this.notifyListeners(eventName, arg);
|
|
2039
1976
|
});
|
|
2040
1977
|
}
|
|
@@ -2057,7 +1994,7 @@ class CapacitorCookiesPluginWeb extends WebPlugin {
|
|
|
2057
1994
|
async getCookies() {
|
|
2058
1995
|
const cookies = document.cookie;
|
|
2059
1996
|
const cookieMap = {};
|
|
2060
|
-
cookies.split(';').forEach(cookie => {
|
|
1997
|
+
cookies.split(';').forEach((cookie) => {
|
|
2061
1998
|
if (cookie.length <= 0)
|
|
2062
1999
|
return;
|
|
2063
2000
|
// Replace first "=" with CAP_COOKIE to prevent splitting on additional "="
|
|
@@ -2074,11 +2011,9 @@ class CapacitorCookiesPluginWeb extends WebPlugin {
|
|
|
2074
2011
|
const encodedKey = encode(options.key);
|
|
2075
2012
|
const encodedValue = encode(options.value);
|
|
2076
2013
|
// Clean & sanitize options
|
|
2077
|
-
const expires = `; expires=${
|
|
2014
|
+
const expires = options.expires ? `; expires=${options.expires.replace('expires=', '')}` : '';
|
|
2078
2015
|
const path = (options.path || '/').replace('path=', ''); // Default is "path=/"
|
|
2079
|
-
const domain = options.url != null && options.url.length > 0
|
|
2080
|
-
? `domain=${options.url}`
|
|
2081
|
-
: '';
|
|
2016
|
+
const domain = options.url != null && options.url.length > 0 ? `domain=${options.url}` : '';
|
|
2082
2017
|
document.cookie = `${encodedKey}=${encodedValue || ''}${expires}; path=${path}; ${domain};`;
|
|
2083
2018
|
}
|
|
2084
2019
|
catch (error) {
|
|
@@ -2097,9 +2032,7 @@ class CapacitorCookiesPluginWeb extends WebPlugin {
|
|
|
2097
2032
|
try {
|
|
2098
2033
|
const cookies = document.cookie.split(';') || [];
|
|
2099
2034
|
for (const cookie of cookies) {
|
|
2100
|
-
document.cookie = cookie
|
|
2101
|
-
.replace(/^ +/, '')
|
|
2102
|
-
.replace(/=.*/, `=;expires=${new Date().toUTCString()};path=/`);
|
|
2035
|
+
document.cookie = cookie.replace(/^ +/, '').replace(/=.*/, `=;expires=${new Date().toUTCString()};path=/`);
|
|
2103
2036
|
}
|
|
2104
2037
|
}
|
|
2105
2038
|
catch (error) {
|
|
@@ -2128,9 +2061,7 @@ const readBlobAsBase64 = async (blob) => new Promise((resolve, reject) => {
|
|
|
2128
2061
|
reader.onload = () => {
|
|
2129
2062
|
const base64String = reader.result;
|
|
2130
2063
|
// remove prefix "data:application/pdf;base64,"
|
|
2131
|
-
resolve(base64String.indexOf(',') >= 0
|
|
2132
|
-
? base64String.split(',')[1]
|
|
2133
|
-
: base64String);
|
|
2064
|
+
resolve(base64String.indexOf(',') >= 0 ? base64String.split(',')[1] : base64String);
|
|
2134
2065
|
};
|
|
2135
2066
|
reader.onerror = (error) => reject(error);
|
|
2136
2067
|
reader.readAsDataURL(blob);
|
|
@@ -2141,7 +2072,7 @@ const readBlobAsBase64 = async (blob) => new Promise((resolve, reject) => {
|
|
|
2141
2072
|
*/
|
|
2142
2073
|
const normalizeHttpHeaders = (headers = {}) => {
|
|
2143
2074
|
const originalKeys = Object.keys(headers);
|
|
2144
|
-
const loweredKeys = Object.keys(headers).map(k => k.toLocaleLowerCase());
|
|
2075
|
+
const loweredKeys = Object.keys(headers).map((k) => k.toLocaleLowerCase());
|
|
2145
2076
|
const normalized = loweredKeys.reduce((acc, key, index) => {
|
|
2146
2077
|
acc[key] = headers[originalKeys[index]];
|
|
2147
2078
|
return acc;
|
|
@@ -2162,7 +2093,7 @@ const buildUrlParams = (params, shouldEncode = true) => {
|
|
|
2162
2093
|
let item;
|
|
2163
2094
|
if (Array.isArray(value)) {
|
|
2164
2095
|
item = '';
|
|
2165
|
-
value.forEach(str => {
|
|
2096
|
+
value.forEach((str) => {
|
|
2166
2097
|
encodedValue = shouldEncode ? encodeURIComponent(str) : str;
|
|
2167
2098
|
item += `${key}=${encodedValue}&`;
|
|
2168
2099
|
});
|
|
@@ -2200,8 +2131,7 @@ const buildRequestInit = (options, extra = {}) => {
|
|
|
2200
2131
|
}
|
|
2201
2132
|
output.body = params.toString();
|
|
2202
2133
|
}
|
|
2203
|
-
else if (type.includes('multipart/form-data') ||
|
|
2204
|
-
options.data instanceof FormData) {
|
|
2134
|
+
else if (type.includes('multipart/form-data') || options.data instanceof FormData) {
|
|
2205
2135
|
const form = new FormData();
|
|
2206
2136
|
if (options.data instanceof FormData) {
|
|
2207
2137
|
options.data.forEach((value, key) => {
|
|
@@ -2218,8 +2148,7 @@ const buildRequestInit = (options, extra = {}) => {
|
|
|
2218
2148
|
headers.delete('content-type'); // content-type will be set by `window.fetch` to includy boundary
|
|
2219
2149
|
output.headers = headers;
|
|
2220
2150
|
}
|
|
2221
|
-
else if (type.includes('application/json') ||
|
|
2222
|
-
typeof options.data === 'object') {
|
|
2151
|
+
else if (type.includes('application/json') || typeof options.data === 'object') {
|
|
2223
2152
|
output.body = JSON.stringify(options.data);
|
|
2224
2153
|
}
|
|
2225
2154
|
return output;
|
|
@@ -2309,6 +2238,69 @@ class CapacitorHttpPluginWeb extends WebPlugin {
|
|
|
2309
2238
|
registerPlugin('CapacitorHttp', {
|
|
2310
2239
|
web: () => new CapacitorHttpPluginWeb(),
|
|
2311
2240
|
});
|
|
2241
|
+
/******** END HTTP PLUGIN ********/
|
|
2242
|
+
/******** SYSTEM BARS PLUGIN ********/
|
|
2243
|
+
/**
|
|
2244
|
+
* Available status bar styles.
|
|
2245
|
+
*/
|
|
2246
|
+
var SystemBarsStyle;
|
|
2247
|
+
(function (SystemBarsStyle) {
|
|
2248
|
+
/**
|
|
2249
|
+
* Light system bar content on a dark background.
|
|
2250
|
+
*
|
|
2251
|
+
* @since 8.0.0
|
|
2252
|
+
*/
|
|
2253
|
+
SystemBarsStyle["Dark"] = "DARK";
|
|
2254
|
+
/**
|
|
2255
|
+
* For dark system bar content on a light background.
|
|
2256
|
+
*
|
|
2257
|
+
* @since 8.0.0
|
|
2258
|
+
*/
|
|
2259
|
+
SystemBarsStyle["Light"] = "LIGHT";
|
|
2260
|
+
/**
|
|
2261
|
+
* The style is based on the device appearance or the underlying content.
|
|
2262
|
+
* If the device is using Dark mode, the system bars content will be light.
|
|
2263
|
+
* If the device is using Light mode, the system bars content will be dark.
|
|
2264
|
+
*
|
|
2265
|
+
* @since 8.0.0
|
|
2266
|
+
*/
|
|
2267
|
+
SystemBarsStyle["Default"] = "DEFAULT";
|
|
2268
|
+
})(SystemBarsStyle || (SystemBarsStyle = {}));
|
|
2269
|
+
/**
|
|
2270
|
+
* Available system bar types.
|
|
2271
|
+
*/
|
|
2272
|
+
var SystemBarType;
|
|
2273
|
+
(function (SystemBarType) {
|
|
2274
|
+
/**
|
|
2275
|
+
* The top status bar on both Android and iOS.
|
|
2276
|
+
*
|
|
2277
|
+
* @since 8.0.0
|
|
2278
|
+
*/
|
|
2279
|
+
SystemBarType["StatusBar"] = "StatusBar";
|
|
2280
|
+
/**
|
|
2281
|
+
* The navigation bar (or gesture bar on iOS) on both Android and iOS.
|
|
2282
|
+
*
|
|
2283
|
+
* @since 8.0.0
|
|
2284
|
+
*/
|
|
2285
|
+
SystemBarType["NavigationBar"] = "NavigationBar";
|
|
2286
|
+
})(SystemBarType || (SystemBarType = {}));
|
|
2287
|
+
class SystemBarsPluginWeb extends WebPlugin {
|
|
2288
|
+
async setStyle() {
|
|
2289
|
+
this.unavailable('not available for web');
|
|
2290
|
+
}
|
|
2291
|
+
async setAnimation() {
|
|
2292
|
+
this.unavailable('not available for web');
|
|
2293
|
+
}
|
|
2294
|
+
async show() {
|
|
2295
|
+
this.unavailable('not available for web');
|
|
2296
|
+
}
|
|
2297
|
+
async hide() {
|
|
2298
|
+
this.unavailable('not available for web');
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
registerPlugin('SystemBars', {
|
|
2302
|
+
web: () => new SystemBarsPluginWeb(),
|
|
2303
|
+
});
|
|
2312
2304
|
|
|
2313
2305
|
const pluginName = 'ScanditBarcodeNative';
|
|
2314
2306
|
// tslint:disable-next-line:variable-name
|