@eturnity/eturnity_reusable_components 7.45.5-EPDM-12680.3 → 7.45.5-EPDM-10609.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 +1 -1
- package/src/assets/svgIcons/checkmark.svg +3 -0
- package/src/assets/svgIcons/star.svg +3 -0
- package/src/assets/theme.js +1 -0
- package/src/components/buttons/buttonIcon/index.vue +1 -3
- package/src/components/icon/index.vue +0 -1
- package/src/components/infoText/constants.js +4 -0
- package/src/components/infoText/index.vue +115 -18
- package/src/components/inputs/inputNumber/index.vue +8 -170
- package/src/components/inputs/inputText/index.vue +2 -23
- package/src/components/inputs/radioButton/index.vue +0 -1
- package/src/components/inputs/select/index.vue +17 -57
- package/src/components/inputs/select/option/index.vue +4 -14
- package/src/components/spinner/index.vue +0 -11
- package/src/assets/svgIcons/collapse_all.svg +0 -4
- package/src/assets/svgIcons/hybrid.svg +0 -4
- package/src/assets/svgIcons/module.svg +0 -3
- package/src/assets/svgIcons/optimizer.svg +0 -6
- package/src/assets/svgIcons/string_design.svg +0 -5
- package/src/components/stringDesign/DropdownMenu/index.vue +0 -533
@@ -27,9 +27,7 @@
|
|
27
27
|
<InputContainer
|
28
28
|
ref="inputElement"
|
29
29
|
:background-color="backgroundColor"
|
30
|
-
:border-color="borderColor"
|
31
30
|
:data-id="inputDataId"
|
32
|
-
:default-padding="defaultPadding"
|
33
31
|
:disabled="disabled"
|
34
32
|
:disabled-background-color="disabledBackgroundColor"
|
35
33
|
:font-color="fontColor"
|
@@ -60,13 +58,6 @@
|
|
60
58
|
<IconWrapper v-if="hasError" size="16px">
|
61
59
|
<Icon cursor="default" name="warning" size="16px" />
|
62
60
|
</IconWrapper>
|
63
|
-
<IconWrapper
|
64
|
-
v-if="iconName && !hasError && inputType !== 'password'"
|
65
|
-
:default-padding="defaultPadding"
|
66
|
-
size="16px"
|
67
|
-
>
|
68
|
-
<Icon color="white" cursor="default" :name="iconName" size="16px" />
|
69
|
-
</IconWrapper>
|
70
61
|
</IconContainer>
|
71
62
|
<ErrorMessage v-if="hasError && hasErrorMessage">
|
72
63
|
{{ dynamicErrorMessage }}
|
@@ -131,7 +122,6 @@
|
|
131
122
|
borderColor: String,
|
132
123
|
inputHeight: String,
|
133
124
|
disabledBackgroundColor: String,
|
134
|
-
defaultPadding: Boolean,
|
135
125
|
}
|
136
126
|
const InputContainer = styled('input', inputProps)`
|
137
127
|
border: ${(props) =>
|
@@ -149,8 +139,6 @@
|
|
149
139
|
? '11px 25px 11px 10px'
|
150
140
|
: props.inputType === 'password'
|
151
141
|
? '11px 25px 11px 10px'
|
152
|
-
: props.defaultPadding
|
153
|
-
? '10px 35px 10px 15px'
|
154
142
|
: '11px 5px 11px 10px'};
|
155
143
|
border-radius: 4px;
|
156
144
|
position: relative;
|
@@ -197,13 +185,13 @@
|
|
197
185
|
props.alignItems === 'vertical' || !props.hasLabel ? '1fr' : 'auto 1fr'};
|
198
186
|
`
|
199
187
|
|
200
|
-
const IconAttrs = { size: String
|
188
|
+
const IconAttrs = { size: String }
|
201
189
|
const IconWrapper = styled('div', IconAttrs)`
|
202
190
|
position: absolute;
|
203
191
|
top: 0;
|
204
192
|
bottom: 0;
|
205
193
|
margin: auto;
|
206
|
-
right:
|
194
|
+
right: 5px;
|
207
195
|
height: ${(props) => (props.size ? props.size : 'auto')};
|
208
196
|
`
|
209
197
|
|
@@ -337,15 +325,6 @@
|
|
337
325
|
required: false,
|
338
326
|
default: '',
|
339
327
|
},
|
340
|
-
iconName: {
|
341
|
-
required: false,
|
342
|
-
default: null,
|
343
|
-
type: String,
|
344
|
-
},
|
345
|
-
defaultPadding: {
|
346
|
-
required: false,
|
347
|
-
default: false,
|
348
|
-
},
|
349
328
|
},
|
350
329
|
data() {
|
351
330
|
return {
|
@@ -17,9 +17,7 @@
|
|
17
17
|
>
|
18
18
|
<InputLabel
|
19
19
|
:font-color="
|
20
|
-
labelFontColor || colorMode == 'dark'
|
21
|
-
? 'white'
|
22
|
-
: 'eturnityGrey'
|
20
|
+
labelFontColor || colorMode == 'dark' ? 'white' : 'eturnityGrey'
|
23
21
|
"
|
24
22
|
:font-size="fontSize"
|
25
23
|
>{{ label }}
|
@@ -42,26 +40,18 @@
|
|
42
40
|
<SelectButton
|
43
41
|
ref="select"
|
44
42
|
:bg-color="
|
45
|
-
buttonBgColor || colorMode == 'dark'
|
46
|
-
? 'transparentBlack1'
|
47
|
-
: colorMode == 'transparent'
|
48
|
-
? 'transparent'
|
49
|
-
: 'white'
|
43
|
+
buttonBgColor || colorMode == 'dark' ? 'transparentBlack1' : 'white'
|
50
44
|
"
|
51
45
|
class="select-button"
|
52
|
-
:color-mode="colorMode"
|
53
46
|
:data-id="dataId"
|
54
47
|
:disabled="disabled"
|
55
48
|
:font-color="
|
56
|
-
buttonFontColor || colorMode == 'dark'
|
57
|
-
? 'white'
|
58
|
-
: 'black'
|
49
|
+
buttonFontColor || colorMode == 'dark' ? 'white' : 'black'
|
59
50
|
"
|
60
51
|
:font-size="fontSize"
|
61
52
|
:has-error="hasError"
|
62
53
|
:has-no-padding="isSearchBarVisible || !hasSelectButtonPadding"
|
63
54
|
:height="height"
|
64
|
-
:is-search-bar-visible="isSearchBarVisible"
|
65
55
|
:no-relative="noRelative"
|
66
56
|
:padding-left="paddingLeft"
|
67
57
|
:select-height="selectHeight"
|
@@ -82,11 +72,7 @@
|
|
82
72
|
ref="searchInput"
|
83
73
|
background-color="transparent"
|
84
74
|
:font-color="
|
85
|
-
buttonFontColor ||
|
86
|
-
colorMode == 'dark' ||
|
87
|
-
colorMode == 'transparent'
|
88
|
-
? 'white'
|
89
|
-
: 'black'
|
75
|
+
buttonFontColor || colorMode == 'dark' ? 'white' : 'black'
|
90
76
|
"
|
91
77
|
:font-size="fontSize"
|
92
78
|
input-height="34px"
|
@@ -106,30 +92,26 @@
|
|
106
92
|
>
|
107
93
|
<slot name="selector" :selected-value="selectedValue"></slot>
|
108
94
|
</Selector>
|
109
|
-
<Caret
|
110
|
-
class="caret_dropdown"
|
111
|
-
:color-mode="colorMode"
|
112
|
-
@click.stop="toggleCaretDropdown"
|
113
|
-
>
|
95
|
+
<Caret class="caret_dropdown" @click.stop="toggleCaretDropdown">
|
114
96
|
<Icon
|
115
97
|
v-if="isDropdownOpen"
|
116
98
|
:color="
|
117
|
-
caretColor || colorMode == 'dark'
|
99
|
+
caretColor || colorMode == 'dark'
|
118
100
|
? 'white'
|
119
101
|
: 'transparentBlack1'
|
120
102
|
"
|
121
103
|
name="arrow_up"
|
122
|
-
|
104
|
+
size="12px"
|
123
105
|
/>
|
124
106
|
<Icon
|
125
107
|
v-else
|
126
108
|
:color="
|
127
|
-
caretColor || colorMode == 'dark'
|
109
|
+
caretColor || colorMode == 'dark'
|
128
110
|
? 'white'
|
129
111
|
: 'transparentBlack1'
|
130
112
|
"
|
131
113
|
name="arrow_down"
|
132
|
-
|
114
|
+
size="12px"
|
133
115
|
/>
|
134
116
|
</Caret>
|
135
117
|
</SelectButton>
|
@@ -139,27 +121,15 @@
|
|
139
121
|
v-show="isSelectDropdownShown"
|
140
122
|
ref="dropdown"
|
141
123
|
:bg-color="
|
142
|
-
dropdownBgColor ||
|
143
|
-
colorMode == 'dark' ||
|
144
|
-
colorMode == 'transparent'
|
145
|
-
? 'black'
|
146
|
-
: 'white'
|
124
|
+
dropdownBgColor || colorMode == 'dark' ? 'black' : 'white'
|
147
125
|
"
|
148
126
|
:dropdown-position="dropdownPosition"
|
149
127
|
:font-color="
|
150
|
-
dropdownFontColor ||
|
151
|
-
colorMode == 'dark' ||
|
152
|
-
colorMode == 'transparent'
|
153
|
-
? 'white'
|
154
|
-
: 'black'
|
128
|
+
dropdownFontColor || colorMode == 'dark' ? 'white' : 'black'
|
155
129
|
"
|
156
130
|
:font-size="fontSize"
|
157
131
|
:hovered-bg-color="
|
158
|
-
colorMode == 'dark'
|
159
|
-
? '#000000'
|
160
|
-
: colorMode == 'transparent'
|
161
|
-
? 'grey6'
|
162
|
-
: dropdownBgColor
|
132
|
+
colorMode == 'dark' ? '#000000' : dropdownBgColor
|
163
133
|
"
|
164
134
|
:hovered-index="hoveredIndex"
|
165
135
|
:hovered-value="hoveredValue"
|
@@ -216,15 +186,12 @@
|
|
216
186
|
const CARET_WIDTH = '30px'
|
217
187
|
const BORDER_WIDTH = '1px'
|
218
188
|
|
219
|
-
const
|
220
|
-
const Caret = styled('div', CaretAttrs)`
|
189
|
+
const Caret = styled.div`
|
221
190
|
display: flex;
|
222
191
|
align-items: center;
|
223
192
|
justify-content: center;
|
224
|
-
width: ${
|
225
|
-
|
226
|
-
min-width: ${(props) =>
|
227
|
-
props.colorMode === 'transparent' ? '15px' : CARET_WIDTH};
|
193
|
+
width: ${CARET_WIDTH};
|
194
|
+
min-width: ${CARET_WIDTH};
|
228
195
|
height: 100%;
|
229
196
|
align-items: center;
|
230
197
|
cursor: pointer;
|
@@ -263,7 +230,6 @@
|
|
263
230
|
`
|
264
231
|
const OptionalLabel = styled.span`
|
265
232
|
font-weight: 300;
|
266
|
-
text-transform: lowercase;
|
267
233
|
`
|
268
234
|
const inputProps = {
|
269
235
|
selectWidth: String,
|
@@ -308,8 +274,6 @@
|
|
308
274
|
noRelative: Boolean,
|
309
275
|
tablePaddingLeft: String,
|
310
276
|
showDisabledBackground: Boolean,
|
311
|
-
colorMode: String,
|
312
|
-
isSearchBarVisible: Boolean,
|
313
277
|
}
|
314
278
|
const SelectButton = styled('div', selectButtonAttrs)`
|
315
279
|
position: ${(props) => (props.noRelative ? 'static' : 'relative')};
|
@@ -317,11 +281,7 @@
|
|
317
281
|
border-radius: 4px;
|
318
282
|
max-width: ${(props) => (props.selectWidth ? props.selectWidth : '100%')};
|
319
283
|
${(props) =>
|
320
|
-
props.
|
321
|
-
? props.isSearchBarVisible
|
322
|
-
? 'padding: 10px 15px 10px 5px;'
|
323
|
-
: 'padding: 10px 15px;'
|
324
|
-
: props.isSearchBarVisible
|
284
|
+
props.isSearchBarVisible
|
325
285
|
? ''
|
326
286
|
: `padding-left: ${
|
327
287
|
props.hasNoPadding
|
@@ -653,7 +613,7 @@
|
|
653
613
|
if (this.isDropdownOpen) {
|
654
614
|
return this.$refs.dropdown.$el.childElementCount > 1
|
655
615
|
? this.$refs.dropdown.$el.childElementCount
|
656
|
-
: this.$refs.dropdown.$el.children[0]
|
616
|
+
: !!this.$refs.dropdown.$el.children[0]
|
657
617
|
? this.$refs.dropdown.$el.children[0].childElementCount
|
658
618
|
: 0
|
659
619
|
}
|
@@ -1,12 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<OptionContainer
|
3
|
-
:background-color="
|
4
|
-
colorMode == 'dark'
|
5
|
-
? '#000000'
|
6
|
-
: colorMode == 'transparent'
|
7
|
-
? 'black'
|
8
|
-
: backgroundColor
|
9
|
-
"
|
3
|
+
:background-color="colorMode == 'dark' ? '#000000' : backgroundColor"
|
10
4
|
:cursor-type="cursorType"
|
11
5
|
:data-value="value"
|
12
6
|
:disabled-bg-color="disabledBgColor"
|
@@ -14,8 +8,6 @@
|
|
14
8
|
:hovered-bg-color="
|
15
9
|
colorMode == 'dark'
|
16
10
|
? '#000000'
|
17
|
-
: colorMode == 'transparent'
|
18
|
-
? 'grey6'
|
19
11
|
: hoveredBgColor
|
20
12
|
? hoveredBgColor
|
21
13
|
: 'grey5'
|
@@ -138,8 +130,7 @@
|
|
138
130
|
default: '12px 10px',
|
139
131
|
},
|
140
132
|
textColor: {
|
141
|
-
type:
|
142
|
-
required: false,
|
133
|
+
type: true,
|
143
134
|
default: 'inherit',
|
144
135
|
},
|
145
136
|
},
|
@@ -150,12 +141,11 @@
|
|
150
141
|
computed: {},
|
151
142
|
methods: {
|
152
143
|
clickHandler(e) {
|
153
|
-
if (this.isDisabled) {
|
144
|
+
if (this.isDisabled || !!this.$attrs?.onClick) {
|
154
145
|
// prevent emitter if the option is disabled
|
155
146
|
return
|
156
|
-
} else {
|
157
|
-
this.$parent.$emit('option-selected', this.value, e)
|
158
147
|
}
|
148
|
+
this.$parent.$emit('option-selected', this.value, e)
|
159
149
|
},
|
160
150
|
hoverHandler() {
|
161
151
|
this.$parent.$emit('option-hovered', this.value)
|
@@ -3,7 +3,6 @@
|
|
3
3
|
<Container>
|
4
4
|
<SpinnerWrapper data-test-id="spinner_full_wrapper">
|
5
5
|
<SpinnerSvg
|
6
|
-
:class="{ white: isWhite }"
|
7
6
|
data-test-id="spinner_full_icon"
|
8
7
|
:style="{ width: size, height: size }"
|
9
8
|
/>
|
@@ -17,7 +16,6 @@
|
|
17
16
|
>
|
18
17
|
<SpinnerWrapper data-test-id="spinner_wrapper">
|
19
18
|
<SpinnerSvg
|
20
|
-
:class="{ white: isWhite }"
|
21
19
|
data-test-id="spinner_icon"
|
22
20
|
:style="{ width: size, height: size }"
|
23
21
|
/>
|
@@ -56,10 +54,6 @@
|
|
56
54
|
const SpinnerWrapper = styled.div`
|
57
55
|
width: ${(props) => (props.size ? props.size : '60px')};
|
58
56
|
height: auto;
|
59
|
-
|
60
|
-
.white {
|
61
|
-
filter: brightness(0) invert(1);
|
62
|
-
}
|
63
57
|
`
|
64
58
|
|
65
59
|
export default {
|
@@ -86,11 +80,6 @@
|
|
86
80
|
default: '60px',
|
87
81
|
type: String,
|
88
82
|
},
|
89
|
-
isWhite: {
|
90
|
-
required: false,
|
91
|
-
default: false,
|
92
|
-
type: Boolean,
|
93
|
-
},
|
94
83
|
},
|
95
84
|
}
|
96
85
|
</script>
|
@@ -1,4 +0,0 @@
|
|
1
|
-
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.22998 11.8962H10.5006H12.2505V10.1463V8.97906H14.0004V5.47917H12.2505V4.31283V2.56289V2.55151H10.5006V2.56289H8.58218L7.76617 4.31283H10.5006V10.1463H5.04599L4.22998 11.8962Z" fill="white"/>
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.2622 4.79738C6.91629 4.63687 6.53076 4.54729 6.12431 4.54729C4.63054 4.54729 3.41919 5.75796 3.41919 7.25241C3.41919 8.33588 4.05591 9.26984 4.97534 9.70158L7.2622 4.79738ZM5.44786 3.11681C5.44786 3.49042 5.7507 3.79326 6.12431 3.79326C6.49793 3.79326 6.80077 3.49042 6.80077 3.11681V1.76459C6.80077 1.39097 6.49793 1.08813 6.12431 1.08813C5.7507 1.08813 5.44786 1.39097 5.44786 1.76459V3.11681ZM2.02818 7.88939H0.675962C0.302349 7.88939 -0.000488281 7.58655 -0.000488281 7.21294C-0.000488281 6.83932 0.302349 6.53649 0.675962 6.53649H2.02818C2.4018 6.53649 2.70463 6.83932 2.70463 7.21294C2.70463 7.58655 2.4018 7.88939 2.02818 7.88939ZM3.7057 10.5877L2.74955 11.5439C2.4855 11.8079 2.05745 11.8079 1.7934 11.5439C1.52935 11.2798 1.52935 10.8518 1.7934 10.5877L2.74955 9.63155C3.0136 9.36751 3.44165 9.36751 3.7057 9.63155C3.96975 9.8956 3.96975 10.3237 3.7057 10.5877ZM2.74955 4.79432L1.7934 3.83817C1.52935 3.57412 1.52935 3.14607 1.7934 2.88202C2.05745 2.61797 2.4855 2.61797 2.74955 2.88202L3.7057 3.83817C3.96975 4.10222 3.96975 4.53027 3.7057 4.79432C3.44165 5.05837 3.0136 5.05837 2.74955 4.79432Z" fill="white"/>
|
4
|
-
</svg>
|
@@ -1,3 +0,0 @@
|
|
1
|
-
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.0722 3.6H1.6V10.4H11.0722L7.87332 7.60217L7.18484 7L7.87332 6.39783L11.0722 3.6ZM12.4 9.43572V4.56428L9.61516 7L12.4 9.43572ZM0 2H1.6H12.4H14V3.6V10.4V12H12.4H1.6H0V10.4V3.6V2Z" fill="white"/>
|
3
|
-
</svg>
|
@@ -1,6 +0,0 @@
|
|
1
|
-
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<rect x="3.11079" y="3.10981" width="7.77778" height="7.77778" stroke="white" stroke-width="1.55556"/>
|
3
|
-
<line x1="3.72749" y1="10.3387" x2="10.7275" y2="3.3387" stroke="white" stroke-width="1.55556"/>
|
4
|
-
<line x1="-0.000366211" y1="7.05425" x2="2.99963" y2="7.05425" stroke="white" stroke-width="1.55556"/>
|
5
|
-
<line x1="10.9994" y1="6.99957" x2="13.9994" y2="6.99957" stroke="white" stroke-width="1.55556"/>
|
6
|
-
</svg>
|
@@ -1,5 +0,0 @@
|
|
1
|
-
<svg width="10" height="11" viewBox="0 0 10 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M2.85714 1.92857C2.85714 2.71755 2.21755 3.35714 1.42857 3.35714C0.639593 3.35714 0 2.71755 0 1.92857C0 1.13959 0.639593 0.5 1.42857 0.5C2.21755 0.5 2.85714 1.13959 2.85714 1.92857Z" fill="white"/>
|
3
|
-
<path d="M10 9.07143C10 9.86041 9.36041 10.5 8.57143 10.5C7.78245 10.5 7.14286 9.86041 7.14286 9.07143C7.14286 8.28245 7.78245 7.64286 8.57143 7.64286C9.36041 7.64286 10 8.28245 10 9.07143Z" fill="white"/>
|
4
|
-
<path d="M5.71429 3C5.71429 2.40827 6.19398 1.92857 6.78571 1.92857C7.37745 1.92857 7.85714 2.40827 7.85714 3V6.21429H9.28571V3C9.28571 1.61929 8.16643 0.5 6.78571 0.5C5.405 0.5 4.28571 1.61929 4.28571 3V8C4.28571 8.59173 3.80602 9.07143 3.21429 9.07143C2.62255 9.07143 2.14286 8.59173 2.14286 8V4.78571H0.714286V8C0.714286 9.38071 1.83357 10.5 3.21429 10.5C4.595 10.5 5.71429 9.38071 5.71429 8V3Z" fill="white"/>
|
5
|
-
</svg>
|