@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "6.50.1-EPDM-8599.4",
3
+ "version": "7.2.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -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 "vue-styled-components"
11
+ import styled from 'vue-styled-components'
12
12
 
13
13
  const pageAttrs = { shouldPosition: Boolean }
14
- const PageContainer = styled("div", pageAttrs)`
15
- position: ${(props) => (props.shouldPosition ? "fixed" : "unset")};
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: "add-new-button",
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>
@@ -22,7 +22,7 @@
22
22
  // type="secondary" // primary, secondary, cancel
23
23
  // :isDisabled="true"
24
24
  // :minWidth="minWidth"
25
- // :dataId="test_data_id"
25
+ // :data-id="test_data_id"
26
26
  // />
27
27
 
28
28
  import styled from 'vue-styled-components'
@@ -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
- hasBorder: {
116
- required: false,
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
- isHovered:{
139
- required:false,
140
- default:false
141
- },
142
- isStriked:{
143
- required:false,
144
- default:false
145
-
146
- }
139
+ dataId: {
140
+ type: String,
141
+ default: ''
147
142
  },
148
- data() {
149
- return {}
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
- :dataId="labelDataId"
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
- :dataId="inputDataId"
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
- :dataId="dataId"
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
- // dataId="test-data-id"
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-data-id"
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
  },
@@ -37,6 +37,7 @@
37
37
  :primaryColor="primaryColor"
38
38
  :secondaryColor="secondaryColor"
39
39
  :inactiveColor="inactiveColor"
40
+ :data-id="item.hasOwnProperty('dataId') ? item.dataId : ''"
40
41
  >
41
42
  {{ item.content }}
42
43
  </switchOption>
@@ -74,7 +74,7 @@
74
74
  // :disabled="true"
75
75
  // infoTextAlign="right" // left by default
76
76
  // infoTextMessage="My info message"
77
- // dataId="test_data_id"
77
+ // data-id="test_data_id"
78
78
  // />
79
79
 
80
80
  import styled from 'vue-styled-components'
@@ -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 @click="toggleActiveDropdown(item.key)">
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,