@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.
Files changed (150) hide show
  1. package/components/arrow/arrow.options.d.ts +2 -1
  2. package/components/arrow/arrow.providers.d.ts +2 -1
  3. package/components/color-selector/color-selector.options.d.ts +3 -2
  4. package/components/input-copy/input-copy.options.d.ts +2 -1
  5. package/components/input-number/input-number.component.d.ts +2 -1
  6. package/components/input-number/input-number.options.d.ts +2 -1
  7. package/components/input-password/input-password.options.d.ts +2 -1
  8. package/components/input-phone/input-phone.options.d.ts +2 -1
  9. package/components/input-phone-international/input-phone-international.options.d.ts +2 -1
  10. package/components/input-tag/input-tag.options.d.ts +2 -1
  11. package/components/input-time/input-time.options.d.ts +2 -1
  12. package/components/multi-select/multi-select.module.d.ts +4 -0
  13. package/components/multi-select/multi-select.options.d.ts +2 -1
  14. package/components/select/select.options.d.ts +2 -1
  15. package/components/sheet/sheet-options.d.ts +2 -1
  16. package/components/sheet/sheet-tokens.d.ts +4 -3
  17. package/components/svg/svg-options.d.ts +3 -2
  18. package/components/table-bar/table-bar.options.d.ts +3 -2
  19. package/components/tag/tag.options.d.ts +2 -1
  20. package/directives/textfield-controller/textfield-appearance.directive.d.ts +2 -1
  21. package/directives/textfield-controller/textfield-cleaner.directive.d.ts +2 -1
  22. package/directives/textfield-controller/textfield-controller.provider.d.ts +2 -1
  23. package/directives/textfield-controller/textfield-custom-content.directive.d.ts +2 -1
  24. package/directives/textfield-controller/textfield-filler.directive.d.ts +2 -1
  25. package/directives/textfield-controller/textfield-icon-left.directive.d.ts +2 -1
  26. package/directives/textfield-controller/textfield-icon.directive.d.ts +2 -1
  27. package/directives/textfield-controller/textfield-label-outside.directive.d.ts +2 -1
  28. package/directives/textfield-controller/textfield-postfix.directive.d.ts +2 -1
  29. package/directives/textfield-controller/textfield-prefix.directive.d.ts +2 -1
  30. package/directives/textfield-controller/textfield-size.directive.d.ts +2 -1
  31. package/directives/textfield-controller/textfield.options.d.ts +2 -1
  32. package/esm2022/components/arrow/arrow.options.mjs +6 -3
  33. package/esm2022/components/arrow/arrow.providers.mjs +6 -3
  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 +9 -7
  37. package/esm2022/components/input-copy/input-copy.options.mjs +6 -3
  38. package/esm2022/components/input-number/input-number.component.mjs +6 -6
  39. package/esm2022/components/input-number/input-number.options.mjs +6 -3
  40. package/esm2022/components/input-password/input-password.options.mjs +6 -3
  41. package/esm2022/components/input-phone/input-phone.options.mjs +6 -3
  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 +6 -3
  44. package/esm2022/components/input-tag/input-tag.component.mjs +2 -2
  45. package/esm2022/components/input-tag/input-tag.options.mjs +6 -3
  46. package/esm2022/components/input-time/input-time.options.mjs +6 -3
  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 +5 -1
  49. package/esm2022/components/multi-select/multi-select.options.mjs +6 -3
  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 +6 -3
  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 +6 -4
  58. package/esm2022/components/sheet/sheet-tokens.mjs +5 -5
  59. package/esm2022/components/svg/svg-options.mjs +13 -11
  60. package/esm2022/components/table-bar/table-bar.component.mjs +3 -3
  61. package/esm2022/components/table-bar/table-bar.options.mjs +9 -4
  62. package/esm2022/components/tag/tag.component.mjs +2 -2
  63. package/esm2022/components/tag/tag.options.mjs +6 -3
  64. package/esm2022/components/textarea/textarea.component.mjs +2 -2
  65. package/esm2022/directives/textfield-controller/textfield-appearance.directive.mjs +6 -4
  66. package/esm2022/directives/textfield-controller/textfield-cleaner.directive.mjs +6 -4
  67. package/esm2022/directives/textfield-controller/textfield-controller.provider.mjs +3 -4
  68. package/esm2022/directives/textfield-controller/textfield-custom-content.directive.mjs +6 -4
  69. package/esm2022/directives/textfield-controller/textfield-filler.directive.mjs +6 -4
  70. package/esm2022/directives/textfield-controller/textfield-icon-left.directive.mjs +6 -4
  71. package/esm2022/directives/textfield-controller/textfield-icon.directive.mjs +6 -4
  72. package/esm2022/directives/textfield-controller/textfield-label-outside.directive.mjs +6 -4
  73. package/esm2022/directives/textfield-controller/textfield-postfix.directive.mjs +6 -4
  74. package/esm2022/directives/textfield-controller/textfield-prefix.directive.mjs +6 -4
  75. package/esm2022/directives/textfield-controller/textfield-size.directive.mjs +6 -4
  76. package/esm2022/directives/textfield-controller/textfield.options.mjs +6 -3
  77. package/esm2022/tokens/countries-masks.mjs +250 -248
  78. package/esm2022/tokens/focusable-item-accessor.mjs +4 -3
  79. package/esm2022/tokens/fonts-ready.mjs +5 -4
  80. package/esm2022/tokens/icons.mjs +5 -3
  81. package/esm2022/tokens/is-apple.mjs +5 -4
  82. package/esm2022/tokens/is-chromium.mjs +5 -4
  83. package/esm2022/tokens/is-firefox.mjs +6 -5
  84. package/esm2022/tokens/is-stackblitz.mjs +5 -4
  85. package/esm2022/tokens/month-formatter.mjs +3 -3
  86. package/esm2022/tokens/sanitizer.mjs +3 -3
  87. package/esm2022/tokens/textfield-appearance.mjs +5 -3
  88. package/esm2022/tokens/textfield-host.mjs +4 -3
  89. package/esm2022/tokens/touch-supported.mjs +5 -4
  90. package/esm2022/tokens/value-accessor.mjs +3 -3
  91. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +8 -4
  92. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +12 -11
  94. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +5 -3
  96. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +8 -6
  98. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-legacy-components-input-password.mjs +5 -3
  100. package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +7 -5
  102. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +5 -3
  104. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +7 -5
  106. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +5 -3
  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 +11 -5
  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 +5 -3
  116. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-legacy-components-sheet.mjs +13 -11
  118. package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-legacy-components-svg.mjs +12 -10
  120. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +10 -6
  122. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-legacy-components-tag.mjs +7 -5
  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 +36 -14
  128. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-legacy-tokens.mjs +280 -262
  130. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -1
  131. package/package.json +1 -1
  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 +2 -1
  137. package/tokens/focusable-item-accessor.d.ts +2 -1
  138. package/tokens/fonts-ready.d.ts +2 -1
  139. package/tokens/icons.d.ts +2 -1
  140. package/tokens/is-apple.d.ts +2 -1
  141. package/tokens/is-chromium.d.ts +2 -1
  142. package/tokens/is-firefox.d.ts +2 -1
  143. package/tokens/is-stackblitz.d.ts +2 -1
  144. package/tokens/month-formatter.d.ts +2 -1
  145. package/tokens/sanitizer.d.ts +2 -1
  146. package/tokens/textfield-appearance.d.ts +2 -1
  147. package/tokens/textfield-host.d.ts +2 -1
  148. package/tokens/touch-supported.d.ts +2 -1
  149. package/tokens/value-accessor.d.ts +2 -1
  150. package/utils/icons-path-factory.d.ts +1 -1
