@taiga-ui/legacy 4.43.0-canary.f54a6e4 → 4.44.0-canary.09b0f40
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/components/arrow/arrow.options.d.ts +2 -1
- package/components/arrow/arrow.providers.d.ts +2 -1
- package/components/color-selector/color-selector.options.d.ts +3 -2
- package/components/input-copy/input-copy.options.d.ts +2 -1
- package/components/input-number/input-number.component.d.ts +2 -1
- package/components/input-number/input-number.options.d.ts +2 -1
- package/components/input-password/input-password.options.d.ts +2 -1
- package/components/input-phone/input-phone.options.d.ts +2 -1
- package/components/input-phone-international/input-phone-international.options.d.ts +2 -1
- package/components/input-tag/input-tag.options.d.ts +2 -1
- package/components/input-time/input-time.options.d.ts +2 -1
- package/components/multi-select/multi-select.module.d.ts +4 -0
- package/components/multi-select/multi-select.options.d.ts +2 -1
- package/components/select/select.options.d.ts +2 -1
- package/components/sheet/sheet-options.d.ts +2 -1
- package/components/sheet/sheet-tokens.d.ts +4 -3
- package/components/svg/svg-options.d.ts +3 -2
- package/components/table-bar/table-bar.options.d.ts +3 -2
- package/components/tag/tag.options.d.ts +2 -1
- package/directives/textfield-controller/textfield-appearance.directive.d.ts +2 -1
- package/directives/textfield-controller/textfield-cleaner.directive.d.ts +2 -1
- package/directives/textfield-controller/textfield-controller.provider.d.ts +2 -1
- package/directives/textfield-controller/textfield-custom-content.directive.d.ts +2 -1
- package/directives/textfield-controller/textfield-filler.directive.d.ts +2 -1
- package/directives/textfield-controller/textfield-icon-left.directive.d.ts +2 -1
- package/directives/textfield-controller/textfield-icon.directive.d.ts +2 -1
- package/directives/textfield-controller/textfield-label-outside.directive.d.ts +2 -1
- package/directives/textfield-controller/textfield-postfix.directive.d.ts +2 -1
- package/directives/textfield-controller/textfield-prefix.directive.d.ts +2 -1
- package/directives/textfield-controller/textfield-size.directive.d.ts +2 -1
- package/directives/textfield-controller/textfield.options.d.ts +2 -1
- package/esm2022/components/arrow/arrow.options.mjs +6 -3
- package/esm2022/components/arrow/arrow.providers.mjs +6 -3
- package/esm2022/components/color-selector/color-picker/color-picker.component.mjs +2 -2
- package/esm2022/components/color-selector/color-selector.component.mjs +2 -2
- package/esm2022/components/color-selector/color-selector.options.mjs +9 -7
- package/esm2022/components/input-copy/input-copy.options.mjs +6 -3
- package/esm2022/components/input-number/input-number.component.mjs +6 -6
- package/esm2022/components/input-number/input-number.options.mjs +6 -3
- package/esm2022/components/input-password/input-password.options.mjs +6 -3
- package/esm2022/components/input-phone/input-phone.options.mjs +6 -3
- package/esm2022/components/input-phone-international/input-phone-international.component.mjs +3 -3
- package/esm2022/components/input-phone-international/input-phone-international.options.mjs +6 -3
- package/esm2022/components/input-tag/input-tag.component.mjs +2 -2
- package/esm2022/components/input-tag/input-tag.options.mjs +6 -3
- package/esm2022/components/input-time/input-time.options.mjs +6 -3
- package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +2 -2
- package/esm2022/components/multi-select/multi-select.module.mjs +5 -1
- package/esm2022/components/multi-select/multi-select.options.mjs +6 -3
- package/esm2022/components/multi-select-option/multi-select-option.component.mjs +2 -2
- package/esm2022/components/primitive-textfield/primitive-textfield.component.mjs +2 -2
- package/esm2022/components/primitive-textfield/textfield/textfield.component.mjs +2 -2
- package/esm2022/components/primitive-textfield/value-decoration/value-decoration.component.mjs +2 -2
- package/esm2022/components/select/select.options.mjs +6 -3
- package/esm2022/components/sheet/components/sheet/sheet.component.mjs +3 -3
- package/esm2022/components/sheet/components/sheet-heading/sheet-heading.component.mjs +2 -2
- package/esm2022/components/sheet/sheet-options.mjs +6 -4
- package/esm2022/components/sheet/sheet-tokens.mjs +5 -5
- package/esm2022/components/svg/svg-options.mjs +13 -11
- package/esm2022/components/table-bar/table-bar.component.mjs +3 -3
- package/esm2022/components/table-bar/table-bar.options.mjs +9 -4
- package/esm2022/components/tag/tag.component.mjs +2 -2
- package/esm2022/components/tag/tag.options.mjs +6 -3
- package/esm2022/components/textarea/textarea.component.mjs +2 -2
- package/esm2022/directives/textfield-controller/textfield-appearance.directive.mjs +6 -4
- package/esm2022/directives/textfield-controller/textfield-cleaner.directive.mjs +6 -4
- package/esm2022/directives/textfield-controller/textfield-controller.provider.mjs +3 -4
- package/esm2022/directives/textfield-controller/textfield-custom-content.directive.mjs +6 -4
- package/esm2022/directives/textfield-controller/textfield-filler.directive.mjs +6 -4
- package/esm2022/directives/textfield-controller/textfield-icon-left.directive.mjs +6 -4
- package/esm2022/directives/textfield-controller/textfield-icon.directive.mjs +6 -4
- package/esm2022/directives/textfield-controller/textfield-label-outside.directive.mjs +6 -4
- package/esm2022/directives/textfield-controller/textfield-postfix.directive.mjs +6 -4
- package/esm2022/directives/textfield-controller/textfield-prefix.directive.mjs +6 -4
- package/esm2022/directives/textfield-controller/textfield-size.directive.mjs +6 -4
- package/esm2022/directives/textfield-controller/textfield.options.mjs +6 -3
- package/esm2022/tokens/countries-masks.mjs +250 -248
- package/esm2022/tokens/focusable-item-accessor.mjs +4 -3
- package/esm2022/tokens/fonts-ready.mjs +5 -4
- package/esm2022/tokens/icons.mjs +5 -3
- package/esm2022/tokens/is-apple.mjs +5 -4
- package/esm2022/tokens/is-chromium.mjs +5 -4
- package/esm2022/tokens/is-firefox.mjs +6 -5
- package/esm2022/tokens/is-stackblitz.mjs +5 -4
- package/esm2022/tokens/month-formatter.mjs +3 -3
- package/esm2022/tokens/sanitizer.mjs +3 -3
- package/esm2022/tokens/textfield-appearance.mjs +5 -3
- package/esm2022/tokens/textfield-host.mjs +4 -3
- package/esm2022/tokens/touch-supported.mjs +5 -4
- package/esm2022/tokens/value-accessor.mjs +3 -3
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs +8 -4
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +12 -11
- package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +5 -3
- package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs +8 -6
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-password.mjs +5 -3
- package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +7 -5
- package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +5 -3
- package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +7 -5
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-time.mjs +5 -3
- package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +2 -2
- package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +11 -5
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +6 -6
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-select.mjs +5 -3
- package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-sheet.mjs +13 -11
- package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-svg.mjs +12 -10
- package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +10 -6
- package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-tag.mjs +7 -5
- package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs +2 -2
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +36 -14
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-tokens.mjs +280 -262
- package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/mixins/mixins.less +8 -8
- package/styles/mixins/mixins.scss +8 -8
- package/styles/mixins/textfield.less +3 -3
- package/styles/mixins/textfield.scss +2 -2
- package/tokens/countries-masks.d.ts +2 -1
- package/tokens/focusable-item-accessor.d.ts +2 -1
- package/tokens/fonts-ready.d.ts +2 -1
- package/tokens/icons.d.ts +2 -1
- package/tokens/is-apple.d.ts +2 -1
- package/tokens/is-chromium.d.ts +2 -1
- package/tokens/is-firefox.d.ts +2 -1
- package/tokens/is-stackblitz.d.ts +2 -1
- package/tokens/month-formatter.d.ts +2 -1
- package/tokens/sanitizer.d.ts +2 -1
- package/tokens/textfield-appearance.d.ts +2 -1
- package/tokens/textfield-host.d.ts +2 -1
- package/tokens/touch-supported.d.ts +2 -1
- package/tokens/value-accessor.d.ts +2 -1
- package/utils/icons-path-factory.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InjectionToken, inject } from '@angular/core';
|
|
2
|
+
import { tuiProvide } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
2
3
|
import { DOCUMENT } from '@angular/common';
|
|
3
|
-
import { inject } from '@angular/core';
|
|
4
4
|
import { from, EMPTY, shareReplay, map, of } from 'rxjs';
|
|
5
5
|
import { WA_NAVIGATOR, WA_WINDOW } from '@ng-web-apis/common';
|
|
6
6
|
import { isApple } from '@ng-web-apis/platform';
|
|
@@ -12,259 +12,261 @@ import { TuiMonthPipe } from '@taiga-ui/core/pipes/month';
|
|
|
12
12
|
* The new version is based on Google Open Source solution {@link https://github.com/google/libphonenumber libphonenumber}.
|
|
13
13
|
* This token (and all other hard-coded values) and related utils are no more required.
|
|
14
14
|
*/
|
|
15
|
-
const TUI_COUNTRIES_MASKS =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
15
|
+
const TUI_COUNTRIES_MASKS = new InjectionToken(ngDevMode ? 'TUI_COUNTRIES_MASKS' : '', {
|
|
16
|
+
factory: () => ({
|
|
17
|
+
AD: '+376###-###',
|
|
18
|
+
AE: '+971-##-###-####',
|
|
19
|
+
AF: '+93##-###-####',
|
|
20
|
+
AG: '+1(268) ###-####',
|
|
21
|
+
AI: '+1(264) ###-####',
|
|
22
|
+
AL: '+355(###) ###-###',
|
|
23
|
+
AM: '+374##-###-###',
|
|
24
|
+
AO: '+244(###) ###-###',
|
|
25
|
+
AR: '+54(###) ####-####',
|
|
26
|
+
AT: '+43(###) ###-####',
|
|
27
|
+
AU: '+61#-####-####',
|
|
28
|
+
AW: '+297###-####',
|
|
29
|
+
AZ: '+994##-###-##-##',
|
|
30
|
+
BA: '+387 ###-####-##',
|
|
31
|
+
BB: '+1(246) ###-####',
|
|
32
|
+
BD: '+880##-###-###',
|
|
33
|
+
BE: '+32(###) ###-###',
|
|
34
|
+
BF: '+226##-##-####',
|
|
35
|
+
BG: '+359(###) ###-###',
|
|
36
|
+
BH: '+973####-####',
|
|
37
|
+
BI: '+257##-##-####',
|
|
38
|
+
BJ: '+229##-##-####',
|
|
39
|
+
BL: '+590 ## ## ## ## ##',
|
|
40
|
+
BM: '+1(441) ###-####',
|
|
41
|
+
BN: '+673###-####',
|
|
42
|
+
BO: '+591#-###-####',
|
|
43
|
+
BQ: '+599-###-####',
|
|
44
|
+
BR: '+55(##) ####-####',
|
|
45
|
+
BS: '+1(242) ###-####',
|
|
46
|
+
BT: '+975#-###-###',
|
|
47
|
+
BW: '+267##-###-###',
|
|
48
|
+
BY: '+375(##) ###-##-##',
|
|
49
|
+
BZ: '+501###-####',
|
|
50
|
+
CA: '+1(###) ###-####',
|
|
51
|
+
CD: '+243(###) ###-###',
|
|
52
|
+
CF: '+236-##-##-####',
|
|
53
|
+
CG: '+242##-###-####',
|
|
54
|
+
CH: '+41##-###-####',
|
|
55
|
+
CI: '+225##-##-###-###',
|
|
56
|
+
CL: '+56#-####-####',
|
|
57
|
+
CM: '+237#####-####',
|
|
58
|
+
CN: '+86(###) ####-####',
|
|
59
|
+
CO: '+57(###) ###-####',
|
|
60
|
+
CR: '+506####-####',
|
|
61
|
+
CU: '+53#-###-####',
|
|
62
|
+
CV: '+238(###) ##-##',
|
|
63
|
+
CW: '+5999-###-####',
|
|
64
|
+
CY: '+357##-###-###',
|
|
65
|
+
CZ: '+420(###) ###-###',
|
|
66
|
+
DE: '+49(###) ###-###-##',
|
|
67
|
+
DJ: '+253##-##-##-##',
|
|
68
|
+
DK: '+45##-##-##-##',
|
|
69
|
+
DM: '+1(767) ###-####',
|
|
70
|
+
DO: '+1(###) ###-####',
|
|
71
|
+
DZ: '+213##-###-####',
|
|
72
|
+
EC: '+593##-###-####',
|
|
73
|
+
EE: '+372####-####',
|
|
74
|
+
EG: '+20(###) ###-####',
|
|
75
|
+
ER: '+291#-###-###',
|
|
76
|
+
ES: '+34(###) ###-###',
|
|
77
|
+
ET: '+251##-###-####',
|
|
78
|
+
FI: '+358(###) ###-##-##',
|
|
79
|
+
FJ: '+679##-#####',
|
|
80
|
+
FK: '+500#####',
|
|
81
|
+
FM: '+691###-####',
|
|
82
|
+
FR: '+33 ## ## ## ## ##',
|
|
83
|
+
GA: '+241##-##-##-##',
|
|
84
|
+
GB: '+44##-####-####',
|
|
85
|
+
GD: '+1(473) ###-####',
|
|
86
|
+
GE: '+995(###) ###-###',
|
|
87
|
+
GF: '+594 ## ## ## ## ##',
|
|
88
|
+
GH: '+233(###) ###-###',
|
|
89
|
+
GI: '+350###-#####',
|
|
90
|
+
GL: '+299##-##-##',
|
|
91
|
+
GM: '+220(###) ##-##',
|
|
92
|
+
GN: '+224##-###-###',
|
|
93
|
+
GP: '+590 ## ## ## ## ##',
|
|
94
|
+
GQ: '+240##-###-####',
|
|
95
|
+
GR: '+30(###) ###-####',
|
|
96
|
+
GT: '+502#-###-####',
|
|
97
|
+
GW: '+245#-######',
|
|
98
|
+
GY: '+592###-####',
|
|
99
|
+
HK: '+852####-####',
|
|
100
|
+
HN: '+504####-####',
|
|
101
|
+
HR: '+385##-###-####',
|
|
102
|
+
HT: '+509##-##-####',
|
|
103
|
+
HU: '+36(###) ###-###',
|
|
104
|
+
ID: '+62(###) ###-##-###',
|
|
105
|
+
IE: '+353(###) ###-###',
|
|
106
|
+
IL: '+972##-###-####',
|
|
107
|
+
IN: '+91(####) ###-###',
|
|
108
|
+
IQ: '+964(###) ###-####',
|
|
109
|
+
IR: '+98(###) ###-####',
|
|
110
|
+
IS: '+354###-####',
|
|
111
|
+
IT: '+39(###) ####-###',
|
|
112
|
+
JM: '+1(876) ###-####',
|
|
113
|
+
JO: '+962#-####-####',
|
|
114
|
+
JP: '+81-##-####-####',
|
|
115
|
+
KE: '+254###-######',
|
|
116
|
+
KG: '+996(###) ###-###',
|
|
117
|
+
KH: '+855##-###-###',
|
|
118
|
+
KM: '+269##-#####',
|
|
119
|
+
KN: '+1(869) ###-####',
|
|
120
|
+
KP: '+850####-#############',
|
|
121
|
+
KR: '+82##-###-####',
|
|
122
|
+
KW: '+965####-####',
|
|
123
|
+
KY: '+1(345) ###-####',
|
|
124
|
+
KZ: '+7(###) ###-##-##',
|
|
125
|
+
LA: '+856##-##-###-###',
|
|
126
|
+
LB: '+961##-###-###',
|
|
127
|
+
LC: '+1(758) ###-####',
|
|
128
|
+
LI: '+423(###) ###-####',
|
|
129
|
+
LK: '+94##-###-####',
|
|
130
|
+
LR: '+231##-###-###',
|
|
131
|
+
LS: '+266#-###-####',
|
|
132
|
+
LT: '+370(###) ##-###',
|
|
133
|
+
LU: '+352(###) ###-###',
|
|
134
|
+
LV: '+371##-###-###',
|
|
135
|
+
LY: '+218##-###-####',
|
|
136
|
+
MA: '+212##-####-###',
|
|
137
|
+
MC: '+377###-###-###',
|
|
138
|
+
MD: '+373####-####',
|
|
139
|
+
ME: '+382##-###-###',
|
|
140
|
+
MF: '+590 ## ## ## ## ##',
|
|
141
|
+
MG: '+261##-##-#####',
|
|
142
|
+
MK: '+389##-###-###',
|
|
143
|
+
ML: '+223##-##-####',
|
|
144
|
+
MM: '+95##-###-###',
|
|
145
|
+
MN: '+976##-##-####',
|
|
146
|
+
MO: '+853####-####',
|
|
147
|
+
MQ: '+596 ## ## ## ## ##',
|
|
148
|
+
MR: '+222##-##-####',
|
|
149
|
+
MS: '+1(664) ###-####',
|
|
150
|
+
MT: '+356####-####',
|
|
151
|
+
MU: '+230####-####',
|
|
152
|
+
MV: '+960###-####',
|
|
153
|
+
MW: '+265#-####-####',
|
|
154
|
+
MX: '+52(###) ###-####',
|
|
155
|
+
MY: '+60(###) ###-###',
|
|
156
|
+
MZ: '+258##-###-###',
|
|
157
|
+
NA: '+264##-###-####',
|
|
158
|
+
NC: '+687 ### ###',
|
|
159
|
+
NE: '+227##-##-####',
|
|
160
|
+
NG: '+234(###) ###-####',
|
|
161
|
+
NI: '+505####-####',
|
|
162
|
+
NL: '+31##-###-####',
|
|
163
|
+
NO: '+47(###) ##-###',
|
|
164
|
+
NP: '+977##-###-###',
|
|
165
|
+
NZ: '+64(###) ###-####',
|
|
166
|
+
OM: '+968##-###-###',
|
|
167
|
+
PA: '+507###-####',
|
|
168
|
+
PE: '+51(###) ###-###',
|
|
169
|
+
PF: '+689 ## ## ## ##',
|
|
170
|
+
PG: '+675(###) ##-###',
|
|
171
|
+
PH: '+63(###) ###-####',
|
|
172
|
+
PK: '+92(###) ###-####',
|
|
173
|
+
PL: '+48(###) ###-###',
|
|
174
|
+
PT: '+351##-###-####',
|
|
175
|
+
PW: '+680###-####',
|
|
176
|
+
PY: '+595(###) ###-###',
|
|
177
|
+
QA: '+974####-####',
|
|
178
|
+
RE: '+262 ## ## ## ## ##',
|
|
179
|
+
RO: '+40##-###-####',
|
|
180
|
+
RS: '+381##-###-####',
|
|
181
|
+
RU: '+7### ###-##-##',
|
|
182
|
+
RW: '+250(###) ###-###',
|
|
183
|
+
SA: '+966#-####-####',
|
|
184
|
+
SB: '+677###-####',
|
|
185
|
+
SC: '+248#-###-###',
|
|
186
|
+
SD: '+249##-###-####',
|
|
187
|
+
SE: '+46##-###-####',
|
|
188
|
+
SG: '+65####-####',
|
|
189
|
+
SH: '+290####',
|
|
190
|
+
SI: '+386##-###-###',
|
|
191
|
+
SK: '+421(###) ###-###',
|
|
192
|
+
SL: '+232##-######',
|
|
193
|
+
SM: '+378####-######',
|
|
194
|
+
SN: '+221##-###-####',
|
|
195
|
+
SO: '+252##-###-###',
|
|
196
|
+
SR: '+597###-####',
|
|
197
|
+
ST: '+239##-#####',
|
|
198
|
+
SV: '+503##-##-####',
|
|
199
|
+
SX: '+1(721) ###-####',
|
|
200
|
+
SY: '+963##-####-###',
|
|
201
|
+
SZ: '+268##-##-####',
|
|
202
|
+
TC: '+1(649) ###-####',
|
|
203
|
+
TD: '+235##-##-##-##',
|
|
204
|
+
TG: '+228##-###-###',
|
|
205
|
+
TH: '+66##-###-####',
|
|
206
|
+
TJ: '+992##-###-####',
|
|
207
|
+
TL: '+670###-#####',
|
|
208
|
+
TM: '+993#-###-####',
|
|
209
|
+
TN: '+216##-###-###',
|
|
210
|
+
TO: '+676#####',
|
|
211
|
+
TR: '+90(###) ###-####',
|
|
212
|
+
TT: '+1(868) ###-####',
|
|
213
|
+
TW: '+886#-####-####',
|
|
214
|
+
TZ: '+255##-###-####',
|
|
215
|
+
UA: '+380(##) ###-##-##',
|
|
216
|
+
UG: '+256(###) ###-###',
|
|
217
|
+
US: '+1(###) ###-####',
|
|
218
|
+
UY: '+598#-###-##-##',
|
|
219
|
+
UZ: '+998##-###-####',
|
|
220
|
+
VC: '+1(784) ###-####',
|
|
221
|
+
VE: '+58(###) ###-####',
|
|
222
|
+
VG: '+1(284)###-####',
|
|
223
|
+
VN: '+84(###) ####-###',
|
|
224
|
+
VU: '+678##-#####',
|
|
225
|
+
WS: '+685##-####',
|
|
226
|
+
XK: '+383##-###-###',
|
|
227
|
+
YE: '+967###-###-###',
|
|
228
|
+
YT: '+262 ## ## ## ## ##',
|
|
229
|
+
ZA: '+27##-###-####',
|
|
230
|
+
ZM: '+260##-###-####',
|
|
231
|
+
ZW: '+263#-######',
|
|
232
|
+
VA: '+39 #### ###-####',
|
|
233
|
+
WF: '+681 ## ##-##',
|
|
234
|
+
VI: '+1(340) ###-####',
|
|
235
|
+
JE: '+44(####) ######',
|
|
236
|
+
AC: '+247###-####',
|
|
237
|
+
TV: '+686###-####',
|
|
238
|
+
TK: '+690###-####',
|
|
239
|
+
TA: '+290###-####',
|
|
240
|
+
SS: '+211### ###-###',
|
|
241
|
+
SJ: '+47 ## ##-##-##',
|
|
242
|
+
PS: '+970 #### ###-###',
|
|
243
|
+
PR: '+1(###) ###-####',
|
|
244
|
+
PM: '+508 ### ##-##-##',
|
|
245
|
+
NU: '+683 ###-####',
|
|
246
|
+
NR: '+674 ###-####',
|
|
247
|
+
NF: '+672##-####',
|
|
248
|
+
MP: '+1(670) ###-####',
|
|
249
|
+
MH: '+692 ###-####',
|
|
250
|
+
KI: '+686 ####-####',
|
|
251
|
+
IO: '+246 ### ####',
|
|
252
|
+
IM: '+44(####) ######',
|
|
253
|
+
GU: '+1(###) ###-###',
|
|
254
|
+
GG: '+44(###) ###-####',
|
|
255
|
+
FO: '+298 ######',
|
|
256
|
+
EH: '+212 #### #####',
|
|
257
|
+
CX: '+61 # ####-####',
|
|
258
|
+
CK: '+682 ## ###',
|
|
259
|
+
CC: '+61 # ####-####',
|
|
260
|
+
AX: '+358 ## ###-####',
|
|
261
|
+
AS: '+1(###) ###-####',
|
|
262
|
+
}),
|
|
261
263
|
});
|
|
262
264
|
|
|
263
265
|
/**
|
|
264
266
|
* @deprecated: drop in v5.0
|
|
265
267
|
* A component that can be focused
|
|
266
268
|
*/
|
|
267
|
-
const TUI_FOCUSABLE_ITEM_ACCESSOR =
|
|
269
|
+
const TUI_FOCUSABLE_ITEM_ACCESSOR = new InjectionToken(ngDevMode ? 'TUI_FOCUSABLE_ITEM_ACCESSOR' : '');
|
|
268
270
|
/**
|
|
269
271
|
* @deprecated: drop in v5.0
|
|
270
272
|
*/
|
|
@@ -275,43 +277,55 @@ function tuiAsFocusableItemAccessor(accessor) {
|
|
|
275
277
|
/**
|
|
276
278
|
* @deprecated: drop in v5.0
|
|
277
279
|
*/
|
|
278
|
-
const TUI_FONTS_READY =
|
|
280
|
+
const TUI_FONTS_READY = new InjectionToken(ngDevMode ? 'TUI_FONTS_READY' : '', {
|
|
281
|
+
factory: () => from(inject(DOCUMENT).fonts?.ready || EMPTY).pipe(shareReplay({ bufferSize: 1, refCount: false })),
|
|
282
|
+
});
|
|
279
283
|
|
|
280
284
|
/**
|
|
281
285
|
* @deprecated: drop in v5.0
|
|
282
286
|
* A key/value dictionary of icon names and src to be defined with TuiSvgService
|
|
283
287
|
*/
|
|
284
|
-
const TUI_ICON_STARTS =
|
|
288
|
+
const TUI_ICON_STARTS = new InjectionToken(ngDevMode ? 'TUI_ICON_STARTS' : '', {
|
|
289
|
+
factory: () => ({}),
|
|
290
|
+
});
|
|
285
291
|
|
|
286
292
|
/**
|
|
287
293
|
* @deprecated: drop in v5.0
|
|
288
294
|
* Apple(safari/webkit) detection
|
|
289
295
|
*/
|
|
290
|
-
const TUI_IS_APPLE =
|
|
296
|
+
const TUI_IS_APPLE = new InjectionToken(ngDevMode ? 'TUI_IS_APPLE' : '', {
|
|
297
|
+
factory: () => isApple(inject(WA_NAVIGATOR)),
|
|
298
|
+
});
|
|
291
299
|
|
|
292
300
|
/**
|
|
293
301
|
* @deprecated: drop in v5.0
|
|
294
302
|
* Chromium browser engine detection
|
|
295
303
|
*/
|
|
296
|
-
const TUI_IS_CHROMIUM =
|
|
304
|
+
const TUI_IS_CHROMIUM = new InjectionToken(ngDevMode ? 'TUI_IS_CHROMIUM' : '', {
|
|
305
|
+
factory: () => !!inject(WA_WINDOW).chrome,
|
|
306
|
+
});
|
|
297
307
|
|
|
298
308
|
/**
|
|
299
309
|
* @deprecated: drop in v5.0
|
|
300
310
|
* Firefox browser engine detection
|
|
301
311
|
*/
|
|
302
|
-
const TUI_IS_FIREFOX =
|
|
303
|
-
|
|
312
|
+
const TUI_IS_FIREFOX = new InjectionToken(ngDevMode ? 'TUI_IS_FIREFOX' : '', {
|
|
313
|
+
factory: () => inject(WA_WINDOW)
|
|
314
|
+
?.mozCancelFullScreen !== undefined,
|
|
315
|
+
});
|
|
304
316
|
|
|
305
317
|
/**
|
|
306
318
|
* @deprecated: drop in v5.0
|
|
307
319
|
*/
|
|
308
|
-
const TUI_IS_STACKBLITZ =
|
|
320
|
+
const TUI_IS_STACKBLITZ = new InjectionToken(ngDevMode ? 'TUI_IS_STACKBLITZ' : '', {
|
|
321
|
+
factory: () => inject(WA_WINDOW).location.host.endsWith('stackblitz.io'),
|
|
322
|
+
});
|
|
309
323
|
|
|
310
324
|
/**
|
|
311
325
|
* @deprecated: drop in v5.0
|
|
312
326
|
* A function to get localized formatted month
|
|
313
327
|
*/
|
|
314
|
-
const TUI_MONTH_FORMATTER =
|
|
328
|
+
const TUI_MONTH_FORMATTER = new InjectionToken(ngDevMode ? 'TUI_MONTH_FORMATTER' : '');
|
|
315
329
|
const TUI_MONTH_FORMATTER_PROVIDER = {
|
|
316
330
|
provide: TUI_MONTH_FORMATTER,
|
|
317
331
|
deps: [TuiMonthPipe],
|
|
@@ -326,20 +340,22 @@ const TUI_MONTH_FORMATTER_PROVIDER = {
|
|
|
326
340
|
* @deprecated: drop in v5.0
|
|
327
341
|
* A custom Sanitizer to sanitize source before inlining
|
|
328
342
|
*/
|
|
329
|
-
const TUI_SANITIZER =
|
|
343
|
+
const TUI_SANITIZER = new InjectionToken(ngDevMode ? 'TUI_SANITIZER' : '');
|
|
330
344
|
|
|
331
345
|
/**
|
|
332
346
|
* @deprecated: drop in v5.0
|
|
333
347
|
* Appearance for inputs
|
|
334
348
|
* use {@link TUI_TEXTFIELD_APPEARANCE_DIRECTIVE} instead
|
|
335
349
|
*/
|
|
336
|
-
const TUI_TEXTFIELD_APPEARANCE =
|
|
350
|
+
const TUI_TEXTFIELD_APPEARANCE = new InjectionToken(ngDevMode ? 'TUI_TEXTFIELD_APPEARANCE' : '', {
|
|
351
|
+
factory: () => 'textfield',
|
|
352
|
+
});
|
|
337
353
|
|
|
338
354
|
/**
|
|
339
355
|
* @deprecated: drop in v5.0
|
|
340
356
|
* An interface to communicate with textfield based controls
|
|
341
357
|
*/
|
|
342
|
-
const TUI_TEXTFIELD_HOST =
|
|
358
|
+
const TUI_TEXTFIELD_HOST = new InjectionToken(ngDevMode ? 'TUI_TEXTFIELD_HOST' : '');
|
|
343
359
|
/**
|
|
344
360
|
* @deprecated: drop in v5.0
|
|
345
361
|
*/
|
|
@@ -350,13 +366,15 @@ function tuiAsTextfieldHost(host) {
|
|
|
350
366
|
/**
|
|
351
367
|
* @deprecated: drop in v5.0
|
|
352
368
|
*/
|
|
353
|
-
const TUI_TOUCH_SUPPORTED =
|
|
369
|
+
const TUI_TOUCH_SUPPORTED = new InjectionToken(ngDevMode ? 'TUI_TOUCH_SUPPORTED' : '', {
|
|
370
|
+
factory: () => inject(WA_WINDOW).matchMedia('(any-pointer: coarse)').matches,
|
|
371
|
+
});
|
|
354
372
|
|
|
355
373
|
/**
|
|
356
374
|
* @deprecated: drop in v5.0
|
|
357
375
|
* Buffer token to pass NG_VALUE_ACCESSOR to a different Injector
|
|
358
376
|
*/
|
|
359
|
-
const TUI_VALUE_ACCESSOR =
|
|
377
|
+
const TUI_VALUE_ACCESSOR = new InjectionToken(ngDevMode ? 'TUI_VALUE_ACCESSOR' : '');
|
|
360
378
|
|
|
361
379
|
/**
|
|
362
380
|
* Generated bundle index. Do not edit.
|