@taiga-ui/core 4.42.0 → 4.43.0-canary.0505af2

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 (143) hide show
  1. package/components/alert/alert.tokens.d.ts +5 -4
  2. package/components/calendar/calendar-sheet.options.d.ts +2 -1
  3. package/components/calendar/calendar-year.component.d.ts +5 -4
  4. package/components/calendar/calendar.component.d.ts +1 -0
  5. package/components/data-list/data-list.tokens.d.ts +3 -2
  6. package/components/data-list/option/option-content.d.ts +2 -1
  7. package/components/data-list/option/option.directive.d.ts +2 -0
  8. package/components/dialog/dialog.tokens.d.ts +4 -3
  9. package/components/link/link.options.d.ts +2 -1
  10. package/components/loader/loader.options.d.ts +2 -1
  11. package/components/textfield/select-like.directive.d.ts +4 -3
  12. package/components/textfield/textfield-accessor.d.ts +2 -1
  13. package/components/textfield/textfield-dropdown.directive.d.ts +9 -5
  14. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +3 -3
  15. package/components/textfield/textfield.component.d.ts +8 -4
  16. package/components/textfield/textfield.options.d.ts +2 -1
  17. package/directives/appearance/appearance.options.d.ts +2 -1
  18. package/directives/dropdown/dropdown-hover.options.d.ts +2 -1
  19. package/directives/dropdown/dropdown-options.directive.d.ts +2 -1
  20. package/directives/dropdown/dropdown.directive.d.ts +5 -4
  21. package/directives/dropdown/dropdown.providers.d.ts +3 -2
  22. package/directives/group/group.options.d.ts +2 -1
  23. package/directives/hint/hint-options.directive.d.ts +2 -1
  24. package/directives/hint/hint.providers.d.ts +2 -1
  25. package/directives/items-handlers/items-handlers.tokens.d.ts +2 -1
  26. package/esm2022/components/alert/alert.component.mjs +3 -3
  27. package/esm2022/components/alert/alert.tokens.mjs +28 -21
  28. package/esm2022/components/calendar/calendar-sheet.component.mjs +3 -3
  29. package/esm2022/components/calendar/calendar-sheet.options.mjs +6 -3
  30. package/esm2022/components/calendar/calendar-year.component.mjs +22 -18
  31. package/esm2022/components/calendar/calendar.component.mjs +5 -3
  32. package/esm2022/components/data-list/data-list.component.mjs +3 -3
  33. package/esm2022/components/data-list/data-list.tokens.mjs +5 -4
  34. package/esm2022/components/data-list/option/option-content.mjs +3 -4
  35. package/esm2022/components/data-list/option/option.directive.mjs +14 -2
  36. package/esm2022/components/dialog/dialog.component.mjs +3 -3
  37. package/esm2022/components/dialog/dialog.tokens.mjs +12 -5
  38. package/esm2022/components/dialog/dialogs.component.mjs +3 -3
  39. package/esm2022/components/label/label.directive.mjs +2 -2
  40. package/esm2022/components/link/link.options.mjs +6 -3
  41. package/esm2022/components/loader/loader.component.mjs +3 -3
  42. package/esm2022/components/loader/loader.options.mjs +6 -3
  43. package/esm2022/components/notification/notification.directive.mjs +2 -2
  44. package/esm2022/components/root/root.component.mjs +2 -2
  45. package/esm2022/components/textfield/select-like.directive.mjs +14 -10
  46. package/esm2022/components/textfield/textfield-accessor.mjs +4 -3
  47. package/esm2022/components/textfield/textfield-dropdown.directive.mjs +22 -15
  48. package/esm2022/components/textfield/textfield-multi/textfield-item.component.mjs +5 -4
  49. package/esm2022/components/textfield/textfield-multi/textfield-multi.component.mjs +27 -15
  50. package/esm2022/components/textfield/textfield.component.mjs +48 -39
  51. package/esm2022/components/textfield/textfield.options.mjs +9 -7
  52. package/esm2022/directives/appearance/appearance.options.mjs +6 -3
  53. package/esm2022/directives/dropdown/dropdown-hover.options.mjs +6 -3
  54. package/esm2022/directives/dropdown/dropdown-open.directive.mjs +2 -2
  55. package/esm2022/directives/dropdown/dropdown-options.directive.mjs +6 -4
  56. package/esm2022/directives/dropdown/dropdown.component.mjs +3 -3
  57. package/esm2022/directives/dropdown/dropdown.directive.mjs +21 -16
  58. package/esm2022/directives/dropdown/dropdown.providers.mjs +6 -4
  59. package/esm2022/directives/group/group.directive.mjs +2 -2
  60. package/esm2022/directives/group/group.options.mjs +6 -3
  61. package/esm2022/directives/hint/hint-options.directive.mjs +6 -4
  62. package/esm2022/directives/hint/hint.providers.mjs +5 -3
  63. package/esm2022/directives/items-handlers/items-handlers.tokens.mjs +5 -4
  64. package/esm2022/tokens/animations-speed.mjs +5 -4
  65. package/esm2022/tokens/assets-path.mjs +5 -3
  66. package/esm2022/tokens/auxiliary.mjs +6 -3
  67. package/esm2022/tokens/common-icons.mjs +6 -3
  68. package/esm2022/tokens/dark-mode.mjs +34 -31
  69. package/esm2022/tokens/date-format.mjs +5 -4
  70. package/esm2022/tokens/day-type-handler.mjs +5 -3
  71. package/esm2022/tokens/first-day-of-week.mjs +5 -3
  72. package/esm2022/tokens/i18n.mjs +23 -9
  73. package/esm2022/tokens/icon-resolver.mjs +7 -6
  74. package/esm2022/tokens/icon.mjs +8 -4
  75. package/esm2022/tokens/icons.mjs +5 -4
  76. package/esm2022/tokens/media.mjs +8 -6
  77. package/esm2022/tokens/number-format.mjs +5 -4
  78. package/esm2022/tokens/reduced-motion.mjs +6 -5
  79. package/esm2022/tokens/scroll-ref.mjs +5 -4
  80. package/esm2022/tokens/selection-stream.mjs +7 -6
  81. package/esm2022/tokens/spin-icons.mjs +7 -5
  82. package/esm2022/tokens/theme.mjs +5 -3
  83. package/esm2022/tokens/viewport.mjs +27 -25
  84. package/fesm2022/taiga-ui-core-components-alert.mjs +29 -22
  85. package/fesm2022/taiga-ui-core-components-alert.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-core-components-calendar.mjs +30 -23
  87. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-core-components-data-list.mjs +19 -8
  89. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-core-components-dialog.mjs +15 -9
  91. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-core-components-label.mjs +2 -2
  93. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-core-components-link.mjs +5 -3
  95. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-core-components-loader.mjs +7 -5
  97. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-core-components-notification.mjs +2 -2
  99. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-core-components-root.mjs +1 -1
  101. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-core-components-textfield.mjs +116 -84
  103. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-core-directives-appearance.mjs +5 -3
  105. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-core-directives-dropdown.mjs +35 -24
  107. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-core-directives-group.mjs +7 -5
  109. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-core-directives-hint.mjs +8 -4
  111. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +5 -3
  113. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-core-tokens.mjs +143 -87
  115. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  116. package/package.json +9 -9
  117. package/styles/components/label.less +2 -2
  118. package/styles/components/notification.less +57 -10
  119. package/styles/components/textfield.less +36 -17
  120. package/styles/mixins/mixins.less +1 -1
  121. package/styles/mixins/slider.less +3 -3
  122. package/styles/mixins/slider.scss +3 -3
  123. package/styles/theme/appearance/table.less +1 -1
  124. package/tokens/animations-speed.d.ts +2 -1
  125. package/tokens/assets-path.d.ts +2 -1
  126. package/tokens/auxiliary.d.ts +2 -1
  127. package/tokens/common-icons.d.ts +2 -1
  128. package/tokens/dark-mode.d.ts +3 -2
  129. package/tokens/date-format.d.ts +2 -1
  130. package/tokens/day-type-handler.d.ts +2 -1
  131. package/tokens/first-day-of-week.d.ts +2 -1
  132. package/tokens/i18n.d.ts +8 -7
  133. package/tokens/icon-resolver.d.ts +3 -2
  134. package/tokens/icon.d.ts +3 -2
  135. package/tokens/icons.d.ts +3 -2
  136. package/tokens/media.d.ts +2 -1
  137. package/tokens/number-format.d.ts +2 -1
  138. package/tokens/reduced-motion.d.ts +2 -1
  139. package/tokens/scroll-ref.d.ts +2 -2
  140. package/tokens/selection-stream.d.ts +2 -1
  141. package/tokens/spin-icons.d.ts +2 -1
  142. package/tokens/theme.d.ts +2 -1
  143. package/tokens/viewport.d.ts +2 -1
