adata-ui 0.3.42 → 0.3.44
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 +90 -62
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.css +1 -1
- package/dist/adata-ui.umd.js +90 -62
- package/dist/adata-ui.umd.js.map +1 -1
- package/dist/adata-ui.umd.min.js +2 -2
- package/dist/adata-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/BottomNavigationBar/ABottomNavigationBar.vue +13 -5
- package/src/components/ServiceSlider/AServiceSlider.vue +63 -48
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<div class="bottom-navigation__title">Главная</div>
|
|
9
9
|
</component>
|
|
10
10
|
</li>
|
|
11
|
-
<li>
|
|
11
|
+
<li id="services-btn">
|
|
12
12
|
<a :class="{ 'bottom-navigation--active': openService }" @click="handleClick">
|
|
13
13
|
<div class="bottom-navigation__icon">
|
|
14
14
|
<a-nav-icon icon-name="service" class="ic-24"/>
|
|
@@ -91,11 +91,19 @@ export default {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
+
mounted() {
|
|
95
|
+
this.$nextTick(() => {
|
|
96
|
+
document.querySelectorAll('.bottom-navigation li').forEach((elem) => {
|
|
97
|
+
elem.addEventListener('click', () => {
|
|
98
|
+
if (elem.id !== 'services-btn') {
|
|
99
|
+
this.$emit("close")
|
|
100
|
+
}
|
|
101
|
+
})
|
|
102
|
+
})
|
|
103
|
+
})
|
|
104
|
+
},
|
|
94
105
|
methods: {
|
|
95
106
|
handleClick() {
|
|
96
|
-
// this.$router.push({
|
|
97
|
-
// hash: "service"
|
|
98
|
-
// })
|
|
99
107
|
this.$emit("click-menu")
|
|
100
108
|
}
|
|
101
109
|
}
|
|
@@ -140,4 +148,4 @@ export default {
|
|
|
140
148
|
}
|
|
141
149
|
}
|
|
142
150
|
}
|
|
143
|
-
</style>
|
|
151
|
+
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="services" :class="{ 'services--active': openService }">
|
|
2
|
+
<div id="services-navs" class="services" :class="{ 'services--active': openService }" :style="computedStyle">
|
|
3
3
|
<div class="services__header">
|
|
4
4
|
<svg width="78" height="24" viewBox="0 0 78 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
5
|
<rect width="78" height="24" fill="white"/>
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
:is="navs.links.length ? 'div': module === navs.module ? 'nuxt-link': 'a'"
|
|
27
27
|
v-for="navs in navigations"
|
|
28
28
|
:key="navs.icon"
|
|
29
|
+
:id="navs.module"
|
|
29
30
|
class="service-card__item"
|
|
30
31
|
:href="navs.links.length ? null: module === navs.module ? null: navs.url[mode]"
|
|
31
32
|
:to="navs.links.length ? null: '/'"
|
|
@@ -166,44 +167,46 @@
|
|
|
166
167
|
</div>
|
|
167
168
|
</div>
|
|
168
169
|
|
|
169
|
-
<
|
|
170
|
-
<div class="menu-
|
|
171
|
-
<div class="menu-
|
|
172
|
-
<
|
|
173
|
-
<path d="M15 18L9 12L15 6" stroke="#2C3E50" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
174
|
-
</svg>
|
|
175
|
-
</div>
|
|
176
|
-
<div class="menu-mobile__title">
|
|
177
|
-
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
178
|
-
<g clip-path="url(#clip0_5191_51862)">
|
|
179
|
-
<path d="M12.3416 8.35498H12.2766C12.2488 8.70065 12.1805 9.04187 12.0732 9.37164L10.8032 13.3333H13.7899L12.5366 9.41164C12.4351 9.06712 12.3698 8.713 12.3416 8.35498Z" fill="#2C3E50"/>
|
|
180
|
-
<path d="M20.5 2H4.5C3.96957 2 3.46086 2.21071 3.08579 2.58578C2.71071 2.96086 2.5 3.46957 2.5 4V20C2.5 20.5304 2.71071 21.0391 3.08579 21.4142C3.46086 21.7893 3.96957 22 4.5 22H20.5C21.0304 22 21.5391 21.7893 21.9142 21.4142C22.2893 21.0391 22.5 20.5304 22.5 20V4C22.5 3.46957 22.2893 2.96086 21.9142 2.58578C21.5391 2.21071 21.0304 2 20.5 2ZM15.2217 17.9417L14.3883 15.345H10.2383L9.41667 17.9417H6.57167L10.82 6.275H13.9367L18.0867 17.9417H15.2217Z" fill="#2C3E50"/>
|
|
181
|
-
</g>
|
|
182
|
-
<defs>
|
|
183
|
-
<clipPath id="clip0_5191_51862">
|
|
184
|
-
<rect width="24" height="24" fill="white" transform="translate(0.5)"/>
|
|
185
|
-
</clipPath>
|
|
186
|
-
</defs>
|
|
187
|
-
</svg>
|
|
188
|
-
<p>{{navigation.title}}</p>
|
|
189
|
-
</div>
|
|
190
|
-
<div class="ic-24"></div>
|
|
191
|
-
</div>
|
|
192
|
-
<ul class="navigations">
|
|
193
|
-
<li v-for="link in navigation.links" :key="link.id">
|
|
194
|
-
<component
|
|
195
|
-
:is="module === navigation.module ? 'nuxt-link' : 'a' "
|
|
196
|
-
:to="link.href"
|
|
197
|
-
:href="module === navigation.module ? '': navigation.url[mode] + link.href"
|
|
198
|
-
>
|
|
199
|
-
<p>{{link.title}}</p>
|
|
170
|
+
<transition name="menu">
|
|
171
|
+
<div class="menu-mobile" v-show="showPanelMenu" :class="{ 'menu-mobile--show': showPanelMenu }">
|
|
172
|
+
<div class="menu-mobile__header">
|
|
173
|
+
<div class="menu-mobile__arrow" @click="goBack">
|
|
200
174
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
201
|
-
<path d="
|
|
175
|
+
<path d="M15 18L9 12L15 6" stroke="#2C3E50" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
202
176
|
</svg>
|
|
203
|
-
</
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
177
|
+
</div>
|
|
178
|
+
<div class="menu-mobile__title">
|
|
179
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
180
|
+
<g clip-path="url(#clip0_5191_51862)">
|
|
181
|
+
<path d="M12.3416 8.35498H12.2766C12.2488 8.70065 12.1805 9.04187 12.0732 9.37164L10.8032 13.3333H13.7899L12.5366 9.41164C12.4351 9.06712 12.3698 8.713 12.3416 8.35498Z" fill="#2C3E50"/>
|
|
182
|
+
<path d="M20.5 2H4.5C3.96957 2 3.46086 2.21071 3.08579 2.58578C2.71071 2.96086 2.5 3.46957 2.5 4V20C2.5 20.5304 2.71071 21.0391 3.08579 21.4142C3.46086 21.7893 3.96957 22 4.5 22H20.5C21.0304 22 21.5391 21.7893 21.9142 21.4142C22.2893 21.0391 22.5 20.5304 22.5 20V4C22.5 3.46957 22.2893 2.96086 21.9142 2.58578C21.5391 2.21071 21.0304 2 20.5 2ZM15.2217 17.9417L14.3883 15.345H10.2383L9.41667 17.9417H6.57167L10.82 6.275H13.9367L18.0867 17.9417H15.2217Z" fill="#2C3E50"/>
|
|
183
|
+
</g>
|
|
184
|
+
<defs>
|
|
185
|
+
<clipPath id="clip0_5191_51862">
|
|
186
|
+
<rect width="24" height="24" fill="white" transform="translate(0.5)"/>
|
|
187
|
+
</clipPath>
|
|
188
|
+
</defs>
|
|
189
|
+
</svg>
|
|
190
|
+
<p>{{navigation.title}}</p>
|
|
191
|
+
</div>
|
|
192
|
+
<div class="ic-24"></div>
|
|
193
|
+
</div>
|
|
194
|
+
<ul class="navigations">
|
|
195
|
+
<li v-for="link in navigation.links" :key="link.id">
|
|
196
|
+
<component
|
|
197
|
+
:is="module === navigation.module ? 'nuxt-link' : 'a' "
|
|
198
|
+
:to="link.href"
|
|
199
|
+
:href="module === navigation.module ? '': navigation.url[mode] + link.href"
|
|
200
|
+
>
|
|
201
|
+
<p>{{link.title}}</p>
|
|
202
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
203
|
+
<path d="M9 18L15 12L9 6" stroke="#2C3E50" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
204
|
+
</svg>
|
|
205
|
+
</component>
|
|
206
|
+
</li>
|
|
207
|
+
</ul>
|
|
208
|
+
</div>
|
|
209
|
+
</transition>
|
|
207
210
|
|
|
208
211
|
</div>
|
|
209
212
|
</template>
|
|
@@ -507,19 +510,26 @@ export default {
|
|
|
507
510
|
]
|
|
508
511
|
}
|
|
509
512
|
},
|
|
513
|
+
computed: {
|
|
514
|
+
computedStyle() {
|
|
515
|
+
return this.module !== 'landing' ? this.openService ? 'transition: 1s ease': 'transition: 0.01s ease': null
|
|
516
|
+
}
|
|
517
|
+
},
|
|
510
518
|
watch: {
|
|
511
519
|
openService(e) {
|
|
512
520
|
if (e) {
|
|
521
|
+
const currentModule = this.navigations.some((nav) => nav.module === this.module)
|
|
522
|
+
if (currentModule) {
|
|
523
|
+
document.querySelector(`#services-navs #${this.module}`).click()
|
|
524
|
+
}
|
|
513
525
|
document.body.style.overflowY = "hidden"
|
|
514
526
|
} else {
|
|
515
527
|
this.showPanelMenu = false
|
|
516
528
|
document.body.style.overflowY = "auto"
|
|
517
529
|
}
|
|
518
530
|
},
|
|
519
|
-
$route(
|
|
520
|
-
|
|
521
|
-
this.$emit("hide-service")
|
|
522
|
-
}
|
|
531
|
+
$route() {
|
|
532
|
+
this.$emit("hide-service")
|
|
523
533
|
}
|
|
524
534
|
},
|
|
525
535
|
async created() {
|
|
@@ -591,7 +601,7 @@ export default {
|
|
|
591
601
|
background: #fff;
|
|
592
602
|
left: 0;
|
|
593
603
|
width: 100%;
|
|
594
|
-
transition: 0.
|
|
604
|
+
transition: 0.3s ease;
|
|
595
605
|
z-index: 1002;
|
|
596
606
|
|
|
597
607
|
&__header {
|
|
@@ -625,7 +635,7 @@ export default {
|
|
|
625
635
|
}
|
|
626
636
|
|
|
627
637
|
&--active {
|
|
628
|
-
bottom:
|
|
638
|
+
bottom: 0;
|
|
629
639
|
}
|
|
630
640
|
|
|
631
641
|
&__email {
|
|
@@ -646,15 +656,11 @@ export default {
|
|
|
646
656
|
|
|
647
657
|
.menu-mobile {
|
|
648
658
|
position: fixed;
|
|
649
|
-
right:
|
|
659
|
+
right: 0;
|
|
650
660
|
top: 0;
|
|
651
661
|
height: calc(100% - 64px);
|
|
652
662
|
width: 100%;
|
|
653
663
|
background: linear-gradient(0deg, rgba(189, 199, 206, 0.2), rgba(189, 199, 206, 0.2)), #FFFFFF;
|
|
654
|
-
transition: 0.4s ease;
|
|
655
|
-
&--show {
|
|
656
|
-
right: 0;
|
|
657
|
-
}
|
|
658
664
|
&__header {
|
|
659
665
|
display: flex;
|
|
660
666
|
justify-content: space-between;
|
|
@@ -764,4 +770,13 @@ export default {
|
|
|
764
770
|
display: block;
|
|
765
771
|
}
|
|
766
772
|
}
|
|
773
|
+
|
|
774
|
+
.menu-enter-active,
|
|
775
|
+
.menu-leave-active {
|
|
776
|
+
transition: right 0.3s ease;
|
|
777
|
+
}
|
|
778
|
+
.menu-enter,
|
|
779
|
+
.menu-leave-to {
|
|
780
|
+
right: -100% !important;
|
|
781
|
+
}
|
|
767
782
|
</style>
|