@@ -1,6 +1,6 @@
1
- import { tuiCreateToken, tuiProvide, tuiCreateTokenFromFactory } from '@taiga-ui/cdk/utils/miscellaneous';
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 = 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(###) ###-####',
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 = tuiCreateToken();
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 = tuiCreateTokenFromFactory(() => from(inject(DOCUMENT).fonts?.ready || EMPTY).pipe(shareReplay({ bufferSize: 1, refCount: false })));
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 = tuiCreateToken({});
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 = tuiCreateTokenFromFactory(() => isApple(inject(WA_NAVIGATOR)));
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 = tuiCreateTokenFromFactory(() => !!inject(WA_WINDOW).chrome);
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 = tuiCreateTokenFromFactory(() => inject(WA_WINDOW)
303
- ?.mozCancelFullScreen !== undefined);
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 = tuiCreateTokenFromFactory(() => inject(WA_WINDOW).location.host.endsWith('stackblitz.io'));
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 = tuiCreateToken();
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 = tuiCreateToken();
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 = tuiCreateToken('textfield');
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 = tuiCreateToken();
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 = tuiCreateTokenFromFactory(() => inject(WA_WINDOW).matchMedia('(any-pointer: coarse)').matches);
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 = tuiCreateToken();
377
+ const TUI_VALUE_ACCESSOR = new InjectionToken(ngDevMode ? 'TUI_VALUE_ACCESSOR' : '');
360
378
 
361
379
  /**
362
380
  * Generated bundle index. Do not edit.