adata-ui 0.1.19 → 0.1.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "0.1.19",
3
+ "version": "0.1.23",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -42,7 +42,7 @@
42
42
 
43
43
  &__error {
44
44
  text-align: left;
45
- font-size: var(--fs-content-micro);
45
+ font-size: 10px;
46
46
  line-height: 14px;
47
47
  color: #ff2e43;
48
48
  margin-top: 9px;
@@ -69,7 +69,7 @@
69
69
  border-radius: 2px;
70
70
  width: 100%;
71
71
  height: 40px;
72
- font-size: var(--fs-form);
72
+ font-size: 14px;
73
73
  color: #1A2030;
74
74
  padding: 19px 40px 5px 16px;
75
75
  transition: 0.3s all;
@@ -77,7 +77,7 @@
77
77
  padding: 19px 36px 7px 12px;
78
78
  height: 40px;
79
79
  border: 1px solid #71757A;
80
- font-size: var(--fs-content-mini);
80
+ font-size: 12px;
81
81
  }
82
82
 
83
83
  &:focus ~ #{$self}__label,
@@ -85,20 +85,20 @@
85
85
  &:-webkit-autofill ~ #{$self}__label,
86
86
  &:not(:-webkit-autofill):valid ~ #{$self}__label {
87
87
  top: 12px;
88
- font-size: var(--fs-content-micro);
88
+ font-size: 10px;
89
89
  color: #71757A;
90
90
  @media(max-width: 1025px) {
91
- font-size: var(--fs-content-nano);
91
+ font-size: 8px;
92
92
  }
93
93
  }
94
94
 
95
95
  &:focus ~ #{$self}__label-red,
96
96
  &:not(:focus):valid ~ #{$self}__label-red {
97
97
  top: 12px;
98
- font-size: var(--fs-content-micro);
98
+ font-size: 10px;
99
99
  color: #ff2e43;
100
100
  @media(max-width: 1025px) {
101
- font-size: var(--fs-content-nano);
101
+ font-size: 8px;
102
102
  }
103
103
  }
104
104
 
@@ -126,10 +126,10 @@
126
126
  line-height: 40px;
127
127
  transition: 0.3s;
128
128
  color: #71757A;
129
- font-size: var(--fs-form-placeholder);
129
+ font-size: 12px;
130
130
  @media(max-width: 1025px) {
131
131
  left: 12px;
132
- font-size: var(--fs-content-micro);
132
+ font-size: 10px;
133
133
  line-height: 16px;
134
134
  color: #71757A;
135
135
  }
@@ -146,11 +146,11 @@
146
146
  line-height: 40px;
147
147
  transition: 0.3s;
148
148
  color: #ff2e43;
149
- font-size: var(--fs-form-placeholder);
149
+ font-size: 12px;
150
150
 
151
151
  @media(max-width: 1025px) {
152
152
  left: 12px;
153
- font-size: var(--fs-content-micro);
153
+ font-size: 10px;
154
154
  line-height: 16px;
155
155
  color: #ff2e43;
156
156
  }
@@ -198,7 +198,7 @@
198
198
  padding: 5px 16px;
199
199
  line-height: 16px;
200
200
  font-size: 14px;
201
- color: var(--newGray);
201
+ color: #71757a;
202
202
  transition: 0.3s all;
203
203
  cursor: pointer;
