@burh/nuxt-core 1.0.506 → 1.0.508
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.
|
@@ -115,6 +115,7 @@ $search: #5865f2 !default;
|
|
|
115
115
|
$recruitment: #0c95fc !default;
|
|
116
116
|
$indicators: #5C65D2 !default;
|
|
117
117
|
$aboutme: #ea3062 !default;
|
|
118
|
+
$driver: #4ED15D !default;
|
|
118
119
|
$university: #39e2fd !default;
|
|
119
120
|
$interviews: #ff539d !default;
|
|
120
121
|
$workus: #ff7d7e !default;
|
|
@@ -151,6 +152,7 @@ $colors: map-merge(
|
|
|
151
152
|
"recruitment": $recruitment,
|
|
152
153
|
"indicators": $indicators,
|
|
153
154
|
"aboutme": $aboutme,
|
|
155
|
+
"driver": $driver,
|
|
154
156
|
"university": $university,
|
|
155
157
|
"interviews": $interviews,
|
|
156
158
|
"workus": $workus,
|
|
@@ -1,88 +1,90 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="input__container__icon" :class="{ 'input__disabled': disabled || isLocked }" @click="isLocked && $emit('open-plan-modal')">
|
|
3
|
-
<label for="search">
|
|
4
|
-
<template v-if="!isLocked">
|
|
5
|
-
<i class="fas fa-search"></i>
|
|
6
|
-
</template>
|
|
7
|
-
<template v-else>
|
|
8
|
-
<i class="fas fa-lock"></i>
|
|
9
|
-
</template>
|
|
10
|
-
</label>
|
|
11
|
-
<input type="text" name="search" id="search" :disabled="disabled || isLocked" :placeholder="placeholder" v-model="searchModel" @change="$emit('change')">
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
export default {
|
|
17
|
-
name: 'search-input',
|
|
18
|
-
props: {
|
|
19
|
-
disabled: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: false
|
|
22
|
-
},
|
|
23
|
-
search: String,
|
|
24
|
-
placeholder: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: 'Busque por vaga'
|
|
27
|
-
},
|
|
28
|
-
isLocked: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: false
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="input__container__icon" :class="{ 'input__disabled': disabled || isLocked }" @click="isLocked && $emit('open-plan-modal')">
|
|
3
|
+
<label for="search">
|
|
4
|
+
<template v-if="!isLocked">
|
|
5
|
+
<i class="fas fa-search"></i>
|
|
6
|
+
</template>
|
|
7
|
+
<template v-else>
|
|
8
|
+
<i class="fas fa-lock"></i>
|
|
9
|
+
</template>
|
|
10
|
+
</label>
|
|
11
|
+
<input type="text" name="search" id="search" :disabled="disabled || isLocked" :placeholder="placeholder" v-model="searchModel" @change="$emit('change')">
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
export default {
|
|
17
|
+
name: 'search-input',
|
|
18
|
+
props: {
|
|
19
|
+
disabled: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
},
|
|
23
|
+
search: String,
|
|
24
|
+
placeholder: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: 'Busque por vaga'
|
|
27
|
+
},
|
|
28
|
+
isLocked: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
},
|
|
32
|
+
value: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: ''
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
computed: {
|
|
38
|
+
searchModel: {
|
|
39
|
+
get() {
|
|
40
|
+
return this.value || this.search;
|
|
41
|
+
},
|
|
42
|
+
set(value) {
|
|
43
|
+
this.$emit('search', value);
|
|
44
|
+
this.$emit('input', value);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
mounted() {
|
|
49
|
+
this.searchModel = this.search;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
</script>
|
|
53
|
+
|
|
54
|
+
<style lang="scss" scoped>
|
|
55
|
+
.input__container__icon {
|
|
56
|
+
position: relative;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
border-radius: 100px;
|
|
60
|
+
max-width: 270px;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
border: 1px solid #E9ECEF;
|
|
63
|
+
input {
|
|
64
|
+
background: transparent;
|
|
65
|
+
border: 0;
|
|
66
|
+
outline: none;
|
|
67
|
+
padding: 5px 0;
|
|
68
|
+
width: 100%;
|
|
69
|
+
}
|
|
70
|
+
label {
|
|
71
|
+
margin: 0;
|
|
72
|
+
display: block;
|
|
73
|
+
}
|
|
74
|
+
i {
|
|
75
|
+
padding: 0 10px;
|
|
76
|
+
color: #AEB6BE;
|
|
77
|
+
}
|
|
78
|
+
&.input__disabled {
|
|
79
|
+
background-color: #E9ECEF;
|
|
80
|
+
cursor: not-allowed !important;
|
|
81
|
+
input {
|
|
82
|
+
color: #AEB6BE !important;
|
|
83
|
+
cursor: not-allowed !important;
|
|
84
|
+
}
|
|
85
|
+
label {
|
|
86
|
+
cursor: not-allowed !important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
</style>
|