adata-ui 0.3.55 → 0.3.57

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.
Files changed (38) hide show
  1. package/dist/adata-ui.common.js +792 -39
  2. package/dist/adata-ui.common.js.map +1 -1
  3. package/dist/adata-ui.css +1 -1
  4. package/dist/adata-ui.umd.js +792 -39
  5. package/dist/adata-ui.umd.js.map +1 -1
  6. package/dist/adata-ui.umd.min.js +2 -2
  7. package/dist/adata-ui.umd.min.js.map +1 -1
  8. package/dist/img/facebook.797d820f.svg +4 -0
  9. package/dist/img/instagram.8a77381c.svg +6 -0
  10. package/{src/assets/logo.svg → dist/img/logo-desktop.c24ec0ba.svg} +4 -4
  11. package/dist/img/logo-white-desktop.7d0e3481.svg +8 -0
  12. package/dist/img/telegram.be0d1008.svg +4 -0
  13. package/dist/img/tiktok.eaeb39cb.svg +4 -0
  14. package/dist/img/up-down.e2b28f72.svg +3 -0
  15. package/dist/img/youtube.125aace6.svg +5 -0
  16. package/package-lock.json +7 -7
  17. package/package.json +1 -1
  18. package/src/App.vue +4 -0
  19. package/src/assets/facebook.svg +4 -0
  20. package/src/assets/instagram.svg +6 -0
  21. package/src/assets/logo-desktop.svg +9 -0
  22. package/{dist/img/logo.6e167e1d.svg → src/assets/logo-mobile.svg} +0 -0
  23. package/src/assets/logo-white-desktop.svg +8 -0
  24. package/src/assets/telegram.svg +4 -0
  25. package/src/assets/tiktok.svg +4 -0
  26. package/src/assets/up-down.svg +3 -0
  27. package/src/assets/youtube.svg +5 -0
  28. package/src/components/Footer/Footer.vue +1 -0
  29. package/src/components/Header/ChildLinks.vue +122 -0
  30. package/src/components/Header/Header.vue +194 -39
  31. package/src/components/index.js +2 -0
  32. package/src/components/newComponents/FooterNew/FooterBottom.vue +152 -0
  33. package/src/components/newComponents/FooterNew/FooterItem.vue +114 -0
  34. package/src/components/newComponents/FooterNew/FooterNew.stories.js +20 -0
  35. package/src/components/newComponents/FooterNew/FooterNew.vue +41 -0
  36. package/src/components/newComponents/FooterNew/FooterTop.vue +313 -0
  37. package/src/configs/icons.js +112 -0
  38. package/src/assets/logo-mobile.png +0 -0
@@ -8,6 +8,7 @@ import APasswordField from "./PasswordField/PasswordField";
8
8
  import AAlert from "./Alert/Alert";
9
9
  import AHeader from "./Header/Header";
10
10
  import AFooter from "./Footer/Footer";
11
+ import AFooterNew from "./newComponents/FooterNew/FooterNew";
11
12
  import ASearchTextField from "./SearchTextField/SearchTextField";
12
13
  import AMailTo from "./MailTo/MailTo";
13
14
  import ATable from "./Table/ATable";
