adata-ui 0.1.24 → 0.1.28

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.24",
3
+ "version": "0.1.28",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <footer class="a-footer" :class="[{'paddinged': hasBottomMenu}]">
3
3
  <div class="a-footer__top">
4
- <ul class="nav">
4
+ <div class="nav">
5
5
  <a class="logo adata-logo" href="https://adata.kz">
6
6
  <svg fill="#2C3E50" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 166 48">
7
7
  <path d="M62.926 38.22v-28h10.316c10.342 0 15.511 4.55 15.508 13.652 0 4.36-1.41 7.843-4.232 10.448-2.822 2.605-6.58 3.907-11.276 3.904l-10.316-.004zm6.56-22.868v17.752h3.248c2.839 0 5.069-.82 6.69-2.46 1.622-1.64 2.43-3.873 2.424-6.7 0-2.667-.8-4.767-2.403-6.3-1.602-1.533-3.853-2.297-6.752-2.292h-3.206zM118.5 38.22h-7.131l-2.079-6.228H98.958l-2.079 6.228h-7.093l10.598-28h7.775l10.341 28zm-10.723-11.072l-3.127-9.416a11.94 11.94 0 01-.486-2.516h-.162c-.07.83-.24 1.649-.508 2.44l-3.168 9.492h7.451zm31.833-11.796h-8.316V38.22h-6.557V15.352h-8.274v-5.136h23.147v5.136zM166 38.22h-7.143l-2.079-6.228h-10.349l-2.05 6.228h-7.106l10.598-28h7.776l10.353 28zm-10.719-11.072l-3.127-9.416a11.94 11.94 0 01-.486-2.516h-.163c-.069.83-.239 1.649-.507 2.44l-3.168 9.492h7.451zM24.553 15.252h-.163c-.069.83-.24 1.649-.507 2.44L20.715 27.2h7.45l-3.126-9.412a12.02 12.02 0 01-.486-2.536z"></path>
@@ -9,45 +9,45 @@
9
9
  </svg>
10
10
  </a>
11
11
  <div class="social">
12
- <a target="_blank" href="https://www.facebook.com/adata.kz">
12
+ <a target="_blank" rel="nofollow" href="https://www.facebook.com/adata.kz">
13
13
  <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="social__icon">
14
14
  <path d="M13.6562 0H2.34375C1.05151 0 0 1.05151 0 2.34375V13.6562C0 14.9485 1.05151 16 2.34375 16H7.0625V10.3438H5.1875V7.53125H7.0625V5.625C7.0625 4.0741 8.3241 2.8125 9.875 2.8125H12.7188V5.625H9.875V7.53125H12.7188L12.25 10.3438H9.875V16H13.6562C14.9485 16 16 14.9485 16 13.6562V2.34375C16 1.05151 14.9485 0 13.6562 0Z" fill="#2C3E50"></path>
15
15
  </svg>
16
16
  </a>
17
- <a target="_blank" href="https://www.instagram.com/adata.kz/?igshid=253i4qxg3els">
17
+ <a target="_blank" rel="nofollow" href="https://www.instagram.com/adata.kz/?igshid=253i4qxg3els">
18
18
  <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="social__icon">
19
19
  <path fill-rule="evenodd" clip-rule="evenodd" d="M3.01562 0.0166016C1.35877 0.0166016 0.015625 1.35975 0.015625 3.0166V13.001C0.015625 14.6578 1.35877 16.001 3.01562 16.001H13C14.6569 16.001 16 14.6578 16 13.001V3.0166C16 1.35975 14.6569 0.0166016 13 0.0166016H3.01562ZM14.3891 3.20021C14.3891 3.6416 14.0313 3.99943 13.5899 3.99943C13.1485 3.99943 12.7906 3.6416 12.7906 3.20021C12.7906 2.75881 13.1485 2.40099 13.5899 2.40099C14.0313 2.40099 14.3891 2.75881 14.3891 3.20021ZM8.01132 11.5982C9.99761 11.5982 11.6078 9.98805 11.6078 8.00176C11.6078 6.01548 9.99761 4.40528 8.01132 4.40528C6.02504 4.40528 4.41484 6.01548 4.41484 8.00176C4.41484 9.98805 6.02504 11.5982 8.01132 11.5982ZM8.01132 12.7971C10.6597 12.7971 12.8066 10.6501 12.8066 8.00176C12.8066 5.35339 10.6597 3.20645 8.01132 3.20645C5.36295 3.20645 3.21601 5.35339 3.21601 8.00176C3.21601 10.6501 5.36295 12.7971 8.01132 12.7971Z" fill="#2C3E50"></path>
