voiptime-components 1.7.0 → 1.7.2

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,10 @@ import { App } from 'vue';
2
2
  import { Component } from 'vue';
3
3
  import { ComponentOptionsMixin } from 'vue';
4
4
  import { ComponentProvideOptions } from 'vue';
5
+ import { CreateComponentPublicInstanceWithMixins } from 'vue';
5
6
  import { DefineComponent } from 'vue';
7
+ import { GlobalComponents } from 'vue';
8
+ import { GlobalDirectives } from 'vue';
6
9
  import { InjectionKey } from 'vue';
7
10
  import { ObjectDirective } from 'vue';
8
11
  import { PublicProps } from 'vue';
@@ -188,6 +191,9 @@ declare const __VLS_component_7: DefineComponent<VtSelectProps, {
188
191
  isValid: boolean;
189
192
  errors: string[];
190
193
  };
194
+ setFilter(query: string): void;
195
+ clearFilter(): void;
196
+ getFilterQuery(): string;
191
197
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
192
198
  [x: string]: any;
193
199
  } & {
@@ -208,14 +214,106 @@ declare const __VLS_component_7: DefineComponent<VtSelectProps, {
208
214
  validateOnInput: boolean;
209
215
  validateOnBlur: boolean;
210
216
  multiple: boolean;
217
+ filterable: boolean;
211
218
  noDataText: string;
212
219
  loadingText: string;
213
220
  collapsedTags: boolean;
221
+ filterPlaceholder: string;
222
+ allowRemoteFilter: boolean;
214
223
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
215
224
  selectRef: HTMLDivElement;
216
225
  triggerRef: HTMLDivElement;
217
226
  containerRef: HTMLDivElement;
218
227
  dropdownRef: HTMLDivElement;
228
+ filterInputRef: CreateComponentPublicInstanceWithMixins<Readonly< VtInputProps> & Readonly<{
229
+ onBlur?: ((event: FocusEvent) => any) | undefined;
230
+ onChange?: ((event: Event) => any) | undefined;
231
+ onClick?: ((event: MouseEvent) => any) | undefined;
232
+ onFocus?: ((event: FocusEvent) => any) | undefined;
233
+ onInput?: ((event: Event) => any) | undefined;
234
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
235
+ onKeypress?: ((event: KeyboardEvent) => any) | undefined;
236
+ onKeyup?: ((event: KeyboardEvent) => any) | undefined;
237
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
238
+ onClear?: (() => any) | undefined;
239
+ onValidation?: ((result: VtInputValidationResult) => any) | undefined;
240
+ }>, {
241
+ focus(): void;
242
+ blur(): void;
243
+ select(): void;
244
+ clear(): void;
245
+ validate(): boolean;
246
+ clearValidation(): void;
247
+ getInputElement(): HTMLInputElement | HTMLTextAreaElement | null;
248
+ getValidationState(): VtInputValidationResult;
249
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
250
+ blur: (event: FocusEvent) => any;
251
+ change: (event: Event) => any;
252
+ click: (event: MouseEvent) => any;
253
+ focus: (event: FocusEvent) => any;
254
+ input: (event: Event) => any;
255
+ keydown: (event: KeyboardEvent) => any;
256
+ keypress: (event: KeyboardEvent) => any;
257
+ keyup: (event: KeyboardEvent) => any;
258
+ "update:modelValue": (value: string | number) => any;
259
+ clear: () => any;
260
+ validation: (result: VtInputValidationResult) => any;
261
+ }, PublicProps, {
262
+ resize: VtInputResize;
263
+ type: VtInputType;
264
+ disabled: boolean;
265
+ size: VtInputSize;
266
+ status: VtInputStatus;
267
+ clearable: boolean;
268
+ showPassword: boolean;
269
+ rows: number;
270
+ autosize: boolean | VtInputAutosizeConfig;
271
+ validateOnInput: boolean;
272
+ validateOnBlur: boolean;
273
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
274
+ textareaRef: HTMLTextAreaElement;
275
+ inputRef: HTMLInputElement;
276
+ }, HTMLDivElement, ComponentProvideOptions, {
277
+ P: {};
278
+ B: {};
279
+ D: {};
280
+ C: {};
281
+ M: {};
282
+ Defaults: {};
283
+ }, Readonly< VtInputProps> & Readonly<{
284
+ onBlur?: ((event: FocusEvent) => any) | undefined;
285
+ onChange?: ((event: Event) => any) | undefined;
286
+ onClick?: ((event: MouseEvent) => any) | undefined;
287
+ onFocus?: ((event: FocusEvent) => any) | undefined;
288
+ onInput?: ((event: Event) => any) | undefined;
289
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
290
+ onKeypress?: ((event: KeyboardEvent) => any) | undefined;
291
+ onKeyup?: ((event: KeyboardEvent) => any) | undefined;
292
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
293
+ onClear?: (() => any) | undefined;
294
+ onValidation?: ((result: VtInputValidationResult) => any) | undefined;
295
+ }>, {
296
+ focus(): void;
297
+ blur(): void;
298
+ select(): void;
299
+ clear(): void;
300
+ validate(): boolean;
301
+ clearValidation(): void;
302
+ getInputElement(): HTMLInputElement | HTMLTextAreaElement | null;
303
+ getValidationState(): VtInputValidationResult;
304
+ }, {}, {}, {}, {
305
+ resize: VtInputResize;
306
+ type: VtInputType;
307
+ disabled: boolean;
308
+ size: VtInputSize;
309
+ status: VtInputStatus;
310
+ clearable: boolean;
311
+ showPassword: boolean;
312
+ rows: number;
313
+ autosize: boolean | VtInputAutosizeConfig;
314
+ validateOnInput: boolean;
315
+ validateOnBlur: boolean;
316
+ }> | null;
219
317
  scrollContainerRef: HTMLDivElement;
220
318
  }, HTMLDivElement>;
221
319
 
@@ -303,6 +401,95 @@ declare function __VLS_template_7(): {
303
401
  triggerRef: HTMLDivElement;
304
402
  containerRef: HTMLDivElement;
305
403
  dropdownRef: HTMLDivElement;
404
+ filterInputRef: CreateComponentPublicInstanceWithMixins<Readonly< VtInputProps> & Readonly<{
405
+ onBlur?: ((event: FocusEvent) => any) | undefined;
406
+ onChange?: ((event: Event) => any) | undefined;
407
+ onClick?: ((event: MouseEvent) => any) | undefined;
408
+ onFocus?: ((event: FocusEvent) => any) | undefined;
409
+ onInput?: ((event: Event) => any) | undefined;
410
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
411
+ onKeypress?: ((event: KeyboardEvent) => any) | undefined;
412
+ onKeyup?: ((event: KeyboardEvent) => any) | undefined;
413
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
414
+ onClear?: (() => any) | undefined;
415
+ onValidation?: ((result: VtInputValidationResult) => any) | undefined;
416
+ }>, {
417
+ focus(): void;
418
+ blur(): void;
419
+ select(): void;
420
+ clear(): void;
421
+ validate(): boolean;
422
+ clearValidation(): void;
423
+ getInputElement(): HTMLInputElement | HTMLTextAreaElement | null;
424
+ getValidationState(): VtInputValidationResult;
425
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
426
+ blur: (event: FocusEvent) => any;
427
+ change: (event: Event) => any;
428
+ click: (event: MouseEvent) => any;
429
+ focus: (event: FocusEvent) => any;
430
+ input: (event: Event) => any;
431
+ keydown: (event: KeyboardEvent) => any;
432
+ keypress: (event: KeyboardEvent) => any;
433
+ keyup: (event: KeyboardEvent) => any;
434
+ "update:modelValue": (value: string | number) => any;
435
+ clear: () => any;
436
+ validation: (result: VtInputValidationResult) => any;
437
+ }, PublicProps, {
438
+ resize: VtInputResize;
439
+ type: VtInputType;
440
+ disabled: boolean;
441
+ size: VtInputSize;
442
+ status: VtInputStatus;
443
+ clearable: boolean;
444
+ showPassword: boolean;
445
+ rows: number;
446
+ autosize: boolean | VtInputAutosizeConfig;
447
+ validateOnInput: boolean;
448
+ validateOnBlur: boolean;
449
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
450
+ textareaRef: HTMLTextAreaElement;
451
+ inputRef: HTMLInputElement;
452
+ }, HTMLDivElement, ComponentProvideOptions, {
453
+ P: {};
454
+ B: {};
455
+ D: {};
456
+ C: {};
457
+ M: {};
458
+ Defaults: {};
459
+ }, Readonly< VtInputProps> & Readonly<{
460
+ onBlur?: ((event: FocusEvent) => any) | undefined;
461
+ onChange?: ((event: Event) => any) | undefined;
462
+ onClick?: ((event: MouseEvent) => any) | undefined;
463
+ onFocus?: ((event: FocusEvent) => any) | undefined;
464
+ onInput?: ((event: Event) => any) | undefined;
465
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
466
+ onKeypress?: ((event: KeyboardEvent) => any) | undefined;
467
+ onKeyup?: ((event: KeyboardEvent) => any) | undefined;
468
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
469
+ onClear?: (() => any) | undefined;
470
+ onValidation?: ((result: VtInputValidationResult) => any) | undefined;
471
+ }>, {
472
+ focus(): void;
473
+ blur(): void;
474
+ select(): void;
475
+ clear(): void;
476
+ validate(): boolean;
477
+ clearValidation(): void;
478
+ getInputElement(): HTMLInputElement | HTMLTextAreaElement | null;
479
+ getValidationState(): VtInputValidationResult;
480
+ }, {}, {}, {}, {
481
+ resize: VtInputResize;
482
+ type: VtInputType;
483
+ disabled: boolean;
484
+ size: VtInputSize;
485
+ status: VtInputStatus;
486
+ clearable: boolean;
487
+ showPassword: boolean;
488
+ rows: number;
489
+ autosize: boolean | VtInputAutosizeConfig;
490
+ validateOnInput: boolean;
491
+ validateOnBlur: boolean;
492
+ }> | null;
306
493
  scrollContainerRef: HTMLDivElement;
307
494
  };
308
495
  rootEl: HTMLDivElement;
@@ -1049,6 +1236,8 @@ export declare interface VtSelectEmits {
1049
1236
  }): void;
