import { t as Button } from "../../Button-Ou77FlfL.js"; import { TextInput, TextInputEventMap } from "../atoms/TextInput.js"; import { Backdrop } from "@scandit/web-datacapture-core/build/js/private/ui/atoms/Backdrop.js"; import { ScanditHTMLElement } from "@scandit/web-datacapture-core/build/js/private/utils/index.js"; //#region src/main/ui/organisms/LabelCaptureValidationFlowLayout.d.ts declare const SIDE_PANEL_MAX_WIDTH_PX = 960; /** * Custom events emitted by LabelCaptureValidationFlowLayout */ declare const LabelCaptureValidationFlowLayoutEvents: { readonly ClearAllButtonClicked: "scandit-clear-all-button-clicked"; readonly PauseButtonClicked: "scandit-pause-button-clicked"; readonly ClickedOutsideList: "scandit-clicked-outside-list"; readonly ValidationFlowLayoutChange: "scandit-validation-flow-layout-change"; }; interface LabelCaptureValidationFlowLayoutEventMap extends TextInputEventMap { [LabelCaptureValidationFlowLayoutEvents.ClearAllButtonClicked]: CustomEvent<{ inputs: TextInput[]; }>; [LabelCaptureValidationFlowLayoutEvents.PauseButtonClicked]: CustomEvent; [LabelCaptureValidationFlowLayoutEvents.ClickedOutsideList]: CustomEvent; [LabelCaptureValidationFlowLayoutEvents.ValidationFlowLayoutChange]: CustomEvent<{ formHeight: number; formWidth: number; buttonsHeight: number; isLandscape: boolean; /** True only when the side-panel landscape layout is active (landscape + width ≤ 960 px). */ isPanelOnRightSide: boolean; safeAreaInsetBottom: number; safeAreaInsetTop: number; safeAreaInsetLeft: number; safeAreaInsetRight: number; }>; } declare global { interface HTMLElementEventMap extends LabelCaptureValidationFlowLayoutEventMap {} } declare class LabelCaptureValidationFlowLayout extends ScanditHTMLElement { static tag: "scandit-label-capture-validation-flow-layout"; private formContainer_; private panel_; private backdrop_; private adaptiveRecognitionOverlay_; private clearButton_; private submitButton_; private pauseButton_; private gridLayoutContainer_; private buttonsContainer_; private resizeObserver_; private viewportMeta; private originalViewportContent; private onClearButtonClickHandler; private onPauseButtonClickHandler; private onHostClickHandler; private collapseAnimations; private focusedInput; private focusedInputOffset; private currentAnimationPromise; private supportsContainerQueries_; constructor(); private static createStyleElement; static create(): LabelCaptureValidationFlowLayout; static register(): void; get backdrop(): Backdrop | null; get clearButton(): Button | null; get submitButton(): Button | null; get pauseButton(): Button | null; getInputs(): TextInput[]; getInputByName(name: string): TextInput | undefined; connectedCallback(): void; disconnectedCallback(): void; private onClearButtonClick; private onPauseButtonClick; private onHostClick; private addButtonIcons; private dispatchLayoutChange; private disableViewportZoom; private restoreViewportZoom; private showButton; private hideButton; showValidationButtons(): void; showScanningButtons(): void; hideAllButtons(): void; get formSectionHeight(): number; get formSectionWidth(): number; get finishButtonText(): string; set finishButtonText(text: string); get restartButtonText(): string; set restartButtonText(text: string); get pauseButtonText(): string; set pauseButtonText(text: string); appendInputs(...inputs: TextInput[]): void; waitForAnimations(): Promise; /** * Cancel all collapse animations and reset every input to a clean state * (no inline pointer-events, no running animations). Use after restore or before a new move. */ private resetCurrentAnimations; private resetInputsState; moveInputToTop(focusedInput: TextInput): Promise; restoreInputsPositions(): Promise; showAdaptiveRecognitionOverlay(): void; hideAdaptiveRecognitionOverlay(): void; } declare global { interface HTMLElementTagNameMap { [LabelCaptureValidationFlowLayout.tag]: LabelCaptureValidationFlowLayout; } } //#endregion export { LabelCaptureValidationFlowLayout, LabelCaptureValidationFlowLayoutEventMap, LabelCaptureValidationFlowLayoutEvents, SIDE_PANEL_MAX_WIDTH_PX };