@eturnity/eturnity_reusable_components 6.50.1-EPDM-8599.4 → 7.2.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/package.json +1 -1
- package/src/components/addNewButton/index.vue +12 -8
- package/src/components/buttons/mainButton/index.vue +1 -1
- package/src/components/iconWrapper/index.vue +19 -15
- package/src/components/inputs/inputText/index.vue +2 -2
- package/src/components/inputs/searchInput/index.vue +2 -2
- package/src/components/inputs/select/index.vue +8 -2
- package/src/components/inputs/switchField/index.vue +1 -0
- package/src/components/inputs/toggle/index.vue +1 -1
- package/src/components/sideMenu/index.vue +5 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<page-container :shouldPosition="shouldPosition">
|
3
|
-
<button-container>
|
3
|
+
<button-container :data-id="dataId">
|
4
4
|
<plus-button :src="require('../../assets/icons/plus_button.svg')" />
|
5
5
|
</button-container>
|
6
6
|
</page-container>
|
@@ -8,11 +8,11 @@
|
|
8
8
|
|
9
9
|
<script>
|
10
10
|
// import AddNewButton from "@eturnity/eturnity_reusable_components/src/components/addNewButton"
|
11
|
-
import styled from
|
11
|
+
import styled from 'vue-styled-components'
|
12
12
|
|
13
13
|
const pageAttrs = { shouldPosition: Boolean }
|
14
|
-
const PageContainer = styled(
|
15
|
-
position: ${(props) => (props.shouldPosition ?
|
14
|
+
const PageContainer = styled('div', pageAttrs)`
|
15
|
+
position: ${(props) => (props.shouldPosition ? 'fixed' : 'unset')};
|
16
16
|
bottom: 30px;
|
17
17
|
right: 30px;
|
18
18
|
`
|
@@ -42,17 +42,21 @@ const ButtonContainer = styled.div`
|
|
42
42
|
const PlusButton = styled.img``
|
43
43
|
|
44
44
|
export default {
|
45
|
-
name:
|
45
|
+
name: 'add-new-button',
|
46
46
|
components: {
|
47
47
|
PageContainer,
|
48
48
|
ButtonContainer,
|
49
|
-
PlusButton
|
49
|
+
PlusButton
|
50
50
|
},
|
51
51
|
props: {
|
52
52
|
shouldPosition: {
|
53
53
|
required: false,
|
54
|
-
default: true
|
54
|
+
default: true
|
55
55
|
},
|
56
|
-
|
56
|
+
dataId: {
|
57
|
+
type: String,
|
58
|
+
default: ''
|
59
|
+
}
|
60
|
+
}
|
57
61
|
}
|
58
62
|
</script>
|
@@ -8,6 +8,7 @@
|
|
8
8
|
:color="iconColor"
|
9
9
|
:hoveredBackgroundColor="hoveredBackgroundColor"
|
10
10
|
:isHovered="isHovered"
|
11
|
+
:data-id="dataId"
|
11
12
|
>
|
12
13
|
<icon
|
13
14
|
:disabled="disabled"
|
@@ -110,10 +111,10 @@ export default {
|
|
110
111
|
required: false
|
111
112
|
},
|
112
113
|
backgroundColor: {
|
113
|
-
required: false
|
114
|
-
|
115
|
-
|
116
|
-
|
114
|
+
required: false
|
115
|
+
},
|
116
|
+
hasBorder: {
|
117
|
+
required: false
|
117
118
|
},
|
118
119
|
hoveredBackgroundColor: {
|
119
120
|
required: false,
|
@@ -135,18 +136,21 @@ export default {
|
|
135
136
|
required: false,
|
136
137
|
default: '6px'
|
137
138
|
},
|
138
|
-
|
139
|
-
|
140
|
-
default:
|
141
|
-
},
|
142
|
-
isStriked:{
|
143
|
-
required:false,
|
144
|
-
default:false
|
145
|
-
|
146
|
-
}
|
139
|
+
dataId: {
|
140
|
+
type: String,
|
141
|
+
default: ''
|
147
142
|
},
|
148
|
-
|
149
|
-
|
143
|
+
isHovered: {
|
144
|
+
required: false,
|
145
|
+
default: false
|
146
|
+
},
|
147
|
+
isStriked: {
|
148
|
+
required: false,
|
149
|
+
default: false
|
150
150
|
}
|
151
|
+
},
|
152
|
+
data() {
|
153
|
+
return {}
|
151
154
|
}
|
155
|
+
}
|
152
156
|
</script>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<input-label
|
9
9
|
:labelFontColor="labelFontColor"
|
10
10
|
:fontSize="fontSize"
|
11
|
-
:
|
11
|
+
:data-id="labelDataId"
|
12
12
|
>{{ label }}
|
13
13
|
<optionalLabel v-if="labelOptional"
|
14
14
|
>({{ $gettext('Optional') }})</optionalLabel
|
@@ -44,7 +44,7 @@
|
|
44
44
|
:hasFocus="hasFocus"
|
45
45
|
:backgroundColor="backgroundColor"
|
46
46
|
:disabledBackgroundColor="disabledBackgroundColor"
|
47
|
-
:
|
47
|
+
:data-id="inputDataId"
|
48
48
|
/>
|
49
49
|
<icon-wrapper
|
50
50
|
v-if="inputType === 'password' && !isError"
|
@@ -11,7 +11,7 @@
|
|
11
11
|
:inputWidth="inputWidth"
|
12
12
|
:isFilter="isFilter"
|
13
13
|
:hasFocus="hasFocus"
|
14
|
-
:
|
14
|
+
:data-id="dataId"
|
15
15
|
/>
|
16
16
|
<img
|
17
17
|
class="search-icn"
|
@@ -31,7 +31,7 @@
|
|
31
31
|
// inputWidth="250px"
|
32
32
|
// @on-change="function($event)"
|
33
33
|
// :isFilter="true" // to set the height at 30px
|
34
|
-
//
|
34
|
+
// data-id="test-data-id"
|
35
35
|
// />
|
36
36
|
import styled from 'vue-styled-components'
|
37
37
|
|
@@ -45,6 +45,7 @@
|
|
45
45
|
:disabled="disabled"
|
46
46
|
@keydown.native="onKeyDown"
|
47
47
|
:showBorder="showBorder"
|
48
|
+
:data-id="dataId"
|
48
49
|
>
|
49
50
|
<inputText
|
50
51
|
v-if="isSearchBarVisible"
|
@@ -122,7 +123,8 @@
|
|
122
123
|
// optionWidth="50%"
|
123
124
|
// label="that is a label"
|
124
125
|
// alignItems="vertical"
|
125
|
-
// label-data-id="test-
|
126
|
+
// label-data-id="test-label0data-id"
|
127
|
+
// data-id="test-data-id"
|
126
128
|
// >
|
127
129
|
// <template #selector="{selectedValue}">
|
128
130
|
// value selected: {{selectedValue}}
|
@@ -391,6 +393,10 @@ export default {
|
|
391
393
|
showBorder: {
|
392
394
|
required: false,
|
393
395
|
default: true
|
396
|
+
},
|
397
|
+
dataId: {
|
398
|
+
type: String,
|
399
|
+
default: ''
|
394
400
|
}
|
395
401
|
},
|
396
402
|
|
@@ -471,7 +477,7 @@ export default {
|
|
471
477
|
}
|
472
478
|
},
|
473
479
|
optionLeave() {
|
474
|
-
if(this.dropdownAutoClose) {
|
480
|
+
if (this.dropdownAutoClose) {
|
475
481
|
this.isDropdownOpen = false
|
476
482
|
}
|
477
483
|
},
|
@@ -18,7 +18,10 @@
|
|
18
18
|
<list-text>{{ $gettext(item.label) }}</list-text>
|
19
19
|
</list-item>
|
20
20
|
<collapse-wrapper v-else :key="idx + item.key">
|
21
|
-
<collapse-container
|
21
|
+
<collapse-container
|
22
|
+
:data-id="`sub_menu_settings_${item.key}`"
|
23
|
+
@click="toggleActiveDropdown(item.key)"
|
24
|
+
>
|
22
25
|
<icon-container :isActive="activeParentTab === item.key">
|
23
26
|
<icon
|
24
27
|
:name="item.icon"
|
@@ -41,6 +44,7 @@
|
|
41
44
|
v-for="subItem in item.children"
|
42
45
|
:key="subItem.key"
|
43
46
|
:isActive="activeTab === subItem.key"
|
47
|
+
:data-id="`sub_menu_settings_${subItem.key}`"
|
44
48
|
@click="
|
45
49
|
$emit('tab-click', {
|
46
50
|
activeKey: subItem.key,
|