@jctrans-materials/comps-vue3 1.0.21 → 1.0.23
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/GlobalModal.d.ts +2 -0
- package/dist/components/JcCarrierSearch/index.d.ts +108 -0
- package/dist/components/JcLoginDialog/cmps/ApplyJoinBtn.d.ts +33 -0
- 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 +45 -0
- package/dist/components/JcLoginDialog/composables/useAuthLogin.d.ts +35 -0
- package/dist/components/JcLoginDialog/composables/useForgetPassword.d.ts +34 -0
- package/dist/components/JcLoginDialog/composables/useThirdPartyLogin.d.ts +26 -0
- package/dist/components/JcLoginDialog/constant.d.ts +66 -0
- package/dist/components/JcMSearch/common.d.ts +16 -0
- package/dist/components/JcMSearch/hooks/useFloating.d.ts +8 -0
- package/dist/components/JcMSearch/hooks/useSearchHistory.d.ts +29 -0
- package/dist/components/JcMSearch/hooks/useSearchLogic.d.ts +30 -0
- package/dist/components/JcMSearch/index.d.ts +41 -0
- package/dist/components/JcSearch/common.d.ts +16 -0
- package/dist/components/JcSearch/hooks/useFloating.d.ts +8 -0
- package/dist/components/JcSearch/hooks/useSearchHistory.d.ts +29 -0
- package/dist/components/JcSearch/hooks/useSearchLogic.d.ts +38 -0
- package/dist/components/JcSearch/hooks/useSelectBehavior.d.ts +9 -0
- package/dist/components/JcSearch/index.d.ts +132 -0
- package/dist/components/hooks/isEn.d.ts +3 -0
- package/dist/hooks/useLang.d.ts +3 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.esm.js +1 -1
- package/dist/plugin.d.ts +6 -0
- package/package.json +2 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { LocationUnifiedItem, LocationType } from '@jctrans-materials/shared';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
prefix?(_: {}): any;
|
|
6
|
+
option?(_: {
|
|
7
|
+
item: {
|
|
8
|
+
id: number | string;
|
|
9
|
+
type: LocationType;
|
|
10
|
+
nameCn?: string | undefined;
|
|
11
|
+
nameEn?: string | undefined;
|
|
12
|
+
display?: string | undefined;
|
|
13
|
+
displayEn?: string | undefined;
|
|
14
|
+
displayCn?: string | undefined;
|
|
15
|
+
code?: string | undefined;
|
|
16
|
+
scacCode?: string | undefined;
|
|
17
|
+
iataCode?: string | undefined;
|
|
18
|
+
carrierCode?: string | undefined;
|
|
19
|
+
lineType?: string | undefined;
|
|
20
|
+
continent?: Record<string, any> | undefined;
|
|
21
|
+
country?: Record<string, any> | undefined;
|
|
22
|
+
city?: Record<string, any> | undefined;
|
|
23
|
+
province?: Record<string, any> | undefined;
|
|
24
|
+
raw?: any;
|
|
25
|
+
};
|
|
26
|
+
}): any;
|
|
27
|
+
};
|
|
28
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
29
|
+
modelValue: {
|
|
30
|
+
type: PropType<string | number | Array<any> | null | undefined>;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
33
|
+
isEn: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
type: {
|
|
38
|
+
type: () => LocationType;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
lineType: {
|
|
42
|
+
type: () => "air" | "shipping";
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
placeholder: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
multiple: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
defaultOptions: {
|
|
54
|
+
type: () => LocationUnifiedItem[];
|
|
55
|
+
default: () => never[];
|
|
56
|
+
};
|
|
57
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
58
|
+
change: (...args: any[]) => void;
|
|
59
|
+
"update:modelValue": (...args: any[]) => void;
|
|
60
|
+
apply: (...args: any[]) => void;
|
|
61
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
62
|
+
modelValue: {
|
|
63
|
+
type: PropType<string | number | Array<any> | null | undefined>;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
isEn: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
type: {
|
|
71
|
+
type: () => LocationType;
|
|
72
|
+
required: true;
|
|
73
|
+
};
|
|
74
|
+
lineType: {
|
|
75
|
+
type: () => "air" | "shipping";
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
placeholder: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
multiple: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
defaultOptions: {
|
|
87
|
+
type: () => LocationUnifiedItem[];
|
|
88
|
+
default: () => never[];
|
|
89
|
+
};
|
|
90
|
+
}>> & Readonly<{
|
|
91
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
92
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
93
|
+
onApply?: ((...args: any[]) => any) | undefined;
|
|
94
|
+
}>, {
|
|
95
|
+
modelValue: string | number | any[] | null | undefined;
|
|
96
|
+
placeholder: string;
|
|
97
|
+
isEn: boolean;
|
|
98
|
+
lineType: "air" | "shipping";
|
|
99
|
+
multiple: boolean;
|
|
100
|
+
defaultOptions: LocationUnifiedItem[];
|
|
101
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
102
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
103
|
+
export default _default;
|
|
104
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
105
|
+
new (): {
|
|
106
|
+
$slots: S;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
isEn: boolean;
|
|
3
|
+
}>, {
|
|
4
|
+
isEn: boolean;
|
|
5
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"apply-join": (...args: any[]) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
isEn: boolean;
|
|
9
|
+
}>, {
|
|
10
|
+
isEn: boolean;
|
|
11
|
+
}>>> & Readonly<{
|
|
12
|
+
"onApply-join"?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
isEn: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithDefaults<P, D> = {
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
28
|
+
default: D[K];
|
|
29
|
+
}> : P[K];
|
|
30
|
+
};
|
|
31
|
+
type __VLS_Prettify<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
@@ -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,45 @@
|
|
|
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
|
+
"need-complete": (...args: any[]) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
+
appId: string;
|
|
15
|
+
path?: string;
|
|
16
|
+
isEn?: boolean;
|
|
17
|
+
}>, {
|
|
18
|
+
isEn: boolean;
|
|
19
|
+
appId: string;
|
|
20
|
+
}>>> & Readonly<{
|
|
21
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
"onNeed-register"?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
"onNeed-complete"?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
isEn: boolean;
|
|
26
|
+
appId: string;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
31
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
+
} : {
|
|
34
|
+
type: import('vue').PropType<T[K]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
type __VLS_WithDefaults<P, D> = {
|
|
39
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
40
|
+
default: D[K];
|
|
41
|
+
}> : P[K];
|
|
42
|
+
};
|
|
43
|
+
type __VLS_Prettify<T> = {
|
|
44
|
+
[K in keyof T]: T[K];
|
|
45
|
+
} & {};
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
loginNeedComplete: import('vue').Ref<boolean, boolean>;
|
|
24
|
+
handleBindSubmit: (params: {
|
|
25
|
+
loginType: "account" | "code";
|
|
26
|
+
loginForm: LoginFormData;
|
|
27
|
+
captchaData: CaptchaData;
|
|
28
|
+
uniqueCode: string;
|
|
29
|
+
isKick?: boolean;
|
|
30
|
+
mobileUid?: string;
|
|
31
|
+
emailUid?: string;
|
|
32
|
+
areaCodeData?: AreaCodeData[];
|
|
33
|
+
}) => Promise<void>;
|
|
34
|
+
};
|
|
35
|
+
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 {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare function validateQQEmail(rule: any, value: any, callback: any): void;
|
|
2
|
+
interface ValidationRule {
|
|
3
|
+
field?: string;
|
|
4
|
+
fullField?: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
msg?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function validateUserEmail(rule: ValidationRule, value: string | null | undefined, callback: (error?: Error) => void, isEn?: boolean): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* 整合后的用户姓名校验
|
|
11
|
+
* @param {Object} rule 校验规则
|
|
12
|
+
* @param {String} value 输入值
|
|
13
|
+
* @param {Function} callback 回调函数
|
|
14
|
+
* @param {Boolean} isEn 语种环境 (默认 true)
|
|
15
|
+
* @param {Boolean} isChina 是否为中国区 (通过 context 传入,决定校验规则)
|
|
16
|
+
*/
|
|
17
|
+
export declare function validateName(rule: any, value: any, callback: any, isEn?: boolean, isChina?: boolean): any;
|
|
18
|
+
/**
|
|
19
|
+
* 用户名校验函数
|
|
20
|
+
* @param {Object} rule 校验规则
|
|
21
|
+
* @param {String} value 输入值
|
|
22
|
+
* @param {Function} callback 回调函数
|
|
23
|
+
* @param {Boolean} isEn 是否为英文环境 (默认为 true)
|
|
24
|
+
*/
|
|
25
|
+
export declare function validateUserName(rule: any, value: any, callback: any, isEn?: boolean): any;
|
|
26
|
+
/**
|
|
27
|
+
* 密码校验函数
|
|
28
|
+
* @param {Object} rule 校验规则
|
|
29
|
+
* @param {String} value 输入值
|
|
30
|
+
* @param {Function} callback 回调函数
|
|
31
|
+
* @param {Boolean} isEn 是否为英文环境
|
|
32
|
+
*/
|
|
33
|
+
export declare function validateUserPass(rule: any, value: any, callback: any, isEn?: boolean): any;
|
|
34
|
+
/**
|
|
35
|
+
* 手机号校验函数(带接口查重)
|
|
36
|
+
* @param {Object} rule 校验规则
|
|
37
|
+
* @param {String} value 输入值
|
|
38
|
+
* @param {Function} callback 回调函数
|
|
39
|
+
* @param {Boolean} isEn 是否为英文环境
|
|
40
|
+
*/
|
|
41
|
+
export declare function validateUserMobilefive(rule: any, value: any, callback: any, isEn?: boolean): Promise<any>;
|
|
42
|
+
/**
|
|
43
|
+
* 空格处理工具函数
|
|
44
|
+
*/
|
|
45
|
+
export declare function replaceWSpace(value: any): any;
|
|
46
|
+
/**
|
|
47
|
+
* 公司名称校验函数 (支持中英文切换)
|
|
48
|
+
* @param {Object} rule 校验规则
|
|
49
|
+
* @param {String} value 输入值
|
|
50
|
+
* @param {Function} callback 回调函数
|
|
51
|
+
* @param {Boolean} isEn 是否为英文环境
|
|
52
|
+
* @param {Object} context 传入 this 上下文(用于访问 countryId, appId 等)
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* 整合后的公司名称校验(根据国家 ID 自动切换逻辑)
|
|
56
|
+
* @param {Object} rule 校验规则
|
|
57
|
+
* @param {String} value 输入值
|
|
58
|
+
* @param {Function} callback 回调函数
|
|
59
|
+
* @param {Boolean} isEn 语种环境
|
|
60
|
+
* @param {Object} context 组件实例 (this)
|
|
61
|
+
*/
|
|
62
|
+
export declare function validateCompanyName(rule: any, value: any, callback: any, isEn: boolean | undefined, context: any): Promise<any>;
|
|
63
|
+
export declare function validateVerifyCode(rule: any, value: any, callback: any, isEn?: boolean): any;
|
|
64
|
+
export declare function go2Agreement(target?: string): void;
|
|
65
|
+
export declare function go2Policy(target?: string): void;
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LocationType } from '@jctrans-materials/shared';
|
|
2
|
+
|
|
3
|
+
export declare function getCountryApi(key: string): Promise<import('@jctrans-materials/shared').BaseResponse<import('@jctrans-materials/shared').UnifiedItem>>;
|
|
4
|
+
export declare function searchAllApi(key: string, types: LocationType[]): Promise<import('@jctrans-materials/shared').BaseResponse<import('@jctrans-materials/shared').UnifiedItem>>;
|
|
5
|
+
export declare function searchByNameApi(key: string, types?: LocationType[], other?: {}): Promise<{
|
|
6
|
+
records: import('@jctrans-materials/shared').LocationUnifiedItem[];
|
|
7
|
+
total: number;
|
|
8
|
+
current: number;
|
|
9
|
+
size: number;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const searchByIdWithTypeApi: (id: string | number, type: LocationType) => Promise<{
|
|
12
|
+
records: import('@jctrans-materials/shared').LocationUnifiedItem[];
|
|
13
|
+
total: number;
|
|
14
|
+
current: number;
|
|
15
|
+
size: number;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties, Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface UseFloatingReturn {
|
|
4
|
+
floatingStyles: Ref<CSSProperties>;
|
|
5
|
+
startTrack: () => void;
|
|
6
|
+
stopTrack: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useFloating(reference: Ref<HTMLElement | null>, floating: Ref<HTMLElement | null>): UseFloatingReturn;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { SearchItem } from '../type';
|
|
3
|
+
|
|
4
|
+
export declare function useSearchHistory(historyKey: Ref<string | undefined>): {
|
|
5
|
+
searchHistory: Ref<{
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
id?: string | number | undefined;
|
|
8
|
+
type: string;
|
|
9
|
+
display?: string | undefined;
|
|
10
|
+
displayEn?: string | undefined;
|
|
11
|
+
displayCn?: string | undefined;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
nameEn?: string | undefined;
|
|
14
|
+
nameCn?: string | undefined;
|
|
15
|
+
}[], SearchItem[] | {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
id?: string | number | undefined;
|
|
18
|
+
type: string;
|
|
19
|
+
display?: string | undefined;
|
|
20
|
+
displayEn?: string | undefined;
|
|
21
|
+
displayCn?: string | undefined;
|
|
22
|
+
name?: string | undefined;
|
|
23
|
+
nameEn?: string | undefined;
|
|
24
|
+
nameCn?: string | undefined;
|
|
25
|
+
}[]>;
|
|
26
|
+
saveToHistory: (item: SearchItem) => void;
|
|
27
|
+
clearHistory: () => void;
|
|
28
|
+
HasHistory: import('vue').ComputedRef<boolean>;
|
|
29
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { SearchItem } from '../type';
|
|
3
|
+
|
|
4
|
+
export declare function useSearchLogic(query: Ref<string>, searchTypeList: Ref<string[]>): {
|
|
5
|
+
searchResults: Ref<{
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
id?: string | number | undefined;
|
|
8
|
+
type: string;
|
|
9
|
+
display?: string | undefined;
|
|
10
|
+
displayEn?: string | undefined;
|
|
11
|
+
displayCn?: string | undefined;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
nameEn?: string | undefined;
|
|
14
|
+
nameCn?: string | undefined;
|
|
15
|
+
}[], SearchItem[] | {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
id?: string | number | undefined;
|
|
18
|
+
type: string;
|
|
19
|
+
display?: string | undefined;
|
|
20
|
+
displayEn?: string | undefined;
|
|
21
|
+
displayCn?: string | undefined;
|
|
22
|
+
name?: string | undefined;
|
|
23
|
+
nameEn?: string | undefined;
|
|
24
|
+
nameCn?: string | undefined;
|
|
25
|
+
}[]>;
|
|
26
|
+
loading: Ref<boolean, boolean>;
|
|
27
|
+
isFetchingMore: Ref<boolean, boolean>;
|
|
28
|
+
isFinished: Ref<boolean, boolean>;
|
|
29
|
+
fetchData: (append?: boolean) => Promise<void>;
|
|
30
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue?: any;
|
|
3
|
+
multiple?: boolean;
|
|
4
|
+
lang?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
historyKey?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
9
|
+
lang: string;
|
|
10
|
+
multiple: boolean;
|
|
11
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
select: (...args: any[]) => void;
|
|
13
|
+
"update:modelValue": (...args: any[]) => void;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
15
|
+
lang: string;
|
|
16
|
+
multiple: boolean;
|
|
17
|
+
}>>> & Readonly<{
|
|
18
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
multiple: boolean;
|
|
22
|
+
lang: string;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: import('vue').PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
+
default: D[K];
|
|
37
|
+
}> : P[K];
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LocationType } from '@jctrans-materials/shared';
|
|
2
|
+
|
|
3
|
+
export declare function getCountryApi(key: string): Promise<import('@jctrans-materials/shared').BaseResponse<import('@jctrans-materials/shared').UnifiedItem>>;
|
|
4
|
+
export declare function searchAllApi(key: string, types: LocationType[]): Promise<import('@jctrans-materials/shared').BaseResponse<import('@jctrans-materials/shared').UnifiedItem>>;
|
|
5
|
+
export declare function searchByNameApi(key: string, types?: LocationType[], other?: {}): Promise<{
|
|
6
|
+
records: import('@jctrans-materials/shared').LocationUnifiedItem[];
|
|
7
|
+
total: number;
|
|
8
|
+
current: number;
|
|
9
|
+
size: number;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const searchByIdWithTypeApi: (id: string | number | Array<number | string>, type: LocationType) => Promise<{
|
|
12
|
+
records: import('@jctrans-materials/shared').LocationUnifiedItem[];
|
|
13
|
+
total: number;
|
|
14
|
+
current: number;
|
|
15
|
+
size: number;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties, Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface UseFloatingReturn {
|
|
4
|
+
floatingStyles: Ref<CSSProperties>;
|
|
5
|
+
startTrack: () => void;
|
|
6
|
+
stopTrack: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useFloating(reference: Ref<HTMLElement | null>, floating: Ref<HTMLElement | null>): UseFloatingReturn;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { SearchItem } from '../type';
|
|
3
|
+
|
|
4
|
+
export declare function useSearchHistory(historyKey: Ref<string | undefined>): {
|
|
5
|
+
searchHistory: Ref<{
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
id?: string | number | undefined;
|
|
8
|
+
type: string;
|
|
9
|
+
display?: string | undefined;
|
|
10
|
+
displayEn?: string | undefined;
|
|
11
|
+
displayCn?: string | undefined;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
nameEn?: string | undefined;
|
|
14
|
+
nameCn?: string | undefined;
|
|
15
|
+
}[], SearchItem[] | {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
id?: string | number | undefined;
|
|
18
|
+
type: string;
|
|
19
|
+
display?: string | undefined;
|
|
20
|
+
displayEn?: string | undefined;
|
|
21
|
+
displayCn?: string | undefined;
|
|
22
|
+
name?: string | undefined;
|
|
23
|
+
nameEn?: string | undefined;
|
|
24
|
+
nameCn?: string | undefined;
|
|
25
|
+
}[]>;
|
|
26
|
+
saveToHistory: (item: SearchItem) => void;
|
|
27
|
+
clearHistory: () => void;
|
|
28
|
+
HasHistory: import('vue').ComputedRef<boolean>;
|
|
29
|
+
};
|