@taiga-ui/kit 3.27.0 → 3.28.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.
- package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.js +9 -3
- package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js +43 -48
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.js +39 -30
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js +8 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +25 -265
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +10 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js +35 -29
- package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-text-area.umd.js +38 -6
- package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-constants.umd.js +10 -0
- package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js +76 -0
- package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js +98 -0
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-pipes.umd.js +16 -4
- package/bundles/taiga-ui-kit-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.js +224 -0
- package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.js +19 -0
- package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-phone.umd.js +31 -0
- package/bundles/taiga-ui-kit-utils-phone.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-utils.umd.js +10 -4
- package/bundles/taiga-ui-kit-utils.umd.js.map +1 -1
- package/components/avatar/avatar.component.d.ts +3 -2
- package/components/files/files.component.d.ts +4 -3
- package/components/input-date/input-date.component.d.ts +4 -3
- package/components/input-date/input-date.module.d.ts +3 -2
- package/components/input-date-range/input-date-range.component.d.ts +4 -4
- package/components/input-date-range/input-date-range.module.d.ts +3 -2
- package/components/input-inline/input-inline.component.d.ts +2 -0
- package/components/input-phone-international/index.d.ts +0 -3
- package/components/input-phone-international/input-phone-international.component.d.ts +8 -4
- package/components/input-tag/input-tag.component.d.ts +1 -0
- package/components/input-time/input-time.component.d.ts +3 -2
- package/components/input-time/input-time.module.d.ts +4 -3
- package/components/text-area/text-area.component.d.ts +5 -1
- package/constants/date-mode-maskito-adapter.d.ts +3 -0
- package/constants/index.d.ts +2 -0
- package/esm2015/components/avatar/avatar.component.js +2 -2
- package/esm2015/components/files/files.component.js +11 -5
- package/esm2015/components/input-date/input-date.component.js +29 -19
- package/esm2015/components/input-date/input-date.module.js +6 -5
- package/esm2015/components/input-date-range/input-date-range.component.js +33 -37
- package/esm2015/components/input-date-range/input-date-range.module.js +6 -5
- package/esm2015/components/input-inline/input-inline.component.js +9 -2
- package/esm2015/components/input-phone-international/index.js +1 -4
- package/esm2015/components/input-phone-international/input-phone-international.component.js +24 -31
- package/esm2015/components/input-tag/input-tag.component.js +7 -2
- package/esm2015/components/input-time/input-time.component.js +21 -15
- package/esm2015/components/input-time/input-time.module.js +6 -5
- package/esm2015/components/text-area/text-area.component.js +23 -7
- package/esm2015/constants/date-mode-maskito-adapter.js +6 -0
- package/esm2015/constants/index.js +3 -1
- package/esm2015/constants/mask-after-code-regexp.js +2 -0
- package/esm2015/pipes/index.js +3 -1
- package/esm2015/pipes/iso-to-country-code/index.js +3 -0
- package/esm2015/pipes/iso-to-country-code/iso-to-country-code.module.js +16 -0
- package/esm2015/pipes/iso-to-country-code/iso-to-country-code.pipe.js +24 -0
- package/esm2015/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.js +5 -0
- package/esm2015/pipes/to-country-code/index.js +3 -0
- package/esm2015/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.js +5 -0
- package/esm2015/pipes/to-country-code/to-country-code.module.js +16 -0
- package/esm2015/pipes/to-country-code/to-country-code.pipe.js +47 -0
- package/esm2015/tokens/countries-masks.js +222 -0
- package/esm2015/tokens/index.js +2 -1
- package/esm2015/utils/index.js +2 -1
- package/esm2015/utils/mask/create-auto-corrected-date-pipe.js +7 -1
- package/esm2015/utils/mask/create-auto-corrected-date-range-pipe.js +3 -1
- package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +2 -1
- package/esm2015/utils/mask/create-date-mask.js +4 -1
- package/esm2015/utils/mask/create-date-range-mask.js +5 -1
- package/esm2015/utils/mask/create-time-mask.js +4 -1
- package/esm2015/utils/phone/get-max-allowed-phone-length.js +4 -0
- package/esm2015/utils/phone/index.js +4 -0
- package/esm2015/utils/phone/iso-to-country-code.js +5 -0
- package/esm2015/utils/phone/not-kz-region.js +5 -0
- package/esm2015/utils/phone/taiga-ui-kit-utils-phone.js +5 -0
- package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-files.js +9 -3
- package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-range.js +37 -40
- package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date.js +32 -21
- package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-inline.js +8 -1
- package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +24 -255
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +6 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-time.js +26 -19
- package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-text-area.js +22 -6
- package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm2015/taiga-ui-kit-constants.js +9 -1
- package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js +44 -0
- package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js.map +1 -0
- package/fesm2015/taiga-ui-kit-pipes-to-country-code.js +67 -0
- package/fesm2015/taiga-ui-kit-pipes-to-country-code.js.map +1 -0
- package/fesm2015/taiga-ui-kit-pipes.js +2 -0
- package/fesm2015/taiga-ui-kit-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-kit-tokens.js +222 -2
- package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-mask.js +19 -0
- package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-phone.js +21 -0
- package/fesm2015/taiga-ui-kit-utils-phone.js.map +1 -0
- package/fesm2015/taiga-ui-kit-utils.js +1 -0
- package/fesm2015/taiga-ui-kit-utils.js.map +1 -1
- package/package.json +4 -4
- package/pipes/index.d.ts +2 -0
- package/pipes/iso-to-country-code/index.d.ts +2 -0
- package/pipes/iso-to-country-code/iso-to-country-code.module.d.ts +7 -0
- package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +10 -0
- package/pipes/iso-to-country-code/package.json +10 -0
- package/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.d.ts +5 -0
- package/pipes/to-country-code/index.d.ts +2 -0
- package/pipes/to-country-code/package.json +10 -0
- package/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.d.ts +5 -0
- package/pipes/to-country-code/to-country-code.module.d.ts +7 -0
- package/pipes/to-country-code/to-country-code.pipe.d.ts +10 -0
- package/tokens/index.d.ts +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/mask/create-auto-corrected-date-pipe.d.ts +9 -0
- package/utils/mask/create-auto-corrected-date-range-pipe.d.ts +2 -0
- package/utils/mask/create-auto-corrected-time-pipe.d.ts +1 -0
- package/utils/mask/create-date-mask.d.ts +3 -0
- package/utils/mask/create-date-range-mask.d.ts +4 -0
- package/utils/mask/create-time-mask.d.ts +3 -0
- package/utils/phone/get-max-allowed-phone-length.d.ts +2 -0
- package/utils/phone/index.d.ts +3 -0
- package/utils/phone/iso-to-country-code.d.ts +2 -0
- package/utils/phone/package.json +10 -0
- package/utils/phone/taiga-ui-kit-utils-phone.d.ts +5 -0
- package/esm2015/components/input-phone-international/const/mask-after-code-regexp.js +0 -2
- package/esm2015/components/input-phone-international/tokens/countries-masks.js +0 -222
- package/esm2015/components/input-phone-international/utils/not-kz-region.js +0 -5
- /package/{components/input-phone-international/const → constants}/mask-after-code-regexp.d.ts +0 -0
- /package/{components/input-phone-international/tokens → tokens}/countries-masks.d.ts +0 -0
- /package/{components/input-phone-international/utils → utils/phone}/not-kz-region.d.ts +0 -0
|
@@ -11,16 +11,17 @@ import { TuiCountryIsoCode } from '@taiga-ui/i18n';
|
|
|
11
11
|
import { TUI_ARROW, TuiArrowModule } from '@taiga-ui/kit/components/arrow';
|
|
12
12
|
import * as i2 from '@taiga-ui/kit/components/input-phone';
|
|
13
13
|
import { TuiInputPhoneComponent, TuiInputPhoneModule } from '@taiga-ui/kit/components/input-phone';
|
|
14
|
+
import * as i8 from '@taiga-ui/kit/pipes';
|
|
15
|
+
import { TuiToCountryCodePipe } from '@taiga-ui/kit/pipes';
|
|
14
16
|
import { FIXED_DROPDOWN_CONTROLLER_PROVIDER } from '@taiga-ui/kit/providers';
|
|
15
|
-
import { TUI_COUNTRIES } from '@taiga-ui/kit/tokens';
|
|
17
|
+
import { TUI_COUNTRIES, TUI_COUNTRIES_MASKS } from '@taiga-ui/kit/tokens';
|
|
18
|
+
import { tuiIsoToCountryCode, tuiGetMaxAllowedPhoneLength } from '@taiga-ui/kit/utils';
|
|
16
19
|
import * as i3 from '@angular/common';
|
|
17
20
|
import { CommonModule } from '@angular/common';
|
|
18
21
|
import * as i6 from '@tinkoff/ng-polymorpheus';
|
|
19
22
|
import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
20
23
|
import * as i7 from 'rxjs';
|
|
21
24
|
|
|
22
|
-
const MASK_AFTER_CODE_REGEXP = /\([#]+\)|[#\- ]/g;
|
|
23
|
-
|
|
24
25
|
const TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS = {
|
|
25
26
|
countries: [],
|
|
26
27
|
countryIsoCode: TuiCountryIsoCode.RU,
|
|
@@ -36,226 +37,6 @@ const tuiInputPhoneInternationalOptionsProvider = (options) => ({
|
|
|
36
37
|
useValue: Object.assign(Object.assign({}, TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS), options),
|
|
37
38
|
});
|
|
38
39
|
|
|
39
|
-
const TUI_COUNTRIES_MASKS = new InjectionToken(`[TUI_COUNTRIES_MASKS]`, {
|
|
40
|
-
factory: () => ({
|
|
41
|
-
[TuiCountryIsoCode.AD]: `+376###-###`,
|
|
42
|
-
[TuiCountryIsoCode.AE]: `+971-##-###-####`,
|
|
43
|
-
[TuiCountryIsoCode.AF]: `+93##-###-####`,
|
|
44
|
-
[TuiCountryIsoCode.AG]: `+1(268) ###-####`,
|
|
45
|
-
[TuiCountryIsoCode.AI]: `+1(264) ###-####`,
|
|
46
|
-
[TuiCountryIsoCode.AL]: `+355(###) ###-###`,
|
|
47
|
-
[TuiCountryIsoCode.AM]: `+374##-###-###`,
|
|
48
|
-
[TuiCountryIsoCode.AO]: `+244(###) ###-###`,
|
|
49
|
-
[TuiCountryIsoCode.AR]: `+54(###) ###-####`,
|
|
50
|
-
[TuiCountryIsoCode.AT]: `+43(###) ###-####`,
|
|
51
|
-
[TuiCountryIsoCode.AU]: `+61#-####-####`,
|
|
52
|
-
[TuiCountryIsoCode.AW]: `+297###-####`,
|
|
53
|
-
[TuiCountryIsoCode.AZ]: `+994##-###-##-##`,
|
|
54
|
-
[TuiCountryIsoCode.BA]: `+387 ###-####-##`,
|
|
55
|
-
[TuiCountryIsoCode.BB]: `+1(246) ###-####`,
|
|
56
|
-
[TuiCountryIsoCode.BD]: `+880##-###-###`,
|
|
57
|
-
[TuiCountryIsoCode.BE]: `+32(###) ###-###`,
|
|
58
|
-
[TuiCountryIsoCode.BF]: `+226##-##-####`,
|
|
59
|
-
[TuiCountryIsoCode.BG]: `+359(###) ###-###`,
|
|
60
|
-
[TuiCountryIsoCode.BH]: `+973####-####`,
|
|
61
|
-
[TuiCountryIsoCode.BI]: `+257##-##-####`,
|
|
62
|
-
[TuiCountryIsoCode.BJ]: `+229##-##-####`,
|
|
63
|
-
[TuiCountryIsoCode.BL]: `+590 ## ## ## ## ##`,
|
|
64
|
-
[TuiCountryIsoCode.BM]: `+1(441) ###-####`,
|
|
65
|
-
[TuiCountryIsoCode.BN]: `+673###-####`,
|
|
66
|
-
[TuiCountryIsoCode.BO]: `+591#-###-####`,
|
|
67
|
-
[TuiCountryIsoCode.BQ]: `+599-###-####`,
|
|
68
|
-
[TuiCountryIsoCode.BR]: `+55(##) ####-####`,
|
|
69
|
-
[TuiCountryIsoCode.BS]: `+1(242) ###-####`,
|
|
70
|
-
[TuiCountryIsoCode.BT]: `+975#-###-###`,
|
|
71
|
-
[TuiCountryIsoCode.BW]: `+267##-###-###`,
|
|
72
|
-
[TuiCountryIsoCode.BY]: `+375(##) ###-##-##`,
|
|
73
|
-
[TuiCountryIsoCode.BZ]: `+501###-####`,
|
|
74
|
-
[TuiCountryIsoCode.CA]: `+1(###) ###-####`,
|
|
75
|
-
[TuiCountryIsoCode.CD]: `+243(###) ###-###`,
|
|
76
|
-
[TuiCountryIsoCode.CF]: `+236-##-##-####`,
|
|
77
|
-
[TuiCountryIsoCode.CG]: `+242##-###-####`,
|
|
78
|
-
[TuiCountryIsoCode.CH]: `+41##-###-####`,
|
|
79
|
-
[TuiCountryIsoCode.CI]: `+225##-##-###-###`,
|
|
80
|
-
[TuiCountryIsoCode.CL]: `+56#-####-####`,
|
|
81
|
-
[TuiCountryIsoCode.CM]: `+237#####-####`,
|
|
82
|
-
[TuiCountryIsoCode.CN]: `+86(###) ####-####`,
|
|
83
|
-
[TuiCountryIsoCode.CO]: `+57(###) ###-####`,
|
|
84
|
-
[TuiCountryIsoCode.CR]: `+506####-####`,
|
|
85
|
-
[TuiCountryIsoCode.CU]: `+53#-###-####`,
|
|
86
|
-
[TuiCountryIsoCode.CV]: `+238(###) ##-##`,
|
|
87
|
-
[TuiCountryIsoCode.CW]: `+5999-###-####`,
|
|
88
|
-
[TuiCountryIsoCode.CY]: `+357##-###-###`,
|
|
89
|
-
[TuiCountryIsoCode.CZ]: `+420(###) ###-###`,
|
|
90
|
-
[TuiCountryIsoCode.DE]: `+49(###) ###-###-##`,
|
|
91
|
-
[TuiCountryIsoCode.DJ]: `+253##-##-##-##`,
|
|
92
|
-
[TuiCountryIsoCode.DK]: `+45##-##-##-##`,
|
|
93
|
-
[TuiCountryIsoCode.DM]: `+1(767) ###-####`,
|
|
94
|
-
[TuiCountryIsoCode.DO]: `+1(###) ###-####`,
|
|
95
|
-
[TuiCountryIsoCode.DZ]: `+213##-###-####`,
|
|
96
|
-
[TuiCountryIsoCode.EC]: `+593##-###-####`,
|
|
97
|
-
[TuiCountryIsoCode.EE]: `+372####-####`,
|
|
98
|
-
[TuiCountryIsoCode.EG]: `+20(###) ###-####`,
|
|
99
|
-
[TuiCountryIsoCode.ER]: `+291#-###-###`,
|
|
100
|
-
[TuiCountryIsoCode.ES]: `+34(###) ###-###`,
|
|
101
|
-
[TuiCountryIsoCode.ET]: `+251##-###-####`,
|
|
102
|
-
[TuiCountryIsoCode.FI]: `+358(###) ###-##-##`,
|
|
103
|
-
[TuiCountryIsoCode.FJ]: `+679##-#####`,
|
|
104
|
-
[TuiCountryIsoCode.FK]: `+500#####`,
|
|
105
|
-
[TuiCountryIsoCode.FM]: `+691###-####`,
|
|
106
|
-
[TuiCountryIsoCode.FR]: `+33 ## ## ## ## ##`,
|
|
107
|
-
[TuiCountryIsoCode.GA]: `+241##-##-##-##`,
|
|
108
|
-
[TuiCountryIsoCode.GB]: `+44##-####-####`,
|
|
109
|
-
[TuiCountryIsoCode.GD]: `+1(473) ###-####`,
|
|
110
|
-
[TuiCountryIsoCode.GE]: `+995(###) ###-###`,
|
|
111
|
-
[TuiCountryIsoCode.GF]: `+594 ## ## ## ## ##`,
|
|
112
|
-
[TuiCountryIsoCode.GH]: `+233(###) ###-###`,
|
|
113
|
-
[TuiCountryIsoCode.GI]: `+350###-#####`,
|
|
114
|
-
[TuiCountryIsoCode.GL]: `+299##-##-##`,
|
|
115
|
-
[TuiCountryIsoCode.GM]: `+220(###) ##-##`,
|
|
116
|
-
[TuiCountryIsoCode.GN]: `+224##-###-###`,
|
|
117
|
-
[TuiCountryIsoCode.GP]: `+590 ## ## ## ## ##`,
|
|
118
|
-
[TuiCountryIsoCode.GQ]: `+240##-###-####`,
|
|
119
|
-
[TuiCountryIsoCode.GR]: `+30(###) ###-####`,
|
|
120
|
-
[TuiCountryIsoCode.GT]: `+502#-###-####`,
|
|
121
|
-
[TuiCountryIsoCode.GW]: `+245#-######`,
|
|
122
|
-
[TuiCountryIsoCode.GY]: `+592###-####`,
|
|
123
|
-
[TuiCountryIsoCode.HK]: `+852####-####`,
|
|
124
|
-
[TuiCountryIsoCode.HN]: `+504####-####`,
|
|
125
|
-
[TuiCountryIsoCode.HR]: `+385##-###-####`,
|
|
126
|
-
[TuiCountryIsoCode.HT]: `+509##-##-####`,
|
|
127
|
-
[TuiCountryIsoCode.HU]: `+36(###) ###-###`,
|
|
128
|
-
[TuiCountryIsoCode.ID]: `+62(###) ###-##-###`,
|
|
129
|
-
[TuiCountryIsoCode.IE]: `+353(###) ###-###`,
|
|
130
|
-
[TuiCountryIsoCode.IL]: `+972##-###-####`,
|
|
131
|
-
[TuiCountryIsoCode.IN]: `+91(####) ###-###`,
|
|
132
|
-
[TuiCountryIsoCode.IQ]: `+964(###) ###-####`,
|
|
133
|
-
[TuiCountryIsoCode.IR]: `+98(###) ###-####`,
|
|
134
|
-
[TuiCountryIsoCode.IS]: `+354###-####`,
|
|
135
|
-
[TuiCountryIsoCode.IT]: `+39(###) ####-###`,
|
|
136
|
-
[TuiCountryIsoCode.JM]: `+1(876) ###-####`,
|
|
137
|
-
[TuiCountryIsoCode.JO]: `+962#-####-####`,
|
|
138
|
-
[TuiCountryIsoCode.JP]: `+81-##-####-####`,
|
|
139
|
-
[TuiCountryIsoCode.KE]: `+254###-######`,
|
|
140
|
-
[TuiCountryIsoCode.KG]: `+996(###) ###-###`,
|
|
141
|
-
[TuiCountryIsoCode.KH]: `+855##-###-###`,
|
|
142
|
-
[TuiCountryIsoCode.KM]: `+269##-#####`,
|
|
143
|
-
[TuiCountryIsoCode.KN]: `+1(869) ###-####`,
|
|
144
|
-
[TuiCountryIsoCode.KP]: `+850####-#############`,
|
|
145
|
-
[TuiCountryIsoCode.KR]: `+82##-###-####`,
|
|
146
|
-
[TuiCountryIsoCode.KW]: `+965####-####`,
|
|
147
|
-
[TuiCountryIsoCode.KY]: `+1(345) ###-####`,
|
|
148
|
-
[TuiCountryIsoCode.KZ]: `+7(###) ###-##-##`,
|
|
149
|
-
[TuiCountryIsoCode.LA]: `+856##-##-###-###`,
|
|
150
|
-
[TuiCountryIsoCode.LB]: `+961##-###-###`,
|
|
151
|
-
[TuiCountryIsoCode.LC]: `+1(758) ###-####`,
|
|
152
|
-
[TuiCountryIsoCode.LI]: `+423(###) ###-####`,
|
|
153
|
-
[TuiCountryIsoCode.LK]: `+94##-###-####`,
|
|
154
|
-
[TuiCountryIsoCode.LR]: `+231##-###-###`,
|
|
155
|
-
[TuiCountryIsoCode.LS]: `+266#-###-####`,
|
|
156
|
-
[TuiCountryIsoCode.LT]: `+370(###) ##-###`,
|
|
157
|
-
[TuiCountryIsoCode.LU]: `+352(###) ###-###`,
|
|
158
|
-
[TuiCountryIsoCode.LV]: `+371##-###-###`,
|
|
159
|
-
[TuiCountryIsoCode.LY]: `+218##-###-####`,
|
|
160
|
-
[TuiCountryIsoCode.MA]: `+212##-####-###`,
|
|
161
|
-
[TuiCountryIsoCode.MC]: `+377###-###-###`,
|
|
162
|
-
[TuiCountryIsoCode.MD]: `+373####-####`,
|
|
163
|
-
[TuiCountryIsoCode.ME]: `+382##-###-###`,
|
|
164
|
-
[TuiCountryIsoCode.MF]: `+590 ## ## ## ## ##`,
|
|
165
|
-
[TuiCountryIsoCode.MG]: `+261##-##-#####`,
|
|
166
|
-
[TuiCountryIsoCode.MK]: `+389##-###-###`,
|
|
167
|
-
[TuiCountryIsoCode.ML]: `+223##-##-####`,
|
|
168
|
-
[TuiCountryIsoCode.MM]: `+95##-###-###`,
|
|
169
|
-
[TuiCountryIsoCode.MN]: `+976##-##-####`,
|
|
170
|
-
[TuiCountryIsoCode.MO]: `+853####-####`,
|
|
171
|
-
[TuiCountryIsoCode.MQ]: `+596 ## ## ## ## ##`,
|
|
172
|
-
[TuiCountryIsoCode.MR]: `+222##-##-####`,
|
|
173
|
-
[TuiCountryIsoCode.MS]: `+1(664) ###-####`,
|
|
174
|
-
[TuiCountryIsoCode.MT]: `+356####-####`,
|
|
175
|
-
[TuiCountryIsoCode.MU]: `+230####-####`,
|
|
176
|
-
[TuiCountryIsoCode.MV]: `+960###-####`,
|
|
177
|
-
[TuiCountryIsoCode.MW]: `+265#-####-####`,
|
|
178
|
-
[TuiCountryIsoCode.MX]: `+52(###) ###-####`,
|
|
179
|
-
[TuiCountryIsoCode.MY]: `+60(###) ###-###`,
|
|
180
|
-
[TuiCountryIsoCode.MZ]: `+258##-###-###`,
|
|
181
|
-
[TuiCountryIsoCode.NA]: `+264##-###-####`,
|
|
182
|
-
[TuiCountryIsoCode.NC]: `+687 ### ###`,
|
|
183
|
-
[TuiCountryIsoCode.NE]: `+227##-##-####`,
|
|
184
|
-
[TuiCountryIsoCode.NG]: `+234(###) ###-####`,
|
|
185
|
-
[TuiCountryIsoCode.NI]: `+505####-####`,
|
|
186
|
-
[TuiCountryIsoCode.NL]: `+31##-###-####`,
|
|
187
|
-
[TuiCountryIsoCode.NO]: `+47(###) ##-###`,
|
|
188
|
-
[TuiCountryIsoCode.NP]: `+977##-###-###`,
|
|
189
|
-
[TuiCountryIsoCode.NZ]: `+64(###) ###-####`,
|
|
190
|
-
[TuiCountryIsoCode.OM]: `+968##-###-###`,
|
|
191
|
-
[TuiCountryIsoCode.PA]: `+507###-####`,
|
|
192
|
-
[TuiCountryIsoCode.PE]: `+51(###) ###-###`,
|
|
193
|
-
[TuiCountryIsoCode.PF]: `+689 ## ## ## ##`,
|
|
194
|
-
[TuiCountryIsoCode.PG]: `+675(###) ##-###`,
|
|
195
|
-
[TuiCountryIsoCode.PH]: `+63(###) ###-####`,
|
|
196
|
-
[TuiCountryIsoCode.PK]: `+92(###) ###-####`,
|
|
197
|
-
[TuiCountryIsoCode.PL]: `+48(###) ###-###`,
|
|
198
|
-
[TuiCountryIsoCode.PT]: `+351##-###-####`,
|
|
199
|
-
[TuiCountryIsoCode.PW]: `+680###-####`,
|
|
200
|
-
[TuiCountryIsoCode.PY]: `+595(###) ###-###`,
|
|
201
|
-
[TuiCountryIsoCode.QA]: `+974####-####`,
|
|
202
|
-
[TuiCountryIsoCode.RE]: `+262 ## ## ## ## ##`,
|
|
203
|
-
[TuiCountryIsoCode.RO]: `+40##-###-####`,
|
|
204
|
-
[TuiCountryIsoCode.RS]: `+381##-###-####`,
|
|
205
|
-
[TuiCountryIsoCode.RU]: `+7### ###-##-##`,
|
|
206
|
-
[TuiCountryIsoCode.RW]: `+250(###) ###-###`,
|
|
207
|
-
[TuiCountryIsoCode.SA]: `+966#-####-####`,
|
|
208
|
-
[TuiCountryIsoCode.SB]: `+677###-####`,
|
|
209
|
-
[TuiCountryIsoCode.SC]: `+248#-###-###`,
|
|
210
|
-
[TuiCountryIsoCode.SD]: `+249##-###-####`,
|
|
211
|
-
[TuiCountryIsoCode.SE]: `+46##-###-####`,
|
|
212
|
-
[TuiCountryIsoCode.SG]: `+65####-####`,
|
|
213
|
-
[TuiCountryIsoCode.SH]: `+290####`,
|
|
214
|
-
[TuiCountryIsoCode.SI]: `+386##-###-###`,
|
|
215
|
-
[TuiCountryIsoCode.SK]: `+421(###) ###-###`,
|
|
216
|
-
[TuiCountryIsoCode.SL]: `+232##-######`,
|
|
217
|
-
[TuiCountryIsoCode.SM]: `+378####-######`,
|
|
218
|
-
[TuiCountryIsoCode.SN]: `+221##-###-####`,
|
|
219
|
-
[TuiCountryIsoCode.SO]: `+252##-###-###`,
|
|
220
|
-
[TuiCountryIsoCode.SR]: `+597###-####`,
|
|
221
|
-
[TuiCountryIsoCode.ST]: `+239##-#####`,
|
|
222
|
-
[TuiCountryIsoCode.SV]: `+503##-##-####`,
|
|
223
|
-
[TuiCountryIsoCode.SX]: `+1(721) ###-####`,
|
|
224
|
-
[TuiCountryIsoCode.SY]: `+963##-####-###`,
|
|
225
|
-
[TuiCountryIsoCode.SZ]: `+268##-##-####`,
|
|
226
|
-
[TuiCountryIsoCode.TC]: `+1(649) ###-####`,
|
|
227
|
-
[TuiCountryIsoCode.TD]: `+235##-##-##-##`,
|
|
228
|
-
[TuiCountryIsoCode.TG]: `+228##-###-###`,
|
|
229
|
-
[TuiCountryIsoCode.TH]: `+66##-###-####`,
|
|
230
|
-
[TuiCountryIsoCode.TJ]: `+992##-###-####`,
|
|
231
|
-
[TuiCountryIsoCode.TL]: `+670###-#####`,
|
|
232
|
-
[TuiCountryIsoCode.TM]: `+993#-###-####`,
|
|
233
|
-
[TuiCountryIsoCode.TN]: `+216##-###-###`,
|
|
234
|
-
[TuiCountryIsoCode.TO]: `+676#####`,
|
|
235
|
-
[TuiCountryIsoCode.TR]: `+90(###) ###-####`,
|
|
236
|
-
[TuiCountryIsoCode.TT]: `+1(868) ###-####`,
|
|
237
|
-
[TuiCountryIsoCode.TW]: `+886#-####-####`,
|
|
238
|
-
[TuiCountryIsoCode.TZ]: `+255##-###-####`,
|
|
239
|
-
[TuiCountryIsoCode.UA]: `+380(##) ###-##-##`,
|
|
240
|
-
[TuiCountryIsoCode.UG]: `+256(###) ###-###`,
|
|
241
|
-
[TuiCountryIsoCode.US]: `+1(###) ###-####`,
|
|
242
|
-
[TuiCountryIsoCode.UY]: `+598#-###-##-##`,
|
|
243
|
-
[TuiCountryIsoCode.UZ]: `+998##-###-####`,
|
|
244
|
-
[TuiCountryIsoCode.VC]: `+1(784) ###-####`,
|
|
245
|
-
[TuiCountryIsoCode.VE]: `+58(###) ###-####`,
|
|
246
|
-
[TuiCountryIsoCode.VG]: `+1(284)###-####`,
|
|
247
|
-
[TuiCountryIsoCode.VN]: `+84(###) ####-###`,
|
|
248
|
-
[TuiCountryIsoCode.VU]: `+678##-#####`,
|
|
249
|
-
[TuiCountryIsoCode.WS]: `+685##-####`,
|
|
250
|
-
[TuiCountryIsoCode.XK]: `+383##-###-###`,
|
|
251
|
-
[TuiCountryIsoCode.YE]: `+967###-###-###`,
|
|
252
|
-
[TuiCountryIsoCode.YT]: `+262 ## ## ## ## ##`,
|
|
253
|
-
[TuiCountryIsoCode.ZA]: `+27##-###-####`,
|
|
254
|
-
[TuiCountryIsoCode.ZM]: `+260##-###-####`,
|
|
255
|
-
[TuiCountryIsoCode.ZW]: `+263#-######`,
|
|
256
|
-
}),
|
|
257
|
-
});
|
|
258
|
-
|
|
259
40
|
function tuiExtractValueFromEvent(event) {
|
|
260
41
|
var _a;
|
|
261
42
|
return `dataTransfer` in event
|
|
@@ -263,24 +44,20 @@ function tuiExtractValueFromEvent(event) {
|
|
|
263
44
|
: tuiGetClipboardDataText(event);
|
|
264
45
|
}
|
|
265
46
|
|
|
266
|
-
function tuiNotKzRegion(value) {
|
|
267
|
-
const region = Number(value.slice(1, 4));
|
|
268
|
-
return region < 600 || region > 799;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
47
|
class TuiInputPhoneInternationalComponent extends AbstractTuiControl {
|
|
272
|
-
constructor(control, cdr, countriesNames$, countriesMasks, options, flagPipe) {
|
|
48
|
+
constructor(control, cdr, countriesNames$, countriesMasks, options, flagPipe, extractCountryCodePipe) {
|
|
273
49
|
super(control, cdr);
|
|
274
50
|
this.countriesNames$ = countriesNames$;
|
|
275
51
|
this.countriesMasks = countriesMasks;
|
|
276
52
|
this.options = options;
|
|
277
53
|
this.flagPipe = flagPipe;
|
|
54
|
+
this.extractCountryCodePipe = extractCountryCodePipe;
|
|
278
55
|
this.countries = this.options.countries;
|
|
279
56
|
this.countryIsoCodeChange = new EventEmitter();
|
|
280
57
|
this.countryIsoCode = this.options.countryIsoCode;
|
|
281
58
|
this.open = false;
|
|
282
59
|
this.arrow = TUI_ARROW;
|
|
283
|
-
this.isoToCountryCodeMapper = item => this.
|
|
60
|
+
this.isoToCountryCodeMapper = item => tuiIsoToCountryCode(this.countriesMasks, item);
|
|
284
61
|
}
|
|
285
62
|
set isoCode(code) {
|
|
286
63
|
var _a;
|
|
@@ -300,10 +77,10 @@ class TuiInputPhoneInternationalComponent extends AbstractTuiControl {
|
|
|
300
77
|
(!!this.inputPhoneComponent && this.inputPhoneComponent.focused));
|
|
301
78
|
}
|
|
302
79
|
get inputPhoneCountryCode() {
|
|
303
|
-
return this.
|
|
80
|
+
return tuiIsoToCountryCode(this.countriesMasks, this.countryIsoCode);
|
|
304
81
|
}
|
|
305
82
|
get phoneMaskAfterCountryCode() {
|
|
306
|
-
const countryCode = this.
|
|
83
|
+
const countryCode = this.inputPhoneCountryCode;
|
|
307
84
|
return this.calculateMaskAfterCountryCode(this.countriesMasks[this.countryIsoCode], countryCode);
|
|
308
85
|
}
|
|
309
86
|
/**
|
|
@@ -315,11 +92,11 @@ class TuiInputPhoneInternationalComponent extends AbstractTuiControl {
|
|
|
315
92
|
}
|
|
316
93
|
onPaste(event) {
|
|
317
94
|
let value = tuiExtractValueFromEvent(event).replace(TUI_NON_DIGITS_REGEXP, '');
|
|
318
|
-
const countryIsoCode = this.
|
|
95
|
+
const countryIsoCode = this.extractCountryCodePipe.transform(value, this.countries);
|
|
319
96
|
if (!countryIsoCode) {
|
|
320
97
|
this.value = `${this.inputPhoneCountryCode}${value}`
|
|
321
98
|
.replace(TUI_MASK_SYMBOLS_REGEXP, '')
|
|
322
|
-
.slice(0, this.
|
|
99
|
+
.slice(0, tuiGetMaxAllowedPhoneLength(this.countriesMasks, this.countryIsoCode));
|
|
323
100
|
return;
|
|
324
101
|
}
|
|
325
102
|
if (countryIsoCode === TuiCountryIsoCode.RU) {
|
|
@@ -340,7 +117,7 @@ class TuiInputPhoneInternationalComponent extends AbstractTuiControl {
|
|
|
340
117
|
this.updateCountryIsoCode(isoCode);
|
|
341
118
|
// recalculates mask inside inputPhone to prevent isoCode conflict
|
|
342
119
|
this.cdr.detectChanges();
|
|
343
|
-
const maxLength = this.
|
|
120
|
+
const maxLength = tuiGetMaxAllowedPhoneLength(this.countriesMasks, isoCode);
|
|
344
121
|
if (this.value.length > maxLength) {
|
|
345
122
|
this.value = this.value.slice(0, maxLength);
|
|
346
123
|
}
|
|
@@ -352,8 +129,12 @@ class TuiInputPhoneInternationalComponent extends AbstractTuiControl {
|
|
|
352
129
|
super.setDisabledState();
|
|
353
130
|
this.close();
|
|
354
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated use `{{ countryIsoCode | tuiIsoToCountryCode }}`
|
|
134
|
+
* TODO drop in v4.0
|
|
135
|
+
*/
|
|
355
136
|
isoToCountryCode(isoCode) {
|
|
356
|
-
return this.countriesMasks
|
|
137
|
+
return tuiIsoToCountryCode(this.countriesMasks, isoCode);
|
|
357
138
|
}
|
|
358
139
|
/** @deprecated use 'value' setter */
|
|
359
140
|
onModelChange(value) {
|
|
@@ -371,34 +152,18 @@ class TuiInputPhoneInternationalComponent extends AbstractTuiControl {
|
|
|
371
152
|
close() {
|
|
372
153
|
this.open = false;
|
|
373
154
|
}
|
|
374
|
-
getMaxAllowedLength(isoCode) {
|
|
375
|
-
return this.countriesMasks[isoCode].replace(/[()\- ]/g, '').length;
|
|
376
|
-
}
|
|
377
155
|
updateCountryIsoCode(code) {
|
|
378
156
|
this.countryIsoCode = code;
|
|
379
157
|
this.countryIsoCodeChange.emit(code);
|
|
380
158
|
}
|
|
381
|
-
extractCountryCode(value) {
|
|
382
|
-
return this.countries.find(countryIsoCode => {
|
|
383
|
-
const ruCodeTest = countryIsoCode === TuiCountryIsoCode.RU &&
|
|
384
|
-
/^[7 | 8]/.test(value) &&
|
|
385
|
-
/^(?!880[1-9 ])/.test(value) &&
|
|
386
|
-
value.length + 1 === this.getMaxAllowedLength(TuiCountryIsoCode.RU);
|
|
387
|
-
const matched = ruCodeTest ||
|
|
388
|
-
(value.startsWith(this.isoToCountryCode(countryIsoCode).replace(CHAR_PLUS, '')) &&
|
|
389
|
-
value.length + 1 === this.getMaxAllowedLength(countryIsoCode));
|
|
390
|
-
return matched && countryIsoCode === TuiCountryIsoCode.RU
|
|
391
|
-
? tuiNotKzRegion(value)
|
|
392
|
-
: matched;
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
159
|
}
|
|
396
|
-
TuiInputPhoneInternationalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPhoneInternationalComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_COUNTRIES }, { token: TUI_COUNTRIES_MASKS }, { token: TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS }, { token: TuiFlagPipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
160
|
+
TuiInputPhoneInternationalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPhoneInternationalComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_COUNTRIES }, { token: TUI_COUNTRIES_MASKS }, { token: TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS }, { token: TuiFlagPipe }, { token: TuiToCountryCodePipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
397
161
|
TuiInputPhoneInternationalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputPhoneInternationalComponent, selector: "tui-input-phone-international", inputs: { isoCode: ["countryIsoCode", "isoCode"], countries: "countries" }, outputs: { countryIsoCodeChange: "countryIsoCodeChange" }, host: { listeners: { "paste.capture.prevent.stop": "onPaste($event)", "drop.capture.prevent.stop": "onPaste($event)" } }, providers: [
|
|
398
162
|
tuiAsFocusableItemAccessor(TuiInputPhoneInternationalComponent),
|
|
399
163
|
tuiAsControl(TuiInputPhoneInternationalComponent),
|
|
400
164
|
// TODO: for backward compatibility only. Drop in v4.0
|
|
401
165
|
TuiFlagPipe,
|
|
166
|
+
TuiToCountryCodePipe,
|
|
402
167
|
], viewQueries: [{ propertyName: "inputPhoneComponent", first: true, predicate: TuiInputPhoneComponent, descendants: true }, { propertyName: "primitiveTextfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-hosted-dropdown\n *ngIf=\"countriesNames$ | async as countriesNames\"\n class=\"t-hosted-dropdown\"\n [content]=\"dropdown\"\n [canOpen]=\"!readOnly\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <div tuiGroup>\n <tui-primitive-textfield\n tuiHintContent=\"\"\n tuiTextfieldPrefix=\"\"\n tuiTextfieldPostfix=\"\"\n class=\"t-country-select tui-group__auto-width-item\"\n [tuiTextfieldCustomContent]=\"countryValueContent\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldIcon]=\"icon\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [editable]=\"false\"\n [pseudoFocus]=\"open || null\"\n [readOnly]=\"readOnly\"\n ></tui-primitive-textfield>\n <tui-input-phone\n class=\"t-input-phone tui-group__auto-width-item\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [countryCode]=\"inputPhoneCountryCode\"\n [phoneMaskAfterCountryCode]=\"phoneMaskAfterCountryCode\"\n [readOnly]=\"readOnly\"\n [pseudoInvalid]=\"computedInvalid\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [(ngModel)]=\"value\"\n >\n <ng-content></ng-content>\n <input\n tuiTextfield\n autocomplete=\"new-password\"\n />\n </tui-input-phone>\n </div>\n\n <ng-template #dropdown>\n <tui-data-list>\n <button\n *ngFor=\"let item of countries\"\n tuiOption\n (click)=\"onItemClick(item)\"\n >\n <img\n alt=\"\"\n class=\"t-country-item-flag\"\n [src]=\"item | tuiFlag\"\n />\n <span class=\"t-country-item-name\">\n {{ countriesNames[item] }}\n </span>\n <span class=\"t-country-item-code\">\n {{ item | tuiMapper : isoToCountryCodeMapper }}\n </span>\n </button>\n </tui-data-list>\n </ng-template>\n\n <ng-template #countryValueContent>\n <!-- eslint-disable @html-eslint/require-img-alt -->\n <img\n class=\"t-flag\"\n [alt]=\"countriesNames[countryIsoCode]\"\n [src]=\"countryIsoCode | tuiFlag\"\n />\n </ng-template>\n\n <ng-template #icon>\n <div\n tuiWrapper\n appearance=\"icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\"></ng-container>\n </div>\n </ng-template>\n</tui-hosted-dropdown>\n", styles: [":host{display:block}:host._disabled{pointer-events:none}.t-hosted-dropdown{display:block}.t-country-select{width:5.625rem}.t-country-select:not(._readonly) ::ng-deep input:not(:disabled){cursor:pointer}.t-country-select._readonly ::ng-deep input{cursor:default}.t-country-select[data-size=m]{width:5.5rem}.t-country-select[data-size=s]{width:2rem}.t-country-select[data-size=s] .t-flag{margin-left:-1rem}.t-arrow-icon{position:relative;display:flex;width:1.5rem;height:1.5rem;margin:0 0 0 .25rem;-webkit-margin-start:.25rem;margin-inline-start:.25rem;-webkit-margin-end:0;margin-inline-end:0;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer}:host._readonly .t-arrow-icon,:host._disabled .t-arrow-icon{pointer-events:none}.t-arrow-icon_open{transform:rotate(180deg)}.t-input-phone{flex:1}.t-flag{width:1.75rem;height:1.25rem;margin-left:-.5rem}.t-country-item-flag{width:1.75rem;height:1.25rem}.t-country-item-name{margin-left:.75rem;margin-right:auto}.t-country-item-code{color:var(--tui-text-02);margin-right:.25rem}\n"], components: [{ type: i1.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i2.TuiInputPhoneComponent, selector: "tui-input-phone", inputs: ["countryCode", "phoneMaskAfterCountryCode", "allowText", "search"], outputs: ["searchChange"] }, { type: i1.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }, { type: i1.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }, { type: i1.TuiOptionComponent, selector: "button[tuiOption], a[tuiOption]", inputs: ["size", "role", "disabled", "value"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i1.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: i1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i1.TuiHintOptionsDirective, selector: "[tuiHintContent]", inputs: ["tuiHintContent", "tuiHintDirection", "tuiHintAppearance", "tuiHintShowDelay", "tuiHintHideDelay"] }, { type: i1.TuiTextfieldPrefixDirective, selector: "[tuiTextfieldPrefix]", inputs: ["tuiTextfieldPrefix"] }, { type: i1.TuiTextfieldPostfixDirective, selector: "[tuiTextfieldPostfix]", inputs: ["tuiTextfieldPostfix"] }, { type: i1.TuiTextfieldCustomContentDirective, selector: "[tuiTextfieldCustomContent]", inputs: ["tuiTextfieldCustomContent"] }, { type: i1.TuiTextfieldLabelOutsideDirective, selector: "[tuiTextfieldLabelOutside]", inputs: ["tuiTextfieldLabelOutside"] }, { type: i1.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i2.TuiInputPhoneDirective, selector: "tui-input-phone" }, { type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i6.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], pipes: { "async": i3.AsyncPipe, "tuiFlag": i1.TuiFlagPipe, "tuiMapper": i4.TuiMapperPipe }, viewProviders: [FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
403
168
|
__decorate([
|
|
404
169
|
tuiDefaultProp()
|
|
@@ -418,6 +183,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
418
183
|
tuiAsControl(TuiInputPhoneInternationalComponent),
|
|
419
184
|
// TODO: for backward compatibility only. Drop in v4.0
|
|
420
185
|
TuiFlagPipe,
|
|
186
|
+
TuiToCountryCodePipe,
|
|
421
187
|
],
|
|
422
188
|
viewProviders: [FIXED_DROPDOWN_CONTROLLER_PROVIDER],
|
|
423
189
|
}]
|
|
@@ -443,6 +209,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
443
209
|
}] }, { type: i1.TuiFlagPipe, decorators: [{
|
|
444
210
|
type: Inject,
|
|
445
211
|
args: [TuiFlagPipe]
|
|
212
|
+
}] }, { type: i8.TuiToCountryCodePipe, decorators: [{
|
|
213
|
+
type: Inject,
|
|
214
|
+
args: [TuiToCountryCodePipe]
|
|
446
215
|
}] }]; }, propDecorators: { inputPhoneComponent: [{
|
|
447
216
|
type: ViewChild,
|
|
448
217
|
args: [TuiInputPhoneComponent]
|
|
@@ -534,5 +303,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
534
303
|
* Generated bundle index. Do not edit.
|
|
535
304
|
*/
|
|
536
305
|
|
|
537
|
-
export {
|
|
306
|
+
export { TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS, TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS, TuiInputPhoneInternationalComponent, TuiInputPhoneInternationalModule, tuiExtractValueFromEvent, tuiInputPhoneInternationalOptionsProvider };
|
|
538
307
|
//# sourceMappingURL=taiga-ui-kit-components-input-phone-international.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-input-phone-international.js","sources":["../../../projects/kit/components/input-phone-international/const/mask-after-code-regexp.ts","../../../projects/kit/components/input-phone-international/input-phone-international.options.ts","../../../projects/kit/components/input-phone-international/tokens/countries-masks.ts","../../../projects/kit/components/input-phone-international/utils/extract-value-from-event.ts","../../../projects/kit/components/input-phone-international/utils/not-kz-region.ts","../../../projects/kit/components/input-phone-international/input-phone-international.component.ts","../../../projects/kit/components/input-phone-international/input-phone-international.template.html","../../../projects/kit/components/input-phone-international/input-phone-international.module.ts","../../../projects/kit/components/input-phone-international/taiga-ui-kit-components-input-phone-international.ts"],"sourcesContent":["export const MASK_AFTER_CODE_REGEXP = /\\([#]+\\)|[#\\- ]/g;\n","import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiCountryIsoCode} from '@taiga-ui/i18n';\n\nexport interface TuiInputPhoneInternationalOptions {\n readonly countries: readonly TuiCountryIsoCode[];\n readonly countryIsoCode: TuiCountryIsoCode;\n}\n\nexport const TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS: TuiInputPhoneInternationalOptions =\n {\n countries: [],\n countryIsoCode: TuiCountryIsoCode.RU,\n };\n\n/**\n * Default parameters for input phone international component\n */\nexport const TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS =\n new InjectionToken<TuiInputPhoneInternationalOptions>(\n `[TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS]`,\n {\n factory: () => TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS,\n },\n );\n\nexport const tuiInputPhoneInternationalOptionsProvider: (\n options: Partial<TuiInputPhoneInternationalOptions>,\n) => ValueProvider = (options: Partial<TuiInputPhoneInternationalOptions>) => ({\n provide: TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS,\n useValue: {...TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS, ...options},\n});\n","import {InjectionToken} from '@angular/core';\nimport {TuiCountryIsoCode} from '@taiga-ui/i18n';\n\nexport const TUI_COUNTRIES_MASKS: InjectionToken<Record<TuiCountryIsoCode, string>> =\n new InjectionToken<Record<TuiCountryIsoCode, string>>(`[TUI_COUNTRIES_MASKS]`, {\n factory: () => ({\n [TuiCountryIsoCode.AD]: `+376###-###`,\n [TuiCountryIsoCode.AE]: `+971-##-###-####`,\n [TuiCountryIsoCode.AF]: `+93##-###-####`,\n [TuiCountryIsoCode.AG]: `+1(268) ###-####`,\n [TuiCountryIsoCode.AI]: `+1(264) ###-####`,\n [TuiCountryIsoCode.AL]: `+355(###) ###-###`,\n [TuiCountryIsoCode.AM]: `+374##-###-###`,\n [TuiCountryIsoCode.AO]: `+244(###) ###-###`,\n [TuiCountryIsoCode.AR]: `+54(###) ###-####`,\n [TuiCountryIsoCode.AT]: `+43(###) ###-####`,\n [TuiCountryIsoCode.AU]: `+61#-####-####`,\n [TuiCountryIsoCode.AW]: `+297###-####`,\n [TuiCountryIsoCode.AZ]: `+994##-###-##-##`,\n [TuiCountryIsoCode.BA]: `+387 ###-####-##`,\n [TuiCountryIsoCode.BB]: `+1(246) ###-####`,\n [TuiCountryIsoCode.BD]: `+880##-###-###`,\n [TuiCountryIsoCode.BE]: `+32(###) ###-###`,\n [TuiCountryIsoCode.BF]: `+226##-##-####`,\n [TuiCountryIsoCode.BG]: `+359(###) ###-###`,\n [TuiCountryIsoCode.BH]: `+973####-####`,\n [TuiCountryIsoCode.BI]: `+257##-##-####`,\n [TuiCountryIsoCode.BJ]: `+229##-##-####`,\n [TuiCountryIsoCode.BL]: `+590 ## ## ## ## ##`,\n [TuiCountryIsoCode.BM]: `+1(441) ###-####`,\n [TuiCountryIsoCode.BN]: `+673###-####`,\n [TuiCountryIsoCode.BO]: `+591#-###-####`,\n [TuiCountryIsoCode.BQ]: `+599-###-####`,\n [TuiCountryIsoCode.BR]: `+55(##) ####-####`,\n [TuiCountryIsoCode.BS]: `+1(242) ###-####`,\n [TuiCountryIsoCode.BT]: `+975#-###-###`,\n [TuiCountryIsoCode.BW]: `+267##-###-###`,\n [TuiCountryIsoCode.BY]: `+375(##) ###-##-##`,\n [TuiCountryIsoCode.BZ]: `+501###-####`,\n [TuiCountryIsoCode.CA]: `+1(###) ###-####`,\n [TuiCountryIsoCode.CD]: `+243(###) ###-###`,\n [TuiCountryIsoCode.CF]: `+236-##-##-####`,\n [TuiCountryIsoCode.CG]: `+242##-###-####`,\n [TuiCountryIsoCode.CH]: `+41##-###-####`,\n [TuiCountryIsoCode.CI]: `+225##-##-###-###`,\n [TuiCountryIsoCode.CL]: `+56#-####-####`,\n [TuiCountryIsoCode.CM]: `+237#####-####`,\n [TuiCountryIsoCode.CN]: `+86(###) ####-####`,\n [TuiCountryIsoCode.CO]: `+57(###) ###-####`,\n [TuiCountryIsoCode.CR]: `+506####-####`,\n [TuiCountryIsoCode.CU]: `+53#-###-####`,\n [TuiCountryIsoCode.CV]: `+238(###) ##-##`,\n [TuiCountryIsoCode.CW]: `+5999-###-####`,\n [TuiCountryIsoCode.CY]: `+357##-###-###`,\n [TuiCountryIsoCode.CZ]: `+420(###) ###-###`,\n [TuiCountryIsoCode.DE]: `+49(###) ###-###-##`,\n [TuiCountryIsoCode.DJ]: `+253##-##-##-##`,\n [TuiCountryIsoCode.DK]: `+45##-##-##-##`,\n [TuiCountryIsoCode.DM]: `+1(767) ###-####`,\n [TuiCountryIsoCode.DO]: `+1(###) ###-####`,\n [TuiCountryIsoCode.DZ]: `+213##-###-####`,\n [TuiCountryIsoCode.EC]: `+593##-###-####`,\n [TuiCountryIsoCode.EE]: `+372####-####`,\n [TuiCountryIsoCode.EG]: `+20(###) ###-####`,\n [TuiCountryIsoCode.ER]: `+291#-###-###`,\n [TuiCountryIsoCode.ES]: `+34(###) ###-###`,\n [TuiCountryIsoCode.ET]: `+251##-###-####`,\n [TuiCountryIsoCode.FI]: `+358(###) ###-##-##`,\n [TuiCountryIsoCode.FJ]: `+679##-#####`,\n [TuiCountryIsoCode.FK]: `+500#####`,\n [TuiCountryIsoCode.FM]: `+691###-####`,\n [TuiCountryIsoCode.FR]: `+33 ## ## ## ## ##`,\n [TuiCountryIsoCode.GA]: `+241##-##-##-##`,\n [TuiCountryIsoCode.GB]: `+44##-####-####`,\n [TuiCountryIsoCode.GD]: `+1(473) ###-####`,\n [TuiCountryIsoCode.GE]: `+995(###) ###-###`,\n [TuiCountryIsoCode.GF]: `+594 ## ## ## ## ##`,\n [TuiCountryIsoCode.GH]: `+233(###) ###-###`,\n [TuiCountryIsoCode.GI]: `+350###-#####`,\n [TuiCountryIsoCode.GL]: `+299##-##-##`,\n [TuiCountryIsoCode.GM]: `+220(###) ##-##`,\n [TuiCountryIsoCode.GN]: `+224##-###-###`,\n [TuiCountryIsoCode.GP]: `+590 ## ## ## ## ##`,\n [TuiCountryIsoCode.GQ]: `+240##-###-####`,\n [TuiCountryIsoCode.GR]: `+30(###) ###-####`,\n [TuiCountryIsoCode.GT]: `+502#-###-####`,\n [TuiCountryIsoCode.GW]: `+245#-######`,\n [TuiCountryIsoCode.GY]: `+592###-####`,\n [TuiCountryIsoCode.HK]: `+852####-####`,\n [TuiCountryIsoCode.HN]: `+504####-####`,\n [TuiCountryIsoCode.HR]: `+385##-###-####`,\n [TuiCountryIsoCode.HT]: `+509##-##-####`,\n [TuiCountryIsoCode.HU]: `+36(###) ###-###`,\n [TuiCountryIsoCode.ID]: `+62(###) ###-##-###`,\n [TuiCountryIsoCode.IE]: `+353(###) ###-###`,\n [TuiCountryIsoCode.IL]: `+972##-###-####`,\n [TuiCountryIsoCode.IN]: `+91(####) ###-###`,\n [TuiCountryIsoCode.IQ]: `+964(###) ###-####`,\n [TuiCountryIsoCode.IR]: `+98(###) ###-####`,\n [TuiCountryIsoCode.IS]: `+354###-####`,\n [TuiCountryIsoCode.IT]: `+39(###) ####-###`,\n [TuiCountryIsoCode.JM]: `+1(876) ###-####`,\n [TuiCountryIsoCode.JO]: `+962#-####-####`,\n [TuiCountryIsoCode.JP]: `+81-##-####-####`,\n [TuiCountryIsoCode.KE]: `+254###-######`,\n [TuiCountryIsoCode.KG]: `+996(###) ###-###`,\n [TuiCountryIsoCode.KH]: `+855##-###-###`,\n [TuiCountryIsoCode.KM]: `+269##-#####`,\n [TuiCountryIsoCode.KN]: `+1(869) ###-####`,\n [TuiCountryIsoCode.KP]: `+850####-#############`,\n [TuiCountryIsoCode.KR]: `+82##-###-####`,\n [TuiCountryIsoCode.KW]: `+965####-####`,\n [TuiCountryIsoCode.KY]: `+1(345) ###-####`,\n [TuiCountryIsoCode.KZ]: `+7(###) ###-##-##`,\n [TuiCountryIsoCode.LA]: `+856##-##-###-###`,\n [TuiCountryIsoCode.LB]: `+961##-###-###`,\n [TuiCountryIsoCode.LC]: `+1(758) ###-####`,\n [TuiCountryIsoCode.LI]: `+423(###) ###-####`,\n [TuiCountryIsoCode.LK]: `+94##-###-####`,\n [TuiCountryIsoCode.LR]: `+231##-###-###`,\n [TuiCountryIsoCode.LS]: `+266#-###-####`,\n [TuiCountryIsoCode.LT]: `+370(###) ##-###`,\n [TuiCountryIsoCode.LU]: `+352(###) ###-###`,\n [TuiCountryIsoCode.LV]: `+371##-###-###`,\n [TuiCountryIsoCode.LY]: `+218##-###-####`,\n [TuiCountryIsoCode.MA]: `+212##-####-###`,\n [TuiCountryIsoCode.MC]: `+377###-###-###`,\n [TuiCountryIsoCode.MD]: `+373####-####`,\n [TuiCountryIsoCode.ME]: `+382##-###-###`,\n [TuiCountryIsoCode.MF]: `+590 ## ## ## ## ##`,\n [TuiCountryIsoCode.MG]: `+261##-##-#####`,\n [TuiCountryIsoCode.MK]: `+389##-###-###`,\n [TuiCountryIsoCode.ML]: `+223##-##-####`,\n [TuiCountryIsoCode.MM]: `+95##-###-###`,\n [TuiCountryIsoCode.MN]: `+976##-##-####`,\n [TuiCountryIsoCode.MO]: `+853####-####`,\n [TuiCountryIsoCode.MQ]: `+596 ## ## ## ## ##`,\n [TuiCountryIsoCode.MR]: `+222##-##-####`,\n [TuiCountryIsoCode.MS]: `+1(664) ###-####`,\n [TuiCountryIsoCode.MT]: `+356####-####`,\n [TuiCountryIsoCode.MU]: `+230####-####`,\n [TuiCountryIsoCode.MV]: `+960###-####`,\n [TuiCountryIsoCode.MW]: `+265#-####-####`,\n [TuiCountryIsoCode.MX]: `+52(###) ###-####`,\n [TuiCountryIsoCode.MY]: `+60(###) ###-###`,\n [TuiCountryIsoCode.MZ]: `+258##-###-###`,\n [TuiCountryIsoCode.NA]: `+264##-###-####`,\n [TuiCountryIsoCode.NC]: `+687 ### ###`,\n [TuiCountryIsoCode.NE]: `+227##-##-####`,\n [TuiCountryIsoCode.NG]: `+234(###) ###-####`,\n [TuiCountryIsoCode.NI]: `+505####-####`,\n [TuiCountryIsoCode.NL]: `+31##-###-####`,\n [TuiCountryIsoCode.NO]: `+47(###) ##-###`,\n [TuiCountryIsoCode.NP]: `+977##-###-###`,\n [TuiCountryIsoCode.NZ]: `+64(###) ###-####`,\n [TuiCountryIsoCode.OM]: `+968##-###-###`,\n [TuiCountryIsoCode.PA]: `+507###-####`,\n [TuiCountryIsoCode.PE]: `+51(###) ###-###`,\n [TuiCountryIsoCode.PF]: `+689 ## ## ## ##`,\n [TuiCountryIsoCode.PG]: `+675(###) ##-###`,\n [TuiCountryIsoCode.PH]: `+63(###) ###-####`,\n [TuiCountryIsoCode.PK]: `+92(###) ###-####`,\n [TuiCountryIsoCode.PL]: `+48(###) ###-###`,\n [TuiCountryIsoCode.PT]: `+351##-###-####`,\n [TuiCountryIsoCode.PW]: `+680###-####`,\n [TuiCountryIsoCode.PY]: `+595(###) ###-###`,\n [TuiCountryIsoCode.QA]: `+974####-####`,\n [TuiCountryIsoCode.RE]: `+262 ## ## ## ## ##`,\n [TuiCountryIsoCode.RO]: `+40##-###-####`,\n [TuiCountryIsoCode.RS]: `+381##-###-####`,\n [TuiCountryIsoCode.RU]: `+7### ###-##-##`,\n [TuiCountryIsoCode.RW]: `+250(###) ###-###`,\n [TuiCountryIsoCode.SA]: `+966#-####-####`,\n [TuiCountryIsoCode.SB]: `+677###-####`,\n [TuiCountryIsoCode.SC]: `+248#-###-###`,\n [TuiCountryIsoCode.SD]: `+249##-###-####`,\n [TuiCountryIsoCode.SE]: `+46##-###-####`,\n [TuiCountryIsoCode.SG]: `+65####-####`,\n [TuiCountryIsoCode.SH]: `+290####`,\n [TuiCountryIsoCode.SI]: `+386##-###-###`,\n [TuiCountryIsoCode.SK]: `+421(###) ###-###`,\n [TuiCountryIsoCode.SL]: `+232##-######`,\n [TuiCountryIsoCode.SM]: `+378####-######`,\n [TuiCountryIsoCode.SN]: `+221##-###-####`,\n [TuiCountryIsoCode.SO]: `+252##-###-###`,\n [TuiCountryIsoCode.SR]: `+597###-####`,\n [TuiCountryIsoCode.ST]: `+239##-#####`,\n [TuiCountryIsoCode.SV]: `+503##-##-####`,\n [TuiCountryIsoCode.SX]: `+1(721) ###-####`,\n [TuiCountryIsoCode.SY]: `+963##-####-###`,\n [TuiCountryIsoCode.SZ]: `+268##-##-####`,\n [TuiCountryIsoCode.TC]: `+1(649) ###-####`,\n [TuiCountryIsoCode.TD]: `+235##-##-##-##`,\n [TuiCountryIsoCode.TG]: `+228##-###-###`,\n [TuiCountryIsoCode.TH]: `+66##-###-####`,\n [TuiCountryIsoCode.TJ]: `+992##-###-####`,\n [TuiCountryIsoCode.TL]: `+670###-#####`,\n [TuiCountryIsoCode.TM]: `+993#-###-####`,\n [TuiCountryIsoCode.TN]: `+216##-###-###`,\n [TuiCountryIsoCode.TO]: `+676#####`,\n [TuiCountryIsoCode.TR]: `+90(###) ###-####`,\n [TuiCountryIsoCode.TT]: `+1(868) ###-####`,\n [TuiCountryIsoCode.TW]: `+886#-####-####`,\n [TuiCountryIsoCode.TZ]: `+255##-###-####`,\n [TuiCountryIsoCode.UA]: `+380(##) ###-##-##`,\n [TuiCountryIsoCode.UG]: `+256(###) ###-###`,\n [TuiCountryIsoCode.US]: `+1(###) ###-####`,\n [TuiCountryIsoCode.UY]: `+598#-###-##-##`,\n [TuiCountryIsoCode.UZ]: `+998##-###-####`,\n [TuiCountryIsoCode.VC]: `+1(784) ###-####`,\n [TuiCountryIsoCode.VE]: `+58(###) ###-####`,\n [TuiCountryIsoCode.VG]: `+1(284)###-####`,\n [TuiCountryIsoCode.VN]: `+84(###) ####-###`,\n [TuiCountryIsoCode.VU]: `+678##-#####`,\n [TuiCountryIsoCode.WS]: `+685##-####`,\n [TuiCountryIsoCode.XK]: `+383##-###-###`,\n [TuiCountryIsoCode.YE]: `+967###-###-###`,\n [TuiCountryIsoCode.YT]: `+262 ## ## ## ## ##`,\n [TuiCountryIsoCode.ZA]: `+27##-###-####`,\n [TuiCountryIsoCode.ZM]: `+260##-###-####`,\n [TuiCountryIsoCode.ZW]: `+263#-######`,\n }),\n });\n","import {tuiGetClipboardDataText} from '@taiga-ui/cdk';\n\nexport function tuiExtractValueFromEvent(event: ClipboardEvent | DragEvent): string {\n return `dataTransfer` in event\n ? event.dataTransfer?.getData(`text/plain`) || ``\n : tuiGetClipboardDataText(event);\n}\n","export function tuiNotKzRegion(value: string): boolean {\n const region = Number(value.slice(1, 4));\n\n return region < 600 || region > 799;\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n HostListener,\n Inject,\n Input,\n Optional,\n Output,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n CHAR_PLUS,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiMapper,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n TUI_MASK_SYMBOLS_REGEXP,\n TUI_NON_DIGITS_REGEXP,\n TuiFlagPipe,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeM,\n TuiSizeS,\n} from '@taiga-ui/core';\nimport {TuiCountryIsoCode} from '@taiga-ui/i18n';\nimport {TUI_ARROW} from '@taiga-ui/kit/components/arrow';\nimport {TuiInputPhoneComponent} from '@taiga-ui/kit/components/input-phone';\nimport {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TUI_COUNTRIES} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {MASK_AFTER_CODE_REGEXP} from './const/mask-after-code-regexp';\nimport {\n TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS,\n TuiInputPhoneInternationalOptions,\n} from './input-phone-international.options';\nimport {TUI_COUNTRIES_MASKS} from './tokens/countries-masks';\nimport {tuiExtractValueFromEvent} from './utils/extract-value-from-event';\nimport {tuiNotKzRegion} from './utils/not-kz-region';\n\n@Component({\n selector: 'tui-input-phone-international',\n templateUrl: './input-phone-international.template.html',\n styleUrls: ['./input-phone-international.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputPhoneInternationalComponent),\n tuiAsControl(TuiInputPhoneInternationalComponent),\n // TODO: for backward compatibility only. Drop in v4.0\n TuiFlagPipe,\n ],\n viewProviders: [FIXED_DROPDOWN_CONTROLLER_PROVIDER],\n})\nexport class TuiInputPhoneInternationalComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiInputPhoneComponent)\n private readonly inputPhoneComponent?: TuiInputPhoneComponent;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly primitiveTextfield?: TuiPrimitiveTextfieldComponent;\n\n @Input('countryIsoCode')\n @tuiDefaultProp()\n set isoCode(code: TuiCountryIsoCode) {\n if (this.countryIsoCode === code) {\n return;\n }\n\n this.inputPhoneComponent?.writeValue(this.value);\n this.countryIsoCode = code;\n }\n\n @Input()\n countries = this.options.countries;\n\n @Output()\n readonly countryIsoCodeChange = new EventEmitter<TuiCountryIsoCode>();\n\n countryIsoCode = this.options.countryIsoCode;\n\n open = false;\n\n readonly arrow: PolymorpheusContent<\n TuiContextWithImplicit<TuiSizeL | TuiSizeM | TuiSizeS>\n > = TUI_ARROW;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(TUI_COUNTRIES)\n readonly countriesNames$: Observable<Record<TuiCountryIsoCode, string>>,\n @Inject(TUI_COUNTRIES_MASKS)\n readonly countriesMasks: Record<TuiCountryIsoCode, string>,\n @Inject(TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS)\n private readonly options: TuiInputPhoneInternationalOptions,\n @Inject(TuiFlagPipe)\n private readonly flagPipe: TuiFlagPipe,\n ) {\n super(control, cdr);\n }\n\n get nativeFocusableElement(): HTMLElement | null {\n return this.inputPhoneComponent && !this.computedDisabled\n ? this.inputPhoneComponent.nativeFocusableElement\n : null;\n }\n\n get focused(): boolean {\n return (\n (!!this.primitiveTextfield && this.primitiveTextfield.focused) ||\n (!!this.inputPhoneComponent && this.inputPhoneComponent.focused)\n );\n }\n\n get inputPhoneCountryCode(): string {\n return this.isoToCountryCode(this.countryIsoCode);\n }\n\n get phoneMaskAfterCountryCode(): string {\n const countryCode = this.isoToCountryCode(this.countryIsoCode);\n\n return this.calculateMaskAfterCountryCode(\n this.countriesMasks[this.countryIsoCode],\n countryCode,\n );\n }\n\n /**\n * @deprecated use `<img [src]=\"countryIsoCode | tuiFlagPipe\" />`\n * TODO drop in v4.0\n */\n get countryFlagPath(): string {\n return this.getFlagPath(this.countryIsoCode);\n }\n\n @HostListener('paste.capture.prevent.stop', ['$event'])\n @HostListener('drop.capture.prevent.stop', ['$event'])\n onPaste(event: ClipboardEvent | DragEvent): void {\n let value = tuiExtractValueFromEvent(event).replace(TUI_NON_DIGITS_REGEXP, '');\n const countryIsoCode = this.extractCountryCode(value);\n\n if (!countryIsoCode) {\n this.value = `${this.inputPhoneCountryCode}${value}`\n .replace(TUI_MASK_SYMBOLS_REGEXP, '')\n .slice(0, this.getMaxAllowedLength(this.countryIsoCode));\n\n return;\n }\n\n if (countryIsoCode === TuiCountryIsoCode.RU) {\n value = value.replace(/^8/, '7');\n }\n\n this.updateCountryIsoCode(countryIsoCode);\n this.value = `${CHAR_PLUS}${value}`;\n }\n\n readonly isoToCountryCodeMapper: TuiMapper<TuiCountryIsoCode, string> = item =>\n this.isoToCountryCode(item);\n\n /**\n * @deprecated use `<img [src]=\"countryIsoCode | tuiFlagPipe\" />`\n * TODO drop in v4.0\n */\n getFlagPath(code: TuiCountryIsoCode): string {\n return this.flagPipe.transform(code);\n }\n\n onItemClick(isoCode: TuiCountryIsoCode): void {\n this.open = false;\n this.updateCountryIsoCode(isoCode);\n // recalculates mask inside inputPhone to prevent isoCode conflict\n this.cdr.detectChanges();\n\n const maxLength = this.getMaxAllowedLength(isoCode);\n\n if (this.value.length > maxLength) {\n this.value = this.value.slice(0, maxLength);\n }\n\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.focus();\n }\n }\n\n override setDisabledState(): void {\n super.setDisabledState();\n this.close();\n }\n\n isoToCountryCode(isoCode: TuiCountryIsoCode): string {\n return this.countriesMasks[isoCode].replace(MASK_AFTER_CODE_REGEXP, '');\n }\n\n /** @deprecated use 'value' setter */\n onModelChange(value: string): void {\n this.value = value;\n }\n\n onActiveZone(active: boolean): void {\n this.updateFocused(active);\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n @tuiPure\n private calculateMaskAfterCountryCode(mask: string, countryCode: string): string {\n return mask.replace(countryCode, '').trim();\n }\n\n private close(): void {\n this.open = false;\n }\n\n private getMaxAllowedLength(isoCode: TuiCountryIsoCode): number {\n return this.countriesMasks[isoCode].replace(/[()\\- ]/g, '').length;\n }\n\n private updateCountryIsoCode(code: TuiCountryIsoCode): void {\n this.countryIsoCode = code;\n this.countryIsoCodeChange.emit(code);\n }\n\n private extractCountryCode(value: string): TuiCountryIsoCode | undefined {\n return this.countries.find(countryIsoCode => {\n const ruCodeTest =\n countryIsoCode === TuiCountryIsoCode.RU &&\n /^[7 | 8]/.test(value) &&\n /^(?!880[1-9 ])/.test(value) &&\n value.length + 1 === this.getMaxAllowedLength(TuiCountryIsoCode.RU);\n\n const matched =\n ruCodeTest ||\n (value.startsWith(\n this.isoToCountryCode(countryIsoCode).replace(CHAR_PLUS, ''),\n ) &&\n value.length + 1 === this.getMaxAllowedLength(countryIsoCode));\n\n return matched && countryIsoCode === TuiCountryIsoCode.RU\n ? tuiNotKzRegion(value)\n : matched;\n });\n }\n}\n","<tui-hosted-dropdown\n *ngIf=\"countriesNames$ | async as countriesNames\"\n class=\"t-hosted-dropdown\"\n [content]=\"dropdown\"\n [canOpen]=\"!readOnly\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <div tuiGroup>\n <tui-primitive-textfield\n tuiHintContent=\"\"\n tuiTextfieldPrefix=\"\"\n tuiTextfieldPostfix=\"\"\n class=\"t-country-select tui-group__auto-width-item\"\n [tuiTextfieldCustomContent]=\"countryValueContent\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldIcon]=\"icon\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [editable]=\"false\"\n [pseudoFocus]=\"open || null\"\n [readOnly]=\"readOnly\"\n ></tui-primitive-textfield>\n <tui-input-phone\n class=\"t-input-phone tui-group__auto-width-item\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [countryCode]=\"inputPhoneCountryCode\"\n [phoneMaskAfterCountryCode]=\"phoneMaskAfterCountryCode\"\n [readOnly]=\"readOnly\"\n [pseudoInvalid]=\"computedInvalid\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [(ngModel)]=\"value\"\n >\n <ng-content></ng-content>\n <input\n tuiTextfield\n autocomplete=\"new-password\"\n />\n </tui-input-phone>\n </div>\n\n <ng-template #dropdown>\n <tui-data-list>\n <button\n *ngFor=\"let item of countries\"\n tuiOption\n (click)=\"onItemClick(item)\"\n >\n <img\n alt=\"\"\n class=\"t-country-item-flag\"\n [src]=\"item | tuiFlag\"\n />\n <span class=\"t-country-item-name\">\n {{ countriesNames[item] }}\n </span>\n <span class=\"t-country-item-code\">\n {{ item | tuiMapper : isoToCountryCodeMapper }}\n </span>\n </button>\n </tui-data-list>\n </ng-template>\n\n <ng-template #countryValueContent>\n <!-- eslint-disable @html-eslint/require-img-alt -->\n <img\n class=\"t-flag\"\n [alt]=\"countriesNames[countryIsoCode]\"\n [src]=\"countryIsoCode | tuiFlag\"\n />\n </ng-template>\n\n <ng-template #icon>\n <div\n tuiWrapper\n appearance=\"icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\"></ng-container>\n </div>\n </ng-template>\n</tui-hosted-dropdown>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiActiveZoneModule, TuiLetModule, TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {\n TuiDataListModule,\n TuiFlagPipeModule,\n TuiGroupModule,\n TuiHintModule,\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldControllerModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\nimport {TuiArrowModule} from '@taiga-ui/kit/components/arrow';\nimport {TuiInputPhoneModule} from '@taiga-ui/kit/components/input-phone';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputPhoneInternationalComponent} from './input-phone-international.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiSvgModule,\n TuiInputPhoneModule,\n TuiGroupModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiHintModule,\n TuiHostedDropdownModule,\n TuiDataListModule,\n TuiArrowModule,\n TuiWrapperModule,\n TuiLetModule,\n TuiMapperPipeModule,\n TuiActiveZoneModule,\n TuiFlagPipeModule,\n ],\n declarations: [TuiInputPhoneInternationalComponent],\n exports: [TuiInputPhoneInternationalComponent],\n})\nexport class TuiInputPhoneInternationalModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mapp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CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,WAAW;wBACX,kBAAkB;wBAClB,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBACd,2BAA2B;wBAC3B,4BAA4B;wBAC5B,aAAa;wBACb,uBAAuB;wBACvB,iBAAiB;wBACjB,cAAc;wBACd,gBAAgB;wBAChB,YAAY;wBACZ,mBAAmB;wBACnB,mBAAmB;wBACnB,iBAAiB;AACpB,qBAAA;oBACD,YAAY,EAAE,CAAC,mCAAmC,CAAC;oBACnD,OAAO,EAAE,CAAC,mCAAmC,CAAC;AACjD,iBAAA,CAAA;;;AC3CD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-input-phone-international.js","sources":["../../../projects/kit/components/input-phone-international/input-phone-international.options.ts","../../../projects/kit/components/input-phone-international/utils/extract-value-from-event.ts","../../../projects/kit/components/input-phone-international/input-phone-international.component.ts","../../../projects/kit/components/input-phone-international/input-phone-international.template.html","../../../projects/kit/components/input-phone-international/input-phone-international.module.ts","../../../projects/kit/components/input-phone-international/taiga-ui-kit-components-input-phone-international.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiCountryIsoCode} from '@taiga-ui/i18n';\n\nexport interface TuiInputPhoneInternationalOptions {\n readonly countries: readonly TuiCountryIsoCode[];\n readonly countryIsoCode: TuiCountryIsoCode;\n}\n\nexport const TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS: TuiInputPhoneInternationalOptions =\n {\n countries: [],\n countryIsoCode: TuiCountryIsoCode.RU,\n };\n\n/**\n * Default parameters for input phone international component\n */\nexport const TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS =\n new InjectionToken<TuiInputPhoneInternationalOptions>(\n `[TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS]`,\n {\n factory: () => TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS,\n },\n );\n\nexport const tuiInputPhoneInternationalOptionsProvider: (\n options: Partial<TuiInputPhoneInternationalOptions>,\n) => ValueProvider = (options: Partial<TuiInputPhoneInternationalOptions>) => ({\n provide: TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS,\n useValue: {...TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS, ...options},\n});\n","import {tuiGetClipboardDataText} from '@taiga-ui/cdk';\n\nexport function tuiExtractValueFromEvent(event: ClipboardEvent | DragEvent): string {\n return `dataTransfer` in event\n ? event.dataTransfer?.getData(`text/plain`) || ``\n : tuiGetClipboardDataText(event);\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n HostListener,\n Inject,\n Input,\n Optional,\n Output,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n CHAR_PLUS,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiMapper,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n TUI_MASK_SYMBOLS_REGEXP,\n TUI_NON_DIGITS_REGEXP,\n TuiFlagPipe,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeM,\n TuiSizeS,\n} from '@taiga-ui/core';\nimport {TuiCountryIsoCode} from '@taiga-ui/i18n';\nimport {TUI_ARROW} from '@taiga-ui/kit/components/arrow';\nimport {TuiInputPhoneComponent} from '@taiga-ui/kit/components/input-phone';\nimport {TuiToCountryCodePipe} from '@taiga-ui/kit/pipes';\nimport {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TUI_COUNTRIES, TUI_COUNTRIES_MASKS} from '@taiga-ui/kit/tokens';\nimport {tuiGetMaxAllowedPhoneLength, tuiIsoToCountryCode} from '@taiga-ui/kit/utils';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {\n TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS,\n TuiInputPhoneInternationalOptions,\n} from './input-phone-international.options';\nimport {tuiExtractValueFromEvent} from './utils/extract-value-from-event';\n\n@Component({\n selector: 'tui-input-phone-international',\n templateUrl: './input-phone-international.template.html',\n styleUrls: ['./input-phone-international.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputPhoneInternationalComponent),\n tuiAsControl(TuiInputPhoneInternationalComponent),\n // TODO: for backward compatibility only. Drop in v4.0\n TuiFlagPipe,\n TuiToCountryCodePipe,\n ],\n viewProviders: [FIXED_DROPDOWN_CONTROLLER_PROVIDER],\n})\nexport class TuiInputPhoneInternationalComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiInputPhoneComponent)\n private readonly inputPhoneComponent?: TuiInputPhoneComponent;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly primitiveTextfield?: TuiPrimitiveTextfieldComponent;\n\n @Input('countryIsoCode')\n @tuiDefaultProp()\n set isoCode(code: TuiCountryIsoCode) {\n if (this.countryIsoCode === code) {\n return;\n }\n\n this.inputPhoneComponent?.writeValue(this.value);\n this.countryIsoCode = code;\n }\n\n @Input()\n countries = this.options.countries;\n\n @Output()\n readonly countryIsoCodeChange = new EventEmitter<TuiCountryIsoCode>();\n\n countryIsoCode = this.options.countryIsoCode;\n\n open = false;\n\n readonly arrow: PolymorpheusContent<\n TuiContextWithImplicit<TuiSizeL | TuiSizeM | TuiSizeS>\n > = TUI_ARROW;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(TUI_COUNTRIES)\n readonly countriesNames$: Observable<Record<TuiCountryIsoCode, string>>,\n @Inject(TUI_COUNTRIES_MASKS)\n readonly countriesMasks: Record<TuiCountryIsoCode, string>,\n @Inject(TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS)\n private readonly options: TuiInputPhoneInternationalOptions,\n @Inject(TuiFlagPipe)\n private readonly flagPipe: TuiFlagPipe,\n @Inject(TuiToCountryCodePipe)\n private readonly extractCountryCodePipe: TuiToCountryCodePipe,\n ) {\n super(control, cdr);\n }\n\n get nativeFocusableElement(): HTMLElement | null {\n return this.inputPhoneComponent && !this.computedDisabled\n ? this.inputPhoneComponent.nativeFocusableElement\n : null;\n }\n\n get focused(): boolean {\n return (\n (!!this.primitiveTextfield && this.primitiveTextfield.focused) ||\n (!!this.inputPhoneComponent && this.inputPhoneComponent.focused)\n );\n }\n\n get inputPhoneCountryCode(): string {\n return tuiIsoToCountryCode(this.countriesMasks, this.countryIsoCode);\n }\n\n get phoneMaskAfterCountryCode(): string {\n const countryCode = this.inputPhoneCountryCode;\n\n return this.calculateMaskAfterCountryCode(\n this.countriesMasks[this.countryIsoCode],\n countryCode,\n );\n }\n\n /**\n * @deprecated use `<img [src]=\"countryIsoCode | tuiFlagPipe\" />`\n * TODO drop in v4.0\n */\n get countryFlagPath(): string {\n return this.getFlagPath(this.countryIsoCode);\n }\n\n @HostListener('paste.capture.prevent.stop', ['$event'])\n @HostListener('drop.capture.prevent.stop', ['$event'])\n onPaste(event: ClipboardEvent | DragEvent): void {\n let value = tuiExtractValueFromEvent(event).replace(TUI_NON_DIGITS_REGEXP, '');\n const countryIsoCode = this.extractCountryCodePipe.transform(\n value,\n this.countries,\n );\n\n if (!countryIsoCode) {\n this.value = `${this.inputPhoneCountryCode}${value}`\n .replace(TUI_MASK_SYMBOLS_REGEXP, '')\n .slice(\n 0,\n tuiGetMaxAllowedPhoneLength(this.countriesMasks, this.countryIsoCode),\n );\n\n return;\n }\n\n if (countryIsoCode === TuiCountryIsoCode.RU) {\n value = value.replace(/^8/, '7');\n }\n\n this.updateCountryIsoCode(countryIsoCode);\n this.value = `${CHAR_PLUS}${value}`;\n }\n\n readonly isoToCountryCodeMapper: TuiMapper<TuiCountryIsoCode, string> = item =>\n tuiIsoToCountryCode(this.countriesMasks, item);\n\n /**\n * @deprecated use `<img [src]=\"countryIsoCode | tuiFlagPipe\" />`\n * TODO drop in v4.0\n */\n getFlagPath(code: TuiCountryIsoCode): string {\n return this.flagPipe.transform(code);\n }\n\n onItemClick(isoCode: TuiCountryIsoCode): void {\n this.open = false;\n this.updateCountryIsoCode(isoCode);\n // recalculates mask inside inputPhone to prevent isoCode conflict\n this.cdr.detectChanges();\n\n const maxLength = tuiGetMaxAllowedPhoneLength(this.countriesMasks, isoCode);\n\n if (this.value.length > maxLength) {\n this.value = this.value.slice(0, maxLength);\n }\n\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.focus();\n }\n }\n\n override setDisabledState(): void {\n super.setDisabledState();\n this.close();\n }\n\n /**\n * @deprecated use `{{ countryIsoCode | tuiIsoToCountryCode }}`\n * TODO drop in v4.0\n */\n isoToCountryCode(isoCode: TuiCountryIsoCode): string {\n return tuiIsoToCountryCode(this.countriesMasks, isoCode);\n }\n\n /** @deprecated use 'value' setter */\n onModelChange(value: string): void {\n this.value = value;\n }\n\n onActiveZone(active: boolean): void {\n this.updateFocused(active);\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n @tuiPure\n private calculateMaskAfterCountryCode(mask: string, countryCode: string): string {\n return mask.replace(countryCode, '').trim();\n }\n\n private close(): void {\n this.open = false;\n }\n\n private updateCountryIsoCode(code: TuiCountryIsoCode): void {\n this.countryIsoCode = code;\n this.countryIsoCodeChange.emit(code);\n }\n}\n","<tui-hosted-dropdown\n *ngIf=\"countriesNames$ | async as countriesNames\"\n class=\"t-hosted-dropdown\"\n [content]=\"dropdown\"\n [canOpen]=\"!readOnly\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <div tuiGroup>\n <tui-primitive-textfield\n tuiHintContent=\"\"\n tuiTextfieldPrefix=\"\"\n tuiTextfieldPostfix=\"\"\n class=\"t-country-select tui-group__auto-width-item\"\n [tuiTextfieldCustomContent]=\"countryValueContent\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldIcon]=\"icon\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [editable]=\"false\"\n [pseudoFocus]=\"open || null\"\n [readOnly]=\"readOnly\"\n ></tui-primitive-textfield>\n <tui-input-phone\n class=\"t-input-phone tui-group__auto-width-item\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [countryCode]=\"inputPhoneCountryCode\"\n [phoneMaskAfterCountryCode]=\"phoneMaskAfterCountryCode\"\n [readOnly]=\"readOnly\"\n [pseudoInvalid]=\"computedInvalid\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [(ngModel)]=\"value\"\n >\n <ng-content></ng-content>\n <input\n tuiTextfield\n autocomplete=\"new-password\"\n />\n </tui-input-phone>\n </div>\n\n <ng-template #dropdown>\n <tui-data-list>\n <button\n *ngFor=\"let item of countries\"\n tuiOption\n (click)=\"onItemClick(item)\"\n >\n <img\n alt=\"\"\n class=\"t-country-item-flag\"\n [src]=\"item | tuiFlag\"\n />\n <span class=\"t-country-item-name\">\n {{ countriesNames[item] }}\n </span>\n <span class=\"t-country-item-code\">\n {{ item | tuiMapper : isoToCountryCodeMapper }}\n </span>\n </button>\n </tui-data-list>\n </ng-template>\n\n <ng-template #countryValueContent>\n <!-- eslint-disable @html-eslint/require-img-alt -->\n <img\n class=\"t-flag\"\n [alt]=\"countriesNames[countryIsoCode]\"\n [src]=\"countryIsoCode | tuiFlag\"\n />\n </ng-template>\n\n <ng-template #icon>\n <div\n tuiWrapper\n appearance=\"icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\"></ng-container>\n </div>\n </ng-template>\n</tui-hosted-dropdown>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiActiveZoneModule, TuiLetModule, TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {\n TuiDataListModule,\n TuiFlagPipeModule,\n TuiGroupModule,\n TuiHintModule,\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldControllerModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\nimport {TuiArrowModule} from '@taiga-ui/kit/components/arrow';\nimport {TuiInputPhoneModule} from '@taiga-ui/kit/components/input-phone';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputPhoneInternationalComponent} from './input-phone-international.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiSvgModule,\n TuiInputPhoneModule,\n TuiGroupModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiHintModule,\n TuiHostedDropdownModule,\n TuiDataListModule,\n TuiArrowModule,\n TuiWrapperModule,\n TuiLetModule,\n TuiMapperPipeModule,\n TuiActiveZoneModule,\n TuiFlagPipeModule,\n ],\n declarations: [TuiInputPhoneInternationalComponent],\n exports: [TuiInputPhoneInternationalComponent],\n})\nexport class TuiInputPhoneInternationalModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQa,MAAA,6CAA6C,GACtD;AACI,IAAA,SAAS,EAAE,EAAE;IACb,cAAc,EAAE,iBAAiB,CAAC,EAAE;EACtC;AAEN;;AAEG;MACU,qCAAqC,GAC9C,IAAI,cAAc,CACd,yCAAyC,EACzC;AACI,IAAA,OAAO,EAAE,MAAM,6CAA6C;AAC/D,CAAA,EACH;MAEO,yCAAyC,GAEjC,CAAC,OAAmD,MAAM;AAC3E,IAAA,OAAO,EAAE,qCAAqC;AAC9C,IAAA,QAAQ,EAAM,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,6CAA6C,CAAK,EAAA,OAAO,CAAC;AAC3E,CAAA;;AC5BK,SAAU,wBAAwB,CAAC,KAAiC,EAAA;;IACtE,OAA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