import * as i0 from '@angular/core'; import { AfterViewInit, OnDestroy, ElementRef } from '@angular/core'; import { CustomFormControl } from '@odx/angular/cdk/custom-form-control'; /** * SpinboxComponent is a custom form control for numeric input which allows users to increment and decrement * the value using corresponding buttons. It supports keyboard navigation and automatic boundary checks for the values. * Extends CustomFormControl to provide additional behavior. * * @see {CustomFormControl} */ declare class SpinboxComponent extends CustomFormControl implements AfterViewInit, OnDestroy { private destroyIncrementListener; private destroyDecrementListener; private get inputElement(); protected decrementButton: ElementRef; protected incrementButton: ElementRef; readonly element: ElementRef; /** * The maximum allowable value for the spinbox. * * @type {number} * @default Number.POSITIVE_INFINITY */ max: number; /** * The minimum allowable value for the spinbox. * * @type {number} * @default Number.NEGATIVE_INFINITY */ min: number; /** * The value increment or decrement step for the spinbox. * * @type {number} * @default 1 */ step: number; constructor(); ngAfterViewInit(): void; ngOnDestroy(): void; updateValue(value: number): void; protected maxSteps({ code }: KeyboardEvent): void; protected checkAndUpdate(): void; private pressAndHold; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_max: unknown; static ngAcceptInputType_min: unknown; static ngAcceptInputType_step: unknown; } export { SpinboxComponent };