@burh/nuxt-core 1.0.453 → 1.0.454
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,88 +1,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
|
-
},
|
|
33
|
-
data() {
|
|
34
|
-
return {
|
|
35
|
-
searchModel: null
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
mounted() {
|
|
39
|
-
this.searchModel = this.search;
|
|
40
|
-
},
|
|
41
|
-
watch: {
|
|
42
|
-
search(value) {
|
|
43
|
-
this.searchModel = value;
|
|
44
|
-
},
|
|
45
|
-
searchModel(value) {
|
|
46
|
-
this.$emit('search', value);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
</script>
|
|
51
|
-
|
|
52
|
-
<style lang="scss" scoped>
|
|
53
|
-
.input__container__icon {
|
|
54
|
-
position: relative;
|
|
55
|
-
display: flex;
|
|
56
|
-
align-items: center;
|
|
57
|
-
border-radius: 100px;
|
|
58
|
-
max-width: 270px;
|
|
59
|
-
overflow: hidden;
|
|
60
|
-
border: 1px solid #E9ECEF;
|
|
61
|
-
input {
|
|
62
|
-
background: transparent;
|
|
63
|
-
border: 0;
|
|
64
|
-
outline: none;
|
|
65
|
-
padding: 5px 0;
|
|
66
|
-
width: 100%;
|
|
67
|
-
}
|
|
68
|
-
label {
|
|
69
|
-
margin: 0;
|
|
70
|
-
display: block;
|
|
71
|
-
}
|
|
72
|
-
i {
|
|
73
|
-
padding: 0 10px;
|
|
74
|
-
color: #AEB6BE;
|
|
75
|
-
}
|
|
76
|
-
&.input__disabled {
|
|
77
|
-
background-color: #E9ECEF;
|
|
78
|
-
cursor: not-allowed !important;
|
|
79
|
-
input {
|
|
80
|
-
color: #AEB6BE !important;
|
|
81
|
-
cursor: not-allowed !important;
|
|
82
|
-
}
|
|
83
|
-
label {
|
|
84
|
-
cursor: not-allowed !important;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
</style>
|
|
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
|
+
data() {
|
|
34
|
+
return {
|
|
35
|
+
searchModel: null
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
mounted() {
|
|
39
|
+
this.searchModel = this.search;
|
|
40
|
+
},
|
|
41
|
+
watch: {
|
|
42
|
+
search(value) {
|
|
43
|
+
this.searchModel = value;
|
|
44
|
+
},
|
|
45
|
+
searchModel(value) {
|
|
46
|
+
this.$emit('search', value);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<style lang="scss" scoped>
|
|
53
|
+
.input__container__icon {
|
|
54
|
+
position: relative;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
border-radius: 100px;
|
|
58
|
+
max-width: 270px;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
border: 1px solid #E9ECEF;
|
|
61
|
+
input {
|
|
62
|
+
background: transparent;
|
|
63
|
+
border: 0;
|
|
64
|
+
outline: none;
|
|
65
|
+
padding: 5px 0;
|
|
66
|
+
width: 100%;
|
|
67
|
+
}
|
|
68
|
+
label {
|
|
69
|
+
margin: 0;
|
|
70
|
+
display: block;
|
|
71
|
+
}
|
|
72
|
+
i {
|
|
73
|
+
padding: 0 10px;
|
|
74
|
+
color: #AEB6BE;
|
|
75
|
+
}
|
|
76
|
+
&.input__disabled {
|
|
77
|
+
background-color: #E9ECEF;
|
|
78
|
+
cursor: not-allowed !important;
|
|
79
|
+
input {
|
|
80
|
+
color: #AEB6BE !important;
|
|
81
|
+
cursor: not-allowed !important;
|
|
82
|
+
}
|
|
83
|
+
label {
|
|
84
|
+
cursor: not-allowed !important;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
</style>
|