@eturnity/eturnity_reusable_components 7.24.3-EPDM-11320.0 → 7.24.3-EPDM-11143.1
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/.prettierrc +7 -0
- package/package.json +20 -6
- package/public/favicon.ico +0 -0
- package/public/index.html +17 -0
- package/src/App.vue +70 -75
- package/src/assets/svgIcons/copy.svg +10 -0
- package/src/components/addNewButton/index.vue +27 -24
- package/src/components/banner/actionBanner/index.vue +30 -32
- package/src/components/banner/banner/index.vue +80 -88
- package/src/components/banner/infoBanner/index.vue +44 -36
- package/src/components/buttons/buttonIcon/index.vue +78 -83
- package/src/components/buttons/closeButton/index.vue +26 -26
- package/src/components/buttons/mainButton/index.vue +76 -80
- package/src/components/card/index.vue +52 -56
- package/src/components/collapsableInfoText/index.vue +76 -81
- package/src/components/deleteIcon/index.vue +28 -31
- package/src/components/draggableInputHandle/index.vue +17 -20
- package/src/components/dropdown/Dropdown.stories.js +8 -8
- package/src/components/dropdown/index.vue +72 -75
- package/src/components/errorMessage/index.vue +23 -23
- package/src/components/filter/filterSettings.vue +329 -349
- package/src/components/filter/index.vue +130 -130
- package/src/components/filter/parentDropdown.vue +40 -43
- package/src/components/icon/Icons.stories.js +4 -4
- package/src/components/icon/iconCache.js +1 -1
- package/src/components/icon/iconCollection.vue +37 -40
- package/src/components/icon/index.vue +65 -72
- package/src/components/iconWrapper/index.vue +118 -122
- package/src/components/infoCard/index.vue +17 -20
- package/src/components/infoText/index.vue +82 -88
- package/src/components/inputs/checkbox/index.vue +94 -91
- package/src/components/inputs/inputNumber/index.vue +488 -508
- package/src/components/inputs/inputNumberQuestion/index.vue +124 -127
- package/src/components/inputs/inputText/index.vue +252 -265
- package/src/components/inputs/radioButton/index.vue +120 -135
- package/src/components/inputs/searchInput/index.vue +81 -84
- package/src/components/inputs/select/index.vue +631 -644
- 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 +152 -159
- package/src/components/inputs/textAreaInput/index.vue +113 -120
- package/src/components/inputs/toggle/index.vue +127 -137
- package/src/components/label/index.vue +61 -64
- package/src/components/markerItem/index.vue +40 -40
- package/src/components/modals/actionModal/index.vue +29 -32
- package/src/components/modals/infoModal/index.vue +27 -34
- package/src/components/modals/modal/index.vue +80 -88
- package/src/components/navigationTabs/index.vue +47 -50
- package/src/components/pageSubtitle/index.vue +29 -33
- package/src/components/pageTitle/index.vue +39 -47
- package/src/components/pagination/index.vue +62 -64
- package/src/components/progressBar/index.vue +67 -70
- package/src/components/projectMarker/index.vue +163 -172
- package/src/components/rangeSlider/Slider.vue +449 -449
- package/src/components/rangeSlider/index.vue +270 -282
- package/src/components/rangeSlider/utils/dom.js +3 -3
- package/src/components/selectedOptions/index.vue +51 -51
- package/src/components/sideMenu/index.vue +109 -117
- package/src/components/spinner/index.vue +34 -37
- package/src/components/tableDropdown/index.vue +326 -343
- package/src/components/tables/mainTable/index.vue +106 -109
- package/src/components/tables/viewTable/index.vue +92 -105
- package/src/components/threeDots/index.vue +171 -174
- package/src/components/videoThumbnail/index.vue +59 -67
- package/src/components/videoThumbnail/videoThumbnail.stories.js +6 -6
- package/.eslintrc.js +0 -125
@@ -1,22 +1,15 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
|
4
|
-
:disabled="disabled"
|
5
|
-
:size="size"
|
6
|
-
>
|
7
|
-
<IconImage
|
8
|
-
:animation="animation"
|
9
|
-
:background-color="backgroundColor"
|
2
|
+
<wrapper :disabled="disabled" :size="size" :cursor="cursor">
|
3
|
+
<icon-image
|
10
4
|
:color="color"
|
5
|
+
:background-color="backgroundColor"
|
11
6
|
:hovered-color="hoveredColor"
|
7
|
+
:animation="animation"
|
12
8
|
>
|
13
|
-
<i v-html="icon.html"
|
14
|
-
</
|
15
|
-
<
|
16
|
-
|
17
|
-
:color="color"
|
18
|
-
/>
|
19
|
-
</Wrapper>
|
9
|
+
<i v-html="icon.html" />
|
10
|
+
</icon-image>
|
11
|
+
<striked-line v-if="isStriked" :color="color"></striked-line>
|
12
|
+
</wrapper>
|
20
13
|
</template>
|
21
14
|
|
22
15
|
<script setup>
|
@@ -31,51 +24,51 @@
|
|
31
24
|
// isStriked = "true"
|
32
25
|
// />
|
33
26
|
|
34
|
-
|
35
|
-
|
36
|
-
|
27
|
+
import { onMounted, reactive, watch } from 'vue'
|
28
|
+
import styled from 'vue3-styled-components'
|
29
|
+
import { fetchIcon } from './iconCache'
|
37
30
|
|
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
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
31
|
+
const props = defineProps({
|
32
|
+
disabled: {
|
33
|
+
required: false,
|
34
|
+
default: false
|
35
|
+
},
|
36
|
+
name: {
|
37
|
+
required: true
|
38
|
+
},
|
39
|
+
color: {
|
40
|
+
required: false
|
41
|
+
},
|
42
|
+
hoveredColor: {
|
43
|
+
required: false
|
44
|
+
},
|
45
|
+
size: {
|
46
|
+
required: false,
|
47
|
+
default: '30px'
|
48
|
+
},
|
49
|
+
cursor: {
|
50
|
+
required: false,
|
51
|
+
default: null
|
52
|
+
},
|
53
|
+
isStriked: {
|
54
|
+
required: false,
|
55
|
+
default: false
|
56
|
+
},
|
57
|
+
backgroundColor: {
|
58
|
+
required: false,
|
59
|
+
default: null
|
60
|
+
},
|
61
|
+
animation: {
|
62
|
+
required: false,
|
63
|
+
default: 'none'
|
64
|
+
}
|
65
|
+
})
|
73
66
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
67
|
+
const Wrapper = styled('div', {
|
68
|
+
size: String,
|
69
|
+
disabled: Boolean,
|
70
|
+
cursor: String
|
71
|
+
})`
|
79
72
|
display: flex;
|
80
73
|
position: relative;
|
81
74
|
align-content: center;
|
@@ -88,7 +81,7 @@
|
|
88
81
|
line-height: 0;
|
89
82
|
`
|
90
83
|
|
91
|
-
|
84
|
+
const StrikedLine = styled('div', { color: String })`
|
92
85
|
display: flex;
|
93
86
|
position: absolute;
|
94
87
|
bottom: 0;
|
@@ -103,19 +96,19 @@
|
|
103
96
|
transform-origin: 0% 100%;
|
104
97
|
transform: rotate(-45deg);
|
105
98
|
`
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
99
|
+
const IconImage = styled('div', {
|
100
|
+
color: String,
|
101
|
+
backgroundColor: String,
|
102
|
+
hoveredColor: String,
|
103
|
+
animation: String
|
104
|
+
})`
|
112
105
|
animation: ${(props) => props.animation};
|
113
106
|
width: 100%;
|
114
107
|
svg {
|
115
108
|
width: 100%;
|
116
109
|
height: 100%;
|
117
110
|
background-color: ${(props) =>
|
118
|
-
|
111
|
+
props.backgroundColor ? props.backgroundColor : 'transparent'};
|
119
112
|
padding: ${(props) => (props.backgroundColor ? '3px' : '0')};
|
120
113
|
}
|
121
114
|
svg path {
|
@@ -134,13 +127,13 @@
|
|
134
127
|
}
|
135
128
|
`
|
136
129
|
|
137
|
-
|
130
|
+
const icon = reactive({ html: '' })
|
138
131
|
|
139
|
-
|
140
|
-
|
141
|
-
|
132
|
+
const loadSvg = async () => {
|
133
|
+
icon.html = await fetchIcon(props.name.toLowerCase())
|
134
|
+
}
|
142
135
|
|
143
|
-
|
136
|
+
onMounted(() => loadSvg())
|
144
137
|
|
145
|
-
|
138
|
+
watch(() => props.name, loadSvg)
|
146
139
|
</script>
|
@@ -1,43 +1,39 @@
|
|
1
1
|
<template>
|
2
2
|
<Wrapper
|
3
|
-
:background-color="backgroundColor"
|
4
|
-
:border-radius="borderRadius"
|
5
|
-
:color="iconColor"
|
6
|
-
:data-id="dataId"
|
7
3
|
:disabled="disabled"
|
8
|
-
:has-border="hasBorder"
|
9
|
-
:hovered-background-color="hoveredBackgroundColor"
|
10
|
-
:is-hovered="isHovered"
|
11
|
-
:no-cursor="noCursor"
|
12
4
|
:size="size"
|
5
|
+
:backgroundColor="backgroundColor"
|
6
|
+
:borderRadius="borderRadius"
|
7
|
+
:hasBorder="hasBorder"
|
8
|
+
:color="iconColor"
|
9
|
+
:hoveredBackgroundColor="hoveredBackgroundColor"
|
10
|
+
:isHovered="isHovered"
|
11
|
+
:data-id="dataId"
|
12
|
+
:noCursor="noCursor"
|
13
13
|
>
|
14
|
-
<
|
15
|
-
:animation="isLoading ? 'fade 3s infinite' : 'none'"
|
16
|
-
:color="iconColor"
|
14
|
+
<icon
|
17
15
|
:disabled="disabled"
|
18
|
-
:hovered-color="hoveredIconColor"
|
19
|
-
:is-striked="isStriked"
|
20
|
-
:name="name"
|
21
16
|
:size="iconSize"
|
17
|
+
:name="name"
|
18
|
+
:color="iconColor"
|
19
|
+
:hoveredColor="hoveredIconColor"
|
20
|
+
:isStriked="isStriked"
|
21
|
+
:animation="isLoading ? 'fade 3s infinite' : 'none'"
|
22
22
|
/>
|
23
23
|
|
24
|
-
<
|
25
|
-
<
|
26
|
-
border-radius="1px"
|
24
|
+
<caret v-if="hasCaret">
|
25
|
+
<iconWrapper
|
27
26
|
:disabled="disabled"
|
28
|
-
:hovered-background-color="hoveredIconColor"
|
29
|
-
:icon-color="iconColor"
|
30
|
-
name="arrow_down"
|
31
27
|
size="10px"
|
28
|
+
name="arrow_down"
|
29
|
+
:iconColor="iconColor"
|
30
|
+
:hoveredBackgroundColor="hoveredIconColor"
|
31
|
+
borderRadius="1px"
|
32
32
|
/>
|
33
|
-
</
|
34
|
-
<
|
35
|
-
<
|
36
|
-
|
37
|
-
name="lock"
|
38
|
-
size="9px"
|
39
|
-
/>
|
40
|
-
</LockContainer>
|
33
|
+
</caret>
|
34
|
+
<lockContainer v-if="hasLock">
|
35
|
+
<icon size="9px" name="lock" color="yellow" />
|
36
|
+
</lockContainer>
|
41
37
|
</Wrapper>
|
42
38
|
</template>
|
43
39
|
|
@@ -51,26 +47,26 @@
|
|
51
47
|
// size="60px" by default, this is 30px
|
52
48
|
// />
|
53
49
|
|
54
|
-
|
55
|
-
|
50
|
+
import styled from 'vue3-styled-components'
|
51
|
+
import icon from '../icon'
|
56
52
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
53
|
+
const wrapperAttrs = {
|
54
|
+
color: String,
|
55
|
+
isHovered: Boolean,
|
56
|
+
borderRadius: String,
|
57
|
+
disabled: Boolean,
|
58
|
+
size: String,
|
59
|
+
backgroundColor: String,
|
60
|
+
hoveredBackgroundColor: String,
|
61
|
+
hasBorder: Boolean,
|
62
|
+
noCursor: Boolean
|
63
|
+
}
|
64
|
+
const lockContainer = styled.div`
|
69
65
|
position: absolute;
|
70
66
|
bottom: 6px;
|
71
67
|
right: 6px;
|
72
68
|
`
|
73
|
-
|
69
|
+
const Wrapper = styled('div', wrapperAttrs)`
|
74
70
|
position: relative;
|
75
71
|
display: inline-flex;
|
76
72
|
width: ${(props) => props.size};
|
@@ -78,106 +74,106 @@
|
|
78
74
|
border: ${(props) =>
|
79
75
|
props.hasBorder
|
80
76
|
? 'solid 1px ' + props.theme.colors[props.color] || props.color
|
81
|
-
|
77
|
+
: ''};
|
82
78
|
justify-content: center;
|
83
79
|
align-items: center;
|
84
80
|
cursor: ${(props) =>
|
85
|
-
|
81
|
+
props.noCursor ? 'auto' : props.disabled ? 'not-allowed' : 'pointer'};
|
86
82
|
background-color: ${(props) =>
|
87
|
-
|
83
|
+
props.theme.colors[props.backgroundColor] || props.backgroundColor};
|
88
84
|
border-radius: ${(props) => props.borderRadius};
|
89
85
|
${(props) =>
|
90
86
|
props.isHovered
|
91
87
|
? 'background-color:' +
|
92
88
|
props.theme.colors[props.hoveredBackgroundColor] ||
|
93
89
|
props.hoveredBackgroundColor
|
94
|
-
|
90
|
+
: ''};
|
95
91
|
&:hover {
|
96
92
|
background-color: ${(props) =>
|
97
93
|
props.theme.colors[props.hoveredBackgroundColor] ||
|
98
|
-
|
94
|
+
props.hoveredBackgroundColor};
|
99
95
|
}
|
100
96
|
`
|
101
|
-
|
97
|
+
const caret = styled.div`
|
102
98
|
position: absolute;
|
103
99
|
bottom: 3px;
|
104
100
|
right: 2px;
|
105
101
|
height: 10px;
|
106
102
|
`
|
107
103
|
|
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
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
}
|
104
|
+
export default {
|
105
|
+
name: 'iconWrapper',
|
106
|
+
components: {
|
107
|
+
Wrapper,
|
108
|
+
icon,
|
109
|
+
caret,
|
110
|
+
lockContainer
|
111
|
+
},
|
112
|
+
props: {
|
113
|
+
disabled: {
|
114
|
+
required: false,
|
115
|
+
default: false
|
116
|
+
},
|
117
|
+
name: {
|
118
|
+
required: true
|
119
|
+
},
|
120
|
+
iconColor: {
|
121
|
+
required: false,
|
122
|
+
default: 'white'
|
123
|
+
},
|
124
|
+
hoveredIconColor: {
|
125
|
+
required: false
|
126
|
+
},
|
127
|
+
backgroundColor: {
|
128
|
+
required: false
|
129
|
+
},
|
130
|
+
hasBorder: {
|
131
|
+
required: false
|
132
|
+
},
|
133
|
+
hoveredBackgroundColor: {
|
134
|
+
required: false,
|
135
|
+
default: 'transparentWhite2'
|
136
|
+
},
|
137
|
+
size: {
|
138
|
+
required: false,
|
139
|
+
default: '32px'
|
140
|
+
},
|
141
|
+
iconSize: {
|
142
|
+
required: false,
|
143
|
+
default: '18px'
|
144
|
+
},
|
145
|
+
hasCaret: {
|
146
|
+
required: false,
|
147
|
+
default: false
|
148
|
+
},
|
149
|
+
borderRadius: {
|
150
|
+
required: false,
|
151
|
+
default: '6px'
|
152
|
+
},
|
153
|
+
dataId: {
|
154
|
+
type: String,
|
155
|
+
default: ''
|
156
|
+
},
|
157
|
+
isHovered: {
|
158
|
+
required: false,
|
159
|
+
default: false
|
160
|
+
},
|
161
|
+
isStriked: {
|
162
|
+
required: false,
|
163
|
+
default: false
|
164
|
+
},
|
165
|
+
isLoading: {
|
166
|
+
required: false,
|
167
|
+
default: false
|
168
|
+
},
|
169
|
+
noCursor: {
|
170
|
+
required: false,
|
171
|
+
default: false
|
172
|
+
},
|
173
|
+
hasLock: {
|
174
|
+
required: false,
|
175
|
+
default: false
|
181
176
|
}
|
182
177
|
}
|
178
|
+
}
|
183
179
|
</script>
|
@@ -1,20 +1,17 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<slot></slot>
|
9
|
-
</TextContainer>
|
10
|
-
</InfoContainer>
|
2
|
+
<info-container>
|
3
|
+
<icon name="info" size="24px" />
|
4
|
+
<text-container>
|
5
|
+
<slot />
|
6
|
+
</text-container>
|
7
|
+
</info-container>
|
11
8
|
</template>
|
12
9
|
|
13
10
|
<script>
|
14
|
-
|
15
|
-
|
11
|
+
import styled from 'vue3-styled-components'
|
12
|
+
import Icon from '../icon'
|
16
13
|
|
17
|
-
|
14
|
+
const InfoContainer = styled.div`
|
18
15
|
display: flex;
|
19
16
|
gap: 15px;
|
20
17
|
padding: 20px;
|
@@ -22,17 +19,17 @@
|
|
22
19
|
border-radius: 4px;
|
23
20
|
`
|
24
21
|
|
25
|
-
|
22
|
+
const TextContainer = styled.div`
|
26
23
|
font-size: 13px;
|
27
24
|
width: 100%;
|
28
25
|
`
|
29
26
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
}
|
27
|
+
export default {
|
28
|
+
name: 'InfoCard',
|
29
|
+
components: {
|
30
|
+
Icon,
|
31
|
+
InfoContainer,
|
32
|
+
TextContainer
|
37
33
|
}
|
34
|
+
}
|
38
35
|
</script>
|