@eturnity/eturnity_reusable_components 6.46.5-EPDM-7690-9162.0 → 6.46.5-EPDM-8599.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.46.5-EPDM-7690-9162.0",
3
+ "version": "6.46.5-EPDM-8599.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
package/src/App.vue CHANGED
@@ -114,6 +114,7 @@ import iconCollection from '@/components/icon/iconCollection'
114
114
  import dropdownComponent from '@/components/dropdown'
115
115
  import videoThumbnail from '@/components/videoThumbnail'
116
116
  import icon from '@/components/icon'
117
+ import infoCard from '@/components/infoCard'
117
118
  // import TableDropdown from "@/components/tableDropdown"
118
119
 
119
120
  const PageContainer = styled.div`
@@ -138,7 +139,8 @@ export default {
138
139
  iconCollection,
139
140
  dropdownComponent,
140
141
  videoThumbnail,
141
- icon
142
+ icon,
143
+ infoCard
142
144
  },
143
145
  data() {
144
146
  return {
@@ -0,0 +1,38 @@
1
+ <template>
2
+ <info-container>
3
+ <icon name="info" size="24px" />
4
+ <InfoTextContainer>
5
+ <slot />
6
+ </InfoTextContainer>
7
+ </info-container>
8
+ </template>
9
+
10
+ <script>
11
+ import styled from 'vue-styled-components'
12
+ import icon from '../icon'
13
+ const InfoContainer = styled('div')`
14
+ display: flex;
15
+ align-items: flex-start;
16
+ gap: 15px;
17
+ padding: 20px;
18
+ width: 500px;
19
+ min-width: 450px;
20
+ border: 1px dashed #dee2eb;
21
+ border-radius: 4px;
22
+ margin:20px 0;
23
+ `
24
+
25
+ const InfoTextContainer = styled('div')`
26
+ font-size: 13px;
27
+ `
28
+
29
+
30
+ export default {
31
+ components:{
32
+ icon,
33
+ InfoTextContainer,
34
+ InfoContainer
35
+ },
36
+ props:[]
37
+ }
38
+ </script>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <page-container>
2
+ <page-container :withDate="!!date">
3
3
  <marker-container
4
4
  v-if="markerData"
5
5
  :backgroundColor="markerData.color"
@@ -19,12 +19,7 @@
19
19
  size="10px"
20
20
  :cursor="cursor"
21
21
  />
22
- <span>
23
- {{ markerData.translations[activeLanguage].name }}
24
- <span v-if="!!date">
25
- | {{ date }}
26
- </span>
27
- </span>
22
+ <span>{{ markerData.translations[activeLanguage].name }}</span>
28
23
  <dot-wrapper
29
24
  v-if="editionAllowed"
30
25
  class="dotContainer"
@@ -52,6 +47,9 @@
52
47
  </edit-item>
53
48
  </edit-container>
54
49
  </marker-container>
50
+ <date v-if="!!date">
51
+ {{ date }}
52
+ </date>
55
53
  <modal
56
54
  :isOpen="deleteModalOpened"
57
55
  @on-close="closeDeleteModal"
@@ -98,7 +96,10 @@ import DeleteIcon from '../deleteIcon'
98
96
  import PageSubtitle from '../pageSubtitle'
99
97
  import MainButton from '../buttons/mainButton'
100
98
 
101
- const PageContainer = styled.div`
99
+ const PageContainerAttrs = {
100
+ withDate: Boolean
101
+ }
102
+ const PageContainer = styled('div', PageContainerAttrs)`
102
103
  display: flex;
103
104
  align-items: center;
104
105
  gap: 10px;
@@ -193,6 +194,8 @@ const IconContainer = styled.div`
193
194
  line-height: 0;
194
195
  `
195
196
 
197
+ const Date = styled.div``
198
+
196
199
  export default {
197
200
  name: "project-marker",
198
201
  components: {
@@ -210,7 +213,8 @@ export default {
210
213
  CtaContainer,
211
214
  PageTitle,
212
215
  PageSubtitle,
213
- MainButton
216
+ MainButton,
217
+ Date
214
218
  },
215
219
  props: {
216
220
  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' || window.getComputedStyle(element.parentElement).position === 'absolute') {
334
+ if (window.getComputedStyle(element.parentElement).position === 'relative') {
335
335
  return element.parentElement
336
336
  }
337
337
  element = element.parentElement