adata-ui 0.1.26 → 0.1.30

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.26",
3
+ "version": "0.1.30",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,53 +1,54 @@
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
- <svg fill="#2C3E50" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 166 48">
6
+ <svg fill="#2C3E50" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 166 48" version="1.1">
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>
8
8
  <path d="M44.905 0H4.99a5.091 5.091 0 00-3.528 1.406A4.71 4.71 0 000 4.8v38.4a4.71 4.71 0 001.461 3.394A5.091 5.091 0 004.99 48h39.916a5.091 5.091 0 003.528-1.406 4.71 4.71 0 001.462-3.394V4.8a4.71 4.71 0 00-1.462-3.394A5.091 5.091 0 0044.905 0zM31.737 38.26l-2.079-6.232H19.305l-2.05 6.232h-7.097l10.598-28h7.776l10.353 28h-7.148z"></path>
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
- </svg> </a>
26
- <a target="_blank" href="https://www.tiktok.com/@adata.kz?lang=ru-RU" >
25
+ </svg>
26
+ </a>
27
+ <a target="_blank" rel="nofollow" href="https://www.tiktok.com/@adata.kz?lang=ru-RU" >
27
28
  <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="social__icon">
28
29
  <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
30
  </svg>
30
31
  </a>
31
32
  </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>
33
+ <a href="https://adata.kz/tariffs" class="nav__item nav__link">
34
+ Тарифы
35
+ </a>
36
+ <a href="https://adata.kz/about" class="nav__item nav__link">
37
+ О сервисе
38
+ </a>
39
+ <a href="https://adata.kz/apiInfo" class="nav__item nav__link">
40
+ Описание API
41
+ </a>
42
+ <a href="https://adata.kz/user-agreements" class="nav__item nav__link">
43
+ Пользовательское соглашение
44
+ </a>
45
+ <a href="https://adata.kz/vacancy" class="nav__item nav__link">
46
+ Вакансии
47
+ </a>
48
+ <a href="https://adata.kz/contacts" class="nav__item nav__link">
49
+ Контакты
50
+ </a>
51
+ </div>
51
52
  </div>
52
53
  <div class="a-footer__bottom"><span>2022 © ТОО "Alldata"</span></div>
53
54
  </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
  }
@@ -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 }}
@@ -135,21 +135,31 @@ export default {
135
135
  id: 1,
136
136
  name: "Контрагенты",
137
137
  url: 'https://pk.adata.kz',
138
+ key: 'counterparty'
138
139
  },
139
140
  {
140
141
  id: 2,
141
142
  name: "Тендеры",
142
143
  url: 'https://tender.adata.kz',
144
+ key: 'tenders'
143
145
  },
144
146
  {
145
147
  id: 3,
146
148
  name: "Работа",
147
149
  url: 'https://work.adata.kz',
150
+ key: 'work'
148
151
  },
149
152
  {
150
153
  id: 4,
151
154
  name: "Штрафы",
152
155
  url: 'https://avto.adata.kz',
156
+ key: 'fines'
157
+ },
158
+ {
159
+ id: 5,
160
+ name: "Маркетинг",
161
+ url: 'https://marketing.adata.kz',
162
+ key: 'marketing'
153
163
  }
154
164
  ],
155
165
  isOpen: false
