adata-ui 3.1.59 → 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.59",
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
  {
@@ -70,8 +71,8 @@ const mainLinks = {
70
71
  link: `https://analytics-new.${mode}.kz/`
71
72
  },
72
73
  {
73
- title: "footer.tenders.title",
74
- link: `https://tender.${mode}.kz/`
74
+ title: "footer.zakupki.title",
75
+ link: `https://zakupki.${mode}.kz/`
75
76
  }
76
77
  ],
77
78
  [
@@ -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"),
@@ -384,6 +384,9 @@ declare const _default: {
384
384
  searchTenders: string;
385
385
  purchasePlans: string;
386
386
  };
387
+ zakupki: {
388
+ title: string;
389
+ };
387
390
  fines: {
388
391
  title: string;
389
392
  checkFines: string;
@@ -1154,6 +1157,9 @@ declare const _default: {
1154
1157
  searchTenders: string;
1155
1158
  purchasePlans: string;
1156
1159
  };
1160
+ zakupki: {
1161
+ title: string;
1162
+ };
1157
1163
  fines: {
1158
1164
  title: string;
1159
1165
  checkFines: string;
@@ -1924,6 +1930,9 @@ declare const _default: {
1924
1930
  searchTenders: string;
1925
1931
  purchasePlans: string;
1926
1932
  };
1933
+ zakupki: {
1934
+ title: string;
1935
+ };
1927
1936
  fines: {
1928
1937
  title: string;
1929
1938
  checkFines: string;
@@ -378,6 +378,9 @@ const EnLocale = {
378
378
  searchTenders: "Search by Tenders",
379
379
  purchasePlans: "Procurement Plans"
380
380
  },
381
+ zakupki: {
382
+ title: "Procurement"
383
+ },
381
384
  fines: {
382
385
  title: "Fines",
383
386
  checkFines: "Fine Check",
@@ -378,6 +378,9 @@ const KkLocale = {
378
378
  searchTenders: "\u0422\u0435\u043D\u0434\u0435\u0440\u043B\u0435\u0440\u0434\u0456 \u0456\u0437\u0434\u0435\u0443",
379
379
  purchasePlans: "\u0421\u0430\u0442\u044B\u043F \u0430\u043B\u0443 \u0436\u043E\u0441\u043F\u0430\u0440\u043B\u0430\u0440\u044B"
380
380
  },
381
+ zakupki: {
382
+ title: "\u0421\u0430\u0442\u044B\u043F \u0430\u043B\u0443\u043B\u0430\u0440"
383
+ },
381
384
  fines: {
382
385
  title: "\u0410\u0439\u044B\u043F\u043F\u04B1\u043B\u0434\u0430\u0440",
383
386
  checkFines: "\u0410\u0439\u044B\u043F\u043F\u04B1\u043B\u0434\u0430\u0440\u0434\u044B \u0442\u0435\u043A\u0441\u0435\u0440\u0443",
@@ -378,6 +378,9 @@ declare const RuLocale: {
378
378
  searchTenders: string;
379
379
  purchasePlans: string;
380
380
  };
381
+ zakupki: {
382
+ title: string;
383
+ };
381
384
  fines: {
382
385
  title: string;
383
386
  checkFines: string;
@@ -372,6 +372,9 @@ const RuLocale = {
372
372
  searchTenders: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0442\u0435\u043D\u0434\u0435\u0440\u0430\u043C",
373
373
  purchasePlans: "\u041F\u043B\u0430\u043D\u044B \u0437\u0430\u043A\u0443\u043F\u043E\u043A"
374
374
  },
375
+ zakupki: {
376
+ title: "\u0417\u0430\u043A\u0443\u043F\u043A\u0438"
377
+ },
375
378
  fines: {
376
379
  title: "\u0428\u0442\u0440\u0430\u0444\u044B",
377
380
  checkFines: "\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0448\u0442\u0440\u0430\u0444\u043E\u0432",
@@ -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.59",
3
+ "version": "3.1.61",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",