adata-ui 0.1.52 → 0.1.55

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.
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="info">
3
3
  <transition name="fade">
4
- <div class="info-notification" v-if="showNotification">
4
+ <div class="info-notification" v-if="isOpenNotification">
5
5
  <div class="container">
6
6
  <div class="info-notification__wrapper">
7
7
  <div class="info-notification__content">
@@ -21,87 +21,124 @@
21
21
  </div>
22
22
  </div>
23
23
  </transition>
24
- <div class="info-header" v-if="!showNotification">
24
+ <div class="info-header" v-if="!isOpenNotification">
25
25
  <div class="container">
26
26
  <div class="info-header__list">
27
27
  <div class="info-header__item">
28
- <div class="info-header__item-elem first-elem">
29
- <svg id="rate" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
30
- <rect x="2" y="4" width="12" height="7.50184" stroke="#2C3E50" stroke-linejoin="round"/>
31
- <path d="M7 5.99902H9" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
32
- <path d="M7 7.50586H9" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
33
- <path d="M8 9.99902L8 7.50563" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
34
- </svg>
35
- <p>Курс валют</p>
36
- </div>
37
- <div class="info-header__item-elem">
38
- <div class="info-header__inner-item">
39
- <svg id="dollar" width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg">
40
- <path d="M5.59863 9.40234C5.59863 9.01497 5.47559 8.69596 5.22949 8.44531C4.9834 8.1901 4.57324 7.96224 3.99902 7.76172C3.4248 7.55664 2.97819 7.36751 2.65918 7.19434C1.59733 6.62467 1.06641 5.78158 1.06641 4.66504C1.06641 3.90853 1.29655 3.28646 1.75684 2.79883C2.21712 2.3112 2.84147 2.02181 3.62988 1.93066V0.44043H4.72363V1.94434C5.5166 2.05827 6.12956 2.39551 6.5625 2.95605C6.99544 3.51204 7.21191 4.23665 7.21191 5.12988H5.55762C5.55762 4.55566 5.42773 4.10449 5.16797 3.77637C4.91276 3.44368 4.56413 3.27734 4.12207 3.27734C3.68457 3.27734 3.34277 3.39583 3.09668 3.63281C2.85059 3.86979 2.72754 4.20931 2.72754 4.65137C2.72754 5.04785 2.84831 5.36686 3.08984 5.6084C3.33594 5.84538 3.75065 6.07096 4.33398 6.28516C4.91732 6.49935 5.37533 6.69759 5.70801 6.87988C6.04069 7.06217 6.32096 7.27181 6.54883 7.50879C6.77669 7.74121 6.95215 8.01009 7.0752 8.31543C7.19824 8.62077 7.25977 8.97852 7.25977 9.38867C7.25977 10.1589 7.02279 10.7832 6.54883 11.2617C6.07943 11.7402 5.42318 12.0228 4.58008 12.1094V13.4424H3.49316V12.1162C2.59082 12.016 1.89583 11.6924 1.4082 11.1455C0.92513 10.5986 0.683594 9.87402 0.683594 8.97168H2.34473C2.34473 9.5459 2.48828 9.99023 2.77539 10.3047C3.06706 10.6191 3.47721 10.7764 4.00586 10.7764C4.52539 10.7764 4.9196 10.651 5.18848 10.4004C5.46191 10.1497 5.59863 9.81706 5.59863 9.40234Z" fill="#2C3E50"/>
28
+ <template v-if="currencies" >
29
+ <div v-for="(currency, index) in currencies" :key="index" class="info-header__item-elem">
30
+ <svg v-if="currency.currency === 'USD'" width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
31
+ <g clip-path="url(#clip0_179_1917)">
32
+ <path d="M26.4 0.5H-4V16.5H26.4V0.5Z" fill="white"/>
33
+ <path d="M26.4 0.5H-4V1.732H26.4V0.5Z" fill="#B22234"/>
34
+ <path d="M26.4 2.95996H-4V4.19196H26.4V2.95996Z" fill="#B22234"/>
35
+ <path d="M26.4 5.42407H-4V6.65607H26.4V5.42407Z" fill="#B22234"/>
36
+ <path d="M26.4 7.88403H-4V9.11603H26.4V7.88403Z" fill="#B22234"/>
37
+ <path d="M26.4 10.3479H-4V11.5799H26.4V10.3479Z" fill="#B22234"/>
38
+ <path d="M26.4 12.8081H-4V14.0401H26.4V12.8081Z" fill="#B22234"/>
39
+ <path d="M26.4 15.2681H-4V16.5001H26.4V15.2681Z" fill="#B22234"/>
40
+ <path d="M8.16 0.5H-4V9.116H8.16V0.5Z" fill="#3C3B6E"/>
41
+ <path d="M0.603882 1.20011L0.891882 1.40811L0.783882 1.75211L1.07188 1.54011L1.35988 1.75211L1.25188 1.40811L1.53988 1.20011H1.18388L1.07188 0.860107L0.959882 1.20011H0.603882Z" fill="white"/>
42
+ <path d="M2.61987 1.20011L2.90787 1.40811L2.79987 1.75211L3.08787 1.54011L3.37587 1.75211L3.26787 1.40811L3.55587 1.20011H3.19987L3.08787 0.860107L2.97587 1.20011H2.61987Z" fill="white"/>
43
+ <path d="M4.63599 1.20011L4.92399 1.40811L4.81599 1.75211L5.10399 1.54011L5.39199 1.75211L5.28399 1.40811L5.57199 1.20011H5.21599L5.10399 0.860107L4.99199 1.20011H4.63599Z" fill="white"/>
44
+ <path d="M6.65198 1.20011L6.93998 1.40811L6.83198 1.75211L7.11998 1.54011L7.40798 1.75211L7.29998 1.40811L7.58798 1.20011H7.23198L7.11998 0.860107L7.00798 1.20011H6.65198Z" fill="white"/>
45
+ <path d="M-0.403931 2.06412L-0.115931 2.27212L-0.223931 2.61612L0.0640694 2.40412L0.352069 2.61612L0.244069 2.27212L0.532069 2.06412H0.176069L0.0640694 1.72412L-0.0479305 2.06412H-0.403931Z" fill="white"/>
46
+ <path d="M1.61206 2.06412L1.90006 2.27212L1.79206 2.61612L2.08006 2.40412L2.36806 2.61612L2.26006 2.27212L2.54806 2.06412H2.19206L2.08006 1.72412L1.96806 2.06412H1.61206Z" fill="white"/>
47
+ <path d="M3.62817 2.06412L3.91617 2.27212L3.80817 2.61612L4.09617 2.40412L4.38417 2.61612L4.27617 2.27212L4.56417 2.06412H4.20817L4.09617 1.72412L3.98417 2.06412H3.62817Z" fill="white"/>
48
+ <path d="M5.64417 2.06412L5.93216 2.27212L5.82416 2.61612L6.11216 2.40412L6.40016 2.61612L6.29216 2.27212L6.58016 2.06412H6.22416L6.11216 1.72412L6.00016 2.06412H5.64417Z" fill="white"/>
49
+ <path d="M0.603882 2.92789L0.891882 3.13589L0.783882 3.47989L1.07188 3.26789L1.35988 3.47989L1.25188 3.13589L1.53988 2.92789H1.18388L1.07188 2.58789L0.959882 2.92789H0.603882Z" fill="white"/>
50
+ <path d="M2.61987 2.92789L2.90787 3.13589L2.79987 3.47989L3.08787 3.26789L3.37587 3.47989L3.26787 3.13589L3.55587 2.92789H3.19987L3.08787 2.58789L2.97587 2.92789H2.61987Z" fill="white"/>
51
+ <path d="M4.63599 2.92789L4.92399 3.13589L4.81599 3.47989L5.10399 3.26789L5.39199 3.47989L5.28399 3.13589L5.57199 2.92789H5.21599L5.10399 2.58789L4.99199 2.92789H4.63599Z" fill="white"/>
52
+ <path d="M6.65198 2.92789L6.93998 3.13589L6.83198 3.47989L7.11998 3.26789L7.40798 3.47989L7.29998 3.13589L7.58798 2.92789H7.23198L7.11998 2.58789L7.00798 2.92789H6.65198Z" fill="white"/>
53
+ <path d="M-0.380127 3.7959L-0.0881271 4.0039L-0.200127 4.3439L0.0878731 4.1359L0.379873 4.3439L0.267873 4.0039L0.555873 3.7959H0.199873L0.0878731 3.4519L-0.0201271 3.7959H-0.380127Z" fill="white"/>
54
+ <path d="M1.63599 3.7959L1.92399 4.0039L1.81599 4.3439L2.10399 4.1359L2.39599 4.3439L2.28399 4.0039L2.57199 3.7959H2.21599L2.10399 3.4519L1.99599 3.7959H1.63599Z" fill="white"/>
55
+ <path d="M3.65198 3.7959L3.94398 4.0039L3.83198 4.3439L4.11998 4.1359L4.41198 4.3439L4.29998 4.0039L4.58798 3.7959H4.23198L4.11998 3.4519L4.01198 3.7959H3.65198Z" fill="white"/>
56
+ <path d="M5.66797 3.7959L5.95597 4.0039L5.84797 4.3439L6.13597 4.1359L6.42797 4.3439L6.31597 4.0039L6.60397 3.7959H6.24797L6.13597 3.4519L6.02797 3.7959H5.66797Z" fill="white"/>
57
+ <path d="M0.635986 4.65201L0.923986 4.86001L0.811986 5.20401L1.10399 4.99201L1.39199 5.20401L1.27999 4.86001L1.57199 4.65201H1.21199L1.10399 4.31201L0.991986 4.65201H0.635986Z" fill="white"/>
58
+ <path d="M2.65198 4.65201L2.93998 4.86001L2.82798 5.20401L3.11998 4.99201L3.40798 5.20401L3.29598 4.86001L3.58798 4.65201H3.22798L3.11998 4.31201L3.00798 4.65201H2.65198Z" fill="white"/>
59
+ <path d="M4.66406 4.65201L4.95606 4.86001L4.84406 5.20401L5.13606 4.99201L5.42406 5.20401L5.31206 4.86001L5.60406 4.65201H5.24406L5.13606 4.31201L5.02406 4.65201H4.66406Z" fill="white"/>
60
+ <path d="M6.40002 4.84L6.69202 5.048L6.58002 5.392L6.87202 5.18L7.16002 5.392L7.04802 5.048L7.34002 4.84H6.98002L6.87202 4.5L6.76002 4.84H6.40002Z" fill="white"/>
61
+ <path d="M0.651978 6.35196L0.943977 6.55996L0.831978 6.90396L1.11998 6.69196L1.41198 6.90396L1.29998 6.55996L1.58798 6.35196H1.23198L1.11998 6.01196L1.01198 6.35196H0.651978Z" fill="white"/>
62
+ <path d="M2.66797 6.35196L2.95997 6.55996L2.84797 6.90396L3.13597 6.69196L3.42797 6.90396L3.31597 6.55996L3.60797 6.35196H3.24797L3.13597 6.01196L3.02797 6.35196H2.66797Z" fill="white"/>
63
+ <path d="M4.68396 6.35196L4.97596 6.55996L4.86396 6.90396L5.15196 6.69196L5.44396 6.90396L5.33196 6.55996L5.61996 6.35196H5.26396L5.15196 6.01196L5.04396 6.35196H4.68396Z" fill="white"/>
64
+ <path d="M6.69995 6.35196L6.99195 6.55996L6.87995 6.90396L7.16795 6.69196L7.45995 6.90396L7.34795 6.55996L7.63595 6.35196H7.27995L7.16795 6.01196L7.05995 6.35196H6.69995Z" fill="white"/>
65
+ <path d="M0.628174 8.07193L0.916174 8.28393L0.808174 8.62393L1.09617 8.41193L1.38817 8.62393L1.27617 8.28393L1.56417 8.07193H1.20817L1.09617 7.73193L0.988174 8.07193H0.628174Z" fill="white"/>
66
+ <path d="M2.64417 8.07193L2.93616 8.28393L2.82416 8.62393L3.11216 8.41193L3.40416 8.62393L3.29216 8.28393L3.58016 8.07193H3.22416L3.11216 7.73193L3.00416 8.07193H2.64417Z" fill="white"/>
67
+ <path d="M4.66016 8.07193L4.95216 8.28393L4.84016 8.62393L5.12816 8.41193L5.42016 8.62393L5.30816 8.28393L5.59616 8.07193H5.24016L5.12816 7.73193L5.02016 8.07193H4.66016Z" fill="white"/>
68
+ <path d="M6.67615 8.07193L6.96415 8.28393L6.85615 8.62393L7.14415 8.41193L7.43615 8.62393L7.32415 8.28393L7.61215 8.07193H7.25615L7.14415 7.73193L7.03615 8.07193H6.67615Z" fill="white"/>
69
+ <path d="M-0.376221 5.4921L-0.0842209 5.7041L-0.196221 6.0441L0.095779 5.8321L0.383779 6.0441L0.275779 5.7041L0.563779 5.4921H0.203779L0.095779 5.1521L-0.0162209 5.4921H-0.376221Z" fill="white"/>
70
+ <path d="M1.64417 5.4921L1.93217 5.7041L1.82017 6.0441L2.11217 5.8321L2.40017 6.0441L2.28817 5.7041L2.58017 5.4921H2.22017L2.11217 5.1521L2.00017 5.4921H1.64417Z" fill="white"/>
71
+ <path d="M3.65588 5.4921L3.94788 5.7041L3.83588 6.0441L4.12788 5.8321L4.41588 6.0441L4.30788 5.7041L4.59588 5.4921H4.23588L4.12788 5.1521L4.01588 5.4921H3.65588Z" fill="white"/>
72
+ <path d="M5.67188 5.4921L5.96387 5.7041L5.85187 6.0441L6.14387 5.8321L6.43187 6.0441L6.31987 5.7041L6.61187 5.4921H6.25187L6.14387 5.1521L6.03187 5.4921H5.67188Z" fill="white"/>
73
+ <path d="M-0.380127 7.21207L-0.0881271 7.42007L-0.200127 7.76007L0.0878731 7.55207L0.379873 7.76007L0.267873 7.42007L0.555873 7.21207H0.199873L0.0878731 6.87207L-0.0201271 7.21207H-0.380127Z" fill="white"/>
74
+ <path d="M1.63599 7.21207L1.92399 7.42007L1.81599 7.76007L2.10399 7.55207L2.39599 7.76007L2.28399 7.42007L2.57199 7.21207H2.21599L2.10399 6.87207L1.99599 7.21207H1.63599Z" fill="white"/>
75
+ <path d="M3.65198 7.21207L3.94398 7.42007L3.83198 7.76007L4.11998 7.55207L4.41198 7.76007L4.29998 7.42007L4.58798 7.21207H4.23198L4.11998 6.87207L4.01198 7.21207H3.65198Z" fill="white"/>
76
+ <path d="M5.66797 7.21207L5.95597 7.42007L5.84797 7.76007L6.13597 7.55207L6.42797 7.76007L6.31597 7.42007L6.60397 7.21207H6.24797L6.13597 6.87207L6.02797 7.21207H5.66797Z" fill="white"/>
77
+ </g>
78
+ <defs>
79
+ <clipPath id="clip0_179_1917">
80
+ <path d="M0 2.5C0 1.39543 0.895431 0.5 2 0.5H14C15.1046 0.5 16 1.39543 16 2.5V14.5C16 15.6046 15.1046 16.5 14 16.5H2C0.895431 16.5 0 15.6046 0 14.5V2.5Z" fill="white"/>
81
+ </clipPath>
82
+ </defs>
41
83
  </svg>
