@jctrans-materials/comps-vue3 1.0.23 → 1.0.24

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.
Files changed (32) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.esm.js +1 -1
  4. package/package.json +2 -2
  5. package/dist/components/GlobalModal.d.ts +0 -2
  6. package/dist/components/JcCarrierSearch/index.d.ts +0 -108
  7. package/dist/components/JcLoginDialog/cmps/ApplyJoinBtn.d.ts +0 -33
  8. package/dist/components/JcLoginDialog/cmps/FooterBox.d.ts +0 -27
  9. package/dist/components/JcLoginDialog/cmps/ForgetPassword.d.ts +0 -10
  10. package/dist/components/JcLoginDialog/cmps/ThirdLogin.d.ts +0 -30
  11. package/dist/components/JcLoginDialog/cmps/WechatBindLogin.d.ts +0 -19
  12. package/dist/components/JcLoginDialog/cmps/WechatChooseType.d.ts +0 -21
  13. package/dist/components/JcLoginDialog/cmps/WechatLogin.d.ts +0 -45
  14. package/dist/components/JcLoginDialog/composables/useAuthLogin.d.ts +0 -35
  15. package/dist/components/JcLoginDialog/composables/useForgetPassword.d.ts +0 -34
  16. package/dist/components/JcLoginDialog/composables/useThirdPartyLogin.d.ts +0 -26
  17. package/dist/components/JcLoginDialog/constant.d.ts +0 -66
  18. package/dist/components/JcMSearch/common.d.ts +0 -16
  19. package/dist/components/JcMSearch/hooks/useFloating.d.ts +0 -8
  20. package/dist/components/JcMSearch/hooks/useSearchHistory.d.ts +0 -29
  21. package/dist/components/JcMSearch/hooks/useSearchLogic.d.ts +0 -30
  22. package/dist/components/JcMSearch/index.d.ts +0 -41
  23. package/dist/components/JcSearch/common.d.ts +0 -16
  24. package/dist/components/JcSearch/hooks/useFloating.d.ts +0 -8
  25. package/dist/components/JcSearch/hooks/useSearchHistory.d.ts +0 -29
  26. package/dist/components/JcSearch/hooks/useSearchLogic.d.ts +0 -38
  27. package/dist/components/JcSearch/hooks/useSelectBehavior.d.ts +0 -9
  28. package/dist/components/JcSearch/index.d.ts +0 -132
  29. package/dist/components/hooks/isEn.d.ts +0 -3
  30. package/dist/hooks/useLang.d.ts +0 -3
  31. package/dist/index.d.ts +0 -14
  32. package/dist/plugin.d.ts +0 -6
@@ -1,29 +0,0 @@
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
- };
@@ -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
- };
@@ -1,3 +0,0 @@
1
- export declare const useIsEn: (lang?: string) => {
2
- isEn: import('vue').ComputedRef<boolean>;
3
- };
@@ -1,3 +0,0 @@
1
- export declare function useLang(lang?: string): {
2
- isEn: import('vue').ComputedRef<boolean>;
3
- };
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;
package/dist/plugin.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { emitter, MODAL_ACTION } from '@jctrans-materials/shared';
2
-
3
- export { emitter, MODAL_ACTION };
4
- export declare function createGlobalModalPlugin(): {
5
- install(app: any): void;
6
- };