pukaad-ui-lib 1.275.0 → 1.277.0

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.275.0",
4
+ "version": "1.277.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -17,15 +17,11 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
17
17
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
18
  close: () => any;
19
19
  "update:modelValue": (value: boolean) => any;
20
- complete: (data: {
21
- secId: string;
22
- } | null) => any;
20
+ complete: (data?: any) => any;
23
21
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
22
  onClose?: (() => any) | undefined;
25
23
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
26
- onComplete?: ((data: {
27
- secId: string;
28
- } | null) => any) | undefined;
24
+ onComplete?: ((data?: any) => any) | undefined;
29
25
  }>, {
30
26
  title: string;
31
27
  mode: "login" | "secure";
@@ -50,7 +50,7 @@ const handleSubmit = async () => {
50
50
  if (props.mode === "secure") {
51
51
  loading.value = true;
52
52
  try {
53
- await api("/me/change-password", {
53
+ const res = await api("/me/change-password", {
54
54
  method: "POST",
55
55
  body: {
56
56
  old_password: props.oldPassword,
@@ -59,9 +59,8 @@ const handleSubmit = async () => {
59
59
  logout_all: logoutAll.value
60
60
  }
61
61
  });
62
- emit("complete", null);
62
+ emit("complete", res?.data);
63
63
  isOpen.value = false;
64
- $toast?.success?.("\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08");
65
64
  } catch (e) {
66
65
  const msg = e?.data?.message?.description || e?.data?.message || "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E43\u0E19\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D";
67
66
  $toast?.error?.(msg);
@@ -17,15 +17,11 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
17
17
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
18
  close: () => any;
19
19
  "update:modelValue": (value: boolean) => any;
20
- complete: (data: {
21
- secId: string;
22
- } | null) => any;
20
+ complete: (data?: any) => any;
23
21
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
22
  onClose?: (() => any) | undefined;
25
23
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
26
- onComplete?: ((data: {
27
- secId: string;
28
- } | null) => any) | undefined;
24
+ onComplete?: ((data?: any) => any) | undefined;
29
25
  }>, {
30
26
  title: string;
31
27
  mode: "login" | "secure";
@@ -7,10 +7,10 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "update:modelValue": (value: boolean) => any;
9
9
  } & {
10
- complete: (state: ModalSecureState) => any;
10
+ complete: (state: ModalSecureState, data?: any) => any;
11
11
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
12
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
13
- onComplete?: ((state: ModalSecureState) => any) | undefined;
13
+ onComplete?: ((state: ModalSecureState, data?: any) => any) | undefined;
14
14
  }>, {
15
15
  phone: string;
16
16
  email: string;
@@ -145,7 +145,7 @@ const handleComplete = (key, data) => {
145
145
  modalStates.passwordNew = true;
146
146
  } else if (key === "passwordNew") {
147
147
  isOpen.value = false;
148
- emit("complete", "reset-password");
148
+ emit("complete", "reset-password", data);
149
149
  }
150
150
  }
151
151
  };
@@ -7,10 +7,10 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "update:modelValue": (value: boolean) => any;
9
9
  } & {
10
- complete: (state: ModalSecureState) => any;
10
+ complete: (state: ModalSecureState, data?: any) => any;
11
11
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
12
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
13
- onComplete?: ((state: ModalSecureState) => any) | undefined;
13
+ onComplete?: ((state: ModalSecureState, data?: any) => any) | undefined;
14
14
  }>, {
15
15
  phone: string;
16
16
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.275.0",
3
+ "version": "1.277.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",