42
- <p v-if="currency">{{ currency.sell }}</p>
43
- <!-- <svg id="arrow-up" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">-->
44
- <!-- <path d="M3 9.5L8 6L13 9.5" stroke="#00B92D" stroke-linecap="round" stroke-linejoin="round"/>-->
45
- <!-- </svg>-->
46
- </div>
47
- <div class="info-header__inner-item">
48
- <svg id="dollar" width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg">
49
- <path d="M5.59863 9.40234C5.59863 9.01497 5.47559 8.69596 5.22949 8.44531C4.9834 8.1901 4.57324 7.96224 3.99902 7.76172C3.4248 7.55664 2.97819 7.36751 2.65918 7.19434C1.59733 6.62467 1.06641 5.78158 1.06641 4.66504C1.06641 3.90853 1.29655 3.28646 1.75684 2.79883C2.21712 2.3112 2.84147 2.02181 3.62988 1.93066V0.44043H4.72363V1.94434C5.5166 2.05827 6.12956 2.39551 6.5625 2.95605C6.99544 3.51204 7.21191 4.23665 7.21191 5.12988H5.55762C5.55762 4.55566 5.42773 4.10449 5.16797 3.77637C4.91276 3.44368 4.56413 3.27734 4.12207 3.27734C3.68457 3.27734 3.34277 3.39583 3.09668 3.63281C2.85059 3.86979 2.72754 4.20931 2.72754 4.65137C2.72754 5.04785 2.84831 5.36686 3.08984 5.6084C3.33594 5.84538 3.75065 6.07096 4.33398 6.28516C4.91732 6.49935 5.37533 6.69759 5.70801 6.87988C6.04069 7.06217 6.32096 7.27181 6.54883 7.50879C6.77669 7.74121 6.95215 8.01009 7.0752 8.31543C7.19824 8.62077 7.25977 8.97852 7.25977 9.38867C7.25977 10.1589 7.02279 10.7832 6.54883 11.2617C6.07943 11.7402 5.42318 12.0228 4.58008 12.1094V13.4424H3.49316V12.1162C2.59082 12.016 1.89583 11.6924 1.4082 11.1455C0.92513 10.5986 0.683594 9.87402 0.683594 8.97168H2.34473C2.34473 9.5459 2.48828 9.99023 2.77539 10.3047C3.06706 10.6191 3.47721 10.7764 4.00586 10.7764C4.52539 10.7764 4.9196 10.651 5.18848 10.4004C5.46191 10.1497 5.59863 9.81706 5.59863 9.40234Z" fill="#2C3E50"/>
84
+ <svg v-if="currency.currency === 'EUR'" width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
85
+ <path d="M0 2.5C0 1.39543 0.895431 0.5 2 0.5H14C15.1046 0.5 16 1.39543 16 2.5V14.5C16 15.6046 15.1046 16.5 14 16.5H2C0.895431 16.5 0 15.6046 0 14.5V2.5Z" fill="#314199"/>
86
+ <path d="M7.99479 12.5967L8.18355 13.1573L8.75857 13.1568L8.35044 13.4667L8.46265 14.0686L7.99479 13.7271L7.52542 14.0594L7.639 13.4667L7.23511 13.1549H7.80958L7.99479 12.5967Z" fill="#F8EC26"/>
87
+ <path d="M7.99479 2.85718L8.18355 3.41796L8.75857 3.41727L8.35044 3.72735L8.46265 4.32913L7.99479 3.98765L7.52542 4.31994L7.639 3.72735L7.23511 3.41535H7.80958L7.99479 2.85718Z" fill="#F8EC26"/>
88
+ <path d="M10.333 3.48364L10.5218 4.04428L11.097 4.04373L10.6888 4.35368L10.8009 4.95546L10.333 4.61411L9.86366 4.94641L9.97739 4.35368L9.57349 4.04181H10.148L10.333 3.48364Z" fill="#F8EC26"/>
89
+ <path d="M5.54397 3.48364L5.73273 4.04428L6.3079 4.04373L5.89976 4.35368L6.01184 4.95546L5.54397 4.61411L5.0746 4.94641L5.18832 4.35368L4.78442 4.04181H5.35877L5.54397 3.48364Z" fill="#F8EC26"/>
90
+ <path d="M10.333 11.9387L10.5218 12.4995L11.097 12.4989L10.6888 12.8089L10.8009 13.4107L10.333 13.0693L9.86366 13.4016L9.97739 12.8089L9.57349 12.4969H10.148L10.333 11.9387Z" fill="#F8EC26"/>
91
+ <path d="M5.54397 11.9387L5.73273 12.4995L6.3079 12.4989L5.89976 12.8089L6.01184 13.4107L5.54397 13.0693L5.0746 13.4016L5.18832 12.8089L4.78442 12.4969H5.35877L5.54397 11.9387Z" fill="#F8EC26"/>
92
+ <path d="M3.75309 5.32153L3.94185 5.88231L4.51688 5.88162L4.10888 6.1917L4.22082 6.79349L3.75309 6.45214L3.28372 6.7843L3.39731 6.1917L2.99341 5.8797H3.56789L3.75309 5.32153Z" fill="#F8EC26"/>
93
+ <path d="M12.1823 5.32153L12.3711 5.88231L12.9462 5.88162L12.5381 6.1917L12.6502 6.79349L12.1823 6.45214L11.7129 6.7843L11.8265 6.1917L11.4226 5.8797H11.9971L12.1823 5.32153Z" fill="#F8EC26"/>
94
+ <path d="M3.75309 10.1826L3.94185 10.7434L4.51688 10.7427L4.10888 11.0528L4.22082 11.6546L3.75309 11.3131L3.28372 11.6454L3.39731 11.0528L2.99341 10.7408H3.56789L3.75309 10.1826Z" fill="#F8EC26"/>
95
+ <path d="M12.1823 10.1826L12.3711 10.7434L12.9462 10.7427L12.5381 11.0528L12.6502 11.6546L12.1823 11.3131L11.7129 11.6454L11.8265 11.0528L11.4226 10.7408H11.9971L12.1823 10.1826Z" fill="#F8EC26"/>
96
+ <path d="M3.19682 7.73389L3.38558 8.29466L3.96074 8.29398L3.55261 8.60406L3.66469 9.20584L3.19682 8.86436L2.72745 9.19665L2.84103 8.60406L2.43713 8.29206H3.01161L3.19682 7.73389Z" fill="#F8EC26"/>
97
+ <path d="M12.799 7.73389L12.9877 8.29466L13.5629 8.29398L13.1548 8.60406L13.2668 9.20584L12.799 8.86436L12.3296 9.19665L12.4433 8.60406L12.0394 8.29206H12.6138L12.799 7.73389Z" fill="#F8EC26"/>
50
98
  </svg>
