@eturnity/eturnity_reusable_components 7.2.2 → 7.4.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": "7.2.2",
3
+ "version": "7.4.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -63,4 +63,4 @@
63
63
  "author": "Aaron Enser",
64
64
  "license": "ISC",
65
65
  "homepage": "https://bitbucket.org/eturnitydevs/eturnity_reusable_components#readme"
66
- }
66
+ }
@@ -9,10 +9,7 @@
9
9
  :isEditionAllowed="editionAllowed"
10
10
  :isActive="activated"
11
11
  :cursor="cursor"
12
- @click.native="editionAllowed
13
- ? activated = !activated
14
- : ''
15
- "
12
+ @click.native="editionAllowed ? (activated = !activated) : ''"
16
13
  >
17
14
  <icon
18
15
  v-if="!!iconName"
@@ -22,10 +19,7 @@
22
19
  :cursor="cursor"
23
20
  />
24
21
  <span>{{ markerData.translations[activeLanguage].name }}</span>
25
- <dot-wrapper
26
- v-if="editionAllowed"
27
- class="dotContainer"
28
- >
22
+ <dot-wrapper v-if="editionAllowed" class="dotContainer">
29
23
  <dot-icon />
30
24
  <dot-icon />
31
25
  <dot-icon />
@@ -40,10 +34,7 @@
40
34
  </edit-item>
41
35
  <edit-item @click.native="onEditClick">
42
36
  <icon-container>
43
- <icon
44
- name="edit_button"
45
- size="14px"
46
- />
37
+ <icon name="edit_button" size="14px" />
47
38
  </icon-container>
48
39
  <div>{{ $gettext('Edit') }}</div>
49
40
  </edit-item>
@@ -61,10 +52,7 @@
61
52
  <page-title :text="$gettext('delete_confirm_text')" />
62
53
  <page-subtitle :text="$gettext('delete_confirm_subtext')" />
63
54
  <cta-container>
64
- <main-button
65
- @click.native="onDelete"
66
- :text="$gettext('Delete')"
67
- />
55
+ <main-button @click.native="onDelete" :text="$gettext('Delete')" />
68
56
  <main-button
69
57
  type="cancel"
70
58
  @click.native="closeDeleteModal"
@@ -90,8 +78,8 @@
90
78
  // @deleteHandler="onMarkerDelete($event)"
91
79
  // />
92
80
 
93
- import styled from "vue-styled-components"
94
- import Icon from "../icon"
81
+ import styled from 'vue-styled-components'
82
+ import Icon from '../icon'
95
83
  import Modal from '../modals/modal'
96
84
  import PageTitle from '../pageTitle'
97
85
  import DeleteIcon from '../deleteIcon'
@@ -128,22 +116,22 @@ const MarkerAttrs = {
128
116
  const MarkerContainer = styled('div', MarkerAttrs)`
129
117
  display: grid;
130
118
  grid-template-columns: ${(props) =>
131
- props.hasIcon || props.isEditionAllowed ? 'auto 1fr' : '1fr'};
119
+ props.hasIcon || props.isEditionAllowed ? 'auto 1fr' : '1fr'};
132
120
  grid-gap: 5px;
133
121
  position: relative;
134
122
  align-items: center;
135
123
  padding: 2px 7px;
136
124
  color: ${(props) => props.theme.colors.white};
137
125
  background-color: ${(props) =>
138
- props.backgroundColor ? props.backgroundColor : props.theme.colors.grey3};
139
- <<<<<<< HEAD
140
- border-radius: ${(props) => (props.hasBorderRadius ? '4px' : '0')};
141
- =======
142
- border: 1px solid ${(props) => props.backgroundColor ? props.backgroundColor : props.theme.colors.grey3};
143
- border-radius: ${(props) => props.withDate ? '4px 0 0 4px' : '4px'};
144
- >>>>>>> origin/EPDM-9185
126
+ props.backgroundColor ? props.backgroundColor : props.theme.colors.grey3};
127
+ border: 1px solid
128
+ ${(props) =>
129
+ props.backgroundColor ? props.backgroundColor : props.theme.colors.grey3};
130
+ border-radius: ${(props) =>
131
+ props.hasBorderRadius ? (props.withDate ? '4px 0 0 4px' : '4px') : '0'};
132
+
145
133
  white-space: nowrap;
146
- cursor: ${(props) => props.isEditionAllowed ? 'pointer' : props.cursor};
134
+ cursor: ${(props) => (props.isEditionAllowed ? 'pointer' : props.cursor)};
147
135
 
148
136
  .dotContainer {
149
137
  display: ${(props) => (props.isActive ? 'flex' : 'none')};
@@ -207,7 +195,7 @@ const Date = styled.div`
207
195
  `
208
196
 
209
197
  export default {
210
- name: "project-marker",
198
+ name: 'project-marker',
211
199
  components: {
212
200
  PageContainer,
213
201
  MarkerContainer,
@@ -266,7 +254,11 @@ export default {
266
254
  },
267
255
  computed: {
268
256
  editionAllowed() {
269
- return (this.markerData.can_be_deleted && (!this.isLimitedPartner || this.isGroupSupport)) && this.isEditable
257
+ return (
258
+ this.markerData.can_be_deleted &&
259
+ (!this.isLimitedPartner || this.isGroupSupport) &&
260
+ this.isEditable
261
+ )
270
262
  },
271
263
  iconName() {
272
264
  if (this.markerData.choice === 'sold') {
@@ -288,11 +280,11 @@ export default {
288
280
  this.deleteModalOpened = false
289
281
  },
290
282
  onEditClick() {
291
- this.$emit("editHandler")
283
+ this.$emit('editHandler')
292
284
  },
293
285
  onDelete() {
294
286
  this.closeDeleteModal()
295
- this.$emit("deleteHandler")
287
+ this.$emit('deleteHandler')
296
288
  }
297
289
  }
298
290
  }