voiptime-components 1.6.2 → 1.7.0
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.d.ts +51 -64
- package/dist/index.es.js +1534 -1444
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
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
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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
|
-
|
|
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
|
|
224
|
-
|
|
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<
|
|
222
|
+
declare const __VLS_component_8: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
241
223
|
click: (option: VtSelectOption) => any;
|
|
242
|
-
}, string, PublicProps, Readonly<
|
|
224
|
+
}, string, PublicProps, Readonly<{}> & Readonly<{
|
|
243
225
|
onClick?: ((option: VtSelectOption) => any) | undefined;
|
|
244
226
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
245
227
|
|
|
@@ -468,14 +450,17 @@ declare const icons: {
|
|
|
468
450
|
readonly listBulletHorizontal: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
469
451
|
readonly listBullet: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
470
452
|
readonly paperClip: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
453
|
+
readonly pause: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
471
454
|
readonly plusRound: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
472
455
|
readonly prompt: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
473
456
|
readonly prompter: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
474
457
|
readonly reply: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
475
458
|
readonly save: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
476
459
|
readonly star: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
460
|
+
readonly start: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
477
461
|
readonly statusChange2: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
478
462
|
readonly statusChange: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
463
|
+
readonly stop: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
479
464
|
readonly usersGroup: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
480
465
|
readonly arrowDown: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
481
466
|
readonly arrowLeft: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
@@ -1040,33 +1025,35 @@ export declare interface VtOptionEmits {
|
|
|
1040
1025
|
}
|
|
1041
1026
|
|
|
1042
1027
|
export declare interface VtSelectContext {
|
|
1043
|
-
selectValue:
|
|
1028
|
+
selectValue: any;
|
|
1044
1029
|
multiple: boolean;
|
|
1030
|
+
valueKey?: string;
|
|
1045
1031
|
handleOptionClick: (option: VtSelectOption) => void;
|
|
1046
|
-
isOptionSelected: (value:
|
|
1032
|
+
isOptionSelected: (value: any) => boolean;
|
|
1047
1033
|
registerOption: (option: VtSelectOption, slotContent?: any) => void;
|
|
1048
|
-
unregisterOption: (value:
|
|
1034
|
+
unregisterOption: (value: any) => void;
|
|
1049
1035
|
}
|
|
1050
1036
|
|
|
1051
|
-
export declare const VtSelectContextKey:
|
|
1037
|
+
export declare const VtSelectContextKey: InjectionKey<VtSelectContext>;
|
|
1052
1038
|
|
|
1053
1039
|
export declare interface VtSelectEmits {
|
|
1054
|
-
'update:modelValue'
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
'visible-change'
|
|
1060
|
-
'
|
|
1061
|
-
filter: [query: string];
|
|
1062
|
-
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: {
|
|
1063
1047
|
isValid: boolean;
|
|
1064
1048
|
errors: string[];
|
|
1065
|
-
}
|
|
1066
|
-
scrolled:
|
|
1049
|
+
}): void;
|
|
1050
|
+
(e: 'scrolled'): void;
|
|
1051
|
+
(e: 'remove-tag', value: any): void;
|
|
1067
1052
|
}
|
|
1068
1053
|
|
|
1069
1054
|
export declare interface VtSelectMethods {
|
|
1055
|
+
registerOption: (option: VtSelectOption, slotContent?: any) => void;
|
|
1056
|
+
unregisterOption: (value: any) => void;
|
|
1070
1057
|
focus(): void;
|
|
1071
1058
|
blur(): void;
|
|
1072
1059
|
clear(): void;
|
|
@@ -1077,39 +1064,39 @@ export declare interface VtSelectMethods {
|
|
|
1077
1064
|
isValid: boolean;
|
|
1078
1065
|
errors: string[];
|
|
1079
1066
|
};
|
|
1080
|
-
registerOption(option: VtSelectOption): void;
|
|
1081
|
-
unregisterOption(value: string | number): void;
|
|
1082
1067
|
}
|
|
1083
1068
|
|
|
1084
1069
|
export declare interface VtSelectOption {
|
|
1085
|
-
label:
|
|
1086
|
-
value:
|
|
1070
|
+
label: any;
|
|
1071
|
+
value: any;
|
|
1087
1072
|
disabled?: boolean;
|
|
1073
|
+
[key: string]: any;
|
|
1088
1074
|
}
|
|
1089
1075
|
|
|
1090
1076
|
export declare interface VtSelectProps {
|
|
1091
|
-
modelValue?:
|
|
1077
|
+
modelValue?: any;
|
|
1078
|
+
options?: VtSelectOption[];
|
|
1092
1079
|
multiple?: boolean;
|
|
1093
|
-
collapsedTags?: boolean;
|
|
1094
|
-
status?: VtSelectStatus;
|
|
1095
1080
|
disabled?: boolean;
|
|
1096
1081
|
clearable?: boolean;
|
|
1097
|
-
filterable?: boolean;
|
|
1098
1082
|
loading?: boolean;
|
|
1099
|
-
label?: string;
|
|
1100
1083
|
placeholder?: string;
|
|
1101
1084
|
noDataText?: string;
|
|
1102
|
-
noMatchText?: string;
|
|
1103
1085
|
loadingText?: string;
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
tabindex?: number;
|
|
1107
|
-
maxHeight?: number | string;
|
|
1108
|
-
filterMethod?: (query: string, option: VtSelectOption) => boolean;
|
|
1109
|
-
required?: boolean;
|
|
1086
|
+
maxHeight?: number;
|
|
1087
|
+
collapsedTags?: boolean;
|
|
1110
1088
|
validateOnInput?: boolean;
|
|
1111
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;
|
|
1112
1098
|
requiredMessage?: string;
|
|
1099
|
+
valueKey?: string;
|
|
1113
1100
|
}
|
|
1114
1101
|
|
|
1115
1102
|
export declare type VtSelectStatus = 'default' | 'success' | 'error' | 'warning';
|