@scandit/web-datacapture-core 8.0.0-beta.1 → 8.0.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/build/js/Camera.js +1 -1
- package/build/js/{DataCaptureContext-1YWunZAJ.d.ts → DataCaptureContext-8EuyQSL7.d.ts} +41 -8
- package/build/js/DataCaptureContext.d.ts +2 -1
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +2 -1
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +2 -1
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/Feedback.js +1 -1
- package/build/js/FrameData.d.ts +2 -1
- package/build/js/NotificationPresenter/index.d.ts +2 -1
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +2 -1
- package/build/js/NotificationPresenter/private/presets.d.ts +2 -1
- package/build/js/ScanditIcon.js +1 -1
- package/build/js/ScanditIconBuilder.js +1 -1
- package/build/js/Vibration.js +1 -1
- package/build/js/browserHelper.js +1 -1
- package/build/js/chunks/{chunk-ZEBGTTCX.js → chunk-2BBQRPKY.js} +1 -1
- package/build/js/chunks/{chunk-LMYUYJ3O.js → chunk-2EY4FBA3.js} +1 -1
- package/build/js/chunks/{chunk-D5RWW3H4.js → chunk-2VNXD4FC.js} +1 -1
- package/build/js/chunks/chunk-3HOGSYPB.js +1 -0
- package/build/js/chunks/chunk-4GP73VVU.js +97 -0
- package/build/js/chunks/{chunk-BXINLCBT.js → chunk-5MUFGMII.js} +1 -1
- package/build/js/chunks/{chunk-LYSTK36S.js → chunk-5TW3OTHU.js} +1 -1
- package/build/js/chunks/chunk-5YXBE5P2.js +1 -0
- package/build/js/chunks/{chunk-CXR3G5KR.js → chunk-7RMPOOYQ.js} +1 -1
- package/build/js/chunks/chunk-A5WVN3T4.js +1 -0
- package/build/js/chunks/chunk-AL6GJUID.js +1 -0
- package/build/js/chunks/chunk-B2I3SBRI.js +1 -0
- package/build/js/chunks/{chunk-GJGNNO4O.js → chunk-CF2DKFX2.js} +1 -1
- package/build/js/chunks/{chunk-AUONPF3B.js → chunk-EFFUWK5Z.js} +1 -1
- package/build/js/chunks/{chunk-CJOGOTBU.js → chunk-ELQAIHEQ.js} +1 -1
- package/build/js/chunks/{chunk-TH7Z32LP.js → chunk-GQVOVLRR.js} +1 -1
- package/build/js/chunks/chunk-GZMB3TRK.js +1 -0
- package/build/js/chunks/{chunk-O6PTTJES.js → chunk-HDY35RKY.js} +1 -1
- package/build/js/chunks/chunk-HTQSOUB3.js +6 -0
- package/build/js/chunks/chunk-I3U43DWH.js +1 -0
- package/build/js/chunks/{chunk-F2IJCZAS.js → chunk-IU22MD7N.js} +1 -1
- package/build/js/chunks/chunk-LXOZUOZU.js +1 -0
- package/build/js/chunks/chunk-MKTACV3Q.js +1 -0
- package/build/js/chunks/{chunk-SJOZM6AL.js → chunk-MTNFYUSF.js} +1 -1
- package/build/js/chunks/chunk-NQF3GUK2.js +1 -0
- package/build/js/chunks/{chunk-ULRY4SXF.js → chunk-PAPLDTB7.js} +1 -1
- package/build/js/chunks/{chunk-627VMN74.js → chunk-QDZ6UZHF.js} +1 -1
- package/build/js/chunks/{chunk-TAUJTFZC.js → chunk-RETAUGCJ.js} +1 -1
- package/build/js/chunks/{chunk-UQJHBITP.js → chunk-T3DJYPIP.js} +1 -1
- package/build/js/chunks/{chunk-4GKVQAVF.js → chunk-T4QDTXZN.js} +1 -1
- package/build/js/chunks/{chunk-SJ3K5O2N.js → chunk-TDOKACT7.js} +1 -1
- package/build/js/chunks/{chunk-5JAPQHXF.js → chunk-UBDDFAOX.js} +1 -1
- package/build/js/chunks/{chunk-3KWRROUJ.js → chunk-UMHCVFPN.js} +1 -1
- package/build/js/chunks/{chunk-L674VY5B.js → chunk-WAJ5PI3A.js} +1 -1
- package/build/js/chunks/{chunk-DPJEOND4.js → chunk-WNFUUIF3.js} +1 -1
- package/build/js/chunks/chunk-XVVC3E6G.js +35 -0
- package/build/js/index.d.ts +2 -1
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.d.ts +2 -1
- package/build/js/private/AsyncImageConverterBase.d.ts +44 -0
- package/build/js/private/AsyncImageConverterBase.js +1 -0
- package/build/js/private/AsyncImageConverterMainThread.d.ts +13 -0
- package/build/js/private/AsyncImageConverterMainThread.js +1 -0
- package/build/js/private/CameraAccess.js +1 -1
- package/build/js/private/CameraManager.d.ts +2 -1
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CameraPool.d.ts +2 -1
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +2 -1
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +2 -1
- package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +2 -1
- package/build/js/private/FrameReaders/FrameReader.d.ts +2 -1
- package/build/js/private/FrameReaders/FrameReader.js +1 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +2 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.js +1 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +4 -2
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +2 -1
- package/build/js/private/FrameReaders/index.js +1 -1
- package/build/js/private/NormalizedModuleLoaderOptions.d.ts +2 -1
- package/build/js/private/ViewControls+related.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +2 -1
- package/build/js/private/ViewsRegistry.d.ts +2 -1
- package/build/js/private/djinni-types/index.d.ts +48 -0
- package/build/js/private/djinni-types/index.js +1 -0
- package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
- package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
- package/build/js/private/ui/atoms/Backdrop.js +1 -1
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Card.d.ts +2 -2
- package/build/js/private/ui/atoms/Card.js +1 -1
- package/build/js/private/ui/atoms/CardList.js +1 -1
- package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ProgressBar.js +1 -1
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ShutterButton.js +1 -1
- package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/SvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Toast.d.ts +2 -1
- package/build/js/private/ui/atoms/Toast.js +1 -1
- package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
- package/build/js/private/ui/molecules/HintPresenter.d.ts +2 -1
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/utils/AsyncStateMachine.d.ts +14 -2
- package/build/js/private/utils/AsyncStateMachine.js +1 -1
- package/build/js/private/utils/index.js +1 -1
- package/build/js/private/utils/polyfillLoader.js +1 -1
- package/build/js/private/utils/replaceImagesInViewUtils.d.ts +2 -1
- package/build/js/private/utils/safeStorage.js +1 -1
- package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -1
- package/build/js/worker/AsyncImageConverterForwarder.d.ts +52 -0
- package/build/js/worker/AsyncImageConverterForwarder.js +1 -0
- package/build/js/worker/AsyncImageConverterWorker.d.ts +13 -0
- package/build/js/worker/AsyncImageConverterWorker.js +1 -0
- package/build/js/worker/WorkerMain.d.ts +2 -1
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/coreCapture.inlineWorker.d.ts +2 -1
- package/build/js/worker/coreCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +2 -1
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +2 -1
- package/build/js/worker/dataCaptureLoader.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +2 -1
- package/build/js/worker/index.d.ts +2 -1
- package/build/js/worker/index.js +1 -1
- package/package.json +1 -1
- package/build/js/chunks/chunk-6HH3HY5J.js +0 -6
- package/build/js/chunks/chunk-7B2VPGLP.js +0 -35
- package/build/js/chunks/chunk-BSIP2HDE.js +0 -1
- package/build/js/chunks/chunk-KMGMYFZI.js +0 -1
- package/build/js/chunks/chunk-MW5PTAU7.js +0 -1
- package/build/js/chunks/chunk-O3GEDPJS.js +0 -1
- package/build/js/chunks/chunk-XZO7D4BC.js +0 -1
- package/build/js/chunks/chunk-YNHLZS7P.js +0 -1
- package/build/js/chunks/chunk-ZNO7QV4M.js +0 -1
package/build/js/Camera.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Camera}from'./chunks/chunk-
|
|
1
|
+
export{a as Camera}from'./chunks/chunk-EFFUWK5Z.js';
|
|
@@ -18,6 +18,7 @@ import { ProgressInfo } from './LoadingStatus.js';
|
|
|
18
18
|
import { OverrideState } from './worker/OverrideState.js';
|
|
19
19
|
import { ScanditIcon } from './ScanditIcon.js';
|
|
20
20
|
import { ScanditHTMLElement } from './private/utils/ScanditHTMLElement.js';
|
|
21
|
+
import { ImagePlane, ImageConverter_statics, AsyncImageConverterInstance } from './private/djinni-types/index.js';
|
|
21
22
|
import { HTMLElementStateJSON } from './private/HtmlElementState.js';
|
|
22
23
|
import { AsyncStateMachine } from './private/utils/AsyncStateMachine.js';
|
|
23
24
|
|
|
@@ -201,7 +202,7 @@ interface ModuleLoader {
|
|
|
201
202
|
/**
|
|
202
203
|
* MESSAGES (ACTIONS) SENT TO THE WORKER
|
|
203
204
|
*/
|
|
204
|
-
type DataCaptureActionMessageKey = "createContext" | "deleteFrameData" | "dispose" | "documentVisibility" | "extractCentaurusLicense" | "flushAnalytics" | "isFeatureSupported" | "loadLibrary" | "onTap" | "processFrame" | "reportCameraProperties" | "requestFrameData" | "setFrameSource" | "setLogLevel" | "updateContext" | "hintPresenterV2update" | "getViewfinderInfo" | "getOpenSourceSoftwareLicenseInfo" | "addNativeOverlay" | "removeNativeOverlay";
|
|
205
|
+
type DataCaptureActionMessageKey = "convertToJPEGResult" | "createContext" | "deleteFrameData" | "dispose" | "documentVisibility" | "extractCentaurusLicense" | "flushAnalytics" | "isFeatureSupported" | "loadLibrary" | "onTap" | "processFrame" | "reportCameraProperties" | "requestFrameData" | "setFrameSource" | "setLogLevel" | "updateContext" | "hintPresenterV2update" | "getViewfinderInfo" | "getOpenSourceSoftwareLicenseInfo" | "addNativeOverlay" | "removeNativeOverlay";
|
|
205
206
|
interface ExtractCentaurusLicenseResponse {
|
|
206
207
|
centaurus: {
|
|
207
208
|
licenseKey: string;
|
|
@@ -228,6 +229,11 @@ interface DataCaptureActionMessage {
|
|
|
228
229
|
type LoadLibraryDataCaptureAction = DataCaptureActionMessage & LoadLibraryParameters & {
|
|
229
230
|
command: "loadLibrary";
|
|
230
231
|
};
|
|
232
|
+
type ConvertToJPEGResultDataCaptureAction = DataCaptureActionMessage & {
|
|
233
|
+
command: "convertToJPEGResult";
|
|
234
|
+
imageId: number;
|
|
235
|
+
result: Uint8Array;
|
|
236
|
+
};
|
|
231
237
|
type CreateContextDataCaptureAction = CreateContextParameters & DataCaptureActionMessage & {
|
|
232
238
|
command: "createContext";
|
|
233
239
|
};
|
|
@@ -302,7 +308,7 @@ type RemoveNativeOverlayAction = DataCaptureActionMessage & {
|
|
|
302
308
|
id: number;
|
|
303
309
|
};
|
|
304
310
|
};
|
|
305
|
-
type AnyDataCaptureActionMessage = CreateContextDataCaptureAction | DeleteFrameDataDataCaptureAction | DisposeDataCaptureAction | ExtractCentaurusLicenseDataCaptureAction | FlushAnalyticsDataCaptureAction | IsFeatureSupportedAction | LoadLibraryDataCaptureAction | OnTapAction | ProcessFrameDataCaptureAction | ReportCameraPropertiesDataCaptureAction | RequestFrameDataDataCaptureAction | SetFrameSourceDataCaptureAction | SetLogLevelDataCaptureAction | UpdateContextDataCaptureAction | VisibilityChangeAction | HintPresenterV2updateAction | GetViewfinderInfoAction | GetOpenSourceSoftwareLicenseInfoAction | AddNativeOverlayAction | RemoveNativeOverlayAction;
|
|
311
|
+
type AnyDataCaptureActionMessage = ConvertToJPEGResultDataCaptureAction | CreateContextDataCaptureAction | DeleteFrameDataDataCaptureAction | DisposeDataCaptureAction | ExtractCentaurusLicenseDataCaptureAction | FlushAnalyticsDataCaptureAction | IsFeatureSupportedAction | LoadLibraryDataCaptureAction | OnTapAction | ProcessFrameDataCaptureAction | ReportCameraPropertiesDataCaptureAction | RequestFrameDataDataCaptureAction | SetFrameSourceDataCaptureAction | SetLogLevelDataCaptureAction | UpdateContextDataCaptureAction | VisibilityChangeAction | HintPresenterV2updateAction | GetViewfinderInfoAction | GetOpenSourceSoftwareLicenseInfoAction | AddNativeOverlayAction | RemoveNativeOverlayAction;
|
|
306
312
|
/**
|
|
307
313
|
* MESSAGES EMITTED BY THE WORKER
|
|
308
314
|
*/
|
|
@@ -318,6 +324,16 @@ interface ConsoleWorkerMessage {
|
|
|
318
324
|
type: "console";
|
|
319
325
|
payload: string;
|
|
320
326
|
}
|
|
327
|
+
interface ConvertToJPEGMessage {
|
|
328
|
+
type: "convertToJPEG";
|
|
329
|
+
imageId: number;
|
|
330
|
+
width: number;
|
|
331
|
+
height: number;
|
|
332
|
+
data: Uint8Array;
|
|
333
|
+
planes: ImagePlane[];
|
|
334
|
+
orientation: number;
|
|
335
|
+
quality: number;
|
|
336
|
+
}
|
|
321
337
|
interface WorkerTaskIdWorkerMessage extends BaseDataCaptureCallbackMessage {
|
|
322
338
|
type: "workerTaskId";
|
|
323
339
|
command: string;
|
|
@@ -407,7 +423,7 @@ type StartUpdateTimerMessage = BaseDataCaptureCallbackMessage & {
|
|
|
407
423
|
type StopUpdateTimerMessage = BaseDataCaptureCallbackMessage & {
|
|
408
424
|
type: "stopUpdateTimer";
|
|
409
425
|
};
|
|
410
|
-
type DataCaptureCallbackMessage = ConsoleWorkerMessage | DidChangeStatusWorkerMessage | DrawWorkerMessage | HideHintWorkerMessage | IsFeatureSupportedMessage | LoadLibraryProgressMessage | PerformanceMetricsReportMessage | ShowHintWorkerMessage | StartObservingContextWorkerMessage | SuccessFeedbackWorkerMessage | UpdateHintWorkerMessage | WorkerTaskIdWorkerMessage | OnFrameProcessingStartedMessage | OnFrameProcessingFinishedMessage | OnFrameSkippedMessage | ShowToastMessage | HideToastMessage | ShowGuidanceMessage | HideGuidanceMessage | StartUpdateTimerMessage | StopUpdateTimerMessage;
|
|
426
|
+
type DataCaptureCallbackMessage = ConsoleWorkerMessage | ConvertToJPEGMessage | DidChangeStatusWorkerMessage | DrawWorkerMessage | HideHintWorkerMessage | IsFeatureSupportedMessage | LoadLibraryProgressMessage | PerformanceMetricsReportMessage | ShowHintWorkerMessage | StartObservingContextWorkerMessage | SuccessFeedbackWorkerMessage | UpdateHintWorkerMessage | WorkerTaskIdWorkerMessage | OnFrameProcessingStartedMessage | OnFrameProcessingFinishedMessage | OnFrameSkippedMessage | ShowToastMessage | HideToastMessage | ShowGuidanceMessage | HideGuidanceMessage | StartUpdateTimerMessage | StopUpdateTimerMessage;
|
|
411
427
|
/**
|
|
412
428
|
* OTHERS
|
|
413
429
|
*/
|
|
@@ -634,6 +650,8 @@ interface PlatformHintPresenter extends EmscriptenClassHandle {
|
|
|
634
650
|
stopUpdateTimer(): void;
|
|
635
651
|
}
|
|
636
652
|
interface Module extends EmscriptenModule {
|
|
653
|
+
ImageConverter: ImageConverter_statics;
|
|
654
|
+
AsyncImageConverterInstance: AsyncImageConverterInstance;
|
|
637
655
|
callMain: () => void;
|
|
638
656
|
canvas: OffscreenCanvas | undefined;
|
|
639
657
|
__emscripten_proxy_main?: Record<number | string | symbol, unknown>;
|
|
@@ -751,6 +769,10 @@ declare abstract class FrameReaderAbstract {
|
|
|
751
769
|
* eliminating the need to wait for the engine to finish before capturing the next frame.
|
|
752
770
|
*/
|
|
753
771
|
protected _framePool: Optional<WatermarkStack<Uint8ClampedArray>>;
|
|
772
|
+
/**
|
|
773
|
+
* Expected size of buffers in the pool. Used to validate buffers before recycling.
|
|
774
|
+
*/
|
|
775
|
+
protected _frameSize: number;
|
|
754
776
|
constructor(contextWebGL: WebGLRenderingContext, options?: PoolCapacityOptions | undefined);
|
|
755
777
|
abstract readFromSource(source: TexImageSource): FrameCapture;
|
|
756
778
|
abstract setup(): void;
|
|
@@ -766,7 +788,6 @@ declare class FrameReader extends FrameReaderAbstract {
|
|
|
766
788
|
colorType: ColorType;
|
|
767
789
|
private _framebuffer;
|
|
768
790
|
private _texture;
|
|
769
|
-
private _frameSize;
|
|
770
791
|
private get _initialized();
|
|
771
792
|
readFromSource(source: TexImageSource): FrameCapture;
|
|
772
793
|
setup(): void;
|
|
@@ -1076,12 +1097,21 @@ declare class DataCaptureEngine<M extends Module> {
|
|
|
1076
1097
|
protected gestureRecognizer: GestureRecognizer | null;
|
|
1077
1098
|
private gestureListener;
|
|
1078
1099
|
private webPlatformHintPresenter;
|
|
1100
|
+
private webAsyncImageConverterInstance;
|
|
1079
1101
|
constructor(moduleHandler: ModuleHandler<M>, workerFunctions: WorkerFunctions);
|
|
1080
1102
|
get Module(): M;
|
|
1081
1103
|
set isDrawLoopRunning(newValue: boolean);
|
|
1082
1104
|
get isDrawLoopRunning(): boolean;
|
|
1083
1105
|
convertToLoadableFrameData(frameData: WasmFrameData): PrivateLoadableFrameData;
|
|
1084
1106
|
createContext(createContextJSON: CreateContextParameters): EngineWorkerResponse<"createContext">;
|
|
1107
|
+
convertToJPEGResult(imageId: number, result: Uint8Array): void;
|
|
1108
|
+
/**
|
|
1109
|
+
* Returns the AsyncImageConverterInstance to be used in the worker thread. Depending on the availability of
|
|
1110
|
+
* OffscreenCanvas, a different implementation is returned.
|
|
1111
|
+
*/
|
|
1112
|
+
protected getAsyncImageConverterInstance(options: {
|
|
1113
|
+
quality: number;
|
|
1114
|
+
}): AsyncImageConverterInstance;
|
|
1085
1115
|
onTap(point: PointJSON): void;
|
|
1086
1116
|
hintPresenterV2Update(): void;
|
|
1087
1117
|
startReportingPerformanceMetrics(): void;
|
|
@@ -1419,6 +1449,7 @@ declare class DataCaptureContext implements Serializable<DataCaptureContextJSON>
|
|
|
1419
1449
|
protected static dataCaptureLoaders: Map<string, DataCaptureLoader>;
|
|
1420
1450
|
protected static libraryLocation: string | undefined;
|
|
1421
1451
|
private static userLicenseKey;
|
|
1452
|
+
private _asyncImageConverterInstance;
|
|
1422
1453
|
private static get moduleLicenseTextProviders();
|
|
1423
1454
|
private readonly framework;
|
|
1424
1455
|
private readonly runtimeEnvironment;
|
|
@@ -1503,9 +1534,6 @@ declare class DataCaptureContext implements Serializable<DataCaptureContextJSON>
|
|
|
1503
1534
|
removeMode(mode: DataCaptureMode): Promise<void>;
|
|
1504
1535
|
setMode(mode: DataCaptureMode): Promise<void>;
|
|
1505
1536
|
removeCurrentMode(): Promise<void>;
|
|
1506
|
-
/**
|
|
1507
|
-
* @deprecated Use removeCurrentMode instead.
|
|
1508
|
-
*/
|
|
1509
1537
|
removeAllModes(): Promise<void>;
|
|
1510
1538
|
dispose(): Promise<void>;
|
|
1511
1539
|
applySettings(settings: DataCaptureContextSettings): Promise<void>;
|
|
@@ -1526,7 +1554,12 @@ declare class DataCaptureContext implements Serializable<DataCaptureContextJSON>
|
|
|
1526
1554
|
private registerFrameHandler;
|
|
1527
1555
|
private unregisterFrameHandler;
|
|
1528
1556
|
private onVisibilityChange;
|
|
1557
|
+
private getAsyncImageConverterInstance;
|
|
1529
1558
|
private onWorkerMessage;
|
|
1559
|
+
/**
|
|
1560
|
+
* This method is only called from the worker thread when OffscreenCanvas is not available there.
|
|
1561
|
+
*/
|
|
1562
|
+
private convertImageToJPEG;
|
|
1530
1563
|
private subscribeToCameraManagerEvents;
|
|
1531
1564
|
private reportCameraProperties;
|
|
1532
1565
|
private onCameraAccessError;
|
|
@@ -1548,4 +1581,4 @@ declare class DataCaptureContext implements Serializable<DataCaptureContextJSON>
|
|
|
1548
1581
|
protected isFeatureSupported(feature: LicensedFeature): Promise<boolean>;
|
|
1549
1582
|
}
|
|
1550
1583
|
|
|
1551
|
-
export { type
|
|
1584
|
+
export { type SetFrameSourceDataCaptureAction as $, DataCaptureLoader as A, type PerformanceMetrics as B, type Change as C, type DataCaptureContextState as D, DataCaptureEngine as E, type FrameData as F, type Module as G, HintPresenter as H, type GenericHint as I, type AnyDataCaptureActionMessage as J, type AugmentedWorker as K, type ModuleHandler as L, type ModuleLoaderOptions as M, type DataCaptureCallbackMessage as N, type DataCaptureActionMessageKey as O, type PrivateChangeSet as P, type EngineWorkerResponse as Q, type ExtractCentaurusLicenseResponse as R, type RequestFrameDataResponse as S, type IsFeatureSupportedResponse as T, type GetViewfinderInfo as U, type GetOpenSourceSoftwareLicenseInfoResponse as V, type WorkerFunctions as W, type WorkerResponse as X, type LoadLibraryDataCaptureAction as Y, type ConvertToJPEGResultDataCaptureAction as Z, type CreateContextDataCaptureAction as _, type DataCaptureMode as a, type HintPresenterV2 as a$, type ProcessFrameDataCaptureAction as a0, type RequestFrameDataDataCaptureAction as a1, type DeleteFrameDataDataCaptureAction as a2, type VisibilityChangeAction as a3, type IsFeatureSupportedAction as a4, type UpdateContextDataCaptureAction as a5, type DisposeDataCaptureAction as a6, type FlushAnalyticsDataCaptureAction as a7, type ReportCameraPropertiesDataCaptureAction as a8, type SetLogLevelDataCaptureAction as a9, type EmscriptenClassHandle as aA, type DataCaptureContext$1 as aB, type DataCaptureImageBufferFrameSource as aC, type GestureListener as aD, type GestureRecognizer as aE, type DataCaptureView as aF, type JSONParseable as aG, type DataCaptureContextDeserializerResult as aH, type DataCaptureContextDeserializer as aI, type CaptureModeDeserializerInstance as aJ, type ModuleMirrorAxis as aK, type Vector as aL, type WasmFrameData as aM, HintFont as aN, HintTextAlignment as aO, HintWidth as aP, HintHeight as aQ, HintCornerStyle as aR, HintIcon as aS, HintAnchor as aT, type HintStyle as aU, GuidanceHintAnchor as aV, GuidanceHintStyle as aW, type GuidanceHint as aX, ToastHintStyle as aY, type ToastHint as aZ, LicensedFeature as a_, type ExtractCentaurusLicenseDataCaptureAction as aa, type OnTapAction as ab, type HintPresenterV2updateAction as ac, type GetViewfinderInfoAction as ad, type GetOpenSourceSoftwareLicenseInfoAction as ae, type AddNativeOverlayAction as af, type RemoveNativeOverlayAction as ag, type DataCaptureCallbackMessageKeys as ah, type SuccessFeedbackWorkerMessage as ai, type ShowHintWorkerMessage as aj, type UpdateHintWorkerMessage as ak, type IsFeatureSupportedMessage as al, type HideHintWorkerMessage as am, type PerformanceMetricsReportMessage as an, type DidTapTrackedBarcode as ao, type OnFrameProcessingStartedMessage as ap, type OnFrameProcessingFinishedMessage as aq, type OnFrameSkippedMessage as ar, type ShowToastMessage as as, type HideToastMessage as at, type ShowGuidanceMessage as au, type HideGuidanceMessage as av, type StartUpdateTimerMessage as aw, type StopUpdateTimerMessage as ax, type PayloadForCommand as ay, type DataCaptureWorker as az, type PrivateDataCaptureMode as b, type PlatformHintPresenter as b0, type LoadLibraryParameters as b1, type CreateContextParameters as b2, type UpdateContextParameters as b3, type SetFrameSourceParameters as b4, type ProcessFrameParameters as b5, type ReportCameraPropertiesParameters as b6, FrameReaderAbstract as b7, ColorType as b8, type PoolCapacityOptions as b9, type FrameCapture as ba, FrameReader as bb, MeteringMode as bc, CameraResolutionConstraint as bd, type ExtendedMediaTrackCapabilities as be, type ExtendedMediaTrackConstraintSet as bf, type GUI as bg, CameraManagerEvent as bh, type CameraManagerEventParameters as bi, CameraManager as bj, HintPresenterEvents as bk, type DataCaptureModeJSON as c, type PrivateDataCaptureComponent as d, type DataCaptureComponentJSON as e, type DataCaptureComponent as f, type PrivateDataCaptureContextOptions as g, type PrivateDataCaptureContext as h, type DataCaptureContextCreationOptions as i, type DataCaptureContextJSON as j, type PrivateFrameHandlerResponse as k, type PrivateFrameHandler as l, DataCaptureContext as m, type DataCaptureContextListener as n, type ContextStatusJSON as o, ContextStatus as p, PrivateMirrorAxis as q, type DataCaptureOverlay as r, type DataCaptureViewListener as s, type DataCaptureViewJSON as t, type DataCaptureViewConnectOptions as u, DataCaptureView$1 as v, type PrivateLoadableFrameData as w, convertToPublicFrameData as x, type ModuleLoader as y, type DataCaptureLoaderOptions as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import './Camera-CZ0Hl7v2.js';
|
|
3
3
|
import './Common.js';
|
|
4
|
-
export { C as Change, f as DataCaptureComponent, e as DataCaptureComponentJSON, m as DataCaptureContext, i as DataCaptureContextCreationOptions, j as DataCaptureContextJSON, D as DataCaptureContextState, a as DataCaptureMode, c as DataCaptureModeJSON, M as ModuleLoaderOptions, P as PrivateChangeSet, d as PrivateDataCaptureComponent, h as PrivateDataCaptureContext, g as PrivateDataCaptureContextOptions, b as PrivateDataCaptureMode, l as PrivateFrameHandler, k as PrivateFrameHandlerResponse } from './DataCaptureContext-
|
|
4
|
+
export { C as Change, f as DataCaptureComponent, e as DataCaptureComponentJSON, m as DataCaptureContext, i as DataCaptureContextCreationOptions, j as DataCaptureContextJSON, D as DataCaptureContextState, a as DataCaptureMode, c as DataCaptureModeJSON, M as ModuleLoaderOptions, P as PrivateChangeSet, d as PrivateDataCaptureComponent, h as PrivateDataCaptureContext, g as PrivateDataCaptureContextOptions, b as PrivateDataCaptureMode, l as PrivateFrameHandler, k as PrivateFrameHandlerResponse } from './DataCaptureContext-8EuyQSL7.js';
|
|
5
5
|
import './DataCaptureContextSettings.js';
|
|
6
6
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
7
7
|
import './logger.js';
|
|
@@ -25,3 +25,4 @@ import './private/FrameReaders/WatermarkStack.js';
|
|
|
25
25
|
import './private/CameraAccess.js';
|
|
26
26
|
import './LoadingStatus.js';
|
|
27
27
|
import './worker/OverrideState.js';
|
|
28
|
+
import './private/djinni-types/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as DataCaptureContext}from'./chunks/chunk-
|
|
1
|
+
export{b as DataCaptureContext}from'./chunks/chunk-HTQSOUB3.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { p as ContextStatus, o as ContextStatusJSON, n as DataCaptureContextListener, q as PrivateMirrorAxis } from './DataCaptureContext-
|
|
2
|
+
export { p as ContextStatus, o as ContextStatusJSON, n as DataCaptureContextListener, q as PrivateMirrorAxis } from './DataCaptureContext-8EuyQSL7.js';
|
|
3
3
|
import './Camera-CZ0Hl7v2.js';
|
|
4
4
|
import './ScanditIcon.js';
|
|
5
5
|
import './Common.js';
|
|
@@ -23,5 +23,6 @@ import './private/CameraAccess.js';
|
|
|
23
23
|
import './private/privateAccess.js';
|
|
24
24
|
import './LoadingStatus.js';
|
|
25
25
|
import './worker/OverrideState.js';
|
|
26
|
+
import './private/djinni-types/index.js';
|
|
26
27
|
import './private/HtmlElementState.js';
|
|
27
28
|
import './private/utils/AsyncStateMachine.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureVersion}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureVersion}from'./chunks/chunk-AL6GJUID.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import './Camera-CZ0Hl7v2.js';
|
|
3
3
|
import './Common.js';
|
|
4
|
-
export { r as DataCaptureOverlay, v as DataCaptureView, u as DataCaptureViewConnectOptions, t as DataCaptureViewJSON, s as DataCaptureViewListener } from './DataCaptureContext-
|
|
4
|
+
export { r as DataCaptureOverlay, v as DataCaptureView, u as DataCaptureViewConnectOptions, t as DataCaptureViewJSON, s as DataCaptureViewListener } from './DataCaptureContext-8EuyQSL7.js';
|
|
5
5
|
import './DataCaptureViewPlusRelated.js';
|
|
6
6
|
import './NotificationPresenter/NotificationPresenter.js';
|
|
7
7
|
import './ViewControls.js';
|
|
@@ -20,6 +20,7 @@ import './LoadingStatus.js';
|
|
|
20
20
|
import './worker/OverrideState.js';
|
|
21
21
|
import './ScanditIcon.js';
|
|
22
22
|
import './private/utils/ScanditHTMLElement.js';
|
|
23
|
+
import './private/djinni-types/index.js';
|
|
23
24
|
import './private/HtmlElementState.js';
|
|
24
25
|
import './private/utils/AsyncStateMachine.js';
|
|
25
26
|
import './NotificationPresenter/NotificationConfiguration.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureView}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureView}from'./chunks/chunk-T3DJYPIP.js';
|
package/build/js/Feedback.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Feedback}from'./chunks/chunk-
|
|
1
|
+
export{a as Feedback}from'./chunks/chunk-5MUFGMII.js';
|
package/build/js/FrameData.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { F as FrameData, w as PrivateLoadableFrameData, x as convertToPublicFrameData } from './DataCaptureContext-
|
|
2
|
+
export { F as FrameData, w as PrivateLoadableFrameData, x as convertToPublicFrameData } from './DataCaptureContext-8EuyQSL7.js';
|
|
3
3
|
import './ScanditIcon.js';
|
|
4
4
|
import './Camera-CZ0Hl7v2.js';
|
|
5
5
|
import './Common.js';
|
|
@@ -23,5 +23,6 @@ import './tsHelper.js';
|
|
|
23
23
|
import './private/CameraAccess.js';
|
|
24
24
|
import './LoadingStatus.js';
|
|
25
25
|
import './worker/OverrideState.js';
|
|
26
|
+
import './private/djinni-types/index.js';
|
|
26
27
|
import './private/HtmlElementState.js';
|
|
27
28
|
import './private/utils/AsyncStateMachine.js';
|
|
@@ -8,7 +8,7 @@ import '../Common.js';
|
|
|
8
8
|
import '../private/Serializable.js';
|
|
9
9
|
import '../ScanditIcon.js';
|
|
10
10
|
import '../private/utils/ScanditHTMLElement.js';
|
|
11
|
-
import '../DataCaptureContext-
|
|
11
|
+
import '../DataCaptureContext-8EuyQSL7.js';
|
|
12
12
|
import '../Camera-CZ0Hl7v2.js';
|
|
13
13
|
import '../private/privateAccess.js';
|
|
14
14
|
import '../DataCaptureContextSettings.js';
|
|
@@ -25,5 +25,6 @@ import '../tsHelper.js';
|
|
|
25
25
|
import '../private/CameraAccess.js';
|
|
26
26
|
import '../LoadingStatus.js';
|
|
27
27
|
import '../worker/OverrideState.js';
|
|
28
|
+
import '../private/djinni-types/index.js';
|
|
28
29
|
import '../private/HtmlElementState.js';
|
|
29
30
|
import '../private/utils/AsyncStateMachine.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { H as HintPresenter } from '../../DataCaptureContext-
|
|
2
|
+
import { H as HintPresenter } from '../../DataCaptureContext-8EuyQSL7.js';
|
|
3
3
|
import { NotificationConfiguration } from '../NotificationConfiguration.js';
|
|
4
4
|
import { NotificationPresenter } from '../NotificationPresenter.js';
|
|
5
5
|
import '../../Camera-CZ0Hl7v2.js';
|
|
@@ -22,6 +22,7 @@ import '../../LoadingStatus.js';
|
|
|
22
22
|
import '../../worker/OverrideState.js';
|
|
23
23
|
import '../../ScanditIcon.js';
|
|
24
24
|
import '../../private/utils/ScanditHTMLElement.js';
|
|
25
|
+
import '../../private/djinni-types/index.js';
|
|
25
26
|
import '../../private/HtmlElementState.js';
|
|
26
27
|
import '../../private/utils/AsyncStateMachine.js';
|
|
27
28
|
import '../NotificationStyle.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { I as GenericHint } from '../../DataCaptureContext-
|
|
2
|
+
import { I as GenericHint } from '../../DataCaptureContext-8EuyQSL7.js';
|
|
3
3
|
import { NotificationConfiguration } from '../NotificationConfiguration.js';
|
|
4
4
|
import '../../Camera-CZ0Hl7v2.js';
|
|
5
5
|
import '../../Common.js';
|
|
@@ -23,6 +23,7 @@ import '../../tsHelper.js';
|
|
|
23
23
|
import '../../private/CameraAccess.js';
|
|
24
24
|
import '../../LoadingStatus.js';
|
|
25
25
|
import '../../worker/OverrideState.js';
|
|
26
|
+
import '../../private/djinni-types/index.js';
|
|
26
27
|
import '../../private/HtmlElementState.js';
|
|
27
28
|
import '../../private/utils/AsyncStateMachine.js';
|
|
28
29
|
|
package/build/js/ScanditIcon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-
|
|
1
|
+
export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-2EY4FBA3.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-
|
|
1
|
+
export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-2VNXD4FC.js';export{a as ScanditIconShape}from'./chunks/chunk-2EY4FBA3.js';
|
package/build/js/Vibration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Vibration}from'./chunks/chunk-
|
|
1
|
+
export{a as Vibration}from'./chunks/chunk-GQVOVLRR.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BrowserHelper}from'./chunks/chunk-
|
|
1
|
+
export{a as BrowserHelper}from'./chunks/chunk-MTNFYUSF.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$
|
|
1
|
+
import {a as a$3}from'./chunk-UWBNF47P.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a as a$1}from'./chunk-LSZZVJ6B.js';var l="scandit-arrows-up",t=class t extends a{constructor(){super();let a=this.attachShadow({mode:"open"});a.innerHTML=this.render(),a.prepend(t.createStyleElement().cloneNode(true));}static createStyleElement(){return a$1`${t.tag}{display:flex}${t.tag}[hidden]{display:none}.arrow{animation:blink 1.5s infinite;animation-duration:2s}.arrow-1{animation-delay:0s}.arrow-2{animation-delay:.5s}.arrow-3{animation-delay:1s}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}`}static create(){return document.createElement(t.tag)}static register(){a$2({[t.tag]:t});}render(){return a$3`<svg width="120" height="45" viewBox="0 0 120 45" fill="none"><path class="arrow arrow-1" opacity="0.8" d="M105.561 45C108.718 45 109.586 40.6607 106.672 39.4467L61.1539 20.4808C60.4154 20.1731 59.5846 20.1731 58.8462 20.4808L13.328 39.4467C10.4143 40.6607 11.2822 45 14.4387 45C14.8094 45 15.1767 44.9286 15.5205 44.7897L58.8762 27.2723C59.5971 26.981 60.4029 26.981 61.1239 27.2723L104.48 44.7897C104.823 44.9286 105.191 45 105.561 45Z" fill="white"></path><path class="arrow arrow-2" opacity="0.6" d="M94.6148 26C96.8169 26 97.4022 22.9609 95.3576 22.143L60.7428 8.29711C60.266 8.10638 59.734 8.10638 59.2572 8.29711L24.6424 22.143C22.5978 22.9609 23.1831 26 25.3852 26H25.6254C25.873 26 26.1184 25.954 26.3492 25.8644L59.2762 13.081C59.7418 12.9002 60.2582 12.9002 60.7238 13.081L93.6508 25.8644C93.8816 25.954 94.127 26 94.3746 26H94.6148Z" fill="white"></path><path class="arrow arrow-3" opacity="0.4" d="M81.2078 10C82.8264 10 83.1945 7.7315 81.659 7.21967L60.6325 0.210819C60.2219 0.073974 59.7781 0.0739735 59.3675 0.210818L38.341 7.21967C36.8055 7.73149 37.1736 10 38.7922 10C38.93 10 39.0671 9.98003 39.1992 9.94072L59.4295 3.91979C59.8018 3.809 60.1982 3.809 60.5705 3.91979L80.8008 9.94072C80.9329 9.98003 81.07 10 81.2078 10Z" fill="white"></path></svg>`}};t.tag=l;var e=t;e.register();export{e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e}from'./chunk-TB4UKDDI.js';import {a as a$
|
|
1
|
+
import {e}from'./chunk-TB4UKDDI.js';import {a as a$1}from'./chunk-UWBNF47P.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a as a$3}from'./chunk-LSZZVJ6B.js';import {n as n$1}from'./chunk-TPQTY3KB.js';var v=(e=>(e.Circle="circle",e.Square="square",e))(v||{}),c="--width",l="--height",h="--background-color",d="--stroke-color",p="--stroke-width",n=class n extends a{constructor(){super();this.onSlotChangeListener=this.onSlotChange.bind(this);let e=this.attachShadow({mode:"open"});e.innerHTML=a$1`<div class="container shape-none"><slot></div>`,this.containerElement=e.querySelector(".container"),this.setStylePropertyValue(c,"32px"),this.setStylePropertyValue(l,"32px"),this.setStylePropertyValue(h,"transparent"),this.setStylePropertyValue(d,"#fff"),this.setStylePropertyValue(p,"0px"),e.append(n.createStyleElement().cloneNode(true));}get iconColor(){var o,r;let e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),t=(r=e==null?void 0:e.assignedElements())!=null?r:[];return n$1.fromHex(t[0].fill)}set iconColor(e){this.render({propChanged:"iconcolor",value:`#${e.toJSON()}`});}get backgroundColor(){return n$1.fromHex(this.getStylePropertyValue(h))}set backgroundColor(e){this.render({propChanged:"backgroundcolor",value:`#${e.toJSON()}`});}get backgroundStrokeColor(){return n$1.fromHex(this.getStylePropertyValue(d))}set backgroundStrokeColor(e){this.render({propChanged:"backgroundstrokecolor",value:`#${e.toJSON()}`});}get backgroundStrokeWidth(){let e=this.getStylePropertyValue(p);return Number.parseInt(e,10)}set backgroundStrokeWidth(e){this.render({propChanged:"backgroundstrokewidth",value:String(e)});}get backgroundShape(){var t;let e=(t=/shape-(.*)/.exec(this.containerElement.classList.value))==null?void 0:t[1];return e!=null&&e!=="none"?e:null}set backgroundShape(e){this.render({propChanged:"backgroundshape",value:e!=null?e:"none"});}set width(e){this.render({propChanged:"width",value:String(e)}),this.updateIconSizeProperty(e,this.height);}get width(){let e=this.getStylePropertyValue(c).replace("px","");return Number.parseInt(e,10)}set height(e){this.render({propChanged:"height",value:String(e)}),this.updateIconSizeProperty(this.width,e);}get height(){let e=this.getStylePropertyValue(l).replace("px","");return Number.parseInt(e,10)}static create(){return n.register(),document.createElement(n.tag)}static register(){a$2({[n.tag]:n});}static createStyleElement(){return a$3`:host{display:inline-block;--width:32px;--height:32px;--background-color:#0000;--stroke-color:#fff;--stroke-width:0px}:host([hidden]){display:none}.container{background-color:var(--background-color);box-shadow:0 1px 2px 0 #${e.withAlpha(.3).toJSON()};height:calc(var(--height) - var(--stroke-width));outline:var(--stroke-width) solid var(--stroke-color);position:relative;width:calc(var(--width) - var(--stroke-width))}.container.shape-${"circle"}{border-radius:50%}.container.shape-${"square"}{border-radius:0}.container.shape-none{box-shadow:unset}::slotted(*){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}`}onSlotChange(){this.updateIconSizeProperty(this.width,this.height);}connectedCallback(){var t;let e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",this.onSlotChangeListener);}disconnectedCallback(){var t;let e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.removeEventListener("slotchange",this.onSlotChangeListener);}render({propChanged:e,value:t}){switch(e){case "width":{this.setStylePropertyValue(c,`${t}px`);break}case "height":{this.setStylePropertyValue(l,`${t}px`);break}case "backgroundstrokewidth":{this.setStylePropertyValue(p,`${t}px`);break}case "backgroundstrokecolor":{this.setStylePropertyValue(d,t);break}case "backgroundcolor":{this.setStylePropertyValue(h,t);break}case "iconcolor":{this.updateFillIconColor(n$1.fromHex(t));break}case "backgroundshape":{let o=t;this.containerElement.classList.toggle("shape-circle",o==="circle"),this.containerElement.classList.toggle("shape-square",o==="square"),this.containerElement.classList.toggle("shape-none",o==="none");break}}}attributeChangedCallback(e,t,o){this.render({propChanged:e,value:o});}getStylePropertyValue(e){return this.containerElement.style.getPropertyValue(e)}setStylePropertyValue(e,t){this.containerElement.style.setProperty(e,t);}updateIconSizeProperty(e,t){var s,u;let o=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(u=o==null?void 0:o.assignedElements())!=null?u:[],a=Math.min(e,t);for(let C of r)C.size=a/2;}setIconSize(e){var r,a;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),o=(a=t==null?void 0:t.assignedElements())!=null?a:[];for(let s of o)s.size=e;}updateFillIconColor(e){var r,a;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),o=(a=t==null?void 0:t.assignedElements())!=null?a:[];for(let s of o)s.fill=`#${e.toJSON()}`;}};n.tag="scandit-barcode-icon-container",n.observedAttributes=["width","height","backgroundstrokecolor","backgroundcolor","backgroundstrokewidth","iconcolor","backgroundshape"];var y=n;export{v as a,y as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-2EY4FBA3.js';import {n}from'./chunk-TPQTY3KB.js';var h=(t=>(t.ChevronRight="chevronRight",t.ChevronLeft="chevronLeft",t.ChevronDown="chevronDown",t.ChevronUp="chevronUp",t.ArrowUp="arrowUp",t.ArrowRight="arrowRight",t.ArrowDown="arrowDown",t.ArrowLeft="arrowLeft",t.Checkmark="checkMark",t.XMark="xMark",t.QuestionMark="questionMark",t.ExclamationMark="exclamationMark",t.LowStock="lowStock",t.ExpiredItem="expiredItem",t.ToPick="toPick",t.InspectItem="inspectItem",t.WrongItem="wrongItem",t.FragileItem="fragileItem",t.StarOutlined="starOutlined",t.StarFilled="starFilled",t.StarHalfFilled="starHalfFilled",t.Print="print",t.CameraSwitch="cameraSwitch",t.DotFiveX="dotFiveX",t.OneX="oneX",t.TwoX="twoX",t.Restart="restart",t.Keyboard="keyboard",t))(h||{}),l={arrowDown:import('../private/ui/atoms/ArrowDownSvgIcon.js').then(o=>o.ArrowDownSvgIcon),arrowLeft:import('../private/ui/atoms/ArrowLeftSvgIcon.js').then(o=>o.ArrowLeftSvgIcon),arrowRight:import('../private/ui/atoms/ArrowRightSvgIcon.js').then(o=>o.ArrowRightSvgIcon),arrowUp:import('../private/ui/atoms/ArrowUpSvgIcon.js').then(o=>o.ArrowUpSvgIcon),chevronRight:import('../private/ui/atoms/ChevronRightSvgIcon.js').then(o=>o.ChevronRightSvgIcon),chevronLeft:import('../private/ui/atoms/ChevronLeftSvgIcon.js').then(o=>o.ChevronLeftSvgIcon),chevronDown:import('../private/ui/atoms/ChevronDownSvgIcon.js').then(o=>o.ChevronDownSvgIcon),chevronUp:import('../private/ui/atoms/ChevronUpSvgIcon.js').then(o=>o.ChevronUpSvgIcon),toPick:import('../private/ui/atoms/ToPickSvgIcon.js').then(o=>o.ToPickSvgIcon),xMark:import('../private/ui/atoms/CrossSvgIcon.js').then(o=>o.CrossSvgIcon),checkMark:import('../private/ui/atoms/CheckSvgIcon.js').then(o=>o.CheckSvgIcon),questionMark:import('../private/ui/atoms/QuestionMarkSvgIcon.js').then(o=>o.QuestionMarkSvgIcon),exclamationMark:import('../private/ui/atoms/ExclamationMarkSvgIcon.js').then(o=>o.ExclamationMarkSvgIcon),lowStock:import('../private/ui/atoms/LowStockSvgIcon.js').then(o=>o.LowStockSvgIcon),inspectItem:import('../private/ui/atoms/HandLensCheckSvgIcon.js').then(o=>o.HandLensCheckSvgIcon),expiredItem:import('../private/ui/atoms/CalendarExclamationMarkSvgIcon.js').then(o=>o.CalendarExclamationMarkSvgIcon),wrongItem:import('../private/ui/atoms/WrongItemSvgIcon.js').then(o=>o.WrongItemSvgIcon),fragileItem:import('../private/ui/atoms/GlassSvgIcon.js').then(o=>o.GlassSvgIcon),starOutlined:import('../private/ui/atoms/StarOutlinedSvgIcon.js').then(o=>o.StarOutlinedSvgIcon),starFilled:import('../private/ui/atoms/StarFilledSvgIcon.js').then(o=>o.StarFilledSvgIcon),starHalfFilled:import('../private/ui/atoms/StarHalfFilledSvgIcon.js').then(o=>o.StarHalfFilledSvgIcon),print:import('../private/ui/atoms/PrinterSvgIcon.js').then(o=>o.PrinterSvgIcon),cameraSwitch:import('../private/ui/atoms/CameraSwitchSvgIcon.js').then(o=>o.CameraSwitchSvgIcon),oneX:import('../private/ui/atoms/OnexSvgIcon.js').then(o=>o.OnexSvgIcon),twoX:import('../private/ui/atoms/TwoxSvgIcon.js').then(o=>o.TwoxSvgIcon),dotFiveX:import('../private/ui/atoms/Dot5xSvgIcon.js').then(o=>o.Dot5xSvgIcon),restart:import('../private/ui/atoms/RestartSvgIcon.js').then(o=>o.RestartSvgIcon),keyboard:import('../private/ui/atoms/KeyboardSvgIcon.js').then(o=>o.KeyboardSvgIcon)},a=class{constructor(){this.iconName=null;this.backgroundShape=null;this.iconColor=n.fromHex("#fff");this.backgroundStrokeWidth=0;this.width=32;this.height=32;this.iconSize=null;}withIcon(r){return this.iconName=r,this}withBackgroundShape(r){return this.backgroundShape=r,this}withIconColor(r){return this.iconColor=r,this}withBackgroundColor(r){return this.backgroundColor=r,this}withBackgroundStrokeColor(r){return this.backgroundStrokeColor=r,this}withBackgroundStrokeWidth(r){return this.backgroundStrokeWidth=r,this}async build(){let r=b.create();r.backgroundStrokeWidth=this.backgroundStrokeWidth,r.backgroundShape=this.backgroundShape,this.backgroundColor!=null&&(r.backgroundColor=this.backgroundColor),this.backgroundStrokeColor!=null&&(r.backgroundStrokeColor=this.backgroundStrokeColor);let n=null;if(this.iconName!=null){let i=await l[this.iconName];i.register(),n=i.create(),r.append(n);}return r.width=this.width,r.height=this.height,r.iconColor=this.iconColor,n!=null&&this.iconSize!=null&&(n.size=this.iconSize),r}withIconSize(r){return this.iconSize=r,this}withWidth(r){return this.width=r,this}withHeight(r){return this.height=r,this}};export{h as a,l as b,a as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-O7TZTIHO.js';import {a as a$2}from'./chunk-XR65N6EG.js';var a=class{constructor(e,t){this.workerFunctions=e;this.options=t;this.imageIdCounter=0;this.conversions=new Map;}convertToJpeg(e,t){let r=this.imageIdCounter++,n=new a$1;this.conversions.set(r,n);let o=e.toBitmap();return this.workerFunctions.postMessage({type:"convertToJPEG",imageId:r,width:e.getWidth(),height:e.getHeight(),data:o,planes:e.getPlanes(),orientation:t,quality:this.options.quality},Array.from(new Set([o.buffer]))),n.promise}onConvertToJPEGResult(e,t){let r=this.conversions.get(e);r?(r.resolve(t),this.conversions.delete(e)):a$2.warn(`AsyncImageConverterForwarder: Conversion for imageId ${e} not found in Map`);}};export{a};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import {a}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-EV4OEANA.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a as a$3}from'./chunk-LSZZVJ6B.js';import {n}from'./chunk-TPQTY3KB.js';var s=a`
|
|
2
|
+
<div role="listitem">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
</div>
|
|
5
|
+
`,o=class o extends a$1{constructor(){super();let r=this.attachShadow({mode:"open"});r.innerHTML=s,r.append(o.createStyleElement().cloneNode(true));}set haloGlow(r){this.toggleAttribute("halo-glow",r);}get haloGlow(){return this.hasAttribute("halo-glow")}set border(r){this.toggleAttribute("border",r);}get border(){return this.hasAttribute("border")}set backgroundColor(r){this.style.setProperty("--background-color",`#${r.toJSON()}`);}get backgroundColor(){return n.fromHex(this.style.getPropertyValue("--background-color"))}set borderColor(r){this.style.setProperty("--border-color",`#${r.toJSON()}`);}get borderColor(){return n.fromHex(this.style.getPropertyValue("--border-color"))}static create(){return document.createElement(o.tag)}static register(){a$2({[o.tag]:o});}static createStyleElement(){return a$3`
|
|
6
|
+
@keyframes gradientShift {
|
|
7
|
+
0% { background-position-x: 100%; }
|
|
8
|
+
50% { background-position-x: 0%; }
|
|
9
|
+
100% { background-position-x: 100%; }
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host {
|
|
13
|
+
--corner-radius: 0.75rem;
|
|
14
|
+
--background-color: #FFFFFFE6;
|
|
15
|
+
--border-color: transparent;
|
|
16
|
+
--glow-max-width: 1rem;
|
|
17
|
+
--glow-horizontal-edge: min(5%, var(--glow-max-width));
|
|
18
|
+
--glow-vertical-edge: min(20%, var(--glow-max-width));
|
|
19
|
+
--glow-horizontal-start: calc(100% - var(--glow-horizontal-edge));
|
|
20
|
+
--glow-vertical-start: calc(100% - var(--glow-vertical-edge));
|
|
21
|
+
--card-min-height: 5rem;
|
|
22
|
+
--card-max-height: 100px;
|
|
23
|
+
display: block;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
font-family: "SF Pro Text", sans-serif;
|
|
26
|
+
backdrop-filter: saturate(180%) blur(20px);
|
|
27
|
+
box-shadow: 0px 2px 6px 0px rgba(18, 22, 25, 0.15);
|
|
28
|
+
background-color: var(--background-color);
|
|
29
|
+
min-width: 200px;
|
|
30
|
+
min-height: var(--card-min-height);
|
|
31
|
+
max-height: var(--card-max-height);
|
|
32
|
+
border: 1px solid var(--border-color);
|
|
33
|
+
border-radius: var(--corner-radius);
|
|
34
|
+
position: relative;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host > div[role="listitem"] {
|
|
39
|
+
position: relative;
|
|
40
|
+
height: 100%;
|
|
41
|
+
min-height: var(--card-min-height);
|
|
42
|
+
max-height: var(--card-max-height);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:host([halo-glow]) > div::before {
|
|
46
|
+
content: "";
|
|
47
|
+
position: absolute;
|
|
48
|
+
inset: 0px;
|
|
49
|
+
background: linear-gradient(
|
|
50
|
+
90deg,
|
|
51
|
+
#FFD89B 0%,
|
|
52
|
+
#FF6F91 20%,
|
|
53
|
+
#A566FF 45%,
|
|
54
|
+
#64F6FF 70%,
|
|
55
|
+
#FFD89B 100%
|
|
56
|
+
);
|
|
57
|
+
background-size: 300% 300%;
|
|
58
|
+
border-radius: var(--corner-radius);
|
|
59
|
+
filter: blur(30px);
|
|
60
|
+
opacity: 1;
|
|
61
|
+
animation: gradientShift 8s ease-in-out 0.2s infinite;
|
|
62
|
+
transition: opacity 0.3s ease;
|
|
63
|
+
z-index: 0;
|
|
64
|
+
mask:
|
|
65
|
+
linear-gradient(to right, black 0%, transparent var(--glow-horizontal-edge), transparent var(--glow-horizontal-start), black 100%),
|
|
66
|
+
linear-gradient(to bottom, black 0%, transparent var(--glow-vertical-edge), transparent var(--glow-vertical-start), black 100%);
|
|
67
|
+
mask-composite: intersect;
|
|
68
|
+
-webkit-mask:
|
|
69
|
+
linear-gradient(to right, black 0%, transparent var(--glow-horizontal-edge), transparent var(--glow-horizontal-start), black 100%),
|
|
70
|
+
linear-gradient(to bottom, black 0%, transparent var(--glow-vertical-edge), transparent var(--glow-vertical-start), black 100%);
|
|
71
|
+
-webkit-mask-composite: source-over;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host([halo-glow]) > div::before {
|
|
75
|
+
opacity: 0.75;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// halo glow and border: halo glow wins over border
|
|
79
|
+
:host([halo-glow][border]) > div::before {
|
|
80
|
+
opacity: 0.75 !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host(:not([halo-glow])) > div::before {
|
|
84
|
+
opacity: 0;
|
|
85
|
+
animation: none;
|
|
86
|
+
mask: none;
|
|
87
|
+
-webkit-mask: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:host([border]) {
|
|
91
|
+
--border-color: rgba(217, 33, 33, 1);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:host(:not([border])) {
|
|
95
|
+
--border-color: transparent;
|
|
96
|
+
}
|
|
97
|
+
`}};o.tag="scandit-basic-card";var e=o;e.register();export{e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-LH2NI5UL.js';import {a}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-LH2NI5UL.js';import {a}from'./chunk-GQVOVLRR.js';var o=class r{constructor(i,e){this._vibration=null;this._sound=null;this._vibration=i,this._sound=e;}static get defaultFeedback(){return new r(a.defaultVibration,a$1.defaultSound)}get vibration(){return this._vibration}get sound(){return this._sound}emit(){this.sound&&this.sound.play(),this.vibration&&this.vibration.vibrate();}toJSONObject(){let i={};return this.sound!==null&&(i.sound=this.sound.toJSONObject()),this.vibration!==null&&(i.vibration=this.vibration.toJSONObject()),i}};export{o as a};
|