@taiga-ui/core 4.7.0 → 4.8.1-canary.0ecc12f
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.component.d.ts +2 -1
- package/components/data-list/data-list.tokens.d.ts +3 -4
- package/components/dialog/dialog.component.d.ts +14 -4
- package/components/loader/loader.component.d.ts +2 -8
- package/components/textfield/textfield.component.d.ts +6 -7
- package/directives/appearance/appearance.directive.d.ts +3 -1
- package/directives/appearance/appearance.options.d.ts +2 -1
- package/directives/dropdown/dropdown-context.directive.d.ts +1 -1
- package/directives/dropdown/dropdown.providers.d.ts +2 -3
- package/esm2022/components/calendar/calendar-sheet.component.mjs +3 -3
- package/esm2022/components/calendar/calendar-year.component.mjs +3 -3
- package/esm2022/components/data-list/data-list.component.mjs +10 -5
- package/esm2022/components/data-list/data-list.tokens.mjs +5 -6
- package/esm2022/components/dialog/dialog.component.mjs +13 -19
- package/esm2022/components/link/link.directive.mjs +2 -2
- package/esm2022/components/loader/loader.component.mjs +10 -27
- package/esm2022/components/root/root.component.mjs +1 -1
- package/esm2022/components/scrollbar/scrollbar.directive.mjs +7 -2
- package/esm2022/components/scrollbar/scrollbar.service.mjs +3 -3
- package/esm2022/components/textfield/textfield-dropdown.directive.mjs +2 -2
- package/esm2022/components/textfield/textfield.component.mjs +15 -17
- package/esm2022/components/textfield/textfield.directive.mjs +9 -3
- package/esm2022/directives/appearance/appearance.bindings.mjs +1 -1
- package/esm2022/directives/appearance/appearance.directive.mjs +15 -6
- package/esm2022/directives/appearance/appearance.options.mjs +1 -1
- package/esm2022/directives/dropdown/dropdown-context.directive.mjs +9 -9
- package/esm2022/directives/dropdown/dropdown-open.directive.mjs +6 -5
- package/esm2022/directives/dropdown/dropdown.component.mjs +5 -5
- package/esm2022/directives/dropdown/dropdown.providers.mjs +3 -4
- package/esm2022/pipes/flag/flag.pipe.mjs +1 -1
- package/esm2022/tokens/dark-mode.mjs +30 -32
- package/fesm2022/taiga-ui-core-components-calendar.mjs +4 -4
- package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-data-list.mjs +13 -9
- package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-dialog.mjs +11 -16
- package/fesm2022/taiga-ui-core-components-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-link.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-loader.mjs +9 -26
- package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-root.mjs +1 -1
- package/fesm2022/taiga-ui-core-components-scrollbar.mjs +8 -3
- package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-textfield.mjs +23 -20
- package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-appearance.mjs +14 -5
- package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-dropdown.mjs +19 -18
- package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-pipes-flag.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-tokens.mjs +28 -30
- package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
- package/package.json +324 -324
- package/pipes/flag/flag.pipe.d.ts +6 -3
- package/styles/components/appearance.less +4 -0
- package/styles/components/link.less +1 -0
- package/styles/components/textfield.less +20 -26
- package/styles/mixins/date-picker.less +4 -4
- package/styles/mixins/mixins.less +17 -0
- package/styles/mixins/mixins.scss +17 -0
- package/styles/theme/appearance/textfield.less +0 -5
- package/tokens/dark-mode.d.ts +3 -3
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { PipeTransform } from '@angular/core';
|
|
2
|
+
import type { TuiLooseUnion } from '@taiga-ui/cdk/types';
|
|
2
3
|
import type { TuiCountryIsoCode } from '@taiga-ui/i18n/types';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
type IsoCode = TuiLooseUnion<TuiCountryIsoCode>;
|
|
4
6
|
export declare class TuiFlagPipe implements PipeTransform {
|
|
5
7
|
private readonly staticPath;
|
|
6
|
-
transform(countryIsoCode:
|
|
7
|
-
transform(countryIsoCode:
|
|
8
|
-
transform(countryIsoCode?:
|
|
8
|
+
transform(countryIsoCode: IsoCode): string;
|
|
9
|
+
transform(countryIsoCode: IsoCode | undefined): string | null;
|
|
10
|
+
transform(countryIsoCode?: IsoCode | null): string | null;
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiFlagPipe, never>;
|
|
10
12
|
static ɵpipe: i0.ɵɵPipeDeclaration<TuiFlagPipe, "tuiFlag", true>;
|
|
11
13
|
}
|
|
14
|
+
export {};
|
|
@@ -4,6 +4,7 @@ tui-textfield {
|
|
|
4
4
|
.transition(color);
|
|
5
5
|
|
|
6
6
|
--t-height: var(--tui-height-l);
|
|
7
|
+
--t-padding: var(--tui-padding-l);
|
|
7
8
|
|
|
8
9
|
position: relative;
|
|
9
10
|
display: flex;
|
|
@@ -12,7 +13,7 @@ tui-textfield {
|
|
|
12
13
|
cursor: pointer;
|
|
13
14
|
block-size: var(--t-height);
|
|
14
15
|
color: var(--tui-text-tertiary);
|
|
15
|
-
padding: 0 var(--
|
|
16
|
+
padding: 0 var(--t-padding);
|
|
16
17
|
border-radius: var(--tui-radius-l);
|
|
17
18
|
font: var(--tui-font-text-m);
|
|
18
19
|
box-sizing: border-box;
|
|
@@ -36,8 +37,8 @@ tui-textfield {
|
|
|
36
37
|
|
|
37
38
|
&[data-size='s'] {
|
|
38
39
|
--t-height: var(--tui-height-s);
|
|
40
|
+
--t-padding: var(--tui-padding-s);
|
|
39
41
|
|
|
40
|
-
padding: 0 var(--tui-padding-s);
|
|
41
42
|
border-radius: var(--tui-radius-m);
|
|
42
43
|
font: var(--tui-font-text-s);
|
|
43
44
|
|
|
@@ -72,8 +73,8 @@ tui-textfield {
|
|
|
72
73
|
|
|
73
74
|
&[data-size='m'] {
|
|
74
75
|
--t-height: var(--tui-height-m);
|
|
76
|
+
--t-padding: var(--tui-padding-m);
|
|
75
77
|
|
|
76
|
-
padding: 0 var(--tui-padding-m);
|
|
77
78
|
border-radius: var(--tui-radius-m);
|
|
78
79
|
font: var(--tui-font-text-s);
|
|
79
80
|
|
|
@@ -139,15 +140,13 @@ tui-textfield {
|
|
|
139
140
|
|
|
140
141
|
&:has(label:not(:empty)) {
|
|
141
142
|
.t-template,
|
|
142
|
-
input,
|
|
143
|
-
select {
|
|
143
|
+
input:defined,
|
|
144
|
+
select:defined {
|
|
144
145
|
padding-top: calc(var(--t-height) / 3);
|
|
145
146
|
|
|
146
|
-
|
|
147
|
+
&::placeholder,
|
|
147
148
|
&._empty {
|
|
148
|
-
|
|
149
|
-
color: transparent !important;
|
|
150
|
-
-webkit-text-fill-color: transparent !important;
|
|
149
|
+
color: transparent;
|
|
151
150
|
}
|
|
152
151
|
}
|
|
153
152
|
}
|
|
@@ -155,15 +154,13 @@ tui-textfield {
|
|
|
155
154
|
// TODO: Fallback until Safari 15.4
|
|
156
155
|
&._with-label {
|
|
157
156
|
.t-template,
|
|
158
|
-
input,
|
|
159
|
-
select {
|
|
157
|
+
input:defined,
|
|
158
|
+
select:defined {
|
|
160
159
|
padding-top: calc(var(--t-height) / 3);
|
|
161
160
|
|
|
162
|
-
|
|
161
|
+
&::placeholder,
|
|
163
162
|
&._empty {
|
|
164
|
-
|
|
165
|
-
color: transparent !important;
|
|
166
|
-
-webkit-text-fill-color: transparent !important;
|
|
163
|
+
color: transparent;
|
|
167
164
|
}
|
|
168
165
|
}
|
|
169
166
|
}
|
|
@@ -171,15 +168,15 @@ tui-textfield {
|
|
|
171
168
|
.t-template,
|
|
172
169
|
input:defined,
|
|
173
170
|
select:defined {
|
|
174
|
-
.fullsize(
|
|
171
|
+
.fullsize();
|
|
175
172
|
|
|
176
173
|
appearance: none;
|
|
177
174
|
box-sizing: border-box;
|
|
178
|
-
border: none;
|
|
179
|
-
border-inline-start: var(--t-left, 0) solid transparent !important;
|
|
180
|
-
border-inline-end: calc(var(--t-right, var(--t-0, 0rem)) + var(--t-side)) solid transparent !important;
|
|
181
175
|
border-radius: inherit;
|
|
182
176
|
padding: inherit;
|
|
177
|
+
border: none;
|
|
178
|
+
text-indent: var(--t-left, 0);
|
|
179
|
+
padding-inline-end: calc(var(--t-right, var(--t-0, 0rem)) + var(--t-side) + var(--t-padding));
|
|
183
180
|
}
|
|
184
181
|
|
|
185
182
|
.t-template {
|
|
@@ -194,8 +191,7 @@ tui-textfield {
|
|
|
194
191
|
input:defined,
|
|
195
192
|
select:defined {
|
|
196
193
|
pointer-events: auto;
|
|
197
|
-
background: transparent
|
|
198
|
-
background-clip: border-box, padding-box;
|
|
194
|
+
background: transparent;
|
|
199
195
|
|
|
200
196
|
&:read-only ~ .t-filler {
|
|
201
197
|
display: none;
|
|
@@ -206,7 +202,7 @@ tui-textfield {
|
|
|
206
202
|
& ~ .t-content {
|
|
207
203
|
opacity: var(--tui-disabled-opacity);
|
|
208
204
|
|
|
209
|
-
tui-icon {
|
|
205
|
+
> tui-icon {
|
|
210
206
|
display: none;
|
|
211
207
|
}
|
|
212
208
|
}
|
|
@@ -233,9 +229,7 @@ tui-textfield {
|
|
|
233
229
|
.appearance-focus({
|
|
234
230
|
&::placeholder,
|
|
235
231
|
&._empty {
|
|
236
|
-
|
|
237
|
-
color: transparent !important;
|
|
238
|
-
-webkit-text-fill-color: var(--tui-text-tertiary) !important;
|
|
232
|
+
color: var(--tui-text-tertiary);
|
|
239
233
|
}
|
|
240
234
|
|
|
241
235
|
& ~ label {
|
|
@@ -286,7 +280,7 @@ tui-textfield {
|
|
|
286
280
|
margin-inline-start: auto;
|
|
287
281
|
isolation: isolate;
|
|
288
282
|
|
|
289
|
-
tui-icon {
|
|
283
|
+
> tui-icon {
|
|
290
284
|
pointer-events: auto;
|
|
291
285
|
}
|
|
292
286
|
}
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
&[data-range]::before {
|
|
61
|
-
background: var(--tui-background-
|
|
61
|
+
background: var(--tui-background-neutral-1);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
:host._picking &[data-range]::before {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&[data-range='middle'] {
|
|
69
|
-
border-color: var(--tui-background-
|
|
69
|
+
border-color: var(--tui-background-neutral-1);
|
|
70
70
|
|
|
71
71
|
:host._picking & {
|
|
72
72
|
border-color: var(--tui-background-neutral-1-hover);
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
&[data-range='start'] {
|
|
87
|
-
border-inline-end-color: var(--tui-background-
|
|
87
|
+
border-inline-end-color: var(--tui-background-neutral-1);
|
|
88
88
|
color: var(--tui-text-primary-on-accent-1);
|
|
89
89
|
|
|
90
90
|
:host._picking & {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
&[data-range='end'] {
|
|
104
|
-
border-inline-start-color: var(--tui-background-
|
|
104
|
+
border-inline-start-color: var(--tui-background-neutral-1);
|
|
105
105
|
color: var(--tui-text-primary-on-accent-1);
|
|
106
106
|
|
|
107
107
|
:host._picking & {
|
|
@@ -129,3 +129,20 @@
|
|
|
129
129
|
overflow: hidden;
|
|
130
130
|
padding: 0;
|
|
131
131
|
}
|
|
132
|
+
|
|
133
|
+
// prevent scrolling to focused element on IOS
|
|
134
|
+
.tui-prevent-ios-scroll() {
|
|
135
|
+
&:focus {
|
|
136
|
+
animation: tuiPreventIOSScroll 0.001s;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@keyframes tuiPreventIOSScroll {
|
|
140
|
+
0% {
|
|
141
|
+
opacity: 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
100% {
|
|
145
|
+
opacity: 1;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -128,3 +128,20 @@
|
|
|
128
128
|
overflow: hidden;
|
|
129
129
|
padding: 0;
|
|
130
130
|
}
|
|
131
|
+
|
|
132
|
+
// prevent scrolling to focused element on IOS
|
|
133
|
+
@mixin tui-prevent-ios-scroll() {
|
|
134
|
+
&:focus {
|
|
135
|
+
animation: tuiPreventIOSScroll 0.001s;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@keyframes tuiPreventIOSScroll {
|
|
139
|
+
0% {
|
|
140
|
+
opacity: 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
100% {
|
|
144
|
+
opacity: 1;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -40,13 +40,8 @@
|
|
|
40
40
|
&:-webkit-autofill {
|
|
41
41
|
-webkit-text-fill-color: var(--tui-text-primary) !important;
|
|
42
42
|
caret-color: var(--tui-text-primary) !important;
|
|
43
|
-
border-color: var(--tui-service-autofill-background) !important;
|
|
44
43
|
box-shadow: 0 0 0 100rem var(--tui-service-autofill-background) inset !important;
|
|
45
44
|
transition: background-color 600000s 0s;
|
|
46
|
-
|
|
47
|
-
&::placeholder {
|
|
48
|
-
-webkit-text-fill-color: var(--tui-text-secondary);
|
|
49
|
-
}
|
|
50
45
|
}
|
|
51
46
|
}
|
|
52
47
|
|
package/tokens/dark-mode.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type WritableSignal } from '@angular/core';
|
|
2
2
|
export declare const TUI_DARK_MODE_DEFAULT_KEY = "tuiDark";
|
|
3
|
-
export declare const TUI_DARK_MODE_KEY: InjectionToken<string>;
|
|
4
|
-
export declare const TUI_DARK_MODE: InjectionToken<WritableSignal<boolean> & {
|
|
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> & {
|
|
5
5
|
reset(): void;
|
|
6
6
|
}>;
|