@eturnity/eturnity_reusable_components 7.48.1-EPDM-12680.26 → 7.48.1-EPDM-4900.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 +3 -2
- package/src/components/buttons/buttonIcon/index.vue +1 -3
- package/src/components/buttons/mainButton/index.vue +1 -15
- package/src/components/icon/index.vue +0 -1
- package/src/components/infoText/index.vue +11 -38
- package/src/components/inputs/checkbox/index.vue +1 -1
- package/src/components/inputs/inputNumber/index.vue +12 -200
- package/src/components/inputs/inputText/index.vue +2 -23
- package/src/components/inputs/radioButton/index.vue +6 -27
- package/src/components/inputs/select/index.vue +21 -69
- package/src/components/inputs/select/option/index.vue +2 -11
- package/src/components/markerItem/index.vue +1 -8
- package/src/components/spinner/index.vue +0 -11
- package/src/assets/gifs/spinner.gif +0 -0
- package/src/assets/svgIcons/checkmark.svg +0 -3
- package/src/assets/svgIcons/collapse_all.svg +0 -4
- package/src/assets/svgIcons/expand_all.svg +0 -4
- package/src/assets/svgIcons/export_document.svg +0 -3
- package/src/assets/svgIcons/hybrid.svg +0 -4
- package/src/assets/svgIcons/module.svg +0 -3
- package/src/assets/svgIcons/move_down.svg +0 -3
- package/src/assets/svgIcons/move_up.svg +0 -3
- package/src/assets/svgIcons/optimizer.svg +0 -6
- package/src/assets/svgIcons/string_design.svg +0 -5
- package/src/assets/svgIcons/string_directions.svg +0 -10
- package/src/components/banner/notificationBanner/index.vue +0 -131
- package/src/components/spinnerGif/index.vue +0 -98
- package/src/components/stringDesign/DropdownMenu/index.vue +0 -900
@@ -1,131 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<PageContainer v-if="showBanner">
|
3
|
-
<BannerContainer
|
4
|
-
:background-color="backgroundColor"
|
5
|
-
:text-color="textColor"
|
6
|
-
>
|
7
|
-
<IconContainer>
|
8
|
-
<RCIcon color="white" :name="iconName" size="20px" />
|
9
|
-
</IconContainer>
|
10
|
-
<TextContainer>
|
11
|
-
<TextContent>
|
12
|
-
{{ mainText }}
|
13
|
-
</TextContent>
|
14
|
-
</TextContainer>
|
15
|
-
<ButtonContainer>
|
16
|
-
<MainButton
|
17
|
-
:custom-color="theme.colors.white"
|
18
|
-
:font-color="theme.colors.black"
|
19
|
-
:text="buttonText"
|
20
|
-
@click="$emit('on-button-click')"
|
21
|
-
/>
|
22
|
-
</ButtonContainer>
|
23
|
-
</BannerContainer>
|
24
|
-
</PageContainer>
|
25
|
-
</template>
|
26
|
-
|
27
|
-
<script>
|
28
|
-
// import NotificationBanner from "@eturnity/eturnity_reusable_components/src/components/banner/notificationBanner"
|
29
|
-
import styled from 'vue3-styled-components'
|
30
|
-
import RCIcon from '../../icon'
|
31
|
-
import MainButton from '../../buttons/mainButton'
|
32
|
-
import theme from '@/assets/theme'
|
33
|
-
|
34
|
-
const PageContainer = styled.div`
|
35
|
-
position: fixed;
|
36
|
-
bottom: 24px;
|
37
|
-
left: 50%;
|
38
|
-
transform: translateX(-50%);
|
39
|
-
z-index: 999999;
|
40
|
-
`
|
41
|
-
|
42
|
-
const bannerAttrs = { backgroundColor: String, textColor: String }
|
43
|
-
const BannerContainer = styled('div', bannerAttrs)`
|
44
|
-
display: grid;
|
45
|
-
grid-template-columns: auto 1fr auto;
|
46
|
-
gap: 20px;
|
47
|
-
padding: 10px 20px;
|
48
|
-
border-radius: 4px;
|
49
|
-
align-items: center;
|
50
|
-
justify-content: center;
|
51
|
-
background-color: ${(props) => props.theme.colors[props.backgroundColor]};
|
52
|
-
color: ${(props) => props.theme.colors[props.textColor]};
|
53
|
-
font-size: 14px;
|
54
|
-
`
|
55
|
-
|
56
|
-
const IconContainer = styled.div``
|
57
|
-
|
58
|
-
const TextContainer = styled.div``
|
59
|
-
|
60
|
-
const TextContent = styled.div`
|
61
|
-
line-height: 150%;
|
62
|
-
`
|
63
|
-
|
64
|
-
const ButtonContainer = styled.div`
|
65
|
-
display: flex;
|
66
|
-
gap: 20px;
|
67
|
-
align-items: center;
|
68
|
-
justify-content: center;
|
69
|
-
`
|
70
|
-
|
71
|
-
export default {
|
72
|
-
name: 'NotificationBanner',
|
73
|
-
components: {
|
74
|
-
PageContainer,
|
75
|
-
BannerContainer,
|
76
|
-
RCIcon,
|
77
|
-
IconContainer,
|
78
|
-
TextContainer,
|
79
|
-
TextContent,
|
80
|
-
ButtonContainer,
|
81
|
-
MainButton,
|
82
|
-
},
|
83
|
-
props: {
|
84
|
-
backgroundColor: {
|
85
|
-
type: String,
|
86
|
-
default: 'green',
|
87
|
-
required: false,
|
88
|
-
},
|
89
|
-
textColor: {
|
90
|
-
type: String,
|
91
|
-
default: 'white',
|
92
|
-
required: false,
|
93
|
-
},
|
94
|
-
iconName: {
|
95
|
-
type: String,
|
96
|
-
default: 'checkmark',
|
97
|
-
required: false,
|
98
|
-
},
|
99
|
-
mainText: {
|
100
|
-
type: String,
|
101
|
-
required: true,
|
102
|
-
},
|
103
|
-
buttonText: {
|
104
|
-
type: String,
|
105
|
-
required: true,
|
106
|
-
},
|
107
|
-
isOpen: {
|
108
|
-
type: Boolean,
|
109
|
-
default: false,
|
110
|
-
required: true,
|
111
|
-
},
|
112
|
-
},
|
113
|
-
data() {
|
114
|
-
return {
|
115
|
-
theme,
|
116
|
-
showBanner: false,
|
117
|
-
}
|
118
|
-
},
|
119
|
-
watch: {
|
120
|
-
isOpen(newVal) {
|
121
|
-
if (newVal) {
|
122
|
-
this.showBanner = true
|
123
|
-
setTimeout(() => {
|
124
|
-
this.showBanner = false
|
125
|
-
this.$emit('on-close')
|
126
|
-
}, 10000)
|
127
|
-
}
|
128
|
-
},
|
129
|
-
},
|
130
|
-
}
|
131
|
-
</script>
|
@@ -1,98 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<SpinnerContainer v-if="fullWidth" data-test-id="spinner_full_container">
|
3
|
-
<Container>
|
4
|
-
<SpinnerWrapper data-test-id="spinner_full_wrapper">
|
5
|
-
<img
|
6
|
-
:class="{ white: isWhite }"
|
7
|
-
data-test-id="spinner_full_icon"
|
8
|
-
src="../../assets/gifs/spinner.gif"
|
9
|
-
:style="{ width: size, height: size }"
|
10
|
-
/>
|
11
|
-
</SpinnerWrapper>
|
12
|
-
</Container>
|
13
|
-
</SpinnerContainer>
|
14
|
-
<Container
|
15
|
-
v-else
|
16
|
-
data-test-id="spinner_container"
|
17
|
-
:limited-to-modal="limitedToModal"
|
18
|
-
>
|
19
|
-
<SpinnerWrapper data-test-id="spinner_wrapper">
|
20
|
-
<img
|
21
|
-
:class="{ white: isWhite }"
|
22
|
-
data-test-id="spinner_full_icon"
|
23
|
-
src="../../assets/gifs/spinner.gif"
|
24
|
-
:style="{ width: size, height: size }"
|
25
|
-
/>
|
26
|
-
</SpinnerWrapper>
|
27
|
-
</Container>
|
28
|
-
</template>
|
29
|
-
|
30
|
-
<script>
|
31
|
-
// import Spinner from "@eturnity/eturnity_reusable_components/src/components/spinner"
|
32
|
-
// <spinner size="30px" />
|
33
|
-
import styled from 'vue3-styled-components'
|
34
|
-
import SpinnerSvg from '../../assets/icons/black_spinner.svg'
|
35
|
-
|
36
|
-
const SpinnerContainer = styled.div`
|
37
|
-
position: fixed;
|
38
|
-
top: 0;
|
39
|
-
left: 0;
|
40
|
-
width: 100%;
|
41
|
-
height: 100%;
|
42
|
-
background: rgba(255, 255, 255, 0.8);
|
43
|
-
display: grid;
|
44
|
-
align-items: center;
|
45
|
-
justify-items: center;
|
46
|
-
z-index: 100;
|
47
|
-
`
|
48
|
-
const containerAttrs = { limitedToModal: Boolean }
|
49
|
-
const Container = styled('div', containerAttrs)`
|
50
|
-
display: grid;
|
51
|
-
align-items: center;
|
52
|
-
justify-items: center;
|
53
|
-
position: ${(props) => (props.limitedToModal ? 'absolute' : 'inherit')};
|
54
|
-
height: ${(props) => (props.limitedToModal ? '100%' : 'inherit')};
|
55
|
-
width: ${(props) => (props.limitedToModal ? '100%' : 'inherit')};
|
56
|
-
`
|
57
|
-
|
58
|
-
const SpinnerWrapper = styled.div`
|
59
|
-
width: ${(props) => (props.size ? props.size : '60px')};
|
60
|
-
height: auto;
|
61
|
-
|
62
|
-
.white {
|
63
|
-
filter: brightness(0) invert(1);
|
64
|
-
}
|
65
|
-
`
|
66
|
-
|
67
|
-
export default {
|
68
|
-
name: 'SpinnerComponent',
|
69
|
-
components: {
|
70
|
-
Container,
|
71
|
-
SpinnerWrapper,
|
72
|
-
SpinnerContainer,
|
73
|
-
SpinnerSvg,
|
74
|
-
},
|
75
|
-
props: {
|
76
|
-
fullWidth: {
|
77
|
-
required: false,
|
78
|
-
default: false,
|
79
|
-
type: Boolean,
|
80
|
-
},
|
81
|
-
limitedToModal: {
|
82
|
-
required: false,
|
83
|
-
default: false,
|
84
|
-
type: Boolean,
|
85
|
-
},
|
86
|
-
size: {
|
87
|
-
required: false,
|
88
|
-
default: '60px',
|
89
|
-
type: String,
|
90
|
-
},
|
91
|
-
isWhite: {
|
92
|
-
required: false,
|
93
|
-
default: false,
|
94
|
-
type: Boolean,
|
95
|
-
},
|
96
|
-
},
|
97
|
-
}
|
98
|
-
</script>
|