@taiga-ui/core 5.0.0-canary.fc35565 → 5.0.0-canary.fce290f
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.
|
@@ -33,7 +33,7 @@ class TuiRoot {
|
|
|
33
33
|
return this.doc.fullscreenElement === this.el || !this.child;
|
|
34
34
|
}
|
|
35
35
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiRoot, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiRoot, isStandalone: true, selector: "tui-root", host: { attributes: { "data-tui-version": "5.0.0-canary.
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiRoot, isStandalone: true, selector: "tui-root", host: { attributes: { "data-tui-version": "5.0.0-canary.fce290f" }, listeners: { "touchstart.passive.zoneless": "0", "document:fullscreenchange": "top.set(parent)" }, properties: { "style.--tui-duration.ms": "duration", "style.--tui-scroll-behavior": "reducedMotion ? \"auto\" : \"smooth\"", "class._mobile": "breakpoint() === \"mobile\"" } }, hostDirectives: [{ directive: i1.TuiPlatform }, { directive: i2.TuiVisualViewport }, { directive: i3.TuiFontSize }], ngImport: i0, template: "<div class=\"t-root-content\">\n <ng-content />\n</div>\n@if (top()) {\n @if (scrollbars) {\n <tui-scroll-controls class=\"t-root-scrollbar\" />\n }\n <tui-popups>\n <ng-content select=\"tuiOverContent\" />\n </tui-popups>\n}\n", styles: ["@keyframes tuiPresent{to{opacity:.99999}}@keyframes tuiFade{0%{opacity:0}}@keyframes tuiSlide{0%{transform:var(--tui-from, translateY(100%))}}@keyframes tuiScale{0%{transform:scale(var(--tui-scale, 0))}}@keyframes tuiCollapse{0%{grid-template-rows:0fr}to{grid-template-rows:1fr}}.tui-enter,.tui-leave{animation-duration:var(--tui-duration);animation-timing-function:ease-in-out;pointer-events:none}.tui-leave{animation-direction:reverse}\n", ".tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.tui-zero-scrollbar::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar-thumb{display:none}body,input{margin:0}tui-root{position:relative;display:block;font:var(--tui-font-body-s);color:var(--tui-text-primary);flex:1;border-image:conic-gradient(var(--tui-background-base) 0 0) fill 0/0/0 0 100vh 0;-webkit-tap-highlight-color:transparent}:root{--tui-inline-start: left;--tui-inline-end: right;--tui-inline: 1}[dir=rtl]{--tui-inline-start: right;--tui-inline-end: left;--tui-inline: -1}tui-root>.t-root-scrollbar{position:fixed;z-index:0;inset:0}.t-root-content{position:relative;top:var(--t-root-top);block-size:100%;isolation:isolate}.t-root-content>*{--t-root-top: 0}[tuiDropdownButton][tuiDropdownButton]{display:none}\n"], dependencies: [{ kind: "component", type: TuiPopups, selector: "tui-popups" }, { kind: "component", type: TuiScrollControls, selector: "tui-scroll-controls" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
|
|
37
37
|
}
|
|
38
38
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiRoot, decorators: [{
|
|
39
39
|
type: Component,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/core",
|
|
3
|
-
"version": "5.0.0-canary.
|
|
3
|
+
"version": "5.0.0-canary.fce290f",
|
|
4
4
|
"description": "Core library for creating Angular components and applications using Taiga UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"types": "./classes/index.d.ts",
|
|
31
31
|
"default": "./fesm2022/taiga-ui-core-classes.mjs"
|
|
32
32
|
},
|
|
33
|
-
"./directives": {
|
|
34
|
-
"types": "./directives/index.d.ts",
|
|
35
|
-
"default": "./fesm2022/taiga-ui-core-directives.mjs"
|
|
36
|
-
},
|
|
37
33
|
"./components": {
|
|
38
34
|
"types": "./components/index.d.ts",
|
|
39
35
|
"default": "./fesm2022/taiga-ui-core-components.mjs"
|
|
40
36
|
},
|
|
37
|
+
"./directives": {
|
|
38
|
+
"types": "./directives/index.d.ts",
|
|
39
|
+
"default": "./fesm2022/taiga-ui-core-directives.mjs"
|
|
40
|
+
},
|
|
41
41
|
"./pipes": {
|
|
42
42
|
"types": "./pipes/index.d.ts",
|
|
43
43
|
"default": "./fesm2022/taiga-ui-core-pipes.mjs"
|
|
@@ -62,34 +62,6 @@
|
|
|
62
62
|
"types": "./utils/index.d.ts",
|
|
63
63
|
"default": "./fesm2022/taiga-ui-core-utils.mjs"
|
|
64
64
|
},
|
|
65
|
-
"./directives/appearance": {
|
|
66
|
-
"types": "./directives/appearance/index.d.ts",
|
|
67
|
-
"default": "./fesm2022/taiga-ui-core-directives-appearance.mjs"
|
|
68
|
-
},
|
|
69
|
-
"./directives/button-x": {
|
|
70
|
-
"types": "./directives/button-x/index.d.ts",
|
|
71
|
-
"default": "./fesm2022/taiga-ui-core-directives-button-x.mjs"
|
|
72
|
-
},
|
|
73
|
-
"./directives/date-format": {
|
|
74
|
-
"types": "./directives/date-format/index.d.ts",
|
|
75
|
-
"default": "./fesm2022/taiga-ui-core-directives-date-format.mjs"
|
|
76
|
-
},
|
|
77
|
-
"./directives/group": {
|
|
78
|
-
"types": "./directives/group/index.d.ts",
|
|
79
|
-
"default": "./fesm2022/taiga-ui-core-directives-group.mjs"
|
|
80
|
-
},
|
|
81
|
-
"./directives/icons": {
|
|
82
|
-
"types": "./directives/icons/index.d.ts",
|
|
83
|
-
"default": "./fesm2022/taiga-ui-core-directives-icons.mjs"
|
|
84
|
-
},
|
|
85
|
-
"./directives/items-handlers": {
|
|
86
|
-
"types": "./directives/items-handlers/index.d.ts",
|
|
87
|
-
"default": "./fesm2022/taiga-ui-core-directives-items-handlers.mjs"
|
|
88
|
-
},
|
|
89
|
-
"./directives/number-format": {
|
|
90
|
-
"types": "./directives/number-format/index.d.ts",
|
|
91
|
-
"default": "./fesm2022/taiga-ui-core-directives-number-format.mjs"
|
|
92
|
-
},
|
|
93
65
|
"./components/button": {
|
|
94
66
|
"types": "./components/button/index.d.ts",
|
|
95
67
|
"default": "./fesm2022/taiga-ui-core-components-button.mjs"
|
|
@@ -158,6 +130,34 @@
|
|
|
158
130
|
"types": "./components/title/index.d.ts",
|
|
159
131
|
"default": "./fesm2022/taiga-ui-core-components-title.mjs"
|
|
160
132
|
},
|
|
133
|
+
"./directives/button-x": {
|
|
134
|
+
"types": "./directives/button-x/index.d.ts",
|
|
135
|
+
"default": "./fesm2022/taiga-ui-core-directives-button-x.mjs"
|
|
136
|
+
},
|
|
137
|
+
"./directives/appearance": {
|
|
138
|
+
"types": "./directives/appearance/index.d.ts",
|
|
139
|
+
"default": "./fesm2022/taiga-ui-core-directives-appearance.mjs"
|
|
140
|
+
},
|
|
141
|
+
"./directives/date-format": {
|
|
142
|
+
"types": "./directives/date-format/index.d.ts",
|
|
143
|
+
"default": "./fesm2022/taiga-ui-core-directives-date-format.mjs"
|
|
144
|
+
},
|
|
145
|
+
"./directives/group": {
|
|
146
|
+
"types": "./directives/group/index.d.ts",
|
|
147
|
+
"default": "./fesm2022/taiga-ui-core-directives-group.mjs"
|
|
148
|
+
},
|
|
149
|
+
"./directives/icons": {
|
|
150
|
+
"types": "./directives/icons/index.d.ts",
|
|
151
|
+
"default": "./fesm2022/taiga-ui-core-directives-icons.mjs"
|
|
152
|
+
},
|
|
153
|
+
"./directives/items-handlers": {
|
|
154
|
+
"types": "./directives/items-handlers/index.d.ts",
|
|
155
|
+
"default": "./fesm2022/taiga-ui-core-directives-items-handlers.mjs"
|
|
156
|
+
},
|
|
157
|
+
"./directives/number-format": {
|
|
158
|
+
"types": "./directives/number-format/index.d.ts",
|
|
159
|
+
"default": "./fesm2022/taiga-ui-core-directives-number-format.mjs"
|
|
160
|
+
},
|
|
161
161
|
"./pipes/format-number": {
|
|
162
162
|
"types": "./pipes/format-number/index.d.ts",
|
|
163
163
|
"default": "./fesm2022/taiga-ui-core-pipes-format-number.mjs"
|
|
@@ -205,12 +205,12 @@
|
|
|
205
205
|
"@angular/forms": ">=19.0.0",
|
|
206
206
|
"@angular/platform-browser": ">=19.0.0",
|
|
207
207
|
"@angular/router": ">=19.0.0",
|
|
208
|
-
"@ng-web-apis/common": "^5.0.
|
|
209
|
-
"@ng-web-apis/mutation-observer": "^5.0.
|
|
210
|
-
"@ng-web-apis/platform": "^5.0.
|
|
211
|
-
"@taiga-ui/cdk": "^5.0.0-rc.
|
|
208
|
+
"@ng-web-apis/common": "^5.0.3",
|
|
209
|
+
"@ng-web-apis/mutation-observer": "^5.0.3",
|
|
210
|
+
"@ng-web-apis/platform": "^5.0.3",
|
|
211
|
+
"@taiga-ui/cdk": "^5.0.0-rc.1",
|
|
212
212
|
"@taiga-ui/event-plugins": "^5.0.0",
|
|
213
|
-
"@taiga-ui/i18n": "^5.0.0-rc.
|
|
213
|
+
"@taiga-ui/i18n": "^5.0.0-rc.1",
|
|
214
214
|
"@taiga-ui/polymorpheus": "^5.0.0",
|
|
215
215
|
"rxjs": ">=7.0.0"
|
|
216
216
|
},
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
@thumb-diameters: {
|
|
2
|
-
@s: 0.5rem;
|
|
3
|
-
@m: 0.75rem;
|
|
4
|
-
};
|
|
5
|
-
|
|
6
1
|
@track-inset: {
|
|
7
2
|
@s: 0.625rem;
|
|
8
3
|
@m: 0.75rem;
|
|
9
4
|
@l: 1rem;
|
|
10
5
|
};
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
@thumb-diameter: var(--tui-thumb-size, 0.75rem);
|
|
8
|
+
@thumb-radius: calc(@thumb-diameter / 2);
|
|
9
|
+
@track-thickness: max(calc(@thumb-radius - 0.25rem), 0.125rem);
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
.tui-slider-ticks-labels() {
|
|
12
|
+
--t-offset: @thumb-radius;
|
|
16
13
|
|
|
17
14
|
display: flex;
|
|
18
15
|
font: var(--tui-font-body-s);
|
|
@@ -38,33 +35,33 @@
|
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
tui-range + & {
|
|
41
|
-
--t-offset: @thumb;
|
|
38
|
+
--t-offset: @thumb-diameter;
|
|
42
39
|
}
|
|
43
40
|
|
|
44
41
|
/* TODO: add :has([tuiInputSlider]) */
|
|
45
42
|
tui-textfield[data-size='l'] + & {
|
|
46
|
-
--t-offset: calc(@track-inset[@l] + @thumb
|
|
43
|
+
--t-offset: calc(@track-inset[@l] + @thumb-radius);
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
/* TODO: add :has([tuiInputSlider]) */
|
|
50
47
|
tui-textfield[data-size='m'] + & {
|
|
51
|
-
--t-offset: calc(@track-inset[@m] + @thumb
|
|
48
|
+
--t-offset: calc(@track-inset[@m] + @thumb-radius);
|
|
52
49
|
}
|
|
53
50
|
|
|
54
51
|
/* TODO: add :has([tuiInputSlider]) */
|
|
55
52
|
tui-textfield[data-size='s'] + & {
|
|
56
|
-
--t-offset: calc(@track-inset[@s] + @thumb
|
|
53
|
+
--t-offset: calc(@track-inset[@s] + @thumb-radius);
|
|
57
54
|
}
|
|
58
55
|
|
|
59
56
|
tui-input-range[data-size='l'] + & {
|
|
60
|
-
--t-offset: calc(@track-inset[@l] + @thumb);
|
|
57
|
+
--t-offset: calc(@track-inset[@l] + @thumb-diameter);
|
|
61
58
|
}
|
|
62
59
|
|
|
63
60
|
tui-input-range[data-size='m'] + & {
|
|
64
|
-
--t-offset: calc(@track-inset[@m] + @thumb);
|
|
61
|
+
--t-offset: calc(@track-inset[@m] + @thumb-diameter);
|
|
65
62
|
}
|
|
66
63
|
|
|
67
64
|
tui-input-range[data-size='s'] + & {
|
|
68
|
-
--t-offset: calc(@track-inset[@s] + @thumb);
|
|
65
|
+
--t-offset: calc(@track-inset[@s] + @thumb-diameter);
|
|
69
66
|
}
|
|
70
67
|
}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
$thumb-diameters: (
|
|
2
|
-
's': 0.5rem,
|
|
3
|
-
'm': 0.75rem,
|
|
4
|
-
'l': 0.75rem,
|
|
5
|
-
);
|
|
6
|
-
|
|
7
1
|
$track-inset: (
|
|
8
2
|
's': 0.625rem,
|
|
9
3
|
'm': 0.75rem,
|
|
10
4
|
'l': 1rem,
|
|
11
5
|
);
|
|
12
6
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
$thumb-diameter: var(--tui-thumb-size, 0.75rem);
|
|
8
|
+
$thumb-radius: calc($thumb-diameter / 2);
|
|
9
|
+
$track-thickness: max(calc($thumb-radius - 0.25rem), 0.125rem);
|
|
16
10
|
|
|
17
|
-
|
|
11
|
+
@mixin tui-slider-ticks-labels() {
|
|
12
|
+
--t-offset: $thumb-radius;
|
|
18
13
|
|
|
19
14
|
display: flex;
|
|
20
15
|
font: var(--tui-font-body-s);
|
|
@@ -40,33 +35,33 @@ $track-inset: (
|
|
|
40
35
|
}
|
|
41
36
|
|
|
42
37
|
tui-range + & {
|
|
43
|
-
--t-offset: $thumb;
|
|
38
|
+
--t-offset: $thumb-diameter;
|
|
44
39
|
}
|
|
45
40
|
|
|
46
41
|
/* TODO: add :has([tuiInputSlider]) */
|
|
47
42
|
tui-textfield[data-size='l'] + & {
|
|
48
|
-
--t-offset: calc(map-get($track-inset, 'l') + $thumb
|
|
43
|
+
--t-offset: calc(map-get($track-inset, 'l') + $thumb-radius);
|
|
49
44
|
}
|
|
50
45
|
|
|
51
46
|
/* TODO: add :has([tuiInputSlider]) */
|
|
52
47
|
tui-textfield[data-size='m'] + & {
|
|
53
|
-
--t-offset: calc(map-get($track-inset, 'm') + $thumb
|
|
48
|
+
--t-offset: calc(map-get($track-inset, 'm') + $thumb-radius);
|
|
54
49
|
}
|
|
55
50
|
|
|
56
51
|
/* TODO: add :has([tuiInputSlider]) */
|
|
57
52
|
tui-textfield[data-size='s'] + & {
|
|
58
|
-
--t-offset: calc(map-get($track-inset, 's') + $thumb
|
|
53
|
+
--t-offset: calc(map-get($track-inset, 's') + $thumb-radius);
|
|
59
54
|
}
|
|
60
55
|
|
|
61
56
|
tui-input-range[data-size='l'] + & {
|
|
62
|
-
--t-offset: calc(map-get($track-inset, 'l') + $thumb);
|
|
57
|
+
--t-offset: calc(map-get($track-inset, 'l') + $thumb-diameter);
|
|
63
58
|
}
|
|
64
59
|
|
|
65
60
|
tui-input-range[data-size='m'] + & {
|
|
66
|
-
--t-offset: calc(map-get($track-inset, 'm') + $thumb);
|
|
61
|
+
--t-offset: calc(map-get($track-inset, 'm') + $thumb-diameter);
|
|
67
62
|
}
|
|
68
63
|
|
|
69
64
|
tui-input-range[data-size='s'] + & {
|
|
70
|
-
--t-offset: calc(map-get($track-inset, 's') + $thumb);
|
|
65
|
+
--t-offset: calc(map-get($track-inset, 's') + $thumb-diameter);
|
|
71
66
|
}
|
|
72
67
|
}
|