voiptime-components 1.4.2 → 1.4.3

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
@@ -2,7 +2,6 @@ import { App } from 'vue';
2
2
  import { Component } from 'vue';
3
3
  import { ComponentOptionsMixin } from 'vue';
4
4
  import { ComponentProvideOptions } from 'vue';
5
- import { ComputedRef } from 'vue';
6
5
  import { CreateComponentPublicInstanceWithMixins } from 'vue';
7
6
  import { DefineComponent } from 'vue';
8
7
  import { GlobalComponents } from 'vue';
@@ -192,10 +191,12 @@ declare const __VLS_component_7: DefineComponent<VtSelectProps, {
192
191
  isValid: boolean;
193
192
  errors: string[];
194
193
  };
195
- registerOption(option: VtSelectOption, slotContent?: any): void;
194
+ registerOption(option: VtSelectOption): void;
196
195
  unregisterOption(value: string | number): void;
197
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
196
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
197
+ blur: (event: FocusEvent) => any;
198
198
  change: (value: string | number | (string | number)[]) => any;
199
+ focus: (event: FocusEvent) => any;
199
200
  filter: (query: string) => any;
200
201
  "update:modelValue": (value: string | number | (string | number)[]) => any;
201
202
  clear: () => any;
@@ -207,7 +208,9 @@ declare const __VLS_component_7: DefineComponent<VtSelectProps, {
207
208
  "remove-tag": (value: string | number) => any;
208
209
  scrolled: () => any;
209
210
  }, string, PublicProps, Readonly<VtSelectProps> & Readonly<{
211
+ onBlur?: ((event: FocusEvent) => any) | undefined;
210
212
  onChange?: ((value: string | number | (string | number)[]) => any) | undefined;
213
+ onFocus?: ((event: FocusEvent) => any) | undefined;
211
214
  onFilter?: ((query: string) => any) | undefined;
212
215
  "onUpdate:modelValue"?: ((value: string | number | (string | number)[]) => any) | undefined;
213
216
  onClear?: (() => any) | undefined;
@@ -221,21 +224,21 @@ declare const __VLS_component_7: DefineComponent<VtSelectProps, {
221
224
  }>, {
222
225
  disabled: boolean;
223
226
  loading: boolean;
224
- size: "small" | "medium" | "large";
227
+ size: VtSelectSize;
225
228
  placeholder: string;
226
- maxHeight: number;
227
- placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
229
+ maxHeight: number | string;
230
+ placement: "bottom" | "bottom-start" | "bottom-end" | "top" | "top-start" | "top-end";
228
231
  status: VtSelectStatus;
229
232
  clearable: boolean;
230
233
  validateOnInput: boolean;
231
234
  validateOnBlur: boolean;
232
- filterable: boolean;
233
235
  multiple: boolean;
234
236
  collapsedTags: boolean;
235
- loadingText: string;
237
+ filterable: boolean;
238
+ infiniteScroll: boolean;
236
239
  noDataText: string;
237
240
  noMatchText: string;
238
- infiniteScroll: boolean;
241
+ loadingText: string;
239
242
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
240
243
  selectRef: HTMLDivElement;
241
244
  triggerRef: HTMLDivElement;
@@ -334,7 +337,7 @@ declare const __VLS_component_7: DefineComponent<VtSelectProps, {
334
337
  sentinelRef: HTMLDivElement;
335
338
  }, HTMLDivElement>;
336
339
 
337
- declare const __VLS_component_8: DefineComponent<VtOptionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
340
+ declare const __VLS_component_8: DefineComponent<VtOptionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
338
341
  click: (option: VtSelectOption) => any;
339
342
  }, string, PublicProps, Readonly<VtOptionProps> & Readonly<{
340
343
  onClick?: ((option: VtSelectOption) => any) | undefined;
@@ -1218,21 +1221,22 @@ export declare interface VtInputValidationResult {
1218
1221
  }
1219
1222
 
1220
1223
  export declare interface VtOptionEmits {
1221
- (e: 'click', option: VtSelectOption): void;
1224
+ click: [option: VtSelectOption];
1222
1225
  }
1223
1226
 
1224
1227
  export declare interface VtOptionProps {
1225
1228
  label: string;
1226
1229
  value: string | number;
1227
1230
  disabled?: boolean;
1231
+ icon?: string;
1228
1232
  group?: string;
1229
1233
  }
1230
1234
 
1231
1235
  export declare interface VtSelectContext {
1232
- selectValue: ComputedRef<string | number | (string | number)[]>;
1236
+ selectValue: string | number | Array<string | number>;
1233
1237
  multiple: boolean;
1234
1238
  filterable: boolean;
1235
- filterQuery: ComputedRef<string>;
1239
+ filterQuery: string;
1236
1240
  handleOptionClick: (option: VtSelectOption) => void;
1237
1241
  isOptionSelected: (value: string | number) => boolean;
1238
1242
  isOptionVisible: (option: VtSelectOption) => boolean;
@@ -1240,20 +1244,22 @@ export declare interface VtSelectContext {
1240
1244
  unregisterOption: (value: string | number) => void;
1241
1245
  }
1242
1246
 
1243
- export declare const VtSelectContextKey: InjectionKey<VtSelectContext>;
1247
+ export declare const VtSelectContextKey: unique symbol;
1244
1248
 
1245
1249
  export declare interface VtSelectEmits {
1246
- (e: 'update:modelValue', value: string | number | (string | number)[]): void;
1247
- (e: 'change', value: string | number | (string | number)[]): void;
1248
- (e: 'clear'): void;
1249
- (e: 'visible-change', visible: boolean): void;
1250
- (e: 'remove-tag', value: string | number): void;
1251
- (e: 'filter', query: string): void;
1252
- (e: 'scrolled'): void;
1253
- (e: 'validation', result: {
1250
+ 'update:modelValue': [value: string | number | Array<string | number>];
1251
+ change: [value: string | number | Array<string | number>];
1252
+ focus: [event: FocusEvent];
1253
+ blur: [event: FocusEvent];
1254
+ clear: [];
1255
+ 'visible-change': [visible: boolean];
1256
+ 'remove-tag': [value: string | number];
1257
+ filter: [query: string];
1258
+ validation: [result: {
1254
1259
  isValid: boolean;
1255
1260
  errors: string[];
1256
- }): void;
1261
+ }];
1262
+ scrolled: [];
1257
1263
  }
1258
1264
 
1259
1265
  export declare interface VtSelectMethods {
@@ -1267,7 +1273,7 @@ export declare interface VtSelectMethods {
1267
1273
  isValid: boolean;
1268
1274
  errors: string[];
1269
1275
  };
1270
- registerOption(option: VtSelectOption, slotContent?: any): void;
1276
+ registerOption(option: VtSelectOption): void;
1271
1277
  unregisterOption(value: string | number): void;
1272
1278
  }
1273
1279
 
@@ -1275,37 +1281,41 @@ export declare interface VtSelectOption {
1275
1281
  label: string;
1276
1282
  value: string | number;
1277
1283
  disabled?: boolean;
1278
- group?: string;
1279
1284
  }
1280
1285
 
1281
1286
  export declare interface VtSelectProps {
1282
- modelValue?: string | number | (string | number)[];
1283
- options?: VtSelectOption[];
1284
- placeholder?: string;
1285
- disabled?: boolean;
1286
- clearable?: boolean;
1287
- filterable?: boolean;
1287
+ modelValue?: string | number | Array<string | number>;
1288
1288
  multiple?: boolean;
1289
1289
  collapsedTags?: boolean;
1290
- size?: 'small' | 'medium' | 'large';
1290
+ size?: VtSelectSize;
1291
1291
  status?: VtSelectStatus;
1292
+ disabled?: boolean;
1293
+ clearable?: boolean;
1294
+ filterable?: boolean;
1292
1295
  loading?: boolean;
1293
- loadingText?: string;
1296
+ infiniteScroll?: boolean;
1297
+ label?: string;
1298
+ placeholder?: string;
1299
+ helperText?: string;
1300
+ errorMessage?: string;
1294
1301
  noDataText?: string;
1295
1302
  noMatchText?: string;
1296
- maxHeight?: number;
1297
- placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
1303
+ loadingText?: string;
1304
+ id?: string;
1305
+ name?: string;
1306
+ tabindex?: number;
1307
+ maxHeight?: number | string;
1308
+ placement?: 'bottom' | 'bottom-start' | 'bottom-end' | 'top' | 'top-start' | 'top-end';
1298
1309
  filterMethod?: (query: string, option: VtSelectOption) => boolean;
1310
+ required?: boolean;
1299
1311
  validateOnInput?: boolean;
1300
1312
  validateOnBlur?: boolean;
1301
- required?: boolean;
1302
1313
  requiredMessage?: string;
1303
- infiniteScroll?: boolean;
1304
- label?: string;
1305
- id?: string;
1306
1314
  }
1307
1315
 
1308
- export declare type VtSelectStatus = 'default' | 'success' | 'warning' | 'error';
1316
+ export declare type VtSelectSize = 'small' | 'medium' | 'large';
1317
+
1318
+ export declare type VtSelectStatus = 'default' | 'success' | 'error' | 'warning';
1309
1319
 
1310
1320
  declare const VUIPlugin: {
1311
1321
  install(app: App, options?: VUIPluginOptions): void;