adata-ui 0.1.4 → 0.1.8
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 +4464 -762
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.css +1 -1
- package/dist/adata-ui.umd.js +4464 -762
- package/dist/adata-ui.umd.js.map +1 -1
- package/dist/adata-ui.umd.min.js +1 -1
- package/dist/adata-ui.umd.min.js.map +1 -1
- package/package-lock.json +25791 -19991
- package/package.json +2 -1
- package/src/App.vue +23 -23
- package/src/components/Alert/Alert.vue +20 -20
- package/src/components/Button/BaseButton.vue +1 -1
- package/src/components/Footer/Footer.vue +2 -2
- package/src/components/Header/Header.stories.js +55 -0
- package/src/components/Header/Header.vue +284 -104
- package/src/components/Header/Profile.vue +806 -0
- package/src/components/PasswordField/PasswordField.stories.js +1 -1
- package/src/components/index.js +5 -2
- package/src/components/transitions/SlideToggle.vue +55 -0
- package/src/components/transitions/VerticalMobileToggle.vue +76 -0
- package/src/configs/navigationBarConfig.js +22 -0
- package/src/configs/profileDropDown.js +101 -0
- package/src/stories/Button.stories.js +46 -46
- package/src/stories/Button.vue +54 -54
- package/src/stories/Header.stories.js +21 -21
- package/src/stories/Header.vue +59 -59
- package/src/stories/Introduction.stories.mdx +211 -211
- package/src/stories/Page.stories.js +25 -25
- package/src/stories/Page.vue +88 -88
- package/src/stories/button.css +30 -30
- package/src/stories/header.css +26 -26
- package/src/stories/page.css +69 -69
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adata-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"core-js": "^3.6.5",
|
|
16
16
|
"node-sass": "^5.0.0",
|
|
17
17
|
"user": "0.0.0",
|
|
18
|
+
"v-click-outside": "^3.1.2",
|
|
18
19
|
"vue": "^2.6.11",
|
|
19
20
|
"vue-the-mask": "^0.11.1"
|
|
20
21
|
},
|
package/src/App.vue
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="app">
|
|
3
|
-
</div>
|
|
4
|
-
</template>
|
|
5
|
-
|
|
6
|
-
<script>
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
name: 'App',
|
|
10
|
-
components: {}
|
|
11
|
-
}
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<style>
|
|
15
|
-
#app {
|
|
16
|
-
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
17
|
-
-webkit-font-smoothing: antialiased;
|
|
18
|
-
-moz-osx-font-smoothing: grayscale;
|
|
19
|
-
text-align: center;
|
|
20
|
-
color: #2c3e50;
|
|
21
|
-
margin-top: 60px;
|
|
22
|
-
}
|
|
23
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="app">
|
|
3
|
+
</div>
|
|
4
|
+
</template>
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
name: 'App',
|
|
10
|
+
components: {}
|
|
11
|
+
}
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<style>
|
|
15
|
+
#app {
|
|
16
|
+
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
17
|
+
-webkit-font-smoothing: antialiased;
|
|
18
|
+
-moz-osx-font-smoothing: grayscale;
|
|
19
|
+
text-align: center;
|
|
20
|
+
color: #2c3e50;
|
|
21
|
+
margin-top: 60px;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="['note', {'note--error': error}]">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
3
|
+
<div class="note-svg">
|
|
4
|
+
<svg v-if="!error" fill="none" width="14" height="14"
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
6
|
+
<circle cx="8" cy="8" r="6.5" stroke="#007AFF"></circle>
|
|
7
|
+
<path
|
|
8
|
+
d="M9.661 11.137l-.111.457c-.336.132-.604.233-.803.302-.2.07-.432.104-.696.104-.406 0-.722-.1-.947-.297a.961.961 0 01-.338-.755c0-.117.008-.239.025-.363.017-.123.045-.263.082-.419l.419-1.483c.037-.142.069-.277.094-.404.026-.126.038-.243.038-.348 0-.189-.039-.321-.117-.396-.078-.074-.227-.112-.448-.112-.108 0-.22.017-.333.051a4.649 4.649 0 00-.294.096l.112-.457c.275-.112.537-.207.788-.287.251-.08.489-.12.713-.12.403 0 .714.098.933.293a.97.97 0 01.327.76c0 .064-.007.177-.022.34a2.277 2.277 0 01-.084.447l-.417 1.478a3.921 3.921 0 00-.133.752c0 .196.044.33.132.401.088.071.24.107.456.107.102 0 .217-.018.345-.054.128-.035.221-.066.28-.093zm.106-6.203a.865.865 0 01-.292.658.994.994 0 01-.703.272 1 1 0 01-.706-.272.863.863 0 01-.295-.658c0-.257.098-.477.295-.66A1 1 0 018.772 4a.99.99 0 01.703.274.873.873 0 01.292.66z"
|
|
9
|
+
fill="#007AFF"
|
|
10
|
+
></path>
|
|
11
|
+
</svg>
|
|
12
|
+
<svg width="14" height="14" v-else fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="note-error-svg">
|
|
13
|
+
<circle cx="8" cy="8" r="6.5" stroke="#e60000"></circle>
|
|
14
|
+
<path
|
|
15
|
+
d="M9.661 11.137l-.111.457c-.336.132-.604.233-.803.302-.2.07-.432.104-.696.104-.406 0-.722-.1-.947-.297a.961.961 0 01-.338-.755c0-.117.008-.239.025-.363.017-.123.045-.263.082-.419l.419-1.483c.037-.142.069-.277.094-.404.026-.126.038-.243.038-.348 0-.189-.039-.321-.117-.396-.078-.074-.227-.112-.448-.112-.108 0-.22.017-.333.051a4.649 4.649 0 00-.294.096l.112-.457c.275-.112.537-.207.788-.287.251-.08.489-.12.713-.12.403 0 .714.098.933.293a.97.97 0 01.327.76c0 .064-.007.177-.022.34a2.277 2.277 0 01-.084.447l-.417 1.478a3.921 3.921 0 00-.133.752c0 .196.044.33.132.401.088.071.24.107.456.107.102 0 .217-.018.345-.054.128-.035.221-.066.28-.093zm.106-6.203a.865.865 0 01-.292.658.994.994 0 01-.703.272 1 1 0 01-.706-.272.863.863 0 01-.295-.658c0-.257.098-.477.295-.66A1 1 0 018.772 4a.99.99 0 01.703.274.873.873 0 01.292.66z"
|
|
16
|
+
fill="#e60000"></path>
|
|
17
|
+
</svg>
|
|
18
|
+
</div>
|
|
19
|
+
<slot></slot>
|
|
20
20
|
</div>
|
|
21
21
|
</template>
|
|
22
22
|
<script>
|
|
@@ -29,7 +29,7 @@ export default {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
</script>
|
|
32
|
-
<style lang="scss"
|
|
32
|
+
<style lang="scss">
|
|
33
33
|
.note {
|
|
34
34
|
font-weight: 400;
|
|
35
35
|
font-style: italic;
|
|
@@ -56,8 +56,8 @@ export default {
|
|
|
56
56
|
}
|
|
57
57
|
&-svg {
|
|
58
58
|
margin-right: 8px;
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
</style>
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
|
|
56
56
|
<script>
|
|
57
57
|
export default {
|
|
58
|
+
name: "Footer",
|
|
58
59
|
props: {
|
|
59
|
-
name: "Footer",
|
|
60
60
|
hasBottomMenu: {
|
|
61
61
|
type: Boolean,
|
|
62
62
|
default: false
|
|
@@ -64,7 +64,7 @@ export default {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
</script>
|
|
67
|
-
<style lang="scss"
|
|
67
|
+
<style lang="scss">
|
|
68
68
|
ul, li {
|
|
69
69
|
list-style: none;
|
|
70
70
|
text-decoration: none;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import Header from './Header.vue'
|
|
2
|
+
import {action} from "@storybook/addon-actions";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Header',
|
|
6
|
+
component: Header,
|
|
7
|
+
template: '<Header></Header>'
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const Template = (args, { argTypes }) => ({
|
|
11
|
+
components: { Header },
|
|
12
|
+
props: Object.keys(argTypes),
|
|
13
|
+
template: '<Header @menuOpen="openMenu' +
|
|
14
|
+
'" @showBalanceModal="showBalance"' +
|
|
15
|
+
' @setShowModal="showModal"' +
|
|
16
|
+
' @logout="logoutClick"' +
|
|
17
|
+
' @setIsReplenishModal="setReplenishModal" v-bind="$props"' +
|
|
18
|
+
'></Header>',
|
|
19
|
+
methods: {
|
|
20
|
+
openMenu(val) {
|
|
21
|
+
console.log(val);
|
|
22
|
+
},
|
|
23
|
+
showBalance(val) {
|
|
24
|
+
console.log(val);
|
|
25
|
+
},
|
|
26
|
+
showModal(val) {
|
|
27
|
+
console.log(val);
|
|
28
|
+
},
|
|
29
|
+
logoutClick() {
|
|
30
|
+
console.log("logout");
|
|
31
|
+
},
|
|
32
|
+
setReplenishModal(val) {
|
|
33
|
+
console.log(val);
|
|
34
|
+
},
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export const MainHeader = Template.bind({});
|
|
39
|
+
|
|
40
|
+
export const devHeader = Template.bind({});
|
|
41
|
+
devHeader.args = {
|
|
42
|
+
isDev: true
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export const headerAuthenticated = Template.bind({});
|
|
46
|
+
headerAuthenticated.args = {
|
|
47
|
+
isDev: true,
|
|
48
|
+
isAuthenticated: true,
|
|
49
|
+
requestCount: 1000,
|
|
50
|
+
daysRemaining: "остаток дней: 29",
|
|
51
|
+
email: "sboranbayeva@gmail.com",
|
|
52
|
+
loginUrl: "https://id.adtdev.kz/auth/signin?url=https://pk.adata.kz/auth",
|
|
53
|
+
activeTabKey: 'counterparty',
|
|
54
|
+
balance: 1954900
|
|
55
|
+
}
|
|
@@ -1,82 +1,46 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<header class="header">
|
|
2
|
+
<header class="a-header">
|
|
3
3
|
<div class="container">
|
|
4
|
-
<div class="
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<MobileToggle v-slot:default="{ animationClass }">
|
|
20
|
-
<div class="geo__filters" :class="animationClass" v-show="isGeoOpen">
|
|
21
|
-
<slot>
|
|
22
|
-
<div class="geo-button">
|
|
23
|
-
<div class="geo-button-text">
|
|
24
|
-
Выбор страны
|
|
25
|
-
</div>
|
|
26
|
-
<div class="geo-button-arrow" @click="isGeoOpen = false">
|
|
27
|
-
<BaseIcon class="ic-18">cross</BaseIcon>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="country-button" @click="selectCountry('kz')">
|
|
31
|
-
<div class="country-button-arrow" @click="isGeoOpen = false">
|
|
32
|
-
<BaseIcon class="ic-18">kz</BaseIcon>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="country-button-text">
|
|
35
|
-
Казахстан
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
<div class="country-button" @click="selectCountry('ru')">
|
|
39
|
-
<div class="country-button-arrow" @click="isGeoOpen = false">
|
|
40
|
-
<BaseIcon class="ic-18">ru</BaseIcon>
|
|
41
|
-
</div>
|
|
42
|
-
<div class="country-button-text">
|
|
43
|
-
Россия
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</slot>
|
|
47
|
-
</div>
|
|
48
|
-
</MobileToggle>
|
|
49
|
-
<Profile v-bind:profileDropDown="profileDropDown"/>
|
|
50
|
-
</div>
|
|
51
|
-
<svg @click="changeValue">
|
|
52
|
-
<use
|
|
53
|
-
:xlink:href="require('@/assets/icons/sprite.svg') + '#icon_hamburger'"
|
|
54
|
-
/>
|
|
55
|
-
</svg>
|
|
56
|
-
</div>
|
|
57
|
-
<div class="menu desktop" v-if="subheaderItems.length > 0">
|
|
58
|
-
<div
|
|
59
|
-
v-for="(item, index) in subheaderItems"
|
|
60
|
-
:key="index"
|
|
61
|
-
class="menu__wrapper"
|
|
62
|
-
>
|
|
63
|
-
<nuxt-link
|
|
64
|
-
class="menu__items"
|
|
65
|
-
:class="{active: isMain && item.name === 'Контрагенты'}"
|
|
66
|
-
active-class="active"
|
|
67
|
-
:to="item.url"
|
|
68
|
-
v-if="isExternalLink(item.url)"
|
|
69
|
-
>
|
|
70
|
-
{{ item.name }}
|
|
71
|
-
</nuxt-link>
|
|
72
|
-
<a :href="item.url" class="menu__items" v-else>
|
|
73
|
-
{{ item.name }}
|
|
74
|
-
</a>
|
|
75
|
-
</div>
|
|
4
|
+
<div class="a-header__left">
|
|
5
|
+
<a class="logo" :href="toAdtdev('https://adata.kz')">
|
|
6
|
+
<svg class="adata-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 166 48">
|
|
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
|
+
<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
|
+
</svg>
|
|
10
|
+
</a>
|
|
11
|
+
<div class="menu" v-if="subheaderItems.length > 0">
|
|
12
|
+
<div v-for="(item, index) in subheaderItems"
|
|
13
|
+
:key="index"
|
|
14
|
+
class="menu__wrapper menu__items"
|
|
15
|
+
:class="{active: locationUrl.includes(item.url)}"
|
|
16
|
+
@click="handleClick(item.url)"
|
|
17
|
+
>
|
|
18
|
+
{{ item.name }}
|
|
76
19
|
</div>
|
|
77
20
|
</div>
|
|
78
|
-
|
|
79
|
-
|
|
21
|
+
</div>
|
|
22
|
+
<div class="a-header__right">
|
|
23
|
+
<slot name="chooseCountry"></slot>
|
|
24
|
+
<slot name="profile"></slot>
|
|
25
|
+
<Profile
|
|
26
|
+
v-bind:profileDropDown="profileDropDown"
|
|
27
|
+
:isDev="isDev"
|
|
28
|
+
:isAuthenticated="isAuthenticated"
|
|
29
|
+
:requestCount="requestCount"
|
|
30
|
+
:daysRemaining="daysRemaining"
|
|
31
|
+
:email="email"
|
|
32
|
+
:loginUrl="loginUrl"
|
|
33
|
+
@showBalanceModal="(val) => { $emit('showBalanceModal', val) }"
|
|
34
|
+
@setShowModal="(val) => { $emit('setShowModal', val) }"
|
|
35
|
+
@logout="$emit('logout')"
|
|
36
|
+
@setIsReplenishModal="(val) => { $emit('setIsReplenishModal', val) }"
|
|
37
|
+
/>
|
|
38
|
+
<div class="menu_mobile--switcher" @click="changeValue">
|
|
39
|
+
<!-- icon_hamburger -->
|
|
40
|
+
<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
41
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M2 4h20v2H2V4zm0 14h20v2H2v-2zm0-7h20v2H2v-2z"
|
|
42
|
+
fill="#2C3E50"></path>
|
|
43
|
+
</svg>
|
|
80
44
|
</div>
|
|
81
45
|
</div>
|
|
82
46
|
</div>
|
|
@@ -86,50 +50,266 @@
|
|
|
86
50
|
:class="animationClass"
|
|
87
51
|
v-show="subheaderItems.length > 0 && isOpen"
|
|
88
52
|
>
|
|
89
|
-
<div class="mobile-table-head">
|
|
90
|
-
|
|
91
|
-
|
|
53
|
+
<div @click.stop="changeValue" class="mobile-table-head">
|
|
54
|
+
<!-- close_hamburger -->
|
|
55
|
+
<svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
56
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.414 18.142L18.556 4l1.415 1.414L5.828 19.556l-1.414-1.414z"
|
|
57
|
+
fill="#2C3E50"></path>
|
|
58
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.414 4l14.142 14.142-1.414 1.414L4 5.414 5.414 4z"
|
|
59
|
+
fill="#2C3E50"></path>
|
|
92
60
|
</svg>
|
|
93
61
|
</div>
|
|
94
|
-
<div
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
class="menu_mobile-accordion"
|
|
103
|
-
:class="{'active-burger-tab': isActiveTab(item.url)}"
|
|
104
|
-
>
|
|
105
|
-
<span class="menu_mobile-items">
|
|
106
|
-
{{ item.name }}
|
|
107
|
-
</span>
|
|
108
|
-
</div>
|
|
109
|
-
</div>
|
|
62
|
+
<div
|
|
63
|
+
v-for="(item, index) in subheaderItems"
|
|
64
|
+
:key="index"
|
|
65
|
+
class="menu_mobile-wrapper"
|
|
66
|
+
:class="{'active-burger-tab': locationUrl.includes(item.url)}"
|
|
67
|
+
@click="handleClick(item.url)"
|
|
68
|
+
>
|
|
69
|
+
{{ item.name }}
|
|
110
70
|
</div>
|
|
111
71
|
</div>
|
|
112
72
|
</MobileToggle>
|
|
113
|
-
<SubHeader :list="subheaderItems" class="desktop"/>
|
|
114
|
-
<SubHeaderMobile :list="subheaderItems" class="mobile" v-if="isProfilePage || isFinesPage"/>
|
|
115
|
-
<Navbar :options="searchDetailSidebar" :type_id="1" v-if="isCompanyPage && isMobile" class="mobile"/>
|
|
116
|
-
<Navbar :options="searchDetailSidebarRU" :type_id="1" v-if="isRussianPage && isMobile " class="mobile"/>
|
|
117
|
-
<Navbar :options="individualNavbarItems" :type_id="2" v-if="isIndividualPage && isMobile" class="mobile"/>
|
|
118
73
|
</header>
|
|
119
74
|
</template>
|
|
120
75
|
|
|
121
76
|
<script>
|
|
77
|
+
import Profile from "./Profile";
|
|
78
|
+
import { menuList } from "../../configs/navigationBarConfig";
|
|
79
|
+
import { profileDropDown } from "../../configs/profileDropDown"
|
|
80
|
+
import MobileToggle from "../transitions/VerticalMobileToggle";
|
|
81
|
+
|
|
122
82
|
export default {
|
|
123
|
-
|
|
83
|
+
components: {
|
|
84
|
+
Profile,
|
|
85
|
+
MobileToggle,
|
|
86
|
+
},
|
|
124
87
|
props: {
|
|
125
|
-
|
|
88
|
+
isDev: {
|
|
126
89
|
type: Boolean,
|
|
127
90
|
default: false
|
|
91
|
+
},
|
|
92
|
+
isAuthenticated: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false
|
|
95
|
+
},
|
|
96
|
+
requestCount: {
|
|
97
|
+
type: Number,
|
|
98
|
+
default: null
|
|
99
|
+
},
|
|
100
|
+
daysRemaining: {
|
|
101
|
+
type: String,
|
|
102
|
+
default: null
|
|
103
|
+
},
|
|
104
|
+
email: {
|
|
105
|
+
type: String,
|
|
106
|
+
default: ""
|
|
107
|
+
},
|
|
108
|
+
loginUrl: {
|
|
109
|
+
type: String,
|
|
110
|
+
default: "",
|
|
111
|
+
required: true
|
|
112
|
+
},
|
|
113
|
+
activeTabKey: {
|
|
114
|
+
type: String,
|
|
115
|
+
default: 'counterparty'
|
|
116
|
+
},
|
|
117
|
+
balance: {
|
|
118
|
+
type: Number,
|
|
119
|
+
default: 0
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
data() {
|
|
123
|
+
return {
|
|
124
|
+
profileDropDown,
|
|
125
|
+
subheaderItems: [],
|
|
126
|
+
isOpen: false
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
mounted() {
|
|
130
|
+
this.setBalance(this.balance);
|
|
131
|
+
this.subheaderItems = menuList;
|
|
132
|
+
},
|
|
133
|
+
computed: {
|
|
134
|
+
locationUrl() {
|
|
135
|
+
return window.location.href;
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
methods: {
|
|
139
|
+
changeValue() {
|
|
140
|
+
this.isOpen = !this.isOpen
|
|
141
|
+
this.$emit('menuOpen', this.isOpen)
|
|
142
|
+
},
|
|
143
|
+
toAdtdev(url) {
|
|
144
|
+
return this.isDev ? url.replace("adata", "adtdev") : url;
|
|
145
|
+
},
|
|
146
|
+
setBalance(balance) {
|
|
147
|
+
if (balance !== 0) {
|
|
148
|
+
this.profileDropDown[2].name = 'Текущий баланс: ' + this.thousandSeparator(balance) + ' ₸';
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
thousandSeparator(val) {
|
|
152
|
+
return val ? val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " "): '';
|
|
153
|
+
},
|
|
154
|
+
handleClick(url) {
|
|
155
|
+
window.open(this.toAdtdev(url), "_self");
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
watch: {
|
|
159
|
+
balance(newBalance) {
|
|
160
|
+
this.setBalance(newBalance);
|
|
128
161
|
}
|
|
129
162
|
}
|
|
130
|
-
}
|
|
163
|
+
};
|
|
131
164
|
</script>
|
|
132
165
|
|
|
133
|
-
<style
|
|
166
|
+
<style lang="scss">
|
|
167
|
+
* {
|
|
168
|
+
font-family: "Open Sans", sans-serif;
|
|
169
|
+
box-sizing: border-box;
|
|
170
|
+
margin: 0;
|
|
171
|
+
padding: 0;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.container {
|
|
175
|
+
max-width: 1180px;
|
|
176
|
+
width: 100%;
|
|
177
|
+
padding: 0 20px;
|
|
178
|
+
margin: 0 auto;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.a-header {
|
|
182
|
+
width: 100%;
|
|
183
|
+
background: #ffffff;
|
|
184
|
+
max-height: 62px;
|
|
185
|
+
height: 62px;
|
|
186
|
+
display: flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
@media (max-width: 1025px) {
|
|
189
|
+
border-bottom: 1px solid #2C3E5026;
|
|
190
|
+
height: 40px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
& > .container {
|
|
194
|
+
display: flex;
|
|
195
|
+
justify-content: space-between;
|
|
196
|
+
align-items: center;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&__right {
|
|
200
|
+
display: flex;
|
|
201
|
+
align-items: center;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&__left {
|
|
205
|
+
display: flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
|
|
208
|
+
.menu {
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
@media (max-width: 1025px) {
|
|
212
|
+
display: none;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&__items {
|
|
216
|
+
margin-right: 8px;
|
|
217
|
+
align-items: center;
|
|
218
|
+
padding: 20px 8px 20px 0;
|
|
219
|
+
transition: text-shadow 0.3s;
|
|
220
|
+
display: block;
|
|
221
|
+
font-weight: bold;
|
|
222
|
+
font-size: 16px;
|
|
223
|
+
line-height: 22px;
|
|
224
|
+
text-transform: uppercase;
|
|
225
|
+
color: #71757a;
|
|
226
|
+
position: relative;
|
|
227
|
+
|
|
228
|
+
&::after {
|
|
229
|
+
content: "";
|
|
230
|
+
position: absolute;
|
|
231
|
+
right: -1px;
|
|
232
|
+
top: 50%;
|
|
233
|
+
transform: translateY(-50%);
|
|
234
|
+
height: 22px;
|
|
235
|
+
width: 1px;
|
|
236
|
+
background-color: #e5e5e5;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
&.active {
|
|
240
|
+
font-weight: bold;
|
|
241
|
+
font-size: 16px;
|
|
242
|
+
line-height: 22px;
|
|
243
|
+
text-transform: uppercase;
|
|
244
|
+
color: #2c3e50;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
&:hover {
|
|
248
|
+
color: #9DA3AC;
|
|
249
|
+
cursor: pointer;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.logo {
|
|
255
|
+
display: block;
|
|
256
|
+
margin-right: 20px;
|
|
257
|
+
|
|
258
|
+
svg {
|
|
259
|
+
width: 90px;
|
|
260
|
+
height: 26px;
|
|
261
|
+
display: block;
|
|
262
|
+
fill: #2c3e50;
|
|
263
|
+
@media(max-width: 1025px) {
|
|
264
|
+
width: 77px;
|
|
265
|
+
height: 24px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&:hover {
|
|
269
|
+
fill: #71757a;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.menu_mobile {
|
|
276
|
+
display: none;
|
|
277
|
+
|
|
278
|
+
&--switcher {
|
|
279
|
+
display: none;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@media (max-width: 1025px) {
|
|
283
|
+
display: block;
|
|
284
|
+
.mobile-table-head {
|
|
285
|
+
padding: 11px 16px;
|
|
286
|
+
display: flex;
|
|
287
|
+
justify-content: flex-end;
|
|
288
|
+
background: #2c3e500d;
|
|
289
|
+
}
|
|
290
|
+
&-wrapper {
|
|
291
|
+
border-top: 1px solid #9DA3AC4C;
|
|
292
|
+
padding: 14px 16px;
|
|
293
|
+
font-weight: 600;
|
|
294
|
+
font-size: 16px;
|
|
295
|
+
line-height: 22px;
|
|
296
|
+
color: #2c3e50;
|
|
297
|
+
|
|
298
|
+
&:last-child {
|
|
299
|
+
border-bottom: 1px solid #9DA3AC4C;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
&.active-burger-tab {
|
|
303
|
+
background: #2c3e500d;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
&--switcher {
|
|
307
|
+
display: flex;
|
|
308
|
+
align-items: center;
|
|
309
|
+
justify-content: center;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
134
314
|
|
|
135
|
-
</style>
|
|
315
|
+
</style>
|