@jctrans-materials/comps-vue3 1.0.13 → 1.0.15
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/components/JcLoginDialog/cmps/FooterBox.d.ts +27 -0
- package/dist/components/JcLoginDialog/cmps/ForgetPassword.d.ts +10 -0
- package/dist/components/JcLoginDialog/cmps/ThirdLogin.d.ts +30 -0
- package/dist/components/JcLoginDialog/cmps/WechatBindLogin.d.ts +19 -0
- package/dist/components/JcLoginDialog/cmps/WechatChooseType.d.ts +21 -0
- package/dist/components/JcLoginDialog/cmps/WechatLogin.d.ts +43 -0
- package/dist/components/JcLoginDialog/composables/useAuthLogin.d.ts +24 -0
- package/dist/components/JcLoginDialog/composables/useForgetPassword.d.ts +34 -0
- package/dist/components/JcLoginDialog/composables/useThirdPartyLogin.d.ts +26 -0
- package/dist/components/JcSearch/index.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
label: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
subLabel: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
handleClick: (...args: any[]) => void;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
+
label: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
subLabel: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{
|
|
22
|
+
onHandleClick?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
label: string;
|
|
25
|
+
subLabel: string;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
isEn?: any;
|
|
3
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
"to-login": (...args: any[]) => void;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
6
|
+
isEn?: any;
|
|
7
|
+
}> & Readonly<{
|
|
8
|
+
"onTo-login"?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
isEn: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
loginType: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>, {
|
|
12
|
+
initLogin: (type: string) => void;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"to-login": (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
isEn: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
loginType: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
}>> & Readonly<{
|
|
25
|
+
"onTo-login"?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
isEn: boolean;
|
|
28
|
+
loginType: string;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
isEn?: boolean;
|
|
3
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
needComplete: (data: any) => void;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
isEn?: boolean;
|
|
7
|
+
}>>> & Readonly<{
|
|
8
|
+
onNeedComplete?: ((data: any) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
isEn?: boolean;
|
|
3
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
toBind: () => void;
|
|
5
|
+
toRegister: () => void;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
isEn?: boolean;
|
|
8
|
+
}>>> & Readonly<{
|
|
9
|
+
onToBind?: (() => any) | undefined;
|
|
10
|
+
onToRegister?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
appId: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
isEn?: boolean;
|
|
6
|
+
}>, {
|
|
7
|
+
isEn: boolean;
|
|
8
|
+
appId: string;
|
|
9
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
success: (...args: any[]) => void;
|
|
11
|
+
"need-register": (...args: any[]) => void;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
appId: string;
|
|
14
|
+
path?: string;
|
|
15
|
+
isEn?: boolean;
|
|
16
|
+
}>, {
|
|
17
|
+
isEn: boolean;
|
|
18
|
+
appId: string;
|
|
19
|
+
}>>> & Readonly<{
|
|
20
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
"onNeed-register"?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
isEn: boolean;
|
|
24
|
+
appId: string;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
+
} : {
|
|
32
|
+
type: import('vue').PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type __VLS_WithDefaults<P, D> = {
|
|
37
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
38
|
+
default: D[K];
|
|
39
|
+
}> : P[K];
|
|
40
|
+
};
|
|
41
|
+
type __VLS_Prettify<T> = {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} & {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AreaCodeData, CaptchaData, LoginFormData } from '../loginDialog';
|
|
2
|
+
|
|
3
|
+
interface AuthOptions {
|
|
4
|
+
appId?: string;
|
|
5
|
+
isEn?: boolean;
|
|
6
|
+
onSuccess?: (data: any) => void;
|
|
7
|
+
onNeedComplete?: (data: any) => void;
|
|
8
|
+
}
|
|
9
|
+
type LoginType = "account" | "code" | "wechat";
|
|
10
|
+
export declare function useAuthLogin(options?: AuthOptions): {
|
|
11
|
+
loading: import('vue').Ref<boolean, boolean>;
|
|
12
|
+
captchaVisible: import('vue').Ref<boolean, boolean>;
|
|
13
|
+
handleAuthSubmit: (params: {
|
|
14
|
+
loginType: LoginType;
|
|
15
|
+
loginForm: LoginFormData;
|
|
16
|
+
captchaData: CaptchaData;
|
|
17
|
+
isKick?: boolean;
|
|
18
|
+
mobileUid?: string;
|
|
19
|
+
emailUid?: string;
|
|
20
|
+
areaCodeData?: AreaCodeData[];
|
|
21
|
+
}) => Promise<void>;
|
|
22
|
+
executeRedirect: (loginData: any) => void;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare function useForgetPassword(props: {
|
|
2
|
+
isEn: boolean;
|
|
3
|
+
}): {
|
|
4
|
+
activeStep: import('vue').Ref<number, number>;
|
|
5
|
+
activeTab: import('vue').Ref<"email" | "mobile", "email" | "mobile">;
|
|
6
|
+
loading: import('vue').Ref<boolean, boolean>;
|
|
7
|
+
verifyVisible: import('vue').Ref<boolean, boolean>;
|
|
8
|
+
formA: {
|
|
9
|
+
userName: string;
|
|
10
|
+
};
|
|
11
|
+
formB: {
|
|
12
|
+
code: string;
|
|
13
|
+
password: string;
|
|
14
|
+
confirmPassword: string;
|
|
15
|
+
};
|
|
16
|
+
userData: import('vue').Ref<any, any>;
|
|
17
|
+
disabledTabs: {
|
|
18
|
+
email: boolean;
|
|
19
|
+
mobile: boolean;
|
|
20
|
+
};
|
|
21
|
+
showCustomerService: import('vue').Ref<boolean, boolean>;
|
|
22
|
+
codeCountdown: {
|
|
23
|
+
mobile: boolean;
|
|
24
|
+
email: boolean;
|
|
25
|
+
};
|
|
26
|
+
codeReady: import('vue').Ref<boolean, boolean>;
|
|
27
|
+
handleTriggerVerify: () => void;
|
|
28
|
+
handleVerifySuccess: (captchaData: any) => void;
|
|
29
|
+
handleSendCodeVerifySuccess: ({ captchaData, startTimer }: {
|
|
30
|
+
captchaData: any;
|
|
31
|
+
startTimer: any;
|
|
32
|
+
}) => void;
|
|
33
|
+
handleSubmitReset: () => Promise<boolean | undefined>;
|
|
34
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface ThirdPartyConfig {
|
|
2
|
+
appId: string;
|
|
3
|
+
baseUrl?: string;
|
|
4
|
+
redirectPath?: string;
|
|
5
|
+
onSuccess?: (data: any) => void;
|
|
6
|
+
onError?: (error: any) => void;
|
|
7
|
+
onNeedBind?: (list: any[]) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const getThirdPartySessions: () => {
|
|
10
|
+
thirdPartyId: string;
|
|
11
|
+
thirdPartyEmail: string;
|
|
12
|
+
thirdPartyType: string;
|
|
13
|
+
thirdPartyUserName: string;
|
|
14
|
+
mobileEmailList: any;
|
|
15
|
+
};
|
|
16
|
+
export declare function useThirdPartyLogin(config: ThirdPartyConfig): {
|
|
17
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
18
|
+
isBindDialogVisible: import('vue').Ref<boolean, boolean>;
|
|
19
|
+
isRegisterVisible: import('vue').Ref<boolean, boolean>;
|
|
20
|
+
isUserClosed: import('vue').Ref<boolean, boolean>;
|
|
21
|
+
bindList: import('vue').Ref<any[], any[]>;
|
|
22
|
+
loginResult: import('vue').Ref<any, any>;
|
|
23
|
+
startLogin: (type: "FACEBOOK" | "LINKEDIN" | "TEST") => void;
|
|
24
|
+
resetState: () => void;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -92,11 +92,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
92
92
|
disabled: boolean;
|
|
93
93
|
modelValue: SearchItem | SearchItem[] | null;
|
|
94
94
|
multiple: boolean;
|
|
95
|
+
collapseTags: boolean;
|
|
95
96
|
lang: "" | "en" | "cn" | "en-US" | "zh-CN";
|
|
96
97
|
historyKey: string;
|
|
97
98
|
parentId: number | string | null;
|
|
98
99
|
parentType: "Country" | "City" | null;
|
|
99
|
-
collapseTags: boolean;
|
|
100
100
|
searchTypeList: string[];
|
|
101
101
|
showSearchIcon: boolean;
|
|
102
102
|
showItemTag: boolean;
|