intl-tel-input 27.3.1 → 28.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 (37) hide show
  1. package/dist/css/intlTelInput-no-assets.css +2 -2
  2. package/dist/css/intlTelInput.css +3 -3
  3. package/dist/js/data.js +2 -2
  4. package/dist/js/data.min.js +1 -1
  5. package/dist/js/data.mjs +1 -1
  6. package/dist/js/i18n.d.ts +1 -1592
  7. package/dist/js/intlTelInput.d.ts +61 -45
  8. package/dist/js/intlTelInput.js +109 -104
  9. package/dist/js/intlTelInput.min.js +6 -6
  10. package/dist/js/intlTelInput.mjs +107 -102
  11. package/dist/js/intlTelInputWithUtils.js +510 -490
  12. package/dist/js/intlTelInputWithUtils.min.js +9 -9
  13. package/dist/js/intlTelInputWithUtils.mjs +508 -488
  14. package/dist/js/utils.js +56 -55
  15. package/package.json +14 -181
  16. package/CHANGELOG.md +0 -33
  17. package/angular/README.md +0 -13
  18. package/angular/dist/IntlTelInput.d.ts +0 -110
  19. package/angular/dist/IntlTelInput.js +0 -5130
  20. package/angular/dist/IntlTelInputWithUtils.d.ts +0 -3
  21. package/angular/dist/IntlTelInputWithUtils.js +0 -11469
  22. package/react/README.md +0 -13
  23. package/react/dist/IntlTelInput.d.ts +0 -25
  24. package/react/dist/IntlTelInput.js +0 -4822
  25. package/react/dist/IntlTelInputWithUtils.d.ts +0 -4
  26. package/react/dist/IntlTelInputWithUtils.js +0 -11161
  27. package/svelte/README.md +0 -14
  28. package/svelte/src/IntlTelInput.svelte +0 -233
  29. package/svelte/src/IntlTelInput.svelte.d.ts +0 -36
  30. package/svelte/src/IntlTelInputWithUtils.svelte +0 -24
  31. package/vue/README.md +0 -14
  32. package/vue/dist/IntlTelInput-DWpqqgvZ.js +0 -2684
  33. package/vue/dist/IntlTelInput.js +0 -5
  34. package/vue/dist/IntlTelInput.vue.d.ts +0 -43
  35. package/vue/dist/IntlTelInputWithUtils.js +0 -49403
  36. package/vue/dist/index.d.ts +0 -4
  37. package/vue/dist/indexWithUtils.d.ts +0 -3
