adata-ui 0.3.1 → 0.3.3
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 +71 -90
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.css +1 -1
- package/dist/adata-ui.umd.js +75 -94
- 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/Header/Header.vue +91 -13
- package/src/components/Header/Profile.vue +1 -1
- package/src/components/Header/ProfileMobile.vue +7 -1
- package/src/components/index.js +2 -6
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
@click="goToAnotherModule(main[mode])"
|
|
21
21
|
>
|
|
22
22
|
<svg
|
|
23
|
-
class="adata-logo"
|
|
23
|
+
class="adata-logo desktop"
|
|
24
24
|
xmlns="http://www.w3.org/2000/svg"
|
|
25
25
|
viewBox="0 0 166 48"
|
|
26
26
|
>
|
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
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"
|
|
32
32
|
></path>
|
|
33
33
|
</svg>
|
|
34
|
+
<svg class="adata-logo mobile" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
35
|
+
<path d="M11.3883 7.06335H11.3145C11.2829 7.43668 11.2054 7.80519 11.0836 8.16135L9.64099 12.44H13.0335L11.6098 8.20455C11.4947 7.83247 11.4204 7.45002 11.3883 7.06335Z" fill="#2C3E50"/>
|
|
36
|
+
<path d="M20.6552 0.200012H2.48111C1.8786 0.200012 1.30077 0.427581 0.874734 0.83266C0.448697 1.23774 0.209351 1.78714 0.209351 2.36001V19.64C0.209351 20.2129 0.448697 20.7623 0.874734 21.1674C1.30077 21.5724 1.8786 21.8 2.48111 21.8H20.6552C21.2577 21.8 21.8355 21.5724 22.2616 21.1674C22.6876 20.7623 22.9269 20.2129 22.9269 19.64V2.36001C22.9269 1.78714 22.6876 1.23774 22.2616 0.83266C21.8355 0.427581 21.2577 0.200012 20.6552 0.200012ZM14.6596 17.417L13.7131 14.6126H8.99916L8.06585 17.417H4.83427L9.65987 4.81702H13.2L17.9139 17.417H14.6596Z" fill="#2C3E50"/>
|
|
37
|
+
</svg>
|
|
34
38
|
</a>
|
|
35
39
|
<div class="menu" v-show="headerItems.length > 0">
|
|
36
40
|
<a
|
|
@@ -45,7 +49,22 @@
|
|
|
45
49
|
{{ item.name }}
|
|
46
50
|
</a>
|
|
47
51
|
</div>
|
|
48
|
-
<
|
|
52
|
+
<div v-show="hasSearchField" class="mobile-search">
|
|
53
|
+
<div @click="$emit('search')" class="search-input">
|
|
54
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
55
|
+
<path d="M14 13.9995L10.5967 10.596" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
56
|
+
<circle cx="7" cy="7" r="5" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
|
|
57
|
+
</svg>
|
|
58
|
+
Найти
|
|
59
|
+
</div>
|
|
60
|
+
<a v-show="hasFavourites" :href="favouriteUrl" target="_blank">
|
|
61
|
+
<div @click="$emit('')" class="favorite-btn">
|
|
62
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
63
|
+
<path d="M3 2.5V14.0057C3 14.4167 3.46826 14.6521 3.79816 14.4071L7.70184 11.5072C7.87886 11.3757 8.12114 11.3757 8.29816 11.5072L12.2018 14.4071C12.5317 14.6521 13 14.4167 13 14.0057V2.5C13 2.22386 12.7761 2 12.5 2H3.5C3.22386 2 3 2.22386 3 2.5Z" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
|
|
64
|
+
</svg>
|
|
65
|
+
</div>
|
|
66
|
+
</a>
|
|
67
|
+
</div>
|
|
49
68
|
</div>
|
|
50
69
|
<div class="header__right" v-show="!noAuth">
|
|
51
70
|
<Profile
|
|
@@ -430,16 +449,6 @@
|
|
|
430
449
|
<span>Выход</span>
|
|
431
450
|
</button>
|
|
432
451
|
</div>
|
|
433
|
-
<!-- <div class="menu-mobile__info-footer">-->
|
|
434
|
-
<!-- <div class="menu-mobile__info-footer-item" v-show="requestCount === 0 || requestCount">-->
|
|
435
|
-
<!-- <span class="menu-mobile__info-footer-title">Суточный лимит запросов:</span>-->
|
|
436
|
-
<!-- <span class="menu-mobile__info-footer-circle">{{ requestCount }}</span>-->
|
|
437
|
-
<!-- </div>-->
|
|
438
|
-
<!-- <div class="menu-mobile__info-footer-item" v-show="daysRemaining === 0 || daysRemaining">-->
|
|
439
|
-
<!-- <span class="menu-mobile__info-footer-title">Остаток дней:</span>-->
|
|
440
|
-
<!-- <span class="menu-mobile__info-footer-circle">{{ daysRemaining }}</span>-->
|
|
441
|
-
<!-- </div>-->
|
|
442
|
-
<!-- </div>-->
|
|
443
452
|
</div>
|
|
444
453
|
</div>
|
|
445
454
|
</div>
|
|
@@ -528,12 +537,21 @@ export default {
|
|
|
528
537
|
},
|
|
529
538
|
balance: {
|
|
530
539
|
type: Number,
|
|
531
|
-
default: 0
|
|
540
|
+
default: 0
|
|
532
541
|
},
|
|
542
|
+
hasFavourites: {
|
|
543
|
+
type: Boolean,
|
|
544
|
+
default: false
|
|
545
|
+
},
|
|
546
|
+
hasSearchField: {
|
|
547
|
+
type: Boolean,
|
|
548
|
+
default: false
|
|
549
|
+
}
|
|
533
550
|
},
|
|
534
551
|
data() {
|
|
535
552
|
return {
|
|
536
553
|
isActiveMenu: false,
|
|
554
|
+
favouriteUrl: "/profile/favorites",
|
|
537
555
|
main: {
|
|
538
556
|
dev: "https://adtdev.kz",
|
|
539
557
|
prod: "https://adata.kz",
|
|
@@ -724,6 +742,9 @@ export default {
|
|
|
724
742
|
display: flex;
|
|
725
743
|
justify-content: space-between;
|
|
726
744
|
align-items: center;
|
|
745
|
+
@media (max-width: 1025px) {
|
|
746
|
+
gap: 12px;
|
|
747
|
+
}
|
|
727
748
|
}
|
|
728
749
|
|
|
729
750
|
&__right {
|
|
@@ -734,6 +755,9 @@ export default {
|
|
|
734
755
|
&__left {
|
|
735
756
|
display: flex;
|
|
736
757
|
align-items: center;
|
|
758
|
+
@media (max-width: 1025px) {
|
|
759
|
+
width: 100%;
|
|
760
|
+
}
|
|
737
761
|
|
|
738
762
|
.menu {
|
|
739
763
|
display: flex;
|
|
@@ -784,6 +808,9 @@ export default {
|
|
|
784
808
|
.logo {
|
|
785
809
|
display: block;
|
|
786
810
|
margin-right: 20px;
|
|
811
|
+
@media (max-width: 1025px) {
|
|
812
|
+
margin-right: 10px;
|
|
813
|
+
}
|
|
787
814
|
|
|
788
815
|
svg {
|
|
789
816
|
width: 90px;
|
|
@@ -798,6 +825,18 @@ export default {
|
|
|
798
825
|
&:hover {
|
|
799
826
|
fill: #71757a;
|
|
800
827
|
}
|
|
828
|
+
&.desktop {
|
|
829
|
+
@media (max-width: 1025px) {
|
|
830
|
+
display: none;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
&.mobile {
|
|
834
|
+
display: none;
|
|
835
|
+
@media (max-width: 1025px) {
|
|
836
|
+
display: block;
|
|
837
|
+
width: auto;
|
|
838
|
+
}
|
|
839
|
+
}
|
|
801
840
|
}
|
|
802
841
|
}
|
|
803
842
|
}
|
|
@@ -1077,4 +1116,43 @@ export default {
|
|
|
1077
1116
|
}
|
|
1078
1117
|
}
|
|
1079
1118
|
|
|
1119
|
+
.mobile-search {
|
|
1120
|
+
display: none;
|
|
1121
|
+
height: 32px;
|
|
1122
|
+
max-height: 32px;
|
|
1123
|
+
@media (max-width: 1025px) {
|
|
1124
|
+
display: flex;
|
|
1125
|
+
align-items: center;
|
|
1126
|
+
gap: 8px;
|
|
1127
|
+
width: 100%;
|
|
1128
|
+
}
|
|
1129
|
+
.search-input {
|
|
1130
|
+
display: flex;
|
|
1131
|
+
align-items: center;
|
|
1132
|
+
gap: 8px;
|
|
1133
|
+
background: rgba(189, 199, 206, 0.2);
|
|
1134
|
+
height: 100%;
|
|
1135
|
+
border-radius: 2px;
|
|
1136
|
+
width: 100%;
|
|
1137
|
+
padding: 0 14px;
|
|
1138
|
+
font-weight: 500;
|
|
1139
|
+
font-size: 12px;
|
|
1140
|
+
line-height: 20px;
|
|
1141
|
+
cursor: pointer;
|
|
1142
|
+
}
|
|
1143
|
+
.favorite-btn {
|
|
1144
|
+
background: rgba(189, 199, 206, 0.2);
|
|
1145
|
+
display: flex;
|
|
1146
|
+
justify-content: center;
|
|
1147
|
+
align-items: center;
|
|
1148
|
+
padding: 10px;
|
|
1149
|
+
height: 100%;
|
|
1150
|
+
border-radius: 2px;
|
|
1151
|
+
cursor: pointer;
|
|
1152
|
+
svg {
|
|
1153
|
+
width: 16px;
|
|
1154
|
+
height: 16px;
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1080
1158
|
</style>
|
|
@@ -55,7 +55,13 @@
|
|
|
55
55
|
</div>
|
|
56
56
|
<SlideToggle>
|
|
57
57
|
<div v-show="item.opened" class="mobile-table-item__children">
|
|
58
|
-
<a
|
|
58
|
+
<a
|
|
59
|
+
v-for="(elem, id) in item.children" :key="'elem' + id"
|
|
60
|
+
:href="elem[mode]"
|
|
61
|
+
:target="elem.name === 'Избранные' ? '_blank' : '_self'"
|
|
62
|
+
>
|
|
63
|
+
{{ elem.name }}
|
|
64
|
+
</a>
|
|
59
65
|
</div>
|
|
60
66
|
</SlideToggle>
|
|
61
67
|
</div>
|
package/src/components/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import Vue from "vue";
|
|
2
1
|
import ACheckbox from "./Checkbox/ACheckbox";
|
|
3
2
|
import ACheckboxMenu from "./CheckboxMenu/CheckboxMenu";
|
|
4
3
|
import AButton from "./Button/AButton";
|
|
@@ -18,7 +17,7 @@ import AInternalServerError from "./ErrorPages/InternalServerError";
|
|
|
18
17
|
import ANotFound from "./ErrorPages/NotFound";
|
|
19
18
|
import AUnavailable from "./ErrorPages/Unavailable";
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
export default {
|
|
22
21
|
ACheckbox,
|
|
23
22
|
AButton,
|
|
24
23
|
ATextField,
|
|
@@ -39,8 +38,5 @@ const Components = {
|
|
|
39
38
|
AUnavailable,
|
|
40
39
|
};
|
|
41
40
|
|
|
42
|
-
Object.keys(Components).forEach((name) => {
|
|
43
|
-
Vue.component(name, Components[name]);
|
|
44
|
-
});
|
|
45
41
|
|
|
46
|
-
|
|
42
|
+
|