@vaadin/slider 25.1.4 → 25.1.5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/slider",
|
|
3
|
-
"version": "25.1.
|
|
3
|
+
"version": "25.1.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,24 +35,24 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "~25.1.
|
|
39
|
-
"@vaadin/component-base": "~25.1.
|
|
40
|
-
"@vaadin/field-base": "~25.1.
|
|
41
|
-
"@vaadin/overlay": "~25.1.
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "~25.1.
|
|
38
|
+
"@vaadin/a11y-base": "~25.1.5",
|
|
39
|
+
"@vaadin/component-base": "~25.1.5",
|
|
40
|
+
"@vaadin/field-base": "~25.1.5",
|
|
41
|
+
"@vaadin/overlay": "~25.1.5",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "~25.1.5",
|
|
43
43
|
"lit": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vaadin/aura": "~25.1.
|
|
47
|
-
"@vaadin/chai-plugins": "~25.1.
|
|
48
|
-
"@vaadin/test-runner-commands": "~25.1.
|
|
46
|
+
"@vaadin/aura": "~25.1.5",
|
|
47
|
+
"@vaadin/chai-plugins": "~25.1.5",
|
|
48
|
+
"@vaadin/test-runner-commands": "~25.1.5",
|
|
49
49
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "~25.1.
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "~25.1.5"
|
|
51
51
|
},
|
|
52
52
|
"customElements": "custom-elements.json",
|
|
53
53
|
"web-types": [
|
|
54
54
|
"web-types.json",
|
|
55
55
|
"web-types.lit.json"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "8f43cd3b607683e2ea9616d9dbd00eb8f2a84a86"
|
|
58
58
|
}
|
|
@@ -105,16 +105,21 @@ export const sliderStyles = css`
|
|
|
105
105
|
grid-row: 1;
|
|
106
106
|
grid-column: track-start / track-end;
|
|
107
107
|
appearance: none;
|
|
108
|
-
width: 100
|
|
109
|
-
height:
|
|
108
|
+
width: calc(100% + max(0px, 24px - var(--_thumb-width)));
|
|
109
|
+
height: var(--_thumb-height);
|
|
110
110
|
font: inherit;
|
|
111
111
|
margin: 0;
|
|
112
|
+
margin-inline: calc(min(0px, var(--_thumb-width) - 24px) / 2);
|
|
112
113
|
background: transparent;
|
|
113
114
|
outline: 0;
|
|
114
115
|
-webkit-tap-highlight-color: transparent;
|
|
115
116
|
cursor: inherit;
|
|
116
117
|
touch-action: none;
|
|
117
118
|
z-index: 999;
|
|
119
|
+
|
|
120
|
+
@media (pointer: coarse) {
|
|
121
|
+
pointer-events: none;
|
|
122
|
+
}
|
|
118
123
|
}
|
|
119
124
|
|
|
120
125
|
[part='marks'] {
|
|
@@ -178,7 +178,7 @@ class RangeSlider extends FieldMixin(
|
|
|
178
178
|
|
|
179
179
|
::slotted(input:last-of-type) {
|
|
180
180
|
clip-path: inset(
|
|
181
|
-
|
|
181
|
+
min(0px, (var(--_thumb-height) - 24px) / 2) 0 min(0px, (var(--_thumb-height) - 24px) / 2)
|
|
182
182
|
clamp(
|
|
183
183
|
0%,
|
|
184
184
|
var(--_thumb-width) / 2 + var(--start-value) * var(--_track-width) +
|
|
@@ -190,14 +190,14 @@ class RangeSlider extends FieldMixin(
|
|
|
190
190
|
|
|
191
191
|
:host([dir='rtl']) ::slotted(input:last-of-type) {
|
|
192
192
|
clip-path: inset(
|
|
193
|
-
|
|
193
|
+
min(0px, (var(--_thumb-height) - 24px) / 2)
|
|
194
194
|
clamp(
|
|
195
195
|
0%,
|
|
196
196
|
var(--_thumb-width) / 2 + var(--start-value) * var(--_track-width) +
|
|
197
197
|
(var(--end-value) - var(--start-value)) * var(--_track-width) / 2,
|
|
198
198
|
100%
|
|
199
199
|
)
|
|
200
|
-
|
|
200
|
+
min(0px, (var(--_thumb-height) - 24px) / 2) 0
|
|
201
201
|
);
|
|
202
202
|
}
|
|
203
203
|
`,
|
|
@@ -90,18 +90,21 @@ export const SliderMixin = (superClass) =>
|
|
|
90
90
|
|
|
91
91
|
${tag} > input::-webkit-slider-thumb {
|
|
92
92
|
appearance: none;
|
|
93
|
-
width: var(--_thumb-width);
|
|
94
|
-
height:
|
|
93
|
+
width: max(24px, var(--_thumb-width));
|
|
94
|
+
height: max(24px, var(--_thumb-height));
|
|
95
|
+
margin-block: calc((var(--_thumb-height) - 24px) / 2);
|
|
95
96
|
/* iOS needs these */
|
|
96
97
|
background: transparent;
|
|
97
98
|
box-shadow: none;
|
|
99
|
+
pointer-events: auto;
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
${tag} > input::-moz-range-thumb {
|
|
101
103
|
border: 0;
|
|
102
104
|
background: transparent;
|
|
103
|
-
width: var(--_thumb-width);
|
|
104
|
-
height:
|
|
105
|
+
width: max(24px, var(--_thumb-width));
|
|
106
|
+
height: max(24px, var(--_thumb-height));
|
|
107
|
+
pointer-events: auto;
|
|
105
108
|
}
|
|
106
109
|
|
|
107
110
|
${tag}:not([readonly]) > input::-webkit-slider-thumb {
|
package/web-types.json
CHANGED