adata-ui 0.3.64 → 0.3.66

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 (92) hide show
  1. package/README.md +7 -7
  2. package/babel.config.js +5 -5
  3. package/dist/adata-ui.common.js +8632 -6049
  4. package/dist/adata-ui.common.js.map +1 -1
  5. package/dist/adata-ui.css +1 -1
  6. package/dist/adata-ui.umd.js +8632 -6049
  7. package/dist/adata-ui.umd.js.map +1 -1
  8. package/dist/adata-ui.umd.min.js +3 -3
  9. package/dist/adata-ui.umd.min.js.map +1 -1
  10. package/dist/img/{facebook.990fd0ba.svg → facebook.797d820f.svg} +4 -4
  11. package/dist/img/{instagram.90311e74.svg → instagram.8a77381c.svg} +6 -6
  12. package/dist/img/{logo-white-desktop.0827cb20.svg → logo-white-desktop.7d0e3481.svg} +8 -8
  13. package/dist/img/{telegram.da3d2408.svg → telegram.be0d1008.svg} +4 -4
  14. package/dist/img/{tiktok.91223b77.svg → tiktok.eaeb39cb.svg} +4 -4
  15. package/dist/img/{up-down.de7b3a68.svg → up-down.e2b28f72.svg} +3 -3
  16. package/dist/img/{youtube.96e7b076.svg → youtube.125aace6.svg} +5 -5
  17. package/package-lock.json +26218 -26218
  18. package/package.json +76 -76
  19. package/public/index.html +17 -17
  20. package/public/logo.svg +4 -4
  21. package/src/App.vue +25 -25
  22. package/src/assets/_text_field.scss +224 -224
  23. package/src/assets/facebook.svg +4 -4
  24. package/src/assets/instagram.svg +6 -6
  25. package/src/assets/logo-desktop.svg +9 -9
  26. package/src/assets/logo-mobile.svg +9 -9
  27. package/src/assets/logo-white-desktop.svg +8 -8
  28. package/src/assets/style.scss +1 -1
  29. package/src/assets/telegram.svg +4 -4
  30. package/src/assets/tiktok.svg +4 -4
  31. package/src/assets/up-down.svg +3 -3
  32. package/src/assets/youtube.svg +5 -5
  33. package/src/components/Alert/Alert.stories.js +17 -17
  34. package/src/components/Alert/Alert.vue +63 -63
  35. package/src/components/BottomNavigationBar/ABottomNavigationBar.vue +151 -151
  36. package/src/components/BottomNavigationBar/BottomNavigationBar.stories.js +24 -24
  37. package/src/components/Button/AButton.vue +231 -231
  38. package/src/components/Button/Button.stories.js +23 -23
  39. package/src/components/Checkbox/ACheckbox.vue +114 -114
  40. package/src/components/Checkbox/Checkbox.stories.js +15 -15
  41. package/src/components/CheckboxMenu/CheckboxMenu.stories.js +23 -23
  42. package/src/components/CheckboxMenu/CheckboxMenu.vue +108 -108
  43. package/src/components/ErrorPages/BadGateway.vue +224 -224
  44. package/src/components/ErrorPages/Forbidden.vue +468 -468
  45. package/src/components/ErrorPages/InternalServerError.vue +275 -275
  46. package/src/components/ErrorPages/NotFound.vue +995 -995
  47. package/src/components/ErrorPages/Unavailable.vue +3705 -3705
  48. package/src/components/Footer/Footer.stories.js +20 -20
  49. package/src/components/Footer/Footer.vue +292 -292
  50. package/src/components/Header/ChildLinks.vue +122 -122
  51. package/src/components/Header/Header.stories.js +56 -56
  52. package/src/components/Header/Header.vue +1307 -1307
  53. package/src/components/Header/InfoHeader.vue +319 -319
  54. package/src/components/Header/Profile.vue +670 -670
  55. package/src/components/Header/ProfileMenu.vue +275 -275
  56. package/src/components/Header/ProfileMobile.vue +308 -308
  57. package/src/components/Header/ProfileOld.vue +781 -781
  58. package/src/components/InternalServerError/InternalServerError.stories.js +16 -16
  59. package/src/components/InternalServerError/InternalServerError.vue +262 -262
  60. package/src/components/Introduction.stories.mdx +7 -7
  61. package/src/components/Loader/Loader.stories.js +24 -24
  62. package/src/components/Loader/Loader.vue +325 -325
  63. package/src/components/MailTo/MailTo.stories.js +14 -14
  64. package/src/components/MailTo/MailTo.vue +258 -258
  65. package/src/components/NavIcon/ANavIcon.vue +49 -49
  66. package/src/components/NavIcon/NavIcon.stories.js +14 -14
  67. package/src/components/PasswordField/PasswordField.stories.js +16 -16
  68. package/src/components/PasswordField/PasswordField.vue +77 -77
  69. package/src/components/SearchTextField/SearchTextField.stories.js +77 -77
  70. package/src/components/SearchTextField/SearchTextField.vue +230 -230
  71. package/src/components/ServiceSlider/AServiceSlider.vue +782 -782
  72. package/src/components/ServiceSlider/ServiceSlider.stories.js +20 -20
  73. package/src/components/Table/ATable.vue +117 -117
  74. package/src/components/Table/Table.stories.js +15 -15
  75. package/src/components/TextArea/TextArea.stories.js +17 -17
  76. package/src/components/TextArea/TextArea.vue +116 -116
  77. package/src/components/TextError/TextError.stories.js +15 -15
  78. package/src/components/TextError/TextError.vue +57 -57
  79. package/src/components/TextField/TextField.stories.js +17 -17
  80. package/src/components/TextField/TextField.vue +107 -107
  81. package/src/components/index.js +54 -54
  82. package/src/components/newComponents/FooterNew/FooterBottom.vue +152 -151
  83. package/src/components/newComponents/FooterNew/FooterItem.vue +113 -113
  84. package/src/components/newComponents/FooterNew/FooterNew.stories.js +20 -20
  85. package/src/components/newComponents/FooterNew/FooterNew.vue +39 -39
  86. package/src/components/newComponents/FooterNew/FooterTop.vue +319 -318
  87. package/src/components/transitions/SlideToggle.vue +55 -55
  88. package/src/components/transitions/VerticalMobileToggle.vue +75 -75
  89. package/src/configs/icons.js +112 -112
  90. package/src/configs/profileDropDown.js +134 -134
  91. package/src/main.js +12 -12
  92. package/src/.DS_Store +0 -0