@@ -1,110 +0,0 @@
1
- import intlTelInput, { Iti } from "intl-tel-input";
2
- import type { AllOptions } 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 * as i0 from "@angular/core";
6
- export { intlTelInput };
7
- export type StrictRejectDetail = {
8
- source: "key" | "paste";
9
- rejectedInput: string;
10
- reason: "invalid" | "max-length";
11
- };
12
- declare class IntlTelInput implements AfterViewInit, OnDestroy, OnChanges, ControlValueAccessor, Validator {
13
- inputRef: ElementRef<HTMLInputElement>;
14
- /** initialValue is only used during initialization — changes after init are ignored. */
15
- initialValue?: string;
16
- usePreciseValidation: boolean;
17
- inputAttributes: Record<string, string>;
18
- disabled: boolean;
19
- readonly: boolean;
20
- allowDropdown?: AllOptions["allowDropdown"];
21
- allowedNumberTypes?: AllOptions["allowedNumberTypes"];
22
- allowNumberExtensions?: AllOptions["allowNumberExtensions"];
23
- allowPhonewords?: AllOptions["allowPhonewords"];
24
- autoPlaceholder?: AllOptions["autoPlaceholder"];
25
- containerClass?: AllOptions["containerClass"];
26
- countryNameLocale?: AllOptions["countryNameLocale"];
27
- countryOrder?: AllOptions["countryOrder"];
28
- countrySearch?: AllOptions["countrySearch"];
29
- customPlaceholder?: AllOptions["customPlaceholder"];
30
- dropdownAlwaysOpen?: AllOptions["dropdownAlwaysOpen"];
31
- dropdownContainer?: AllOptions["dropdownContainer"];
32
- excludeCountries?: AllOptions["excludeCountries"];
33
- fixDropdownWidth?: AllOptions["fixDropdownWidth"];
34
- formatAsYouType?: AllOptions["formatAsYouType"];
35
- formatOnDisplay?: AllOptions["formatOnDisplay"];
36
- geoIpLookup?: AllOptions["geoIpLookup"];
37
- hiddenInput?: AllOptions["hiddenInput"];
38
- i18n?: AllOptions["i18n"];
39
- initialCountry?: AllOptions["initialCountry"];
40
- loadUtils?: AllOptions["loadUtils"];
41
- nationalMode?: AllOptions["nationalMode"];
42
- onlyCountries?: AllOptions["onlyCountries"];
43
- placeholderNumberType?: AllOptions["placeholderNumberType"];
44
- searchInputClass?: AllOptions["searchInputClass"];
45
- separateDialCode?: AllOptions["separateDialCode"];
46
- showFlags?: AllOptions["showFlags"];
47
- strictMode?: AllOptions["strictMode"];
48
- strictRejectAnimation?: AllOptions["strictRejectAnimation"];
49
- useFullscreenPopup?: AllOptions["useFullscreenPopup"];
50
- numberChange: EventEmitter<string>;
51
- countryChange: EventEmitter<string>;
52
- validityChange: EventEmitter<boolean>;
53
- errorCodeChange: EventEmitter<number | null>;
54
- openCountryDropdown: EventEmitter<void>;
55
- closeCountryDropdown: EventEmitter<void>;
56
- strictReject: EventEmitter<StrictRejectDetail>;
57
- blur: EventEmitter<FocusEvent>;
58
- focus: EventEmitter<FocusEvent>;
59
- keydown: EventEmitter<KeyboardEvent>;
60
- keyup: EventEmitter<KeyboardEvent>;
61
- paste: EventEmitter<ClipboardEvent>;
62
- click: EventEmitter<MouseEvent>;
63
- private iti?;
64
- private appliedInputAttrKeys;
65
- private pluginInputClasses;
66
- private lastEmittedNumber?;
67
- private lastEmittedCountry?;
68
- private lastEmittedValidity?;
69
- private lastEmittedErrorCode?;
70
- private pendingWriteValue?;
71
- private pendingUpdate;
72
- private onChange;
73
- private onTouched;
74
- private onValidatorChange;
75
- private handleOpenDropdown;
76
- private handleCloseDropdown;
77
- private handleStrictReject;
78
- ngAfterViewInit(): void;
79
- private buildInitOptions;
80
- ngOnChanges(changes: SimpleChanges): void;
81
- handleInput(): void;
82
- handleBlur(event: FocusEvent): void;
83
- handleFocus(event: FocusEvent): void;
84
- handleKeyDown(event: KeyboardEvent): void;
85
- handleKeyUp(event: KeyboardEvent): void;
86
- handlePaste(event: ClipboardEvent): void;
87
- handleClick(event: MouseEvent): void;
88
- /**
89
- * This method must be called in `ngAfterViewInit` or later lifecycle hooks,
90
- * not in `ngOnInit` or the `constructor`, as the component needs to be fully initialized.
91
- */
92
- getInstance(): Iti | undefined;
93
- /**
94
- * This method must be called in `ngAfterViewInit` or later lifecycle hooks,
95
- * not in `ngOnInit` or the `constructor`, as the component needs to be fully initialized.
96
- */
97
- getInput(): HTMLInputElement;
98
- ngOnDestroy(): void;
99
- private ignoredInputAttrs;
100
- private applyInputAttrs;
101
- writeValue(value: string | null): void;
102
- registerOnChange(fn: any): void;
103
- registerOnTouched(fn: any): void;
104
- setDisabledState(isDisabled: boolean): void;
105
- validate(_control: AbstractControl): ValidationErrors | null;
106
- registerOnValidatorChange(fn: () => void): void;
107
- static ɵfac: i0.ɵɵFactoryDeclaration<IntlTelInput, never>;
108
- static ɵcmp: i0.ɵɵComponentDeclaration<IntlTelInput, "intl-tel-input", never, { "initialValue": { "alias": "initialValue"; "required": false; }; "usePreciseValidation": { "alias": "usePreciseValidation"; "required": false; }; "inputAttributes": { "alias": "inputAttributes"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "allowDropdown": { "alias": "allowDropdown"; "required": false; }; "allowedNumberTypes": { "alias": "allowedNumberTypes"; "required": false; }; "allowNumberExtensions": { "alias": "allowNumberExtensions"; "required": false; }; "allowPhonewords": { "alias": "allowPhonewords"; "required": false; }; "autoPlaceholder": { "alias": "autoPlaceholder"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "countryNameLocale": { "alias": "countryNameLocale"; "required": false; }; "countryOrder": { "alias": "countryOrder"; "required": false; }; "countrySearch": { "alias": "countrySearch"; "required": false; }; "customPlaceholder": { "alias": "customPlaceholder"; "required": false; }; "dropdownAlwaysOpen": { "alias": "dropdownAlwaysOpen"; "required": false; }; "dropdownContainer": { "alias": "dropdownContainer"; "required": false; }; "excludeCountries": { "alias": "excludeCountries"; "required": false; }; "fixDropdownWidth": { "alias": "fixDropdownWidth"; "required": false; }; "formatAsYouType": { "alias": "formatAsYouType"; "required": false; }; "formatOnDisplay": { "alias": "formatOnDisplay"; "required": false; }; "geoIpLookup": { "alias": "geoIpLookup"; "required": false; }; "hiddenInput": { "alias": "hiddenInput"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "initialCountry": { "alias": "initialCountry"; "required": false; }; "loadUtils": { "alias": "loadUtils"; "required": false; }; "nationalMode": { "alias": "nationalMode"; "required": false; }; "onlyCountries": { "alias": "onlyCountries"; "required": false; }; "placeholderNumberType": { "alias": "placeholderNumberType"; "required": false; }; "searchInputClass": { "alias": "searchInputClass"; "required": false; }; "separateDialCode": { "alias": "separateDialCode"; "required": false; }; "showFlags": { "alias": "showFlags"; "required": false; }; "strictMode": { "alias": "strictMode"; "required": false; }; "strictRejectAnimation": { "alias": "strictRejectAnimation"; "required": false; }; "useFullscreenPopup": { "alias": "useFullscreenPopup"; "required": false; }; }, { "numberChange": "numberChange"; "countryChange": "countryChange"; "validityChange": "validityChange"; "errorCodeChange": "errorCodeChange"; "openCountryDropdown": "openCountryDropdown"; "closeCountryDropdown": "closeCountryDropdown"; "strictReject": "strictReject"; "blur": "blur"; "focus": "focus"; "keydown": "keydown"; "keyup": "keyup"; "paste": "paste"; "click": "click"; }, never, never, true, never>;
109
- }
110
- export default IntlTelInput;