adata-ui 0.1.25 → 0.1.26
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.
- package/dist/adata-ui.common.js +61 -24
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.umd.js +61 -24
- package/dist/adata-ui.umd.js.map +1 -1
- package/dist/adata-ui.umd.min.js +2 -2
- package/dist/adata-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Header/Header.vue +1 -3
- package/src/components/SearchTextField/SearchTextField.vue +40 -2
- package/src/configs/profileDropDown.js +5 -5
- package/src/assets/logo.png +0 -0
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<header
|
|
2
|
+
<header class="a-header" :class="[{'bordered': isBordered}, {'fixed': isFixed}]">
|
|
3
3
|
<div class="container">
|
|
4
4
|
<div class="a-header__left">
|
|
5
5
|
<a class="logo" :href="toAdtdev('https://adata.kz')">
|
|
@@ -130,7 +130,6 @@ export default {
|
|
|
130
130
|
data() {
|
|
131
131
|
return {
|
|
132
132
|
profileDropDown,
|
|
133
|
-
windowOpen: false,
|
|
134
133
|
subheaderItems: [
|
|
135
134
|
{
|
|
136
135
|
id: 1,
|
|
@@ -157,7 +156,6 @@ export default {
|
|
|
157
156
|
};
|
|
158
157
|
},
|
|
159
158
|
mounted() {
|
|
160
|
-
this.windowOpen = true;
|
|
161
159
|
this.setBalance(this.balance);
|
|
162
160
|
},
|
|
163
161
|
computed: {
|
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
>
|
|
7
7
|
<div class="adt-text-block__field">
|
|
8
8
|
<input
|
|
9
|
+
v-if="!mask"
|
|
9
10
|
ref="input"
|
|
10
11
|
:type="type"
|
|
11
12
|
:value="value"
|
|
13
|
+
:placeholder="placeholder"
|
|
12
14
|
required
|
|
13
15
|
@input="$emit('input', $event.target.value)"
|
|
14
16
|
@keypress.enter="$emit('enterPressed')"
|
|
@@ -20,6 +22,22 @@
|
|
|
20
22
|
{'adt-text-block__input': !forMobileFilter}
|
|
21
23
|
]"
|
|
22
24
|
/>
|
|
25
|
+
<TheMask
|
|
26
|
+
v-else
|
|
27
|
+
ref="maskInput"
|
|
28
|
+
:value="value"
|
|
29
|
+
:mask="mask"
|
|
30
|
+
:type="type"
|
|
31
|
+
:masked="false"
|
|
32
|
+
:placeholder="inputPlaceholder"
|
|
33
|
+
required
|
|
34
|
+
@input.native="$emit('input', $event.target.value)"
|
|
35
|
+
@focus.native="showPlaceholder = true"
|
|
36
|
+
@blur.native="showPlaceholder = false"
|
|
37
|
+
class="adt-text-block__input"
|
|
38
|
+
:class="{ error: !!errorText }"
|
|
39
|
+
|
|
40
|
+
/>
|
|
23
41
|
<label
|
|
24
42
|
:class="{
|
|
25
43
|
'adt-text-block__label-red' : !forMobileFilter && getIsError,
|
|
@@ -70,6 +88,7 @@
|
|
|
70
88
|
|
|
71
89
|
<script>
|
|
72
90
|
import '../../assets/style.scss';
|
|
91
|
+
import {TheMask} from 'vue-the-mask';
|
|
73
92
|
import { PerfectScrollbar } from "vue2-perfect-scrollbar";
|
|
74
93
|
import vClickOutside from "v-click-outside";
|
|
75
94
|
|
|
@@ -79,6 +98,18 @@ export default {
|
|
|
79
98
|
clickOutside: vClickOutside.directive
|
|
80
99
|
},
|
|
81
100
|
props: {
|
|
101
|
+
errorText: {
|
|
102
|
+
type: String,
|
|
103
|
+
default: ""
|
|
104
|
+
},
|
|
105
|
+
placeholder: {
|
|
106
|
+
type: String,
|
|
107
|
+
default: ""
|
|
108
|
+
},
|
|
109
|
+
mask: {
|
|
110
|
+
type: String,
|
|
111
|
+
default: ""
|
|
112
|
+
},
|
|
82
113
|
label: {
|
|
83
114
|
type: String,
|
|
84
115
|
required: true,
|
|
@@ -130,11 +161,18 @@ export default {
|
|
|
130
161
|
}
|
|
131
162
|
},
|
|
132
163
|
components: {
|
|
133
|
-
PerfectScrollbar
|
|
164
|
+
PerfectScrollbar,
|
|
165
|
+
TheMask
|
|
134
166
|
},
|
|
135
167
|
data() {
|
|
136
168
|
return {
|
|
137
|
-
showAutocomplete: false
|
|
169
|
+
showAutocomplete: false,
|
|
170
|
+
showPlaceholder: false
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
computed: {
|
|
174
|
+
inputPlaceholder() {
|
|
175
|
+
return this.showPlaceholder ? this.placeholder : ""
|
|
138
176
|
}
|
|
139
177
|
},
|
|
140
178
|
methods: {
|
|
@@ -52,11 +52,11 @@ export const profileDropDown = [
|
|
|
52
52
|
name: "Профиль",
|
|
53
53
|
url: "https://work.adata.kz/profile/account"
|
|
54
54
|
},
|
|
55
|
-
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
},
|
|
55
|
+
// {
|
|
56
|
+
// id: 11,
|
|
57
|
+
// name: "Создать резюме",
|
|
58
|
+
// url: "https://work.adata.kz/user/create"
|
|
59
|
+
// },
|
|
60
60
|
{
|
|
61
61
|
id: 12,
|
|
62
62
|
name: "Отклики",
|
package/src/assets/logo.png
DELETED
|
Binary file
|