@intl-tel-input/angular 29.5.0 → 29.5.2
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/dist/IntlTelInput.js +13 -14
- package/dist/IntlTelInputWithUtils.js +52 -53
- package/package.json +2 -2
package/dist/IntlTelInput.js
CHANGED
|
@@ -3227,16 +3227,15 @@ var UI = class {
|
|
|
3227
3227
|
}
|
|
3228
3228
|
if (this.#options.countrySelectorMode === COUNTRY_SELECTOR_MODE.FULLSCREEN && this.#detachedCountrySelectorEl && window.visualViewport) {
|
|
3229
3229
|
this.#adjustFullscreenPopupToViewport();
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
()
|
|
3233
|
-
this.#
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
);
|
|
3230
|
+
const onViewportResize = () => {
|
|
3231
|
+
this.#adjustFullscreenPopupToViewport();
|
|
3232
|
+
if (this.#highlightedListItemEl) {
|
|
3233
|
+
this.#scrollCountryListToItem(this.#highlightedListItemEl);
|
|
3234
|
+
}
|
|
3235
|
+
};
|
|
3236
|
+
const { signal } = this.#countrySelectorAbortController;
|
|
3237
|
+
window.visualViewport.addEventListener("resize", onViewportResize, { signal });
|
|
3238
|
+
window.addEventListener("resize", onViewportResize, { signal });
|
|
3240
3239
|
}
|
|
3241
3240
|
this.#arrowEl.classList.add(CLASSES.ARROW_UP);
|
|
3242
3241
|
this.#bindCountrySelectorOpenListeners(onSelect, onClose);
|
|
@@ -5014,7 +5013,7 @@ var intlTelInput = Object.assign(
|
|
|
5014
5013
|
attachUtils,
|
|
5015
5014
|
startedLoadingUtils: false,
|
|
5016
5015
|
startedLoadingAutoCountry: false,
|
|
5017
|
-
version: "29.5.
|
|
5016
|
+
version: "29.5.2",
|
|
5018
5017
|
NUMBER_FORMAT,
|
|
5019
5018
|
NUMBER_TYPE,
|
|
5020
5019
|
VALIDATION_ERROR,
|
|
@@ -5349,8 +5348,8 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
5349
5348
|
registerOnValidatorChange(fn) {
|
|
5350
5349
|
this.onValidatorChange = fn;
|
|
5351
5350
|
}
|
|
5352
|
-
static
|
|
5353
|
-
static
|
|
5351
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: _IntlTelInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5352
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.7", type: _IntlTelInput, isStandalone: true, selector: "intl-tel-input", inputs: { initialValue: "initialValue", usePreciseValidation: "usePreciseValidation", inputAttributes: "inputAttributes", disabled: "disabled", readonly: "readonly", countrySelectorMode: "countrySelectorMode", allowedNumberTypes: "allowedNumberTypes", allowNumberExtensions: "allowNumberExtensions", allowPhonewords: "allowPhonewords", classNames: "classNames", containerClass: "containerClass", countryNameLocale: "countryNameLocale", countryNameOverrides: "countryNameOverrides", countryOrder: "countryOrder", countrySearch: "countrySearch", customPlaceholder: "customPlaceholder", dropdownAlwaysOpen: "dropdownAlwaysOpen", dropdownParent: "dropdownParent", excludeCountries: "excludeCountries", matchDropdownWidth: "matchDropdownWidth", formatAsYouType: "formatAsYouType", fullscreenParent: "fullscreenParent", hiddenInputs: "hiddenInputs", uiTranslations: "uiTranslations", initialCountry: "initialCountry", initialCountryLookup: "initialCountryLookup", loadUtils: "loadUtils", numberDisplayFormat: "numberDisplayFormat", onlyCountries: "onlyCountries", placeholderNumberPolicy: "placeholderNumberPolicy", placeholderNumberType: "placeholderNumberType", searchInputClass: "searchInputClass", separateDialCode: "separateDialCode", showFlags: "showFlags", strictMode: "strictMode", strictRejectAnimation: "strictRejectAnimation" }, outputs: { numberChange: "numberChange", countryChange: "countryChange", validityChange: "validityChange", errorCodeChange: "errorCodeChange", openCountrySelector: "openCountrySelector", closeCountrySelector: "closeCountrySelector", strictReject: "strictReject", blur: "blur", focus: "focus", keydown: "keydown", keyup: "keyup", paste: "paste", click: "click" }, providers: [
|
|
5354
5353
|
{
|
|
5355
5354
|
provide: NG_VALUE_ACCESSOR,
|
|
5356
5355
|
useExisting: forwardRef(() => _IntlTelInput),
|
|
@@ -5374,7 +5373,7 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
5374
5373
|
/>
|
|
5375
5374
|
`, isInline: true });
|
|
5376
5375
|
};
|
|
5377
|
-
i0
|
|
5376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: IntlTelInput, decorators: [{
|
|
5378
5377
|
type: Component,
|
|
5379
5378
|
args: [{
|
|
5380
5379
|
selector: "intl-tel-input",
|
|
@@ -3227,16 +3227,15 @@ var UI = class {
|
|
|
3227
3227
|
}
|
|
3228
3228
|
if (this.#options.countrySelectorMode === COUNTRY_SELECTOR_MODE.FULLSCREEN && this.#detachedCountrySelectorEl && window.visualViewport) {
|
|
3229
3229
|
this.#adjustFullscreenPopupToViewport();
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
()
|
|
3233
|
-
this.#
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
);
|
|
3230
|
+
const onViewportResize = () => {
|
|
3231
|
+
this.#adjustFullscreenPopupToViewport();
|
|
3232
|
+
if (this.#highlightedListItemEl) {
|
|
3233
|
+
this.#scrollCountryListToItem(this.#highlightedListItemEl);
|
|
3234
|
+
}
|
|
3235
|
+
};
|
|
3236
|
+
const { signal } = this.#countrySelectorAbortController;
|
|
3237
|
+
window.visualViewport.addEventListener("resize", onViewportResize, { signal });
|
|
3238
|
+
window.addEventListener("resize", onViewportResize, { signal });
|
|
3240
3239
|
}
|
|
3241
3240
|
this.#arrowEl.classList.add(CLASSES.ARROW_UP);
|
|
3242
3241
|
this.#bindCountrySelectorOpenListeners(onSelect, onClose);
|
|
@@ -5014,7 +5013,7 @@ var intlTelInput = Object.assign(
|
|
|
5014
5013
|
attachUtils,
|
|
5015
5014
|
startedLoadingUtils: false,
|
|
5016
5015
|
startedLoadingAutoCountry: false,
|
|
5017
|
-
version: "29.5.
|
|
5016
|
+
version: "29.5.2",
|
|
5018
5017
|
NUMBER_FORMAT,
|
|
5019
5018
|
NUMBER_TYPE,
|
|
5020
5019
|
VALIDATION_ERROR,
|
|
@@ -10553,7 +10552,7 @@ var _scope = {};
|
|
|
10553
10552
|
J.g = function() {
|
|
10554
10553
|
return J.h ? J.h : J.h = new J();
|
|
10555
10554
|
};
|
|
10556
|
-
var Fa = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "
|
|
10555
|
+
var Fa = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7", "8": "8", "9": "9", "٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9" }, Ga = {
|
|
10557
10556
|
0: "0",
|
|
10558
10557
|
1: "1",
|
|
10559
10558
|
2: "2",
|
|
@@ -10578,36 +10577,36 @@ var _scope = {};
|
|
|
10578
10577
|
7: "7",
|
|
10579
10578
|
8: "8",
|
|
10580
10579
|
9: "9",
|
|
10581
|
-
"
|
|
10582
|
-
"
|
|
10583
|
-
"
|
|
10584
|
-
"
|
|
10585
|
-
"
|
|
10586
|
-
"
|
|
10587
|
-
"
|
|
10588
|
-
"
|
|
10589
|
-
"
|
|
10590
|
-
"
|
|
10591
|
-
"
|
|
10592
|
-
"
|
|
10593
|
-
"
|
|
10594
|
-
"
|
|
10595
|
-
"
|
|
10596
|
-
"
|
|
10597
|
-
"
|
|
10598
|
-
"
|
|
10599
|
-
"
|
|
10600
|
-
"
|
|
10601
|
-
"
|
|
10602
|
-
"
|
|
10603
|
-
"
|
|
10604
|
-
"
|
|
10605
|
-
"
|
|
10606
|
-
"
|
|
10607
|
-
"
|
|
10608
|
-
"
|
|
10609
|
-
"
|
|
10610
|
-
"
|
|
10580
|
+
"0": "0",
|
|
10581
|
+
"1": "1",
|
|
10582
|
+
"2": "2",
|
|
10583
|
+
"3": "3",
|
|
10584
|
+
"4": "4",
|
|
10585
|
+
"5": "5",
|
|
10586
|
+
"6": "6",
|
|
10587
|
+
"7": "7",
|
|
10588
|
+
"8": "8",
|
|
10589
|
+
"9": "9",
|
|
10590
|
+
"٠": "0",
|
|
10591
|
+
"١": "1",
|
|
10592
|
+
"٢": "2",
|
|
10593
|
+
"٣": "3",
|
|
10594
|
+
"٤": "4",
|
|
10595
|
+
"٥": "5",
|
|
10596
|
+
"٦": "6",
|
|
10597
|
+
"٧": "7",
|
|
10598
|
+
"٨": "8",
|
|
10599
|
+
"٩": "9",
|
|
10600
|
+
"۰": "0",
|
|
10601
|
+
"۱": "1",
|
|
10602
|
+
"۲": "2",
|
|
10603
|
+
"۳": "3",
|
|
10604
|
+
"۴": "4",
|
|
10605
|
+
"۵": "5",
|
|
10606
|
+
"۶": "6",
|
|
10607
|
+
"۷": "7",
|
|
10608
|
+
"۸": "8",
|
|
10609
|
+
"۹": "9",
|
|
10611
10610
|
A: "2",
|
|
10612
10611
|
B: "2",
|
|
10613
10612
|
C: "2",
|
|
@@ -10634,14 +10633,14 @@ var _scope = {};
|
|
|
10634
10633
|
X: "9",
|
|
10635
10634
|
Y: "9",
|
|
10636
10635
|
Z: "9"
|
|
10637
|
-
}, Ia = RegExp("[
|
|
10636
|
+
}, Ia = RegExp("[++]+"), K = RegExp("^[++]+"), Ja = RegExp("([0-90-9٠-٩۰-۹])"), Ka = RegExp("[++0-90-9٠-٩۰-۹]"), La = /[\\\/] *x/, Ma = RegExp("[^0-90-9٠-٩۰-۹A-Za-z#]+$"), Na = /(?:.*?[A-Za-z]){3}.*/, Oa = RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$"), Pa = RegExp("^([A-Za-z0-90-9٠-٩۰-۹]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.?$");
|
|
10638
10637
|
function L(a) {
|
|
10639
|
-
return "([0-9
|
|
10638
|
+
return "([0-90-9٠-٩۰-۹]{1," + a + "})";
|
|
10640
10639
|
}
|
|
10641
10640
|
function Qa() {
|
|
10642
|
-
return ";ext=" + L("20") + "|[
|
|
10641
|
+
return ";ext=" + L("20") + "|[ \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[ \\t,-]*" + (L("20") + "#?|[ \\t,]*(?:[xx##~~]|int|int)[:\\..]?[ \\t,-]*") + (L("9") + "#?|[- ]+") + (L("6") + "#|[ \\t]*(?:,{2}|;)[:\\..]?[ \\t,-]*") + (L("15") + "#?|[ \\t]*(?:,)+[:\\..]?[ \\t,-]*") + (L("9") + "#?");
|
|
10643
10642
|
}
|
|
10644
|
-
var Ra = new RegExp("(?:" + Qa() + ")$", "i"), Sa = new RegExp("^[0-9
|
|
10643
|
+
var Ra = new RegExp("(?:" + Qa() + ")$", "i"), Sa = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:" + Qa() + ")?$", "i"), Ta = /(\$\d)/, Ua = /^\(?\$1\)?$/;
|
|
10645
10644
|
function Va(a) {
|
|
10646
10645
|
return a.length < 2 ? false : M(Sa, a);
|
|
10647
10646
|
}
|
|
@@ -10695,7 +10694,7 @@ var _scope = {};
|
|
|
10695
10694
|
}
|
|
10696
10695
|
e = null;
|
|
10697
10696
|
}
|
|
10698
|
-
e != null && (g = e, e = v(g, 2), f = new RegExp(r(g, 1)), v(g, 5), g = v(g, 4), d = b == 2 && g != null && g.length > 0 ? d.replace(f, e.replace(Ta, g)) : d.replace(f, e), b == 3 && (d = d.replace(RegExp("^[-x
|
|
10697
|
+
e != null && (g = e, e = v(g, 2), f = new RegExp(r(g, 1)), v(g, 5), g = v(g, 4), d = b == 2 && g != null && g.length > 0 ? d.replace(f, e.replace(Ta, g)) : d.replace(f, e), b == 3 && (d = d.replace(RegExp("^[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]+"), ""), d = d.replace(RegExp("[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]+", "g"), "-")));
|
|
10699
10698
|
return $a(
|
|
10700
10699
|
c,
|
|
10701
10700
|
b,
|
|
@@ -10964,7 +10963,7 @@ var _scope = {};
|
|
|
10964
10963
|
}
|
|
10965
10964
|
;
|
|
10966
10965
|
function jb(a) {
|
|
10967
|
-
this.ga = RegExp("
|
|
10966
|
+
this.ga = RegExp(" ");
|
|
10968
10967
|
this.ka = "";
|
|
10969
10968
|
this.$ = new B();
|
|
10970
10969
|
this.ea = "";
|
|
@@ -10984,7 +10983,7 @@ var _scope = {};
|
|
|
10984
10983
|
}
|
|
10985
10984
|
var lb = new G();
|
|
10986
10985
|
t(lb, 11, "NA");
|
|
10987
|
-
var mb = RegExp("^[-x
|
|
10986
|
+
var mb = RegExp("^[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*)*$"), nb = /[- ]/;
|
|
10988
10987
|
function kb(a, b) {
|
|
10989
10988
|
var c = a.ha;
|
|
10990
10989
|
b = O(b) ? eb(c, b) : 0;
|
|
@@ -11001,7 +11000,7 @@ var _scope = {};
|
|
|
11001
11000
|
var l = f;
|
|
11002
11001
|
g = v(g, 2);
|
|
11003
11002
|
var A = "999999999999999".match(h)[0];
|
|
11004
|
-
A.length < l.g.h.length ? l = "" : (l = A.replace(new RegExp(h, "g"), g), l = l.replace(RegExp("9", "g"), "
|
|
11003
|
+
A.length < l.g.h.length ? l = "" : (l = A.replace(new RegExp(h, "g"), g), l = l.replace(RegExp("9", "g"), " "));
|
|
11005
11004
|
l.length > 0 ? (f.$.g(l), f = true) : f = false;
|
|
11006
11005
|
if (f) return a.ea = e, a.ia = nb.test(r(d, 4)), a.ba = 0, true;
|
|
11007
11006
|
}
|
|
@@ -11583,8 +11582,8 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
11583
11582
|
registerOnValidatorChange(fn) {
|
|
11584
11583
|
this.onValidatorChange = fn;
|
|
11585
11584
|
}
|
|
11586
|
-
static
|
|
11587
|
-
static
|
|
11585
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: _IntlTelInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11586
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.7", type: _IntlTelInput, isStandalone: true, selector: "intl-tel-input", inputs: { initialValue: "initialValue", usePreciseValidation: "usePreciseValidation", inputAttributes: "inputAttributes", disabled: "disabled", readonly: "readonly", countrySelectorMode: "countrySelectorMode", allowedNumberTypes: "allowedNumberTypes", allowNumberExtensions: "allowNumberExtensions", allowPhonewords: "allowPhonewords", classNames: "classNames", containerClass: "containerClass", countryNameLocale: "countryNameLocale", countryNameOverrides: "countryNameOverrides", countryOrder: "countryOrder", countrySearch: "countrySearch", customPlaceholder: "customPlaceholder", dropdownAlwaysOpen: "dropdownAlwaysOpen", dropdownParent: "dropdownParent", excludeCountries: "excludeCountries", matchDropdownWidth: "matchDropdownWidth", formatAsYouType: "formatAsYouType", fullscreenParent: "fullscreenParent", hiddenInputs: "hiddenInputs", uiTranslations: "uiTranslations", initialCountry: "initialCountry", initialCountryLookup: "initialCountryLookup", loadUtils: "loadUtils", numberDisplayFormat: "numberDisplayFormat", onlyCountries: "onlyCountries", placeholderNumberPolicy: "placeholderNumberPolicy", placeholderNumberType: "placeholderNumberType", searchInputClass: "searchInputClass", separateDialCode: "separateDialCode", showFlags: "showFlags", strictMode: "strictMode", strictRejectAnimation: "strictRejectAnimation" }, outputs: { numberChange: "numberChange", countryChange: "countryChange", validityChange: "validityChange", errorCodeChange: "errorCodeChange", openCountrySelector: "openCountrySelector", closeCountrySelector: "closeCountrySelector", strictReject: "strictReject", blur: "blur", focus: "focus", keydown: "keydown", keyup: "keyup", paste: "paste", click: "click" }, providers: [
|
|
11588
11587
|
{
|
|
11589
11588
|
provide: NG_VALUE_ACCESSOR,
|
|
11590
11589
|
useExisting: forwardRef(() => _IntlTelInput),
|
|
@@ -11608,7 +11607,7 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
11608
11607
|
/>
|
|
11609
11608
|
`, isInline: true });
|
|
11610
11609
|
};
|
|
11611
|
-
i0
|
|
11610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: IntlTelInput, decorators: [{
|
|
11612
11611
|
type: Component,
|
|
11613
11612
|
args: [{
|
|
11614
11613
|
selector: "intl-tel-input",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intl-tel-input/angular",
|
|
3
|
-
"version": "29.5.
|
|
3
|
+
"version": "29.5.2",
|
|
4
4
|
"description": "An Angular component for intl-tel-input, for entering, formatting, and validating international telephone numbers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"intl-tel-input": "^29.5.
|
|
37
|
+
"intl-tel-input": "^29.5.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@angular/common": ">=17",
|