20
20
  </svg>
21
21
  </a>
22
- <a target="_blank" href="https://www.youtube.com/channel/UCPkbtgwgTZbMJXjmTi3R8Uw/about">
22
+ <a target="_blank" rel="nofollow" href="https://www.youtube.com/channel/UCPkbtgwgTZbMJXjmTi3R8Uw/about">
23
23
  <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="social__icon">
24
24
  <path fill-rule="evenodd" clip-rule="evenodd" d="M2 0C0.895431 0 0 0.895431 0 2V14C0 15.1046 0.895431 16 2 16H14C15.1046 16 16 15.1046 16 14V2C16 0.895431 15.1046 0 14 0H2ZM13.7528 4.98132C13.6144 4.46732 13.2092 4.06205 12.6952 3.92367C11.7561 3.66667 7.99997 3.66667 7.99997 3.66667C7.99997 3.66667 4.24381 3.66667 3.30477 3.91378C2.80066 4.05217 2.3855 4.46732 2.24712 4.98132C2 5.92036 2 7.86764 2 7.86764C2 7.86764 2 9.82479 2.24712 10.7539C2.3855 11.268 2.79077 11.6732 3.30477 11.8116C4.2537 12.0686 7.99997 12.0686 7.99997 12.0686C7.99997 12.0686 11.7561 12.0686 12.6952 11.8215C13.2092 11.6831 13.6144 11.2778 13.7528 10.7638C13.9999 9.82479 13.9999 7.87752 13.9999 7.87752C13.9999 7.87752 14.0098 5.92036 13.7528 4.98132ZM6.80392 9.59801L9.92747 7.799L6.80392 6V9.59801Z" fill="#2C3E50"></path>
25
25
  </svg> </a>
26
- <a target="_blank" href="https://www.tiktok.com/@adata.kz?lang=ru-RU" >
26
+ <a target="_blank" rel="nofollow" href="https://www.tiktok.com/@adata.kz?lang=ru-RU" >
27
27
  <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="social__icon">
28
28
  <path fill-rule="evenodd" clip-rule="evenodd" d="M2 0C0.895431 0 0 0.895431 0 2V14C0 15.1046 0.895431 16 2 16H14C15.1046 16 16 15.1046 16 14V2C16 0.895431 15.1046 0 14 0H2ZM8.27136 9.89447C8.27136 10.8688 7.54987 11.506 6.65988 11.506C5.76988 11.506 5.04839 10.7845 5.04839 9.89447C5.04839 9.0988 5.7895 8.37096 6.68689 8.40404C6.86305 8.40404 7.06987 8.44599 7.15006 8.47436V6.62331C5.55588 6.30091 3.14893 7.62001 3.14893 9.89447C3.14893 11.506 4.38899 13.3333 6.65988 13.3333C8.93076 13.3333 10.1985 11.506 10.1985 9.89447V6.23373C10.5643 6.52374 11.6152 7.04631 12.8511 7.04631V5.229C11.406 5.25812 10.0956 3.98482 10.204 2.66667H8.27136V9.89447Z" fill="#2C3E50"></path>
29
29
  </svg>
30
30
  </a>
31
31
  </div>
