voiptime-components 1.6.3 → 1.7.1

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.d.ts CHANGED
@@ -176,6 +176,8 @@ declare const __VLS_component_6: DefineComponent<DropdownItemProps, {}, {}, {},
176
176
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLIElement>;
177
177
 
178
178
  declare const __VLS_component_7: DefineComponent<VtSelectProps, {
179
+ registerOption: (option: VtSelectOption, slotContent?: any) => void;
180
+ unregisterOption: (value: any) => void;
179
181
  focus(): void;
180
182
  blur(): void;
181
183
  clear(): void;
@@ -186,49 +188,29 @@ declare const __VLS_component_7: DefineComponent<VtSelectProps, {
186
188
  isValid: boolean;
187
189
  errors: string[];
188
190
  };
189
- registerOption(option: VtSelectOption): void;
190
- unregisterOption(value: string | number): void;
191
191
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
192
- blur: () => any;
193
- change: (value: string | number | (string | number)[]) => any;
194
- focus: () => any;
195
- filter: (query: string) => any;
196
- "update:modelValue": (value: string | number | (string | number)[]) => any;
197
- clear: () => any;
198
- "visible-change": (visible: boolean) => any;
199
- validation: (result: {
200
- isValid: boolean;
201
- errors: string[];
202
- }) => any;
203
- "remove-tag": (value: string | number) => any;
204
- scrolled: () => any;
192
+ [x: string]: any;
193
+ } & {
194
+ [x: string]: any;
205
195
  }, string, PublicProps, Readonly<VtSelectProps> & Readonly<{
206
- onBlur?: (() => any) | undefined;
207
- onChange?: ((value: string | number | (string | number)[]) => any) | undefined;
208
- onFocus?: (() => any) | undefined;
209
- onFilter?: ((query: string) => any) | undefined;
210
- "onUpdate:modelValue"?: ((value: string | number | (string | number)[]) => any) | undefined;
211
- onClear?: (() => any) | undefined;
212
- "onVisible-change"?: ((visible: boolean) => any) | undefined;
213
- onValidation?: ((result: {
214
- isValid: boolean;
215
- errors: string[];
216
- }) => any) | undefined;
217
- "onRemove-tag"?: ((value: string | number) => any) | undefined;
218
- onScrolled?: (() => any) | undefined;
196
+ [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
219
197
  }>, {
220
198
  disabled: boolean;
221
199
  loading: boolean;
222
200
  placeholder: string;
223
- maxHeight: number | string;
224
- status: VtSelectStatus;
201
+ maxHeight: number;
202
+ trigger: string;
203
+ placement: string;
204
+ showTimeout: number;
205
+ hideTimeout: number;
206
+ status: "default" | "success" | "warning" | "error";
225
207
  clearable: boolean;
226
208
  validateOnInput: boolean;
227
209
  validateOnBlur: boolean;
228
210
  multiple: boolean;
229
- collapsedTags: boolean;
230
211
  noDataText: string;
231
212
  loadingText: string;
213
+ collapsedTags: boolean;
232
214
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
233
215
  selectRef: HTMLDivElement;
234
216
  triggerRef: HTMLDivElement;
@@ -237,9 +219,9 @@ declare const __VLS_component_7: DefineComponent<VtSelectProps, {
237
219
  scrollContainerRef: HTMLDivElement;
238
220
  }, HTMLDivElement>;
239
221
 
240
- declare const __VLS_component_8: DefineComponent<VtSelectOption, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
222
+ declare const __VLS_component_8: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
241
223
  click: (option: VtSelectOption) => any;
242
- }, string, PublicProps, Readonly<VtSelectOption> & Readonly<{
224
+ }, string, PublicProps, Readonly<{}> & Readonly<{
243
225
  onClick?: ((option: VtSelectOption) => any) | undefined;
244
226
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
245
227
 
@@ -1043,33 +1025,35 @@ export declare interface VtOptionEmits {
1043
1025
  }
1044
1026
 
1045
1027
  export declare interface VtSelectContext {
1046
- selectValue: string | number | Array<string | number>;
1028
+ selectValue: any;
1047
1029
  multiple: boolean;
1030
+ valueKey?: string;
1048
1031
  handleOptionClick: (option: VtSelectOption) => void;
1049
- isOptionSelected: (value: string | number) => boolean;
1032
+ isOptionSelected: (value: any) => boolean;
1050
1033
  registerOption: (option: VtSelectOption, slotContent?: any) => void;
1051
- unregisterOption: (value: string | number) => void;
1034
+ unregisterOption: (value: any) => void;
1052
1035
  }
1053
1036
 
1054
- export declare const VtSelectContextKey: unique symbol;
1037
+ export declare const VtSelectContextKey: InjectionKey<VtSelectContext>;
1055
1038
 
1056
1039
  export declare interface VtSelectEmits {
1057
- 'update:modelValue': [value: string | number | Array<string | number>];
1058
- change: [value: string | number | Array<string | number>];
1059
- focus: [];
1060
- blur: [];
1061
- clear: [];
1062
- 'visible-change': [visible: boolean];
1063
- 'remove-tag': [value: string | number];
1064
- filter: [query: string];
1065
- validation: [result: {
1040
+ (e: 'update:modelValue', value: any): void;
1041
+ (e: 'change', value: any): void;
1042
+ (e: 'clear'): void;
1043
+ (e: 'focus'): void;
1044
+ (e: 'blur'): void;
1045
+ (e: 'visible-change', visible: boolean): void;
1046
+ (e: 'validation', result: {
1066
1047
  isValid: boolean;
1067
1048
  errors: string[];
1068
- }];
1069
- scrolled: [];
1049
+ }): void;
1050
+ (e: 'scrolled'): void;
1051
+ (e: 'remove-tag', value: any): void;
1070
1052
  }
1071
1053
 
1072
1054
  export declare interface VtSelectMethods {
1055
+ registerOption: (option: VtSelectOption, slotContent?: any) => void;
1056
+ unregisterOption: (value: any) => void;
1073
1057
  focus(): void;
1074
1058
  blur(): void;
1075
1059
  clear(): void;
@@ -1080,39 +1064,39 @@ export declare interface VtSelectMethods {
1080
1064
  isValid: boolean;
1081
1065
  errors: string[];
1082
1066
  };
1083
- registerOption(option: VtSelectOption): void;
1084
- unregisterOption(value: string | number): void;
1085
1067
  }
1086
1068
 
1087
1069
  export declare interface VtSelectOption {
1088
- label: string;
1089
- value: string | number;
1070
+ label: any;
1071
+ value: any;
1090
1072
  disabled?: boolean;
1073
+ [key: string]: any;
1091
1074
  }
1092
1075
 
1093
1076
  export declare interface VtSelectProps {
1094
- modelValue?: string | number | Array<string | number>;
1077
+ modelValue?: any;
1078
+ options?: VtSelectOption[];
1095
1079
  multiple?: boolean;
1096
- collapsedTags?: boolean;
1097
- status?: VtSelectStatus;
1098
1080
  disabled?: boolean;
1099
1081
  clearable?: boolean;
1100
- filterable?: boolean;
1101
1082
  loading?: boolean;
1102
- label?: string;
1103
1083
  placeholder?: string;
1104
1084
  noDataText?: string;
1105
- noMatchText?: string;
1106
1085
  loadingText?: string;
1107
- id?: string;
1108
- name?: string;
1109
- tabindex?: number;
1110
- maxHeight?: number | string;
1111
- filterMethod?: (query: string, option: VtSelectOption) => boolean;
1112
- required?: boolean;
1086
+ maxHeight?: number;
1087
+ collapsedTags?: boolean;
1113
1088
  validateOnInput?: boolean;
1114
1089
  validateOnBlur?: boolean;
1090
+ placement?: string;
1091
+ trigger?: string;
1092
+ showTimeout?: number;
1093
+ hideTimeout?: number;
1094
+ status?: 'default' | 'success' | 'warning' | 'error';
1095
+ label?: string;
1096
+ id?: string;
1097
+ required?: boolean;
1115
1098
  requiredMessage?: string;
1099
+ valueKey?: string;
1116
1100
  }
1117
1101
 
1118
1102
  export declare type VtSelectStatus = 'default' | 'success' | 'error' | 'warning';