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