32
- <li class="nav__item">
33
- <a href="https://adata.kz/tariffs" class="nav__link">Тарифы</a>
34
- </li>
35
- <li class="nav__item">
36
- <a href="https://adata.kz/about" class="nav__link">О сервисе</a>
37
- </li>
38
- <li class="nav__item">
39
- <a href="https://adata.kz/apiInfo" class="nav__link">Описание API</a>
40
- </li>
41
- <li class="nav__item">
42
- <a href="https://adata.kz/user-agreements" class="nav__link">Пользовательское соглашение</a>
43
- </li>
44
- <li class="nav__item">
45
- <a href="https://adata.kz/vacancy" class="nav__link">Вакансии</a>
46
- </li>
47
- <li class="nav__item">
48
- <a href="https://adata.kz/contacts" class="nav__link">Контакты</a>
49
- </li>
50
- </ul>
32
+ <a href="https://adata.kz/tariffs" class="nav__item nav__link">
33
+ Тарифы
34
+ </a>
35
+ <a href="https://adata.kz/about" class="nav__item nav__link">
36
+ О сервисе
37
+ </a>
38
+ <a href="https://adata.kz/apiInfo" class="nav__item nav__link">
39
+ Описание API
40
+ </a>
41
+ <a href="https://adata.kz/user-agreements" class="nav__item nav__link">
42
+ Пользовательское соглашение
43
+ </a>
44
+ <a href="https://adata.kz/vacancy" class="nav__item nav__link">
45
+ Вакансии
46
+ </a>
47
+ <a href="https://adata.kz/contacts" class="nav__item nav__link">
48
+ Контакты
49
+ </a>
50
+ </div>
51
51
  </div>
52
52
  <div class="a-footer__bottom"><span>2022 © ТОО "Alldata"</span></div>
53
53
  </footer>
