intl-tel-input 26.9.2 → 27.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/angular/README.md +1 -1
  2. package/angular/dist/IntlTelInput.d.ts +97 -0
  3. package/angular/dist/IntlTelInput.js +4812 -0
  4. package/angular/dist/IntlTelInputWithUtils.d.ts +3 -0
  5. package/angular/{build → dist}/IntlTelInputWithUtils.js +2342 -2096
  6. package/{build → dist}/css/demo.css +1 -1
  7. package/dist/css/intlTelInput-no-assets.css +1 -0
  8. package/dist/css/intlTelInput-no-assets.min.css +1 -0
  9. package/dist/css/intlTelInput.css +1 -0
  10. package/dist/css/intlTelInput.min.css +1 -0
  11. package/dist/img/flags.png +0 -0
  12. package/dist/img/flags.webp +0 -0
  13. package/dist/img/flags@2x.png +0 -0
  14. package/dist/img/flags@2x.webp +0 -0
  15. package/dist/js/data.d.ts +1616 -0
  16. package/{build → dist}/js/data.js +5 -17
  17. package/dist/js/data.min.js +7 -0
  18. package/dist/js/data.mjs +1708 -0
  19. package/{build/js/i18n/ar/index.js → dist/js/i18n/ar.js} +1 -0
  20. package/{build/js/i18n/bg/index.js → dist/js/i18n/bg.js} +1 -0
  21. package/{build/js/i18n/bn/index.js → dist/js/i18n/bn.js} +1 -0
  22. package/{build/js/i18n/bs/index.js → dist/js/i18n/bs.js} +1 -0
  23. package/{build/js/i18n/ca/index.js → dist/js/i18n/ca.js} +1 -0
  24. package/{build/js/i18n/cs/index.js → dist/js/i18n/cs.js} +1 -0
  25. package/{build/js/i18n/da/index.js → dist/js/i18n/da.js} +1 -0
  26. package/{build/js/i18n/de/index.js → dist/js/i18n/de.js} +1 -0
  27. package/{build/js/i18n/el/index.js → dist/js/i18n/el.js} +1 -0
  28. package/{build/js/i18n/en/index.js → dist/js/i18n/en.js} +3 -2
  29. package/{build/js/i18n/es/index.js → dist/js/i18n/es.js} +1 -0
  30. package/{build/js/i18n/et/index.js → dist/js/i18n/et.js} +1 -0
  31. package/{build/js/i18n/fa/index.js → dist/js/i18n/fa.js} +1 -0
  32. package/{build/js/i18n/fi/index.js → dist/js/i18n/fi.js} +1 -0
  33. package/{build/js/i18n/fr/index.js → dist/js/i18n/fr.js} +1 -0
  34. package/{build/js/i18n/hi/index.js → dist/js/i18n/hi.js} +1 -0
  35. package/{build/js/i18n/hr/index.js → dist/js/i18n/hr.js} +1 -0
  36. package/{build/js/i18n/hu/index.js → dist/js/i18n/hu.js} +1 -0
  37. package/{build/js/i18n/id/index.js → dist/js/i18n/id.js} +1 -0
  38. package/{build → dist}/js/i18n/index.js +1 -0
  39. package/{build/js/i18n/it/index.js → dist/js/i18n/it.js} +1 -0
  40. package/{build/js/i18n/ja/index.js → dist/js/i18n/ja.js} +1 -0
  41. package/{build/js/i18n/kn/index.js → dist/js/i18n/kn.js} +1 -0
  42. package/{build/js/i18n/ko/index.js → dist/js/i18n/ko.js} +1 -0
  43. package/{build/js/i18n/lt/index.js → dist/js/i18n/lt.js} +1 -0
  44. package/{build/js/i18n/mr/index.js → dist/js/i18n/mr.js} +1 -0
  45. package/{build/js/i18n/nl/index.js → dist/js/i18n/nl.js} +1 -0
  46. package/{build/js/i18n/no/index.js → dist/js/i18n/no.js} +1 -0
  47. package/{build/js/i18n/pl/index.js → dist/js/i18n/pl.js} +1 -0
  48. package/{build/js/i18n/pt/index.js → dist/js/i18n/pt.js} +1 -0
  49. package/{build/js/i18n/ro/index.js → dist/js/i18n/ro.js} +1 -0
  50. package/{build/js/i18n/ru/index.js → dist/js/i18n/ru.js} +1 -0
  51. package/{build/js/i18n/sk/index.js → dist/js/i18n/sk.js} +1 -0
  52. package/{build/js/i18n/sl/index.js → dist/js/i18n/sl.js} +1 -0
  53. package/{build/js/i18n/sq/index.js → dist/js/i18n/sq.js} +1 -0
  54. package/{build/js/i18n/sr/index.js → dist/js/i18n/sr.js} +1 -0
  55. package/{build/js/i18n/sv/index.js → dist/js/i18n/sv.js} +1 -0
  56. package/{build/js/i18n/te/index.js → dist/js/i18n/te.js} +1 -0
  57. package/{build/js/i18n/th/index.js → dist/js/i18n/th.js} +1 -0
  58. package/{build/js/i18n/tr/index.js → dist/js/i18n/tr.js} +1 -0
  59. package/dist/js/i18n/types.js +1 -0
  60. package/{build/js/i18n/uk/index.js → dist/js/i18n/uk.js} +1 -0
  61. package/{build/js/i18n/ur/index.js → dist/js/i18n/ur.js} +1 -0
  62. package/{build/js/i18n/uz/index.js → dist/js/i18n/uz.js} +1 -0
  63. package/{build/js/i18n/vi/index.js → dist/js/i18n/vi.js} +1 -0
  64. package/{build/js/i18n/zh-hk/index.js → dist/js/i18n/zh-hk.js} +1 -0
  65. package/{build/js/i18n/zh/index.js → dist/js/i18n/zh.js} +1 -0
  66. package/dist/js/i18n.d.ts +1697 -0
  67. package/dist/js/intlTelInput.d.ts +1773 -0
  68. package/{build → dist}/js/intlTelInput.js +228 -215
  69. package/dist/js/intlTelInput.min.js +25 -0
  70. package/{react/build/IntlTelInput.cjs → dist/js/intlTelInput.mjs} +230 -340
  71. package/{build → dist}/js/intlTelInputWithUtils.js +531 -498
  72. package/dist/js/intlTelInputWithUtils.min.js +25 -0
  73. package/{react/build/IntlTelInputWithUtils.cjs → dist/js/intlTelInputWithUtils.mjs} +530 -621
  74. package/{build → dist}/js/utils.js +46 -47
  75. package/package.json +122 -122
  76. package/react/README.md +1 -1
  77. package/react/dist/IntlTelInput.d.ts +20 -0
  78. package/react/{build → dist}/IntlTelInput.js +274 -255
  79. package/react/dist/IntlTelInputWithUtils.d.ts +4 -0
  80. package/react/{build → dist}/IntlTelInputWithUtils.js +580 -542
  81. package/svelte/README.md +1 -1
  82. package/svelte/src/IntlTelInput.svelte +199 -0
  83. package/svelte/src/IntlTelInputWithUtils.svelte +15 -0
  84. package/svelte/src/shims.d.ts +4 -0
  85. package/vue/README.md +1 -1
  86. package/vue/dist/IntlTelInput-D7r449B2.js +2577 -0
  87. package/vue/dist/IntlTelInput.js +5 -0
  88. package/vue/dist/IntlTelInputWithUtils.js +49385 -0
  89. package/vue/dist/src/IntlTelInput.vue.d.ts +35 -0
  90. package/vue/dist/src/index.d.ts +4 -0
  91. package/vue/dist/src/indexWithUtils.d.ts +3 -0
  92. package/angular/build/IntlTelInput.js +0 -4501
  93. package/angular/build/types/intl-tel-input/angular.d.ts +0 -65
  94. package/angular/build/types/intl-tel-input/angularWithUtils.d.ts +0 -65
  95. package/angular/build/types/intl-tel-input/data.d.ts +0 -20
  96. package/angular/build/types/intl-tel-input/i18n/ar/index.d.ts +0 -3
  97. package/angular/build/types/intl-tel-input/i18n/bg/index.d.ts +0 -3
  98. package/angular/build/types/intl-tel-input/i18n/bn/index.d.ts +0 -3
  99. package/angular/build/types/intl-tel-input/i18n/bs/index.d.ts +0 -3
  100. package/angular/build/types/intl-tel-input/i18n/ca/index.d.ts +0 -3
  101. package/angular/build/types/intl-tel-input/i18n/cs/index.d.ts +0 -3
  102. package/angular/build/types/intl-tel-input/i18n/da/index.d.ts +0 -3
  103. package/angular/build/types/intl-tel-input/i18n/de/index.d.ts +0 -3
  104. package/angular/build/types/intl-tel-input/i18n/el/index.d.ts +0 -3
  105. package/angular/build/types/intl-tel-input/i18n/en/index.d.ts +0 -3
  106. package/angular/build/types/intl-tel-input/i18n/es/index.d.ts +0 -3
  107. package/angular/build/types/intl-tel-input/i18n/et/index.d.ts +0 -3
  108. package/angular/build/types/intl-tel-input/i18n/fa/index.d.ts +0 -3
  109. package/angular/build/types/intl-tel-input/i18n/fi/index.d.ts +0 -3
  110. package/angular/build/types/intl-tel-input/i18n/fr/index.d.ts +0 -3
  111. package/angular/build/types/intl-tel-input/i18n/hi/index.d.ts +0 -3
  112. package/angular/build/types/intl-tel-input/i18n/hr/index.d.ts +0 -3
  113. package/angular/build/types/intl-tel-input/i18n/hu/index.d.ts +0 -3
  114. package/angular/build/types/intl-tel-input/i18n/id/index.d.ts +0 -3
  115. package/angular/build/types/intl-tel-input/i18n/index.d.ts +0 -45
  116. package/angular/build/types/intl-tel-input/i18n/it/index.d.ts +0 -3
  117. package/angular/build/types/intl-tel-input/i18n/ja/index.d.ts +0 -3
  118. package/angular/build/types/intl-tel-input/i18n/kn/index.d.ts +0 -3
  119. package/angular/build/types/intl-tel-input/i18n/ko/index.d.ts +0 -3
  120. package/angular/build/types/intl-tel-input/i18n/lt/index.d.ts +0 -3
  121. package/angular/build/types/intl-tel-input/i18n/mr/index.d.ts +0 -3
  122. package/angular/build/types/intl-tel-input/i18n/nl/index.d.ts +0 -3
  123. package/angular/build/types/intl-tel-input/i18n/no/index.d.ts +0 -3
  124. package/angular/build/types/intl-tel-input/i18n/pl/index.d.ts +0 -3
  125. package/angular/build/types/intl-tel-input/i18n/pt/index.d.ts +0 -3
  126. package/angular/build/types/intl-tel-input/i18n/ro/index.d.ts +0 -3
  127. package/angular/build/types/intl-tel-input/i18n/ru/index.d.ts +0 -3
  128. package/angular/build/types/intl-tel-input/i18n/sk/index.d.ts +0 -3
  129. package/angular/build/types/intl-tel-input/i18n/sl/index.d.ts +0 -3
  130. package/angular/build/types/intl-tel-input/i18n/sq/index.d.ts +0 -3
  131. package/angular/build/types/intl-tel-input/i18n/sr/index.d.ts +0 -3
  132. package/angular/build/types/intl-tel-input/i18n/sv/index.d.ts +0 -3
  133. package/angular/build/types/intl-tel-input/i18n/te/index.d.ts +0 -3
  134. package/angular/build/types/intl-tel-input/i18n/th/index.d.ts +0 -3
  135. package/angular/build/types/intl-tel-input/i18n/tr/index.d.ts +0 -3
  136. package/angular/build/types/intl-tel-input/i18n/types.d.ts +0 -10
  137. package/angular/build/types/intl-tel-input/i18n/uk/index.d.ts +0 -3
  138. package/angular/build/types/intl-tel-input/i18n/ur/index.d.ts +0 -3
  139. package/angular/build/types/intl-tel-input/i18n/uz/index.d.ts +0 -3
  140. package/angular/build/types/intl-tel-input/i18n/vi/index.d.ts +0 -3
  141. package/angular/build/types/intl-tel-input/i18n/zh/index.d.ts +0 -3
  142. package/angular/build/types/intl-tel-input/i18n/zh-hk/index.d.ts +0 -3
  143. package/angular/build/types/intl-tel-input/intlTelInputWithUtils.d.ts +0 -2
  144. package/angular/build/types/intl-tel-input/utils.d.ts +0 -2
  145. package/angular/build/types/intl-tel-input.d.ts +0 -46
  146. package/angular/build/types/modules/constants.d.ts +0 -94
  147. package/angular/build/types/modules/core/countrySearch.d.ts +0 -17
  148. package/angular/build/types/modules/core/icons.d.ts +0 -11
  149. package/angular/build/types/modules/core/numerals.d.ts +0 -7
  150. package/angular/build/types/modules/core/options.d.ts +0 -8
  151. package/angular/build/types/modules/core/ui.d.ts +0 -30
  152. package/angular/build/types/modules/data/country-data.d.ts +0 -12
  153. package/angular/build/types/modules/data/intl-regionless.d.ts +0 -2
  154. package/angular/build/types/modules/data/nanp-regionless.d.ts +0 -2
  155. package/angular/build/types/modules/format/caret.d.ts +0 -1
  156. package/angular/build/types/modules/format/formatting.d.ts +0 -3
  157. package/angular/build/types/modules/types/events.d.ts +0 -10
  158. package/angular/build/types/modules/types/forEachInstanceArgsMap.d.ts +0 -6
  159. package/angular/build/types/modules/types/public-api.d.ts +0 -65
  160. package/angular/build/types/modules/utils/dom.d.ts +0 -6
  161. package/angular/build/types/modules/utils/isAndroid.d.ts +0 -1
  162. package/angular/build/types/modules/utils/string.d.ts +0 -2
  163. package/build/css/intlTelInput-no-assets.css +0 -1323
  164. package/build/css/intlTelInput-no-assets.min.css +0 -1
  165. package/build/css/intlTelInput.css +0 -1327
  166. package/build/css/intlTelInput.min.css +0 -1
  167. package/build/img/flags.png +0 -0
  168. package/build/img/flags.webp +0 -0
  169. package/build/img/flags@2x.png +0 -0
  170. package/build/img/flags@2x.webp +0 -0
  171. package/build/js/data.min.js +0 -20
  172. package/build/js/i18n/types.js +0 -0
  173. package/build/js/intlTelInput.d.ts +0 -671
  174. package/build/js/intlTelInput.min.js +0 -38
  175. package/build/js/intlTelInputWithUtils.min.js +0 -38
  176. package/index.js +0 -1
  177. package/react/build/IntlTelInput.d.ts +0 -721
  178. package/svelte/build/IntlTelInput.mjs +0 -5294
  179. package/svelte/build/IntlTelInputWithUtils.mjs +0 -11381
  180. package/vue/build/IntlTelInput.vue.d.ts +0 -34
  181. package/vue/build/IntlTelInputWithUtils.vue.d.ts +0 -34
  182. package/vue/build/exports/IntlTelInput.d.ts +0 -3
  183. package/vue/build/exports/IntlTelInput.mjs +0 -86
  184. package/vue/build/exports/IntlTelInputWithUtils.d.ts +0 -3
  185. package/vue/build/exports/IntlTelInputWithUtils.mjs +0 -6173
  186. package/vue/build/intl-tel-input/data.d.ts +0 -20
  187. package/vue/build/intl-tel-input/i18n/ar/index.d.ts +0 -3
  188. package/vue/build/intl-tel-input/i18n/bg/index.d.ts +0 -3
  189. package/vue/build/intl-tel-input/i18n/bn/index.d.ts +0 -3
  190. package/vue/build/intl-tel-input/i18n/bs/index.d.ts +0 -3
  191. package/vue/build/intl-tel-input/i18n/ca/index.d.ts +0 -3
  192. package/vue/build/intl-tel-input/i18n/cs/index.d.ts +0 -3
  193. package/vue/build/intl-tel-input/i18n/da/index.d.ts +0 -3
  194. package/vue/build/intl-tel-input/i18n/de/index.d.ts +0 -3
  195. package/vue/build/intl-tel-input/i18n/el/index.d.ts +0 -3
  196. package/vue/build/intl-tel-input/i18n/en/index.d.ts +0 -3
  197. package/vue/build/intl-tel-input/i18n/es/index.d.ts +0 -3
  198. package/vue/build/intl-tel-input/i18n/et/index.d.ts +0 -3
  199. package/vue/build/intl-tel-input/i18n/fa/index.d.ts +0 -3
  200. package/vue/build/intl-tel-input/i18n/fi/index.d.ts +0 -3
  201. package/vue/build/intl-tel-input/i18n/fr/index.d.ts +0 -3
  202. package/vue/build/intl-tel-input/i18n/hi/index.d.ts +0 -3
  203. package/vue/build/intl-tel-input/i18n/hr/index.d.ts +0 -3
  204. package/vue/build/intl-tel-input/i18n/hu/index.d.ts +0 -3
  205. package/vue/build/intl-tel-input/i18n/id/index.d.ts +0 -3
  206. package/vue/build/intl-tel-input/i18n/index.d.ts +0 -45
  207. package/vue/build/intl-tel-input/i18n/it/index.d.ts +0 -3
  208. package/vue/build/intl-tel-input/i18n/ja/index.d.ts +0 -3
  209. package/vue/build/intl-tel-input/i18n/kn/index.d.ts +0 -3
  210. package/vue/build/intl-tel-input/i18n/ko/index.d.ts +0 -3
  211. package/vue/build/intl-tel-input/i18n/lt/index.d.ts +0 -3
  212. package/vue/build/intl-tel-input/i18n/mr/index.d.ts +0 -3
  213. package/vue/build/intl-tel-input/i18n/nl/index.d.ts +0 -3
  214. package/vue/build/intl-tel-input/i18n/no/index.d.ts +0 -3
  215. package/vue/build/intl-tel-input/i18n/pl/index.d.ts +0 -3
  216. package/vue/build/intl-tel-input/i18n/pt/index.d.ts +0 -3
  217. package/vue/build/intl-tel-input/i18n/ro/index.d.ts +0 -3
  218. package/vue/build/intl-tel-input/i18n/ru/index.d.ts +0 -3
  219. package/vue/build/intl-tel-input/i18n/sk/index.d.ts +0 -3
  220. package/vue/build/intl-tel-input/i18n/sl/index.d.ts +0 -3
  221. package/vue/build/intl-tel-input/i18n/sq/index.d.ts +0 -3
  222. package/vue/build/intl-tel-input/i18n/sr/index.d.ts +0 -3
  223. package/vue/build/intl-tel-input/i18n/sv/index.d.ts +0 -3
  224. package/vue/build/intl-tel-input/i18n/te/index.d.ts +0 -3
  225. package/vue/build/intl-tel-input/i18n/th/index.d.ts +0 -3
  226. package/vue/build/intl-tel-input/i18n/tr/index.d.ts +0 -3
  227. package/vue/build/intl-tel-input/i18n/types.d.ts +0 -10
  228. package/vue/build/intl-tel-input/i18n/uk/index.d.ts +0 -3
  229. package/vue/build/intl-tel-input/i18n/ur/index.d.ts +0 -3
  230. package/vue/build/intl-tel-input/i18n/uz/index.d.ts +0 -3
  231. package/vue/build/intl-tel-input/i18n/vi/index.d.ts +0 -3
  232. package/vue/build/intl-tel-input/i18n/zh/index.d.ts +0 -3
  233. package/vue/build/intl-tel-input/i18n/zh-hk/index.d.ts +0 -3
  234. package/vue/build/intl-tel-input/intlTelInputWithUtils.d.ts +0 -2
  235. package/vue/build/intl-tel-input-MeSkUgHd.mjs +0 -3438
  236. package/vue/build/intl-tel-input.d.ts +0 -46
  237. package/vue/build/modules/constants.d.ts +0 -94
  238. package/vue/build/modules/core/countrySearch.d.ts +0 -17
  239. package/vue/build/modules/core/icons.d.ts +0 -11
  240. package/vue/build/modules/core/numerals.d.ts +0 -7
  241. package/vue/build/modules/core/options.d.ts +0 -8
  242. package/vue/build/modules/core/ui.d.ts +0 -30
  243. package/vue/build/modules/data/country-data.d.ts +0 -12
  244. package/vue/build/modules/data/intl-regionless.d.ts +0 -2
  245. package/vue/build/modules/data/nanp-regionless.d.ts +0 -2
  246. package/vue/build/modules/format/caret.d.ts +0 -1
  247. package/vue/build/modules/format/formatting.d.ts +0 -3
  248. package/vue/build/modules/types/events.d.ts +0 -10
  249. package/vue/build/modules/types/forEachInstanceArgsMap.d.ts +0 -6
  250. package/vue/build/modules/types/public-api.d.ts +0 -65
  251. package/vue/build/modules/utils/dom.d.ts +0 -6
  252. package/vue/build/modules/utils/isAndroid.d.ts +0 -1
  253. package/vue/build/modules/utils/string.d.ts +0 -2
