@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.
Files changed (150) hide show
  1. package/components/arrow/arrow.options.d.ts +1 -2
  2. package/components/arrow/arrow.providers.d.ts +1 -2
  3. package/components/color-selector/color-selector.options.d.ts +2 -3
  4. package/components/input-copy/input-copy.options.d.ts +1 -2
  5. package/components/input-number/input-number.component.d.ts +1 -2
  6. package/components/input-number/input-number.options.d.ts +1 -2
  7. package/components/input-password/input-password.options.d.ts +1 -2
  8. package/components/input-phone/input-phone.options.d.ts +1 -2
  9. package/components/input-phone-international/input-phone-international.options.d.ts +1 -2
  10. package/components/input-tag/input-tag.options.d.ts +1 -2
  11. package/components/input-time/input-time.options.d.ts +1 -2
  12. package/components/multi-select/multi-select.module.d.ts +0 -4
  13. package/components/multi-select/multi-select.options.d.ts +1 -2
  14. package/components/select/select.options.d.ts +1 -2
  15. package/components/sheet/sheet-options.d.ts +1 -2
  16. package/components/sheet/sheet-tokens.d.ts +3 -4
  17. package/components/svg/svg-options.d.ts +2 -3
  18. package/components/table-bar/table-bar.options.d.ts +2 -3
  19. package/components/tag/tag.options.d.ts +1 -2
  20. package/directives/textfield-controller/textfield-appearance.directive.d.ts +1 -2
  21. package/directives/textfield-controller/textfield-cleaner.directive.d.ts +1 -2
  22. package/directives/textfield-controller/textfield-controller.provider.d.ts +1 -2
  23. package/directives/textfield-controller/textfield-custom-content.directive.d.ts +1 -2
  24. package/directives/textfield-controller/textfield-filler.directive.d.ts +1 -2
  25. package/directives/textfield-controller/textfield-icon-left.directive.d.ts +1 -2
  26. package/directives/textfield-controller/textfield-icon.directive.d.ts +1 -2
  27. package/directives/textfield-controller/textfield-label-outside.directive.d.ts +1 -2
  28. package/directives/textfield-controller/textfield-postfix.directive.d.ts +1 -2
  29. package/directives/textfield-controller/textfield-prefix.directive.d.ts +1 -2
  30. package/directives/textfield-controller/textfield-size.directive.d.ts +1 -2
  31. package/directives/textfield-controller/textfield.options.d.ts +1 -2
  32. package/esm2022/components/arrow/arrow.options.mjs +3 -6
  33. package/esm2022/components/arrow/arrow.providers.mjs +3 -6
  34. package/esm2022/components/color-selector/color-picker/color-picker.component.mjs +2 -2
  35. package/esm2022/components/color-selector/color-selector.component.mjs +2 -2
  36. package/esm2022/components/color-selector/color-selector.options.mjs +7 -9
  37. package/esm2022/components/input-copy/input-copy.options.mjs +3 -6
  38. package/esm2022/components/input-number/input-number.component.mjs +6 -6
  39. package/esm2022/components/input-number/input-number.options.mjs +3 -6
  40. package/esm2022/components/input-password/input-password.options.mjs +3 -6
  41. package/esm2022/components/input-phone/input-phone.options.mjs +3 -6
  42. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +3 -3
  43. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +3 -6
  44. package/esm2022/components/input-tag/input-tag.component.mjs +2 -2
  45. package/esm2022/components/input-tag/input-tag.options.mjs +3 -6
  46. package/esm2022/components/input-time/input-time.options.mjs +3 -6
  47. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +2 -2
  48. package/esm2022/components/multi-select/multi-select.module.mjs +1 -5
  49. package/esm2022/components/multi-select/multi-select.options.mjs +3 -6
  50. package/esm2022/components/multi-select-option/multi-select-option.component.mjs +2 -2
  51. package/esm2022/components/primitive-textfield/primitive-textfield.component.mjs +2 -2
  52. package/esm2022/components/primitive-textfield/textfield/textfield.component.mjs +2 -2
  53. package/esm2022/components/primitive-textfield/value-decoration/value-decoration.component.mjs +2 -2
  54. package/esm2022/components/select/select.options.mjs +3 -6
  55. package/esm2022/components/sheet/components/sheet/sheet.component.mjs +3 -3
  56. package/esm2022/components/sheet/components/sheet-heading/sheet-heading.component.mjs +2 -2
  57. package/esm2022/components/sheet/sheet-options.mjs +4 -6
  58. package/esm2022/components/sheet/sheet-tokens.mjs +5 -5
  59. package/esm2022/components/svg/svg-options.mjs +11 -13
  60. package/esm2022/components/table-bar/table-bar.component.mjs +3 -3
  61. package/esm2022/components/table-bar/table-bar.options.mjs +4 -9
  62. package/esm2022/components/tag/tag.component.mjs +2 -2
  63. package/esm2022/components/tag/tag.options.mjs +3 -6
  64. package/esm2022/components/textarea/textarea.component.mjs +2 -2
  65. package/esm2022/directives/textfield-controller/textfield-appearance.directive.mjs +4 -6
  66. package/esm2022/directives/textfield-controller/textfield-cleaner.directive.mjs +4 -6
  67. package/esm2022/directives/textfield-controller/textfield-controller.provider.mjs +4 -3
  68. package/esm2022/directives/textfield-controller/textfield-custom-content.directive.mjs +4 -6
  69. package/esm2022/directives/textfield-controller/textfield-filler.directive.mjs +4 -6
  70. package/esm2022/directives/textfield-controller/textfield-icon-left.directive.mjs +4 -6
  71. package/esm2022/directives/textfield-controller/textfield-icon.directive.mjs +4 -6
  72. package/esm2022/directives/textfield-controller/textfield-label-outside.directive.mjs +4 -6
  73. package/esm2022/directives/textfield-controller/textfield-postfix.directive.mjs +4 -6
  74. package/esm2022/directives/textfield-controller/textfield-prefix.directive.mjs +4 -6
  75. package/esm2022/directives/textfield-controller/textfield-size.directive.mjs +4 -6
  76. package/esm2022/directives/textfield-controller/textfield.options.mjs +3 -6
  77. package/esm2022/tokens/countries-masks.mjs +248 -250
  78. package/esm2022/tokens/focusable-item-accessor.mjs +3 -4
  79. package/esm2022/tokens/fonts-ready.mjs +4 -5
  80. package/esm2022/tokens/icons.mjs +3 -5
  81. package/esm2022/tokens/is-apple.mjs +4 -5
  82. package/esm2022/tokens/is-chromium.mjs +4 -5
  83. package/esm2022/tokens/is-firefox.mjs +5 -6
  84. package/esm2022/tokens/is-stackblitz.mjs +4 -5
  85. package/esm2022/tokens/month-formatter.mjs +3 -3
  86. package/esm2022/tokens/sanitizer.mjs +3 -3
  87. package/esm2022/tokens/textfield-appearance.mjs +3 -5
  88. package/esm2022/tokens/textfield-host.mjs +3 -4
  89. package/esm2022/tokens/touch-supported.mjs +4 -5
  90. package/esm2022/tokens/value-accessor.mjs +3 -3
  91. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +4 -8
  92. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +11 -12
  94. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +3 -5
  96. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +6 -8
  98. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-legacy-components-input-password.mjs +3 -5
  100. package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +5 -7
  102. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +3 -5
  104. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +5 -7
  106. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +3 -5
  108. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +2 -2
  110. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -1
  111. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +5 -11
  112. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -1
  113. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +6 -6
  114. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
  115. package/fesm2022/taiga-ui-legacy-components-select.mjs +3 -5
  116. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-legacy-components-sheet.mjs +11 -13
  118. package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-legacy-components-svg.mjs +10 -12
  120. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +6 -10
  122. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-legacy-components-tag.mjs +5 -7
  124. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +2 -2
  126. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +14 -36
  128. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-legacy-tokens.mjs +262 -280
  130. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -1
  131. package/package.json +49 -49
  132. package/styles/mixins/mixins.less +8 -8
  133. package/styles/mixins/mixins.scss +8 -8
  134. package/styles/mixins/textfield.less +3 -3
  135. package/styles/mixins/textfield.scss +2 -2
  136. package/tokens/countries-masks.d.ts +1 -2
  137. package/tokens/focusable-item-accessor.d.ts +1 -2
  138. package/tokens/fonts-ready.d.ts +1 -2
  139. package/tokens/icons.d.ts +1 -2
  140. package/tokens/is-apple.d.ts +1 -2
  141. package/tokens/is-chromium.d.ts +1 -2
  142. package/tokens/is-firefox.d.ts +1 -2
  143. package/tokens/is-stackblitz.d.ts +1 -2
  144. package/tokens/month-formatter.d.ts +1 -2
  145. package/tokens/sanitizer.d.ts +1 -2
  146. package/tokens/textfield-appearance.d.ts +1 -2
  147. package/tokens/textfield-host.d.ts +1 -2
  148. package/tokens/touch-supported.d.ts +1 -2
  149. package/tokens/value-accessor.d.ts +1 -2
  150. package/utils/icons-path-factory.d.ts +1 -1
@@ -1,6 +1,6 @@
1
- import { InjectionToken, inject } from '@angular/core';
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 = 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
- }),
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 = new InjectionToken(ngDevMode ? '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 = new InjectionToken(ngDevMode ? '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 = new InjectionToken(ngDevMode ? '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 = new InjectionToken(ngDevMode ? '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 = new InjectionToken(ngDevMode ? '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 = new InjectionToken(ngDevMode ? 'TUI_IS_FIREFOX' : '', {
313
- factory: () => inject(WA_WINDOW)
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 = new InjectionToken(ngDevMode ? '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 = new InjectionToken(ngDevMode ? '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 = new InjectionToken(ngDevMode ? '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 = new InjectionToken(ngDevMode ? '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 = new InjectionToken(ngDevMode ? '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 = new InjectionToken(ngDevMode ? '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 = new InjectionToken(ngDevMode ? 'TUI_VALUE_ACCESSOR' : '');
359
+ const TUI_VALUE_ACCESSOR = tuiCreateToken();
378
360
 
379
361
  /**
380
362
  * Generated bundle index. Do not edit.