@@ -51,6 +51,6 @@ headerAuthenticated.args = {
51
51
  daysRemaining: "остаток дней: 29",
52
52
  email: "sboranbayeva@gmail.com",
53
53
  loginUrl: "https://id.adtdev.kz/auth/signin?url=https://pk.adata.kz/auth",
54
- activeTabKey: 'tender',
54
+ activeTabKey: 'counterparty',
55
55
  balance: 1954900
56
56
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <header v-if="windowOpen" class="a-header" :class="[{'bordered': isBordered}, {'fixed': isFixed}]">
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')">
@@ -12,7 +12,7 @@
12
12
  <a v-for="(item, index) in subheaderItems"
13
13
  :key="index"
14
14
  class="menu__wrapper menu__items"
15
- :class="{active: locationUrl.includes(toAdtdev(item.url))}"
15
+ :class="{active: item.key === activeTabKey}"
16
16
  :href="toAdtdev(item.url)"
17
17
  >
18
18
  {{ item.name }}
@@ -63,7 +63,7 @@
63
63
  v-for="(item, index) in subheaderItems"
64
64
  :key="index"
65
65
  class="menu_mobile-wrapper"
66
- :class="{'active-burger-tab': locationUrl.includes(toAdtdev(item.url))}"
66
+ :class="{'active-burger-tab': item.key === activeTabKey}"
67
67
  :href="toAdtdev(item.url)"
68
68
  >
69
69
  {{ item.name }}
@@ -130,44 +130,44 @@ export default {
130
130
  data() {
131
131
  return {
132
132
  profileDropDown,
133
- windowOpen: false,
134
133
  subheaderItems: [
135
134
  {
136
135
  id: 1,
137
136
  name: "Контрагенты",
138
137
  url: 'https://pk.adata.kz',
138
+ key: 'counterparty'
139
139
  },
140
140
  {
141
141
  id: 2,
142
142
  name: "Тендеры",
143
143
  url: 'https://tender.adata.kz',
144
+ key: 'tenders'
144
145
  },
145
146
  {
146
147
  id: 3,
147
148
  name: "Работа",
148
149
  url: 'https://work.adata.kz',
150
+ key: 'work'
149
151
  },
150
152
  {
151
153
  id: 4,
152
154
  name: "Штрафы",
153
155
  url: 'https://avto.adata.kz',
156
+ key: 'fines'
157
+ },
158
+ {
159
+ id: 5,
160
+ name: "Маркетинг",
161
+ url: 'https://marketing.adata.kz',
162
+ key: 'fines'
154
163
  }
155
164
  ],
156
165
  isOpen: false
157
166
  };
158
167
  },
159
168
  mounted() {
160
- this.windowOpen = true;
161
169
  this.setBalance(this.balance);
162
170
  },
163
- computed: {
164
- locationUrl() {
165
- if (window)
166
- return window.location.href;
167
- else
168
- return ''
169
- }
170
- },
171
171
  methods: {
172
172
  changeValue() {
173
173
  this.isOpen = !this.isOpen
@@ -329,6 +329,7 @@ export default {
329
329
  font-size: 16px;
330
330
  line-height: 22px;
331
331
  color: #2c3e50;
332
+ display: block;
332
333
 
333
334
  &:last-child {
334
335
  border-bottom: 1px solid #9DA3AC4C;
@@ -293,9 +293,9 @@ export default {
293
293
  if (this.profileDropDown && this.profileDropDown.length > 0) {
294
294
  this.listDropDown = [...this.profileDropDown]
295
295
  }
296
- if(this.activeTabKey === 'counterparty') {
296
+ if(this.activeTabKey === 'counterparty' && window && window.innerWidth > 850) {
297
297
  this.chosenElem = this.listDropDown.find(el => el.name === 'Контрагенты');
298
- } else if (this.activeTabKey === 'tender') {
298
+ } else if (this.activeTabKey === 'tenders') {
299
299
  this.chosenElem = this.listDropDown.find(el => el.name === 'Тендеры');
300
300
  } else if (this.activeTabKey === 'work') {
301
301
  this.chosenElem = this.listDropDown.find(el => el.name === 'Работа');
@@ -11,7 +11,12 @@ export default {
11
11
  const Template = (args, { argTypes }) => ({
12
12
  components: { ASearchTextField },
13
13
  props: Object.keys(argTypes),
14
- template: '<a-search-text-field v-bind="$props"></a-search-text-field>'
14
+ template: '<a-search-text-field v-bind="$props" @enterPressed="enterPressed"></a-search-text-field>',
15
+ methods: {
16
+ enterPressed(){
17
+ console.log('hihi')
18
+ }
19
+ }
15
20
  })
16
21
 
17
22
  export const WithIcon = Template.bind({});
@@ -6,12 +6,14 @@
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
- @keypress.enter="$emit('enterPressed')"
16
+ @keyup.enter="enterPressed"
15
17
  @focus="showAutocomplete = true"
16
18
  @click="$emit('showVTour')"
17
19
  :class="[
@@ -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,14 +161,24 @@ 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: {
179
+ enterPressed() {
180
+ this.$emit('enterPressed', this.showAutocomplete)
181
+ },
141
182
  onOutsideClick() {
142
183
  if (!this.isMobile) this.showAutocomplete = false
143
184
  },
@@ -10,7 +10,12 @@ export default {
10
10
  const Template = (args, { argTypes }) => ({
11
11
  components: { ATextField },
12
12
  props: Object.keys(argTypes),
13
- template: '<a-text-field v-bind="$props"></a-text-field>'
13
+ template: '<a-text-field v-bind="$props" @enterPressed="enterPressed"></a-text-field>',
14
+ methods: {
15
+ enterPressed(){
16
+ console.log('hihi')
17
+ }
18
+ }
14
19
  })
15
20
 
16
21
  export const Clearable = Template.bind({});
@@ -9,7 +9,7 @@
9
9
  :placeholder="placeholder"
10
10
  required
11
11
  @input="$emit('input', $event.target.value)"
12
- @keypress.enter="$emit('enterPressed')"
12
+ @keyup.enter="enterPressed"
13
13
  class="adt-text-block__input"
14
14
  :class="{ error: !!errorText }"
15
15
  />
@@ -99,6 +99,12 @@ export default {
99
99
  inputPlaceholder() {
100
100
  return this.showPlaceholder ? this.placeholder : ""
101
101
  }
102
+ },
103
+ methods: {
104
+ enterPressed() {
105
+ this.$emit('enterPressed')
106
+ },
107
+
102
108
  }
103
109
  }
104
110
  </script>
@@ -52,11 +52,11 @@ export const profileDropDown = [
52
52
  name: "Профиль",
53
53
  url: "https://work.adata.kz/profile/account"
54
54
  },
55
- {
56
- id: 11,
57
- name: "Создать резюме",
58
- url: "https://work.adata.kz/user/create"
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: "Отклики",
Binary file