/** * DO NOT EDIT * * This file was automatically generated by * https://github.com/Polymer/tools/tree/master/packages/gen-typescript-declarations * * To modify these typings, edit the source file(s): * gold-cc-expiration-input.js */ import {IronFormElementBehavior} from '@polymer/iron-form-element-behavior/iron-form-element-behavior.js'; import {PaperInputBehavior} from '@polymer/paper-input/paper-input-behavior.js'; import {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js'; import {html} from '@polymer/polymer/lib/utils/html-tag.js'; import {LegacyElementMixin} from '@polymer/polymer/lib/legacy/legacy-element-mixin.js'; /** * `gold-cc-expiration-input` is a single-line text field with Material Design * styling for entering a credit card's expiration date * * * * * It may include an optional label, which by default is "Expiration Date". * * * * * ### Validation * * The input can check whether the entered date is a valid, future date. * * The input can be automatically validated as the user is typing by using * the `auto-validate` and `required` attributes. For manual validation, the * element also has a `validate()` method, which returns the validity of the * input as well sets any appropriate error messages and styles. * * See `Polymer.PaperInputBehavior` for more API docs. * * ### Styling * * See `Polymer.PaperInputContainer` for a list of custom properties used to * style this element. */ interface GoldCcExpirationInputElement extends PaperInputBehavior, IronFormElementBehavior, LegacyElementMixin, HTMLElement { /** * The label for this input. */ label: string|null|undefined; value: string|null|undefined; /** * The underlying dateInput is tabbable */ hostAttributes: object|null; ready(): void; created(): void; /** * Overidden from Polymer.PaperInputBehavior. */ validate(): any; /** * A handler that is called on input */ _onValueChanged(value: any, oldValue: any): void; _onDateChanged(event: any): void; _computeMonth(value: any): any; _computeYear(value: any): any; /** * Overidden from Polymer.IronControlState. */ _onFocusedChanged(focused: any): void; } export {GoldCcExpirationInputElement}; declare global { interface HTMLElementTagNameMap { "gold-cc-expiration-input": GoldCcExpirationInputElement; } }