UNPKG

@scandit/web-datacapture-barcode

Version:

Scandit Data Capture SDK for the Web

103 lines (102 loc) 4.93 kB
import { t as BarcodeFindViewSettings } from "./BarcodeFindViewSettings-BBORmBR5.js"; import { t as BarcodeFind } from "./BarcodeFind-BxTFN3aw.js"; import { t as BarcodeFindViewUiListener } from "./BarcodeFindViewUiListener-IoaQ_suq.js"; import { Anchor, Camera, CameraSettings, DataCaptureContext, DataCaptureView, LogoStyle, Optional } from "@scandit/web-datacapture-core"; import { ScanditHTMLElement as ScanditHTMLElement$1 } from "@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js"; //#region src/main/find/BarcodeFindView.d.ts declare class BarcodeFindView extends ScanditHTMLElement$1 { static tag: "scandit-barcode-find-view"; shouldShowUserGuidance: boolean; shouldShowHints: boolean; shouldShowCarousel: boolean; shouldShowPauseButton: boolean; shouldShowFinishButton: boolean; shouldShowProgressBar: boolean; set shouldShowTorchControl(value: boolean); get shouldShowTorchControl(): boolean; torchControlPosition: Anchor; set shouldShowZoomControl(value: boolean); get shouldShowZoomControl(): boolean; zoomControlPosition: Anchor; textForItemListUpdatedWhenPausedHint: string | null; textForItemListUpdatedHint: string | null; textForTapShutterToResumeSearchHint: string | null; textForTapShutterToPauseScreenHint: string | null; textForMoveCloserToBarcodesHint: string | null; textForPointAtBarcodesToSearchHint: string | null; textForAllItemsFoundSuccessfullyHint: string | null; textForCollapseCardsButton: string | null; barcodeFindViewUiListener: BarcodeFindViewUiListener | null; private dataCaptureView; private layout; private presenter; private shutterButton; private finishButton; private progressBar; private cardList; private onShutterButtonClickedHandler; private onFinishButtonClickedHandler; private onTorchButtonClickedHandler; private torchSwitchIconButton; private _shouldShowTorchControl; private _isTorchAvailable; private zoomSwitchControl; private _shouldShowZoomControl; private onDotClickHandler; private barcodeFindBasicOverlay; private barcodeFindViewSettings; get camera(): Optional<Camera>; get logoStyle(): LogoStyle; set logoStyle(logoStyle: LogoStyle); get logoAnchor(): Anchor; set logoAnchor(logoAnchor: Anchor); static createWithSettings(elementOrDataCaptureView: HTMLElement | DataCaptureView, context: DataCaptureContext, barcodeFind: BarcodeFind, viewSettings: BarcodeFindViewSettings, cameraSettings?: CameraSettings): Promise<BarcodeFindView>; static create(elementOrDataCaptureView: HTMLElement | DataCaptureView, context: DataCaptureContext, barcodeFind: BarcodeFind): Promise<BarcodeFindView>; startSearching(): Promise<void>; stopSearching(): Promise<void>; pauseSearching(): Promise<void>; setListener(listener: BarcodeFindViewUiListener | null): void; setShouldShowUserGuidanceView(shouldShowUserGuidance: boolean): Promise<void>; setShouldShowHints(shouldShowHints: boolean): Promise<void>; setShouldShowCarousel(shouldShowCarousel: boolean): void; setShouldShowPauseButton(shouldShowPauseButton: boolean): void; setShouldShowFinishButton(shouldShowFinishButton: boolean): void; setShouldShowProgressBar(shouldShowProgressBar: boolean): void; setShouldShowTorchControl(shouldShowTorchControl: boolean): void; setShouldShowZoomControl(shouldShowZoomControl: boolean): void; setTorchControlPosition(torchControlPosition: Anchor): void; setZoomControlPosition(zoomControlPosition: Anchor): void; setTextForCollapseCardsButton(textForCollapseCardsButton: string): void; setTextForAllItemsFoundSuccessfullyHint(textForAllItemsFoundSuccessfullyHint: string): Promise<void>; setTextForPointAtBarcodesToSearchHint(textForPointAtBarcodesToSearchHint: string): Promise<void>; setTextForMoveCloserToBarcodesHint(textForMoveCloserToBarcodesHint: string): Promise<void>; setTextForTapShutterToPauseScreenHint(textForTapShutterToPauseScreenHint: string): Promise<void>; setTextForTapShutterToResumeSearchHint(textForTapShutterToResumeSearchHint: string): Promise<void>; setTextForItemListUpdatedWhenPausedHint(textForItemListUpdatedWhenPausedHint: string): Promise<void>; setTextForItemListUpdatedHint(textForItemListUpdatedHint: string): Promise<void>; private connectedCallback; private disconnectedCallback; private installZoomControl; private onShutterButtonClicked; private onTorchButtonClicked; private updateProgressBar; private setShutterButtonPulse; private switchToPaused; private moveCardOnTheFront; private switchToStarted; private toggleTorchIcon; private onFinishButtonClicked; private clearDots; private toggleDotPulse; private pointTransformation; private onDotClick; private createDotForTrackedBarcode; private renderDots; } declare global { interface HTMLElementTagNameMap { [BarcodeFindView.tag]: BarcodeFindView; } } //#endregion export { BarcodeFindView as t };