@eturnity/eturnity_reusable_components 6.46.5-EPDM-7690-9162.1 → 6.46.5-EPDM-9185.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
@@ -2,6 +2,7 @@
|
|
2
2
|
<page-container>
|
3
3
|
<marker-container
|
4
4
|
v-if="markerData"
|
5
|
+
:withDate="!!date"
|
5
6
|
:backgroundColor="markerData.color"
|
6
7
|
:hasIcon="!!iconName"
|
7
8
|
:isEditionAllowed="editionAllowed"
|
@@ -19,12 +20,7 @@
|
|
19
20
|
size="10px"
|
20
21
|
:cursor="cursor"
|
21
22
|
/>
|
22
|
-
<span>
|
23
|
-
{{ markerData.translations[activeLanguage].name }}
|
24
|
-
<span v-if="!!date">
|
25
|
-
| {{ date }}
|
26
|
-
</span>
|
27
|
-
</span>
|
23
|
+
<span>{{ markerData.translations[activeLanguage].name }}</span>
|
28
24
|
<dot-wrapper
|
29
25
|
v-if="editionAllowed"
|
30
26
|
class="dotContainer"
|
@@ -52,6 +48,9 @@
|
|
52
48
|
</edit-item>
|
53
49
|
</edit-container>
|
54
50
|
</marker-container>
|
51
|
+
<date v-if="!!date">
|
52
|
+
{{ date }}
|
53
|
+
</date>
|
55
54
|
<modal
|
56
55
|
:isOpen="deleteModalOpened"
|
57
56
|
@on-close="closeDeleteModal"
|
@@ -101,7 +100,6 @@ import MainButton from '../buttons/mainButton'
|
|
101
100
|
const PageContainer = styled.div`
|
102
101
|
display: flex;
|
103
102
|
align-items: center;
|
104
|
-
gap: 10px;
|
105
103
|
font-size: 12px;
|
106
104
|
line-height: 14px;
|
107
105
|
`
|
@@ -119,6 +117,7 @@ const CtaContainer = styled.div`
|
|
119
117
|
|
120
118
|
const MarkerAttrs = {
|
121
119
|
backgroundColor: String,
|
120
|
+
withDate: Boolean,
|
122
121
|
hasIcon: Boolean,
|
123
122
|
isEditionAllowed: Boolean,
|
124
123
|
isActive: Boolean,
|
@@ -135,7 +134,8 @@ const MarkerContainer = styled('div', MarkerAttrs)`
|
|
135
134
|
color: ${(props) => props.theme.colors.white};
|
136
135
|
background-color: ${(props) =>
|
137
136
|
props.backgroundColor ? props.backgroundColor : props.theme.colors.grey3};
|
138
|
-
border
|
137
|
+
border: 1px solid ${(props) => props.backgroundColor ? props.backgroundColor : props.theme.colors.grey3};
|
138
|
+
border-radius: ${(props) => props.withDate ? '4px 0 0 4px' : '4px'};
|
139
139
|
white-space: nowrap;
|
140
140
|
cursor: ${(props) => props.isEditionAllowed ? 'pointer' : props.cursor};
|
141
141
|
|
@@ -193,6 +193,13 @@ const IconContainer = styled.div`
|
|
193
193
|
line-height: 0;
|
194
194
|
`
|
195
195
|
|
196
|
+
const Date = styled.div`
|
197
|
+
padding: 2px 5px;
|
198
|
+
border: 1px solid ${(props) => props.theme.colors.grey4};
|
199
|
+
border-left: none;
|
200
|
+
border-radius: 0 4px 4px 0;
|
201
|
+
`
|
202
|
+
|
196
203
|
export default {
|
197
204
|
name: "project-marker",
|
198
205
|
components: {
|
@@ -210,7 +217,8 @@ export default {
|
|
210
217
|
CtaContainer,
|
211
218
|
PageTitle,
|
212
219
|
PageSubtitle,
|
213
|
-
MainButton
|
220
|
+
MainButton,
|
221
|
+
Date
|
214
222
|
},
|
215
223
|
props: {
|
216
224
|
markerData: {
|
@@ -331,7 +331,7 @@ export default {
|
|
331
331
|
},
|
332
332
|
findRelativeParent(element) {
|
333
333
|
while (element.parentElement) {
|
334
|
-
if (window.getComputedStyle(element.parentElement).position === 'relative'
|
334
|
+
if (window.getComputedStyle(element.parentElement).position === 'relative') {
|
335
335
|
return element.parentElement
|
336
336
|
}
|
337
337
|
element = element.parentElement
|