adata-ui 4.0.30 → 4.0.32

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": "4.0.30",
8
+ "version": "4.0.32",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { ref, useI18n } from "#imports";
2
+ import { ref, useI18n, computed } from "#imports";
3
3
  import { useMediaQuery } from "@vueuse/core";
4
4
  defineProps({
5
5
  label: { type: String, required: true },
@@ -20,7 +20,8 @@ const props = defineProps({
20
20
  showLogIn: { type: Boolean, required: false, default: true },
21
21
  mobileHeaderType: { type: String, required: false, default: "default" },
22
22
  module: { type: String, required: false, default: "pk" },
23
- oldVersion: { type: String, required: false }
23
+ oldVersion: { type: String, required: false },
24
+ redirectAfterLogin: { type: String, required: false }
24
25
  });
25
26
  const emit = defineEmits(["logout", "search", "login"]);
26
27
  const { t } = useI18n();
@@ -31,7 +32,7 @@ const contacts = ref(useContacts());
31
32
  const goAuth = () => {
32
33
  if (window) {
33
34
  emit("login");
34
- let fullPath = encodeURIComponent(window.location.toString());
35
+ let fullPath = props.redirectAfterLogin ?? encodeURIComponent(window.location.toString());
35
36
  if (fullPath.includes("basic-info")) {
36
37
  fullPath = fullPath.replace("%2Fcounterparty%2Fmain", "").replace("%2Fbasic-info", "");
37
38
  }
@@ -12,6 +12,7 @@ interface Props {
12
12
  mobileHeaderType?: 'search' | 'default';
13
13
  module?: ProjectKeys;
14
14
  oldVersion?: string;
15
+ redirectAfterLogin?: string;
15
16
  }
16
17
  declare var __VLS_29: {};
17
18
  type __VLS_Slots = {} & {
@@ -21,10 +22,10 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
21
22
  daysRemaining: number;
22
23
  limitRemaining: number;
23
24
  isAuthenticated: boolean;
25
+ mobileHeaderType: "search" | "default";
24
26
  module: ProjectKeys;
25
27
  rate: string;
26
28
  balance: number;
27
- mobileHeaderType: "search" | "default";
28
29
  showLogIn: boolean;
29
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
31
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -8,7 +8,7 @@ const props = defineProps({
8
8
  view: { type: String, required: false, default: "default" },
9
9
  size: { type: String, required: false, default: "lg" },
10
10
  form: { type: String, required: false, default: "button" },
11
- icon: { type: null, required: false },
11
+ icon: { type: [Object, Function], required: false },
12
12
  iconClass: { type: String, required: false, default: "" },
13
13
  loading: { type: Boolean, required: false, default: false },
14
14
  disabled: { type: Boolean, required: false, default: false },
@@ -22,10 +22,10 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
22
22
  active: boolean;
23
23
  view: "default" | "outline" | "transparent";
24
24
  to: string;
25
+ loading: boolean;
25
26
  variant: "primary" | "success" | "danger" | "gray" | "ghost";
26
27
  form: "icon" | "button";
27
28
  iconClass: string;
28
- loading: boolean;
29
29
  block: boolean;
30
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
31
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -17,8 +17,11 @@ const emit = defineEmits(["goToAnotherModule", "search"]);
17
17
  >
18
18
  <div
19
19
  v-if="mobileHeaderType === 'default'"
20
- class="flex justify-center"
20
+ class="flex justify-between"
21
21
  >
22
+ <div>
23
+ <slot name="burger"></slot>
24
+ </div>
22
25
  <nuxt-link
23
26
  class="text-deepblue dark:text-[#E3E5E8]"
24
27
  @click="emit('goToAnotherModule')"
@@ -28,6 +31,9 @@ const emit = defineEmits(["goToAnotherModule", "search"]);
28
31
  filled
29
32
  />
30
33
  </nuxt-link>
34
+ <div>
35
+
36
+ </div>
31
37
  </div>
32
38
  <div
33
39
  v-else-if="mobileHeaderType === 'search'"
@@ -46,10 +52,4 @@ const emit = defineEmits(["goToAnotherModule", "search"]);
46
52
  </button>
47
53
  </div>
48
54
  </section>
49
- <div class="lg:hidden">
50
- <div
51
- v-if="langIsOn || module === 'fea'"
52
- class="lg:hidden"
53
- />
54
- </div>
55
55
  </template>
@@ -3,5 +3,15 @@ type __VLS_Props = {
3
3
  langIsOn: boolean;
4
4
  module: string;
5
5
  };
6
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ burger?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
7
12
  export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -22,8 +22,8 @@ type __VLS_Slots = {} & {
22
22
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
23
23
  size: "lg" | "sm" | "xs";
24
24
  view: "transparent" | "main" | "gray" | "blue" | "mobile";
25
- align: "left" | "center";
26
25
  block: boolean;
26
+ align: "left" | "center";
27
27
  badgeSize: "sm" | "md" | "lg";
28
28
  wrapper: "column" | "row";
29
29
  countView: "badge" | "brackets";
@@ -7,7 +7,7 @@ const props = defineProps({
7
7
  titleClasses: { type: String, required: false },
8
8
  cardClasses: { type: String, required: false },
9
9
  valueClasses: { type: String, required: false },
10
- icon: { type: null, required: false }
10
+ icon: { type: [Object, Function], required: false }
11
11
  });
12
12
  const combinedCardClasses = twMerge("flex justify-between items-center rounded-md py-3 px-4 dark:bg-gray-900 bg-white", props.cardClasses);
13
13
  const combinedLeadingClasses = twMerge("rounded-full size-4", props.leadingColor);
@@ -1 +1 @@
1
- export declare const useContacts: () => any;
1
+ 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "4.0.30",
3
+ "version": "4.0.32",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",