@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,22 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
|
4
|
-
|
2
|
+
<Wrapper
|
3
|
+
:cursor="cursor"
|
4
|
+
:disabled="disabled"
|
5
|
+
:size="size"
|
6
|
+
>
|
7
|
+
<IconImage
|
8
|
+
:animation="animation"
|
5
9
|
:background-color="backgroundColor"
|
10
|
+
:color="color"
|
6
11
|
:hovered-color="hoveredColor"
|
7
|
-
:animation="animation"
|
8
12
|
>
|
9
|
-
<i v-html="icon.html"
|
10
|
-
</
|
11
|
-
<
|
12
|
-
|
13
|
+
<i v-html="icon.html"></i>
|
14
|
+
</IconImage>
|
15
|
+
<StrikedLine
|
16
|
+
v-if="isStriked"
|
17
|
+
:color="color"
|
18
|
+
/>
|
19
|
+
</Wrapper>
|
13
20
|
</template>
|
14
21
|
|
15
22
|
<script setup>
|
@@ -24,51 +31,51 @@
|
|
24
31
|
// isStriked = "true"
|
25
32
|
// />
|
26
33
|
|
27
|
-
import { onMounted, reactive, watch } from 'vue'
|
28
|
-
import styled from 'vue3-styled-components'
|
29
|
-
import { fetchIcon } from './iconCache'
|
34
|
+
import { onMounted, reactive, watch } from 'vue'
|
35
|
+
import styled from 'vue3-styled-components'
|
36
|
+
import { fetchIcon } from './iconCache'
|
30
37
|
|
31
|
-
const props = defineProps({
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
})
|
38
|
+
const props = defineProps({
|
39
|
+
disabled: {
|
40
|
+
required: false,
|
41
|
+
default: false
|
42
|
+
},
|
43
|
+
name: {
|
44
|
+
required: true
|
45
|
+
},
|
46
|
+
color: {
|
47
|
+
required: false
|
48
|
+
},
|
49
|
+
hoveredColor: {
|
50
|
+
required: false
|
51
|
+
},
|
52
|
+
size: {
|
53
|
+
required: false,
|
54
|
+
default: '30px'
|
55
|
+
},
|
56
|
+
cursor: {
|
57
|
+
required: false,
|
58
|
+
default: null
|
59
|
+
},
|
60
|
+
isStriked: {
|
61
|
+
required: false,
|
62
|
+
default: false
|
63
|
+
},
|
64
|
+
backgroundColor: {
|
65
|
+
required: false,
|
66
|
+
default: null
|
67
|
+
},
|
68
|
+
animation: {
|
69
|
+
required: false,
|
70
|
+
default: 'none'
|
71
|
+
}
|
72
|
+
})
|
66
73
|
|
67
|
-
const Wrapper = styled('div', {
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
})`
|
74
|
+
const Wrapper = styled('div', {
|
75
|
+
size: String,
|
76
|
+
disabled: Boolean,
|
77
|
+
cursor: String
|
78
|
+
})`
|
72
79
|
display: flex;
|
73
80
|
position: relative;
|
74
81
|
align-content: center;
|
@@ -81,7 +88,7 @@ const Wrapper = styled('div', {
|
|
81
88
|
line-height: 0;
|
82
89
|
`
|
83
90
|
|
84
|
-
const StrikedLine = styled('div', { color: String })`
|
91
|
+
const StrikedLine = styled('div', { color: String })`
|
85
92
|
display: flex;
|
86
93
|
position: absolute;
|
87
94
|
bottom: 0;
|
@@ -96,19 +103,19 @@ const StrikedLine = styled('div', { color: String })`
|
|
96
103
|
transform-origin: 0% 100%;
|
97
104
|
transform: rotate(-45deg);
|
98
105
|
`
|
99
|
-
const IconImage = styled('div', {
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
})`
|
106
|
+
const IconImage = styled('div', {
|
107
|
+
color: String,
|
108
|
+
backgroundColor: String,
|
109
|
+
hoveredColor: String,
|
110
|
+
animation: String
|
111
|
+
})`
|
105
112
|
animation: ${(props) => props.animation};
|
106
113
|
width: 100%;
|
107
114
|
svg {
|
108
115
|
width: 100%;
|
109
116
|
height: 100%;
|
110
117
|
background-color: ${(props) =>
|
111
|
-
|
118
|
+
props.backgroundColor ? props.backgroundColor : 'transparent'};
|
112
119
|
padding: ${(props) => (props.backgroundColor ? '3px' : '0')};
|
113
120
|
}
|
114
121
|
svg path {
|
@@ -127,13 +134,13 @@ const IconImage = styled('div', {
|
|
127
134
|
}
|
128
135
|
`
|
129
136
|
|
130
|
-
const icon = reactive({ html: '' })
|
137
|
+
const icon = reactive({ html: '' })
|
131
138
|
|
132
|
-
const loadSvg = async
|
133
|
-
|
134
|
-
}
|
139
|
+
const loadSvg = async() => {
|
140
|
+
icon.html = await fetchIcon(props.name.toLowerCase())
|
141
|
+
}
|
135
142
|
|
136
|
-
onMounted(() => loadSvg())
|
143
|
+
onMounted(() => loadSvg())
|
137
144
|
|
138
|
-
watch(() => props.name, loadSvg)
|
145
|
+
watch(() => props.name, loadSvg)
|
139
146
|
</script>
|
@@ -1,39 +1,43 @@
|
|
1
1
|
<template>
|
2
2
|
<Wrapper
|
3
|
-
:
|
4
|
-
:
|
5
|
-
:backgroundColor="backgroundColor"
|
6
|
-
:borderRadius="borderRadius"
|
7
|
-
:hasBorder="hasBorder"
|
3
|
+
:background-color="backgroundColor"
|
4
|
+
:border-radius="borderRadius"
|
8
5
|
:color="iconColor"
|
9
|
-
:hoveredBackgroundColor="hoveredBackgroundColor"
|
10
|
-
:isHovered="isHovered"
|
11
6
|
:data-id="dataId"
|
12
|
-
:
|
7
|
+
:disabled="disabled"
|
8
|
+
:has-border="hasBorder"
|
9
|
+
:hovered-background-color="hoveredBackgroundColor"
|
10
|
+
:is-hovered="isHovered"
|
11
|
+
:no-cursor="noCursor"
|
12
|
+
:size="size"
|
13
13
|
>
|
14
|
-
<
|
14
|
+
<Icon
|
15
|
+
:animation="isLoading ? 'fade 3s infinite' : 'none'"
|
16
|
+
:color="iconColor"
|
15
17
|
:disabled="disabled"
|
16
|
-
:
|
18
|
+
:hovered-color="hoveredIconColor"
|
19
|
+
:is-striked="isStriked"
|
17
20
|
:name="name"
|
18
|
-
:
|
19
|
-
:hoveredColor="hoveredIconColor"
|
20
|
-
:isStriked="isStriked"
|
21
|
-
:animation="isLoading ? 'fade 3s infinite' : 'none'"
|
21
|
+
:size="iconSize"
|
22
22
|
/>
|
23
23
|
|
24
|
-
<
|
25
|
-
<
|
24
|
+
<CaretIcon v-if="hasCaret">
|
25
|
+
<IconWrapper
|
26
|
+
border-radius="1px"
|
26
27
|
:disabled="disabled"
|
27
|
-
|
28
|
+
:hovered-background-color="hoveredIconColor"
|
29
|
+
:icon-color="iconColor"
|
28
30
|
name="arrow_down"
|
29
|
-
|
30
|
-
:hoveredBackgroundColor="hoveredIconColor"
|
31
|
-
borderRadius="1px"
|
31
|
+
size="10px"
|
32
32
|
/>
|
33
|
-
</
|
34
|
-
<
|
35
|
-
<
|
36
|
-
|
33
|
+
</CaretIcon>
|
34
|
+
<LockContainer v-if="hasLock">
|
35
|
+
<RCIcon
|
36
|
+
color="yellow"
|
37
|
+
name="lock"
|
38
|
+
size="9px"
|
39
|
+
/>
|
40
|
+
</LockContainer>
|
37
41
|
</Wrapper>
|
38
42
|
</template>
|
39
43
|
|
@@ -47,26 +51,26 @@
|
|
47
51
|
// size="60px" by default, this is 30px
|
48
52
|
// />
|
49
53
|
|
50
|
-
import styled from 'vue3-styled-components'
|
51
|
-
import
|
54
|
+
import styled from 'vue3-styled-components'
|
55
|
+
import RCIcon from '../icon'
|
52
56
|
|
53
|
-
const wrapperAttrs = {
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
}
|
64
|
-
const
|
57
|
+
const wrapperAttrs = {
|
58
|
+
color: String,
|
59
|
+
isHovered: Boolean,
|
60
|
+
borderRadius: String,
|
61
|
+
disabled: Boolean,
|
62
|
+
size: String,
|
63
|
+
backgroundColor: String,
|
64
|
+
hoveredBackgroundColor: String,
|
65
|
+
hasBorder: Boolean,
|
66
|
+
noCursor: Boolean
|
67
|
+
}
|
68
|
+
const LockContainer = styled.div`
|
65
69
|
position: absolute;
|
66
70
|
bottom: 6px;
|
67
71
|
right: 6px;
|
68
72
|
`
|
69
|
-
const Wrapper = styled('div', wrapperAttrs)`
|
73
|
+
const Wrapper = styled('div', wrapperAttrs)`
|
70
74
|
position: relative;
|
71
75
|
display: inline-flex;
|
72
76
|
width: ${(props) => props.size};
|
@@ -74,106 +78,106 @@ const Wrapper = styled('div', wrapperAttrs)`
|
|
74
78
|
border: ${(props) =>
|
75
79
|
props.hasBorder
|
76
80
|
? 'solid 1px ' + props.theme.colors[props.color] || props.color
|
77
|
-
|
81
|
+
: ''};
|
78
82
|
justify-content: center;
|
79
83
|
align-items: center;
|
80
84
|
cursor: ${(props) =>
|
81
|
-
|
85
|
+
props.noCursor ? 'auto' : props.disabled ? 'not-allowed' : 'pointer'};
|
82
86
|
background-color: ${(props) =>
|
83
|
-
|
87
|
+
props.theme.colors[props.backgroundColor] || props.backgroundColor};
|
84
88
|
border-radius: ${(props) => props.borderRadius};
|
85
89
|
${(props) =>
|
86
90
|
props.isHovered
|
87
91
|
? 'background-color:' +
|
88
92
|
props.theme.colors[props.hoveredBackgroundColor] ||
|
89
93
|
props.hoveredBackgroundColor
|
90
|
-
|
94
|
+
: ''};
|
91
95
|
&:hover {
|
92
96
|
background-color: ${(props) =>
|
93
97
|
props.theme.colors[props.hoveredBackgroundColor] ||
|
94
|
-
|
98
|
+
props.hoveredBackgroundColor};
|
95
99
|
}
|
96
100
|
`
|
97
|
-
const
|
101
|
+
const CaretIcon = styled.div`
|
98
102
|
position: absolute;
|
99
103
|
bottom: 3px;
|
100
104
|
right: 2px;
|
101
105
|
height: 10px;
|
102
106
|
`
|
103
107
|
|
104
|
-
export default {
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
108
|
+
export default {
|
109
|
+
name: 'IconWrapper',
|
110
|
+
components: {
|
111
|
+
Wrapper,
|
112
|
+
RCIcon,
|
113
|
+
CaretIcon,
|
114
|
+
LockContainer
|
115
|
+
},
|
116
|
+
props: {
|
117
|
+
disabled: {
|
118
|
+
required: false,
|
119
|
+
default: false
|
120
|
+
},
|
121
|
+
name: {
|
122
|
+
required: true
|
123
|
+
},
|
124
|
+
iconColor: {
|
125
|
+
required: false,
|
126
|
+
default: 'white'
|
127
|
+
},
|
128
|
+
hoveredIconColor: {
|
129
|
+
required: false
|
130
|
+
},
|
131
|
+
backgroundColor: {
|
132
|
+
required: false
|
133
|
+
},
|
134
|
+
hasBorder: {
|
135
|
+
required: false
|
136
|
+
},
|
137
|
+
hoveredBackgroundColor: {
|
138
|
+
required: false,
|
139
|
+
default: 'transparentWhite2'
|
140
|
+
},
|
141
|
+
size: {
|
142
|
+
required: false,
|
143
|
+
default: '32px'
|
144
|
+
},
|
145
|
+
iconSize: {
|
146
|
+
required: false,
|
147
|
+
default: '18px'
|
148
|
+
},
|
149
|
+
hasCaret: {
|
150
|
+
required: false,
|
151
|
+
default: false
|
152
|
+
},
|
153
|
+
borderRadius: {
|
154
|
+
required: false,
|
155
|
+
default: '6px'
|
156
|
+
},
|
157
|
+
dataId: {
|
158
|
+
type: String,
|
159
|
+
default: ''
|
160
|
+
},
|
161
|
+
isHovered: {
|
162
|
+
required: false,
|
163
|
+
default: false
|
164
|
+
},
|
165
|
+
isStriked: {
|
166
|
+
required: false,
|
167
|
+
default: false
|
168
|
+
},
|
169
|
+
isLoading: {
|
170
|
+
required: false,
|
171
|
+
default: false
|
172
|
+
},
|
173
|
+
noCursor: {
|
174
|
+
required: false,
|
175
|
+
default: false
|
176
|
+
},
|
177
|
+
hasLock: {
|
178
|
+
required: false,
|
179
|
+
default: false
|
180
|
+
}
|
176
181
|
}
|
177
182
|
}
|
178
|
-
}
|
179
183
|
</script>
|
@@ -1,17 +1,20 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
<InfoContainer>
|
3
|
+
<RCIcon
|
4
|
+
name="info"
|
5
|
+
size="24px"
|
6
|
+
/>
|
7
|
+
<TextContainer>
|
8
|
+
<slot></slot>
|
9
|
+
</TextContainer>
|
10
|
+
</InfoContainer>
|
8
11
|
</template>
|
9
12
|
|
10
13
|
<script>
|
11
|
-
import styled from 'vue3-styled-components'
|
12
|
-
import
|
14
|
+
import styled from 'vue3-styled-components'
|
15
|
+
import RCIcon from '../icon'
|
13
16
|
|
14
|
-
const InfoContainer = styled.div`
|
17
|
+
const InfoContainer = styled.div`
|
15
18
|
display: flex;
|
16
19
|
gap: 15px;
|
17
20
|
padding: 20px;
|
@@ -19,17 +22,17 @@ const InfoContainer = styled.div`
|
|
19
22
|
border-radius: 4px;
|
20
23
|
`
|
21
24
|
|
22
|
-
const TextContainer = styled.div`
|
25
|
+
const TextContainer = styled.div`
|
23
26
|
font-size: 13px;
|
24
27
|
width: 100%;
|
25
28
|
`
|
26
29
|
|
27
|
-
export default {
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
export default {
|
31
|
+
name: 'InfoCard',
|
32
|
+
components: {
|
33
|
+
RCIcon,
|
34
|
+
InfoContainer,
|
35
|
+
TextContainer
|
36
|
+
}
|
33
37
|
}
|
34
|
-
}
|
35
38
|
</script>
|