import { CoreComponent, EventArgs } from "cmf.core/src/core"; import * as ng from "@angular/core"; export declare enum KeyPadType { Long = 0, Decimal = 1, Integer = 5 } export declare enum KeyPadButtonType { Clear = 0, Backspace = 1, DecimalSeparator = 2, Ok = 3, Number = 4, Negate = 5 } export interface KeyPadButtonPressedEventArgs extends EventArgs { buttonType: KeyPadButtonType; value?: any; } /** * @whatItDoes * KeyPad component. Renders a small number keypad. * * @howToUse * This component is used with the inputs and outputs mentioned below. * * ### Inputs * `any` : **valueType** - The value type of this component ; * `any` : **type** - Define value types for keypad ; * `boolean` : **disabled** - Flag to disable keypad ; * `boolean` : **removeOkButton** - Flag to removeOkButton . * `boolean` : **disableOkButton** - Flag to disableOkButton (disables visually, but still emits the key press). * ### Outputs * `KeyPadButtonPressedEventArgs` : **selected** - Triggered when selected . * * ### Example * To use the component, assume this HTML Template as an example: * * ```HTML * * ``` * */ export declare class KeyPad extends CoreComponent { /** * Keypad type */ _valueType: KeyPadType; /** * Keypad is disabled */ _disabled: boolean; /** * Remove Ok button */ removeOkButton: boolean; /** * Disable Ok button */ disableOkButton: boolean; /** * Selected event */ selected: ng.EventEmitter; /** * Gets the keypad type */ /** * Sets the keypad type * As 'type' is reserved for Taura component typing, was added 'valueType' to fix this issue temporarily and * to not make breaking changes in the existing code. The attribute 'type' will be pointing to 'valueType'. */ type: any; /** * Gets the keypad valueType */ /** * Sets the keypad valueType */ valueType: any; /** * Gets the disabled property. */ /** * Sets the disabled property */ disabled: boolean; constructor(_elementRef: ng.ElementRef); /** * onKeyPadClick - build event and notify parent */ onKeyPadClick(event: MouseEvent): void; } export declare class KeyPadModule { }