@eturnity/eturnity_reusable_components 7.12.7-EPDM-10335.0 → 7.12.7-EPDM-10528.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/.storybook/preview.js +1 -1
- package/package.json +23 -19
- package/src/App.vue +2 -2
- package/src/assets/svgIcons/house_3d-1.svg +8 -0
- package/src/assets/svgIcons/house_3d.svg +8 -0
- package/src/components/addNewButton/index.vue +3 -5
- package/src/components/buttons/buttonIcon/index.vue +1 -1
- package/src/components/buttons/closeButton/index.vue +1 -1
- package/src/components/buttons/mainButton/index.vue +8 -7
- package/src/components/deleteIcon/DeleteIcon.stories.js +7 -7
- package/src/components/deleteIcon/index.vue +21 -25
- package/src/components/draggableInputHandle/index.vue +25 -24
- package/src/components/dropdown/index.vue +110 -129
- package/src/components/errorMessage/index.vue +5 -10
- package/src/components/filter/filterSettings.vue +97 -58
- package/src/components/filter/index.vue +3 -3
- package/src/components/filter/parentDropdown.vue +2 -2
- package/src/components/icon/iconCollection.vue +2 -2
- package/src/components/icon/index.vue +70 -67
- package/src/components/iconWrapper/index.vue +4 -1
- package/src/components/infoCard/index.vue +3 -2
- package/src/components/infoText/index.vue +1 -1
- package/src/components/inputs/checkbox/index.vue +6 -21
- package/src/components/inputs/inputNumber/index.vue +11 -8
- package/src/components/inputs/inputNumberQuestion/index.vue +1 -1
- package/src/components/inputs/inputText/index.vue +3 -3
- package/src/components/inputs/radioButton/index.vue +1 -1
- package/src/components/inputs/searchInput/index.vue +11 -28
- package/src/components/inputs/select/index.vue +67 -195
- package/src/components/inputs/select/option/index.vue +11 -36
- package/src/components/inputs/slider/index.vue +16 -16
- package/src/components/inputs/switchField/index.vue +2 -2
- package/src/components/inputs/textAreaInput/index.vue +1 -1
- package/src/components/inputs/toggle/index.vue +2 -2
- package/src/components/label/index.vue +31 -27
- package/src/components/modals/modal/index.vue +6 -2
- package/src/components/navigationTabs/index.vue +20 -27
- package/src/components/pageSubtitle/index.vue +1 -1
- package/src/components/pageTitle/index.vue +4 -4
- package/src/components/pagination/index.vue +1 -1
- package/src/components/progressBar/index.vue +1 -1
- package/src/components/projectMarker/index.vue +9 -16
- package/src/components/sideMenu/index.vue +1 -1
- package/src/components/spinner/index.vue +11 -7
- package/src/components/tableDropdown/index.vue +37 -30
- package/src/components/tables/mainTable/exampleNested.vue +1 -1
- package/src/components/tables/mainTable/index.vue +9 -10
- package/src/components/tables/viewTable/index.vue +2 -2
- package/src/components/threeDots/index.vue +1 -1
- package/src/components/videoThumbnail/index.vue +100 -95
- package/src/main.js +11 -4
- package/src/components/icon/iconCache.js +0 -23
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
@mouseover="hoverHandler"
|
|
13
13
|
:cursorType="cursorType"
|
|
14
14
|
:isDisabled="isDisabled"
|
|
15
|
-
:disabledBgColor="disabledBgColor"
|
|
16
|
-
:disabledTextColor="disabledTextColor"
|
|
17
15
|
:backgroundColor="colorMode == 'dark' ? '#000000' : backgroundColor"
|
|
18
16
|
:title="hoverText"
|
|
19
17
|
>
|
|
@@ -24,14 +22,12 @@
|
|
|
24
22
|
<script>
|
|
25
23
|
// import selectButton from './selectButton'
|
|
26
24
|
// import selectDropdown from './selectDropDown'
|
|
27
|
-
import styled from '
|
|
25
|
+
import styled from 'vue-styled-components'
|
|
28
26
|
const optionProps = {
|
|
29
27
|
isDisabled: Boolean,
|
|
30
28
|
hoveredBgColor: String,
|
|
31
29
|
cursorType: String,
|
|
32
|
-
backgroundColor: String
|
|
33
|
-
disabledBgColor: String,
|
|
34
|
-
disabledTextColor: String
|
|
30
|
+
backgroundColor: String
|
|
35
31
|
}
|
|
36
32
|
const optionContainer = styled('div', optionProps)`
|
|
37
33
|
display: flex;
|
|
@@ -43,33 +39,19 @@ const optionContainer = styled('div', optionProps)`
|
|
|
43
39
|
gap: 14px;
|
|
44
40
|
width: 100%;
|
|
45
41
|
background-color: ${(props) =>
|
|
46
|
-
props.
|
|
47
|
-
? props.theme.colors[props.disabledBgColor]
|
|
48
|
-
? props.theme.colors[props.disabledBgColor]
|
|
49
|
-
: props.disabledBgColor
|
|
50
|
-
: props.theme.colors[props.backgroundColor]
|
|
42
|
+
props.theme.colors[props.backgroundColor]
|
|
51
43
|
? props.theme.colors[props.backgroundColor]
|
|
52
|
-
: props.backgroundColor}
|
|
44
|
+
: props.backgroundColor};
|
|
53
45
|
box-sizing: inherit;
|
|
54
46
|
background-color: ${(props) =>
|
|
55
47
|
props.theme.colors[props.backgroundColor]
|
|
56
48
|
? props.theme.colors[props.backgroundColor]
|
|
57
49
|
: props.backgroundColor};
|
|
58
50
|
color: ${(props) =>
|
|
59
|
-
props.isDisabled
|
|
60
|
-
? !!props.disabledTextColor
|
|
61
|
-
? props.theme.colors[props.disabledTextColor]
|
|
62
|
-
? props.theme.colors[props.disabledTextColor]
|
|
63
|
-
: props.disabledTextColor
|
|
64
|
-
: props.theme.colors.grey3
|
|
65
|
-
: 'inherit'};
|
|
51
|
+
props.isDisabled ? props.theme.colors.grey3 : 'inherit'};
|
|
66
52
|
&:hover {
|
|
67
53
|
background-color: ${(props) =>
|
|
68
|
-
|
|
69
|
-
? props.theme.colors[props.disabledBgColor]
|
|
70
|
-
? props.theme.colors[props.disabledBgColor]
|
|
71
|
-
: props.disabledBgColor
|
|
72
|
-
: props.theme.colors[props.hoveredBgColor]
|
|
54
|
+
props.theme.colors[props.hoveredBgColor]
|
|
73
55
|
? props.theme.colors[props.hoveredBgColor]
|
|
74
56
|
: props.hoveredBgColor} !important;
|
|
75
57
|
}
|
|
@@ -77,7 +59,7 @@ const optionContainer = styled('div', optionProps)`
|
|
|
77
59
|
|
|
78
60
|
export default {
|
|
79
61
|
name: 'RCoption',
|
|
80
|
-
|
|
62
|
+
|
|
81
63
|
props: {
|
|
82
64
|
value: {
|
|
83
65
|
required: true
|
|
@@ -91,7 +73,7 @@ export default {
|
|
|
91
73
|
},
|
|
92
74
|
cursorType: {
|
|
93
75
|
required: false,
|
|
94
|
-
default: '
|
|
76
|
+
default: 'cursor'
|
|
95
77
|
},
|
|
96
78
|
backgroundColor: {
|
|
97
79
|
required: false,
|
|
@@ -103,28 +85,21 @@ export default {
|
|
|
103
85
|
isDisabled: {
|
|
104
86
|
required: false,
|
|
105
87
|
default: false
|
|
106
|
-
},
|
|
107
|
-
disabledBgColor: {
|
|
108
|
-
required: false,
|
|
109
|
-
default: 'white'
|
|
110
|
-
},
|
|
111
|
-
disabledTextColor: {
|
|
112
|
-
required: false,
|
|
113
|
-
default: null
|
|
114
88
|
}
|
|
115
89
|
},
|
|
116
90
|
|
|
117
91
|
components: { optionContainer },
|
|
92
|
+
|
|
118
93
|
data() {
|
|
119
94
|
return {}
|
|
120
95
|
},
|
|
121
96
|
methods: {
|
|
122
|
-
clickHandler(
|
|
97
|
+
clickHandler() {
|
|
123
98
|
if (this.isDisabled) {
|
|
124
99
|
// prevent emitter if the option is disabled
|
|
125
100
|
return
|
|
126
101
|
} else {
|
|
127
|
-
this.$parent.$emit('option-selected', this.value
|
|
102
|
+
this.$parent.$emit('option-selected', this.value)
|
|
128
103
|
}
|
|
129
104
|
},
|
|
130
105
|
hoverHandler() {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
// :minValue="10" //default is 0 if not specified
|
|
22
22
|
// :maxValue="500" //default is 100 if not specified
|
|
23
23
|
// />
|
|
24
|
-
import Slider from
|
|
25
|
-
import styled from
|
|
24
|
+
import Slider from "@vueform/slider/dist/slider.vue2.js"
|
|
25
|
+
import styled from "vue-styled-components"
|
|
26
26
|
|
|
27
27
|
const Container = styled.div`
|
|
28
28
|
margin: 16px 0 16px 21px;
|
|
@@ -81,45 +81,45 @@ const NumberText = styled.div`
|
|
|
81
81
|
`
|
|
82
82
|
|
|
83
83
|
export default {
|
|
84
|
-
name:
|
|
84
|
+
name: "slider",
|
|
85
85
|
components: {
|
|
86
86
|
Slider,
|
|
87
87
|
Container,
|
|
88
|
-
NumberText
|
|
88
|
+
NumberText,
|
|
89
89
|
},
|
|
90
90
|
props: {
|
|
91
91
|
value: {
|
|
92
92
|
required: false,
|
|
93
|
-
default: 0
|
|
93
|
+
default: 0,
|
|
94
94
|
},
|
|
95
95
|
unit: {
|
|
96
96
|
required: false,
|
|
97
|
-
default:
|
|
97
|
+
default: "",
|
|
98
98
|
},
|
|
99
99
|
minValue: {
|
|
100
100
|
required: false,
|
|
101
|
-
default: 0
|
|
101
|
+
default: 0,
|
|
102
102
|
},
|
|
103
103
|
maxValue: {
|
|
104
104
|
required: false,
|
|
105
|
-
default: 100
|
|
106
|
-
}
|
|
105
|
+
default: 100,
|
|
106
|
+
},
|
|
107
107
|
},
|
|
108
108
|
methods: {
|
|
109
109
|
onChange(value) {
|
|
110
|
-
this.$emit(
|
|
111
|
-
}
|
|
110
|
+
this.$emit("change", value)
|
|
111
|
+
},
|
|
112
112
|
},
|
|
113
113
|
mounted() {
|
|
114
114
|
// This is to add the 3 white lines to the slider button
|
|
115
|
-
let slider = document.querySelector(
|
|
116
|
-
let span1 = document.createElement(
|
|
117
|
-
let span2 = document.createElement(
|
|
118
|
-
let span3 = document.createElement(
|
|
115
|
+
let slider = document.querySelector(".slider-touch-area")
|
|
116
|
+
let span1 = document.createElement("span")
|
|
117
|
+
let span2 = document.createElement("span")
|
|
118
|
+
let span3 = document.createElement("span")
|
|
119
119
|
slider.appendChild(span1)
|
|
120
120
|
slider.appendChild(span2)
|
|
121
121
|
slider.appendChild(span3)
|
|
122
|
-
}
|
|
122
|
+
},
|
|
123
123
|
}
|
|
124
124
|
</script>
|
|
125
125
|
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
>
|
|
46
46
|
<label-text :size="size" :fontColor="fontColor">{{ label }}</label-text>
|
|
47
47
|
<info-text
|
|
48
|
-
@click.stop
|
|
48
|
+
@click.native.stop
|
|
49
49
|
v-if="infoTextMessage"
|
|
50
50
|
:text="infoTextMessage"
|
|
51
51
|
/>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
// :disabled="false"
|
|
71
71
|
// />
|
|
72
72
|
|
|
73
|
-
import styled from '
|
|
73
|
+
import styled from 'vue-styled-components'
|
|
74
74
|
import InfoText from '../../infoText'
|
|
75
75
|
import theme from '../../../assets/theme'
|
|
76
76
|
const Container = styled.div``
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
>
|
|
45
45
|
<label-text :size="size" :fontColor="fontColor">{{ label }}</label-text>
|
|
46
46
|
<info-text
|
|
47
|
-
@click.stop
|
|
47
|
+
@click.native.stop
|
|
48
48
|
v-if="infoTextMessage"
|
|
49
49
|
:text="infoTextMessage"
|
|
50
50
|
/>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
// data-id="test_data_id"
|
|
71
71
|
// />
|
|
72
72
|
|
|
73
|
-
import styled from '
|
|
73
|
+
import styled from 'vue-styled-components'
|
|
74
74
|
import InfoText from '../../infoText'
|
|
75
75
|
|
|
76
76
|
const Container = styled.div`
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
<label-wrapper
|
|
3
|
+
:labelAlign="labelAlign">
|
|
4
|
+
<input-label
|
|
5
|
+
:labelFontColor="labelFontColor"
|
|
6
|
+
:fontSize="fontSize"
|
|
7
|
+
>
|
|
8
|
+
<slot></slot>
|
|
9
|
+
<optionalLabel v-if="labelOptional"
|
|
10
|
+
>({{ $gettext('Optional') }})</optionalLabel
|
|
11
|
+
></input-label
|
|
12
|
+
>
|
|
13
|
+
<info-text
|
|
14
|
+
v-if="infoTextMessage"
|
|
15
|
+
:text="infoTextMessage"
|
|
16
|
+
:size="fontSize ? fontSize : '16px'"
|
|
17
|
+
:alignArrow="infoTextAlign"
|
|
18
|
+
/>
|
|
19
|
+
</label-wrapper>
|
|
17
20
|
</template>
|
|
18
21
|
|
|
19
22
|
<script>
|
|
20
|
-
import styled from '
|
|
23
|
+
import styled from 'vue-styled-components'
|
|
21
24
|
import InfoText from '../infoText'
|
|
22
25
|
|
|
26
|
+
|
|
23
27
|
const labelAttrs = { fontSize: String, labelFontColor: String }
|
|
24
28
|
const InputLabel = styled('div', labelAttrs)`
|
|
25
29
|
color: ${(props) =>
|
|
@@ -36,15 +40,15 @@ const optionalLabel = styled.span`
|
|
|
36
40
|
font-weight: 300;
|
|
37
41
|
`
|
|
38
42
|
|
|
39
|
-
const LabelWrapper = styled('div',
|
|
40
|
-
${
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
${
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
const LabelWrapper = styled('div',{labelAlign:String})`
|
|
44
|
+
${props=>props.labelAlign=='horizontal'?
|
|
45
|
+
'display: inline-grid;':
|
|
46
|
+
'display: grid;'
|
|
47
|
+
}
|
|
48
|
+
${props=>props.labelAlign=='horizontal'?
|
|
49
|
+
'margin-right: 10px;':
|
|
50
|
+
'margin-bottom: 8px;'
|
|
51
|
+
}
|
|
48
52
|
vertical-align: center;
|
|
49
53
|
grid-template-columns: auto auto;
|
|
50
54
|
grid-gap: 12px;
|
|
@@ -93,7 +97,7 @@ export default {
|
|
|
93
97
|
labelAlign: {
|
|
94
98
|
required: false,
|
|
95
99
|
default: 'vertical'
|
|
96
|
-
}
|
|
97
|
-
}
|
|
100
|
+
},
|
|
101
|
+
},
|
|
98
102
|
}
|
|
99
103
|
</script>
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
<content-container :visible="!isLoading">
|
|
11
11
|
<slot />
|
|
12
12
|
</content-container>
|
|
13
|
-
<close-button
|
|
13
|
+
<close-button
|
|
14
|
+
v-if="!hideClose"
|
|
15
|
+
@click.native="onCloseModal()"
|
|
16
|
+
class="close"
|
|
17
|
+
/>
|
|
14
18
|
</modal-container>
|
|
15
19
|
</page-wrapper>
|
|
16
20
|
</template>
|
|
@@ -26,7 +30,7 @@
|
|
|
26
30
|
// <div>Data....</div>
|
|
27
31
|
// </modal>
|
|
28
32
|
|
|
29
|
-
import styled from '
|
|
33
|
+
import styled from 'vue-styled-components'
|
|
30
34
|
import CloseButton from '../../buttons/closeButton'
|
|
31
35
|
import Spinner from '../../spinner'
|
|
32
36
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
24
|
<script>
|
|
25
|
-
import styled from '
|
|
25
|
+
import styled from 'vue-styled-components'
|
|
26
26
|
import InfoText from '../infoText'
|
|
27
27
|
const TabAttr = {
|
|
28
28
|
active: Boolean,
|
|
@@ -31,12 +31,12 @@ const TabAttr = {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
const bottomLine = styled('div')`
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
position: absolute;
|
|
35
|
+
bottom: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
height: 1px;
|
|
38
|
+
width: 100%;
|
|
39
|
+
background-color: #b2b9c5;
|
|
40
40
|
`
|
|
41
41
|
const roofTabWrap = styled('div')`
|
|
42
42
|
display: flex;
|
|
@@ -48,22 +48,17 @@ const roofTabWrap = styled('div')`
|
|
|
48
48
|
const Uppercase = styled('span')`
|
|
49
49
|
text-transform: uppercase;
|
|
50
50
|
`
|
|
51
|
-
const Option = styled('div',
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
: props.textColor
|
|
63
|
-
: props.isDisabled
|
|
64
|
-
? props.theme.colors.grey2
|
|
65
|
-
: props.theme.colors.black};
|
|
66
|
-
`
|
|
51
|
+
const Option = styled('div',TabAttr)`
|
|
52
|
+
font-size: 13px;
|
|
53
|
+
font-weight: 700;
|
|
54
|
+
display:flex;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
flex-direction: row;
|
|
57
|
+
gap: 10px;
|
|
58
|
+
color: ${props=>props.textColor ?
|
|
59
|
+
props.theme.colors[props.textColor] ? props.theme.colors[props.textColor] : props.textColor :
|
|
60
|
+
props.isDisabled ? props.theme.colors.grey2 : props.theme.colors.black};
|
|
61
|
+
`
|
|
67
62
|
const Tab = styled('div', TabAttr)`
|
|
68
63
|
padding: 16px 10px;
|
|
69
64
|
margin-right: 5px;
|
|
@@ -72,8 +67,7 @@ const Tab = styled('div', TabAttr)`
|
|
|
72
67
|
z-index: 10;
|
|
73
68
|
border-bottom: 2px solid
|
|
74
69
|
${(props) => (props.active ? props.theme.colors.primary : 'transparent')};
|
|
75
|
-
background-color: ${(props) =>
|
|
76
|
-
props.isDisabled ? props.theme.colors.grey5 : 'transparent'};
|
|
70
|
+
background-color: ${(props) => (props.isDisabled ? props.theme.colors.grey5 : 'transparent')};
|
|
77
71
|
transition: 0.2s ease;
|
|
78
72
|
cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'pointer')};
|
|
79
73
|
min-width: 140px;
|
|
@@ -82,8 +76,7 @@ const Tab = styled('div', TabAttr)`
|
|
|
82
76
|
justify-content: space-between;
|
|
83
77
|
min-height: 55px;
|
|
84
78
|
&:hover {
|
|
85
|
-
border-color: ${(props) =>
|
|
86
|
-
props.isDisabled ? props.theme.colors.grey2 : props.theme.colors.primary};
|
|
79
|
+
border-color: ${(props) => props.isDisabled ? props.theme.colors.grey2 : props.theme.colors.primary};
|
|
87
80
|
}
|
|
88
81
|
`
|
|
89
82
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// color="red"
|
|
19
19
|
// infoText="My info text"
|
|
20
20
|
// />
|
|
21
|
-
import styled from "
|
|
21
|
+
import styled from "vue-styled-components"
|
|
22
22
|
import InfoText from "../infoText"
|
|
23
23
|
|
|
24
24
|
const textAttrs = { color: String, hasInfoText: Boolean, marginBottom: String }
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// text="My Page Title"
|
|
19
19
|
// color="red"
|
|
20
20
|
// />
|
|
21
|
-
import styled from "
|
|
21
|
+
import styled from "vue-styled-components"
|
|
22
22
|
import InfoText from "../infoText"
|
|
23
23
|
|
|
24
24
|
const wrapAttrs = { hasInfoText: Boolean }
|
|
@@ -40,7 +40,7 @@ const TitleText = styled('span', titleAttrs)`
|
|
|
40
40
|
`
|
|
41
41
|
|
|
42
42
|
export default {
|
|
43
|
-
name:
|
|
43
|
+
name: "page-title",
|
|
44
44
|
components: {
|
|
45
45
|
TitleText,
|
|
46
46
|
TitleWrap,
|
|
@@ -48,10 +48,10 @@ export default {
|
|
|
48
48
|
},
|
|
49
49
|
props: {
|
|
50
50
|
text: {
|
|
51
|
-
required: true
|
|
51
|
+
required: true,
|
|
52
52
|
},
|
|
53
53
|
color: {
|
|
54
|
-
required: false
|
|
54
|
+
required: false,
|
|
55
55
|
},
|
|
56
56
|
fontSize: {
|
|
57
57
|
required: false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<page-container>
|
|
3
3
|
<marker-container
|
|
4
|
-
v-if="markerData
|
|
4
|
+
v-if="markerData"
|
|
5
5
|
:hasBorderRadius="hasBorderRadius"
|
|
6
6
|
:withDate="!!date"
|
|
7
7
|
:backgroundColor="markerData.color"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
:isEditionAllowed="editionAllowed"
|
|
10
10
|
:isActive="activated"
|
|
11
11
|
:cursor="cursor"
|
|
12
|
-
@click="editionAllowed ? (activated = !activated) : ''"
|
|
12
|
+
@click.native="editionAllowed ? (activated = !activated) : ''"
|
|
13
13
|
>
|
|
14
14
|
<icon
|
|
15
15
|
v-if="!!iconName"
|
|
@@ -18,11 +18,7 @@
|
|
|
18
18
|
size="10px"
|
|
19
19
|
:cursor="cursor"
|
|
20
20
|
/>
|
|
21
|
-
<span>{{
|
|
22
|
-
markerData.translations[activeLanguage]
|
|
23
|
-
? markerData.translations[activeLanguage].name
|
|
24
|
-
: '-'
|
|
25
|
-
}}</span>
|
|
21
|
+
<span>{{ markerData.translations[activeLanguage].name }}</span>
|
|
26
22
|
<dot-wrapper v-if="editionAllowed" class="dotContainer">
|
|
27
23
|
<dot-icon />
|
|
28
24
|
<dot-icon />
|
|
@@ -32,11 +28,11 @@
|
|
|
32
28
|
v-if="activated"
|
|
33
29
|
v-click-outside="clickOutsideActionHandler"
|
|
34
30
|
>
|
|
35
|
-
<edit-item @click="deleteModalOpened = !deleteModalOpened">
|
|
31
|
+
<edit-item @click.native="deleteModalOpened = !deleteModalOpened">
|
|
36
32
|
<delete-icon />
|
|
37
33
|
<div>{{ $gettext('Delete') }}</div>
|
|
38
34
|
</edit-item>
|
|
39
|
-
<edit-item @click="onEditClick">
|
|
35
|
+
<edit-item @click.native="onEditClick">
|
|
40
36
|
<icon-container>
|
|
41
37
|
<icon name="edit_button" size="14px" />
|
|
42
38
|
</icon-container>
|
|
@@ -56,10 +52,10 @@
|
|
|
56
52
|
<page-title :text="$gettext('delete_confirm_text')" />
|
|
57
53
|
<page-subtitle :text="$gettext('delete_confirm_subtext')" />
|
|
58
54
|
<cta-container>
|
|
59
|
-
<main-button @click="onDelete" :text="$gettext('Delete')" />
|
|
55
|
+
<main-button @click.native="onDelete" :text="$gettext('Delete')" />
|
|
60
56
|
<main-button
|
|
61
57
|
type="cancel"
|
|
62
|
-
@click="closeDeleteModal"
|
|
58
|
+
@click.native="closeDeleteModal"
|
|
63
59
|
:text="$gettext('Cancel')"
|
|
64
60
|
/>
|
|
65
61
|
</cta-container>
|
|
@@ -82,8 +78,7 @@
|
|
|
82
78
|
// @deleteHandler="onMarkerDelete($event)"
|
|
83
79
|
// />
|
|
84
80
|
|
|
85
|
-
import styled from '
|
|
86
|
-
import vClickOutside from 'click-outside-vue3'
|
|
81
|
+
import styled from 'vue-styled-components'
|
|
87
82
|
import Icon from '../icon'
|
|
88
83
|
import Modal from '../modals/modal'
|
|
89
84
|
import PageTitle from '../pageTitle'
|
|
@@ -134,6 +129,7 @@ const MarkerContainer = styled('div', MarkerAttrs)`
|
|
|
134
129
|
props.backgroundColor ? props.backgroundColor : props.theme.colors.grey3};
|
|
135
130
|
border-radius: ${(props) =>
|
|
136
131
|
props.hasBorderRadius ? (props.withDate ? '4px 0 0 4px' : '4px') : '0'};
|
|
132
|
+
|
|
137
133
|
white-space: nowrap;
|
|
138
134
|
cursor: ${(props) => (props.isEditionAllowed ? 'pointer' : props.cursor)};
|
|
139
135
|
|
|
@@ -200,9 +196,6 @@ const Date = styled.div`
|
|
|
200
196
|
|
|
201
197
|
export default {
|
|
202
198
|
name: 'project-marker',
|
|
203
|
-
directives: {
|
|
204
|
-
clickOutside: vClickOutside.directive
|
|
205
|
-
},
|
|
206
199
|
components: {
|
|
207
200
|
PageContainer,
|
|
208
201
|
MarkerContainer,
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<spinner-container v-if="fullWidth">
|
|
3
3
|
<container>
|
|
4
|
-
<spinner-wrapper
|
|
4
|
+
<spinner-wrapper
|
|
5
|
+
:size="size"
|
|
6
|
+
:src="require('../../assets/icons/black_spinner.svg')"
|
|
7
|
+
/>
|
|
5
8
|
</container>
|
|
6
9
|
</spinner-container>
|
|
7
10
|
<container v-else :limitedToModal="limitedToModal">
|
|
8
|
-
<spinner-wrapper
|
|
11
|
+
<spinner-wrapper
|
|
12
|
+
:size="size"
|
|
13
|
+
:src="require('../../assets/icons/black_spinner.svg')"
|
|
14
|
+
/>
|
|
9
15
|
</container>
|
|
10
16
|
</template>
|
|
11
17
|
|
|
12
18
|
<script>
|
|
13
19
|
// import Spinner from "@eturnity/eturnity_reusable_components/src/components/spinner"
|
|
14
20
|
// <spinner size="30px" />
|
|
15
|
-
import styled from '
|
|
16
|
-
import SpinnerSvg from '../../assets/icons/black_spinner.svg?component'
|
|
21
|
+
import styled from 'vue-styled-components'
|
|
17
22
|
|
|
18
23
|
const SpinnerContainer = styled.div`
|
|
19
24
|
position: fixed;
|
|
@@ -38,9 +43,8 @@ const Container = styled('div', containerAttrs)`
|
|
|
38
43
|
`
|
|
39
44
|
|
|
40
45
|
const spinnerAttrs = { size: String }
|
|
41
|
-
const SpinnerWrapper = styled(
|
|
46
|
+
const SpinnerWrapper = styled('img', spinnerAttrs)`
|
|
42
47
|
width: ${(props) => (props.size ? props.size : '60px')};
|
|
43
|
-
height: auto;
|
|
44
48
|
`
|
|
45
49
|
|
|
46
50
|
export default {
|
|
@@ -65,4 +69,4 @@ export default {
|
|
|
65
69
|
}
|
|
66
70
|
}
|
|
67
71
|
}
|
|
68
|
-
</script>
|
|
72
|
+
</script>
|