@@ -30,6 +31,7 @@ const Components = {
30
31
  AAlert,
31
32
  AHeader,
32
33
  AFooter,
34
+ AFooterNew,
33
35
  ASearchTextField,
34
36
  AMailTo,
35
37
  ATable,
@@ -0,0 +1,152 @@
1
+ <template>
2
+ <div class="bottom">
3
+ <div class="bottom__left">
4
+ <a v-for="item in list" :key="item.id" :href="item.link" class="bottom__left__link">
5
+ {{ item.name }}
6
+ </a>
7
+ </div>
8
+ <div class="bottom__right">
9
+ <span class="bottom__right-text">2022 © ТОО "Alldata"</span>
10
+ <span class="logo-desktop"></span>
11
+ </div>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ export default {
17
+ name: "FooterBottom",
18
+ props: {
19
+ mode: {
20
+ type: String,
21
+ required: true,
22
+ validator: function (value) {
23
+ return ["prod", "dev", "staging"].indexOf(value) !== -1;
24
+ },
25
+ },
26
+ },
27
+ data() {
28
+ return {
29
+ main: {
30
+ dev: "https://adtdev.kz",
31
+ prod: "https://adata.kz",
32
+ staging: "https://adada.kz",
33
+ },
34
+ }
35
+ },
36
+ computed:{
37
+ environment() {
38
+ return this.main[this.mode]
39
+ },
40
+
41
+ list(){
42
+ return [
43
+ {
44
+ id: 1,
45
+ name: 'Тарифы',
46
+ link: `${this.environment}/tariffs`
47
+ },
48
+ {
49
+ id: 2,
50
+ name: 'Полезное',
51
+ link: `${this.environment}/about`
52
+ },
53
+ {
54
+ id: 3,
55
+ name: 'Описание API',
56
+ link: `${this.environment}/apiInfo`
57
+ },
58
+ {
59
+ id: 4,
60
+ name: 'Пользовательское соглашение',
61
+ link: `${this.environment}/user-agreements`
62
+ },
63
+ {
64
+ id: 5,
65
+ name: 'Политика конфиденциальности',
66
+ link: `${this.environment}/privacy-policy`
67
+ },
68
+ {
69
+ id: 6,
70
+ name: 'Вакансии',
71
+ link: `${this.environment}/vacancy`
72
+ },
73
+ {
74
+ id: 7,
75
+ name: 'Каталог предприятий',
76
+ link: `${this.environment}/counterparty`
77
+ },
78
+ {
79
+ id: 8,
80
+ name: 'Контакты',
81
+ link: `${this.environment}/contacts`
82
+ },
83
+ ]
84
+
85
+ }
86
+ }
87
+ }
88
+ </script>
89
+
90
+ <style lang="scss" scoped>
91
+ .bottom {
92
+ display: flex;
93
+ align-items: center;
94
+ justify-content: space-between;
95
+ max-width: 1140px;
96
+ margin: 0 auto;
97
+ padding: 20px 0;
98
+ @media (max-width: 1140px) {
99
+ padding: 20px 16px;
100
+ }
101
+ @media (max-width: 768px) {
102
+ padding: 20px 16px 12px;
103
+ }
104
+
105
+ &__left {
106
+ display: flex;
107
+ align-items: center;
108
+ gap: 24px;
109
+ @media screen and (max-width: 1140px) {
110
+ flex-direction: column;
111
+ align-items: flex-start;
112
+ gap: 16px;
113
+ }
114
+
115
+ &__link {
116
+ font-weight: 400;
117
+ font-size: 10px;
118
+ line-height: 16px;
119
+ color: #FFFFFF;
120
+ }
121
+ }
122
+
123
+ &__right {
124
+ display: flex;
125
+ align-items: center;
126
+ gap: 16px;
127
+
128
+ &-text {
129
+ font-weight: 400;
130
+ font-size: 10px;
131
+ line-height: 16px;
132
+ color: #FFFFFF;
133
+ @media screen and (max-width: 1140px) {
134
+ display: none;
135
+ }
136
+ }
137
+ }
138
+ }
139
+
140
+ .logo-desktop {
141
+ display: inline-block;
142
+ width: 90px;
143
+ height: 26px;
144
+ background-image: url("~@/assets/logo-white-desktop.svg");
145
+ background-size: cover;
146
+ background-position: center;
147
+ @media screen and (max-width: 1140px) {
148
+ display: none;
149
+
150
+ }
151
+ }
152
+ </style>
@@ -0,0 +1,114 @@
1
+ <template>
2
+ <div class="item">
3
+ <div class="item-title" @click="toggleClick">
4
+ {{ title }}
5
+ <div class="dropdown" :class="{ icon: dropdown }"></div>
6
+ </div>
7
+ <div class="item__link" :class="{ active: dropdown }" v-show="dropdown">
8
+ <div v-for="item in cols" :key="item.id" class="item__link-text">
9
+ <a :href="item.link">
10
+ {{ item.text }}
11
+ </a>
12
+ </div>
13
+ </div>
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+ export default {
19
+ name: "FooterItem",
20
+ props: {
21
+ title: {
22
+ type: String,
23
+ default: ""
24
+ },
25
+ cols: {
26
+ type: Array,
27
+ default: () => [],
28
+ },
29
+ },
30
+ data() {
31
+ return {
32
+ dropdown: false,
33
+ }
34
+ },
35
+
36
+ mounted() {
37
+ this.checkWidth()
38
+
39
+ window.addEventListener('resize', () => {
40
+ this.checkWidth()
41
+ })
42
+ },
43
+ methods: {
44
+ checkWidth() {
45
+ this.dropdown = window.innerWidth > 1140;
46
+ },
47
+ toggleClick(){
48
+ if(window.innerWidth < 1140){
49
+ this.dropdown = !this.dropdown
50
+ }
51
+ }
52
+ },
53
+ }
54
+ </script>
55
+
56
+ <style lang="scss" scoped>
57
+ .item {
58
+ display: flex;
59
+ flex-direction: column;
60
+ gap: 8px;
61
+
62
+ &-title {
63
+ font-weight: 600;
64
+ font-size: 14px;
65
+ line-height: 20px;
66
+ color: #FFFFFF;
67
+ text-align: left;
68
+ @media (max-width: 1140px) {
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: space-between;
72
+ }
73
+ }
74
+
75
+ &__link {
76
+ display: flex;
77
+ flex-direction: column;
78
+ gap: 8px;
79
+
80
+ &-text {
81
+ text-align: left;
82
+
83
+ a {
84
+ color: #FFFFFF;
85
+ cursor: pointer;
86
+ font-weight: 400;
87
+ font-size: 12px;
88
+ line-height: 20px;
89
+ text-align: left;
90
+ color: #FFFFFF;
91
+ }
92
+ }
93
+ }
94
+ }
95
+
96
+ .dropdown {
97
+ display: none;
98
+ transform: rotate(0deg);
99
+ transition: 0.3s;
100
+ @media (max-width: 1140px) {
101
+ display: block;
102
+ width: 24px;
103
+ height: 24px;
104
+ background-image: url('~@/assets/up-down.svg');
105
+ }
106
+ }
107
+ .icon{
108
+ transform: rotate(180deg);
109
+ transition: 0.3s;
110
+ }
111
+ .active {
112
+ transition: 0.3s;
113
+ }
114
+ </style>
@@ -0,0 +1,20 @@
1
+ import AFooterNew from './FooterNew.vue'
2
+
3
+ export default {
4
+ title: 'Footer',
5
+ component: AFooterNew,
6
+ template: '<a-footer-new></a-footer-new>'
7
+ };
8
+
9
+ const Template = (args, { argTypes }) => ({
10
+ components: { AFooterNew },
11
+ props: Object.keys(argTypes),
12
+ template: '<a-footer-new v-bind="$props"></a-footer-new>'
13
+ });
14
+
15
+ export const MainFooter = Template.bind({});
16
+
17
+ export const WithBottomMenu = Template.bind({});
18
+ WithBottomMenu.args = {
19
+ hasBottomMenu: true
20
+ }
@@ -0,0 +1,41 @@
1
+ <template>
2
+ <footer class="footer">
3
+ <footer-top :mode="mode"/>
4
+ <hr/>
5
+ <footer-bottom :mode="mode"/>
6
+ </footer>
7
+ </template>
8
+
9
+ <script>
10
+ import FooterTop from "@/components/newComponents/FooterNew/FooterTop";
11
+ import FooterBottom from "@/components/newComponents/FooterNew/FooterBottom";
12
+
13
+ export default {
14
+ name: "Footer",
15
+ components: {FooterTop, FooterBottom},
16
+ props: {
17
+ hasBottomMenu: {
18
+ type: Boolean,
19
+ default: false
20
+ },
21
+ mode: {
22
+ type: String,
23
+ required: true,
24
+ validator: function (value) {
25
+ return ["prod", "dev", "staging"].indexOf(value) !== -1;
26
+ },
27
+ },
28
+ }
29
+ }
30
+ </script>
31
+
32
+ <style lang="scss" scoped>
33
+ .footer {
34
+ background: #2C3E50;
35
+ border-bottom: 0.5px solid #FFFFFF;
36
+
37
+
38
+ }
39
+
40
+
41
+ </style>
@@ -0,0 +1,313 @@
1
+ <template>
2
+ <div class="block">
3
+ <div class="block__pk">
4
+ <footer-item :cols="pk" :title="pkTitle"/>
5
+ </div>
6
+ <div class="block__item">
7
+ <footer-item :cols="work" :title="workTitle"/>
8
+ </div>
9
+ <div class="block__item">
10
+ <footer-item :cols="tender" :title="tenderTitle"/>
11
+ </div>
12
+ <div class="block__item">
13
+ <footer-item :cols="avto" :title="avtoTitle"/>
14
+ </div>
15
+ <div class="block__item">
16
+ <footer-item :cols="marketing" :title="marketingTitle"/>
17
+ </div>
18
+ <div class="block__web">
19
+ <a href="https://www.youtube.com/channel/UCPkbtgwgTZbMJXjmTi3R8Uw/featured" class="youtube"/>
20
+ <a href="https://www.instagram.com/adata.kz/?igshid=253i4qxg3els" class="instagram"></a>
21
+ <a href="https://t.me/adatakz_official" class="telegram"></a>
22
+ <a href="https://www.facebook.com/adata.kz" class="facebook"></a>
23
+ <a href="https://www.tiktok.com/@adata.kz?lang=ru-RU" class="tiktok"/>
24
+ </div>
25
+ </div>
26
+ </template>
27
+ <script>
28
+ import FooterItem from "@/components/newComponents/FooterNew/FooterItem";
29
+ export default {
30
+ name: "FooterTop",
31
+ components:{
32
+ FooterItem
33
+ },
34
+ props: {
35
+ mode: {
36
+ type: String,
37
+ required: true,
38
+ validator: function (value) {
39
+ return ["prod", "dev", "staging"].indexOf(value) !== -1;
40
+ },
41
+ },
42
+ },
43
+
44
+ data() {
45
+ return {
46
+ pkTitle: 'Контрагенты',
47
+ workTitle: 'Работа',
48
+ tenderTitle: 'Тендеры',
49
+ avtoTitle: 'Штрафы',
50
+ marketingTitle: 'Маркетинг',
51
+ main: {
52
+ dev: "adtdev.kz",
53
+ prod: "adata.kz",
54
+ staging: "adada.kz",
55
+ },
56
+ }
57
+ },
58
+ computed:{
59
+ environment() {
60
+ return this.main[this.mode]
61
+ },
62
+ pk(){
63
+ return [
64
+ {
65
+ id: 1,
66
+ text: 'Проверка контрагентов',
67
+ link: `https://pk.${this.environment}`
68
+ },
69
+ {
70
+ id: 2,
71
+ text: 'Сравнение контрагентов',
72
+ link: `https://pk.${this.environment}/counterparty/compare`
73
+
74
+ },
75
+ {
76
+ id: 3,
77
+ text: 'Косвенные связи',
78
+ link: `https://pk.${this.environment}/counterparty/search-connections/check`,
79
+ },
80
+ {
81
+ id: 4,
82
+ text: 'Массовая проверка',
83
+ link: `https://pk.${this.environment}/counterparty/employees-check`,
84
+ },
85
+ {
86
+ id: 5,
87
+ text: 'Зарубежные контрагенты',
88
+ link: `https://pk.${this.environment}/counterparty/foreign`,
89
+ },
90
+ {
91
+ id: 6,
92
+ text: 'Санкции',
93
+ link: `https://pk.${this.environment}/counterparty/sanctions`,
94
+ },
95
+ {
96
+ id: 8,
97
+ text: 'Офшоры',
98
+ link: `https://pk.${this.environment}/counterparty/offshore`,
99
+ },
100
+ {
101
+ id: 9,
102
+ text: 'Интеграция по API',
103
+ link: `https://pk.${this.environment}/counterparty/offshore`,
104
+ },
105
+
106
+ ]
107
+ },
108
+ work(){
109
+ return [
110
+ {
111
+ id: 1,
112
+ text: 'Создание и поиск вакансий',
113
+ link: `https://work.${this.environment}/company/create#vacancy`
114
+
115
+ },
116
+ {
117
+ id: 2,
118
+ text: 'Создание и поиск резюме',
119
+ link: `https://work.${this.environment}/user/create#summary`
120
+ },
121
+ ]
122
+ },
123
+ tender(){
124
+ return [
125
+ {
126
+ id: 1,
127
+ text: 'Информация по тендерам',
128
+ link: `https://tender.${this.environment}/`
129
+ },
130
+ {
131
+ id: 2,
132
+ text: 'Информация по договорам',
133
+ link: `https://tender.${this.environment}/main/contracts`
134
+ },
135
+ {
136
+ id: 3,
137
+ text: 'Информация по планам закупок',
138
+ link: `https://tender.${this.environment}/main/plans`
139
+ },
140
+ ]
141
+ },
142
+ avto(){
143
+ return [
144
+ {
145
+ id: 1,
146
+ text: 'Проверка штрафов',
147
+ link: `https://avto.${this.environment}/`
148
+ },
149
+ {
150
+ id: 2,
151
+ text: 'Проверка штрафов',
152
+ link: `https://avto.${this.environment}/check`
153
+ },
154
+ {
155
+ id: 3,
156
+ text: 'Массовая проверка авто',
157
+ link: `https://avto.${this.environment}/bulk-check`
158
+ },
159
+ ]
160
+ },
161
+ marketing(){
162
+ return [
163
+ {
164
+ id: 1,
165
+ text: 'Поиск клиентов',
166
+ link: `https://marketing.${this.environment}/unload-data`
167
+ },
168
+ {
169
+ id: 2,
170
+ text: 'Анализ закупок',
171
+ link: `https://marketing.${this.environment}/purchasing-analysis`
172
+ },
173
+ {
174
+ id: 3,
175
+ text: 'Индекс деловой активности',
176
+ link: `https://marketing${this.environment}/business-activity`
177
+ },
178
+ {
179
+ id: 4,
180
+ text: 'Рейтинг налогоплательщиков',
181
+ link: `https://marketing.${this.environment}/tax-payment`
182
+ },
183
+ ]
184
+ }
185
+ }
186
+
187
+ }
188
+ </script>
189
+
190
+ <style lang="scss" scoped>
191
+ .block {
192
+ display: grid;
193
+ grid-template-columns: repeat(5, 1fr);
194
+ grid-template-rows: auto;
195
+ text-align: center;
196
+ color: #FFF;
197
+ max-width: 1140px;
198
+ margin: 0 auto;
199
+ padding: 40px 0 20px;
200
+ @media (max-width: 1140px) {
201
+ display: flex;
202
+ flex-direction: column;
203
+ gap: 16px;
204
+ padding: 20px 16px;
205
+ }
206
+
207
+ &__pk {
208
+ display: grid;
209
+ gap: 8px;
210
+ grid-column: 1;
211
+ grid-row: 1 / 3;
212
+ @media (max-width: 1140px) {
213
+ display: flex;
214
+ gap: 8px;
215
+ flex-direction: column;
216
+ }
217
+
218
+ &__item {
219
+ display: flex;
220
+ gap: 8px;
221
+ flex-direction: column;
222
+ @media (max-width: 1140px) {
223
+ display: grid;
224
+ gap: 8px;
225
+ grid-column: 1;
226
+ grid-row: 1 / 3;
227
+ }
228
+ }
229
+ }
230
+
231
+ &__item {
232
+ display: flex;
233
+ flex-direction: column;
234
+ gap: 8px;
235
+ }
236
+
237
+ &__web {
238
+ grid-column: 2/6;
239
+ display: flex;
240
+ align-items: center;
241
+ gap: 32px;
242
+ justify-content: flex-end;
243
+ margin-right: 30px;
244
+ @media (max-width: 1140px) {
245
+ justify-content: flex-start;
246
+ gap: 16px;
247
+ }
248
+ }
249
+ }
250
+
251
+ .item-title {
252
+ font-weight: 600;
253
+ font-size: 14px;
254
+ line-height: 20px;
255
+ color: #FFFFFF;
256
+ text-align: left;
257
+ @media (max-width: 1140px) {
258
+ display: flex;
259
+ align-items: center;
260
+ justify-content: space-between;
261
+ }
262
+ }
263
+
264
+ .item-text {
265
+ font-weight: 400;
266
+ font-size: 12px;
267
+ line-height: 20px;
268
+ text-align: left;
269
+ color: #FFFFFF;
270
+
271
+ a {
272
+ color: #FFFFFF;
273
+ cursor: pointer;
274
+ }
275
+ }
276
+
277
+
278
+
279
+ .youtube {
280
+ width: 28px;
281
+ height: 28px;
282
+ background-image: url('~@/assets/youtube.svg');
283
+ cursor: pointer;
284
+ }
285
+
286
+ .instagram {
287
+ width: 28px;
288
+ height: 28px;
289
+ background-image: url('~@/assets/instagram.svg');
290
+ cursor: pointer;
291
+ }
292
+
293
+ .telegram {
294
+ width: 28px;
295
+ height: 28px;
296
+ background-image: url('~@/assets/telegram.svg');
297
+ cursor: pointer;
298
+ }
299
+
300
+ .facebook {
301
+ width: 28px;
302
+ height: 28px;
303
+ background-image: url('~@/assets/facebook.svg');
304
+ cursor: pointer;
305
+ }
306
+
307
+ .tiktok {
308
+ width: 28px;
309
+ height: 28px;
310
+ background-image: url('~@/assets/tiktok.svg');
311
+ cursor: pointer;
312
+ }
313
+ </style>