@@ -36,23 +36,28 @@ tui-notification,
36
36
  box-sizing: border-box;
37
37
  text-align: start;
38
38
  text-decoration: none;
39
- border-inline-start: var(--t-left) solid transparent;
40
- border-inline-end: var(--t-right) solid transparent;
39
+ border-inline-start: var(--t-start) solid transparent;
40
+ border-inline-end: var(--t-end) solid transparent;
41
41
 
42
- --t-left: 0;
43
- --t-right: 0;
42
+ --t-start: 0;
43
+ --t-end: 0;
44
44
 
45
45
  &[style*='--t-icon-start:'] {
46
- --t-left: 2rem;
46
+ --t-start: 2rem;
47
47
  }
48
48
 
49
49
  &[style*='--t-icon-end:'] {
50
- --t-right: 1.5rem;
50
+ --t-end: 1.5rem;
51
51
  }
52
52
 
53
53
  &::before {
54
54
  position: absolute;
55
55
  left: -1rem;
56
+
57
+ @supports (inset-inline-start: -1rem) {
58
+ left: unset;
59
+ inset-inline-start: -1rem;
60
+ }
56
61
  }
57
62
 
58
63
  &::after {
@@ -60,8 +65,15 @@ tui-notification,
60
65
 
61
66
  right: -0.5rem;
62
67
  font-size: 1rem;
63
- margin: 0 -0.25rem 0 auto;
68
+ margin: 0;
69
+ margin-inline-end: -0.25rem;
70
+ margin-inline-start: auto;
64
71
  color: var(--tui-text-tertiary) !important;
72
+
73
+ @supports (inset-inline-end: -0.5rem) {
74
+ right: unset;
75
+ inset-inline-end: -0.5rem;
76
+ }
65
77
  }
