@eturnity/eturnity_reusable_components 7.4.4-EPDM-9606 → 7.4.4-EPDM-7260.2
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 +3 -3
- package/src/App.vue +69 -74
- package/src/assets/svgIcons/consumption_tariffs.svg +43 -0
- package/src/assets/svgIcons/electricity_tariff.svg +3 -0
- package/src/assets/svgIcons/handle.svg +5 -0
- package/src/assets/svgIcons/summer.svg +3 -0
- package/src/assets/theme.js +0 -1
- package/src/components/infoText/index.vue +1 -1
- package/src/components/inputs/radioButton/index.vue +5 -2
- package/src/components/inputs/select/index.vue +37 -10
- package/src/components/modals/modal/index.vue +16 -0
- package/src/components/pagination/index.vue +4 -19
- package/src/components/rangeSlider/Slider.vue +541 -0
- package/src/components/rangeSlider/index.vue +488 -0
- package/src/components/rangeSlider/utils/dom.js +49 -0
- package/src/components/rangeSlider/utils/fns.js +26 -0
- package/src/components/selectedOptions/index.vue +145 -0
- package/src/components/tables/mainTable/index.vue +2 -2
- package/src/components/threeDots/index.vue +36 -22
- package/src/main.js +5 -5
@@ -72,7 +72,7 @@ const TableWrapper = styled('div', wrapperAttrs)`
|
|
72
72
|
overflow-y: hidden;
|
73
73
|
|
74
74
|
::-webkit-scrollbar {
|
75
|
-
height:
|
75
|
+
height: 5px; //height of the whole scrollbar area
|
76
76
|
}
|
77
77
|
|
78
78
|
::-webkit-scrollbar-track {
|
@@ -81,7 +81,7 @@ const TableWrapper = styled('div', wrapperAttrs)`
|
|
81
81
|
}
|
82
82
|
|
83
83
|
::-webkit-scrollbar-thumb {
|
84
|
-
border-bottom:
|
84
|
+
border-bottom: 5px solid ${(props) => props.theme.colors.purple}; // width of the actual scrollbar
|
85
85
|
border-radius: 4px;
|
86
86
|
}
|
87
87
|
`
|
@@ -1,5 +1,9 @@
|
|
1
1
|
<template>
|
2
|
-
<page-container
|
2
|
+
<page-container
|
3
|
+
@click="toggleButton()"
|
4
|
+
ref="pageContainer"
|
5
|
+
:activated="isOpen"
|
6
|
+
>
|
3
7
|
<button-container ref="dropdownItem">
|
4
8
|
<dot-item />
|
5
9
|
<dot-item />
|
@@ -23,17 +27,17 @@
|
|
23
27
|
v-for="child in childOpen"
|
24
28
|
:key="child.value"
|
25
29
|
@click.stop="
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
30
|
+
onSelect({
|
31
|
+
item: child,
|
32
|
+
hasChildren: hasChildren(child)
|
33
|
+
})
|
34
|
+
"
|
31
35
|
@keyup.enter.stop="
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
36
|
+
onSelect({
|
37
|
+
item: child,
|
38
|
+
hasChildren: hasChildren(child)
|
39
|
+
})
|
40
|
+
"
|
37
41
|
>
|
38
42
|
{{ child.name }}
|
39
43
|
</option-child>
|
@@ -43,10 +47,12 @@
|
|
43
47
|
v-for="(item, index) in options"
|
44
48
|
:key="item.value"
|
45
49
|
tabindex="0"
|
46
|
-
@click.stop="
|
50
|
+
@click.stop="
|
51
|
+
onSelect({ item: item, hasChildren: hasChildren(item) })
|
52
|
+
"
|
47
53
|
@keyup.enter="
|
48
|
-
|
49
|
-
|
54
|
+
onSelect({ item: item, hasChildren: hasChildren(item) })
|
55
|
+
"
|
50
56
|
@mouseover="onItemHover({ index, item })"
|
51
57
|
:isDisabled="item.disabled"
|
52
58
|
>
|
@@ -55,8 +61,8 @@
|
|
55
61
|
v-if="hasChildren(item)"
|
56
62
|
/>
|
57
63
|
<span>
|
58
|
-
|
59
|
-
|
64
|
+
{{ item.name }}
|
65
|
+
</span>
|
60
66
|
</option-item>
|
61
67
|
</options-container>
|
62
68
|
</template>
|
@@ -133,7 +139,8 @@ const PageContainer = styled('div', PageContainerAttrs)`
|
|
133
139
|
width: 30px;
|
134
140
|
height: 30px;
|
135
141
|
border-radius: 4px;
|
136
|
-
background-color: ${(props) =>
|
142
|
+
background-color: ${(props) =>
|
143
|
+
props.activated ? props.theme.colors.grey5 : ''};
|
137
144
|
|
138
145
|
&:hover {
|
139
146
|
background-color: ${(props) => props.theme.colors.grey5};
|
@@ -317,21 +324,28 @@ export default {
|
|
317
324
|
const positionArray = this.determineElementQuarter(button, rectButton)
|
318
325
|
contextMenu.style.transform = ''
|
319
326
|
if (positionArray.includes('left')) {
|
320
|
-
contextMenu.style.left =
|
327
|
+
contextMenu.style.left =
|
328
|
+
rectButton.right - rectRelativeParent.left + 5 + 'px'
|
321
329
|
} else {
|
322
|
-
contextMenu.style.left =
|
330
|
+
contextMenu.style.left =
|
331
|
+
rectButton.left - rectRelativeParent.left - 5 + 'px'
|
323
332
|
contextMenu.style.transform = 'translateX(-100%)'
|
324
333
|
}
|
325
334
|
if (positionArray.includes('top')) {
|
326
|
-
contextMenu.style.top =
|
335
|
+
contextMenu.style.top = rectButton.top - rectRelativeParent.top + 'px'
|
327
336
|
} else {
|
328
|
-
contextMenu.style.top =
|
337
|
+
contextMenu.style.top =
|
338
|
+
rectButton.bottom - rectRelativeParent.top + 'px'
|
329
339
|
contextMenu.style.transform += ' translateY(-100%)'
|
330
340
|
}
|
331
341
|
},
|
332
342
|
findRelativeParent(element) {
|
333
343
|
while (element.parentElement) {
|
334
|
-
if (
|
344
|
+
if (
|
345
|
+
window.getComputedStyle(element.parentElement).position ===
|
346
|
+
'relative' ||
|
347
|
+
window.getComputedStyle(element.parentElement).position === 'absolute'
|
348
|
+
) {
|
335
349
|
return element.parentElement
|
336
350
|
}
|
337
351
|
element = element.parentElement
|
package/src/main.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import Vue from
|
2
|
-
import App from
|
3
|
-
import VueCompositionAPI from
|
1
|
+
import Vue from 'vue'
|
2
|
+
import App from './App.vue'
|
3
|
+
import VueCompositionAPI from '@vue/composition-api'
|
4
4
|
import vClickOutside from 'v-click-outside'
|
5
5
|
|
6
6
|
Vue.config.productionTip = false
|
@@ -9,5 +9,5 @@ Vue.use(VueCompositionAPI)
|
|
9
9
|
Vue.use(vClickOutside)
|
10
10
|
|
11
11
|
new Vue({
|
12
|
-
render: (h) => h(App)
|
13
|
-
}).$mount(
|
12
|
+
render: (h) => h(App)
|
13
|
+
}).$mount('#app')
|