@burh/nuxt-core 1.0.140 → 1.0.142
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.
|
@@ -1,90 +1,98 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
2
|
+
<default-link
|
|
3
|
+
:link="!validated ? '' : to"
|
|
4
|
+
class="product-item"
|
|
5
|
+
:disabled="disabled"
|
|
6
|
+
>
|
|
7
|
+
<div
|
|
8
|
+
@click="$emit('redirect-product', to, validated)"
|
|
9
|
+
:class="'product-item--avatar bg-' + color"
|
|
10
|
+
>
|
|
11
|
+
<img :src="avatar" alt="" />
|
|
12
|
+
</div>
|
|
13
|
+
<div :class="contentClass" class="product-item--content">
|
|
14
|
+
<component
|
|
15
|
+
:is="titleTag"
|
|
16
|
+
:class="titleClass"
|
|
17
|
+
class="product-item--title"
|
|
18
|
+
>{{ title }}</component
|
|
19
|
+
>
|
|
20
|
+
<p
|
|
21
|
+
:class="descriptionClass"
|
|
22
|
+
class="product-item--description"
|
|
23
|
+
v-if="description"
|
|
24
|
+
>
|
|
25
|
+
{{ description }}
|
|
26
|
+
</p>
|
|
27
|
+
<badge
|
|
28
|
+
rounded
|
|
29
|
+
size="md"
|
|
30
|
+
class="ml-auto badge-bg-color badge-font"
|
|
31
|
+
type="primary"
|
|
32
|
+
v-show="hasEnableBadge"
|
|
33
|
+
>ATUALIZAR
|
|
34
|
+
</badge>
|
|
35
|
+
</div>
|
|
36
|
+
</default-link>
|
|
30
37
|
</template>
|
|
31
38
|
|
|
32
39
|
<script>
|
|
33
40
|
import DefaultLink from '../Link/DefaultLink';
|
|
34
41
|
export default {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
42
|
+
name: 'simple-product-item',
|
|
43
|
+
components: {
|
|
44
|
+
DefaultLink
|
|
45
|
+
},
|
|
46
|
+
props: {
|
|
47
|
+
tag: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: 'section'
|
|
50
|
+
},
|
|
51
|
+
contentClass: String,
|
|
52
|
+
title: String,
|
|
53
|
+
titleTag: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: 'h3'
|
|
56
|
+
},
|
|
57
|
+
titleClass: String,
|
|
58
|
+
avatar: String,
|
|
59
|
+
color: String,
|
|
60
|
+
icon: String,
|
|
61
|
+
avatarClass: String,
|
|
62
|
+
description: String,
|
|
63
|
+
descriptionClass: String,
|
|
64
|
+
hasEnableBadge: Boolean,
|
|
65
|
+
badgeClass: String,
|
|
66
|
+
to: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: '/'
|
|
69
|
+
},
|
|
70
|
+
indexableName: String,
|
|
71
|
+
validated: Boolean,
|
|
72
|
+
disabled: Boolean
|
|
73
|
+
},
|
|
74
|
+
methods: {
|
|
75
|
+
callVideoTutorial() {
|
|
76
|
+
// if (this.indexableName == 'VIDEO_CHAMADA') {
|
|
77
|
+
this.$emit('callVideoTutorial');
|
|
78
|
+
// }
|
|
79
|
+
}
|
|
80
|
+
}
|
|
73
81
|
};
|
|
74
82
|
</script>
|
|
75
83
|
|
|
76
84
|
<style lang="scss" scoped>
|
|
77
85
|
.product-item {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
86
|
+
&[disabled] {
|
|
87
|
+
cursor: not-allowed;
|
|
88
|
+
pointer-events: all !important;
|
|
89
|
+
}
|
|
82
90
|
|
|
83
91
|
display: inline-block;
|
|
84
92
|
|
|
85
93
|
&--title {
|
|
86
94
|
text-align: center;
|
|
87
|
-
|
|
95
|
+
font-weight: 400;
|
|
88
96
|
}
|
|
89
97
|
|
|
90
98
|
&--content {
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<nuxt-link @click="$emit('click')" v-if="isNuxtLink" :to="link">
|
|
3
|
+
<slot />
|
|
4
|
+
</nuxt-link>
|
|
5
|
+
<a v-else @click="$emit('click')" :href="link">
|
|
6
|
+
<slot />
|
|
7
|
+
</a>
|
|
8
8
|
</template>
|
|
9
9
|
<script>
|
|
10
10
|
export default {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
name: 'default-link',
|
|
12
|
+
props: {
|
|
13
|
+
link: String
|
|
14
|
+
},
|
|
15
|
+
computed: {
|
|
16
|
+
isNuxtLink() {
|
|
17
|
+
return !this.link.includes('://') && this.link !== '#';
|
|
18
|
+
}
|
|
19
|
+
}
|
|
21
20
|
};
|
|
22
21
|
</script>
|
|
23
22
|
<style lang="scss">
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
.col--product-item {
|
|
24
|
+
text-align: center;
|
|
25
|
+
}
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
.product-item {
|
|
28
|
+
text-align: center;
|
|
29
|
+
}
|
|
31
30
|
</style>
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
:visible.sync="isActive"
|
|
4
|
+
width="34%"
|
|
5
|
+
custom-class="position-relative"
|
|
6
|
+
@close="$emit('close')"
|
|
7
|
+
>
|
|
8
|
+
<template>
|
|
9
|
+
<div class="row flex-column align-items-center plan-modal mx-0">
|
|
10
|
+
<img :src="cover" alt="" />
|
|
11
|
+
|
|
12
|
+
<span class="plan plan-upgrade mt-3">Atualizar</span>
|
|
13
|
+
|
|
14
|
+
<h4 class="mt-2 plan-name">Plano Burh Empresas</h4>
|
|
15
|
+
|
|
16
|
+
<p class="text-center ml-4 mr-4 mt-2 plan-message">
|
|
17
|
+
Para habilitar essa solução é necessário fazer uma
|
|
18
|
+
atualização para o
|
|
19
|
+
<strong>Plano Burh Empresas.</strong>
|
|
20
|
+
</p>
|
|
21
|
+
|
|
22
|
+
<p class="text-center ml-4 mr-4 plan-message">
|
|
23
|
+
Entre em contato com nosso time comercial para mais
|
|
24
|
+
informações.
|
|
25
|
+
</p>
|
|
26
|
+
|
|
27
|
+
<a
|
|
28
|
+
href="mailto:burh@burh.com.br"
|
|
29
|
+
@click="$emit('close')"
|
|
30
|
+
class="plan-contact mt-5"
|
|
31
|
+
>Entrar em contato</a
|
|
32
|
+
>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<span class="tool tool-close" @click="$emit('close')">
|
|
36
|
+
Fechar
|
|
37
|
+
<font-awesome-icon
|
|
38
|
+
:icon="['fas', 'times']"
|
|
39
|
+
class="text-white ml-1"
|
|
40
|
+
/>
|
|
41
|
+
</span>
|
|
42
|
+
</template>
|
|
43
|
+
</el-dialog>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<script>
|
|
47
|
+
import { Dialog } from 'element-ui';
|
|
48
|
+
|
|
49
|
+
export default {
|
|
50
|
+
name: 'plan-modal',
|
|
51
|
+
components: {
|
|
52
|
+
[Dialog.name]: Dialog
|
|
53
|
+
},
|
|
54
|
+
props: {
|
|
55
|
+
isActive: Boolean,
|
|
56
|
+
cover: String
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<style lang="scss" scoped>
|
|
62
|
+
@import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
|
|
63
|
+
|
|
64
|
+
/deep/ .el-dialog__body {
|
|
65
|
+
padding: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/deep/ .el-dialog__header {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.plan-modal {
|
|
73
|
+
background: #fff;
|
|
74
|
+
img {
|
|
75
|
+
width: 100%;
|
|
76
|
+
height: 130px;
|
|
77
|
+
object-fit: cover;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.plan {
|
|
82
|
+
&-upgrade {
|
|
83
|
+
width: 78px;
|
|
84
|
+
height: 17.8px;
|
|
85
|
+
background: #c6ddff;
|
|
86
|
+
border-radius: 8.8px;
|
|
87
|
+
text-transform: uppercase;
|
|
88
|
+
|
|
89
|
+
font-family: Poppins;
|
|
90
|
+
font-style: normal;
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
font-size: 10px;
|
|
93
|
+
line-height: 31px;
|
|
94
|
+
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
align-items: center;
|
|
98
|
+
|
|
99
|
+
color: #1d364b;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&-name {
|
|
103
|
+
font-style: normal;
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
font-size: 23.4259px;
|
|
106
|
+
line-height: 30px;
|
|
107
|
+
|
|
108
|
+
color: #1d364b;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&-message {
|
|
112
|
+
font-family: Poppins;
|
|
113
|
+
font-style: normal;
|
|
114
|
+
font-weight: normal;
|
|
115
|
+
font-size: 14.9074px;
|
|
116
|
+
line-height: 21px;
|
|
117
|
+
color: #62778c;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&-contact {
|
|
121
|
+
display: flex;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
align-items: center;
|
|
124
|
+
|
|
125
|
+
outline: 0;
|
|
126
|
+
width: 196px;
|
|
127
|
+
height: 35px;
|
|
128
|
+
|
|
129
|
+
background: #1f8ceb;
|
|
130
|
+
box-shadow: 0px 4.22794px 10.1471px rgba(0, 0, 0, 0.15);
|
|
131
|
+
border-radius: 22.8309px;
|
|
132
|
+
border: none;
|
|
133
|
+
|
|
134
|
+
font-family: Poppins;
|
|
135
|
+
font-style: normal;
|
|
136
|
+
font-weight: 600;
|
|
137
|
+
font-size: 13.5294px;
|
|
138
|
+
line-height: 21px;
|
|
139
|
+
color: #fff;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.tool {
|
|
144
|
+
position: absolute;
|
|
145
|
+
top: 1rem;
|
|
146
|
+
z-index: 10;
|
|
147
|
+
color: $primary;
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
|
|
150
|
+
&-close {
|
|
151
|
+
position: absolute;
|
|
152
|
+
width: 88px;
|
|
153
|
+
height: 27px;
|
|
154
|
+
right: 7px;
|
|
155
|
+
top: 7px;
|
|
156
|
+
display: flex;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
align-items: center;
|
|
159
|
+
|
|
160
|
+
font-size: 11px;
|
|
161
|
+
|
|
162
|
+
font-weight: 500;
|
|
163
|
+
background: rgba(0, 0, 0, 0.2);
|
|
164
|
+
border-radius: 17.5px;
|
|
165
|
+
color: #fff;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
</style>
|