66
78
 
67
79
  &[data-size='s'] {
@@ -71,17 +83,27 @@ tui-notification,
71
83
  border-radius: var(--tui-radius-m);
72
84
 
73
85
  &[style*='--t-icon-start:'] {
74
- --t-left: 1.5rem;
86
+ --t-start: 1.5rem;
75
87
  }
76
88
 
77
89
  &::before {
78
90
  top: 0.5rem;
79
91
  left: -0.875rem;
80
92
  font-size: 1rem;
93
+
94
+ @supports (inset-inline-start: -0.875rem) {
95
+ left: unset;
96
+ inset-inline-start: -0.875rem;
97
+ }
81
98
  }
82
99
 
83
100
  &::after {
84
101
  right: -0.875rem;
102
+
103
+ @supports (inset-inline-end: -0.875rem) {
104
+ right: unset;
105
+ inset-inline-end: -0.875rem;
106
+ }
85
107
  }
86
108
 
87
109
  tui-icon {
@@ -105,6 +127,11 @@ tui-notification,
105
127
  > [tuiIconButton] {
106
128
  top: 0;
107
129
  right: 0;
130
+
131
+ @supports (inset-inline-end: 0) {
132
+ right: unset;
133
+ inset-inline-end: 0;
134
+ }
108
135
  }
109
136
  }
110
137
 
@@ -115,16 +142,26 @@ tui-notification,
115
142
  border-radius: var(--tui-radius-m);
116
143
 
117
144
  &[style*='--t-icon-start:'] {
118
- --t-left: 1.625rem;
145
+ --t-start: 1.625rem;
119
146
  }
120
147
 
121
148
  &::before {
122
149
  left: -0.875rem;
123
150
  font-size: 1.25rem;
151
+
152
+ @supports (inset-inline-start: -0.875rem) {
153
+ left: unset;
154
+ inset-inline-start: -0.875rem;
155
+ }
124
156
  }
125
157
 
126
158
  &::after {
127
159
  right: -0.75rem;
160
+
161
+ @supports (inset-inline-end: -0.75rem) {
162
+ right: unset;
163
+ inset-inline-end: -0.75rem;
164
+ }
128
165
  }
129
166
 
130
167
  tui-icon {
@@ -148,6 +185,11 @@ tui-notification,
148
185
  > [tuiIconButton] {
149
186
  top: 0.375rem;
150
187
  right: 0.5rem;
188
+
189
+ @supports (inset-inline-end: 0.5rem) {
190
+ right: unset;
191
+ inset-inline-end: 0.5rem;
192
+ }
151
193
  }
152
194
  }
153
195
 
@@ -164,7 +206,7 @@ tui-notification,
164
206
  display: flex;
165
207
  align-items: center;
166
208
  gap: 1.25rem;
167
- margin-top: 0.625rem;
209
+ margin-block-start: 0.625rem;
168
210
  font: var(--tui-font-text-s);
169
211
  }
