@webitel/ui-sdk 0.8.61 → 0.8.65
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/dist/ui-sdk.common.js +110 -102
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +110 -102
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +2 -2
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/wt-slider/wt-slider.vue +35 -21
- package/src/components/molecules/wt-tags-input/wt-tags-input.vue +2 -1
- package/src/components/organisms/wt-status-select/_internals/StatusOptions.lookup.js +1 -1
- package/src/css/components/molecules/wt-slider/_variables.scss +4 -2
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ To achieve correct slider height we:
|
|
|
10
10
|
2. Set the new slider width (which is now positioned from bottom to top) using fixed number of pixels, received with props.
|
|
11
11
|
3. Set the container element height to 100% so it is always calculated correctly depending on it`s child dimensions.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Until there are no possibility to style input range and position it vertically, we are rotating our slider with css
|
|
14
14
|
and swapping height/width of this component in order to have the correct output.
|
|
15
15
|
-->
|
|
16
16
|
|
|
@@ -18,22 +18,28 @@ and swapping height/width of this component in order to have the correct output.
|
|
|
18
18
|
<div
|
|
19
19
|
class="wt-slider"
|
|
20
20
|
:class="{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
:style="{
|
|
25
|
-
>
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
21
|
+
'wt-slider--disabled': disabled,
|
|
22
|
+
'wt-slider--vertical': vertical,
|
|
23
|
+
}"
|
|
24
|
+
:style="{ height: verticalHeight }"
|
|
25
|
+
>
|
|
26
|
+
<div
|
|
27
|
+
class="wt-slider__wrapper"
|
|
28
|
+
:style="{ width: verticalHeight }"
|
|
29
|
+
>
|
|
30
|
+
<!-- The row above is needed in order to set correct component width when slider is vertical -->
|
|
31
|
+
<input
|
|
32
|
+
type="range"
|
|
33
|
+
class="wt-slider__slider"
|
|
34
|
+
:style="{ background: progressStyle }"
|
|
35
|
+
:min="min"
|
|
36
|
+
:max="max"
|
|
37
|
+
:step="step"
|
|
38
|
+
:value="value"
|
|
39
|
+
:disabled="disabled"
|
|
40
|
+
@input="inputHandler"
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
37
43
|
</div>
|
|
38
44
|
</template>
|
|
39
45
|
|
|
@@ -90,7 +96,7 @@ export default {
|
|
|
90
96
|
|
|
91
97
|
<style lang="scss" scoped>
|
|
92
98
|
|
|
93
|
-
.wt-
|
|
99
|
+
.wt-slider__wrapper {
|
|
94
100
|
width: var(--wt-slider-width)
|
|
95
101
|
}
|
|
96
102
|
|
|
@@ -154,8 +160,16 @@ export default {
|
|
|
154
160
|
}
|
|
155
161
|
|
|
156
162
|
.wt-slider--vertical {
|
|
157
|
-
|
|
158
|
-
transform
|
|
159
|
-
|
|
163
|
+
width: var(--wt-slider-vertical-container-width);
|
|
164
|
+
transform: var(--wt-slider-vertical-container-translation);
|
|
165
|
+
|
|
166
|
+
.wt-slider__wrapper {
|
|
167
|
+
transform: var(--wt-slider-vertical-transform);
|
|
168
|
+
transform-origin: var(--wt-slider-vertical-transform-origin);
|
|
160
169
|
|
|
170
|
+
.wt-slider__slider {
|
|
171
|
+
margin: 0;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
161
175
|
</style>
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
--wt-slider-pointer-size: 16px;
|
|
9
9
|
--wt-slider-pointer-radius: 50%;
|
|
10
10
|
|
|
11
|
-
--wt-slider-vertical-
|
|
12
|
-
--wt-slider-vertical-
|
|
11
|
+
--wt-slider-vertical-container-width: 20px;
|
|
12
|
+
--wt-slider-vertical-container-translation: translate(2px);
|
|
13
|
+
--wt-slider-vertical-transform: translate(-100%, 0) rotate(-90deg);
|
|
14
|
+
--wt-slider-vertical-transform-origin: 100% 0;
|
|
13
15
|
}
|