a zip code crypto-currency system good for red ONLY

base-input.d.ts 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. import { AfterContentInit, ElementRef, EventEmitter, Renderer } from '@angular/core';
  2. import { ControlValueAccessor } from '@angular/forms';
  3. import { NgControl } from '@angular/forms';
  4. import { IonicFormInput } from './form';
  5. import { Ion } from '../components/ion';
  6. import { Config } from '../config/config';
  7. import { Item } from '../components/item/item';
  8. import { Form } from './form';
  9. import { TimeoutDebouncer } from './debouncer';
  10. export interface CommonInput<T> extends ControlValueAccessor, AfterContentInit, IonicFormInput {
  11. id: string;
  12. disabled: boolean;
  13. value: T;
  14. ionFocus: EventEmitter<CommonInput<T>>;
  15. ionChange: EventEmitter<BaseInput<T>>;
  16. ionBlur: EventEmitter<BaseInput<T>>;
  17. initFocus(): void;
  18. isFocus(): boolean;
  19. _inputNormalize(val: any): T;
  20. _inputShouldChange(val: T): boolean;
  21. _inputUpdated(): void;
  22. }
  23. export declare class BaseInput<T> extends Ion implements CommonInput<T> {
  24. private _defaultValue;
  25. _form: Form;
  26. _item: Item;
  27. _ngControl: NgControl;
  28. _value: T;
  29. _onChanged: Function;
  30. _onTouched: Function;
  31. _isFocus: boolean;
  32. _labelId: string;
  33. _disabled: boolean;
  34. _debouncer: TimeoutDebouncer;
  35. _init: boolean;
  36. _initModel: boolean;
  37. id: string;
  38. /**
  39. * @output {Range} Emitted when the range selector drag starts.
  40. */
  41. ionFocus: EventEmitter<BaseInput<T>>;
  42. /**
  43. * @output {Range} Emitted when the range value changes.
  44. */
  45. ionChange: EventEmitter<BaseInput<T>>;
  46. /**
  47. * @output {Range} Emitted when the range selector drag ends.
  48. */
  49. ionBlur: EventEmitter<BaseInput<T>>;
  50. /**
  51. * @input {boolean} If true, the user cannot interact with this element.
  52. */
  53. disabled: boolean;
  54. constructor(config: Config, elementRef: ElementRef, renderer: Renderer, name: string, _defaultValue: T, _form: Form, _item: Item, _ngControl: NgControl);
  55. value: T;
  56. setValue(val: any): void;
  57. /**
  58. * @hidden
  59. */
  60. setDisabledState(isDisabled: boolean): void;
  61. /**
  62. * @hidden
  63. */
  64. writeValue(val: any): void;
  65. /**
  66. * @hidden
  67. */
  68. _writeValue(val: any): boolean;
  69. /**
  70. * @hidden
  71. */
  72. _fireIonChange(): void;
  73. /**
  74. * @hidden
  75. */
  76. registerOnChange(fn: Function): void;
  77. /**
  78. * @hidden
  79. */
  80. registerOnTouched(fn: any): void;
  81. /**
  82. * @hidden
  83. */
  84. _initialize(): void;
  85. /**
  86. * @hidden
  87. */
  88. _fireFocus(): void;
  89. /**
  90. * @hidden
  91. */
  92. _fireBlur(): void;
  93. /**
  94. * @hidden
  95. */
  96. _fireTouched(): void;
  97. /**
  98. * @hidden
  99. */
  100. private _setFocus(isFocused);
  101. /**
  102. * @hidden
  103. */
  104. private onChange();
  105. /**
  106. * @hidden
  107. */
  108. isFocus(): boolean;
  109. /**
  110. * @hidden
  111. */
  112. hasValue(): boolean;
  113. /**
  114. * @hidden
  115. */
  116. focusNext(): void;
  117. /**
  118. * @hidden
  119. */
  120. ngOnDestroy(): void;
  121. /**
  122. * @hidden
  123. */
  124. ngAfterContentInit(): void;
  125. /**
  126. * @hidden
  127. */
  128. initFocus(): void;
  129. /**
  130. * @hidden
  131. */
  132. _inputNormalize(val: any): T;
  133. /**
  134. * @hidden
  135. */
  136. _inputShouldChange(val: T): boolean;
  137. /**
  138. * @hidden
  139. */
  140. _inputChangeEvent(): any;
  141. /**
  142. * @hidden
  143. */
  144. _inputNgModelEvent(): any;
  145. /**
  146. * @hidden
  147. */
  148. _inputUpdated(): void;
  149. }