@burh/nuxt-core 1.0.225 → 1.0.227
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.
|
@@ -85,10 +85,10 @@ export default {
|
|
|
85
85
|
box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
|
|
86
86
|
padding: 20px;
|
|
87
87
|
border-radius: 4px;
|
|
88
|
-
transition: transform 0.25s;
|
|
89
88
|
border: none;
|
|
90
89
|
text-align: initial;
|
|
91
90
|
color: #1D364B;
|
|
91
|
+
transition: transform 0.25s;
|
|
92
92
|
&:focus {
|
|
93
93
|
outline: none;
|
|
94
94
|
transform: translateY(-5px);
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="recruitment__user__card">
|
|
3
|
+
<div class="recruitment__user__card__header">
|
|
4
|
+
<div class="recruitment__user__card__header__actions">
|
|
5
|
+
<div class="left">
|
|
6
|
+
<input type="checkbox" name="" id="">
|
|
7
|
+
</div>
|
|
8
|
+
<div class="right">
|
|
9
|
+
<el-tooltip placement="top" content="Anotações">
|
|
10
|
+
<button>
|
|
11
|
+
<i class="far fa-comment-alt notes"></i>
|
|
12
|
+
</button>
|
|
13
|
+
</el-tooltip>
|
|
14
|
+
<el-tooltip placement="top" content="Reprovar">
|
|
15
|
+
<button>
|
|
16
|
+
<i class="fas fa-times"></i>
|
|
17
|
+
</button>
|
|
18
|
+
</el-tooltip>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<img src="https://www.rotamaxima.com.br/wp-content/uploads/2018/11/principal.png" alt="Cover" class="user__cover">
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<div class="recruitment__user__card__content">
|
|
25
|
+
<img src="https://randomuser.me/api/portraits/women/86.jpg" alt="Marisa da Silva">
|
|
26
|
+
<span class="name">
|
|
27
|
+
Marisa Silva
|
|
28
|
+
<i class="fas fa-wheelchair pcd"></i>
|
|
29
|
+
</span>
|
|
30
|
+
<span class="age">23 anos</span>
|
|
31
|
+
<span class="city">
|
|
32
|
+
<i class="fas fa-map-marker-alt"></i>
|
|
33
|
+
Sorocaba
|
|
34
|
+
</span>
|
|
35
|
+
<div class="info">
|
|
36
|
+
<span>ÚLTIMA EXPERIÊNCIA</span>
|
|
37
|
+
<p>Programadora PHP em Burh Brasil</p>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div class="recruitment__user__card__footer">
|
|
42
|
+
<span>
|
|
43
|
+
<el-tooltip placement="top" content="Tooltip">
|
|
44
|
+
<i class="fas fa-user-plus"></i>
|
|
45
|
+
</el-tooltip>
|
|
46
|
+
</span>
|
|
47
|
+
<span>
|
|
48
|
+
<el-tooltip placement="top" content="Reincidente">
|
|
49
|
+
<i class="fas fa-sync-alt"></i>
|
|
50
|
+
</el-tooltip>
|
|
51
|
+
</span>
|
|
52
|
+
<span>
|
|
53
|
+
<el-tooltip placement="top" content="Visualizado">
|
|
54
|
+
<i class="fas fa-eye"></i>
|
|
55
|
+
</el-tooltip>
|
|
56
|
+
</span>
|
|
57
|
+
<span>
|
|
58
|
+
<el-tooltip placement="top" content="Interno">
|
|
59
|
+
<i class="fas fa-building"></i>
|
|
60
|
+
</el-tooltip>
|
|
61
|
+
</span>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</template>
|
|
65
|
+
|
|
66
|
+
<script>
|
|
67
|
+
export default {
|
|
68
|
+
name: 'recruitment-user-card',
|
|
69
|
+
data() {
|
|
70
|
+
return {
|
|
71
|
+
checked: false
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
</script>
|
|
76
|
+
|
|
77
|
+
<style lang="scss" scoped>
|
|
78
|
+
|
|
79
|
+
.recruitment__user__card {
|
|
80
|
+
background: #fff;
|
|
81
|
+
box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
|
|
82
|
+
border-radius: 4px;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
transition: transform 0.25s;
|
|
86
|
+
&:focus {
|
|
87
|
+
outline: none;
|
|
88
|
+
transform: translateY(-5px);
|
|
89
|
+
}
|
|
90
|
+
&:hover {
|
|
91
|
+
transform: translateY(-5px);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&__header {
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: 70px;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
position: relative;
|
|
99
|
+
&::before {
|
|
100
|
+
content: '';
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: 0;
|
|
103
|
+
left: 0;
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: 100%;
|
|
106
|
+
background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), 80%, transparent);
|
|
107
|
+
z-index: 1;
|
|
108
|
+
}
|
|
109
|
+
img {
|
|
110
|
+
width: 100%;
|
|
111
|
+
height: 100%;
|
|
112
|
+
object-fit: cover;
|
|
113
|
+
}
|
|
114
|
+
&__actions {
|
|
115
|
+
position: absolute;
|
|
116
|
+
top: 0;
|
|
117
|
+
left: 0;
|
|
118
|
+
width: 100%;
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: space-between;
|
|
122
|
+
padding: 10px 15px;
|
|
123
|
+
z-index: 2;
|
|
124
|
+
.right {
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
flex-direction: row;
|
|
128
|
+
button {
|
|
129
|
+
color: #fff;
|
|
130
|
+
border: 0;
|
|
131
|
+
background: transparent;
|
|
132
|
+
width: 32px;
|
|
133
|
+
height: 32px;
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
.notes {
|
|
138
|
+
position: relative;
|
|
139
|
+
&::after {
|
|
140
|
+
content: '';
|
|
141
|
+
position: absolute;
|
|
142
|
+
top: -5px;
|
|
143
|
+
right: -5px;
|
|
144
|
+
width: 10px;
|
|
145
|
+
height: 10px;
|
|
146
|
+
background: #FF7D7E;
|
|
147
|
+
border-radius: 100px;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
&__content {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: column;
|
|
157
|
+
align-items: center;
|
|
158
|
+
justify-content: center;
|
|
159
|
+
img {
|
|
160
|
+
width: 120px;
|
|
161
|
+
height: 120px;
|
|
162
|
+
border-radius: 100px;
|
|
163
|
+
object-fit: cover;
|
|
164
|
+
margin-top: -20px;
|
|
165
|
+
z-index: 10;
|
|
166
|
+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.name {
|
|
170
|
+
font-size: 1.275rem;
|
|
171
|
+
font-weight: 500;
|
|
172
|
+
color: #1D364B;
|
|
173
|
+
padding-top: 20px;
|
|
174
|
+
.pcd {
|
|
175
|
+
color: #1F8CEB;
|
|
176
|
+
margin-left: 5px;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
.age {
|
|
180
|
+
font-weight: 500;
|
|
181
|
+
font-size: 0.875rem;
|
|
182
|
+
color: #1F8CEB;
|
|
183
|
+
padding-bottom: 20px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.city {
|
|
187
|
+
font-size: 1rem;
|
|
188
|
+
font-weight: 400;
|
|
189
|
+
color: #525F7F;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.info {
|
|
193
|
+
padding: 30px 0;
|
|
194
|
+
text-align: center;
|
|
195
|
+
span {
|
|
196
|
+
font-size: 0.75rem;
|
|
197
|
+
font-weight: 500;
|
|
198
|
+
color: #AEB6BE;
|
|
199
|
+
}
|
|
200
|
+
p {
|
|
201
|
+
margin: 0;
|
|
202
|
+
color: #525F7F;
|
|
203
|
+
font-size: 1rem;
|
|
204
|
+
font-weight: 400;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
&__footer {
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
justify-content: center;
|
|
212
|
+
padding-bottom: 20px;
|
|
213
|
+
span {
|
|
214
|
+
font-size: 0.875rem;
|
|
215
|
+
font-weight: 500;
|
|
216
|
+
margin: 0 10px;
|
|
217
|
+
color: #AEB6BE;
|
|
218
|
+
&.new {
|
|
219
|
+
color: #1F8CEB;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
</style>
|
|
@@ -1,80 +1,82 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
<div class="card position-relative">
|
|
3
|
+
<div class="row px-4 justify-content-start">
|
|
4
|
+
<div class="col-12 col-md-8">
|
|
5
|
+
<label class="form-control-label d-block pt-1">
|
|
6
|
+
{{ `Pergunta #${position + 1}` }}
|
|
7
|
+
</label>
|
|
8
|
+
<html-editor
|
|
9
|
+
placeholder="Escreva uma pergunta"
|
|
10
|
+
:value="question.question"
|
|
11
|
+
:baseApiUrl="baseApiUrl"
|
|
12
|
+
:token="token"
|
|
13
|
+
v-on:input="setQuestion('question', $event)"
|
|
14
|
+
/>
|
|
15
|
+
</div>
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
17
|
+
<div class="col-12 col-md-4 mb-4 mb-md-0">
|
|
18
|
+
<label class="form-control-label d-block pt-1">
|
|
19
|
+
Tipo
|
|
20
|
+
</label>
|
|
21
|
+
<el-select
|
|
22
|
+
class="select-danger w-100"
|
|
23
|
+
placeholder="Escolha o tipo da pergunta"
|
|
24
|
+
v-on:change="emitQuestion"
|
|
25
|
+
v-model="question.question_type"
|
|
26
|
+
>
|
|
27
|
+
<el-option
|
|
28
|
+
v-for="option in listComponentes"
|
|
29
|
+
class="select-danger"
|
|
30
|
+
:value="option.value"
|
|
31
|
+
:label="option.label"
|
|
32
|
+
:key="option.label"
|
|
33
|
+
>
|
|
34
|
+
</el-option>
|
|
35
|
+
</el-select>
|
|
36
|
+
</div>
|
|
35
37
|
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
38
|
+
<div class="col-12 col-md-8 form-group">
|
|
39
|
+
<paragraph
|
|
40
|
+
v-if="question.question_type == 'paragraph'"
|
|
41
|
+
:data="question.max_char ? question.max_char : undefined"
|
|
42
|
+
v-on:data-changed="mergeDataQuestion"
|
|
43
|
+
/>
|
|
44
|
+
<question-radio
|
|
45
|
+
v-if="question.question_type == 'multiple'"
|
|
46
|
+
:data="question.multiples"
|
|
47
|
+
v-on:data-changed="mergeDataQuestion"
|
|
48
|
+
/>
|
|
49
|
+
<question-attach
|
|
50
|
+
v-if="question.question_type == 'annex'"
|
|
51
|
+
:data="question"
|
|
52
|
+
v-on:data-changed="mergeDataQuestion"
|
|
53
|
+
/>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="col-12 text-right pb-2">
|
|
56
|
+
<ul class="question-icons list-inline">
|
|
57
|
+
<li
|
|
58
|
+
v-for="(icon, index) in icons"
|
|
59
|
+
:key="`question-icon-${position}-${index}`"
|
|
60
|
+
@click="$emit(icon.event)"
|
|
61
|
+
:class="`list-inline-item text-${icon.type}`"
|
|
62
|
+
>
|
|
63
|
+
<el-tooltip
|
|
64
|
+
class="item"
|
|
65
|
+
effect="dark"
|
|
66
|
+
:content="icon.alt"
|
|
67
|
+
placement="top"
|
|
68
|
+
>
|
|
69
|
+
<font-awesome-icon
|
|
70
|
+
:icon="icon.icon"
|
|
71
|
+
:class="`icon-${icon.type}`"
|
|
72
|
+
:title="icon.alt"
|
|
73
|
+
/>
|
|
74
|
+
</el-tooltip>
|
|
75
|
+
</li>
|
|
76
|
+
</ul>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
78
80
|
</template>
|
|
79
81
|
|
|
80
82
|
<script>
|
|
@@ -85,77 +87,79 @@ import QuestionAttach from '@burh/nuxt-core/components/burh-ds/Questions/Questio
|
|
|
85
87
|
import HtmlEditor from '@burh/nuxt-core/components/burh-ds/Inputs/HtmlEditor.vue';
|
|
86
88
|
|
|
87
89
|
export default {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
90
|
+
components: {
|
|
91
|
+
[Select.name]: Select,
|
|
92
|
+
[Option.name]: Option,
|
|
93
|
+
Paragraph: QuestionText,
|
|
94
|
+
QuestionRadio,
|
|
95
|
+
QuestionAttach,
|
|
96
|
+
HtmlEditor
|
|
97
|
+
},
|
|
98
|
+
props: {
|
|
99
|
+
step: {
|
|
100
|
+
type: Number,
|
|
101
|
+
default: 0
|
|
102
|
+
},
|
|
103
|
+
position: {
|
|
104
|
+
type: Number,
|
|
105
|
+
default: 0
|
|
106
|
+
},
|
|
107
|
+
data: null,
|
|
108
|
+
baseApiUrl: String,
|
|
109
|
+
token: String,
|
|
110
|
+
icons: {
|
|
111
|
+
type: Array,
|
|
112
|
+
default: () => [
|
|
113
|
+
{
|
|
114
|
+
event: 'first-icon-click',
|
|
115
|
+
icon: ['far', 'copy'],
|
|
116
|
+
alt: 'Clonar questão',
|
|
117
|
+
type: 'primary'
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
event: 'second-icon-click',
|
|
121
|
+
icon: ['fas', 'trash-alt'],
|
|
122
|
+
alt: 'Remover questão',
|
|
123
|
+
type: 'danger'
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
listComponentes: {
|
|
128
|
+
type: Array,
|
|
129
|
+
default: () => [
|
|
130
|
+
{ value: 'paragraph', label: 'Paragrafo' },
|
|
131
|
+
{ value: 'multiple', label: 'Alternativa' },
|
|
132
|
+
{ value: 'annex', label: 'Anexo' }
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
data() {
|
|
137
|
+
return {
|
|
138
|
+
console: console,
|
|
139
|
+
question: this.data
|
|
140
|
+
};
|
|
141
|
+
},
|
|
142
|
+
watch: {
|
|
143
|
+
data(newValue) {
|
|
144
|
+
this.question = newValue;
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
methods: {
|
|
148
|
+
emitQuestion() {
|
|
149
|
+
this.$emit('change-question', this.question);
|
|
150
|
+
},
|
|
151
|
+
setQuestion(type, data) {
|
|
152
|
+
this.question[type] = data;
|
|
153
|
+
this.emitQuestion();
|
|
154
|
+
},
|
|
155
|
+
mergeDataQuestion(data) {
|
|
156
|
+
this.question = { ...this.question, ...data };
|
|
157
|
+
this.emitQuestion();
|
|
158
|
+
},
|
|
159
|
+
isChangeTypeQuestion(value) {
|
|
160
|
+
return this.listComponentes.includes(value);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
159
163
|
};
|
|
160
164
|
</script>
|
|
161
165
|
|