@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
53 lines (52 loc) • 1.89 kB
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
import { IInputFeedbackProp, ModusSize } from '../types';
/**
* A customizable date picker component used to create date inputs.
*
* Adheres to WCAG 2.2 standards.
*/
export declare class ModusWcDate {
private inheritedAttributes;
/** Reference to the host element */
el: HTMLElement;
/** Indicates that the input should have a border. */
bordered?: boolean;
/** 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;
/** Maximum date value. */
max?: string;
/** Minimum date value. */
min?: string;
/** Name of the form control. Submitted with the form as part of a name/value pair. */
name?: string;
/** Whether the value is editable. */
readOnly?: boolean;
/** A value is required or must be checked for the form to be submittable. */
required?: boolean;
/** The size of the input. */
size?: ModusSize;
/** The value of the control (yyyy-mm-dd). */
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 getClasses;
private handleBlur;
private handleFocus;
private handleInput;
render(): any;
}