@@ -158,14 +168,6 @@ export default {
158
168
  mounted() {
159
169
  this.setBalance(this.balance);
160
170
  },
161
- computed: {
162
- locationUrl() {
163
- if (window)
164
- return window.location.href;
165
- else
166
- return ''
167
- }
168
- },
169
171
  methods: {
170
172
  changeValue() {
171
173
  this.isOpen = !this.isOpen
@@ -129,7 +129,7 @@
129
129
  <div v-if="!elem.link" class="button-inner">
130
130
  <div>{{ elem.name }}</div>
131
131
  <!-- arrow_right -->
132
- <svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 18">
132
+ <svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 18" v-show="!elem.withoutArray">
133
133
  <path fill-rule="evenodd" clip-rule="evenodd"
134
134
  d="M2.108.59L9.318 9l-7.21 8.41L.59 16.108 6.683 9 .59 1.892 2.108.59z" fill="#2C3E50"></path>
135
135
  </svg>
@@ -293,11 +293,11 @@ 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' && window && window.innerWidth > 850) {
299
299
  this.chosenElem = this.listDropDown.find(el => el.name === 'Тендеры');
300
- } else if (this.activeTabKey === 'work') {
300
+ } else if (this.activeTabKey === 'work' && window && window.innerWidth > 850) {
301
301
  this.chosenElem = this.listDropDown.find(el => el.name === 'Работа');
302
302
  }
303
303
  this.chosenElem.opened = true;
@@ -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({});
@@ -13,7 +13,7 @@
13
13
  :placeholder="placeholder"
14
14
  required
15
15
  @input="$emit('input', $event.target.value)"
16
- @keypress.enter="$emit('enterPressed')"
16
+ @keyup.enter="enterPressed"
17
17
  @focus="showAutocomplete = true"
18
18
  @click="$emit('showVTour')"
19
19
  :class="[
@@ -176,6 +176,9 @@ export default {
176
176
  }
177
177
  },
178
178
  methods: {
179
+ enterPressed() {
180
+ this.$emit('enterPressed', this.showAutocomplete)
181
+ },
179
182
  onOutsideClick() {
180
183
  if (!this.isMobile) this.showAutocomplete = false
181
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>
@@ -3,26 +3,30 @@ export const profileDropDown = [
3
3
  id: 1,
4
4
  name: "Общие настройки",
5
5
  url: "https://adata.kz/profile?tab=general",
6
- disabled: false
6
+ disabled: false,
7
+ withoutArray: true
7
8
  },
8
9
  {
9
10
  id: 2,
10
11
  name: "Увеличить лимит запросов",
11
12
  url: "https://adata.kz/profile?tab=tariffs",
12
- disabled: false
13
+ disabled: false,
14
+ withoutArray: true
13
15
  },
14
16
  {
15
17
  id: 3,
16
18
  name: "Текущий баланс: 0 ₸",
17
19
  url: "https://adata.kz/profile?tab=tariffs",
18
20
  link: "Пополнить",
19
- disabled: true
21
+ disabled: true,
22
+ withoutArray: true
20
23
  },
21
24
  {
22
25
  id: 4,
23
26
  name: "Историй платежей",
24
27
  url: "https://adata.kz/profile?tab=payments",
25
- disabled: false
28
+ disabled: false,
29
+ withoutArray: true
26
30
  },
27
31
  {
28
32
  id: 5,
@@ -75,27 +79,29 @@ export const profileDropDown = [
75
79
  name: "Тендеры",
76
80
  opened: false,
77
81
  children: [
78
- {
79
- id: 14,
80
- name: "Поиск тендеров",
81
- url: "https://tender.adata.kz/"
82
- },
83
- {
84
- id: 15,
85
- name: "Поиск договоров",
86
- url: "https://tender.adata.kz/main/contracts"
87
- },
88
- {
89
- id: 16,
90
- name: "Планы закупок",
91
- url: "https://tender.adata.kz/main/plans"
92
- },
93
82
  {
94
83
  id: 17,
95
84
  name: "Шаблоны поиска",
96
85
  url: "https://tender.adata.kz/profile/search-profile"
86
+ },
87
+ {
88
+ id: 17,
89
+ name: "Избранные",
90
+ url: "https://tender.adata.kz/profile/favourites"
97
91
  }
98
92
  ],
99
93
  disabled: false
100
94
  },
95
+ // {
96
+ // id: 8,
97
+ // name: "Штрафы",
98
+ // url: 'https://avto.adata.kz',
99
+ // key: 'fines'
100
+ // },
101
+ // {
102
+ // id: 9,
103
+ // name: "Маркетинг",
104
+ // url: 'https://marketing.adata.kz',
105
+ // key: 'marketing'
106
+ // }
101
107
  ];