51
- <p v-if="currency">{{ currency.buy }}</p>
99
+ <svg v-if="currency.currency === 'RUB'" width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
100
+ <g clip-path="url(#clip0_179_2012)">
101
+ <path d="M0 0.5C0 -0.60457 0.895431 -1.5 2 -1.5H18C19.1046 -1.5 20 -0.604569 20 0.5V5.5H0V0.5Z" fill="#F0F0F0"/>
102
+ <rect y="5.5" width="20" height="7" fill="#0039A6"/>
103
+ <path d="M0 11.5H20V16.5C20 17.6046 19.1046 18.5 18 18.5H2C0.895431 18.5 0 17.6046 0 16.5V11.5Z" fill="#D52B1E"/>
104
+ </g>
105
+ <defs>
106
+ <clipPath id="clip0_179_2012">
107
+ <rect y="0.5" width="16" height="16" rx="2" fill="white"/>
108
+ </clipPath>
109
+ </defs>
110
+ </svg>
111
+ <div class="info-header__inner-item">
112
+ <span class="info-header__result">{{ currency.sell }}</span>
113
+ <svg v-if="currency.sell_state === 'DOWN'" width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
114
+ <path d="M8 12.5249L12.3301 4.52507H3.66987L8 12.5249Z" fill="#FF2E43"/>
115
+ </svg>
116
+ <svg v-else width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
117
+ <path d="M8 4.47461L12.3301 12.4702H3.66987L8 4.47461Z" fill="#00B92D"/>
118
+ </svg>
119
+ </div>
120
+ <div class="info-header__inner-item">
121
+ <span class="info-header__result">{{ currency.buy }}</span>
122
+ <svg v-if="currency.buy_state === 'DOWN'" width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
123
+ <path d="M8 12.5249L12.3301 4.52507H3.66987L8 12.5249Z" fill="#FF2E43"/>
124
+ </svg>
125
+ <svg v-else width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
126
+ <path d="M8 4.47461L12.3301 12.4702H3.66987L8 4.47461Z" fill="#00B92D"/>
127
+ </svg>
128
+ </div>
52
129
  </div>
