adata-ui 3.1.81 → 3.1.82
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 +1 -1
- package/dist/runtime/components/Footer.vue +4 -4
- package/dist/runtime/components/NewFooter.vue +1 -1
- package/dist/runtime/components/header/HeaderLink.vue +18 -13
- package/dist/runtime/components/header/ProductMenu.vue +5 -5
- package/dist/runtime/components/mobile-navigation/MobileProductMenu.vue +3 -3
- package/dist/runtime/components/modals/SubmitApplicationModal.vue +7 -1
- package/dist/runtime/components/modals/SubmitApplicationModal.vue.d.ts +4 -1
- package/dist/runtime/utils/useUrls.d.ts +1 -0
- package/dist/runtime/utils/useUrls.js +1 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -127,7 +127,7 @@ const mainLinks = {
|
|
|
127
127
|
},
|
|
128
128
|
analytics: {
|
|
129
129
|
title: "footer.analytics.title",
|
|
130
|
-
link: `https://analytics
|
|
130
|
+
link: `https://analytics.${mode}.kz` + PAGES.analytics.main,
|
|
131
131
|
items: [
|
|
132
132
|
{
|
|
133
133
|
title: "footer.analytics.purchaseAnalysis",
|
|
@@ -135,15 +135,15 @@ const mainLinks = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
title: "footer.analytics.businessActivityIndex",
|
|
138
|
-
link: `https://analytics
|
|
138
|
+
link: `https://analytics.${mode}.kz` + PAGES.analytics.index
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
title: "footer.analytics.taxpayerRanking",
|
|
142
|
-
link: `https://analytics
|
|
142
|
+
link: `https://analytics.${mode}.kz` + PAGES.analytics.rating
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
title: "footer.analytics.businessEntities",
|
|
146
|
-
link: `https://analytics
|
|
146
|
+
link: `https://analytics.${mode}.kz` + PAGES.analytics.business
|
|
147
147
|
}
|
|
148
148
|
]
|
|
149
149
|
},
|
|
@@ -72,7 +72,7 @@ const mainLinks = computed(() => ({
|
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
title: "footer.analytics.title",
|
|
75
|
-
link: buildLocalizedUrl(locale.value, urls.
|
|
75
|
+
link: buildLocalizedUrl(locale.value, urls.analytics, PAGES.analytics.main)
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
title: "footer.zakupki.title",
|
|
@@ -22,12 +22,17 @@ const navs = [
|
|
|
22
22
|
{
|
|
23
23
|
label: "header.navs.api",
|
|
24
24
|
to: `https://${mode}.kz/api-description`
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: "header.navs.services",
|
|
28
|
-
to: `https://${mode}.kz/counterparty-service`
|
|
29
25
|
}
|
|
30
26
|
];
|
|
27
|
+
const pageUrl = useRequestURL();
|
|
28
|
+
if (pageUrl.hostname.startsWith("pk")) {
|
|
29
|
+
navs.push(
|
|
30
|
+
{
|
|
31
|
+
label: "header.navs.services",
|
|
32
|
+
to: `https://pk.${mode}.kz/services/kgd`
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
31
36
|
const menu = ref(null);
|
|
32
37
|
const isBodyAlreadyLocked = ref(false);
|
|
33
38
|
const currentIndex = ref(0);
|
|
@@ -53,20 +58,20 @@ const currentMenuToShow = (index) => {
|
|
|
53
58
|
};
|
|
54
59
|
const toggleMenu = (index) => {
|
|
55
60
|
if (index === 2) {
|
|
56
|
-
const
|
|
61
|
+
const pageUrl2 = useRequestURL();
|
|
57
62
|
let code = "";
|
|
58
|
-
if (
|
|
59
|
-
if (
|
|
60
|
-
if (
|
|
61
|
-
if (
|
|
62
|
-
if (
|
|
63
|
-
if (
|
|
64
|
-
if (
|
|
63
|
+
if (pageUrl2.hostname.includes("pk")) code = "?code=pk";
|
|
64
|
+
if (pageUrl2.hostname.includes("avto")) code = "?code=auto";
|
|
65
|
+
if (pageUrl2.hostname.includes("tnved")) code = "?code=ved";
|
|
66
|
+
if (pageUrl2.hostname.includes("analytics")) code = "?code=analytics";
|
|
67
|
+
if (pageUrl2.hostname.includes("ac")) code = "?code=compliance";
|
|
68
|
+
if (pageUrl2.hostname.includes("zakupki")) code = "?code=procurement";
|
|
69
|
+
if (pageUrl2.hostname.includes("edo")) code = "?code=edo";
|
|
65
70
|
navigateToLocalizedPage({ locale, projectUrl: `https://${mode}.kz`, path: "/tariffs" + code, target: "_blank" });
|
|
66
71
|
} else if (index === 3) {
|
|
67
72
|
navigateToLocalizedPage({ locale, projectUrl: `https://${mode}.kz`, path: "/api-description", target: "_blank" });
|
|
68
73
|
} else if (index === 4) {
|
|
69
|
-
navigateToLocalizedPage({ locale, projectUrl: `https
|
|
74
|
+
navigateToLocalizedPage({ locale, projectUrl: `https://pk.${mode}.kz`, path: "/services/kgd", target: "_blank" });
|
|
70
75
|
} else {
|
|
71
76
|
currentMenu.value = currentMenuToShow(index);
|
|
72
77
|
const prev = currentIndex.value;
|
|
@@ -313,7 +313,7 @@ const filteredItems = computed(() => [
|
|
|
313
313
|
{
|
|
314
314
|
key: "analytics",
|
|
315
315
|
name: t("header.products.analytics.label"),
|
|
316
|
-
link: `https://analytics
|
|
316
|
+
link: `https://analytics.${mode}.kz`,
|
|
317
317
|
icon: IArrowGraphUp,
|
|
318
318
|
items: [
|
|
319
319
|
// {
|
|
@@ -326,26 +326,26 @@ const filteredItems = computed(() => [
|
|
|
326
326
|
title: t("header.products.analytics.items.activity.title"),
|
|
327
327
|
subtitle: t("header.products.analytics.items.activity.subtitle"),
|
|
328
328
|
icon: IArrowGraphUp,
|
|
329
|
-
to: `https://analytics
|
|
329
|
+
to: `https://analytics.${mode}.kz` + PAGES.analytics.index
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
title: t("header.products.analytics.items.rate.title"),
|
|
333
333
|
subtitle: t("header.products.analytics.items.rate.subtitle"),
|
|
334
334
|
icon: IMedal,
|
|
335
|
-
to: `https://analytics
|
|
335
|
+
to: `https://analytics.${mode}.kz` + PAGES.analytics.rating
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
title: t("header.products.analytics.items.subjects.title"),
|
|
339
339
|
subtitle: t("header.products.analytics.items.subjects.subtitle"),
|
|
340
340
|
icon: ICompany,
|
|
341
|
-
to: `https://analytics
|
|
341
|
+
to: `https://analytics.${mode}.kz` + PAGES.analytics.business
|
|
342
342
|
}
|
|
343
343
|
]
|
|
344
344
|
}
|
|
345
345
|
]);
|
|
346
346
|
function isCurrentModule(currentModule) {
|
|
347
347
|
if (currentModule === "fines") return "avto";
|
|
348
|
-
if (currentModule === "analytics") return "analytics
|
|
348
|
+
if (currentModule === "analytics") return "analytics";
|
|
349
349
|
if (currentModule === "compliance") return "ac";
|
|
350
350
|
if (currentModule === "fea") return "tnved";
|
|
351
351
|
if (currentModule === "tenders") return "zakupki";
|
|
@@ -199,17 +199,17 @@ const sideLinks = {
|
|
|
199
199
|
{
|
|
200
200
|
icon: IArrowGraphUp,
|
|
201
201
|
label: "header.products.analytics.items.activity.title",
|
|
202
|
-
link: `https://analytics
|
|
202
|
+
link: `https://analytics.${mode}.kz` + PAGES.analytics.index
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
icon: ICompany,
|
|
206
206
|
label: "header.products.analytics.items.subjects.title",
|
|
207
|
-
link: `https://analytics
|
|
207
|
+
link: `https://analytics.${mode}.kz` + PAGES.analytics.business
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
icon: IMedal,
|
|
211
211
|
label: "header.products.analytics.items.rate.title",
|
|
212
|
-
link: `https://analytics
|
|
212
|
+
link: `https://analytics.${mode}.kz` + PAGES.analytics.rating
|
|
213
213
|
}
|
|
214
214
|
],
|
|
215
215
|
fea: [
|
|
@@ -7,6 +7,9 @@ import AIllMail from "#adata-ui/illustrations/mail.vue";
|
|
|
7
7
|
import AInputStandard from "#adata-ui/components/forms/input/standard/InputStandard.vue";
|
|
8
8
|
import ATextarea from "#adata-ui/components/forms/input/textarea/ATextarea.vue";
|
|
9
9
|
import AButton from "#adata-ui/components/button/Button.vue";
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
userInfo: { type: null, required: true }
|
|
12
|
+
});
|
|
10
13
|
const emit = defineEmits(["send"]);
|
|
11
14
|
const { t } = useI18n();
|
|
12
15
|
const isOpen = defineModel({ type: Boolean, ...{ default: false } });
|
|
@@ -33,7 +36,7 @@ const send = () => {
|
|
|
33
36
|
if (validation.value) return;
|
|
34
37
|
emit("send", form);
|
|
35
38
|
form.name = "";
|
|
36
|
-
form.email = "";
|
|
39
|
+
form.email = props.userInfo?.email || "";
|
|
37
40
|
form.phone = "";
|
|
38
41
|
form.comment = "";
|
|
39
42
|
};
|
|
@@ -43,6 +46,9 @@ const cancel = () => {
|
|
|
43
46
|
defineExpose({
|
|
44
47
|
reset: () => submitted.value = false
|
|
45
48
|
});
|
|
49
|
+
onMounted(() => {
|
|
50
|
+
form.email = props.userInfo?.email || "";
|
|
51
|
+
});
|
|
46
52
|
</script>
|
|
47
53
|
|
|
48
54
|
<template>
|
|
@@ -10,6 +10,7 @@ export function useUrls() {
|
|
|
10
10
|
tender: `https://tender.${mode}.kz`,
|
|
11
11
|
zakupki: `https://zakupki.${mode}.kz`,
|
|
12
12
|
avto: `https://avto.${mode}.kz`,
|
|
13
|
+
analyticsOld: `https://analytics-old.${mode}.kz`,
|
|
13
14
|
analytics: `https://analytics.${mode}.kz`,
|
|
14
15
|
analyticsNew: `https://analytics-new.${mode}.kz`,
|
|
15
16
|
tnved: `https://tnved.${mode}.kz`,
|