170
212
  }
@@ -175,6 +217,11 @@ tui-notification,
175
217
  right: 0.75rem;
176
218
  box-shadow: none !important;
177
219
  background: transparent !important;
220
+
221
+ @supports (inset-inline-end: 0.75rem) {
222
+ right: unset;
223
+ inset-inline-end: 0.75rem;
224
+ }
178
225
  }
179
226
  }
180
227
 
@@ -7,8 +7,8 @@ tui-textfield {
7
7
  --t-height: var(--tui-height-l);
8
8
  --t-padding: var(--tui-padding-l);
9
9
  --t-label: -0.7em;
10
- --t-right: ~'0rem';
11
- --t-left: ~'0rem';
10
+ --t-end: ~'0rem';
11
+ --t-start: ~'0rem';
12
12
 
13
13
  position: relative;
14
14
  display: flex;
@@ -25,19 +25,19 @@ tui-textfield {
25
25
  isolation: isolate;
26
26
 
27
27
  &[style*='--t-icon-start:'] {
28
- --t-left: 2.25rem;
28
+ --t-start: 2.25rem;
29
29
  }
30
30
 
31
31
  &[style*='--t-icon-end:'] {
32
- --t-right: 2.25rem;
32
+ --t-end: 2.25rem;
33
33
  }
34
34
 
35
35
  &[tuiIcons]::after {
36
36
  position: relative;
37
37
  block-size: auto;
38
38
  align-self: stretch;
39
- border-left: var(--t-padding) solid transparent;
40
- border-right: var(--t-padding) solid transparent;
39
+ border-inline-start: var(--t-padding) solid transparent;
40
+ border-inline-end: var(--t-padding) solid transparent;
41
41
  margin: 0 calc(-1 * var(--t-padding));
42
42
  }
43
43
 
@@ -91,20 +91,22 @@ tui-textfield {
91
91
  font: var(--tui-font-text-ui-s);
92
92
 
93
93
  &[style*='--t-icon-start:'] {
94
- --t-left: 1.25rem;
94
+ --t-start: 1.25rem;
95
95
  }
96
96
 
97
97
  &[style*='--t-icon-end:'] {
98
- --t-right: 1.25rem;
98
+ --t-end: 1.25rem;
99
99
  }
100
100
 
101
101
  &::before {
102
- margin: 0 0.5rem 0 -0.125rem;
102
+ margin-inline-end: 0.5rem;
103
+ margin-inline-start: -0.125rem;
103
104
  font-size: 1rem;
104
105
  }
105
106
 
106
107
  &::after {
107
- margin: 0 calc(-0.125rem - var(--t-padding)) 0 calc(0.575rem - var(--t-padding));
108
+ margin-inline-end: calc(-0.125rem - var(--t-padding));
109
+ margin-inline-start: calc(0.625rem - var(--t-padding));
108
110
  font-size: 1rem;
109
111
  }
110
112
 
@@ -129,19 +131,21 @@ tui-textfield {
129
131
  font: var(--tui-font-text-ui-s);
130
132
 
131
133
  &[style*='--t-icon-start:'] {
132
- --t-left: 1.75rem;
134
+ --t-start: 1.75rem;
133
135
  }
134
136
 
135
137
  &[style*='--t-icon-end:'] {
136
- --t-right: 1.75rem;
138
+ --t-end: 1.75rem;
137
139
  }
138
140
 
139
141
  &::before {
140
- margin: 0 0.125rem 0 -0.125rem;
142
+ margin-inline-start: -0.125rem;
143
+ margin-inline-end: 0.125rem;
141
144
  }
142
145
 
143
146
  &::after {
144
- margin: 0 calc(-0.125rem - var(--t-padding)) 0 calc(0.25rem - var(--t-padding));
147
+ margin-inline-start: calc(0.25rem - var(--t-padding));
148
+ margin-inline-end: calc(-0.125rem - var(--t-padding));
145
149
  }
146
150
 
147
151
  input,
@@ -204,7 +208,14 @@ tui-textfield {
204
208
  textarea:defined {
205
209
  padding-block-start: calc(var(--t-height) / 3);
206
210
  padding-block-end: 0;
211
+ }
212
+ }
207
213
 
214
+ &:not([data-focus='true']):has(label:not(:empty)) {
215
+ & > .t-template,
216
+ input:not([type='range']),
217
+ select:defined,
218
+ textarea:defined {
208
219
  &::placeholder,
209
220
  &._empty {
210
221
  color: transparent;
@@ -218,9 +229,16 @@ tui-textfield {
218
229
  input:not([type='range']),
219
230
  select:defined,
220
231
  textarea:defined {
221
- padding-top: calc(var(--t-height) / 3);
232
+ padding-block-start: calc(var(--t-height) / 3);
222
233
  padding-block-end: 0;
234
+ }
235
+ }
223
236
 
237
+ &:not([data-focus='true'])._with-label {
238
+ & > .t-template,
239
+ input:not([type='range']),
240
+ select:defined,
241
+ textarea:defined {
224
242
  &::placeholder,
225
243
  &._empty {
226
244
  color: transparent;
@@ -240,8 +258,8 @@ tui-textfield {
240
258
  border-width: 0;
241
259
  overscroll-behavior: none;
242
260
  // StackBlitz changes "0rem" to "0" breaking calc
243
- padding-inline-start: calc(var(--t-left, ~'0rem') + var(--t-padding));
244
- padding-inline-end: calc(var(--t-right, ~'0rem') + var(--t-side) + var(--t-padding));
261
+ padding-inline-start: calc(var(--t-start, ~'0rem') + var(--t-padding));
262
+ padding-inline-end: calc(var(--t-end, ~'0rem') + var(--t-side) + var(--t-padding));
245
263
  }
246
264
 
247
265
  & > .t-template {
@@ -309,6 +327,7 @@ tui-textfield {
309
327
  });
310
328
  }
311
329
 
330
+ // @deprecated remove in v5
312
331
  .ios-only({
313
332
  &._ios-fix {
314
333
  position: fixed;
@@ -162,7 +162,7 @@
162
162
 
163
163
  .tui-line-clamp(@count: 3) {
164
164
  display: -webkit-box;
165
- -webkit-box-orient: vertical;
165
+ -webkit-box-orient: block-axis;
166
166
  -webkit-line-clamp: @count;
167
167
  line-clamp: @count;
168
168
  overflow: hidden;
@@ -30,15 +30,15 @@
30
30
 
31
31
  tui-textfield + &, /* TODO: add :has([tuiInputSlider]) */
32
32
  tui-input-slider + & {
33
- margin-left: calc(var(--tui-radius-m) / 2 + @first-tick-center);
33
+ margin-inline-start: calc(var(--tui-radius-m) / 2 + @first-tick-center);
34
34
  }
35
35
 
36
36
  tui-input-range + &,
37
37
  tui-range + & {
38
38
  @thumb: @thumb-diameters[@@input-size];
39
39
 
40
- margin-left: @thumb;
41
- margin-right: @thumb;
40
+ margin-inline-start: @thumb;
41
+ margin-inline-end: @thumb;
42
42
 
43
43
  & > * {
44
44
  &:first-child {
@@ -29,14 +29,14 @@ $thumb-diameters: (
29
29
  }
30
30
 
31
31
  tui-input-slider + & {
32
- margin-left: calc(var(--tui-radius-m) / 2 + #{$first-tick-center});
32
+ margin-inline-start: calc(var(--tui-radius-m) / 2 + #{$first-tick-center});
33
33
  }
34
34
 
35
35
  tui-input-range + &,
36
36
  tui-range + & {
37
37
  $thumb: map-get($thumb-diameters, $input-size);
38
- margin-left: $thumb;
39
- margin-right: $thumb;
38
+ margin-inline-start: $thumb;
39
+ margin-inline-end: $thumb;
40
40
 
41
41
  & > * {
42
42
  &:first-child {
@@ -17,7 +17,7 @@ TODO: remove :not([tuiWrapper]) after legacy controls deletion
17
17
  background: transparent;
18
18
  border: none;
19
19
  outline: none;
20
- border-bottom: calc(var(--t-row-height) - var(--t-height)) solid transparent;
20
+ border-block-end: calc(var(--t-row-height) - var(--t-height)) solid transparent;
21
21
 
22
22
  &:not(._empty) {
23
23
  color: var(--tui-text-primary);
@@ -1,4 +1,5 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  /**
2
3
  * Speed of all Taiga UI animations. 1 equals 300ms.
3
4
  */
4
- export declare const TUI_ANIMATIONS_SPEED: import("@angular/core").InjectionToken<number>;
5
+ export declare const TUI_ANIMATIONS_SPEED: InjectionToken<number>;
@@ -1,3 +1,4 @@
1
1
  import type { ValueProvider } from '@angular/core';
2
- export declare const TUI_ASSETS_PATH: import("@angular/core").InjectionToken<string>;
2
+ import { InjectionToken } from '@angular/core';
3
+ export declare const TUI_ASSETS_PATH: InjectionToken<string>;
3
4
  export declare function tuiAssetsPathProvider(useValue: string): ValueProvider;
@@ -1,3 +1,4 @@
1
1
  import type { Provider, Type } from '@angular/core';
2
- export declare const TUI_AUXILIARY: import("@angular/core").InjectionToken<null>;
2
+ import { InjectionToken } from '@angular/core';
3
+ export declare const TUI_AUXILIARY: InjectionToken<null>;
3
4
  export declare function tuiAsAuxiliary(x: Type<unknown>): Provider;
@@ -1,4 +1,5 @@
1
1
  import type { Provider } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  export interface TuiCommonIcons {
3
4
  readonly check: string;
4
5
  readonly close: string;
@@ -7,5 +8,5 @@ export interface TuiCommonIcons {
7
8
  readonly search: string;
8
9
  readonly ellipsis: string;
9
10
  }
10
- export declare const TUI_COMMON_ICONS: import("@angular/core").InjectionToken<TuiCommonIcons>;
11
+ export declare const TUI_COMMON_ICONS: InjectionToken<TuiCommonIcons>;
11
12
  export declare function tuiCommonIconsProvider(icons: Partial<TuiCommonIcons>): Provider;
@@ -1,6 +1,7 @@
1
1
  import type { WritableSignal } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  export declare const TUI_DARK_MODE_DEFAULT_KEY = "tuiDark";
3
- export declare const TUI_DARK_MODE_KEY: import("@angular/core").InjectionToken<string>;
4
- export declare const TUI_DARK_MODE: import("@angular/core").InjectionToken<WritableSignal<boolean> & {
4
+ export declare const TUI_DARK_MODE_KEY: InjectionToken<string>;
5
+ export declare const TUI_DARK_MODE: InjectionToken<WritableSignal<boolean> & {
5
6
  reset(): void;
6
7
  }>;
@@ -1,4 +1,5 @@
1
- import type { InjectionToken, Provider } from '@angular/core';
1
+ import type { Provider } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  import type { TuiDateMode } from '@taiga-ui/cdk/date-time';
3
4
  import type { Observable } from 'rxjs';
4
5
  /**
@@ -1,6 +1,7 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  import type { TuiDay } from '@taiga-ui/cdk/date-time';
2
3
  import type { TuiHandler } from '@taiga-ui/cdk/types';
3
4
  /**
4
5
  * Token for adding data-type attribute to calendar cell
5
6
  */
6
- export declare const TUI_DAY_TYPE_HANDLER: import("@angular/core").InjectionToken<TuiHandler<TuiDay, string>>;
7
+ export declare const TUI_DAY_TYPE_HANDLER: InjectionToken<TuiHandler<TuiDay, string>>;
@@ -1,4 +1,5 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  /**
2
3
  * The first day of the week index
3
4
  */
4
- export declare const TUI_FIRST_DAY_OF_WEEK: import("@angular/core").InjectionToken<0 | 1 | 2 | 3 | 4 | 5 | 6>;
5
+ export declare const TUI_FIRST_DAY_OF_WEEK: InjectionToken<0 | 1 | 2 | 3 | 4 | 5 | 6>;
package/tokens/i18n.d.ts CHANGED
@@ -1,28 +1,29 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  /**
2
3
  * Localized months names
3
4
  */
4
- export declare const TUI_MONTHS: import("@angular/core").InjectionToken<import("rxjs").Observable<readonly [January: string, February: string, March: string, April: string, May: string, June: string, July: string, August: string, September: string, October: string, November: string, December: string]>>;
5
+ export declare const TUI_MONTHS: InjectionToken<import("rxjs").Observable<readonly [January: string, February: string, March: string, April: string, May: string, June: string, July: string, August: string, September: string, October: string, November: string, December: string]>>;
5
6
  /**
6
7
  * i18n 'close' word
7
8
  */
8
- export declare const TUI_CLOSE_WORD: import("@angular/core").InjectionToken<import("rxjs").Observable<string>>;
9
+ export declare const TUI_CLOSE_WORD: InjectionToken<import("rxjs").Observable<string>>;
9
10
  /**
10
11
  * i18n 'clear' word
11
12
  */
12
- export declare const TUI_CLEAR_WORD: import("@angular/core").InjectionToken<import("rxjs").Observable<string>>;
13
+ export declare const TUI_CLEAR_WORD: InjectionToken<import("rxjs").Observable<string>>;
13
14
  /**
14
15
  * i18n 'Nothing found' message
15
16
  */
16
- export declare const TUI_NOTHING_FOUND_MESSAGE: import("@angular/core").InjectionToken<import("rxjs").Observable<string>>;
17
+ export declare const TUI_NOTHING_FOUND_MESSAGE: InjectionToken<import("rxjs").Observable<string>>;
17
18
  /**
18
19
  * i18n of error message
19
20
  */
20
- export declare const TUI_DEFAULT_ERROR_MESSAGE: import("@angular/core").InjectionToken<import("rxjs").Observable<string>>;
21
+ export declare const TUI_DEFAULT_ERROR_MESSAGE: InjectionToken<import("rxjs").Observable<string>>;
21
22
  /**
22
23
  * spin i18n texts
23
24
  */
24
- export declare const TUI_SPIN_TEXTS: import("@angular/core").InjectionToken<import("rxjs").Observable<readonly [previous: string, next: string]>>;
25
+ export declare const TUI_SPIN_TEXTS: InjectionToken<import("rxjs").Observable<readonly [previous: string, next: string]>>;
25
26
  /**
26
27
  * calendars i18n texts
27
28
  */
28
- export declare const TUI_SHORT_WEEK_DAYS: import("@angular/core").InjectionToken<import("rxjs").Observable<readonly [Monday: string, Tuesday: string, Wednesday: string, Thursday: string, Friday: string, Saturday: string, Sunday: string]>>;
29
+ export declare const TUI_SHORT_WEEK_DAYS: InjectionToken<import("rxjs").Observable<readonly [Monday: string, Tuesday: string, Wednesday: string, Thursday: string, Friday: string, Saturday: string, Sunday: string]>>;
@@ -1,9 +1,10 @@
1
1
  import type { Provider } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  import type { TuiStringHandler } from '@taiga-ui/cdk/types';
3
- export declare const TUI_ICON_RESOLVER: import("@angular/core").InjectionToken<TuiStringHandler<string>>;
4
+ export declare const TUI_ICON_RESOLVER: InjectionToken<TuiStringHandler<string>>;
4
5
  /**
5
6
  * @deprecated use {@link TUI_ICON_RESOLVER}
6
7
  */
7
- export declare const TUI_ICON_START_RESOLVER: import("@angular/core").InjectionToken<TuiStringHandler<string>>;
8
+ export declare const TUI_ICON_START_RESOLVER: InjectionToken<TuiStringHandler<string>>;
8
9
  export declare function tuiInjectIconResolver(): TuiStringHandler<string>;
9
10
  export declare function tuiIconResolverProvider(useValue: TuiStringHandler<string>): Provider;
package/tokens/icon.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export declare const TUI_ICON_START: import("@angular/core").InjectionToken<string>;
2
- export declare const TUI_ICON_END: import("@angular/core").InjectionToken<string>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const TUI_ICON_START: InjectionToken<string>;
3
+ export declare const TUI_ICON_END: InjectionToken<string>;
package/tokens/icons.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import type { FactoryProvider } from '@angular/core';
2
- export declare const TUI_ICON_REGISTRY: import("@angular/core").InjectionToken<Record<string, string>>;
2
+ import { InjectionToken } from '@angular/core';
3
+ export declare const TUI_ICON_REGISTRY: InjectionToken<Record<string, string>>;
3
4
  /**
4
5
  * @deprecated: use {@link TUI_ICON_REGISTRY}
5
6
  */
6
- export declare const TUI_ICON_STARTS: import("@angular/core").InjectionToken<Record<string, string>>;
7
+ export declare const TUI_ICON_STARTS: InjectionToken<Record<string, string>>;
7
8
  export declare function tuiIconsProvider(icons: Record<string, string>): FactoryProvider;
package/tokens/media.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  export interface TuiMedia {
2
3
  readonly desktopLarge: number;
3
4
  readonly desktopSmall: number;
@@ -7,4 +8,4 @@ export interface TuiMedia {
7
8
  /**
8
9
  * Token for media constant
9
10
  */
10
- export declare const TUI_MEDIA: import("@angular/core").InjectionToken<TuiMedia>;
11
+ export declare const TUI_MEDIA: InjectionToken<TuiMedia>;
@@ -1,4 +1,5 @@
1
- import type { InjectionToken, Provider } from '@angular/core';
1
+ import type { Provider } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  import type { TuiRounding } from '@taiga-ui/cdk/types';
3
4
  import type { Observable } from 'rxjs';
4
5
  export type TuiDecimalMode = 'always' | 'not-zero' | 'pad';
@@ -1 +1,2 @@
1
- export declare const TUI_REDUCED_MOTION: import("@angular/core").InjectionToken<boolean>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const TUI_REDUCED_MOTION: InjectionToken<boolean>;
@@ -1,2 +1,2 @@
1
- import { ElementRef } from '@angular/core';
2
- export declare const TUI_SCROLL_REF: import("@angular/core").InjectionToken<ElementRef<HTMLElement>>;
1
+ import { ElementRef, InjectionToken } from '@angular/core';
2
+ export declare const TUI_SCROLL_REF: InjectionToken<ElementRef<HTMLElement>>;
@@ -1,5 +1,6 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  import type { Observable } from 'rxjs';
2
3
  /**
3
4
  * A stream of possible selection changes
4
5
  */
5
- export declare const TUI_SELECTION_STREAM: import("@angular/core").InjectionToken<Observable<unknown>>;
6
+ export declare const TUI_SELECTION_STREAM: InjectionToken<Observable<unknown>>;
@@ -1,5 +1,6 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  export interface TuiSpinIcons {
2
3
  readonly decrement: string;
3
4
  readonly increment: string;
4
5
  }
5
- export declare const TUI_SPIN_ICONS: import("@angular/core").InjectionToken<TuiSpinIcons>;
6
+ export declare const TUI_SPIN_ICONS: InjectionToken<TuiSpinIcons>;
package/tokens/theme.d.ts CHANGED
@@ -1 +1,2 @@
1
- export declare const TUI_THEME: import("@angular/core").InjectionToken<string>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const TUI_THEME: InjectionToken<string>;
@@ -1,7 +1,8 @@
1
1
  import type { Provider, Type } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  import type { TuiRectAccessor } from '@taiga-ui/core/classes';
3
4
  /**
4
5
  * Viewport accessor
5
6
  */
6
- export declare const TUI_VIEWPORT: import("@angular/core").InjectionToken<TuiRectAccessor>;
7
+ export declare const TUI_VIEWPORT: InjectionToken<TuiRectAccessor>;
7
8
  export declare function tuiAsViewport(accessor: Type<TuiRectAccessor>): Provider;