53
- <!-- <div class="info-header&#45;&#45;inner-item">-->
54
- <!-- <svg id="ruble" width="10" height="14" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">-->
55
- <!-- <path d="M5.49869 7.85079H3.66439V9.16671H2.22884V7.85079H1.06104V6.69437H2.22884V6.08484H1.06104V4.92842H2.22884V0.872437H5.40185C6.31711 0.872437 7.04818 1.11169 7.59505 1.59021C8.14193 2.06492 8.41536 2.69725 8.41536 3.48718C8.41536 4.29231 8.15522 4.92463 7.63493 5.38416C7.11464 5.83988 6.39117 6.07345 5.46452 6.08484H3.66439V6.69437H5.49869V7.85079ZM3.66439 4.92842H5.37907C5.89556 4.92842 6.29053 4.8088 6.56396 4.56954C6.8374 4.33028 6.97412 3.97329 6.97412 3.49857C6.97412 3.07323 6.8393 2.72573 6.56966 2.4561C6.30382 2.18646 5.93544 2.04594 5.46452 2.03455H3.66439V4.92842Z" fill="#2C3E50"/>-->
56
- <!-- </svg>-->
57
- <!-- <p>5.92</p>-->
58
- <!-- <svg id="arrow-down" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">-->
59
- <!-- <path d="M3 6.5L8 10L13 6.5" stroke="#FF2E43" stroke-linecap="round" stroke-linejoin="round"/>-->
60
- <!-- </svg>-->
61
- <!-- </div>-->
62
- </div>
130
+ </template>
63
131
  </div>
