@eturnity/eturnity_reusable_components 1.2.19-EPDM-5295.6 → 1.2.19-EPDM-5295.7

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": "1.2.19-EPDM-5295.6",
3
+ "version": "1.2.19-EPDM-5295.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
package/src/App.vue CHANGED
@@ -41,6 +41,7 @@
41
41
  :isEditable="true"
42
42
  :gettext="gettext"
43
43
  :date="'23.07.2022'"
44
+ cursor="pointer"
44
45
  @editHandler="consoleLog('edit index ' + index)"
45
46
  @deleteHandler="consoleLog('delete id ' + item.id)"
46
47
  />
@@ -6,6 +6,7 @@
6
6
  :hasIcon="!!iconName"
7
7
  :isEditionAllowed="editionAllowed"
8
8
  :isActive="activated"
9
+ :cursor="cursor"
9
10
  @click.native="editionAllowed
10
11
  ? activated = !activated
11
12
  : ''
@@ -16,7 +17,7 @@
16
17
  :name="iconName"
17
18
  color="white"
18
19
  size="10px"
19
- cursor="default"
20
+ :cursor="cursor"
20
21
  />
21
22
  <span>{{ markerData.translations[activeLanguage].name }}</span>
22
23
  <dot-wrapper
@@ -121,7 +122,8 @@ const MarkerAttrs = {
121
122
  backgroundColor: String,
122
123
  hasIcon: Boolean,
123
124
  isEditionAllowed: Boolean,
124
- isActive: Boolean
125
+ isActive: Boolean,
126
+ cursor: String
125
127
  }
126
128
  const MarkerContainer = styled('div', MarkerAttrs)`
127
129
  display: grid;
@@ -136,8 +138,7 @@ const MarkerContainer = styled('div', MarkerAttrs)`
136
138
  props.backgroundColor ? props.backgroundColor : props.theme.colors.grey3};
137
139
  border-radius: 4px;
138
140
  white-space: nowrap;
139
- cursor: ${(props) =>
140
- props.isEditionAllowed? 'pointer' : 'default'};
141
+ cursor: ${(props) => props.isEditionAllowed ? 'pointer' : props.cursor};
141
142
 
142
143
  .dotContainer {
143
144
  display: ${(props) => (props.isActive ? 'flex' : 'none')};
@@ -238,6 +239,10 @@ export default {
238
239
  required: false,
239
240
  default: false
240
241
  },
242
+ cursor: {
243
+ required: false,
244
+ default: 'default'
245
+ }
241
246
  },
242
247
  data() {
243
248
  return {
@@ -262,6 +267,9 @@ export default {
262
267
  }
263
268
  },
264
269
  methods: {
270
+ $gettext(str) {
271
+ return str.toUpperCase()
272
+ },
265
273
  clickOutsideActionHandler() {
266
274
  this.activated = false
267
275
  },