adata-ui 3.1.60 → 3.1.61

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.60",
8
+ "version": "3.1.61",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
@@ -51,6 +51,7 @@ const socialMedia = [
51
51
  const mainLinks = {
52
52
  services: {
53
53
  title: "footer.services",
54
+ link: `https://${mode}.kz` + PAGES.allServices,
54
55
  items: [
55
56
  [
56
57
  {
@@ -1,14 +1,8 @@
1
1
  <script setup>
2
- import { PAGES } from "#adata-ui/shared/constants/pages";
3
2
  import { useServicesLinks } from "#adata-ui/composables/useNavigationLInks";
4
- import { useI18n, useLocalePath, useRoute } from "#imports";
5
- import { useUrls } from "#adata-ui/utils/useUrls";
6
- import { buildLocalizedUrl } from "#adata-ui/utils/localizedNavigation";
3
+ import { onMounted, ref, useRoute } from "#imports";
7
4
  const services = useServicesLinks();
8
5
  const route = useRoute();
9
- const localePath = useLocalePath();
10
- const { landing } = useUrls();
11
- const { locale } = useI18n();
12
6
  const blockStyles = [
13
7
  "first-border-gradient",
14
8
  "second-border-gradient",
@@ -20,17 +14,14 @@ const blockStyles = [
20
14
  "eighth-border-gradient",
21
15
  "ninth-border-gradient"
22
16
  ];
23
- const linkByIndex = [
24
- PAGES.pk.main,
25
- PAGES.pk.employees,
26
- PAGES.pk.connections,
27
- PAGES.pk.offshore,
28
- PAGES.pk.foreign,
29
- PAGES.pk.unload,
30
- PAGES.pk.compare,
31
- PAGES.pk.sanctions,
32
- buildLocalizedUrl(locale, landing, "/all-services")
33
- ];
17
+ const hostname = ref("");
18
+ onMounted(() => {
19
+ hostname.value = window.location.hostname;
20
+ });
21
+ const isActive = (to) => {
22
+ const url = new URL(to);
23
+ return url.hostname === hostname.value && url.pathname === route.path;
24
+ };
34
25
  </script>
35
26
 
36
27
  <template>
@@ -45,7 +36,7 @@ const linkByIndex = [
45
36
  class="size-10 p-2 rounded-lg"
46
37
  :class="[
47
38
  'bg-deepblue-900/5 dark:bg-gray-200/5',
48
- { '!bg-blue-700 text-white dark:!bg-blue-500 ': route.path.replace(/\/+$/, '') === localePath(linkByIndex[index]).replace(/\/+$/, '') }
39
+ { '!bg-blue-700 text-white dark:!bg-blue-500': isActive(service.to) }
49
40
  ]"
50
41
  >
51
42
  <component
@@ -56,6 +47,7 @@ const linkByIndex = [
56
47
  <p class="text-xs text-center">
57
48
  {{ service.title }}
58
49
  </p>
50
+
59
51
  </nuxt-link-locale>
60
52
  </div>
61
53
  </template>
@@ -43,7 +43,7 @@ export const useServicesLinks = () => {
43
43
  {
44
44
  title: t("header.products.counterparties.items.unloading.title"),
45
45
  icon: IconArrowSquareDown,
46
- to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.unload)
46
+ to: buildLocalizedUrl(locale.value, urls.export, PAGES.export.main)
47
47
  },
48
48
  {
49
49
  title: t("header.products.counterparties.items.compare.title"),
@@ -32,6 +32,9 @@ export declare const PAGES: {
32
32
  counterparty: string;
33
33
  unload: string;
34
34
  };
35
+ export: {
36
+ main: string;
37
+ };
35
38
  work: {
36
39
  main: string;
37
40
  summary: string;
@@ -32,6 +32,9 @@ export const PAGES = {
32
32
  counterparty: "/counterparty",
33
33
  unload: "/unload"
34
34
  },
35
+ export: {
36
+ main: "/"
37
+ },
35
38
  work: {
36
39
  main: "/",
37
40
  summary: "/summary",
@@ -11,5 +11,6 @@ export declare function useUrls(): {
11
11
  tnved: string;
12
12
  edo: string;
13
13
  compliance: string;
14
+ export: string;
14
15
  mode: any;
15
16
  };
@@ -15,6 +15,7 @@ export function useUrls() {
15
15
  tnved: `https://tnved.${mode}.kz`,
16
16
  edo: `https://edo.${mode}.kz`,
17
17
  compliance: `https://ac.${mode}.kz/compliance`,
18
+ export: `https://export.${mode}.kz`,
18
19
  mode
19
20
  };
20
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "3.1.60",
3
+ "version": "3.1.61",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",