import { EventTypeWithTarget, JBBaseComponent } from "jb-core"; import { ValidationHelper, WithValidation } from "jb-validation"; import { JBFormInputStandards } from "jb-form"; //#region modules/jb-pin-input/web-component/lib/types.d.ts export type Elements = { inputsWrapper: HTMLDivElement; inputs: Array; messageBox: HTMLDivElement; }; export type ValidationResult = { isValid: boolean; message: string; }; export type ValidationValue = string; declare global { interface ElementInternals { setFormValue(value: string): void; } } export type JBPinInputEventType = EventTypeWithTarget; //#endregion //#region modules/jb-pin-input/web-component/lib/jb-pin-input.d.ts export declare class JBPinInputWebComponent extends JBBaseComponent implements WithValidation, JBFormInputStandards { #private; elements: Elements; static get formAssociated(): boolean; /** * @description char that replace value of empty input in value */ get emptyChar(): string; get disabled(): boolean; set disabled(value: boolean); get form(): HTMLFormElement | null; set required(value: boolean); get required(): boolean; get value(): string; set value(value: string); get inputMode(): string; set inputMode(value: string); get label(): string; set label(value: string); get charLength(): number; set charLength(value: number); get validation(): ValidationHelper; /** * Default and reset value. It initializes `value` until the live value is explicitly set. */ get initialValue(): string; set initialValue(value: string | null); reset(): void; formResetCallback(): void; formDisabledCallback(disabled: boolean): void; get isDirty(): boolean; get name(): string; set name(value: string); constructor(); connectedCallback(): void; callOnLoadEvent(): void; callOnInitEvent(): void; initWebComponent(): void; registerEventListener(): void; initProp(): void; static get observedAttributes(): string[]; attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void; onAttributeChange(name: string, value: string | null): void; clearValidationError(): void; /** * @description will determine if component trigger jb-validation mechanism automatically on user event or it just let user-developer handle validation mechanism by himself */ get isAutoValidationDisabled(): boolean; /** * @public * @description this method used to check for validity but doesn't show error to user and just return the result * this method used by #internal of component */ checkValidity(): boolean; /** * @public * @description this method used to check for validity and show error to user */ reportValidity(): boolean; get validationMessage(): string | null; get validity(): ValidityState | undefined; /** * focus on first empty input * @public */ focus(): void; } declare global { interface HTMLElementTagNameMap { "jb-pin-input": JBPinInputWebComponent; } } //#endregion //# sourceMappingURL=jb-pin-input.d.ts.map