64
- <!-- <div class="info-header__item">-->
65
- <!-- <div class="info-header__item-elem first-elem">-->
66
- <!-- <svg id="sun" width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">-->
67
- <!-- <path d="M8.99995 12.7777C11.0864 12.7777 12.7777 11.0864 12.7777 8.99995C12.7777 6.91354 11.0864 5.22217 8.99995 5.22217C6.91354 5.22217 5.22217 6.91354 5.22217 8.99995C5.22217 11.0864 6.91354 12.7777 8.99995 12.7777Z" stroke="#2C3E50" stroke-miterlimit="10"/>-->
68
- <!-- <path d="M9 1V3.22222" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
69
- <!-- <path d="M9 14.7778V17.0001" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
70
- <!-- <path d="M17.0001 9H14.7778" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
71
- <!-- <path d="M3.22222 9H1" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
72
- <!-- <path d="M14.6669 3.33337L13.1113 4.88893" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
73
- <!-- <path d="M4.88905 13.1111L3.3335 14.6666" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
74
- <!-- <path d="M14.6669 14.6666L13.1113 13.1111" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
75
- <!-- <path d="M4.88905 4.88893L3.3335 3.33337" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
76
- <!-- </svg>-->
77
- <!-- <p>Погода</p>-->
78
- <!-- </div>-->
79
- <!-- <div class="info-header__item-elem">-->
80
- <!-- <div class="info-header&#45;&#45;inner-item weather">-->
81
- <!-- <span>Алматы </span>-->
82
- <!-- <p>+29 С</p>-->
83
- <!-- </div>-->
84
- <!-- <div class="info-header&#45;&#45;inner-item weather">-->
85
- <!-- <span>Нур-Султан </span>-->
86
- <!-- <p>+29 С</p>-->
87
- <!-- </div>-->
88
- <!-- </div>-->
89
- <!-- </div>-->
90
- <div v-if="isAuthenticated" class="info-header__item last-header-item">
132
+ <div v-if="isAuthenticated" class="info-header__item">
91
133
  <div class="info-header__item-elem">
