UNPKG

@trimble-oss/moduswebcomponents

Version:

Modus Web Components is a modern, accessible UI library built with Stencil JS that provides reusable web components following Trimble's Modus design system. This updated version focuses on improved flexibility, enhanced theming options, comprehensive cust

65 lines (64 loc) 2.38 kB
import { EventEmitter } from '../../stencil-public-runtime'; import { IInputFeedbackProp, ModusSize } from '../types'; /** * A customizable input component used to create number inputs with types */ export declare class ModusWcNumberInput { private inheritedAttributes; private readonly resolveEffectiveId; /** Reference to the host element */ el: HTMLElement; /** Hint for form autofill feature. */ autoComplete?: 'on' | 'off'; /** Indicates that the input should have a border. */ bordered?: boolean; /** The currency symbol to display. */ currencySymbol?: string; /** Custom CSS class to apply to the input. */ customClass?: string; /** Whether the form control is disabled. */ disabled?: boolean; /** Feedback to render below the input. */ feedback?: IInputFeedbackProp; /** The ID of the input element. */ inputId?: string; /** Determine the control's relative ordering for sequential focus navigation (typically with the Tab key). */ inputTabIndex?: number; /** The text to display within the label. */ label?: string; /** The input's maximum value. */ max?: number; /** The input's minimum value. */ min?: number; /** Name of the form control. Submitted with the form as part of a name/value pair. */ name?: string; /** Text that appears in the form control when it has no value set. */ placeholder?: string; /** Whether the value is editable. */ readOnly?: boolean; /** A value is required for the form to be submittable. */ required?: boolean; /** The size of the input. */ size?: ModusSize; /** The granularity that the value adheres to. */ step?: number; /** Type of form control. */ type?: 'number' | 'range'; /** The value of the control. */ value: string; /** Event emitted when the input loses focus. */ inputBlur: EventEmitter<FocusEvent>; /** Event emitted when the input value changes. */ inputChange: EventEmitter<InputEvent>; /** Event emitted when the input gains focus. */ inputFocus: EventEmitter<FocusEvent>; componentWillLoad(): void; private getSharedClasses; private getInputClasses; private getCurrencyClasses; private getWrapperClasses; private handleBlur; private handleFocus; private handleInput; render(): any; }