UNPKG

smart-webcomponents-react

Version:

[![Price](https://img.shields.io/badge/price-COMMERCIAL-00JS8f7.svg)](https://jqwidgets.com/license/)

114 lines (109 loc) 4.17 kB
import {BaseElement, Animation} from "./smart.element" export interface PasswordInputProperties { /** * Enables or disables the element. * Default value: false */ disabled?: boolean; /** * Sets or gets the unlockKey which unlocks the product. * Default value: "" */ unlockKey?: string; /** * Sets or gets the language. Used in conjunction with the property messages. * Default value: "en" */ locale?: string; /** * Callback used to customize the format of the messages that are returned from the Localization Module. * Default value: null */ localizeFormatFunction?: any; /** * Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. * Default value: * { * "en": { * "propertyUnknownType": "'' property is with undefined 'type' member!", * "propertyInvalidValue": "Invalid '!", * "propertyInvalidValueType": "Invalid '!", * "elementNotInDOM": "Element does not exist in DOM! Please, add the element to the DOM, before invoking a method.", * "moduleUndefined": "Module is undefined.", * "missingReference": ".", * "htmlTemplateNotSuported": ": Browser doesn't support HTMLTemplate elements.", * "invalidTemplate": "' property accepts a string that must match the id of an HTMLTemplate element from the DOM.", * "invalidNode": "." * } * } */ messages?: any; /** * Determines the minimum number of characters inside the input in order to trigger the autocomplete functionality that will open the drop down and show the matched items. * Default value: 1 */ minLength?: number; /** * Sets or gets the name attribute for the element. Name is used when submiting data inside an HTML form. * Default value: "" */ name?: string; /** * Determines the placeholder of the input. * Default value: "" */ placeholder?: string; /** * Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. * Default value: false */ rightToLeft?: boolean; /** * Determines the theme for the element. Themes define the look of the elements. * Default value: "" */ theme?: string; /** * If is set to true, the element cannot be focused. * Default value: false */ unfocusable?: boolean; /** * Sets or gets the value of the element. * Default value: "" */ value?: string; } /** PasswordInput specifies a password field where the user can enter data. It is similar to the password text box, but this component does not have additional functionality for tooltips and popups. */ export interface PasswordInput extends BaseElement, PasswordInputProperties { /* Get a member by its name */ [name: string]: any; /** * This event is triggered when the value is changed and the focus moved out of the element. * @param event. The custom event. Custom data event was created with: ev.detail(oldValue, value) * oldValue - The previous value. * value - The new value. */ onChange: ((this: any, ev: Event) => any) | null; /** * This event is triggered on each key up event of the PasswordInput, if the value is changed. * @param event. The custom event. Custom data event was created with: ev.detail(oldValue, value) * oldValue - The previous value before it was changed. * value - The new value. */ onChanging?: ((this: any, ev: Event) => any) | ((this: any, ev: CustomEvent<any>) => any) | null; /** * Selects the text inside the input or if it is <b>readonly</b> then the element is focused. */ select(): void; } declare global { interface Document { createElement(tagName: "smart-password-input"): PasswordInput; querySelector(selectors: "smart-password-input"): PasswordInput | null; querySelectorAll(selectors: "smart-password-input"): NodeListOf<PasswordInput>; getElementsByTagName(qualifiedName: "smart-password-input"): HTMLCollectionOf<PasswordInput>; getElementsByName(elementName: "smart-password-input"): NodeListOf<PasswordInput>; } }