intl-tel-input 25.8.6 → 25.10.1
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.
- package/README.md +10 -6
- package/angular/README.md +1 -1
- package/angular/build/IntlTelInput.js +30 -12
- package/angular/build/IntlTelInputWithUtils.js +30 -12
- package/angular/build/types/intl-tel-input.d.ts +1 -0
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.d.ts +1 -0
- package/build/js/intlTelInput.js +27 -13
- package/build/js/intlTelInput.min.js +4 -4
- package/build/js/intlTelInputWithUtils.js +27 -13
- package/build/js/intlTelInputWithUtils.min.js +3 -3
- package/package.json +10 -10
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +26 -12
- package/react/build/IntlTelInput.d.ts +1 -0
- package/react/build/IntlTelInput.js +26 -12
- package/react/build/IntlTelInputWithUtils.cjs +26 -12
- package/react/build/IntlTelInputWithUtils.js +26 -12
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +72 -63
- package/vue/build/IntlTelInputWithUtils.mjs +209 -200
- package/angular/build/types/countryDataManager.d.ts +0 -25
- package/angular/build/types/dropdown.d.ts +0 -56
- package/angular/build/types/types.d.ts +0 -53
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Country } from "./intl-tel-input/data";
|
|
2
|
-
import { AllOptions } from "./types";
|
|
3
|
-
export declare class CDM {
|
|
4
|
-
countries: Country[];
|
|
5
|
-
dialCodes: Set<string>;
|
|
6
|
-
dialCodeToIso2Map: Record<string, string[]>;
|
|
7
|
-
dialCodeMaxLen: number;
|
|
8
|
-
countryByIso2: Map<string, Country>;
|
|
9
|
-
private allCountries;
|
|
10
|
-
constructor(allCountries: Country[], options: AllOptions);
|
|
11
|
-
static getNumeric(s: string): string;
|
|
12
|
-
static isRegionlessNanp(number: string): boolean;
|
|
13
|
-
getDialCode(number: string, includeAreaCode?: boolean): string;
|
|
14
|
-
static ensureHasDialCode(number: string, selectedCountryData: Partial<Country>, separateDialCode?: boolean): string;
|
|
15
|
-
resolveNewCountryIso2(fullNumber: string, selectedCountryData: Partial<Country>, defaultCountry: string | undefined, separateDialCode: boolean): string | null;
|
|
16
|
-
private _filterCountries;
|
|
17
|
-
private _sortCountries;
|
|
18
|
-
private _translateNames;
|
|
19
|
-
private _addToDialCodeMap;
|
|
20
|
-
private _processDialCodes;
|
|
21
|
-
private _cacheSearchTokens;
|
|
22
|
-
searchByNamePrefix(query: string): Country | null;
|
|
23
|
-
filter(query: string, isReset?: boolean): Country[];
|
|
24
|
-
private _indexCountriesByIso2;
|
|
25
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { CDM } from "./countryDataManager";
|
|
2
|
-
import { AllOptions } from "./types";
|
|
3
|
-
export interface DropdownDeps {
|
|
4
|
-
telInput: HTMLInputElement;
|
|
5
|
-
options: AllOptions;
|
|
6
|
-
id: number;
|
|
7
|
-
cdm: CDM;
|
|
8
|
-
trigger: (name: string) => void;
|
|
9
|
-
onSelectListItem: (countryCode: string) => void;
|
|
10
|
-
}
|
|
11
|
-
export interface BuiltDropdownElements {
|
|
12
|
-
selectedCountry: HTMLElement;
|
|
13
|
-
selectedCountryInner: HTMLElement;
|
|
14
|
-
}
|
|
15
|
-
export declare class DropdownUI {
|
|
16
|
-
private deps;
|
|
17
|
-
private handleClickOffToClose;
|
|
18
|
-
private handleKeydownOnDropdown;
|
|
19
|
-
private handleMouseoverCountryList;
|
|
20
|
-
private handleClickCountryList;
|
|
21
|
-
private handleWindowScroll;
|
|
22
|
-
private highlightedItem;
|
|
23
|
-
private hiddenQuery;
|
|
24
|
-
private hiddenQueryTimer;
|
|
25
|
-
private selectedCountry;
|
|
26
|
-
private selectedCountryInner;
|
|
27
|
-
private dropdown?;
|
|
28
|
-
private dropdownContent?;
|
|
29
|
-
private countryList?;
|
|
30
|
-
private dropdownArrow?;
|
|
31
|
-
private selectedDialCode?;
|
|
32
|
-
private searchInput?;
|
|
33
|
-
private searchClearButton?;
|
|
34
|
-
private searchResultsA11yText?;
|
|
35
|
-
private searchNoResults?;
|
|
36
|
-
constructor(deps: DropdownDeps);
|
|
37
|
-
buildDropdownMarkup(countryContainer: any): BuiltDropdownElements;
|
|
38
|
-
isOpen(): boolean;
|
|
39
|
-
setSelectedDialCode(dialCode: string): void;
|
|
40
|
-
openWithPlus(): void;
|
|
41
|
-
open(): void;
|
|
42
|
-
close(): void;
|
|
43
|
-
private setPosition;
|
|
44
|
-
private bindListeners;
|
|
45
|
-
private moveHighlight;
|
|
46
|
-
private highlightListItem;
|
|
47
|
-
private searchForCountry;
|
|
48
|
-
private filterCountries;
|
|
49
|
-
private updateSearchResultsA11yText;
|
|
50
|
-
private scrollTo;
|
|
51
|
-
getSelectedCountryEl(): HTMLElement | undefined;
|
|
52
|
-
getSelectedCountryInnerEl(): HTMLElement | undefined;
|
|
53
|
-
getCountryList(): HTMLElement | undefined;
|
|
54
|
-
getDropdownContent(): HTMLElement | undefined;
|
|
55
|
-
highlightCountry(iso2?: string | null): void;
|
|
56
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { I18n } from "./intl-tel-input/i18n/types";
|
|
2
|
-
export type UtilsLoader = () => Promise<{
|
|
3
|
-
default: ItiUtils;
|
|
4
|
-
}>;
|
|
5
|
-
export type ItiUtils = {
|
|
6
|
-
formatNumber(number: string, iso2: string | undefined, format?: number): string;
|
|
7
|
-
formatNumberAsYouType(number: string, iso2: string | undefined): string;
|
|
8
|
-
getCoreNumber(number: string, iso2: string | undefined): string;
|
|
9
|
-
getExampleNumber(iso2: string | undefined, nationalMode: boolean, numberType: number, useE164?: boolean): string;
|
|
10
|
-
getExtension(number: string, iso2: string | undefined): string;
|
|
11
|
-
getNumberType(number: string, iso2: string | undefined): number;
|
|
12
|
-
getValidationError(number: string, iso2: string | undefined): number;
|
|
13
|
-
isPossibleNumber(number: string, iso2: string | undefined, numberType?: NumberType[] | null): boolean;
|
|
14
|
-
isValidNumber(number: string, iso2: string | undefined, numberType?: NumberType[] | null): boolean;
|
|
15
|
-
numberFormat: {
|
|
16
|
-
NATIONAL: number;
|
|
17
|
-
INTERNATIONAL: number;
|
|
18
|
-
E164: number;
|
|
19
|
-
RFC3966: number;
|
|
20
|
-
};
|
|
21
|
-
numberType: object;
|
|
22
|
-
};
|
|
23
|
-
export type NumberType = "FIXED_LINE_OR_MOBILE" | "FIXED_LINE" | "MOBILE" | "PAGER" | "PERSONAL_NUMBER" | "PREMIUM_RATE" | "SHARED_COST" | "TOLL_FREE" | "UAN" | "UNKNOWN" | "VOICEMAIL" | "VOIP";
|
|
24
|
-
export interface AllOptions {
|
|
25
|
-
allowDropdown: boolean;
|
|
26
|
-
autoPlaceholder: string;
|
|
27
|
-
containerClass: string;
|
|
28
|
-
countryOrder: string[];
|
|
29
|
-
countrySearch: boolean;
|
|
30
|
-
customPlaceholder: ((selectedCountryPlaceholder: string, selectedCountryData: object) => string) | null;
|
|
31
|
-
dropdownContainer: HTMLElement | null;
|
|
32
|
-
excludeCountries: string[];
|
|
33
|
-
fixDropdownWidth: boolean;
|
|
34
|
-
formatAsYouType: boolean;
|
|
35
|
-
formatOnDisplay: boolean;
|
|
36
|
-
geoIpLookup: ((success: (iso2: string) => void, failure: () => void) => void) | null;
|
|
37
|
-
hiddenInput: ((telInputName: string) => {
|
|
38
|
-
phone: string;
|
|
39
|
-
country?: string;
|
|
40
|
-
}) | null;
|
|
41
|
-
i18n: I18n;
|
|
42
|
-
initialCountry: string;
|
|
43
|
-
loadUtils: UtilsLoader;
|
|
44
|
-
nationalMode: boolean;
|
|
45
|
-
onlyCountries: string[];
|
|
46
|
-
placeholderNumberType: NumberType;
|
|
47
|
-
showFlags: boolean;
|
|
48
|
-
separateDialCode: boolean;
|
|
49
|
-
strictMode: boolean;
|
|
50
|
-
useFullscreenPopup: boolean;
|
|
51
|
-
validationNumberTypes: NumberType[] | null;
|
|
52
|
-
}
|
|
53
|
-
export type SomeOptions = Partial<AllOptions>;
|