adata-ui 0.1.69 → 0.1.72
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 +45 -45
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.css +1 -1
- package/dist/adata-ui.umd.js +45 -45
- 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/assets/_text_field.scss +1 -0
- package/src/components/MailTo/MailTo.vue +3 -4
- package/src/components/SearchTextField/SearchTextField.vue +5 -1
- package/src/components/TextField/TextField.vue +1 -5
package/package.json
CHANGED
|
@@ -21,8 +21,7 @@
|
|
|
21
21
|
</div>
|
|
22
22
|
<h2 class="mail__title">Интересует больше данных?</h2>
|
|
23
23
|
<p class="mail__text">
|
|
24
|
-
|
|
25
|
-
в кратчайшие сроки.
|
|
24
|
+
Оставьте комментарий мы обязательно ответим Вам в кратчайшие сроки
|
|
26
25
|
</p>
|
|
27
26
|
<form class="mail__form" novalidate>
|
|
28
27
|
<a-text-field
|
|
@@ -80,7 +79,7 @@ export default {
|
|
|
80
79
|
},
|
|
81
80
|
onSubmitForm() {
|
|
82
81
|
const regex = new RegExp('^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$')
|
|
83
|
-
|
|
82
|
+
this.email = this.userEmail
|
|
84
83
|
if(!this.email.length || !regex.test(this.email)) {
|
|
85
84
|
this.emailError = 'Введите валидыный email';
|
|
86
85
|
return;
|
|
@@ -106,7 +105,7 @@ export default {
|
|
|
106
105
|
}
|
|
107
106
|
|
|
108
107
|
try {
|
|
109
|
-
const response = await fetch('https://users.
|
|
108
|
+
const response = await fetch('https://users.adata.kz/api/v1/message/regards', {
|
|
110
109
|
method: "POST",
|
|
111
110
|
headers: {
|
|
112
111
|
'Content-Type': 'application/json'
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
class="adt-text-block__input"
|
|
19
19
|
:class="{ error: !!errorText }"
|
|
20
20
|
/>
|
|
21
|
-
<label class="adt-text-block__label">
|
|
21
|
+
<label class="adt-text-block__label" :class="{ 'adt-text-block--ellipsis': isEllipsis }">
|
|
22
22
|
{{ label }}
|
|
23
23
|
</label>
|
|
24
24
|
<div
|
|
@@ -149,6 +149,10 @@ export default {
|
|
|
149
149
|
type: Boolean,
|
|
150
150
|
default: false,
|
|
151
151
|
},
|
|
152
|
+
isEllipsis: {
|
|
153
|
+
type: Boolean,
|
|
154
|
+
default: false,
|
|
155
|
+
}
|
|
152
156
|
},
|
|
153
157
|
components: {
|
|
154
158
|
PerfectScrollbar,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
class="adt-text-block__input"
|
|
13
13
|
:class="{ error: !!errorText }"
|
|
14
14
|
/>
|
|
15
|
-
<label class="adt-text-block__label"
|
|
15
|
+
<label class="adt-text-block__label">
|
|
16
16
|
{{ label }}
|
|
17
17
|
<span v-if="required" class="adt-text-block__required">*</span>
|
|
18
18
|
</label>
|
|
@@ -95,10 +95,6 @@ export default {
|
|
|
95
95
|
type: Boolean,
|
|
96
96
|
default: false,
|
|
97
97
|
},
|
|
98
|
-
isEllipsis: {
|
|
99
|
-
type: Boolean,
|
|
100
|
-
default: false,
|
|
101
|
-
}
|
|
102
98
|
},
|
|
103
99
|
data() {
|
|
104
100
|
return {
|