@eturnity/eturnity_reusable_components 7.8.6-EPDM-7951.0 → 7.10.0-EPDM-10163.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 -18
- package/src/App.vue +2 -2
- package/src/assets/svgIcons/expand.svg +1 -0
- package/src/assets/svgIcons/split.svg +45 -0
- package/src/assets/theme.js +2 -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 +1 -6
- 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 +1 -1
- package/src/components/filter/filterSettings.vue +97 -55
- 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 +55 -57
- package/src/components/iconWrapper/index.vue +5 -2
- package/src/components/infoCard/index.vue +3 -2
- package/src/components/infoText/index.vue +6 -2
- package/src/components/inputs/checkbox/index.vue +6 -21
- package/src/components/inputs/inputNumber/index.vue +12 -8
- package/src/components/inputs/inputNumberQuestion/index.vue +1 -1
- package/src/components/inputs/inputText/index.vue +8 -3
- package/src/components/inputs/radioButton/index.vue +1 -1
- package/src/components/inputs/searchInput/index.vue +8 -7
- package/src/components/inputs/select/index.vue +72 -213
- package/src/components/inputs/select/option/index.vue +5 -5
- 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 +32 -27
- package/src/components/modals/modal/index.vue +8 -13
- package/src/components/navigationTabs/index.vue +30 -37
- package/src/components/pageSubtitle/index.vue +1 -1
- package/src/components/pageTitle/index.vue +19 -20
- package/src/components/pagination/index.vue +1 -1
- package/src/components/progressBar/index.vue +1 -1
- package/src/components/projectMarker/index.vue +7 -10
- package/src/components/sideMenu/index.vue +1 -1
- package/src/components/spinner/index.vue +11 -6
- package/src/components/tableDropdown/index.vue +26 -21
- package/src/components/tables/mainTable/exampleNested.vue +1 -1
- package/src/components/tables/mainTable/index.vue +1 -2
- 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
@@ -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
|
|
@@ -48,7 +48,7 @@
|
|
48
48
|
>
|
49
49
|
<label-text :size="size" :fontColor="fontColor">{{ label }}</label-text>
|
50
50
|
<info-text
|
51
|
-
@click.stop
|
51
|
+
@click.native.stop
|
52
52
|
v-if="infoTextMessage"
|
53
53
|
:text="infoTextMessage"
|
54
54
|
borderColor="#ccc"
|
@@ -76,7 +76,7 @@
|
|
76
76
|
// :disabled="false"
|
77
77
|
// />
|
78
78
|
|
79
|
-
import styled from '
|
79
|
+
import styled from 'vue-styled-components'
|
80
80
|
import InfoText from '../../infoText'
|
81
81
|
import theme from '../../../assets/theme'
|
82
82
|
const Container = styled.div``
|
@@ -47,7 +47,7 @@
|
|
47
47
|
>
|
48
48
|
<label-text :size="size" :fontColor="fontColor">{{ label }}</label-text>
|
49
49
|
<info-text
|
50
|
-
@click.stop
|
50
|
+
@click.native.stop
|
51
51
|
v-if="infoTextMessage"
|
52
52
|
:text="infoTextMessage"
|
53
53
|
borderColor="#ccc"
|
@@ -77,7 +77,7 @@
|
|
77
77
|
// data-id="test_data_id"
|
78
78
|
// />
|
79
79
|
|
80
|
-
import styled from '
|
80
|
+
import styled from 'vue-styled-components'
|
81
81
|
import InfoText from '../../infoText'
|
82
82
|
|
83
83
|
const Container = styled.div`
|
@@ -1,25 +1,30 @@
|
|
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
|
+
borderColor="#ccc"
|
17
|
+
:size="fontSize ? fontSize : '16px'"
|
18
|
+
:alignArrow="infoTextAlign"
|
19
|
+
/>
|
20
|
+
</label-wrapper>
|
17
21
|
</template>
|
18
22
|
|
19
23
|
<script>
|
20
|
-
import styled from '
|
24
|
+
import styled from 'vue-styled-components'
|
21
25
|
import InfoText from '../infoText'
|
22
26
|
|
27
|
+
|
23
28
|
const labelAttrs = { fontSize: String, labelFontColor: String }
|
24
29
|
const InputLabel = styled('div', labelAttrs)`
|
25
30
|
color: ${(props) =>
|
@@ -36,15 +41,15 @@ const optionalLabel = styled.span`
|
|
36
41
|
font-weight: 300;
|
37
42
|
`
|
38
43
|
|
39
|
-
const LabelWrapper = styled('div',
|
40
|
-
${
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
${
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
const LabelWrapper = styled('div',{labelAlign:String})`
|
45
|
+
${props=>props.labelAlign=='horizontal'?
|
46
|
+
'display: inline-grid;':
|
47
|
+
'display: grid;'
|
48
|
+
}
|
49
|
+
${props=>props.labelAlign=='horizontal'?
|
50
|
+
'margin-right: 10px;':
|
51
|
+
'margin-bottom: 8px;'
|
52
|
+
}
|
48
53
|
vertical-align: center;
|
49
54
|
grid-template-columns: auto auto;
|
50
55
|
grid-gap: 12px;
|
@@ -93,7 +98,7 @@ export default {
|
|
93
98
|
labelAlign: {
|
94
99
|
required: false,
|
95
100
|
default: 'vertical'
|
96
|
-
}
|
97
|
-
}
|
101
|
+
},
|
102
|
+
},
|
98
103
|
}
|
99
104
|
</script>
|
@@ -5,12 +5,16 @@
|
|
5
5
|
:class="{ visible: isOpen, hidden: !isOpen }"
|
6
6
|
:backdrop="backdrop"
|
7
7
|
>
|
8
|
-
<modal-container @click
|
8
|
+
<modal-container @click.stop>
|
9
9
|
<spinner v-if="isLoading" size="50px" :limitedToModal="true" />
|
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>
|
@@ -22,11 +26,11 @@
|
|
22
26
|
// import Modal from "@eturnity/eturnity_reusable_components/src/components/modals/modal"
|
23
27
|
// This is a more flexible modal box, where the parent can decide how the body of the modal looks
|
24
28
|
// To use:
|
25
|
-
// <modal :isOpen="isOpen" @on-close="$emit('on-close-summary')" :isLoading="true" :hideClose="true"
|
29
|
+
// <modal :isOpen="isOpen" @on-close="$emit('on-close-summary')" :isLoading="true" :hideClose="true">
|
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
|
|
@@ -147,10 +151,6 @@ export default {
|
|
147
151
|
position: {
|
148
152
|
required: false,
|
149
153
|
default: 'fixed'
|
150
|
-
},
|
151
|
-
stopPropagation: {
|
152
|
-
type: Boolean,
|
153
|
-
default: true
|
154
154
|
}
|
155
155
|
},
|
156
156
|
beforeDestroy() {
|
@@ -164,11 +164,6 @@ export default {
|
|
164
164
|
if (key === 'Escape') {
|
165
165
|
this.onCloseModal()
|
166
166
|
}
|
167
|
-
},
|
168
|
-
onClickModalContainer(event) {
|
169
|
-
if (this.stopPropagation) {
|
170
|
-
event.stopPropagation()
|
171
|
-
}
|
172
167
|
}
|
173
168
|
},
|
174
169
|
watch: {
|
@@ -8,23 +8,23 @@
|
|
8
8
|
:active="isIndexKey ? index === activeTab : tab[tabKey] === activeTab"
|
9
9
|
@click="$emit('tab-click', isIndexKey ? index : tab[tabKey])"
|
10
10
|
>
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
11
|
+
<Option :isDisabled="!!tab['isDisabled']" :textColor="tab['textColor']">
|
12
|
+
<Uppercase>{{ tab[tabLabel] }}</Uppercase>
|
13
|
+
<info-text
|
14
|
+
v-if="tab['labelInfoText']"
|
15
|
+
:text="tab['labelInfoText']"
|
16
|
+
borderColor="#ccc"
|
17
|
+
size="14px"
|
18
|
+
:alignArrow="tab['labelInfoAlign']"
|
19
|
+
/>
|
20
|
+
</Option>
|
21
21
|
</tab>
|
22
22
|
<bottomLine />
|
23
23
|
</roofTabWrap>
|
24
24
|
</template>
|
25
25
|
|
26
26
|
<script>
|
27
|
-
import styled from '
|
27
|
+
import styled from 'vue-styled-components'
|
28
28
|
import InfoText from '../infoText'
|
29
29
|
const TabAttr = {
|
30
30
|
active: Boolean,
|
@@ -33,12 +33,12 @@ const TabAttr = {
|
|
33
33
|
}
|
34
34
|
|
35
35
|
const bottomLine = styled('div')`
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
36
|
+
position: absolute;
|
37
|
+
bottom: 0;
|
38
|
+
left: 0;
|
39
|
+
height: 1px;
|
40
|
+
width: 100%;
|
41
|
+
background-color: #b2b9c5;
|
42
42
|
`
|
43
43
|
const roofTabWrap = styled('div')`
|
44
44
|
display: flex;
|
@@ -50,22 +50,17 @@ const roofTabWrap = styled('div')`
|
|
50
50
|
const Uppercase = styled('span')`
|
51
51
|
text-transform: uppercase;
|
52
52
|
`
|
53
|
-
const Option = styled('div',
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
: props.textColor
|
65
|
-
: props.isDisabled
|
66
|
-
? props.theme.colors.grey2
|
67
|
-
: props.theme.colors.black};
|
68
|
-
`
|
53
|
+
const Option = styled('div',TabAttr)`
|
54
|
+
font-size: 13px;
|
55
|
+
font-weight: 700;
|
56
|
+
display:flex;
|
57
|
+
justify-content: center;
|
58
|
+
flex-direction: row;
|
59
|
+
gap: 10px;
|
60
|
+
color: ${props=>props.textColor ?
|
61
|
+
props.theme.colors[props.textColor] ? props.theme.colors[props.textColor] : props.textColor :
|
62
|
+
props.isDisabled ? props.theme.colors.grey2 : props.theme.colors.black};
|
63
|
+
`
|
69
64
|
const Tab = styled('div', TabAttr)`
|
70
65
|
padding: 16px 10px;
|
71
66
|
margin-right: 5px;
|
@@ -74,8 +69,7 @@ const Tab = styled('div', TabAttr)`
|
|
74
69
|
z-index: 10;
|
75
70
|
border-bottom: 2px solid
|
76
71
|
${(props) => (props.active ? props.theme.colors.primary : 'transparent')};
|
77
|
-
background-color: ${(props) =>
|
78
|
-
props.isDisabled ? props.theme.colors.grey5 : 'transparent'};
|
72
|
+
background-color: ${(props) => (props.isDisabled ? props.theme.colors.grey5 : 'transparent')};
|
79
73
|
transition: 0.2s ease;
|
80
74
|
cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'pointer')};
|
81
75
|
min-width: 140px;
|
@@ -84,8 +78,7 @@ const Tab = styled('div', TabAttr)`
|
|
84
78
|
justify-content: space-between;
|
85
79
|
min-height: 55px;
|
86
80
|
&:hover {
|
87
|
-
border-color: ${(props) =>
|
88
|
-
props.isDisabled ? props.theme.colors.grey2 : props.theme.colors.primary};
|
81
|
+
border-color: ${(props) => props.isDisabled ? props.theme.colors.grey2 : props.theme.colors.primary};
|
89
82
|
}
|
90
83
|
`
|
91
84
|
|
@@ -21,7 +21,7 @@
|
|
21
21
|
// color="red"
|
22
22
|
// infoText="My info text"
|
23
23
|
// />
|
24
|
-
import styled from "
|
24
|
+
import styled from "vue-styled-components"
|
25
25
|
import InfoText from "../infoText"
|
26
26
|
|
27
27
|
const textAttrs = { color: String, hasInfoText: Boolean, marginBottom: String }
|
@@ -1,15 +1,13 @@
|
|
1
1
|
<template>
|
2
2
|
<flex>
|
3
|
-
<title-text :color="color" :fontSize="fontSize" :uppercase="uppercase">{{
|
4
|
-
text
|
5
|
-
}}</title-text>
|
3
|
+
<title-text :color="color" :fontSize="fontSize" :uppercase="uppercase">{{ text }}</title-text>
|
6
4
|
<info-text
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
v-if="infoText"
|
6
|
+
:text="infoText"
|
7
|
+
borderColor="#ccc"
|
8
|
+
size="14px"
|
9
|
+
:alignArrow="infoAlign"
|
10
|
+
/>
|
13
11
|
</flex>
|
14
12
|
</template>
|
15
13
|
|
@@ -20,24 +18,25 @@
|
|
20
18
|
// text="My Page Title"
|
21
19
|
// color="red"
|
22
20
|
// />
|
23
|
-
import styled from
|
21
|
+
import styled from "vue-styled-components"
|
24
22
|
import InfoText from '../infoText'
|
25
23
|
const textAttrs = { color: String, fontSize: String, uppercase: Boolean }
|
26
|
-
const TitleText = styled(
|
24
|
+
const TitleText = styled("div", textAttrs)`
|
27
25
|
color: ${(props) => (props.color ? props.color : props.theme.colors.black)};
|
28
26
|
font-weight: bold;
|
29
27
|
font-size: ${(props) => (props.fontSize ? props.fontSize : '16px')};
|
30
28
|
text-transform: ${(props) => (props.uppercase ? 'uppercase' : 'none')};
|
29
|
+
|
31
30
|
`
|
32
|
-
const flex = styled(
|
31
|
+
const flex = styled("div", textAttrs)`
|
33
32
|
display: flex;
|
34
|
-
gap:
|
33
|
+
gap:10px;
|
35
34
|
margin-bottom: 20px;
|
36
35
|
align-items: center;
|
37
36
|
`
|
38
37
|
|
39
38
|
export default {
|
40
|
-
name:
|
39
|
+
name: "page-title",
|
41
40
|
components: {
|
42
41
|
TitleText,
|
43
42
|
InfoText,
|
@@ -45,10 +44,10 @@ export default {
|
|
45
44
|
},
|
46
45
|
props: {
|
47
46
|
text: {
|
48
|
-
required: true
|
47
|
+
required: true,
|
49
48
|
},
|
50
49
|
color: {
|
51
|
-
required: false
|
50
|
+
required: false,
|
52
51
|
},
|
53
52
|
fontSize: {
|
54
53
|
required: false,
|
@@ -59,11 +58,11 @@ export default {
|
|
59
58
|
default: true
|
60
59
|
},
|
61
60
|
infoText: {
|
62
|
-
required: false
|
61
|
+
required: false,
|
63
62
|
},
|
64
63
|
infoAlign: {
|
65
|
-
required: false
|
66
|
-
}
|
67
|
-
}
|
64
|
+
required: false,
|
65
|
+
},
|
66
|
+
},
|
68
67
|
}
|
69
68
|
</script>
|
@@ -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"
|
@@ -28,11 +28,11 @@
|
|
28
28
|
v-if="activated"
|
29
29
|
v-click-outside="clickOutsideActionHandler"
|
30
30
|
>
|
31
|
-
<edit-item @click="deleteModalOpened = !deleteModalOpened">
|
31
|
+
<edit-item @click.native="deleteModalOpened = !deleteModalOpened">
|
32
32
|
<delete-icon />
|
33
33
|
<div>{{ $gettext('Delete') }}</div>
|
34
34
|
</edit-item>
|
35
|
-
<edit-item @click="onEditClick">
|
35
|
+
<edit-item @click.native="onEditClick">
|
36
36
|
<icon-container>
|
37
37
|
<icon name="edit_button" size="14px" />
|
38
38
|
</icon-container>
|
@@ -52,10 +52,10 @@
|
|
52
52
|
<page-title :text="$gettext('delete_confirm_text')" />
|
53
53
|
<page-subtitle :text="$gettext('delete_confirm_subtext')" />
|
54
54
|
<cta-container>
|
55
|
-
<main-button @click="onDelete" :text="$gettext('Delete')" />
|
55
|
+
<main-button @click.native="onDelete" :text="$gettext('Delete')" />
|
56
56
|
<main-button
|
57
57
|
type="cancel"
|
58
|
-
@click="closeDeleteModal"
|
58
|
+
@click.native="closeDeleteModal"
|
59
59
|
:text="$gettext('Cancel')"
|
60
60
|
/>
|
61
61
|
</cta-container>
|
@@ -78,8 +78,7 @@
|
|
78
78
|
// @deleteHandler="onMarkerDelete($event)"
|
79
79
|
// />
|
80
80
|
|
81
|
-
import styled from '
|
82
|
-
import vClickOutside from 'click-outside-vue3'
|
81
|
+
import styled from 'vue-styled-components'
|
83
82
|
import Icon from '../icon'
|
84
83
|
import Modal from '../modals/modal'
|
85
84
|
import PageTitle from '../pageTitle'
|
@@ -130,6 +129,7 @@ const MarkerContainer = styled('div', MarkerAttrs)`
|
|
130
129
|
props.backgroundColor ? props.backgroundColor : props.theme.colors.grey3};
|
131
130
|
border-radius: ${(props) =>
|
132
131
|
props.hasBorderRadius ? (props.withDate ? '4px 0 0 4px' : '4px') : '0'};
|
132
|
+
|
133
133
|
white-space: nowrap;
|
134
134
|
cursor: ${(props) => (props.isEditionAllowed ? 'pointer' : props.cursor)};
|
135
135
|
|
@@ -196,9 +196,6 @@ const Date = styled.div`
|
|
196
196
|
|
197
197
|
export default {
|
198
198
|
name: 'project-marker',
|
199
|
-
directives: {
|
200
|
-
clickOutside: vClickOutside.directive
|
201
|
-
},
|
202
199
|
components: {
|
203
200
|
PageContainer,
|
204
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'
|
21
|
+
import styled from 'vue-styled-components'
|
17
22
|
|
18
23
|
const SpinnerContainer = styled.div`
|
19
24
|
position: fixed;
|
@@ -38,7 +43,7 @@ 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
48
|
`
|
44
49
|
|
@@ -64,4 +69,4 @@ export default {
|
|
64
69
|
}
|
65
70
|
}
|
66
71
|
}
|
67
|
-
</script>
|
72
|
+
</script>
|