204
204
  @media(max-width: 1025px) {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <header class="a-header" :class="[{'bordered': isBordered}, {'fixed': isFixed}]">
2
+ <header v-if="windowOpen" 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,6 +130,7 @@ export default {
130
130
  data() {
131
131
  return {
132
132
  profileDropDown,
133
+ windowOpen: false,
133
134
  subheaderItems: [
134
135
  {
135
136
  id: 1,
@@ -156,11 +157,15 @@ export default {
156
157
  };
157
158
  },
158
159
  mounted() {
160
+ this.windowOpen = true;
159
161
  this.setBalance(this.balance);
160
162
  },
161
163
  computed: {
162
164
  locationUrl() {
163
- return window.location.href;
165
+ if (window)
166
+ return window.location.href;
167
+ else
168
+ return ''
164
169
  }
165
170
  },
166
171
  methods: {
@@ -31,6 +31,11 @@
31
31
  </div>
32
32
  </div>
33
33
  <div class="adt-text-block__error" v-if="!!errorText">
34
+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" id="icon__attention">
35
+ <path d="M8.5 4C8.5 3.72386 8.27614 3.5 8 3.5C7.72386 3.5 7.5 3.72386 7.5 4H8.5ZM7.5 9C7.5 9.27614 7.72386 9.5 8 9.5C8.27614 9.5 8.5 9.27614 8.5 9H7.5ZM7.5 4V9H8.5V4H7.5Z" fill="#FF2E43"/>
36
+ <path d="M8.5 11C8.5 10.7239 8.27614 10.5 8 10.5C7.72386 10.5 7.5 10.7239 7.5 11H8.5ZM7.5 11.5C7.5 11.7761 7.72386 12 8 12C8.27614 12 8.5 11.7761 8.5 11.5H7.5ZM7.5 11V11.5H8.5V11H7.5Z" fill="#FF2E43"/>
37
+ <circle cx="8" cy="8" r="7" stroke="#FF2E43"/>
38
+ </svg>
34
39
  {{ errorText }}
35
40
  </div>
36
41
  </div>
@@ -4,19 +4,14 @@ export default {
4
4
  title: 'SearchTextField',
5
5
  component: ASearchTextField,
6
6
  data: () => ({ value: "" }),
7
- methods: {
8
- inputHandle(val) {
9
- console.log(val);
10
- }
11
- },
12
- template: "<a-search-text-field v-model='value' @input='inputHandle' label='Example'></a-search-text-field>>"
7
+ template: "<a-search-text-field @input='(val) => {this.value = val}' label='Example'></a-search-text-field>>"
13
8
  }
14
9
 
10
+
15
11
  const Template = (args, { argTypes }) => ({
16
12
  components: { ASearchTextField },
17
13
  props: Object.keys(argTypes),
18
- data: () => ({ val: "" }),
19
- template: '<a-search-text-field v-model="val" v-bind="$props"></a-search-text-field>'
14
+ template: '<a-search-text-field v-bind="$props"></a-search-text-field>'
20
15
  })
21
16
 
22
17
  export const WithIcon = Template.bind({});
@@ -10,8 +10,7 @@
10
10
  :type="type"
11
11
  :value="value"
12
12
  required
13
- @input="inputHandler($event)"
14
- @keydown="handleKeyDown"
13
+ @input="$emit('input', $event.target.value)"
15
14
  @keypress.enter="$emit('enterPressed')"
16
15
  @focus="showAutocomplete = true"
17
16
  @click="$emit('showVTour')"
@@ -30,7 +29,7 @@
30
29
  >
31
30
  {{ label }}
32
31
  </label>
33
- <div class="mobile-magnifier" v-if="magnifierMob" @click="$emit('onMagnifierClick')">
32
+ <div class="mobile mobile-magnifier" v-if="magnifierMob" @click="$emit('onMagnifierClick')">
34
33
  <svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="magnifier">
35
34
  <path d="M13.95 13.95L10 10" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round">
36
35
  </path>
@@ -91,6 +90,7 @@ export default {
91
90
  value: {
92
91
  type: String,
93
92
  required: true,
93
+ default: ""
94
94
  },
95
95
  clearable: {
96
96
  type: Boolean,
@@ -179,13 +179,6 @@ export default {
179
179
  autocompleteOption.setAttribute("id", 'searchVariant');
180
180
  return autocompleteOption.innerText;
181
181
  },
182
- handleKeyDown(e) {
183
- if (+e.keyCode === 9) this.showAutocomplete = false;
184
- const specialKeys = [8, 188, 190, 110] // 8 - Backspace, 188 - ",", 190 and 110 - "."
185
- const charCode = e.keyCode
186
- if ((charCode >= 48 && charCode <= 57) || (charCode >= 96 && charCode <= 105) || specialKeys.indexOf(charCode) !== -1) return;
187
- else e.preventDefault()
188
- },
189
182
  inputHandler(e) {
190
183
  this.$emit('input', e.target.value);
191
184
  this.showAutocomplete = true;
@@ -37,6 +37,11 @@
37
37
  </div>
38
38
  </div>
39
39
  <div class="adt-text-block__error" v-if="!!errorText">
40
+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" id="icon__attention">
41
+ <path d="M8.5 4C8.5 3.72386 8.27614 3.5 8 3.5C7.72386 3.5 7.5 3.72386 7.5 4H8.5ZM7.5 9C7.5 9.27614 7.72386 9.5 8 9.5C8.27614 9.5 8.5 9.27614 8.5 9H7.5ZM7.5 4V9H8.5V4H7.5Z" fill="#FF2E43"/>
42
+ <path d="M8.5 11C8.5 10.7239 8.27614 10.5 8 10.5C7.72386 10.5 7.5 10.7239 7.5 11H8.5ZM7.5 11.5C7.5 11.7761 7.72386 12 8 12C8.27614 12 8.5 11.7761 8.5 11.5H7.5ZM7.5 11V11.5H8.5V11H7.5Z" fill="#FF2E43"/>
43
+ <circle cx="8" cy="8" r="7" stroke="#FF2E43"/>
44
+ </svg>
40
45
  {{ errorText }}
41
46
  </div>
42
47
  </div>
@@ -6,6 +6,7 @@ import AAlert from './Alert/Alert'
6
6
  import AHeader from './Header/Header'
7
7
  import AFooter from './Footer/Footer'
8
8
  import ASearchTextField from './SearchTextField/SearchTextField'
9
+
9
10
  const Components = {
10
11
  AButton,
11
12
  ATextField,