import { IClearable } from '../../../Behaviors/Clearable'; import { type IInvalidable } from '../../../Behaviors/Invalidable'; import { ISlottable } from '../../../Behaviors/Slottable'; import { TextAlignment } from '../../../Types/TextAlignment'; import { UpDownSpinPosition } from '../../../Types/UpDownSpinPosition'; import { NumberKeyboardMode } from '../../../Types/VirtualKeyboardMode'; import { NumberUpDownElement } from '../../Primitives/Abstracts/UpDown/NumberUpDownElement'; import type { INumberBoxElementProps } from './INumberBoxElementProps'; declare const NumberBoxElement_base: (abstract new (...args: Array) => import("../../../Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Slottable").ISlottableProps & ISlottable) & (abstract new (...args: Array) => import("../../../Behaviors/Clearable").IClearableProps & import("../../../Behaviors/Clearable").IClearableEvents & IClearable) & (abstract new (...args: Array) => import("../../../Behaviors/Appearanceable").IAppearanceableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Disableable").IDisableableProps) & (abstract new (...args: Array) => IInvalidable & import("../../../Behaviors/Invalidable").IInvalidableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Valueable").IValueableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Variantable").IVariantableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Labelable").ILabelableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Busyable").IBusyableProps) & typeof NumberUpDownElement & import("../../../Behaviors/Themeable").IThemeableCtor; /** * Number Box - A specialized input control for entering and manipulating numerical values. * * @description * The Number Box component provides a user-friendly interface for inputting numerical values with built-in validation, * formatting, and increment/decrement controls. It features spinner buttons for easy value adjustment, support for * minimum and maximum constraints, decimal precision control, and custom number formatting. The component handles * keyboard input validation, prevents invalid character entry, and provides accessibility features for screen readers. * Ideal for quantity selectors, price inputs, measurement fields, and any scenario requiring precise numeric input. * * @name Number Box * @element mosaik-numberbox * @category Inputs * * @slot prefix - Content placed before the input field. * @slot suffix - Content placed after the input field. * * @csspart focusRing - The focus ring indicator. * @csspart prefix - The prefix content container. * @csspart inner - The inner container wrapper. * @csspart label - The floating label element. * @csspart input - The number input field. * @csspart suffix - The suffix content container. * @csspart spinnerContainer - The spinner buttons container. * * @cssprop {Color} --number-box-background-color - The background color. * @cssprop {Color} --number-box-border-color - The border color. * @cssprop {String} --number-box-border-radius - The border radius. * @cssprop {String} --number-box-border-style - The border style. * @cssprop {String} --number-box-border-width - The border width. * @cssprop {String} --number-box-font-family - The font family. * @cssprop {String} --number-box-font-size - The font size. * @cssprop {String} --number-box-font-weight - The font weight. * @cssprop {Color} --number-box-foreground-color - The foreground color. * @cssprop {String} --number-box-gap - The gap between elements. * @cssprop {String} --number-box-height - The height. * @cssprop {String} --number-box-padding-bottom - The padding bottom. * @cssprop {String} --number-box-padding-left - The padding left. * @cssprop {String} --number-box-padding-right - The padding right. * @cssprop {String} --number-box-padding-top - The padding top. * @cssprop {String} --number-box-shadow - The shadow. * @cssprop {String} --number-box-transition-duration - The transition duration. * @cssprop {String} --number-box-width - The width. * * @dependency mosaik-focus-ring - Used for focus indication. * @dependency mosaik-updownspinner - Used for increment/decrement controls. * @dependency mosaik-button - Used for spinner buttons. * * @fires cleared {ClearedEvent} - Fired when the value is cleared. * @fires change {PropertyChangedEvent} - Emitted when the value changes. * @fires input {PropertyChangedEvent} - Emitted when the value changes. * @fires focus - Emitted when the element receives focus. * @fires blur - Emitted when the element loses focus. * * @example * ```html * * * ``` * * @public */ export declare class NumberBoxElement extends NumberBoxElement_base implements INumberBoxElementProps, IInvalidable, IClearable, ISlottable { private _inputElement; private _value; private _readonly; private _required; private _autofocus; private _name; private _keyboard; private _pattern; private _placeholder; private _autocomplete; private _spinPosition; private _spinner; private _textAlign; /** * @public */ constructor(); /** * Returns the `is` property. * The `is` property represents natural name of this element. * * @public * @static * @readonly */ static get is(): string; /** * Gets or sets the `value` property. * * @public * @attr * @override */ get value(): number | null; set value(value: number | null); /** * Gets or sets the `readonly` property. * * @public * @attr */ get readonly(): boolean; set readonly(value: boolean); /** * Gets or sets the `required` property. * * @public * @attr */ get required(): boolean; set required(value: boolean); /** * Gets or sets the `autofocus` property. * * @public * @attr * @override */ get autofocus(): boolean; set autofocus(value: boolean); /** * Gets or sets the `keyboard` property. * * @public * @attr */ get keyboard(): NumberKeyboardMode; set keyboard(value: NumberKeyboardMode); /** * Gets or sets the `name` property. * * @public * @attr */ get name(): string; set name(value: string); /** * Gets or sets the `pattern` property. * * @public */ get pattern(): string; set pattern(value: string); /** * Gets or sets the `placeholder` property. * * @public * @attr */ get placeholder(): string; set placeholder(value: string); /** * Gets or sets the `autocomplete` property. * * @public * @attr */ get autocomplete(): boolean; set autocomplete(value: boolean); /** * Gets or sets the `spinPosition` property. * * @public * @attr */ get spinPosition(): UpDownSpinPosition; set spinPosition(value: UpDownSpinPosition); /** * Gets or sets the `spinner` property. * * @public * @attr */ get spinner(): boolean; set spinner(value: boolean); /** * Determines the text alignment of the component. * * @public * @attr */ get textAlign(): TextAlignment; set textAlign(value: TextAlignment); /** * Determines whether the element has a prefix or not. * The Prefix is a slot that is displayed before the input. * * @private * @readonly * @attr */ get hasPrefix(): boolean; /** * Determines whether the element has a suffix or not. * The Suffix is a slot that is displayed after the input. * * @private * @readonly * @attr */ get hasSuffix(): boolean; /** * @public * @override */ focus(): void; /** * @public * @override */ blur(): void; /** * Clears the value of the element but not the validation. * * @public * @override */ clear(force?: boolean): boolean; /** * Resets the value, all kinds of validation and errors. * * @public * @override */ reset(): void; /** * Checks the validity of the element and returns `true` if it is valid; otherwise, `false`. * * @public * @override */ checkValidity(): boolean; /** * Will be called when the value of the element is changed. * * @private * @hidden * @template */ onChange(event: Event): void; /** * Will be called when the value of the element is changed. * * @private * @override * @hidden * @template */ onInput(event: InputEvent): void; /** * Will be called when the element receives focus. * * @private * @override * @hidden * @template */ onFocus(event: FocusEvent): void; /** * Will be called when the element loses focus. * * @private * @override * @hidden * @template */ onBlur(event: FocusEvent): void; /** * @protected * @override */ protected onApplyTemplate(): void; } /** * @public */ export declare namespace NumberBoxElement { type Props = INumberBoxElementProps; } /** * @public */ declare global { interface HTMLElementTagNameMap { 'mosaik-numberbox': NumberBoxElement; } } export {}; //# sourceMappingURL=NumberBoxElement.d.ts.map