@intl-tel-input/angular 29.4.1 → 29.5.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/dist/IntlTelInput.js +39 -5
- package/dist/IntlTelInputWithUtils.js +78 -44
- package/package.json +2 -2
package/dist/IntlTelInput.js
CHANGED
|
@@ -1772,6 +1772,7 @@ var ITI_SLOTS = [
|
|
|
1772
1772
|
"selectedDialCode",
|
|
1773
1773
|
"countrySelector",
|
|
1774
1774
|
"countrySelectorContainer",
|
|
1775
|
+
"closeButton",
|
|
1775
1776
|
"searchWrapper",
|
|
1776
1777
|
"searchIcon",
|
|
1777
1778
|
"searchInput",
|
|
@@ -1926,6 +1927,7 @@ var interfaceTranslations = {
|
|
|
1926
1927
|
countryListAriaLabel: "List of countries",
|
|
1927
1928
|
searchPlaceholder: "Search",
|
|
1928
1929
|
clearSearchAriaLabel: "Clear search",
|
|
1930
|
+
closeCountrySelectorAriaLabel: "Close",
|
|
1929
1931
|
searchEmptyState: "No results found",
|
|
1930
1932
|
searchSummaryAria(count) {
|
|
1931
1933
|
if (count === 0) {
|
|
@@ -2351,6 +2353,11 @@ var buildClearIcon = (id) => {
|
|
|
2351
2353
|
]]
|
|
2352
2354
|
);
|
|
2353
2355
|
};
|
|
2356
|
+
var buildCloseIcon = () => buildSvg(
|
|
2357
|
+
["svg", { class: "iti__close-button-svg", width: 20, height: 20, viewBox: "0 0 16 16", focusable: "false", [ARIA.HIDDEN]: "true" }, [
|
|
2358
|
+
["path", { d: "M3 3 L13 13 M13 3 L3 13" }]
|
|
2359
|
+
]]
|
|
2360
|
+
);
|
|
2354
2361
|
var buildCheckIcon = () => buildSvg(
|
|
2355
2362
|
["svg", { class: "iti__country-check-svg", width: 14, height: 14, viewBox: "0 0 16 16", fill: "currentColor", focusable: "false", [ARIA.HIDDEN]: "true" }, [
|
|
2356
2363
|
["path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z" }]
|
|
@@ -2524,6 +2531,7 @@ var UI = class {
|
|
|
2524
2531
|
#selectedDialCodeEl;
|
|
2525
2532
|
#arrowEl;
|
|
2526
2533
|
#countrySelectorEl;
|
|
2534
|
+
#closeButtonEl;
|
|
2527
2535
|
#searchIconEl;
|
|
2528
2536
|
#searchInputEl;
|
|
2529
2537
|
#searchClearButtonEl;
|
|
@@ -2723,6 +2731,9 @@ var UI = class {
|
|
|
2723
2731
|
if (this.#isRTL) {
|
|
2724
2732
|
this.#countrySelectorEl.setAttribute("dir", "rtl");
|
|
2725
2733
|
}
|
|
2734
|
+
if (isFullscreen) {
|
|
2735
|
+
this.#buildCloseButton();
|
|
2736
|
+
}
|
|
2726
2737
|
if (countrySearch) {
|
|
2727
2738
|
this.#buildSearchUI();
|
|
2728
2739
|
}
|
|
@@ -2771,6 +2782,21 @@ var UI = class {
|
|
|
2771
2782
|
}
|
|
2772
2783
|
return null;
|
|
2773
2784
|
}
|
|
2785
|
+
//* Fullscreen popup only: a close button, as the backdrop (tap to close) is not discoverable, and is unreachable for screen reader users.
|
|
2786
|
+
//* It lives inside the country selector (role=dialog, aria-modal) so assistive tech can reach it, but the CSS positions it out in the corner of the backdrop.
|
|
2787
|
+
#buildCloseButton() {
|
|
2788
|
+
this.#closeButtonEl = createEl(
|
|
2789
|
+
"button",
|
|
2790
|
+
{
|
|
2791
|
+
type: "button",
|
|
2792
|
+
class: this.#withSlotClass("closeButton", "iti__close-button"),
|
|
2793
|
+
[ARIA.LABEL]: this.#options.uiTranslations.closeCountrySelectorAriaLabel,
|
|
2794
|
+
tabindex: "-1"
|
|
2795
|
+
},
|
|
2796
|
+
this.#countrySelectorEl
|
|
2797
|
+
);
|
|
2798
|
+
this.#closeButtonEl.appendChild(buildCloseIcon());
|
|
2799
|
+
}
|
|
2774
2800
|
#buildSearchUI() {
|
|
2775
2801
|
const { uiTranslations, searchInputClass } = this.#options;
|
|
2776
2802
|
const searchWrapper = createEl(
|
|
@@ -3216,7 +3242,7 @@ var UI = class {
|
|
|
3216
3242
|
this.#bindCountrySelectorOpenListeners(onSelect, onClose);
|
|
3217
3243
|
}
|
|
3218
3244
|
//* Wire up all listeners needed while the country selector is open: list-item hover (highlight),
|
|
3219
|
-
//* list-item click & enter key (select), click-off & escape (close), search input (filter),
|
|
3245
|
+
//* list-item click & enter key (select), click-off, close button & escape (close), search input (filter),
|
|
3220
3246
|
//* (when countrySearch disabled) typed-char hidden search, and (when the country selector is in an
|
|
3221
3247
|
//* external container) update (fixed) position on scroll/resize.
|
|
3222
3248
|
#bindCountrySelectorOpenListeners(onSelect, onClose) {
|
|
@@ -3227,6 +3253,14 @@ var UI = class {
|
|
|
3227
3253
|
this.#bindOutsideClickToClose(signal, onClose);
|
|
3228
3254
|
}
|
|
3229
3255
|
this.#bindCountrySelectorKeydownListener(signal, onSelect, onClose);
|
|
3256
|
+
this.#closeButtonEl?.addEventListener(
|
|
3257
|
+
"click",
|
|
3258
|
+
() => {
|
|
3259
|
+
onClose();
|
|
3260
|
+
this.#selectedCountryEl.focus();
|
|
3261
|
+
},
|
|
3262
|
+
{ signal }
|
|
3263
|
+
);
|
|
3230
3264
|
if (this.#options.countrySearch) {
|
|
3231
3265
|
this.#bindSearchInputListener(signal);
|
|
3232
3266
|
}
|
|
@@ -4980,7 +5014,7 @@ var intlTelInput = Object.assign(
|
|
|
4980
5014
|
attachUtils,
|
|
4981
5015
|
startedLoadingUtils: false,
|
|
4982
5016
|
startedLoadingAutoCountry: false,
|
|
4983
|
-
version: "29.
|
|
5017
|
+
version: "29.5.1",
|
|
4984
5018
|
NUMBER_FORMAT,
|
|
4985
5019
|
NUMBER_TYPE,
|
|
4986
5020
|
VALIDATION_ERROR,
|
|
@@ -5315,8 +5349,8 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
5315
5349
|
registerOnValidatorChange(fn) {
|
|
5316
5350
|
this.onValidatorChange = fn;
|
|
5317
5351
|
}
|
|
5318
|
-
static
|
|
5319
|
-
static
|
|
5352
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: _IntlTelInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5353
|
+
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: [
|
|
5320
5354
|
{
|
|
5321
5355
|
provide: NG_VALUE_ACCESSOR,
|
|
5322
5356
|
useExisting: forwardRef(() => _IntlTelInput),
|
|
@@ -5340,7 +5374,7 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
5340
5374
|
/>
|
|
5341
5375
|
`, isInline: true });
|
|
5342
5376
|
};
|
|
5343
|
-
i0
|
|
5377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: IntlTelInput, decorators: [{
|
|
5344
5378
|
type: Component,
|
|
5345
5379
|
args: [{
|
|
5346
5380
|
selector: "intl-tel-input",
|
|
@@ -1772,6 +1772,7 @@ var ITI_SLOTS = [
|
|
|
1772
1772
|
"selectedDialCode",
|
|
1773
1773
|
"countrySelector",
|
|
1774
1774
|
"countrySelectorContainer",
|
|
1775
|
+
"closeButton",
|
|
1775
1776
|
"searchWrapper",
|
|
1776
1777
|
"searchIcon",
|
|
1777
1778
|
"searchInput",
|
|
@@ -1926,6 +1927,7 @@ var interfaceTranslations = {
|
|
|
1926
1927
|
countryListAriaLabel: "List of countries",
|
|
1927
1928
|
searchPlaceholder: "Search",
|
|
1928
1929
|
clearSearchAriaLabel: "Clear search",
|
|
1930
|
+
closeCountrySelectorAriaLabel: "Close",
|
|
1929
1931
|
searchEmptyState: "No results found",
|
|
1930
1932
|
searchSummaryAria(count) {
|
|
1931
1933
|
if (count === 0) {
|
|
@@ -2351,6 +2353,11 @@ var buildClearIcon = (id) => {
|
|
|
2351
2353
|
]]
|
|
2352
2354
|
);
|
|
2353
2355
|
};
|
|
2356
|
+
var buildCloseIcon = () => buildSvg(
|
|
2357
|
+
["svg", { class: "iti__close-button-svg", width: 20, height: 20, viewBox: "0 0 16 16", focusable: "false", [ARIA.HIDDEN]: "true" }, [
|
|
2358
|
+
["path", { d: "M3 3 L13 13 M13 3 L3 13" }]
|
|
2359
|
+
]]
|
|
2360
|
+
);
|
|
2354
2361
|
var buildCheckIcon = () => buildSvg(
|
|
2355
2362
|
["svg", { class: "iti__country-check-svg", width: 14, height: 14, viewBox: "0 0 16 16", fill: "currentColor", focusable: "false", [ARIA.HIDDEN]: "true" }, [
|
|
2356
2363
|
["path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z" }]
|
|
@@ -2524,6 +2531,7 @@ var UI = class {
|
|
|
2524
2531
|
#selectedDialCodeEl;
|
|
2525
2532
|
#arrowEl;
|
|
2526
2533
|
#countrySelectorEl;
|
|
2534
|
+
#closeButtonEl;
|
|
2527
2535
|
#searchIconEl;
|
|
2528
2536
|
#searchInputEl;
|
|
2529
2537
|
#searchClearButtonEl;
|
|
@@ -2723,6 +2731,9 @@ var UI = class {
|
|
|
2723
2731
|
if (this.#isRTL) {
|
|
2724
2732
|
this.#countrySelectorEl.setAttribute("dir", "rtl");
|
|
2725
2733
|
}
|
|
2734
|
+
if (isFullscreen) {
|
|
2735
|
+
this.#buildCloseButton();
|
|
2736
|
+
}
|
|
2726
2737
|
if (countrySearch) {
|
|
2727
2738
|
this.#buildSearchUI();
|
|
2728
2739
|
}
|
|
@@ -2771,6 +2782,21 @@ var UI = class {
|
|
|
2771
2782
|
}
|
|
2772
2783
|
return null;
|
|
2773
2784
|
}
|
|
2785
|
+
//* Fullscreen popup only: a close button, as the backdrop (tap to close) is not discoverable, and is unreachable for screen reader users.
|
|
2786
|
+
//* It lives inside the country selector (role=dialog, aria-modal) so assistive tech can reach it, but the CSS positions it out in the corner of the backdrop.
|
|
2787
|
+
#buildCloseButton() {
|
|
2788
|
+
this.#closeButtonEl = createEl(
|
|
2789
|
+
"button",
|
|
2790
|
+
{
|
|
2791
|
+
type: "button",
|
|
2792
|
+
class: this.#withSlotClass("closeButton", "iti__close-button"),
|
|
2793
|
+
[ARIA.LABEL]: this.#options.uiTranslations.closeCountrySelectorAriaLabel,
|
|
2794
|
+
tabindex: "-1"
|
|
2795
|
+
},
|
|
2796
|
+
this.#countrySelectorEl
|
|
2797
|
+
);
|
|
2798
|
+
this.#closeButtonEl.appendChild(buildCloseIcon());
|
|
2799
|
+
}
|
|
2774
2800
|
#buildSearchUI() {
|
|
2775
2801
|
const { uiTranslations, searchInputClass } = this.#options;
|
|
2776
2802
|
const searchWrapper = createEl(
|
|
@@ -3216,7 +3242,7 @@ var UI = class {
|
|
|
3216
3242
|
this.#bindCountrySelectorOpenListeners(onSelect, onClose);
|
|
3217
3243
|
}
|
|
3218
3244
|
//* Wire up all listeners needed while the country selector is open: list-item hover (highlight),
|
|
3219
|
-
//* list-item click & enter key (select), click-off & escape (close), search input (filter),
|
|
3245
|
+
//* list-item click & enter key (select), click-off, close button & escape (close), search input (filter),
|
|
3220
3246
|
//* (when countrySearch disabled) typed-char hidden search, and (when the country selector is in an
|
|
3221
3247
|
//* external container) update (fixed) position on scroll/resize.
|
|
3222
3248
|
#bindCountrySelectorOpenListeners(onSelect, onClose) {
|
|
@@ -3227,6 +3253,14 @@ var UI = class {
|
|
|
3227
3253
|
this.#bindOutsideClickToClose(signal, onClose);
|
|
3228
3254
|
}
|
|
3229
3255
|
this.#bindCountrySelectorKeydownListener(signal, onSelect, onClose);
|
|
3256
|
+
this.#closeButtonEl?.addEventListener(
|
|
3257
|
+
"click",
|
|
3258
|
+
() => {
|
|
3259
|
+
onClose();
|
|
3260
|
+
this.#selectedCountryEl.focus();
|
|
3261
|
+
},
|
|
3262
|
+
{ signal }
|
|
3263
|
+
);
|
|
3230
3264
|
if (this.#options.countrySearch) {
|
|
3231
3265
|
this.#bindSearchInputListener(signal);
|
|
3232
3266
|
}
|
|
@@ -4980,7 +5014,7 @@ var intlTelInput = Object.assign(
|
|
|
4980
5014
|
attachUtils,
|
|
4981
5015
|
startedLoadingUtils: false,
|
|
4982
5016
|
startedLoadingAutoCountry: false,
|
|
4983
|
-
version: "29.
|
|
5017
|
+
version: "29.5.1",
|
|
4984
5018
|
NUMBER_FORMAT,
|
|
4985
5019
|
NUMBER_TYPE,
|
|
4986
5020
|
VALIDATION_ERROR,
|
|
@@ -10519,7 +10553,7 @@ var _scope = {};
|
|
|
10519
10553
|
J.g = function() {
|
|
10520
10554
|
return J.h ? J.h : J.h = new J();
|
|
10521
10555
|
};
|
|
10522
|
-
var Fa = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "
|
|
10556
|
+
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 = {
|
|
10523
10557
|
0: "0",
|
|
10524
10558
|
1: "1",
|
|
10525
10559
|
2: "2",
|
|
@@ -10544,36 +10578,36 @@ var _scope = {};
|
|
|
10544
10578
|
7: "7",
|
|
10545
10579
|
8: "8",
|
|
10546
10580
|
9: "9",
|
|
10547
|
-
"
|
|
10548
|
-
"
|
|
10549
|
-
"
|
|
10550
|
-
"
|
|
10551
|
-
"
|
|
10552
|
-
"
|
|
10553
|
-
"
|
|
10554
|
-
"
|
|
10555
|
-
"
|
|
10556
|
-
"
|
|
10557
|
-
"
|
|
10558
|
-
"
|
|
10559
|
-
"
|
|
10560
|
-
"
|
|
10561
|
-
"
|
|
10562
|
-
"
|
|
10563
|
-
"
|
|
10564
|
-
"
|
|
10565
|
-
"
|
|
10566
|
-
"
|
|
10567
|
-
"
|
|
10568
|
-
"
|
|
10569
|
-
"
|
|
10570
|
-
"
|
|
10571
|
-
"
|
|
10572
|
-
"
|
|
10573
|
-
"
|
|
10574
|
-
"
|
|
10575
|
-
"
|
|
10576
|
-
"
|
|
10581
|
+
"0": "0",
|
|
10582
|
+
"1": "1",
|
|
10583
|
+
"2": "2",
|
|
10584
|
+
"3": "3",
|
|
10585
|
+
"4": "4",
|
|
10586
|
+
"5": "5",
|
|
10587
|
+
"6": "6",
|
|
10588
|
+
"7": "7",
|
|
10589
|
+
"8": "8",
|
|
10590
|
+
"9": "9",
|
|
10591
|
+
"٠": "0",
|
|
10592
|
+
"١": "1",
|
|
10593
|
+
"٢": "2",
|
|
10594
|
+
"٣": "3",
|
|
10595
|
+
"٤": "4",
|
|
10596
|
+
"٥": "5",
|
|
10597
|
+
"٦": "6",
|
|
10598
|
+
"٧": "7",
|
|
10599
|
+
"٨": "8",
|
|
10600
|
+
"٩": "9",
|
|
10601
|
+
"۰": "0",
|
|
10602
|
+
"۱": "1",
|
|
10603
|
+
"۲": "2",
|
|
10604
|
+
"۳": "3",
|
|
10605
|
+
"۴": "4",
|
|
10606
|
+
"۵": "5",
|
|
10607
|
+
"۶": "6",
|
|
10608
|
+
"۷": "7",
|
|
10609
|
+
"۸": "8",
|
|
10610
|
+
"۹": "9",
|
|
10577
10611
|
A: "2",
|
|
10578
10612
|
B: "2",
|
|
10579
10613
|
C: "2",
|
|
@@ -10600,14 +10634,14 @@ var _scope = {};
|
|
|
10600
10634
|
X: "9",
|
|
10601
10635
|
Y: "9",
|
|
10602
10636
|
Z: "9"
|
|
10603
|
-
}, Ia = RegExp("[
|
|
10637
|
+
}, 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٠-٩۰-۹])*\\.?$");
|
|
10604
10638
|
function L(a) {
|
|
10605
|
-
return "([0-9
|
|
10639
|
+
return "([0-90-9٠-٩۰-۹]{1," + a + "})";
|
|
10606
10640
|
}
|
|
10607
10641
|
function Qa() {
|
|
10608
|
-
return ";ext=" + L("20") + "|[
|
|
10642
|
+
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") + "#?");
|
|
10609
10643
|
}
|
|
10610
|
-
var Ra = new RegExp("(?:" + Qa() + ")$", "i"), Sa = new RegExp("^[0-9
|
|
10644
|
+
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\)?$/;
|
|
10611
10645
|
function Va(a) {
|
|
10612
10646
|
return a.length < 2 ? false : M(Sa, a);
|
|
10613
10647
|
}
|
|
@@ -10661,7 +10695,7 @@ var _scope = {};
|
|
|
10661
10695
|
}
|
|
10662
10696
|
e = null;
|
|
10663
10697
|
}
|
|
10664
|
-
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
|
|
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‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]+"), ""), d = d.replace(RegExp("[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]+", "g"), "-")));
|
|
10665
10699
|
return $a(
|
|
10666
10700
|
c,
|
|
10667
10701
|
b,
|
|
@@ -10930,7 +10964,7 @@ var _scope = {};
|
|
|
10930
10964
|
}
|
|
10931
10965
|
;
|
|
10932
10966
|
function jb(a) {
|
|
10933
|
-
this.ga = RegExp("
|
|
10967
|
+
this.ga = RegExp(" ");
|
|
10934
10968
|
this.ka = "";
|
|
10935
10969
|
this.$ = new B();
|
|
10936
10970
|
this.ea = "";
|
|
@@ -10950,7 +10984,7 @@ var _scope = {};
|
|
|
10950
10984
|
}
|
|
10951
10985
|
var lb = new G();
|
|
10952
10986
|
t(lb, 11, "NA");
|
|
10953
|
-
var mb = RegExp("^[-x
|
|
10987
|
+
var mb = RegExp("^[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*)*$"), nb = /[- ]/;
|
|
10954
10988
|
function kb(a, b) {
|
|
10955
10989
|
var c = a.ha;
|
|
10956
10990
|
b = O(b) ? eb(c, b) : 0;
|
|
@@ -10967,7 +11001,7 @@ var _scope = {};
|
|
|
10967
11001
|
var l = f;
|
|
10968
11002
|
g = v(g, 2);
|
|
10969
11003
|
var A = "999999999999999".match(h)[0];
|
|
10970
|
-
A.length < l.g.h.length ? l = "" : (l = A.replace(new RegExp(h, "g"), g), l = l.replace(RegExp("9", "g"), "
|
|
11004
|
+
A.length < l.g.h.length ? l = "" : (l = A.replace(new RegExp(h, "g"), g), l = l.replace(RegExp("9", "g"), " "));
|
|
10971
11005
|
l.length > 0 ? (f.$.g(l), f = true) : f = false;
|
|
10972
11006
|
if (f) return a.ea = e, a.ia = nb.test(r(d, 4)), a.ba = 0, true;
|
|
10973
11007
|
}
|
|
@@ -11549,8 +11583,8 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
11549
11583
|
registerOnValidatorChange(fn) {
|
|
11550
11584
|
this.onValidatorChange = fn;
|
|
11551
11585
|
}
|
|
11552
|
-
static
|
|
11553
|
-
static
|
|
11586
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: _IntlTelInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11587
|
+
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: [
|
|
11554
11588
|
{
|
|
11555
11589
|
provide: NG_VALUE_ACCESSOR,
|
|
11556
11590
|
useExisting: forwardRef(() => _IntlTelInput),
|
|
@@ -11574,7 +11608,7 @@ var IntlTelInput = class _IntlTelInput {
|
|
|
11574
11608
|
/>
|
|
11575
11609
|
`, isInline: true });
|
|
11576
11610
|
};
|
|
11577
|
-
i0
|
|
11611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: IntlTelInput, decorators: [{
|
|
11578
11612
|
type: Component,
|
|
11579
11613
|
args: [{
|
|
11580
11614
|
selector: "intl-tel-input",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intl-tel-input/angular",
|
|
3
|
-
"version": "29.
|
|
3
|
+
"version": "29.5.1",
|
|
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.
|
|
37
|
+
"intl-tel-input": "^29.5.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@angular/common": ">=17",
|