@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
- <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
- v-on:input="setQuestion('question', $event)"
12
- />
13
- </div>
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
- <div class="col-12 col-md-4 mb-4 mb-md-0">
16
- <label class="form-control-label d-block pt-1">
17
- Tipo
18
- </label>
19
- <el-select
20
- class="select-danger w-100"
21
- placeholder="Escolha o tipo da pergunta"
22
- v-on:change="emitQuestion"
23
- v-model="question.question_type"
24
- >
25
- <el-option
26
- v-for="option in listComponentes"
27
- class="select-danger"
28
- :value="option.value"
29
- :label="option.label"
30
- :key="option.label"
31
- >
32
- </el-option>
33
- </el-select>
34
- </div>
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
- <div class="col-12 col-md-8 form-group">
37
- <paragraph
38
- v-if="question.question_type == 'paragraph'"
39
- :data="question.max_char ? question.max_char : undefined"
40
- v-on:data-changed="mergeDataQuestion"
41
- />
42
- <question-radio
43
- v-if="question.question_type == 'multiple'"
44
- :data="question.multiples"
45
- v-on:data-changed="mergeDataQuestion"
46
- />
47
- <question-attach
48
- v-if="question.question_type == 'annex'"
49
- :data="question"
50
- v-on:data-changed="mergeDataQuestion"
51
- />
52
- </div>
53
- <div class="col-12 text-right pb-2">
54
- <ul class="question-icons list-inline">
55
- <li
56
- v-for="(icon, index) in icons"
57
- :key="`question-icon-${position}-${index}`"
58
- @click="$emit(icon.event)"
59
- :class="`list-inline-item text-${icon.type}`"
60
- >
61
- <el-tooltip
62
- class="item"
63
- effect="dark"
64
- :content="icon.alt"
65
- placement="top"
66
- >
67
- <font-awesome-icon
68
- :icon="icon.icon"
69
- :class="`icon-${icon.type}`"
70
- :title="icon.alt"
71
- />
72
- </el-tooltip>
73
- </li>
74
- </ul>
75
- </div>
76
- </div>
77
- </div>
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
- components: {
89
- [Select.name]: Select,
90
- [Option.name]: Option,
91
- Paragraph: QuestionText,
92
- QuestionRadio,
93
- QuestionAttach,
94
- HtmlEditor
95
- },
96
- props: {
97
- step: {
98
- type: Number,
99
- default: 0
100
- },
101
- position: {
102
- type: Number,
103
- default: 0
104
- },
105
- data: null,
106
- icons: {
107
- type: Array,
108
- default: () => [
109
- {
110
- event: 'first-icon-click',
111
- icon: ['far', 'copy'],
112
- alt: 'Clonar questão',
113
- type: 'primary'
114
- },
115
- {
116
- event: 'second-icon-click',
117
- icon: ['fas', 'trash-alt'],
118
- alt: 'Remover questão',
119
- type: 'danger'
120
- }
121
- ]
122
- },
123
- listComponentes: {
124
- type: Array,
125
- default: () => [
126
- { value: 'paragraph', label: 'Paragrafo' },
127
- { value: 'multiple', label: 'Alternativa' },
128
- { value: 'annex', label: 'Anexo' }
129
- ]
130
- }
131
- },
132
- data() {
133
- return {
134
- console: console,
135
- question: this.data
136
- };
137
- },
138
- watch: {
139
- data(newValue) {
140
- this.question = newValue;
141
- }
142
- },
143
- methods: {
144
- emitQuestion() {
145
- this.$emit('change-question', this.question);
146
- },
147
- setQuestion(type, data) {
148
- this.question[type] = data;
149
- this.emitQuestion();
150
- },
151
- mergeDataQuestion(data) {
152
- this.question = { ...this.question, ...data };
153
- this.emitQuestion();
154
- },
155
- isChangeTypeQuestion(value) {
156
- return this.listComponentes.includes(value);
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.225",
3
+ "version": "1.0.227",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {