@eturnity/eturnity_reusable_components 7.24.3-EPDM-11250.0 → 7.24.3-EPDM-11320.0
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/.eslintrc.js +125 -0
- package/package.json +6 -20
- package/src/App.vue +75 -70
- package/src/components/addNewButton/index.vue +24 -27
- package/src/components/banner/actionBanner/index.vue +32 -30
- package/src/components/banner/banner/index.vue +88 -80
- package/src/components/banner/infoBanner/index.vue +36 -44
- package/src/components/buttons/buttonIcon/index.vue +83 -78
- package/src/components/buttons/closeButton/index.vue +26 -26
- package/src/components/buttons/mainButton/index.vue +80 -76
- package/src/components/card/index.vue +56 -52
- package/src/components/collapsableInfoText/index.vue +81 -76
- package/src/components/deleteIcon/index.vue +31 -28
- package/src/components/draggableInputHandle/index.vue +20 -17
- package/src/components/dropdown/Dropdown.stories.js +8 -8
- package/src/components/dropdown/index.vue +75 -72
- package/src/components/errorMessage/index.vue +23 -23
- package/src/components/filter/filterSettings.vue +349 -329
- package/src/components/filter/index.vue +130 -130
- package/src/components/filter/parentDropdown.vue +43 -40
- package/src/components/icon/Icons.stories.js +4 -4
- package/src/components/icon/iconCache.js +1 -1
- package/src/components/icon/iconCollection.vue +40 -37
- package/src/components/icon/index.vue +72 -65
- package/src/components/iconWrapper/index.vue +122 -118
- package/src/components/infoCard/index.vue +20 -17
- package/src/components/infoText/index.vue +88 -82
- package/src/components/inputs/checkbox/index.vue +91 -94
- package/src/components/inputs/inputNumber/index.vue +508 -488
- package/src/components/inputs/inputNumberQuestion/index.vue +127 -124
- package/src/components/inputs/inputText/index.vue +265 -252
- package/src/components/inputs/radioButton/index.vue +135 -120
- package/src/components/inputs/searchInput/index.vue +84 -81
- package/src/components/inputs/select/index.vue +644 -631
- package/src/components/inputs/select/option/index.vue +91 -91
- package/src/components/inputs/select/select.stories.js +7 -7
- package/src/components/inputs/slider/index.vue +46 -46
- package/src/components/inputs/switchField/index.vue +159 -152
- package/src/components/inputs/textAreaInput/index.vue +120 -113
- package/src/components/inputs/toggle/index.vue +137 -127
- package/src/components/label/index.vue +64 -61
- package/src/components/markerItem/index.vue +40 -40
- package/src/components/modals/actionModal/index.vue +32 -29
- package/src/components/modals/infoModal/index.vue +34 -27
- package/src/components/modals/modal/index.vue +88 -80
- package/src/components/navigationTabs/index.vue +50 -47
- package/src/components/pageSubtitle/index.vue +33 -29
- package/src/components/pageTitle/index.vue +47 -39
- package/src/components/pagination/index.vue +64 -62
- package/src/components/progressBar/index.vue +70 -67
- package/src/components/projectMarker/index.vue +172 -163
- package/src/components/rangeSlider/Slider.vue +449 -449
- package/src/components/rangeSlider/index.vue +282 -270
- package/src/components/rangeSlider/utils/dom.js +3 -3
- package/src/components/selectedOptions/index.vue +51 -51
- package/src/components/sideMenu/index.vue +117 -109
- package/src/components/spinner/index.vue +37 -34
- package/src/components/tableDropdown/index.vue +343 -326
- package/src/components/tables/mainTable/index.vue +109 -106
- package/src/components/tables/viewTable/index.vue +105 -92
- package/src/components/threeDots/index.vue +174 -171
- package/src/components/videoThumbnail/index.vue +67 -59
- package/src/components/videoThumbnail/videoThumbnail.stories.js +6 -6
- package/src/helpers/numberConverter.js +1 -3
- package/src/helpers/translateLang.js +10 -13
- package/.prettierrc +0 -7
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
@@ -1,15 +1,18 @@
|
|
1
1
|
<template>
|
2
|
-
<Handle
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
<Handle
|
3
|
+
class="handle"
|
4
|
+
:height="height"
|
5
|
+
>
|
6
|
+
<Dot />
|
7
|
+
<Dot />
|
8
|
+
<Dot />
|
6
9
|
</Handle>
|
7
10
|
</template>
|
8
11
|
|
9
12
|
<script>
|
10
|
-
import styled from 'vue3-styled-components'
|
13
|
+
import styled from 'vue3-styled-components'
|
11
14
|
|
12
|
-
const Handle = styled('div', { height: String })`
|
15
|
+
const Handle = styled('div', { height: String })`
|
13
16
|
position: absolute;
|
14
17
|
left: 0;
|
15
18
|
margin-right: 10px;
|
@@ -24,7 +27,7 @@ const Handle = styled('div', { height: String })`
|
|
24
27
|
cursor: pointer;
|
25
28
|
align-items: center;
|
26
29
|
`
|
27
|
-
const Dot = styled.div`
|
30
|
+
const Dot = styled.div`
|
28
31
|
display: inline-block;
|
29
32
|
width: 4px;
|
30
33
|
height: 4px;
|
@@ -32,15 +35,15 @@ const Dot = styled.div`
|
|
32
35
|
background-color: #0068de;
|
33
36
|
`
|
34
37
|
|
35
|
-
export default {
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
38
|
+
export default {
|
39
|
+
name: 'DraggableInputHandle',
|
40
|
+
components: {
|
41
|
+
Handle,
|
42
|
+
Dot
|
43
|
+
},
|
44
|
+
props: ['height'],
|
45
|
+
data() {
|
46
|
+
return {}
|
47
|
+
}
|
44
48
|
}
|
45
|
-
}
|
46
49
|
</script>
|
@@ -38,17 +38,17 @@ const Template = (args, { argTypes }) => ({
|
|
38
38
|
|
39
39
|
export const Default = Template.bind({})
|
40
40
|
Default.args = {
|
41
|
-
openingMode:"click",
|
42
|
-
gap:"0px",
|
43
|
-
justify:"left",
|
44
|
-
width:"150px"
|
41
|
+
openingMode: "click",
|
42
|
+
gap: "0px",
|
43
|
+
justify: "left",
|
44
|
+
width: "150px"
|
45
45
|
}
|
46
46
|
|
47
47
|
export const withHover = Template.bind({})
|
48
48
|
withHover.args = {
|
49
|
-
openingMode:"hover",
|
50
|
-
gap:"20px",
|
51
|
-
justify:"right",
|
52
|
-
width:"250px"
|
49
|
+
openingMode: "hover",
|
50
|
+
gap: "20px",
|
51
|
+
justify: "right",
|
52
|
+
width: "250px"
|
53
53
|
}
|
54
54
|
|
@@ -1,25 +1,28 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
2
|
+
<Wrapper
|
3
|
+
ref="dropdown"
|
4
|
+
:opening-mode="openingMode"
|
5
|
+
>
|
3
6
|
<WrapperButton @click="isOpenByClick = !isOpenByClick">
|
4
|
-
<slot name="trigger"
|
7
|
+
<slot name="trigger"></slot>
|
5
8
|
</WrapperButton>
|
6
9
|
<WrapperDropdown
|
10
|
+
:background-color="backgroundColor"
|
7
11
|
class="dropdown-content"
|
8
12
|
:class="{ openDropdown: isOpenByClick && openingMode == 'click' }"
|
9
13
|
:justify="justify"
|
10
14
|
:position="position"
|
11
15
|
:width="width"
|
12
|
-
:backgroundColor="backgroundColor"
|
13
16
|
>
|
14
17
|
<DropdownWindow
|
18
|
+
:background-color="backgroundColor"
|
15
19
|
:gap="gap"
|
16
|
-
:backgroundColor="backgroundColor"
|
17
20
|
:width="width"
|
18
21
|
>
|
19
|
-
<slot name="dropdown"
|
22
|
+
<slot name="dropdown"></slot>
|
20
23
|
</DropdownWindow>
|
21
24
|
</WrapperDropdown>
|
22
|
-
</
|
25
|
+
</Wrapper>
|
23
26
|
</template>
|
24
27
|
|
25
28
|
<script>
|
@@ -31,16 +34,16 @@
|
|
31
34
|
|
32
35
|
// <DropdownComponent/>
|
33
36
|
|
34
|
-
import styled from 'vue3-styled-components'
|
37
|
+
import styled from 'vue3-styled-components'
|
35
38
|
|
36
|
-
const wrapperAttrs = {
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
}
|
43
|
-
const Wrapper = styled('div', wrapperAttrs)`
|
39
|
+
const wrapperAttrs = {
|
40
|
+
width: String,
|
41
|
+
backgroundColor: String,
|
42
|
+
openingMode: String,
|
43
|
+
gap: String,
|
44
|
+
justify: String
|
45
|
+
}
|
46
|
+
const Wrapper = styled('div', wrapperAttrs)`
|
44
47
|
display: inline-block;
|
45
48
|
position: relative;
|
46
49
|
|
@@ -49,20 +52,20 @@ const Wrapper = styled('div', wrapperAttrs)`
|
|
49
52
|
}
|
50
53
|
& .openDropdown {
|
51
54
|
${(props) =>
|
52
|
-
|
55
|
+
props.openingMode == 'click' ? 'display:block !important' : ''}
|
53
56
|
}
|
54
57
|
`
|
55
|
-
const WrapperDropdown = styled('div', wrapperAttrs)`
|
58
|
+
const WrapperDropdown = styled('div', wrapperAttrs)`
|
56
59
|
margin-top: 0;
|
57
60
|
display: none;
|
58
61
|
position: absolute;
|
59
62
|
z-index: 1;
|
60
63
|
${(props) => (props.justify == 'right' ? 'right:0;' : '')}
|
61
64
|
`
|
62
|
-
const DropdownWindow = styled('div', wrapperAttrs)`
|
65
|
+
const DropdownWindow = styled('div', wrapperAttrs)`
|
63
66
|
width: ${(props) => props.width};
|
64
67
|
background-color: ${(props) =>
|
65
|
-
|
68
|
+
props.theme.colors[props.backgroundColor] || props.backgroundColor};
|
66
69
|
margin-top: ${(props) => props.gap};
|
67
70
|
border-radius: 4px;
|
68
71
|
position: relative;
|
@@ -71,68 +74,68 @@ const DropdownWindow = styled('div', wrapperAttrs)`
|
|
71
74
|
z-index: 1;
|
72
75
|
`
|
73
76
|
|
74
|
-
const WrapperButton = styled('div', wrapperAttrs)`
|
77
|
+
const WrapperButton = styled('div', wrapperAttrs)`
|
75
78
|
display: inline-block;
|
76
79
|
`
|
77
80
|
|
78
|
-
export default {
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
},
|
86
|
-
props: {
|
87
|
-
width: {
|
88
|
-
required: false,
|
89
|
-
default: '300px'
|
81
|
+
export default {
|
82
|
+
name: 'DropdownComponent',
|
83
|
+
components: {
|
84
|
+
WrapperDropdown,
|
85
|
+
WrapperButton,
|
86
|
+
Wrapper,
|
87
|
+
DropdownWindow
|
90
88
|
},
|
91
|
-
|
92
|
-
|
93
|
-
|
89
|
+
props: {
|
90
|
+
width: {
|
91
|
+
required: false,
|
92
|
+
default: '300px'
|
93
|
+
},
|
94
|
+
gap: {
|
95
|
+
required: false,
|
96
|
+
default: '10px'
|
97
|
+
},
|
98
|
+
position: {
|
99
|
+
required: false,
|
100
|
+
default: 'bottom'
|
101
|
+
},
|
102
|
+
justify: {
|
103
|
+
required: false,
|
104
|
+
default: 'left'
|
105
|
+
},
|
106
|
+
openingMode: {
|
107
|
+
required: false,
|
108
|
+
default: 'hover'
|
109
|
+
},
|
110
|
+
backgroundColor: {
|
111
|
+
required: false,
|
112
|
+
default: 'white'
|
113
|
+
}
|
94
114
|
},
|
95
|
-
|
96
|
-
|
97
|
-
|
115
|
+
data() {
|
116
|
+
return {
|
117
|
+
isOpenByClick: false
|
118
|
+
}
|
98
119
|
},
|
99
|
-
|
100
|
-
|
101
|
-
default: 'left'
|
120
|
+
mounted() {
|
121
|
+
document.addEventListener('click', this.clickOutside)
|
102
122
|
},
|
103
|
-
|
104
|
-
|
105
|
-
default: 'hover'
|
123
|
+
beforeDestroy() {
|
124
|
+
document.removeEventListener('click', this.clickOutside)
|
106
125
|
},
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
if (this.openingMode != 'click') return
|
120
|
-
if (
|
121
|
-
this.$refs.dropdown &&
|
122
|
-
(this.$refs.dropdown.$el == event.target ||
|
123
|
-
this.$refs.dropdown.$el.contains(event.target))
|
124
|
-
) {
|
125
|
-
return
|
126
|
-
} else {
|
127
|
-
this.isOpenByClick = false
|
126
|
+
methods: {
|
127
|
+
clickOutside(event) {
|
128
|
+
if (this.openingMode != 'click') return
|
129
|
+
if (
|
130
|
+
this.$refs.dropdown &&
|
131
|
+
(this.$refs.dropdown.$el == event.target ||
|
132
|
+
this.$refs.dropdown.$el.contains(event.target))
|
133
|
+
) {
|
134
|
+
return
|
135
|
+
} else {
|
136
|
+
this.isOpenByClick = false
|
137
|
+
}
|
128
138
|
}
|
129
139
|
}
|
130
|
-
},
|
131
|
-
mounted() {
|
132
|
-
document.addEventListener('click', this.clickOutside)
|
133
|
-
},
|
134
|
-
beforeDestroy() {
|
135
|
-
document.removeEventListener('click', this.clickOutside)
|
136
140
|
}
|
137
|
-
}
|
138
141
|
</script>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<
|
2
|
+
<ComponentWrapper>
|
3
|
+
<TextOverlay :margin-top="marginTop">
|
4
4
|
<slot></slot>
|
5
|
-
</
|
6
|
-
</
|
5
|
+
</TextOverlay>
|
6
|
+
</ComponentWrapper>
|
7
7
|
</template>
|
8
8
|
|
9
9
|
<script>
|
@@ -11,9 +11,9 @@
|
|
11
11
|
//To use:
|
12
12
|
// <error-message />
|
13
13
|
|
14
|
-
import styled from 'vue3-styled-components'
|
14
|
+
import styled from 'vue3-styled-components'
|
15
15
|
|
16
|
-
const TextOverlay = styled('div', { marginTop: String })`
|
16
|
+
const TextOverlay = styled('div', { marginTop: String })`
|
17
17
|
position: absolute;
|
18
18
|
top: calc(100% + ${(props) => props.marginTop});
|
19
19
|
background: ${(props) => props.theme.colors.red};
|
@@ -40,25 +40,25 @@ const TextOverlay = styled('div', { marginTop: String })`
|
|
40
40
|
}
|
41
41
|
`
|
42
42
|
|
43
|
-
const ComponentWrapper = styled.div`
|
43
|
+
const ComponentWrapper = styled.div`
|
44
44
|
display: block;
|
45
45
|
`
|
46
46
|
|
47
|
-
export default {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
47
|
+
export default {
|
48
|
+
name: 'InfoText',
|
49
|
+
components: {
|
50
|
+
TextOverlay,
|
51
|
+
ComponentWrapper
|
52
|
+
},
|
53
|
+
props: {
|
54
|
+
marginTop: {
|
55
|
+
required: false,
|
56
|
+
default: '13px'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
data() {
|
60
|
+
return {}
|
61
|
+
},
|
62
|
+
methods: {}
|
62
63
|
}
|
63
|
-
}
|
64
64
|
</script>
|