@@ -1,65 +0,0 @@
1
- import intlTelInput from "../intl-tel-input";
2
- import { Iti } from "../intl-tel-input";
3
- import { OnDestroy, ElementRef, EventEmitter, AfterViewInit, OnChanges, SimpleChanges } from "@angular/core";
4
- import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from "@angular/forms";
5
- import { SomeOptions } from "../modules/types/public-api";
6
- import * as i0 from "@angular/core";
7
- export { intlTelInput };
8
- export declare const PHONE_ERROR_MESSAGES: string[];
9
- export declare class IntlTelInputComponent implements AfterViewInit, OnDestroy, OnChanges, ControlValueAccessor, Validator {
10
- inputRef: ElementRef<HTMLInputElement>;
11
- initialValue?: string;
12
- usePreciseValidation: boolean;
13
- inputProps: Record<string, string>;
14
- disabled: boolean;
15
- initOptions?: SomeOptions;
16
- numberChange: EventEmitter<string>;
17
- countryChange: EventEmitter<string>;
18
- validityChange: EventEmitter<boolean>;
19
- errorCodeChange: EventEmitter<number>;
20
- blur: EventEmitter<FocusEvent>;
21
- focus: EventEmitter<FocusEvent>;
22
- keydown: EventEmitter<KeyboardEvent>;
23
- keyup: EventEmitter<KeyboardEvent>;
24
- paste: EventEmitter<ClipboardEvent>;
25
- click: EventEmitter<MouseEvent>;
26
- private iti?;
27
- private appliedInputPropKeys;
28
- private lastEmittedNumber?;
29
- private lastEmittedCountry?;
30
- private lastEmittedValidity?;
31
- private lastEmittedErrorCode?;
32
- private countryChangeHandler;
33
- private onChange;
34
- private onTouched;
35
- private onValidatorChange;
36
- ngAfterViewInit(): void;
37
- ngOnChanges(changes: SimpleChanges): void;
38
- handleInput(): void;
39
- handleBlur(event: FocusEvent): void;
40
- handleFocus(event: FocusEvent): void;
41
- handleKeyDown(event: KeyboardEvent): void;
42
- handleKeyUp(event: KeyboardEvent): void;
43
- handlePaste(event: ClipboardEvent): void;
44
- handleClick(event: MouseEvent): void;
45
- /**
46
- * This method must be called in `ngAfterViewInit` or later lifecycle hooks,
47
- * not in `ngOnInit` or the `constructor`, as the component needs to be fully initialized.
48
- */
49
- getInstance(): Iti | null;
50
- /**
51
- * This method must be called in `ngAfterViewInit` or later lifecycle hooks,
52
- * not in `ngOnInit` or the `constructor`, as the component needs to be fully initialized.
53
- */
54
- getInput(): HTMLInputElement | null;
55
- ngOnDestroy(): void;
56
- private applyInputProps;
57
- writeValue(value: string | null): void;
58
- registerOnChange(fn: any): void;
59
- registerOnTouched(fn: any): void;
60
- setDisabledState(isDisabled: boolean): void;
61
- validate(control: AbstractControl): ValidationErrors | null;
62
- registerOnValidatorChange(fn: () => void): void;
63
- static ɵfac: i0.ɵɵFactoryDeclaration<IntlTelInputComponent, never>;
64
- static ɵcmp: i0.ɵɵComponentDeclaration<IntlTelInputComponent, "intl-tel-input", never, { "initialValue": { "alias": "initialValue"; "required": false; }; "usePreciseValidation": { "alias": "usePreciseValidation"; "required": false; }; "inputProps": { "alias": "inputProps"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "initOptions": { "alias": "initOptions"; "required": false; }; }, { "numberChange": "numberChange"; "countryChange": "countryChange"; "validityChange": "validityChange"; "errorCodeChange": "errorCodeChange"; "blur": "blur"; "focus": "focus"; "keydown": "keydown"; "keyup": "keyup"; "paste": "paste"; "click": "click"; }, never, never, true, never>;
65
- }
@@ -1,65 +0,0 @@
1
- import intlTelInput from "./intlTelInputWithUtils";
2
- import { Iti } from "../intl-tel-input";
3
- import { OnDestroy, ElementRef, EventEmitter, AfterViewInit, OnChanges, SimpleChanges } from "@angular/core";
4
- import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from "@angular/forms";
5
- import { SomeOptions } from "../modules/types/public-api";
6
- import * as i0 from "@angular/core";
7
- export { intlTelInput };
8
- export declare const PHONE_ERROR_MESSAGES: string[];
9
- export declare class IntlTelInputComponent implements AfterViewInit, OnDestroy, OnChanges, ControlValueAccessor, Validator {
10
- inputRef: ElementRef<HTMLInputElement>;
11
- initialValue?: string;
12
- usePreciseValidation: boolean;
13
- inputProps: Record<string, string>;
14
- disabled: boolean;
15
- initOptions?: SomeOptions;
16
- numberChange: EventEmitter<string>;
17
- countryChange: EventEmitter<string>;
18
- validityChange: EventEmitter<boolean>;
19
- errorCodeChange: EventEmitter<number>;
20
- blur: EventEmitter<FocusEvent>;
21
- focus: EventEmitter<FocusEvent>;
22
- keydown: EventEmitter<KeyboardEvent>;
23
- keyup: EventEmitter<KeyboardEvent>;
24
- paste: EventEmitter<ClipboardEvent>;
25
- click: EventEmitter<MouseEvent>;
26
- private iti?;
27
- private appliedInputPropKeys;
28
- private lastEmittedNumber?;
29
- private lastEmittedCountry?;
30
- private lastEmittedValidity?;
31
- private lastEmittedErrorCode?;
32
- private countryChangeHandler;
33
- private onChange;
34
- private onTouched;
35
- private onValidatorChange;
36
- ngAfterViewInit(): void;
37
- ngOnChanges(changes: SimpleChanges): void;
38
- handleInput(): void;
39
- handleBlur(event: FocusEvent): void;
40
- handleFocus(event: FocusEvent): void;
41
- handleKeyDown(event: KeyboardEvent): void;
42
- handleKeyUp(event: KeyboardEvent): void;
43
- handlePaste(event: ClipboardEvent): void;
44
- handleClick(event: MouseEvent): void;
45
- /**
46
- * This method must be called in `ngAfterViewInit` or later lifecycle hooks,
47
- * not in `ngOnInit` or the `constructor`, as the component needs to be fully initialized.
48
- */
49
- getInstance(): Iti | null;
50
- /**
51
- * This method must be called in `ngAfterViewInit` or later lifecycle hooks,
52
- * not in `ngOnInit` or the `constructor`, as the component needs to be fully initialized.
53
- */
54
- getInput(): HTMLInputElement | null;
55
- ngOnDestroy(): void;
56
- private applyInputProps;
57
- writeValue(value: string | null): void;
58
- registerOnChange(fn: any): void;
59
- registerOnTouched(fn: any): void;
60
- setDisabledState(isDisabled: boolean): void;
61
- validate(control: AbstractControl): ValidationErrors | null;
62
- registerOnValidatorChange(fn: () => void): void;
63
- static ɵfac: i0.ɵɵFactoryDeclaration<IntlTelInputComponent, never>;
64
- static ɵcmp: i0.ɵɵComponentDeclaration<IntlTelInputComponent, "intl-tel-input", never, { "initialValue": { "alias": "initialValue"; "required": false; }; "usePreciseValidation": { "alias": "usePreciseValidation"; "required": false; }; "inputProps": { "alias": "inputProps"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "initOptions": { "alias": "initOptions"; "required": false; }; }, { "numberChange": "numberChange"; "countryChange": "countryChange"; "validityChange": "validityChange"; "errorCodeChange": "errorCodeChange"; "blur": "blur"; "focus": "focus"; "keydown": "keydown"; "keyup": "keyup"; "paste": "paste"; "click": "click"; }, never, never, true, never>;
65
- }
@@ -1,20 +0,0 @@
1
- export declare const rawCountryData: readonly [readonly ["af", "93", 0, any, "0"], readonly ["ax", "358", 1, readonly ["18", "4"], "0"], readonly ["al", "355", 0, any, "0"], readonly ["dz", "213", 0, any, "0"], readonly ["as", "1", 5, readonly ["684"], "1"], readonly ["ad", "376"], readonly ["ao", "244"], readonly ["ai", "1", 6, readonly ["264"], "1"], readonly ["ag", "1", 7, readonly ["268"], "1"], readonly ["ar", "54", 0, any, "0"], readonly ["am", "374", 0, any, "0"], readonly ["aw", "297"], readonly ["ac", "247"], readonly ["au", "61", 0, readonly ["4"], "0"], readonly ["at", "43", 0, any, "0"], readonly ["az", "994", 0, any, "0"], readonly ["bs", "1", 8, readonly ["242"], "1"], readonly ["bh", "973"], readonly ["bd", "880", 0, any, "0"], readonly ["bb", "1", 9, readonly ["246"], "1"], readonly ["by", "375", 0, any, "8"], readonly ["be", "32", 0, any, "0"], readonly ["bz", "501"], readonly ["bj", "229"], readonly ["bm", "1", 10, readonly ["441"], "1"], readonly ["bt", "975"], readonly ["bo", "591", 0, any, "0"], readonly ["ba", "387", 0, any, "0"], readonly ["bw", "267"], readonly ["br", "55", 0, any, "0"], readonly ["io", "246"], readonly ["vg", "1", 11, readonly ["284"], "1"], readonly ["bn", "673"], readonly ["bg", "359", 0, any, "0"], readonly ["bf", "226"], readonly ["bi", "257"], readonly ["kh", "855", 0, any, "0"], readonly ["cm", "237"], readonly ["ca", "1", 1, readonly ["204", "226", "236", "249", "250", "257", "263", "289", "306", "343", "354", "365", "367", "368", "382", "403", "416", "418", "428", "431", "437", "438", "450", "468", "474", "506", "514", "519", "548", "579", "581", "584", "587", "604", "613", "639", "647", "672", "683", "705", "709", "742", "753", "778", "780", "782", "807", "819", "825", "867", "873", "879", "902", "905", "942"], "1"], readonly ["cv", "238"], readonly ["bq", "599", 1, readonly ["3", "4", "7"]], readonly ["ky", "1", 12, readonly ["345"], "1"], readonly ["cf", "236"], readonly ["td", "235"], readonly ["cl", "56"], readonly ["cn", "86", 0, any, "0"], readonly ["cx", "61", 2, readonly ["4", "89164"], "0"], readonly ["cc", "61", 1, readonly ["4", "89162"], "0"], readonly ["co", "57", 0, any, "0"], readonly ["km", "269"], readonly ["cg", "242"], readonly ["cd", "243", 0, any, "0"], readonly ["ck", "682"], readonly ["cr", "506"], readonly ["ci", "225"], readonly ["hr", "385", 0, any, "0"], readonly ["cu", "53", 0, any, "0"], readonly ["cw", "599", 0], readonly ["cy", "357"], readonly ["cz", "420"], readonly ["dk", "45"], readonly ["dj", "253"], readonly ["dm", "1", 13, readonly ["767"], "1"], readonly ["do", "1", 2, readonly ["809", "829", "849"], "1"], readonly ["ec", "593", 0, any, "0"], readonly ["eg", "20", 0, any, "0"], readonly ["sv", "503"], readonly ["gq", "240"], readonly ["er", "291", 0, any, "0"], readonly ["ee", "372"], readonly ["sz", "268"], readonly ["et", "251", 0, any, "0"], readonly ["fk", "500"], readonly ["fo", "298"], readonly ["fj", "679"], readonly ["fi", "358", 0, readonly ["4"], "0"], readonly ["fr", "33", 0, any, "0"], readonly ["gf", "594", 0, any, "0"], readonly ["pf", "689"], readonly ["ga", "241"], readonly ["gm", "220"], readonly ["ge", "995", 0, any, "0"], readonly ["de", "49", 0, any, "0"], readonly ["gh", "233", 0, any, "0"], readonly ["gi", "350"], readonly ["gr", "30"], readonly ["gl", "299"], readonly ["gd", "1", 14, readonly ["473"], "1"], readonly ["gp", "590", 0, any, "0"], readonly ["gu", "1", 15, readonly ["671"], "1"], readonly ["gt", "502"], readonly ["gg", "44", 1, readonly ["1481", "7781", "7839", "7911"], "0"], readonly ["gn", "224"], readonly ["gw", "245"], readonly ["gy", "592"], readonly ["ht", "509"], readonly ["hn", "504"], readonly ["hk", "852"], readonly ["hu", "36", 0, any, "06"], readonly ["is", "354"], readonly ["in", "91", 0, any, "0"], readonly ["id", "62", 0, any, "0"], readonly ["ir", "98", 0, any, "0"], readonly ["iq", "964", 0, any, "0"], readonly ["ie", "353", 0, any, "0"], readonly ["im", "44", 2, readonly ["1624", "74576", "7524", "7624", "7924"], "0"], readonly ["il", "972", 0, any, "0"], readonly ["it", "39", 0, readonly ["3"]], readonly ["jm", "1", 4, readonly ["658", "876"], "1"], readonly ["jp", "81", 0, any, "0"], readonly ["je", "44", 3, readonly ["1534", "7509", "7700", "7797", "7829", "7937"], "0"], readonly ["jo", "962", 0, any, "0"], readonly ["kz", "7", 1, readonly ["33", "7"], "8"], readonly ["ke", "254", 0, any, "0"], readonly ["ki", "686", 0, any, "0"], readonly ["xk", "383", 0, any, "0"], readonly ["kw", "965"], readonly ["kg", "996", 0, any, "0"], readonly ["la", "856", 0, any, "0"], readonly ["lv", "371"], readonly ["lb", "961", 0, any, "0"], readonly ["ls", "266"], readonly ["lr", "231", 0, any, "0"], readonly ["ly", "218", 0, any, "0"], readonly ["li", "423", 0, any, "0"], readonly ["lt", "370", 0, any, "0"], readonly ["lu", "352"], readonly ["mo", "853"], readonly ["mg", "261", 0, any, "0"], readonly ["mw", "265", 0, any, "0"], readonly ["my", "60", 0, any, "0"], readonly ["mv", "960"], readonly ["ml", "223"], readonly ["mt", "356"], readonly ["mh", "692", 0, any, "1"], readonly ["mq", "596", 0, any, "0"], readonly ["mr", "222"], readonly ["mu", "230"], readonly ["yt", "262", 1, readonly ["269", "639"], "0"], readonly ["mx", "52"], readonly ["fm", "691"], readonly ["md", "373", 0, any, "0"], readonly ["mc", "377", 0, any, "0"], readonly ["mn", "976", 0, any, "0"], readonly ["me", "382", 0, any, "0"], readonly ["ms", "1", 16, readonly ["664"], "1"], readonly ["ma", "212", 0, readonly ["6", "7"], "0"], readonly ["mz", "258"], readonly ["mm", "95", 0, any, "0"], readonly ["na", "264", 0, any, "0"], readonly ["nr", "674"], readonly ["np", "977", 0, any, "0"], readonly ["nl", "31", 0, any, "0"], readonly ["nc", "687"], readonly ["nz", "64", 0, any, "0"], readonly ["ni", "505"], readonly ["ne", "227"], readonly ["ng", "234", 0, any, "0"], readonly ["nu", "683"], readonly ["nf", "672"], readonly ["kp", "850", 0, any, "0"], readonly ["mk", "389", 0, any, "0"], readonly ["mp", "1", 17, readonly ["670"], "1"], readonly ["no", "47", 0, readonly ["4", "9"]], readonly ["om", "968"], readonly ["pk", "92", 0, any, "0"], readonly ["pw", "680"], readonly ["ps", "970", 0, any, "0"], readonly ["pa", "507"], readonly ["pg", "675"], readonly ["py", "595", 0, any, "0"], readonly ["pe", "51", 0, any, "0"], readonly ["ph", "63", 0, any, "0"], readonly ["pl", "48"], readonly ["pt", "351"], readonly ["pr", "1", 3, readonly ["787", "939"], "1"], readonly ["qa", "974"], readonly ["re", "262", 0, any, "0"], readonly ["ro", "40", 0, any, "0"], readonly ["ru", "7", 0, readonly ["33"], "8"], readonly ["rw", "250", 0, any, "0"], readonly ["ws", "685"], readonly ["sm", "378"], readonly ["st", "239"], readonly ["sa", "966", 0, any, "0"], readonly ["sn", "221"], readonly ["rs", "381", 0, any, "0"], readonly ["sc", "248"], readonly ["sl", "232", 0, any, "0"], readonly ["sg", "65"], readonly ["sx", "1", 21, readonly ["721"], "1"], readonly ["sk", "421", 0, any, "0"], readonly ["si", "386", 0, any, "0"], readonly ["sb", "677"], readonly ["so", "252", 0, any, "0"], readonly ["za", "27", 0, any, "0"], readonly ["kr", "82", 0, any, "0"], readonly ["ss", "211", 0, any, "0"], readonly ["es", "34"], readonly ["lk", "94", 0, any, "0"], readonly ["bl", "590", 1, any, "0"], readonly ["sh", "290"], readonly ["kn", "1", 18, readonly ["869"], "1"], readonly ["lc", "1", 19, readonly ["758"], "1"], readonly ["mf", "590", 2, any, "0"], readonly ["pm", "508", 0, any, "0"], readonly ["vc", "1", 20, readonly ["784"], "1"], readonly ["sd", "249", 0, any, "0"], readonly ["sr", "597"], readonly ["sj", "47", 1, readonly ["4", "79", "9"]], readonly ["se", "46", 0, any, "0"], readonly ["ch", "41", 0, any, "0"], readonly ["sy", "963", 0, any, "0"], readonly ["tw", "886", 0, any, "0"], readonly ["tj", "992"], readonly ["tz", "255", 0, any, "0"], readonly ["th", "66", 0, any, "0"], readonly ["tl", "670"], readonly ["tg", "228"], readonly ["tk", "690"], readonly ["to", "676"], readonly ["tt", "1", 22, readonly ["868"], "1"], readonly ["tn", "216"], readonly ["tr", "90", 0, any, "0"], readonly ["tm", "993", 0, any, "8"], readonly ["tc", "1", 23, readonly ["649"], "1"], readonly ["tv", "688"], readonly ["vi", "1", 24, readonly ["340"], "1"], readonly ["ug", "256", 0, any, "0"], readonly ["ua", "380", 0, any, "0"], readonly ["ae", "971", 0, any, "0"], readonly ["gb", "44", 0, any, "0"], readonly ["us", "1", 0, any, "1"], readonly ["uy", "598", 0, any, "0"], readonly ["uz", "998"], readonly ["vu", "678"], readonly ["va", "39", 1, readonly ["06698", "3"]], readonly ["ve", "58", 0, any, "0"], readonly ["vn", "84", 0, any, "0"], readonly ["wf", "681"], readonly ["eh", "212", 1, readonly ["5288", "5289", "6", "7"], "0"], readonly ["ye", "967", 0, any, "0"], readonly ["zm", "260", 0, any, "0"], readonly ["zw", "263", 0, any, "0"]];
2
- export type Iso2 = typeof rawCountryData[number][0];
3
- export type Country = {
4
- iso2: Iso2;
5
- dialCode: string;
6
- priority: number;
7
- areaCodes: string[] | null;
8
- nationalPrefix: string | null;
9
- name: string;
10
- nodeById: {
11
- [instanceId: number]: HTMLElement;
12
- };
13
- normalisedName: string;
14
- initials: string;
15
- dialCodePlus: string;
16
- };
17
- declare const allCountries: Country[];
18
- export declare const iso2Set: Set<Iso2>;
19
- export declare const isIso2: (val: string) => val is Iso2;
20
- export default allCountries;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,45 +0,0 @@
1
- export { default as ar } from "./ar";
2
- export { default as bg } from "./bg";
3
- export { default as bn } from "./bn";
4
- export { default as bs } from "./bs";
5
- export { default as ca } from "./ca";
6
- export { default as cs } from "./cs";
7
- export { default as da } from "./da";
8
- export { default as de } from "./de";
9
- export { default as el } from "./el";
10
- export { default as en } from "./en";
11
- export { default as es } from "./es";
12
- export { default as et } from "./et";
13
- export { default as fa } from "./fa";
14
- export { default as fi } from "./fi";
15
- export { default as fr } from "./fr";
16
- export { default as hi } from "./hi";
17
- export { default as hr } from "./hr";
18
- export { default as hu } from "./hu";
19
- export { default as id } from "./id";
20
- export { default as it } from "./it";
21
- export { default as ja } from "./ja";
22
- export { default as kn } from "./kn";
23
- export { default as ko } from "./ko";
24
- export { default as lt } from "./lt";
25
- export { default as mr } from "./mr";
26
- export { default as nl } from "./nl";
27
- export { default as no } from "./no";
28
- export { default as pl } from "./pl";
29
- export { default as pt } from "./pt";
30
- export { default as ro } from "./ro";
31
- export { default as ru } from "./ru";
32
- export { default as sk } from "./sk";
33
- export { default as sl } from "./sl";
34
- export { default as sq } from "./sq";
35
- export { default as sr } from "./sr";
36
- export { default as sv } from "./sv";
37
- export { default as te } from "./te";
38
- export { default as th } from "./th";
39
- export { default as tr } from "./tr";
40
- export { default as uk } from "./uk";
41
- export { default as ur } from "./ur";
42
- export { default as uz } from "./uz";
43
- export { default as vi } from "./vi";
44
- export { default as zh } from "./zh";
45
- export { default as zhHk } from "./zh-hk";
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,10 +0,0 @@
1
- import type { Iso2 } from "../data";
2
- export type I18n = Partial<Record<Iso2, string>> & {
3
- selectedCountryAriaLabel?: string;
4
- searchPlaceholder?: string;
5
- clearSearchAriaLabel?: string;
6
- countryListAriaLabel?: string;
7
- noCountrySelected?: string;
8
- searchEmptyState?: string;
9
- searchSummaryAria?: (count: number) => string;
10
- };
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,3 +0,0 @@
1
- import type { I18n } from "../types";
2
- declare const interfaceTranslations: I18n;
3
- export default interfaceTranslations;
@@ -1,2 +0,0 @@
1
- import intlTelInput from "../intl-tel-input";
2
- export default intlTelInput;
@@ -1,2 +0,0 @@
1
- export default utils;
2
- declare const utils: any;
@@ -1,46 +0,0 @@
1
- import { type Country, type Iso2 } from "./intl-tel-input/data";
2
- import type { UtilsLoader, ItiUtils, NumberType, AllOptions, SomeOptions, SelectedCountryData } from "./modules/types/public-api";
3
- import type { ForEachInstanceArgsMap } from "./modules/types/forEachInstanceArgsMap";
4
- declare global {
5
- interface HTMLInputElement {
6
- iti?: Iti;
7
- }
8
- }
9
- export declare class Iti {
10
- #private;
11
- readonly id: number;
12
- readonly promise: Promise<void>;
13
- constructor(input: HTMLInputElement, customOptions?: SomeOptions);
14
- destroy(): void;
15
- isActive(): boolean;
16
- getExtension(): string;
17
- getNumber(format?: number): string;
18
- getNumberType(): number;
19
- getSelectedCountryData(): SelectedCountryData;
20
- getValidationError(): number;
21
- isValidNumber(): boolean | null;
22
- isValidNumberPrecise(): boolean | null;
23
- setCountry(iso2: Iso2): void;
24
- setNumber(number: string): void;
25
- setPlaceholderNumberType(type: NumberType): void;
26
- setDisabled(disabled: boolean): void;
27
- static forEachInstance<M extends keyof ForEachInstanceArgsMap>(method: M, ...args: ForEachInstanceArgsMap[M]): void;
28
- }
29
- interface IntlTelInputInterface {
30
- (input: HTMLInputElement, options?: SomeOptions): Iti;
31
- autoCountry?: Iso2;
32
- defaults: AllOptions;
33
- documentReady: () => boolean;
34
- getCountryData: () => Country[];
35
- getInstance: (input: HTMLInputElement) => Iti | null;
36
- instances: {
37
- [key: string]: Iti;
38
- };
39
- attachUtils: (source: UtilsLoader) => Promise<unknown> | null;
40
- startedLoadingAutoCountry: boolean;
41
- startedLoadingUtilsScript: boolean;
42
- version: string | undefined;
43
- utils?: ItiUtils;
44
- }
45
- declare const intlTelInput: IntlTelInputInterface;
46
- export default intlTelInput;
@@ -1,94 +0,0 @@
1
- import type { Iso2 } from "../intl-tel-input/data";
2
- export declare const EVENTS: {
3
- readonly OPEN_COUNTRY_DROPDOWN: "open:countrydropdown";
4
- readonly CLOSE_COUNTRY_DROPDOWN: "close:countrydropdown";
5
- readonly COUNTRY_CHANGE: "countrychange";
6
- readonly INPUT: "input";
7
- };
8
- export declare const CLASSES: {
9
- readonly HIDE: "iti__hide";
10
- readonly V_HIDE: "iti__v-hide";
11
- readonly ARROW_UP: "iti__arrow--up";
12
- readonly GLOBE: "iti__globe";
13
- readonly FLAG: "iti__flag";
14
- readonly LOADING: "iti__loading";
15
- readonly COUNTRY_ITEM: "iti__country";
16
- readonly HIGHLIGHT: "iti__highlight";
17
- };
18
- export declare const KEYS: {
19
- readonly ARROW_UP: "ArrowUp";
20
- readonly ARROW_DOWN: "ArrowDown";
21
- readonly SPACE: " ";
22
- readonly ENTER: "Enter";
23
- readonly ESC: "Escape";
24
- readonly TAB: "Tab";
25
- };
26
- export declare const INPUT_TYPES: {
27
- readonly PASTE: "insertFromPaste";
28
- readonly DELETE_FWD: "deleteContentForward";
29
- };
30
- export declare const REGEX: {
31
- readonly ALPHA_UNICODE: RegExp;
32
- readonly NON_PLUS_NUMERIC: RegExp;
33
- readonly NON_PLUS_NUMERIC_GLOBAL: RegExp;
34
- readonly HIDDEN_SEARCH_CHAR: RegExp;
35
- };
36
- export declare const TIMINGS: {
37
- readonly SEARCH_DEBOUNCE_MS: 100;
38
- readonly HIDDEN_SEARCH_RESET_MS: 1000;
39
- readonly NEXT_TICK: 0;
40
- };
41
- export declare const SENTINELS: {
42
- readonly UNKNOWN_NUMBER_TYPE: -99;
43
- readonly UNKNOWN_VALIDATION_ERROR: -99;
44
- };
45
- export declare const LAYOUT: {
46
- readonly NARROW_VIEWPORT_WIDTH: 500;
47
- readonly SANE_SELECTED_WITH_DIAL_WIDTH: 78;
48
- readonly SANE_SELECTED_NO_DIAL_WIDTH: 42;
49
- readonly INPUT_PADDING_EXTRA_LEFT: 6;
50
- readonly DROPDOWN_MARGIN: 3;
51
- readonly SANE_DROPDOWN_HEIGHT: 200;
52
- };
53
- export declare const DIAL: {
54
- readonly PLUS: "+";
55
- readonly NANP: "1";
56
- };
57
- export declare const UK: {
58
- readonly ISO2: Iso2;
59
- readonly DIAL_CODE: "44";
60
- readonly MOBILE_PREFIX: "7";
61
- readonly MOBILE_CORE_LENGTH: 10;
62
- };
63
- export declare const US: {
64
- ISO2: Iso2;
65
- DIAL_CODE: string;
66
- };
67
- export declare const PLACEHOLDER_MODES: {
68
- readonly AGGRESSIVE: "aggressive";
69
- readonly POLITE: "polite";
70
- readonly OFF: "off";
71
- };
72
- export declare const INITIAL_COUNTRY: {
73
- readonly AUTO: "auto";
74
- };
75
- declare const NUMBER_TYPES: readonly ["FIXED_LINE", "MOBILE", "FIXED_LINE_OR_MOBILE", "TOLL_FREE", "PREMIUM_RATE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL", "UNKNOWN"];
76
- export declare const NUMBER_TYPE_SET: ReadonlySet<(typeof NUMBER_TYPES)[number]> & {
77
- has(value: string): boolean;
78
- };
79
- export declare const DATA_KEYS: {
80
- readonly COUNTRY_CODE: "countryCode";
81
- readonly DIAL_CODE: "dialCode";
82
- };
83
- export declare const ARIA: {
84
- readonly EXPANDED: "aria-expanded";
85
- readonly LABEL: "aria-label";
86
- readonly SELECTED: "aria-selected";
87
- readonly ACTIVE_DESCENDANT: "aria-activedescendant";
88
- readonly HASPOPUP: "aria-haspopup";
89
- readonly CONTROLS: "aria-controls";
90
- readonly HIDDEN: "aria-hidden";
91
- readonly AUTOCOMPLETE: "aria-autocomplete";
92
- readonly MODAL: "aria-modal";
93
- };
94
- export {};