adata-ui 3.1.41 → 3.1.43

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.41",
8
+ "version": "3.1.43",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
@@ -17,6 +17,7 @@ const props = defineProps({
17
17
  rate: { type: String, required: false, default: "\u0411\u0430\u0437\u043E\u0432\u044B\u0439" },
18
18
  daysRemaining: { type: Number, required: false, default: 0 },
19
19
  limitRemaining: { type: Number, required: false, default: 0 },
20
+ limitRemainingLabel: { type: String, required: false },
20
21
  balance: { type: Number, required: false, default: 0 },
21
22
  isAuthenticated: { type: Boolean, required: false, default: true },
22
23
  showLogIn: { type: Boolean, required: false, default: true },
@@ -72,6 +73,7 @@ onBeforeMount(() => {
72
73
  :is-authenticated="isAuthenticated"
73
74
  :module-name="module"
74
75
  :limit-remaining="limitRemaining"
76
+ :limit-remaining-label="limitRemainingLabel"
75
77
  />
76
78
  <header
77
79
  class="relative h-16 border-b border-deepblue-900/10 bg-white dark:border-gray-200/10 dark:bg-gray-900"
@@ -6,6 +6,7 @@ interface Props {
6
6
  rate?: string;
7
7
  daysRemaining?: number;
8
8
  limitRemaining?: number;
9
+ limitRemainingLabel?: string;
9
10
  balance?: number;
10
11
  isAuthenticated?: boolean;
11
12
  showLogIn?: boolean;
@@ -17,11 +17,11 @@ const { t } = useI18n();
17
17
  const appConfig = useAppConfig();
18
18
  const mode = appConfig.adataUI.mode;
19
19
  const socialMedia = [
20
- // {
21
- // icon: ISocialsLinkedin,
22
- // link: 'https://www.linkedin.com/company/adata-kz/?viewAsMember=true',
23
- // name: 'Linkedin',
24
- // },
20
+ {
21
+ icon: ISocialsLinkedin,
22
+ link: "https://www.linkedin.com/company/adata-kz/?viewAsMember=true",
23
+ name: "Linkedin"
24
+ },
25
25
  {
26
26
  icon: ISocialsYoutube,
27
27
  link: "https://www.youtube.com/channel/UCPkbtgwgTZbMJXjmTi3R8Uw/featured",
@@ -13,6 +13,7 @@ const { t } = useI18n();
13
13
  const props = defineProps({
14
14
  daysRemaining: { type: Number, required: true },
15
15
  limitRemaining: { type: Number, required: true },
16
+ limitRemainingLabel: { type: String, required: false },
16
17
  moduleName: { type: String, required: false, default: "counterparty" },
17
18
  isAuthenticated: { type: Boolean, required: true }
18
19
  });
@@ -100,8 +101,8 @@ const closeMessage = () => {
100
101
  v-if="!isOpenNotification || !systemMessage"
101
102
  class="hidden min-h-10 bg-gray-50 dark:bg-gray-950 lg:block"
102
103
  >
103
- <div class="a-container flex justify-between py-2 text-sm">
104
- <div class="flex items-center">
104
+ <div class="a-container flex justify-between items-center py-2 text-sm">
105
+ <div class="flex items-center leading-[24px]">
105
106
  <div
106
107
  v-for="currency in currencies"
107
108
  :key="currency.currency"
@@ -130,7 +131,7 @@ const closeMessage = () => {
130
131
  class="flex items-center gap-5"
131
132
  >
132
133
  <div v-if="limitRemaining != null || limitRemaining != void 0">
133
- <span class="mr-2 text-xs">{{ t("header.top.requestLimit") }}</span>
134
+ <span class="mr-2 text-xs">{{ limitRemainingLabel ?? t("header.top.requestLimit") }}</span>
134
135
  <a-status-badge size="sm">
135
136
  {{ limitRemaining }}
136
137
  </a-status-badge>
@@ -1,6 +1,7 @@
1
1
  interface Props {
2
2
  daysRemaining: number;
3
3
  limitRemaining: number;
4
+ limitRemainingLabel?: string;
4
5
  moduleName?: string;
5
6
  isAuthenticated: boolean;
6
7
  }
@@ -2,7 +2,7 @@
2
2
  import { navigateToLocalizedPage } from "#adata-ui/utils/localizedNavigation";
3
3
  import * as z from "zod";
4
4
  import { ref, computed, reactive, onMounted, onBeforeUnmount } from "vue";
5
- import { useCookie, useNuxtApp, useAppConfig, useI18n, navigateTo } from "#imports";
5
+ import { useCookie, useNuxtApp, useAppConfig, useI18n, navigateTo, useRoute } from "#imports";
6
6
  import { useIdModals } from "#adata-ui/composables/useIdModals";
7
7
  import { useUrls } from "#adata-ui/utils/useUrls";
8
8
  import { removeTrailingSlash } from "#adata-ui/utils/removeTrailingSlash";
@@ -10,6 +10,7 @@ const { $toast } = useNuxtApp();
10
10
  const { commonAuth } = useAppConfig();
11
11
  const { t, locale } = useI18n();
12
12
  const { pk, landing } = useUrls();
13
+ const route = useRoute();
13
14
  const regex = /^\/counterparty\/main\/company\/\d+\/basic-info$/;
14
15
  const { loginModal, registrationModal, recoveryModal, confirmAccountOtpModal, twoFactorModal, intermediateState } = useIdModals();
15
16
  const authApiURL = commonAuth.authApiURL;
@@ -114,8 +115,11 @@ async function submit() {
114
115
  $toast.success(t("reuse.successfully"));
115
116
  loginModal.value = false;
116
117
  const path = window.location.pathname;
118
+ const redirectUrl = route.query.redirect;
117
119
  if (regex.test(path)) {
118
120
  navigateTo(`${pk}/company/${path.split("/")[4]}`, { external: true });
121
+ } else if (redirectUrl) {
122
+ navigateTo(redirectUrl, { external: true });
119
123
  } else {
120
124
  window.location.reload();
121
125
  }
@@ -22,7 +22,7 @@ const RuLocale = {
22
22
  },
23
23
  header: {
24
24
  top: {
25
- requestLimit: "C\u0443\u0442\u043E\u0447\u043D\u044B\u0439 \u043B\u0438\u043C\u0438\u0442 \u0437\u0430\u043F\u0440\u043E\u0441\u043E\u0432",
25
+ requestLimit: "\u0421\u0443\u0442\u043E\u0447\u043D\u044B\u0439 \u043B\u0438\u043C\u0438\u0442 \u0437\u0430\u043F\u0440\u043E\u0441\u043E\u0432",
26
26
  daysLeft: "\u041E\u0441\u0442\u0430\u0442\u043E\u043A \u0434\u043D\u0435\u0439"
27
27
  },
28
28
  profile: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "3.1.41",
3
+ "version": "3.1.43",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",