@@ -1,152 +1,153 @@
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: "adtdev.kz",
31
- prod: "adata.kz",
32
- staging: "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: `https://${this.environment}/tariffs`
47
- },
48
- {
49
- id: 2,
50
- name: 'Полезное',
51
- link: `https://${this.environment}/about`
52
- },
53
- {
54
- id: 3,
55
- name: 'Описание API',
56
- link: `https://${this.environment}/apiInfo`
57
- },
58
- {
59
- id: 4,
60
- name: 'Пользовательское соглашение',
61
- link: `https://${this.environment}/user-agreements`
62
- },
63
- {
64
- id: 5,
65
- name: 'Политика конфиденциальности',
66
- link: `https://${this.environment}/privacy-policy`
67
- },
68
- {
69
- id: 6,
70
- name: 'Вакансии',
71
- link: `https://${this.environment}/vacancy`
72
- },
73
- {
74
- id: 7,
75
- name: 'Каталог предприятий',
76
- link: `https://pk.${this.environment}/counterparty`
77
- },
78
- {
79
- id: 8,
80
- name: 'Контакты',
81
- link: `https://${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
- }
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: "adtdev.kz",
31
+ prod: "adata.kz",
32
+ staging: "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: `https://${this.environment}/tariffs`
47
+ },
48
+ {
49
+ id: 2,
50
+ name: 'Полезное',
51
+ link: `https://${this.environment}/about`
52
+ },
53
+ {
54
+ id: 3,
55
+ name: 'Описание API',
56
+ link: `https://${this.environment}/apiInfo`
57
+ },
58
+ {
59
+ id: 4,
60
+ name: 'Пользовательское соглашение',
61
+ link: `https://${this.environment}/user-agreements`
62
+ },
63
+ {
64
+ id: 5,
65
+ name: 'Политика конфиденциальности',
66
+ link: `https://${this.environment}/privacy-policy`
67
+ },
68
+ {
69
+ id: 6,
70
+ name: 'Вакансии',
71
+ link: `https://${this.environment}/vacancy`
72
+ },
73
+ {
74
+ id: 7,
75
+ name: 'Каталог предприятий',
76
+ link: `https://pk.${this.environment}/counterparty`
77
+ },
78
+ {
79
+ id: 8,
80
+ name: 'Контакты',
81
+ link: `https://${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 calc((100vw - 1180px)/2);
97
+ padding: 20px;
98
+ @media (max-width: 1140px) {
99
+ padding: 20px 16px;
100
+ margin: 0 auto;
101
+ }
102
+ @media (max-width: 768px) {
103
+ padding: 20px 16px 12px;
104
+ }
105
+
106
+ &__left {
107
+ display: flex;
108
+ align-items: center;
109
+ gap: 24px;
110
+ @media screen and (max-width: 1140px) {
111
+ flex-direction: column;
112
+ align-items: flex-start;
113
+ gap: 16px;
114
+ }
115
+
116
+ &__link {
117
+ font-weight: 400;
118
+ font-size: 10px;
119
+ line-height: 16px;
120
+ color: #FFFFFF;
121
+ }
122
+ }
123
+
124
+ &__right {
125
+ display: flex;
126
+ align-items: center;
127
+ gap: 16px;
128
+
129
+ &-text {
130
+ font-weight: 400;
131
+ font-size: 10px;
132
+ line-height: 16px;
133
+ color: #FFFFFF;
134
+ @media screen and (max-width: 1140px) {
135
+ display: none;
136
+ }
137
+ }
138
+ }
139
+ }
140
+
141
+ .logo-desktop {
142
+ display: inline-block;
143
+ width: 90px;
144
+ height: 26px;
145
+ background-image: url("~@/assets/logo-white-desktop.svg");
146
+ background-size: cover;
147
+ background-position: center;
148
+ @media screen and (max-width: 1140px) {
149
+ display: none;
150
+
151
+ }
152
+ }
152
153
  </style>
@@ -1,114 +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
- }
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
114
  </style>
@@ -1,20 +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
- }
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
+ }
@@ -1,39 +1,39 @@
1
- <template>
2
- <footer class="footer">
3
- <footer-top :mode="mode"/>
4
- <footer-bottom :mode="mode"/>
5
- </footer>
6
- </template>
7
-
8
- <script>
9
- import FooterTop from "@/components/newComponents/FooterNew/FooterTop";
10
- import FooterBottom from "@/components/newComponents/FooterNew/FooterBottom";
11
-
12
- export default {
13
- name: "Footer",
14
- components: {FooterTop, FooterBottom},
15
- props: {
16
- hasBottomMenu: {
17
- type: Boolean,
18
- default: false
19
- },
20
- mode: {
21
- type: String,
22
- required: true,
23
- validator: function (value) {
24
- return ["prod", "dev", "staging"].indexOf(value) !== -1;
25
- },
26
- },
27
- }
28
- }
29
- </script>
30
-
31
- <style lang="scss" scoped>
32
- .footer {
33
- background: #2C3E50;
34
- border-bottom: 0.5px solid #FFFFFF;
35
- margin-top: 20px;
36
- }
37
-
38
-
39
- </style>
1
+ <template>
2
+ <footer class="footer">
3
+ <footer-top :mode="mode"/>
4
+ <footer-bottom :mode="mode"/>
5
+ </footer>
6
+ </template>
7
+
8
+ <script>
9
+ import FooterTop from "@/components/newComponents/FooterNew/FooterTop";
10
+ import FooterBottom from "@/components/newComponents/FooterNew/FooterBottom";
11
+
12
+ export default {
13
+ name: "Footer",
14
+ components: {FooterTop, FooterBottom},
15
+ props: {
16
+ hasBottomMenu: {
17
+ type: Boolean,
18
+ default: false
19
+ },
20
+ mode: {
21
+ type: String,
22
+ required: true,
23
+ validator: function (value) {
24
+ return ["prod", "dev", "staging"].indexOf(value) !== -1;
25
+ },
26
+ },
27
+ }
28
+ }
29
+ </script>
30
+
31
+ <style lang="scss" scoped>
32
+ .footer {
33
+ background: #2C3E50;
34
+ border-bottom: 0.5px solid #FFFFFF;
35
+ margin-top: 20px;
36
+ }
37
+
38
+
39
+ </style>