92
- <svg id="clock" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
93
- <path d="M6.93821 13.2567C10.4279 13.2567 13.2568 10.4277 13.2568 6.93809C13.2568 3.44843 10.4279 0.619507 6.93821 0.619507C3.44855 0.619507 0.619629 3.44843 0.619629 6.93809C0.619629 10.4277 3.44855 13.2567 6.93821 13.2567Z" stroke="#2C3E50" stroke-miterlimit="100"/>
94
- <path d="M6.93799 3.46899V6.93802L11.1504 9.292" stroke="#2C3E50" stroke-miterlimit="100" stroke-linecap="round"/>
95
- </svg>
96
134
  <div class="info-header__inner-item">
97
- <p>Cуточный лимит запросов:
98
- <span>{{ requestCount }}</span>
99
- </p>
135
+ <span class="info-header__title">Cуточный лимит запросов:</span>
136
+ <span class="info-header__result info-header__result_circled">{{ requestCount }}</span>
100
137
  </div>
138
+ <div class="divider"></div>
101
139
  <div class="info-header__inner-item">
102
- <p>остаток дней:
103
- <span>{{ daysRemaining }}</span>
104
- </p>
140
+ <span class="info-header__title">остаток дней:</span>
141
+ <span class="info-header__result info-header__result_circled">{{ daysRemaining }}</span>
105
142
  </div>
106
143
  </div>
107
144
  </div>
@@ -128,80 +165,36 @@ export default {
128
165
  type: Boolean,
129
166
  default: false
130
167
  },
