@eturnity/eturnity_reusable_components 7.39.4--EPDM-10842.0 → 7.39.4--EPDM-12129.2
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/components/addNewButton/index.vue +5 -1
- package/src/components/buttons/mainButton/index.vue +5 -0
- package/src/components/iconWrapper/index.vue +5 -0
- package/src/components/infoText/index.vue +1 -1
- package/src/components/inputs/checkbox/index.vue +5 -0
- package/src/components/inputs/inputNumber/index.vue +10 -7
- package/src/components/inputs/inputText/index.vue +5 -0
- package/src/components/inputs/radioButton/index.vue +5 -0
- package/src/components/inputs/searchInput/index.vue +6 -0
- package/src/components/inputs/select/index.vue +7 -1
- package/src/components/inputs/textAreaInput/index.vue +6 -0
- package/src/components/inputs/toggle/index.vue +5 -1
- package/src/components/rangeSlider/Slider.vue +5 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<PageContainer :should-position="shouldPosition">
|
3
|
-
<ButtonContainer :data-id="dataId">
|
3
|
+
<ButtonContainer :data-id="dataId" :data-test-id="dataTestId">
|
4
4
|
<PlusButtonSvg />
|
5
5
|
</ButtonContainer>
|
6
6
|
</PageContainer>
|
@@ -57,6 +57,10 @@
|
|
57
57
|
type: String,
|
58
58
|
default: '',
|
59
59
|
},
|
60
|
+
dataTestId: {
|
61
|
+
type: String,
|
62
|
+
default: '',
|
63
|
+
},
|
60
64
|
},
|
61
65
|
}
|
62
66
|
</script>
|
@@ -4,6 +4,7 @@
|
|
4
4
|
:id="id"
|
5
5
|
:custom-color="customColor"
|
6
6
|
:data-id="dataId"
|
7
|
+
:data-test-id="dataTestId"
|
7
8
|
:font-color="fontColor"
|
8
9
|
:is-disabled="isDisabled"
|
9
10
|
:min-width="minWidth"
|
@@ -145,6 +146,10 @@
|
|
145
146
|
type: String,
|
146
147
|
default: '',
|
147
148
|
},
|
149
|
+
dataTestId: {
|
150
|
+
type: String,
|
151
|
+
default: '',
|
152
|
+
},
|
148
153
|
},
|
149
154
|
}
|
150
155
|
</script>
|
@@ -4,6 +4,7 @@
|
|
4
4
|
:border-radius="borderRadius"
|
5
5
|
:color="iconColor"
|
6
6
|
:data-id="dataId"
|
7
|
+
:data-test-id="dataTestId"
|
7
8
|
:disabled="disabled"
|
8
9
|
:has-border="hasBorder"
|
9
10
|
:hovered-background-color="hoveredBackgroundColor"
|
@@ -154,6 +155,10 @@
|
|
154
155
|
type: String,
|
155
156
|
default: '',
|
156
157
|
},
|
158
|
+
dataTestId: {
|
159
|
+
type: String,
|
160
|
+
default: '',
|
161
|
+
},
|
157
162
|
isHovered: {
|
158
163
|
required: false,
|
159
164
|
default: false,
|
@@ -13,6 +13,7 @@
|
|
13
13
|
<InputCheckbox
|
14
14
|
:checked="isChecked"
|
15
15
|
:data-id="dataId"
|
16
|
+
:data-test-id="dataTestId"
|
16
17
|
type="checkbox"
|
17
18
|
@change="onChangeHandler(!isChecked)"
|
18
19
|
/>
|
@@ -203,6 +204,10 @@
|
|
203
204
|
type: String,
|
204
205
|
default: '',
|
205
206
|
},
|
207
|
+
dataTestId: {
|
208
|
+
type: String,
|
209
|
+
default: '',
|
210
|
+
},
|
206
211
|
cursorType: {
|
207
212
|
type: String,
|
208
213
|
default: 'pointer',
|
@@ -13,7 +13,11 @@
|
|
13
13
|
</LabelSlotWrapper>
|
14
14
|
|
15
15
|
<LabelWrapper v-if="labelText">
|
16
|
-
<LabelText
|
16
|
+
<LabelText
|
17
|
+
:data-id="labelDataId"
|
18
|
+
:data-test-id="labelDataTestId"
|
19
|
+
:label-font-color="labelFontColor"
|
20
|
+
>
|
17
21
|
{{ labelText }}
|
18
22
|
</LabelText>
|
19
23
|
|
@@ -21,7 +25,6 @@
|
|
21
25
|
v-if="labelInfoText"
|
22
26
|
:align-arrow="labelInfoAlign"
|
23
27
|
:text="labelInfoText"
|
24
|
-
:width="infoWidth"
|
25
28
|
/>
|
26
29
|
</LabelWrapper>
|
27
30
|
<InputWrapper>
|
@@ -32,6 +35,7 @@
|
|
32
35
|
:background-color="backgroundColor"
|
33
36
|
:border-color="borderColor"
|
34
37
|
:data-id="inputDataId"
|
38
|
+
:data-test-id="inputDataTestId"
|
35
39
|
:disabled="disabled"
|
36
40
|
:font-color="fontColor"
|
37
41
|
:font-size="fontSize"
|
@@ -450,11 +454,6 @@
|
|
450
454
|
required: false,
|
451
455
|
default: null,
|
452
456
|
},
|
453
|
-
infoWidth: {
|
454
|
-
required: false,
|
455
|
-
default: '200px',
|
456
|
-
type: String,
|
457
|
-
},
|
458
457
|
labelInfoAlign: {
|
459
458
|
required: false,
|
460
459
|
default: 'left',
|
@@ -502,6 +501,10 @@
|
|
502
501
|
required: false,
|
503
502
|
default: '',
|
504
503
|
},
|
504
|
+
dataTestId: {
|
505
|
+
required: false,
|
506
|
+
default: '',
|
507
|
+
},
|
505
508
|
showSelect: {
|
506
509
|
type: Boolean,
|
507
510
|
default: false,
|
@@ -28,6 +28,7 @@
|
|
28
28
|
ref="inputElement"
|
29
29
|
:background-color="backgroundColor"
|
30
30
|
:data-id="inputDataId"
|
31
|
+
:data-test-id="dataTestId"
|
31
32
|
:disabled="disabled"
|
32
33
|
:disabled-background-color="disabledBackgroundColor"
|
33
34
|
:font-color="fontColor"
|
@@ -324,6 +325,10 @@
|
|
324
325
|
required: false,
|
325
326
|
default: '',
|
326
327
|
},
|
328
|
+
dataTestId: {
|
329
|
+
required: false,
|
330
|
+
default: '',
|
331
|
+
},
|
327
332
|
},
|
328
333
|
data() {
|
329
334
|
return {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
<Radio
|
12
12
|
:checked="selectedOption === item.value"
|
13
13
|
:data-id="`radio_button_${dataId}_option_${item.value}`"
|
14
|
+
:data-test-id="dataTestId"
|
14
15
|
:disabled="item.disabled"
|
15
16
|
:name="'radioButtons_' + radioName"
|
16
17
|
type="radio"
|
@@ -247,6 +248,10 @@
|
|
247
248
|
type: String,
|
248
249
|
default: 'key',
|
249
250
|
},
|
251
|
+
dataTestId: {
|
252
|
+
type: String,
|
253
|
+
default: '',
|
254
|
+
},
|
250
255
|
},
|
251
256
|
data() {
|
252
257
|
return {
|
@@ -5,6 +5,7 @@
|
|
5
5
|
<InputContainer
|
6
6
|
ref="inputElement"
|
7
7
|
:data-id="dataId"
|
8
|
+
:data-test-id="dataTestId"
|
8
9
|
:disabled="disabled"
|
9
10
|
:has-focus="hasFocus"
|
10
11
|
:input-width="inputWidth"
|
@@ -120,6 +121,11 @@
|
|
120
121
|
required: false,
|
121
122
|
default: '',
|
122
123
|
},
|
124
|
+
dataTestId: {
|
125
|
+
required: false,
|
126
|
+
default: '',
|
127
|
+
type: String,
|
128
|
+
},
|
123
129
|
iconPosition: {
|
124
130
|
type: String,
|
125
131
|
default: 'right',
|
@@ -13,6 +13,7 @@
|
|
13
13
|
<LabelWrapper
|
14
14
|
v-if="label"
|
15
15
|
:data-id="labelDataId"
|
16
|
+
:data-test-id="dataTestId"
|
16
17
|
:info-text-message="!!infoTextMessage || !!$slots.infoText"
|
17
18
|
>
|
18
19
|
<InputLabel
|
@@ -44,6 +45,7 @@
|
|
44
45
|
"
|
45
46
|
class="select-button"
|
46
47
|
:data-id="dataId"
|
48
|
+
:data-test-id="dataTestId"
|
47
49
|
:disabled="disabled"
|
48
50
|
:font-color="
|
49
51
|
buttonFontColor || colorMode == 'dark' ? 'white' : 'black'
|
@@ -553,6 +555,10 @@
|
|
553
555
|
type: String,
|
554
556
|
default: '',
|
555
557
|
},
|
558
|
+
dataTestId: {
|
559
|
+
type: String,
|
560
|
+
default: '',
|
561
|
+
},
|
556
562
|
hasSelectButtonPadding: {
|
557
563
|
required: false,
|
558
564
|
type: Boolean,
|
@@ -613,7 +619,7 @@
|
|
613
619
|
if (this.isDropdownOpen) {
|
614
620
|
return this.$refs.dropdown.$el.childElementCount > 1
|
615
621
|
? this.$refs.dropdown.$el.childElementCount
|
616
|
-
:
|
622
|
+
: this.$refs.dropdown.$el.children[0]
|
617
623
|
? this.$refs.dropdown.$el.children[0].childElementCount
|
618
624
|
: 0
|
619
625
|
}
|
@@ -18,6 +18,7 @@
|
|
18
18
|
>
|
19
19
|
<textarea
|
20
20
|
:data-id="inputDataId"
|
21
|
+
:data-test-id="dataTestId"
|
21
22
|
:disabled="isDisabled"
|
22
23
|
:placeholder="placeholder"
|
23
24
|
:resize="resize"
|
@@ -185,6 +186,11 @@
|
|
185
186
|
required: false,
|
186
187
|
default: '',
|
187
188
|
},
|
189
|
+
dataTestId: {
|
190
|
+
required: false,
|
191
|
+
default: '',
|
192
|
+
type: String,
|
193
|
+
},
|
188
194
|
},
|
189
195
|
methods: {
|
190
196
|
onChangeHandler($event) {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<Container>
|
3
3
|
<FlexWrapper
|
4
4
|
:data-id="dataId"
|
5
|
-
data-test-id="page_wrapper"
|
5
|
+
:data-test-id="dataId ? dataId : 'page_wrapper'"
|
6
6
|
:disabled="disabled"
|
7
7
|
:size="size"
|
8
8
|
@click="onToggleChange"
|
@@ -304,6 +304,10 @@
|
|
304
304
|
type: String,
|
305
305
|
default: '',
|
306
306
|
},
|
307
|
+
dataTestId: {
|
308
|
+
type: String,
|
309
|
+
default: '',
|
310
|
+
},
|
307
311
|
},
|
308
312
|
methods: {
|
309
313
|
onToggleChange() {
|
@@ -2,6 +2,7 @@
|
|
2
2
|
<div
|
3
3
|
:class="className"
|
4
4
|
:data-id="dataId"
|
5
|
+
:data-test-id="dataTestId"
|
5
6
|
:style="style"
|
6
7
|
@mousedown="elementMouseDown"
|
7
8
|
@touchstart="elementTouchDown"
|
@@ -64,6 +65,10 @@
|
|
64
65
|
type: String,
|
65
66
|
default: '',
|
66
67
|
},
|
68
|
+
dataTestId: {
|
69
|
+
type: String,
|
70
|
+
default: '',
|
71
|
+
},
|
67
72
|
className: {
|
68
73
|
type: String,
|
69
74
|
default: 'vdr',
|