@taiga-ui/core 4.32.0 → 4.33.0-canary.a0e1504
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/data-list/data-list.tokens.d.ts +6 -0
- package/components/data-list/option/option-content.d.ts +8 -0
- package/components/textfield/index.d.ts +1 -0
- package/components/textfield/select-like.directive.d.ts +3 -0
- package/components/textfield/textfield-accessor.d.ts +6 -0
- package/components/textfield/textfield-auxiliary.d.ts +1 -1
- package/components/textfield/textfield.component.d.ts +13 -11
- package/components/textfield/textfield.directive.d.ts +4 -1
- package/directives/dropdown/dropdown-open.directive.d.ts +1 -0
- package/directives/index.d.ts +1 -0
- package/directives/items-handlers/index.d.ts +2 -0
- package/directives/items-handlers/items-handlers.directive.d.ts +18 -0
- package/directives/items-handlers/items-handlers.tokens.d.ts +13 -0
- package/esm2022/components/data-list/data-list.component.mjs +20 -5
- package/esm2022/components/data-list/data-list.tokens.mjs +1 -1
- package/esm2022/components/data-list/option/option-content.mjs +26 -1
- package/esm2022/components/root/root.component.mjs +2 -2
- package/esm2022/components/textfield/index.mjs +2 -1
- package/esm2022/components/textfield/select-like.directive.mjs +29 -4
- package/esm2022/components/textfield/select.directive.mjs +6 -6
- package/esm2022/components/textfield/textfield-accessor.mjs +6 -0
- package/esm2022/components/textfield/textfield-auxiliary.mjs +1 -1
- package/esm2022/components/textfield/textfield.component.mjs +29 -27
- package/esm2022/components/textfield/textfield.directive.mjs +7 -3
- package/esm2022/directives/appearance/appearance.directive.mjs +2 -2
- package/esm2022/directives/dropdown/dropdown-open.directive.mjs +6 -1
- package/esm2022/directives/dropdown/dropdown.component.mjs +4 -4
- package/esm2022/directives/dropdown/dropdown.directive.mjs +7 -2
- package/esm2022/directives/index.mjs +2 -1
- package/esm2022/directives/items-handlers/index.mjs +3 -0
- package/esm2022/directives/items-handlers/items-handlers.directive.mjs +63 -0
- package/esm2022/directives/items-handlers/items-handlers.tokens.mjs +26 -0
- package/esm2022/directives/items-handlers/taiga-ui-core-directives-items-handlers.mjs +5 -0
- package/fesm2022/taiga-ui-core-components-data-list.mjs +42 -6
- package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-root.mjs +1 -1
- package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-textfield.mjs +68 -37
- package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-appearance.mjs +2 -2
- package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-dropdown.mjs +13 -3
- package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +91 -0
- package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -0
- package/fesm2022/taiga-ui-core-directives.mjs +1 -0
- package/fesm2022/taiga-ui-core-directives.mjs.map +1 -1
- package/package.json +69 -63
- package/styles/components/appearance.less +1 -1
- package/styles/components/textfield.less +82 -24
- package/styles/theme/appearance/table.less +1 -1
- package/styles/theme/appearance/textfield.less +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.33.0-canary.a0e1504",
|
|
4
4
|
"description": "Core library for creating Angular components and applications using Taiga UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -43,18 +43,18 @@
|
|
|
43
43
|
"esm": "./esm2022/components/taiga-ui-core-components.mjs",
|
|
44
44
|
"default": "./fesm2022/taiga-ui-core-components.mjs"
|
|
45
45
|
},
|
|
46
|
-
"./pipes": {
|
|
47
|
-
"types": "./pipes/index.d.ts",
|
|
48
|
-
"esm2022": "./esm2022/pipes/taiga-ui-core-pipes.mjs",
|
|
49
|
-
"esm": "./esm2022/pipes/taiga-ui-core-pipes.mjs",
|
|
50
|
-
"default": "./fesm2022/taiga-ui-core-pipes.mjs"
|
|
51
|
-
},
|
|
52
46
|
"./directives": {
|
|
53
47
|
"types": "./directives/index.d.ts",
|
|
54
48
|
"esm2022": "./esm2022/directives/taiga-ui-core-directives.mjs",
|
|
55
49
|
"esm": "./esm2022/directives/taiga-ui-core-directives.mjs",
|
|
56
50
|
"default": "./fesm2022/taiga-ui-core-directives.mjs"
|
|
57
51
|
},
|
|
52
|
+
"./pipes": {
|
|
53
|
+
"types": "./pipes/index.d.ts",
|
|
54
|
+
"esm2022": "./esm2022/pipes/taiga-ui-core-pipes.mjs",
|
|
55
|
+
"esm": "./esm2022/pipes/taiga-ui-core-pipes.mjs",
|
|
56
|
+
"default": "./fesm2022/taiga-ui-core-pipes.mjs"
|
|
57
|
+
},
|
|
58
58
|
"./services": {
|
|
59
59
|
"types": "./services/index.d.ts",
|
|
60
60
|
"esm2022": "./esm2022/services/taiga-ui-core-services.mjs",
|
|
@@ -181,60 +181,6 @@
|
|
|
181
181
|
"esm": "./esm2022/components/textfield/taiga-ui-core-components-textfield.mjs",
|
|
182
182
|
"default": "./fesm2022/taiga-ui-core-components-textfield.mjs"
|
|
183
183
|
},
|
|
184
|
-
"./pipes/auto-color": {
|
|
185
|
-
"types": "./pipes/auto-color/index.d.ts",
|
|
186
|
-
"esm2022": "./esm2022/pipes/auto-color/taiga-ui-core-pipes-auto-color.mjs",
|
|
187
|
-
"esm": "./esm2022/pipes/auto-color/taiga-ui-core-pipes-auto-color.mjs",
|
|
188
|
-
"default": "./fesm2022/taiga-ui-core-pipes-auto-color.mjs"
|
|
189
|
-
},
|
|
190
|
-
"./pipes/calendar-sheet": {
|
|
191
|
-
"types": "./pipes/calendar-sheet/index.d.ts",
|
|
192
|
-
"esm2022": "./esm2022/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.mjs",
|
|
193
|
-
"esm": "./esm2022/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.mjs",
|
|
194
|
-
"default": "./fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs"
|
|
195
|
-
},
|
|
196
|
-
"./pipes/fallback-src": {
|
|
197
|
-
"types": "./pipes/fallback-src/index.d.ts",
|
|
198
|
-
"esm2022": "./esm2022/pipes/fallback-src/taiga-ui-core-pipes-fallback-src.mjs",
|
|
199
|
-
"esm": "./esm2022/pipes/fallback-src/taiga-ui-core-pipes-fallback-src.mjs",
|
|
200
|
-
"default": "./fesm2022/taiga-ui-core-pipes-fallback-src.mjs"
|
|
201
|
-
},
|
|
202
|
-
"./pipes/flag": {
|
|
203
|
-
"types": "./pipes/flag/index.d.ts",
|
|
204
|
-
"esm2022": "./esm2022/pipes/flag/taiga-ui-core-pipes-flag.mjs",
|
|
205
|
-
"esm": "./esm2022/pipes/flag/taiga-ui-core-pipes-flag.mjs",
|
|
206
|
-
"default": "./fesm2022/taiga-ui-core-pipes-flag.mjs"
|
|
207
|
-
},
|
|
208
|
-
"./pipes/format-date": {
|
|
209
|
-
"types": "./pipes/format-date/index.d.ts",
|
|
210
|
-
"esm2022": "./esm2022/pipes/format-date/taiga-ui-core-pipes-format-date.mjs",
|
|
211
|
-
"esm": "./esm2022/pipes/format-date/taiga-ui-core-pipes-format-date.mjs",
|
|
212
|
-
"default": "./fesm2022/taiga-ui-core-pipes-format-date.mjs"
|
|
213
|
-
},
|
|
214
|
-
"./pipes/format-number": {
|
|
215
|
-
"types": "./pipes/format-number/index.d.ts",
|
|
216
|
-
"esm2022": "./esm2022/pipes/format-number/taiga-ui-core-pipes-format-number.mjs",
|
|
217
|
-
"esm": "./esm2022/pipes/format-number/taiga-ui-core-pipes-format-number.mjs",
|
|
218
|
-
"default": "./fesm2022/taiga-ui-core-pipes-format-number.mjs"
|
|
219
|
-
},
|
|
220
|
-
"./pipes/initials": {
|
|
221
|
-
"types": "./pipes/initials/index.d.ts",
|
|
222
|
-
"esm2022": "./esm2022/pipes/initials/taiga-ui-core-pipes-initials.mjs",
|
|
223
|
-
"esm": "./esm2022/pipes/initials/taiga-ui-core-pipes-initials.mjs",
|
|
224
|
-
"default": "./fesm2022/taiga-ui-core-pipes-initials.mjs"
|
|
225
|
-
},
|
|
226
|
-
"./pipes/month": {
|
|
227
|
-
"types": "./pipes/month/index.d.ts",
|
|
228
|
-
"esm2022": "./esm2022/pipes/month/taiga-ui-core-pipes-month.mjs",
|
|
229
|
-
"esm": "./esm2022/pipes/month/taiga-ui-core-pipes-month.mjs",
|
|
230
|
-
"default": "./fesm2022/taiga-ui-core-pipes-month.mjs"
|
|
231
|
-
},
|
|
232
|
-
"./pipes/order-week-days": {
|
|
233
|
-
"types": "./pipes/order-week-days/index.d.ts",
|
|
234
|
-
"esm2022": "./esm2022/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.mjs",
|
|
235
|
-
"esm": "./esm2022/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.mjs",
|
|
236
|
-
"default": "./fesm2022/taiga-ui-core-pipes-order-week-days.mjs"
|
|
237
|
-
},
|
|
238
184
|
"./directives/appearance": {
|
|
239
185
|
"types": "./directives/appearance/index.d.ts",
|
|
240
186
|
"esm2022": "./esm2022/directives/appearance/taiga-ui-core-directives-appearance.mjs",
|
|
@@ -271,6 +217,12 @@
|
|
|
271
217
|
"esm": "./esm2022/directives/icons/taiga-ui-core-directives-icons.mjs",
|
|
272
218
|
"default": "./fesm2022/taiga-ui-core-directives-icons.mjs"
|
|
273
219
|
},
|
|
220
|
+
"./directives/items-handlers": {
|
|
221
|
+
"types": "./directives/items-handlers/index.d.ts",
|
|
222
|
+
"esm2022": "./esm2022/directives/items-handlers/taiga-ui-core-directives-items-handlers.mjs",
|
|
223
|
+
"esm": "./esm2022/directives/items-handlers/taiga-ui-core-directives-items-handlers.mjs",
|
|
224
|
+
"default": "./fesm2022/taiga-ui-core-directives-items-handlers.mjs"
|
|
225
|
+
},
|
|
274
226
|
"./directives/number-format": {
|
|
275
227
|
"types": "./directives/number-format/index.d.ts",
|
|
276
228
|
"esm2022": "./esm2022/directives/number-format/taiga-ui-core-directives-number-format.mjs",
|
|
@@ -295,6 +247,60 @@
|
|
|
295
247
|
"esm": "./esm2022/directives/title/taiga-ui-core-directives-title.mjs",
|
|
296
248
|
"default": "./fesm2022/taiga-ui-core-directives-title.mjs"
|
|
297
249
|
},
|
|
250
|
+
"./pipes/auto-color": {
|
|
251
|
+
"types": "./pipes/auto-color/index.d.ts",
|
|
252
|
+
"esm2022": "./esm2022/pipes/auto-color/taiga-ui-core-pipes-auto-color.mjs",
|
|
253
|
+
"esm": "./esm2022/pipes/auto-color/taiga-ui-core-pipes-auto-color.mjs",
|
|
254
|
+
"default": "./fesm2022/taiga-ui-core-pipes-auto-color.mjs"
|
|
255
|
+
},
|
|
256
|
+
"./pipes/calendar-sheet": {
|
|
257
|
+
"types": "./pipes/calendar-sheet/index.d.ts",
|
|
258
|
+
"esm2022": "./esm2022/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.mjs",
|
|
259
|
+
"esm": "./esm2022/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.mjs",
|
|
260
|
+
"default": "./fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs"
|
|
261
|
+
},
|
|
262
|
+
"./pipes/fallback-src": {
|
|
263
|
+
"types": "./pipes/fallback-src/index.d.ts",
|
|
264
|
+
"esm2022": "./esm2022/pipes/fallback-src/taiga-ui-core-pipes-fallback-src.mjs",
|
|
265
|
+
"esm": "./esm2022/pipes/fallback-src/taiga-ui-core-pipes-fallback-src.mjs",
|
|
266
|
+
"default": "./fesm2022/taiga-ui-core-pipes-fallback-src.mjs"
|
|
267
|
+
},
|
|
268
|
+
"./pipes/flag": {
|
|
269
|
+
"types": "./pipes/flag/index.d.ts",
|
|
270
|
+
"esm2022": "./esm2022/pipes/flag/taiga-ui-core-pipes-flag.mjs",
|
|
271
|
+
"esm": "./esm2022/pipes/flag/taiga-ui-core-pipes-flag.mjs",
|
|
272
|
+
"default": "./fesm2022/taiga-ui-core-pipes-flag.mjs"
|
|
273
|
+
},
|
|
274
|
+
"./pipes/format-date": {
|
|
275
|
+
"types": "./pipes/format-date/index.d.ts",
|
|
276
|
+
"esm2022": "./esm2022/pipes/format-date/taiga-ui-core-pipes-format-date.mjs",
|
|
277
|
+
"esm": "./esm2022/pipes/format-date/taiga-ui-core-pipes-format-date.mjs",
|
|
278
|
+
"default": "./fesm2022/taiga-ui-core-pipes-format-date.mjs"
|
|
279
|
+
},
|
|
280
|
+
"./pipes/format-number": {
|
|
281
|
+
"types": "./pipes/format-number/index.d.ts",
|
|
282
|
+
"esm2022": "./esm2022/pipes/format-number/taiga-ui-core-pipes-format-number.mjs",
|
|
283
|
+
"esm": "./esm2022/pipes/format-number/taiga-ui-core-pipes-format-number.mjs",
|
|
284
|
+
"default": "./fesm2022/taiga-ui-core-pipes-format-number.mjs"
|
|
285
|
+
},
|
|
286
|
+
"./pipes/initials": {
|
|
287
|
+
"types": "./pipes/initials/index.d.ts",
|
|
288
|
+
"esm2022": "./esm2022/pipes/initials/taiga-ui-core-pipes-initials.mjs",
|
|
289
|
+
"esm": "./esm2022/pipes/initials/taiga-ui-core-pipes-initials.mjs",
|
|
290
|
+
"default": "./fesm2022/taiga-ui-core-pipes-initials.mjs"
|
|
291
|
+
},
|
|
292
|
+
"./pipes/month": {
|
|
293
|
+
"types": "./pipes/month/index.d.ts",
|
|
294
|
+
"esm2022": "./esm2022/pipes/month/taiga-ui-core-pipes-month.mjs",
|
|
295
|
+
"esm": "./esm2022/pipes/month/taiga-ui-core-pipes-month.mjs",
|
|
296
|
+
"default": "./fesm2022/taiga-ui-core-pipes-month.mjs"
|
|
297
|
+
},
|
|
298
|
+
"./pipes/order-week-days": {
|
|
299
|
+
"types": "./pipes/order-week-days/index.d.ts",
|
|
300
|
+
"esm2022": "./esm2022/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.mjs",
|
|
301
|
+
"esm": "./esm2022/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.mjs",
|
|
302
|
+
"default": "./fesm2022/taiga-ui-core-pipes-order-week-days.mjs"
|
|
303
|
+
},
|
|
298
304
|
"./utils/dom": {
|
|
299
305
|
"types": "./utils/dom/index.d.ts",
|
|
300
306
|
"esm2022": "./esm2022/utils/dom/taiga-ui-core-utils-dom.mjs",
|
|
@@ -323,9 +329,9 @@
|
|
|
323
329
|
"@angular/router": ">=16.0.0",
|
|
324
330
|
"@ng-web-apis/common": "^4.12.0",
|
|
325
331
|
"@ng-web-apis/mutation-observer": "^4.12.0",
|
|
326
|
-
"@taiga-ui/cdk": "^4.
|
|
332
|
+
"@taiga-ui/cdk": "^4.33.0",
|
|
327
333
|
"@taiga-ui/event-plugins": "^4.5.1",
|
|
328
|
-
"@taiga-ui/i18n": "^4.
|
|
334
|
+
"@taiga-ui/i18n": "^4.33.0",
|
|
329
335
|
"@taiga-ui/polymorpheus": "^4.9.0",
|
|
330
336
|
"rxjs": ">=7.0.0"
|
|
331
337
|
},
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
appearance: none;
|
|
27
27
|
outline: 0.125rem solid transparent;
|
|
28
28
|
outline-offset: -0.125rem;
|
|
29
|
-
transition-property: color, background-color, opacity, box-shadow, border, border-radius, filter;
|
|
29
|
+
transition-property: color, background-color, opacity, box-shadow, border-color, border-radius, filter;
|
|
30
30
|
|
|
31
31
|
&.tui-appearance-initializing {
|
|
32
32
|
transition: none !important;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@import '@taiga-ui/core/styles/taiga-ui-local.less';
|
|
2
2
|
|
|
3
3
|
tui-textfield {
|
|
4
|
+
.scrollbar-hidden();
|
|
4
5
|
.transition(color);
|
|
5
6
|
|
|
6
7
|
--t-height: var(--tui-height-l);
|
|
@@ -8,16 +9,16 @@ tui-textfield {
|
|
|
8
9
|
|
|
9
10
|
position: relative;
|
|
10
11
|
display: flex;
|
|
12
|
+
flex-wrap: wrap;
|
|
11
13
|
align-items: center;
|
|
12
|
-
pointer-events: none;
|
|
13
14
|
cursor: pointer;
|
|
14
|
-
block-size: var(--t-height);
|
|
15
|
+
min-block-size: var(--t-height);
|
|
15
16
|
color: var(--tui-text-tertiary);
|
|
16
17
|
padding: 0 var(--t-padding);
|
|
17
18
|
border-radius: var(--tui-radius-l);
|
|
18
|
-
font: var(--tui-font-text-m);
|
|
19
|
+
font: var(--tui-font-text-ui-m);
|
|
19
20
|
box-sizing: border-box;
|
|
20
|
-
gap: 0.25rem;
|
|
21
|
+
gap: 0 0.25rem;
|
|
21
22
|
|
|
22
23
|
&[style*='--t-icon-start:'] {
|
|
23
24
|
--t-left: 2.25rem;
|
|
@@ -27,13 +28,40 @@ tui-textfield {
|
|
|
27
28
|
--t-right: 2.25rem;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
&::-webkit-resizer {
|
|
32
|
+
border: 0.25rem solid transparent;
|
|
33
|
+
inline-size: 0.5rem;
|
|
34
|
+
block-size: 0.5rem;
|
|
35
|
+
box-sizing: content-box;
|
|
36
|
+
color: var(--tui-text-tertiary);
|
|
37
|
+
background: linear-gradient(
|
|
38
|
+
-45deg,
|
|
39
|
+
transparent,
|
|
40
|
+
transparent 0.125rem,
|
|
41
|
+
currentColor 0.125rem,
|
|
42
|
+
currentColor 0.1875rem,
|
|
43
|
+
transparent 0.1875rem,
|
|
44
|
+
transparent 0.25rem,
|
|
45
|
+
currentColor 0.25rem,
|
|
46
|
+
currentColor 0.3125rem,
|
|
47
|
+
transparent 0.35rem
|
|
48
|
+
);
|
|
49
|
+
background-clip: content-box;
|
|
50
|
+
}
|
|
33
51
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
52
|
+
label,
|
|
53
|
+
.t-content,
|
|
54
|
+
.t-template {
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
input,
|
|
59
|
+
select,
|
|
60
|
+
textarea {
|
|
61
|
+
font: var(--tui-font-text-ui-m);
|
|
62
|
+
resize: none;
|
|
63
|
+
padding-block-start: 1.125rem;
|
|
64
|
+
padding-block-end: 1.125rem;
|
|
37
65
|
}
|
|
38
66
|
|
|
39
67
|
&[data-size='s'] {
|
|
@@ -42,7 +70,7 @@ tui-textfield {
|
|
|
42
70
|
|
|
43
71
|
border-radius: var(--tui-radius-m);
|
|
44
72
|
gap: 0;
|
|
45
|
-
font: var(--tui-font-text-s);
|
|
73
|
+
font: var(--tui-font-text-ui-s);
|
|
46
74
|
|
|
47
75
|
&[style*='--t-icon-start:'] {
|
|
48
76
|
--t-left: 1.25rem;
|
|
@@ -63,8 +91,11 @@ tui-textfield {
|
|
|
63
91
|
}
|
|
64
92
|
|
|
65
93
|
input,
|
|
66
|
-
select
|
|
67
|
-
|
|
94
|
+
select,
|
|
95
|
+
textarea {
|
|
96
|
+
font: var(--tui-font-text-ui-s);
|
|
97
|
+
padding-block-start: 0.5rem;
|
|
98
|
+
padding-block-end: 0.5rem;
|
|
68
99
|
}
|
|
69
100
|
|
|
70
101
|
.t-content {
|
|
@@ -77,7 +108,7 @@ tui-textfield {
|
|
|
77
108
|
--t-padding: var(--tui-padding-m);
|
|
78
109
|
|
|
79
110
|
border-radius: var(--tui-radius-m);
|
|
80
|
-
font: var(--tui-font-text-s);
|
|
111
|
+
font: var(--tui-font-text-ui-s);
|
|
81
112
|
|
|
82
113
|
&[style*='--t-icon-start:'] {
|
|
83
114
|
--t-left: 1.75rem;
|
|
@@ -96,8 +127,11 @@ tui-textfield {
|
|
|
96
127
|
}
|
|
97
128
|
|
|
98
129
|
input,
|
|
99
|
-
select
|
|
100
|
-
|
|
130
|
+
select,
|
|
131
|
+
textarea {
|
|
132
|
+
font: var(--tui-font-text-ui-s);
|
|
133
|
+
padding-block-start: 0.875rem;
|
|
134
|
+
padding-block-end: 0.875rem;
|
|
101
135
|
}
|
|
102
136
|
|
|
103
137
|
.t-content {
|
|
@@ -108,6 +142,7 @@ tui-textfield {
|
|
|
108
142
|
/*
|
|
109
143
|
TODO: refactor to the following way after Chrome 105+ & Safari 15.4+
|
|
110
144
|
&:hover:has(input:not(:read-only)),
|
|
145
|
+
&:hover:has(textarea:not(:read-only)),
|
|
111
146
|
&:hover:has(select:not([data-mode='readonly'])) {
|
|
112
147
|
color: var(--tui-text-secondary);
|
|
113
148
|
}
|
|
@@ -116,6 +151,7 @@ tui-textfield {
|
|
|
116
151
|
color: var(--tui-text-secondary);
|
|
117
152
|
|
|
118
153
|
&:has(input:read-only),
|
|
154
|
+
&:has(textarea:read-only),
|
|
119
155
|
&:has(select[data-mode~='readonly']) {
|
|
120
156
|
color: var(--tui-text-tertiary);
|
|
121
157
|
}
|
|
@@ -142,8 +178,10 @@ tui-textfield {
|
|
|
142
178
|
&:has(label:not(:empty)) {
|
|
143
179
|
.t-template,
|
|
144
180
|
input:not([type='range']),
|
|
145
|
-
select:defined
|
|
146
|
-
|
|
181
|
+
select:defined,
|
|
182
|
+
textarea:defined {
|
|
183
|
+
padding-block-start: calc(var(--t-height) / 3);
|
|
184
|
+
padding-block-end: 0;
|
|
147
185
|
|
|
148
186
|
&::placeholder,
|
|
149
187
|
&._empty {
|
|
@@ -156,8 +194,10 @@ tui-textfield {
|
|
|
156
194
|
&._with-label {
|
|
157
195
|
.t-template,
|
|
158
196
|
input:not([type='range']),
|
|
159
|
-
select:defined
|
|
197
|
+
select:defined,
|
|
198
|
+
textarea:defined {
|
|
160
199
|
padding-top: calc(var(--t-height) / 3);
|
|
200
|
+
padding-block-end: 0;
|
|
161
201
|
|
|
162
202
|
&::placeholder,
|
|
163
203
|
&._empty {
|
|
@@ -168,13 +208,15 @@ tui-textfield {
|
|
|
168
208
|
|
|
169
209
|
.t-template,
|
|
170
210
|
input:defined,
|
|
171
|
-
select:defined
|
|
211
|
+
select:defined,
|
|
212
|
+
textarea:defined {
|
|
172
213
|
.fullsize();
|
|
173
214
|
|
|
174
215
|
appearance: none;
|
|
175
216
|
box-sizing: border-box;
|
|
176
217
|
border-radius: inherit;
|
|
177
|
-
border:
|
|
218
|
+
border-width: 0;
|
|
219
|
+
overscroll-behavior: none;
|
|
178
220
|
// StackBlitz changes "0rem" to "0" breaking calc
|
|
179
221
|
padding-inline-start: calc(var(--t-left, ~'0rem') + var(--t-padding));
|
|
180
222
|
padding-inline-end: calc(var(--t-right, ~'0rem') + var(--t-side) + var(--t-padding));
|
|
@@ -187,12 +229,14 @@ tui-textfield {
|
|
|
187
229
|
}
|
|
188
230
|
|
|
189
231
|
&._with-template input:not([type='range']),
|
|
190
|
-
&._with-template select
|
|
232
|
+
&._with-template select,
|
|
233
|
+
&._with-template textarea {
|
|
191
234
|
color: transparent !important;
|
|
192
235
|
}
|
|
193
236
|
|
|
194
237
|
input:not([type='range']),
|
|
195
|
-
select:defined
|
|
238
|
+
select:defined,
|
|
239
|
+
textarea:defined {
|
|
196
240
|
pointer-events: auto;
|
|
197
241
|
background: transparent;
|
|
198
242
|
|
|
@@ -251,18 +295,22 @@ tui-textfield {
|
|
|
251
295
|
});
|
|
252
296
|
}
|
|
253
297
|
|
|
254
|
-
|
|
298
|
+
// Increasing specificity to override all other styles
|
|
299
|
+
[tuiLabel][tuiLabel][tuiLabel] {
|
|
255
300
|
.transition(all);
|
|
256
301
|
.text-overflow();
|
|
257
302
|
|
|
258
303
|
position: relative;
|
|
259
304
|
display: block;
|
|
260
305
|
flex: 1;
|
|
306
|
+
align-self: flex-start;
|
|
261
307
|
font-size: inherit;
|
|
308
|
+
line-height: var(--t-height);
|
|
262
309
|
}
|
|
263
310
|
|
|
264
311
|
label:defined,
|
|
265
312
|
input:defined::placeholder,
|
|
313
|
+
textarea:defined::placeholder,
|
|
266
314
|
select:defined._empty {
|
|
267
315
|
color: var(--tui-text-secondary);
|
|
268
316
|
}
|
|
@@ -271,6 +319,11 @@ tui-textfield {
|
|
|
271
319
|
cursor: pointer;
|
|
272
320
|
}
|
|
273
321
|
|
|
322
|
+
select option:not(:disabled) {
|
|
323
|
+
// In Windows OS native options inherit color of host <select>
|
|
324
|
+
color: var(--tui-text-primary);
|
|
325
|
+
}
|
|
326
|
+
|
|
274
327
|
button,
|
|
275
328
|
a {
|
|
276
329
|
pointer-events: auto;
|
|
@@ -278,6 +331,7 @@ tui-textfield {
|
|
|
278
331
|
|
|
279
332
|
.t-content {
|
|
280
333
|
display: flex;
|
|
334
|
+
block-size: var(--t-height);
|
|
281
335
|
align-items: center;
|
|
282
336
|
gap: inherit;
|
|
283
337
|
margin-inline-start: auto;
|
|
@@ -289,6 +343,10 @@ tui-textfield {
|
|
|
289
343
|
}
|
|
290
344
|
}
|
|
291
345
|
|
|
346
|
+
textarea ~ .t-content {
|
|
347
|
+
min-inline-size: 0.5rem;
|
|
348
|
+
}
|
|
349
|
+
|
|
292
350
|
.t-clear {
|
|
293
351
|
z-index: 1;
|
|
294
352
|
display: none;
|
|
@@ -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
|
-
|
|
20
|
+
border-bottom: calc(var(--t-row-height) - var(--t-height)) solid transparent;
|
|
21
21
|
|
|
22
22
|
&:not(._empty) {
|
|
23
23
|
color: var(--tui-text-primary);
|