@jctrans-materials/comps-vue3 1.0.7 → 1.0.9

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.
File without changes
@@ -0,0 +1,9 @@
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
+ };
@@ -10,8 +10,11 @@ interface Props {
10
10
  placeholder?: string;
11
11
  showSearchIcon?: boolean;
12
12
  showItemTag?: boolean;
13
+ showApplyData?: boolean;
13
14
  }
14
15
  declare function __VLS_template(): {
16
+ prefix?(_: {}): any;
17
+ suffix?(_: {}): any;
15
18
  history?(_: {
16
19
  searchHistory: {
17
20
  [x: string]: any;
@@ -49,12 +52,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
49
52
  lang: string;
50
53
  showSearchIcon: boolean;
51
54
  showItemTag: boolean;
55
+ showApplyData: boolean;
52
56
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
57
+ blur: (...args: any[]) => void;
53
58
  change: (...args: any[]) => void;
54
59
  select: (...args: any[]) => void;
55
60
  "update:modelValue": (...args: any[]) => void;
56
61
  "submit-search": (...args: any[]) => void;
57
62
  remove: (...args: any[]) => void;
63
+ "apply-data": (...args: any[]) => void;
58
64
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
59
65
  modelValue: null;
60
66
  multiple: boolean;
@@ -64,12 +70,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
64
70
  lang: string;
65
71
  showSearchIcon: boolean;
66
72
  showItemTag: boolean;
73
+ showApplyData: boolean;
67
74
  }>>> & Readonly<{
75
+ onBlur?: ((...args: any[]) => any) | undefined;
68
76
  onChange?: ((...args: any[]) => any) | undefined;
69
77
  onSelect?: ((...args: any[]) => any) | undefined;
70
78
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
71
79
  "onSubmit-search"?: ((...args: any[]) => any) | undefined;
72
80
  onRemove?: ((...args: any[]) => any) | undefined;
81
+ "onApply-data"?: ((...args: any[]) => any) | undefined;
73
82
  }>, {
74
83
  modelValue: SearchItem | SearchItem[] | null;
75
84
  multiple: boolean;
@@ -79,6 +88,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
79
88
  searchTypeList: string[];
80
89
  showSearchIcon: boolean;
81
90
  showItemTag: boolean;
91
+ showApplyData: boolean;
82
92
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
83
93
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
84
94
  export default _default;
@@ -0,0 +1,3 @@
1
+ export declare function useLang(lang?: string): {
2
+ isEn: import('vue').ComputedRef<boolean>;
3
+ };