@jctrans-materials/comps-vue3 1.0.18 → 1.0.20
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/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +2 -2
- package/dist/components/GlobalModal.d.ts +0 -2
- package/dist/components/JcCarrierSearch/index.d.ts +0 -90
- package/dist/components/JcLoginDialog/cmps/ApplyJoinBtn.d.ts +0 -33
- package/dist/components/JcLoginDialog/cmps/FooterBox.d.ts +0 -27
- package/dist/components/JcLoginDialog/cmps/ForgetPassword.d.ts +0 -10
- package/dist/components/JcLoginDialog/cmps/ThirdLogin.d.ts +0 -30
- package/dist/components/JcLoginDialog/cmps/WechatBindLogin.d.ts +0 -19
- package/dist/components/JcLoginDialog/cmps/WechatChooseType.d.ts +0 -21
- package/dist/components/JcLoginDialog/cmps/WechatLogin.d.ts +0 -43
- package/dist/components/JcLoginDialog/composables/useAuthLogin.d.ts +0 -24
- package/dist/components/JcLoginDialog/composables/useForgetPassword.d.ts +0 -34
- package/dist/components/JcLoginDialog/composables/useThirdPartyLogin.d.ts +0 -26
- package/dist/components/JcLoginDialog/constant.d.ts +0 -66
- package/dist/components/JcMSearch/common.d.ts +0 -16
- package/dist/components/JcMSearch/hooks/useFloating.d.ts +0 -8
- package/dist/components/JcMSearch/hooks/useSearchHistory.d.ts +0 -29
- package/dist/components/JcMSearch/hooks/useSearchLogic.d.ts +0 -30
- package/dist/components/JcMSearch/index.d.ts +0 -41
- package/dist/components/JcSearch/common.d.ts +0 -16
- package/dist/components/JcSearch/hooks/useFloating.d.ts +0 -8
- package/dist/components/JcSearch/hooks/useSearchHistory.d.ts +0 -29
- package/dist/components/JcSearch/hooks/useSearchLogic.d.ts +0 -38
- package/dist/components/JcSearch/hooks/useSelectBehavior.d.ts +0 -9
- package/dist/components/JcSearch/index.d.ts +0 -132
- package/dist/components/hooks/isEn.d.ts +0 -3
- package/dist/hooks/useLang.d.ts +0 -3
- package/dist/index.d.ts +0 -14
- package/dist/plugin.d.ts +0 -6
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { SearchItem } from '../type';
|
|
3
|
-
|
|
4
|
-
interface SearchContext {
|
|
5
|
-
parentId?: Ref<number | string | null>;
|
|
6
|
-
parentType?: Ref<"Country" | "City" | null>;
|
|
7
|
-
}
|
|
8
|
-
export declare function useSearchLogic(query: Ref<string>, searchTypeList: Ref<string[]>, context?: SearchContext): {
|
|
9
|
-
searchResults: Ref<{
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
id?: string | number | undefined;
|
|
12
|
-
type: string;
|
|
13
|
-
display?: string | undefined;
|
|
14
|
-
displayEn?: string | undefined;
|
|
15
|
-
displayCn?: string | undefined;
|
|
16
|
-
name?: string | undefined;
|
|
17
|
-
nameEn?: string | undefined;
|
|
18
|
-
nameCn?: string | undefined;
|
|
19
|
-
}[], SearchItem[] | {
|
|
20
|
-
[x: string]: any;
|
|
21
|
-
id?: string | number | undefined;
|
|
22
|
-
type: string;
|
|
23
|
-
display?: string | undefined;
|
|
24
|
-
displayEn?: string | undefined;
|
|
25
|
-
displayCn?: string | undefined;
|
|
26
|
-
name?: string | undefined;
|
|
27
|
-
nameEn?: string | undefined;
|
|
28
|
-
nameCn?: string | undefined;
|
|
29
|
-
}[]>;
|
|
30
|
-
loading: Ref<boolean, boolean>;
|
|
31
|
-
isFetchingMore: Ref<boolean, boolean>;
|
|
32
|
-
isFinished: import('vue').ComputedRef<boolean>;
|
|
33
|
-
currentPage: Ref<number, number>;
|
|
34
|
-
total: Ref<number, number>;
|
|
35
|
-
fetchData: (page?: number, appendMode?: boolean) => Promise<void>;
|
|
36
|
-
filterByTypes: (data: SearchItem[]) => SearchItem[];
|
|
37
|
-
};
|
|
38
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
|
|
3
|
-
export declare function useSelectBehavior(multiple: boolean, inputRef: Ref<HTMLInputElement | null>, query: Ref<string>, emits: any): {
|
|
4
|
-
isDropdownVisible: Ref<boolean, boolean>;
|
|
5
|
-
openDropdown: () => boolean;
|
|
6
|
-
closeDropdown: () => boolean;
|
|
7
|
-
handleAfterSelect: () => void;
|
|
8
|
-
handleBlur: () => void;
|
|
9
|
-
};
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { SearchItem } from './type';
|
|
2
|
-
|
|
3
|
-
interface Props {
|
|
4
|
-
modelValue?: SearchItem | SearchItem[] | null;
|
|
5
|
-
multiple?: boolean;
|
|
6
|
-
collapseTags?: boolean;
|
|
7
|
-
searchTypeList?: string[];
|
|
8
|
-
historyKey?: string;
|
|
9
|
-
lang?: "" | "en" | "cn" | "en-US" | "zh-CN";
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
showSearchIcon?: boolean;
|
|
12
|
-
showItemTag?: boolean;
|
|
13
|
-
showApplyData?: boolean;
|
|
14
|
-
parentId?: number | string | null;
|
|
15
|
-
parentType?: "Country" | "City" | null;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare function __VLS_template(): {
|
|
19
|
-
prefix?(_: {}): any;
|
|
20
|
-
suffix?(_: {}): any;
|
|
21
|
-
history?(_: {
|
|
22
|
-
searchHistory: {
|
|
23
|
-
[x: string]: any;
|
|
24
|
-
id?: string | number | undefined;
|
|
25
|
-
type: string;
|
|
26
|
-
display?: string | undefined;
|
|
27
|
-
displayEn?: string | undefined;
|
|
28
|
-
displayCn?: string | undefined;
|
|
29
|
-
name?: string | undefined;
|
|
30
|
-
nameEn?: string | undefined;
|
|
31
|
-
nameCn?: string | undefined;
|
|
32
|
-
}[];
|
|
33
|
-
}): any;
|
|
34
|
-
results?(_: {
|
|
35
|
-
searchResults: {
|
|
36
|
-
[x: string]: any;
|
|
37
|
-
id?: string | number | undefined;
|
|
38
|
-
type: string;
|
|
39
|
-
display?: string | undefined;
|
|
40
|
-
displayEn?: string | undefined;
|
|
41
|
-
displayCn?: string | undefined;
|
|
42
|
-
name?: string | undefined;
|
|
43
|
-
nameEn?: string | undefined;
|
|
44
|
-
nameCn?: string | undefined;
|
|
45
|
-
}[];
|
|
46
|
-
}): any;
|
|
47
|
-
noData?(_: {}): any;
|
|
48
|
-
};
|
|
49
|
-
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
50
|
-
modelValue: null;
|
|
51
|
-
multiple: boolean;
|
|
52
|
-
collapseTags: boolean;
|
|
53
|
-
searchTypeList: () => string[];
|
|
54
|
-
historyKey: undefined;
|
|
55
|
-
lang: string;
|
|
56
|
-
showSearchIcon: boolean;
|
|
57
|
-
showItemTag: boolean;
|
|
58
|
-
showApplyData: boolean;
|
|
59
|
-
parentId: null;
|
|
60
|
-
parentType: null;
|
|
61
|
-
disabled: boolean;
|
|
62
|
-
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
63
|
-
blur: (...args: any[]) => void;
|
|
64
|
-
change: (...args: any[]) => void;
|
|
65
|
-
select: (...args: any[]) => void;
|
|
66
|
-
"update:modelValue": (...args: any[]) => void;
|
|
67
|
-
"submit-search": (...args: any[]) => void;
|
|
68
|
-
remove: (...args: any[]) => void;
|
|
69
|
-
"apply-data": (...args: any[]) => void;
|
|
70
|
-
"apply-data-open": (...args: any[]) => void;
|
|
71
|
-
"apply-data-close": (...args: any[]) => void;
|
|
72
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
73
|
-
modelValue: null;
|
|
74
|
-
multiple: boolean;
|
|
75
|
-
collapseTags: boolean;
|
|
76
|
-
searchTypeList: () => string[];
|
|
77
|
-
historyKey: undefined;
|
|
78
|
-
lang: string;
|
|
79
|
-
showSearchIcon: boolean;
|
|
80
|
-
showItemTag: boolean;
|
|
81
|
-
showApplyData: boolean;
|
|
82
|
-
parentId: null;
|
|
83
|
-
parentType: null;
|
|
84
|
-
disabled: boolean;
|
|
85
|
-
}>>> & Readonly<{
|
|
86
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
87
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
88
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
89
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
90
|
-
"onSubmit-search"?: ((...args: any[]) => any) | undefined;
|
|
91
|
-
onRemove?: ((...args: any[]) => any) | undefined;
|
|
92
|
-
"onApply-data"?: ((...args: any[]) => any) | undefined;
|
|
93
|
-
"onApply-data-open"?: ((...args: any[]) => any) | undefined;
|
|
94
|
-
"onApply-data-close"?: ((...args: any[]) => any) | undefined;
|
|
95
|
-
}>, {
|
|
96
|
-
disabled: boolean;
|
|
97
|
-
modelValue: SearchItem | SearchItem[] | null;
|
|
98
|
-
multiple: boolean;
|
|
99
|
-
collapseTags: boolean;
|
|
100
|
-
lang: "" | "en" | "cn" | "en-US" | "zh-CN";
|
|
101
|
-
historyKey: string;
|
|
102
|
-
parentId: number | string | null;
|
|
103
|
-
parentType: "Country" | "City" | null;
|
|
104
|
-
searchTypeList: string[];
|
|
105
|
-
showSearchIcon: boolean;
|
|
106
|
-
showItemTag: boolean;
|
|
107
|
-
showApplyData: boolean;
|
|
108
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
109
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
110
|
-
export default _default;
|
|
111
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
112
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
113
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
114
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
115
|
-
} : {
|
|
116
|
-
type: import('vue').PropType<T[K]>;
|
|
117
|
-
required: true;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
type __VLS_WithDefaults<P, D> = {
|
|
121
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
122
|
-
default: D[K];
|
|
123
|
-
}> : P[K];
|
|
124
|
-
};
|
|
125
|
-
type __VLS_Prettify<T> = {
|
|
126
|
-
[K in keyof T]: T[K];
|
|
127
|
-
} & {};
|
|
128
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
129
|
-
new (): {
|
|
130
|
-
$slots: S;
|
|
131
|
-
};
|
|
132
|
-
};
|
package/dist/hooks/useLang.d.ts
DELETED
package/dist/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
import { initSharedConfig, createRequest, getAppId, SharedConfig } from '@jctrans-materials/shared';
|
|
3
|
-
|
|
4
|
-
export { createRequest, getAppId, initSharedConfig };
|
|
5
|
-
export * from './plugin';
|
|
6
|
-
export type { SharedConfig };
|
|
7
|
-
export declare const ApplyDataDialog: any, JcSearch: any, GlobalModal: any, JCMSearch: any, ChineseCompanySearch: any, JcLoginDialog: any, CodeInput: any, GoogleInput: any, JcFloatInput: any, JcFloatWrapper: any, JcVerifySlide: any, JcCarrierSearch: any;
|
|
8
|
-
interface JcUIPluginOptions {
|
|
9
|
-
sharedConfig?: Partial<SharedConfig>;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: {
|
|
12
|
-
install(app: App, options?: JcUIPluginOptions): void;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|