1050
1237
  (e: 'scrolled'): void;
1051
1238
  (e: 'remove-tag', value: any): void;
1239
+ (e: 'filter', query: string): void;
1240
+ (e: 'filter-clear'): void;
1052
1241
  }
1053
1242
 
1054
1243
  export declare interface VtSelectMethods {
@@ -1064,6 +1253,9 @@ export declare interface VtSelectMethods {
1064
1253
  isValid: boolean;
1065
1254
  errors: string[];
1066
1255
  };
1256
+ setFilter(query: string): void;
1257
+ clearFilter(): void;
1258
+ getFilterQuery(): string;
1067
1259
  }
1068
1260
 
1069
1261
  export declare interface VtSelectOption {
@@ -1079,6 +1271,7 @@ export declare interface VtSelectProps {
1079
1271
  multiple?: boolean;
1080
1272
  disabled?: boolean;
1081
1273
  clearable?: boolean;
1274
+ filterable?: boolean;
1082
1275
  loading?: boolean;
1083
1276
  placeholder?: string;
1084
1277
  noDataText?: string;
@@ -1097,6 +1290,8 @@ export declare interface VtSelectProps {
1097
1290
  required?: boolean;
1098
1291
  requiredMessage?: string;
1099
1292
  valueKey?: string;
1293
+ filterPlaceholder?: string;
1294
+ allowRemoteFilter?: boolean;
1100
1295
  }
1101
1296
 
1102
1297
  export declare type VtSelectStatus = 'default' | 'success' | 'error' | 'warning';