131
- },
132
- data() {
133
- return {
134
- showNotification: false,
135
- systemMessage: null,
136
- currency: null,
137
- timer: null,
138
- }
139
- },
140
- created() {
141
- this.fetchCurrency();
142
- },
143
- mounted() {
144
- this.timer = setTimeout(this.fetchNotification, 3000);
145
- },
146
- watch: {
147
- showNotification() {
148
- if(!this.showNotification) {
149
- clearTimeout(this.timer);
150
- }
151
- }
152
- },
153
- methods: {
154
- async fetchNotification() {
155
- try {
156
- const response = await fetch('https://users.adtdev.kz/api/v1/system-messages/active-list/?module_name=counterparty');
157
- const { data } = await response.json();
158
-
159
- if (data.details.length) {
160
- this.systemMessage = data.details[0].message;
161
- this.showNotification = true;
162
- }
163
-
164
- } catch(e) {
165
- console.log(e.message)
166
- }
168
+ isOpenNotification: {
169
+ type: Boolean,
170
+ default: false
167
171
  },
168
- async fetchCurrency() {
169
- try {
170
- const response = await fetch('https://users.adtdev.kz/api/v1/information/currency');
171
- const { data } = await response.json();
172
-
173
- if(data.USD) {
174
- this.currency = data.USD;
175
- }
176
-
177
- } catch(e) {
178
- console.log(e.message)
179
- }
172
+ weather: {
173
+ type: Array,
174
+ default: () => []
180
175
  },
181
- async fetchWeather() {
182
- try {
183
- const response = await fetch('https://users.adtdev.kz/api/v1/information/weather');
184
- const result = await response.json();
185
-
186
- if(result) {
187
- console.log(result);
188
- }
189
-
190
- } catch(e) {
191
- console.log(e.message)
192
- }
176
+ currencies: {
177
+ type: Array,
178
+ default: () => []
193
179
  },
194
- closeNotification() {
195
- this.showNotification = !this.showNotification
180
+ systemMessage:{
181
+ type: String,
182
+ default: ''
196
183
  },
197
184
  },
185
+ methods: {
186
+ closeNotification() {
187
+ this.$emit("closeNotification", this.isOpenNotification)
188
+ }
189
+ }
190
+
198
191
  }
199
192
  </script>
200
193
 
201
194
  <style scoped lang="scss">
202
195
  .info {
203
196
  position: relative;
204
- @media (min-width: 850px) {
197
+ @media (min-width: 1025px) {
205
198
  height: 30px;
206
199
  }
207
200
  &-notification {
@@ -213,7 +206,7 @@ export default {
213
206
  background: #007AFF;
214
207
  padding: 7px 0;
215
208
  font-size: 14px;
216
- @media(max-width: 850px) {
209
+ @media(max-width: 1025px) {
217
210
  position: relative;
218
211
  height: 30px;
219
212
  }
@@ -237,9 +230,27 @@ export default {
237
230
  background: #FFFFFF;
238
231
  padding: 7px 0;
239
232
  border-bottom: 0.5px solid rgba(189, 199, 206, 0.5);
240
- @media (max-width: 850px) {
233
+ @media (max-width: 1025px) {
241
234
  display: none;
242
235
  }
236
+ &__title {
237
+ font-weight: 500;
238
+ font-size: 12px;
239
+ line-height: 14px;
240
+ color: #2C3E50;
241
+ }
242
+ &__result {
243
+ font-weight: 400;
244
+ font-size: 12px;
245
+ line-height: 14px;
246
+ color: #2C3E50;
247
+ &_circled {
248
+ color: #ffffff;
249
+ padding: 4px 12px;
250
+ background: #007AFF;
251
+ border-radius: 100px;
252
+ }
253
+ }
243
254
  &__list {
244
255
  display: flex;
245
256
  justify-content: space-between;
@@ -248,50 +259,32 @@ export default {
248
259
  &__item {
249
260
  display: flex;
250
261
  align-items: center;
251
- gap: 15px;
262
+ gap: 20px;
252
263
  &-elem {
253
264
  display: flex;
254
265
  align-items: center;
255
- }
256
- .first-elem {
257
- font-weight: 700;
258
- font-size: 10px;
259
- gap: 5px;
266
+ gap: 8px;
260
267
  }
261
268
  }
262
269
  &__inner-item {
263
270
  display: flex;
264
271
  align-items: center;
265
272
  font-size: 12px;
266
- &:after {
267
- content: "";
268
- background: #2C3E50;
269
- width: 1px;
270
- height: 10px;
271
- margin: 0 10px;
272
- transform: rotate(20deg);
273
- }
274
- &:last-child:after {
275
- content: none;
276
- }
277
- &.weather {
278
- span {
279
- font-weight: 600;
280
- font-size: 10px;
281
- padding-right: 3px;
282
- }
283
- }
284
273
  }
285
274
  .last-header-item {
286
275
  .info-header__inner-item:nth-child(2) {
287
276
  margin-left: 5px;
288
277
  }
289
- span {
290
- font-weight: 700;
291
- color: #2c3e50;
292
- }
293
278
  }
294
279
  }
280
+
281
+ .divider {
282
+ background: #2C3E50;
283
+ width: 1px;
284
+ height: 10px;
285
+ margin: 0 10px;
286
+ transform: rotate(20deg);
287
+ }
295
288
  }
296
289
 
297
290
  .fade-enter-active,
@@ -0,0 +1,117 @@
1
+ <template>
2
+ <table class="a-table">
3
+ <thead>
4
+ <tr>
5
+ <th v-for="(col, i) in cols" :key="i">{{ col.name }}</th>
6
+ </tr>
7
+ </thead>
8
+ <tbody v-for="(row, i) in rows" :key="i">
9
+ <tr>
10
+ <td v-for="col in cols" :key="col.key" :data-label="`${col.name}`">
11
+ <slot :name="'key-' + col.key" :row="row">
12
+ {{ row[col.key] || defaultEmpty }}
13
+ </slot>
14
+ </td>
15
+ </tr>
16
+ </tbody>
17
+ </table>
18
+ </template>
19
+
20
+ <script>
21
+ export default {
22
+ props: {
23
+ cols: {
24
+ type: Array,
25
+ default: () => [],
26
+ },
27
+ rows: {
28
+ type: Array,
29
+ default: () => [],
30
+ },
31
+ defaultEmpty: {
32
+ type: [String, Number],
33
+ default: "Нет данных",
34
+ },
35
+ },
36
+ };
37
+ </script>
38
+
39
+ <style lang="scss" scoped>
40
+ .a-table {
41
+ display: flex;
42
+ flex-direction: column;
43
+ background: #fff;
44
+
45
+ @media screen and (max-width: 850px) {
46
+ border: 0;
47
+ }
48
+
49
+ thead {
50
+ background: rgba(189, 199, 206, 0.3);
51
+
52
+ @media screen and (max-width: 850px) {
53
+ display: none;
54
+ }
55
+
56
+ tr {
57
+ display: flex;
58
+
59
+ th {
60
+ display: flex;
61
+ justify-content: center;
62
+ flex: 1;
63
+ padding: 20px 16px;
64
+ font-size: 12px;
65
+ font-weight: normal;
66
+ word-break: break-word;
67
+
68
+ @media screen and (max-width: 850px) {
69
+ justify-content: flex-start;
70
+ }
71
+ }
72
+ }
73
+ }
74
+
75
+ tbody {
76
+ tr {
77
+ display: flex;
78
+ border-bottom: 1px solid #ccc;
79
+
80
+ @media screen and (max-width: 850px) {
81
+ flex-direction: column;
82
+ margin: 10px;
83
+ padding: 10px 0;
84
+ border: 0;
85
+ background: rgba(189, 199, 206, 0.3);
86
+ }
87
+
88
+ td {
89
+ display: flex;
90
+ justify-content: center;
91
+ flex: 1;
92
+ padding: 20px 16px;
93
+ word-break: break-word;
94
+ font-size: 12px;
95
+ font-weight: normal;
96
+ text-align: left;
97
+
98
+ @media screen and (max-width: 850px) {
99
+ flex-direction: column;
100
+ row-gap: 4px;
101
+ justify-content: flex-start;
102
+ padding: 8px 16px;
103
+ }
104
+
105
+ &:before {
106
+ @media screen and (max-width: 850px) {
107
+ content: attr(data-label);
108
+ display: flex;
109
+ align-items: left;
110
+ font-weight: bold;
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ </style>
@@ -0,0 +1,15 @@
1
+ import ATable from "./ATable.vue";
2
+
3
+ export default {
4
+ title: "Table",
5
+ component: ATable,
6
+ template: "<a-table></a-table>",
7
+ };
8
+
9
+ const Template = (args, { argTypes }) => ({
10
+ components: { ATable },
11
+ props: Object.keys(argTypes),
12
+ template: "<a-table v-bind='$props'></a-header>",
13
+ });
14
+
15
+ export const BaseTable = Template.bind({});
@@ -1,4 +1,5 @@
1
1
  import Vue from "vue";
2
+ import ACheckbox from "./Checkbox/ACheckbox";
2
3
  import AButton from "./Button/AButton";
3
4
  import ATextField from "./TextField/TextField";
4
5
  import APasswordField from "./PasswordField/PasswordField";
@@ -7,8 +8,10 @@ import AHeader from "./Header/Header";
7
8
  import AFooter from "./Footer/Footer";
8
9
  import ASearchTextField from "./SearchTextField/SearchTextField";
9
10
  import AMailTo from "./MailTo/MailTo";
11
+ import ATable from "./Table/ATable";
10
12
 
11
13
  const Components = {
14
+ ACheckbox,
12
15
  AButton,
13
16
  ATextField,
14
17
  APasswordField,
@@ -17,6 +20,7 @@ const Components = {
17
20
  AFooter,
18
21
  ASearchTextField,
19
22
  AMailTo,
23
+ ATable,
20
24
  };
21
25
 
22
26
  Object.keys(Components).forEach((name) => {
@@ -54,6 +54,13 @@ export const profileDropDown = [
54
54
  dev: "https://pk.adtdev.kz/profile/browsing-history",
55
55
  staging: "https://pk.adada.kz/profile/browsing-history",
56
56
  prod: "https://pk.adata.kz/profile/browsing-history"
57
+ },
58
+ {
59
+ id: 10,
60
+ name: "Мои отчеты",
61
+ dev: "https://pk.adtdev.kz/profile/my-reports",
62
+ staging: "https://pk.adada.kz/profile/my-reports",
63
+ prod: "https://pk.adata.kz/profile/my-reports"
57
64
  }
58
65
  ],
59
66
  disabled: false