adata-ui 3.1.4 → 3.1.6

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/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
7
  "failOnWarn": false,
8
- "version": "3.1.4",
8
+ "version": "3.1.6",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { NuxtLinkLocale } from "#components";
3
- const props = defineProps({
3
+ defineProps({
4
4
  icon: { type: null, required: true },
5
5
  title: { type: String, required: true },
6
6
  description: { type: String, required: true },
@@ -12,7 +12,7 @@ const props = defineProps({
12
12
  <component
13
13
  :is="to ? NuxtLinkLocale : 'button'"
14
14
  :to="to"
15
- class="curve-block relative w-fit cursor-pointer hidden md:block"
15
+ class="curve-block relative w-fit cursor-pointer z-10 block "
16
16
  active-class="active-item"
17
17
  >
18
18
  <svg
@@ -60,7 +60,7 @@ const props = defineProps({
60
60
  </defs>
61
61
  </svg>
62
62
 
63
- <div class="absolute left-6 top-6 flex flex-col gap-4 pr-6">
63
+ <div class="absolute left-6 top-6 flex flex-col gap-4 pr-6">
64
64
  <div class="flex items-center gap-2">
65
65
  <div class="rounded-sm bg-deepblue-900/5 dark:bg-gray-200/5 p-1">
66
66
  <component
@@ -72,7 +72,7 @@ const props = defineProps({
72
72
  {{ title }}
73
73
  </p>
74
74
  </div>
75
- <p class="text-sm text-gray-600 dark:text-gray-200">
75
+ <p class="text-sm text-gray-600 dark:text-gray-200 text-left">
76
76
  {{ description }}
77
77
  </p>
78
78
  </div>
@@ -141,30 +141,6 @@ const props = defineProps({
141
141
  </defs>
142
142
  </svg>
143
143
  </component>
144
-
145
- <!-- mobile -->
146
- <component
147
- :is="to ? NuxtLinkLocale : 'button'"
148
- :to="to"
149
- class="group cursor-pointer flex flex-col items-center gap-2 md:hidden"
150
- active-class="active-item"
151
- >
152
- <div
153
- class="p-2 w-fit rounded-lg transition-all bg-deepblue-900/5
154
- group-hover:bg-blue-700
155
- group-[.active-item]:bg-blue-700"
156
- >
157
- <component
158
- :is="icon"
159
- class="size-6 shrink-0 text-deepblue-900
160
- group-hover:text-white
161
- group-[.active-item]:text-white"
162
- />
163
- </div>
164
- <p>
165
- {{ title }}
166
- </p>
167
- </component>
168
144
  </template>
169
145
 
170
146
  <style scoped>
@@ -1,3 +1,4 @@
1
+ import type { Component } from 'vue';
1
2
  type __VLS_Props = {
2
3
  icon: Component;
3
4
  title: string;
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import { computed, onMounted, onUnmounted, ref, useI18n } from "#imports";
3
3
  import ArrowSideUp from "#icons/arrow/arrow-side-up.vue";
4
+ import { IArrowChevronDown, IGlobe, IId } from "#components";
4
5
  const { t } = useI18n();
5
6
  const items = computed(() => {
6
7
  return [
@@ -9,21 +10,21 @@ const items = computed(() => {
9
10
  subtitle: "header.products.galleryCards.unload.subtitle",
10
11
  to: "/",
11
12
  image: "/header/unload.webp",
12
- icon: ""
13
+ icon: IArrowChevronDown
13
14
  },
14
15
  {
15
16
  title: "header.products.galleryCards.compliance.title",
16
17
  subtitle: "header.products.galleryCards.compliance.subtitle",
17
18
  to: "/",
18
19
  image: "/header/compliance.webp",
19
- icon: ""
20
+ icon: IId
20
21
  },
21
22
  {
22
23
  title: "header.products.galleryCards.ved.title",
23
24
  subtitle: "header.products.galleryCards.ved.subtitle",
24
25
  to: "/",
25
26
  image: "/header/ved.webp",
26
- icon: ""
27
+ icon: IGlobe
27
28
  }
28
29
  ];
29
30
  });
@@ -43,6 +43,7 @@ defineEmits(["outerClick", "mouseOver"]);
43
43
  const filteredItems = [
44
44
  {
45
45
  key: "edo",
46
+ is_new: true,
46
47
  name: t("header.products.edo.label"),
47
48
  icon: IFiles,
48
49
  items: [
@@ -107,21 +108,16 @@ const filteredItems = [
107
108
  ]
108
109
  },
109
110
  {
110
- key: "work",
111
- name: t("header.products.jobs.label"),
112
- icon: IWorkBag,
111
+ key: "compliance",
112
+ is_new: true,
113
+ name: t("header.products.compliance.label"),
114
+ icon: IId,
113
115
  items: [
114
116
  {
115
- title: t("header.products.jobs.items.vacancies.title"),
116
- icon: IWorkBag,
117
- subtitle: t("header.products.jobs.items.vacancies.subtitle"),
118
- to: `https://work.${mode}.kz` + PAGES.work.vacancy
119
- },
120
- {
121
- title: t("header.products.jobs.items.resume.title"),
122
- subtitle: t("header.products.jobs.items.resume.subtitle"),
123
- icon: IHdocument,
124
- to: `https://work.${mode}.kz` + PAGES.work.summary
117
+ title: t("header.products.compliance.items.l.t"),
118
+ subtitle: t("header.products.compliance.items.l.st"),
119
+ icon: IProfile,
120
+ to: `https://ac.${mode}.kz/compliance`
125
121
  }
126
122
  ]
127
123
  },
@@ -151,31 +147,6 @@ const filteredItems = [
151
147
  }
152
148
  ]
153
149
  },
154
- {
155
- key: "fines",
156
- name: t("header.products.fines.label"),
157
- icon: ICar,
158
- items: [
159
- {
160
- title: t("header.products.fines.items.fines.title"),
161
- subtitle: t("header.products.fines.items.fines.subtitle"),
162
- icon: ICheckCircle,
163
- to: `https://avto.${mode}.kz` + PAGES.fines.main
164
- },
165
- {
166
- title: t("header.products.fines.items.auto.title"),
167
- subtitle: t("header.products.fines.items.auto.subtitle"),
168
- icon: ICar,
169
- to: `https://avto.${mode}.kz` + PAGES.fines.avto
170
- },
171
- {
172
- title: t("header.products.fines.items.wholesaleAuto.title"),
173
- subtitle: t("header.products.fines.items.wholesaleAuto.subtitle"),
174
- icon: ITruck,
175
- to: `https://avto.${mode}.kz` + PAGES.fines.bulk
176
- }
177
- ]
178
- },
179
150
  {
180
151
  key: "analytics",
181
152
  name: t("header.products.analytics.label"),
@@ -207,8 +178,34 @@ const filteredItems = [
207
178
  }
208
179
  ]
209
180
  },
181
+ {
182
+ key: "fines",
183
+ name: t("header.products.fines.label"),
184
+ icon: ICar,
185
+ items: [
186
+ {
187
+ title: t("header.products.fines.items.fines.title"),
188
+ subtitle: t("header.products.fines.items.fines.subtitle"),
189
+ icon: ICheckCircle,
190
+ to: `https://avto.${mode}.kz` + PAGES.fines.main
191
+ },
192
+ {
193
+ title: t("header.products.fines.items.auto.title"),
194
+ subtitle: t("header.products.fines.items.auto.subtitle"),
195
+ icon: ICar,
196
+ to: `https://avto.${mode}.kz` + PAGES.fines.avto
197
+ },
198
+ {
199
+ title: t("header.products.fines.items.wholesaleAuto.title"),
200
+ subtitle: t("header.products.fines.items.wholesaleAuto.subtitle"),
201
+ icon: ITruck,
202
+ to: `https://avto.${mode}.kz` + PAGES.fines.bulk
203
+ }
204
+ ]
205
+ },
210
206
  {
211
207
  key: "fea",
208
+ is_new: true,
212
209
  name: t("header.products.fea.label"),
213
210
  icon: IGlobe,
214
211
  items: [
@@ -245,15 +242,21 @@ const filteredItems = [
245
242
  ]
246
243
  },
247
244
  {
248
- key: "compliance",
249
- name: t("header.products.compliance.label"),
250
- icon: IId,
245
+ key: "work",
246
+ name: t("header.products.jobs.label"),
247
+ icon: IWorkBag,
251
248
  items: [
252
249
  {
253
- title: t("header.products.compliance.items.l.t"),
254
- subtitle: t("header.products.compliance.items.l.st"),
255
- icon: IProfile,
256
- to: `https://ac.${mode}.kz/compliance`
250
+ title: t("header.products.jobs.items.vacancies.title"),
251
+ icon: IWorkBag,
252
+ subtitle: t("header.products.jobs.items.vacancies.subtitle"),
253
+ to: `https://work.${mode}.kz` + PAGES.work.vacancy
254
+ },
255
+ {
256
+ title: t("header.products.jobs.items.resume.title"),
257
+ subtitle: t("header.products.jobs.items.resume.subtitle"),
258
+ icon: IHdocument,
259
+ to: `https://work.${mode}.kz` + PAGES.work.summary
257
260
  }
258
261
  ]
259
262
  }
@@ -287,6 +290,7 @@ function isCurrentModule(currentModule) {
287
290
  :nav-list="module.items"
288
291
  :to="module.to"
289
292
  :icon="module.icon"
293
+ :badge="module.is_new"
290
294
  />
291
295
  </div>
292
296
  <div class="flex flex-col gap-5 w-[290px] pl-[10px]">
@@ -299,6 +303,7 @@ function isCurrentModule(currentModule) {
299
303
  :nav-list="module.items"
300
304
  :to="module.to"
301
305
  :icon="module.icon"
306
+ :badge="module.is_new"
302
307
  />
303
308
  </div>
304
309
  <div class="flex flex-col gap-5 w-[330px] pl-[10px]">
@@ -311,7 +316,7 @@ function isCurrentModule(currentModule) {
311
316
  :nav-list="module.items"
312
317
  :to="module.to"
313
318
  :icon="module.icon"
314
- badge
319
+ :badge="module.is_new"
315
320
  />
316
321
  </div>
317
322
  </div>
@@ -0,0 +1,24 @@
1
+ <script setup>
2
+ import { useI18n } from "#imports";
3
+ const emit = defineEmits(["close"]);
4
+ const { t } = useI18n();
5
+ </script>
6
+
7
+ <template>
8
+ <div class="flex flex-col gap-5 items-center">
9
+ <p class="font-bold text-2xl text-center">
10
+ {{ t("modals.auth.title") }}
11
+ </p>
12
+ <i-modals-door class="size-30" />
13
+ <p class="text-sm text-center">
14
+ {{ t("modals.no_access.info") }}
15
+ </p>
16
+ <adt-button
17
+ view="outline"
18
+ class="w-full font-semibold"
19
+ @click="emit('close')"
20
+ >
21
+ {{ t("modals.buttons.close") }}
22
+ </adt-button>
23
+ </div>
24
+ </template>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- export declare const useCurrentModule: () => any;
2
- export declare const useContacts: () => any;
1
+ export declare const useCurrentModule: () => import("vue").Ref<string, string>;
2
+ export declare const useContacts: () => import("vue").Ref<any, any>;
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
2
2
  export default _default;
@@ -0,0 +1,9 @@
1
+ <template>
2
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M1.6665 4.71961C1.6665 3.9797 2.26632 3.37988 3.00623 3.37988H16.9934C17.7334 3.37988 18.3332 3.9797 18.3332 4.71961V15.2809C18.3332 16.0208 17.7334 16.6206 16.9934 16.6206H3.00623C2.26632 16.6206 1.6665 16.0208 1.6665 15.2809V4.71961ZM3.00623 4.62988C2.95668 4.62988 2.9165 4.67005 2.9165 4.71961V15.2809C2.9165 15.3305 2.95668 15.3706 3.00623 15.3706H16.9934C17.043 15.3706 17.0832 15.3305 17.0832 15.2809V4.71961C17.0832 4.67005 17.043 4.62988 16.9934 4.62988H3.00623ZM11.9671 8.5606C11.9671 8.21542 12.2469 7.9356 12.5921 7.9356H15.1446C15.4898 7.9356 15.7696 8.21542 15.7696 8.5606C15.7696 8.90578 15.4898 9.1856 15.1446 9.1856H12.5921C12.2469 9.1856 11.9671 8.90578 11.9671 8.5606ZM12.5921 10.4651C12.2469 10.4651 11.9671 10.7449 11.9671 11.0901C11.9671 11.4353 12.2469 11.7151 12.5921 11.7151H15.1446C15.4898 11.7151 15.7696 11.4353 15.7696 11.0901C15.7696 10.7449 15.4898 10.4651 15.1446 10.4651H12.5921ZM7.62069 7.04543C6.80167 7.04543 6.13772 7.70937 6.13772 8.52839C6.13772 9.34741 6.80167 10.0114 7.62069 10.0114C7.8289 10.0114 8.02555 9.96882 8.20369 9.89254C8.73404 9.66547 9.10366 9.13938 9.10366 8.52839C9.10366 7.70937 8.43971 7.04543 7.62069 7.04543ZM4.88772 8.52839C4.88772 7.01902 6.11131 5.79543 7.62069 5.79543C9.13007 5.79543 10.3537 7.01902 10.3537 8.52839C10.3537 9.64592 9.68303 10.6054 8.7247 11.029C9.10094 11.1401 9.46277 11.3076 9.80036 11.5273C10.4578 11.9553 10.9988 12.565 11.3796 13.2893C11.5403 13.5948 11.4228 13.9727 11.1173 14.1333C10.8118 14.294 10.4339 14.1765 10.2732 13.871C9.98413 13.3211 9.58362 12.8777 9.11845 12.575C8.65428 12.2728 8.13902 12.1189 7.62131 12.1189C7.1036 12.1189 6.58833 12.2728 6.12417 12.575C5.65899 12.8777 5.25848 13.3211 4.96939 13.871C4.80876 14.1765 4.43087 14.294 4.12534 14.1333C3.81981 13.9727 3.70235 13.5948 3.86299 13.2893C4.2438 12.565 4.78481 11.9553 5.44225 11.5273C5.77955 11.3078 6.14105 11.1404 6.51694 11.0293C5.55736 10.6052 4.88772 9.64499 4.88772 8.52839Z"
4
+ fill="currentColor"
5
+ />
6
+ </svg>
7
+ </template>
8
+ <script setup lang="ts">
9
+ </script>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "3.1.4",
3
+ "version": "3.1.6",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",