voiptime-components 1.4.5 → 1.4.7

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,10 +2,7 @@ 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';
6
5
  import { DefineComponent } from 'vue';
7
- import { GlobalComponents } from 'vue';
8
- import { GlobalDirectives } from 'vue';
9
6
  import { InjectionKey } from 'vue';
10
7
  import { ObjectDirective } from 'vue';
11
8
  import { PublicProps } from 'vue';
@@ -149,7 +146,7 @@ declare const __VLS_component_4: DefineComponent<__VLS_PublicProps, {
149
146
  declare const __VLS_component_5: DefineComponent<DropdownProps, {
150
147
  show: () => void;
151
148
  hide: () => void;
152
- visible: Ref<boolean>;
149
+ visible: Ref<boolean, boolean>;
153
150
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
154
151
  click: (event: MouseEvent) => any;
155
152
  "visible-change": (visible: boolean) => any;
@@ -161,13 +158,11 @@ declare const __VLS_component_5: DefineComponent<DropdownProps, {
161
158
  }>, {
162
159
  disabled: boolean;
163
160
  maxHeight: string | number;
164
- trigger: "click" | "hover" | "contextmenu";
165
- placement: "bottom" | "bottom-start" | "bottom-end" | "top" | "top-start" | "top-end";
166
- splitButton: boolean;
167
- hideOnClick: boolean;
161
+ trigger: DropdownTriggerType;
162
+ placement: DropdownPlacement;
168
163
  showTimeout: number;
169
164
  hideTimeout: number;
170
- tabindex: number;
165
+ hideOnClick: boolean;
171
166
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
172
167
  dropdownRef: HTMLDivElement;
173
168
  triggerRef: HTMLDivElement;
@@ -194,9 +189,9 @@ declare const __VLS_component_7: DefineComponent<VtSelectProps, {
194
189
  registerOption(option: VtSelectOption): void;
195
190
  unregisterOption(value: string | number): void;
196
191
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
197
- blur: (event: FocusEvent) => any;
192
+ blur: () => any;
198
193
  change: (value: string | number | (string | number)[]) => any;
199
- focus: (event: FocusEvent) => any;
194
+ focus: () => any;
200
195
  filter: (query: string) => any;
201
196
  "update:modelValue": (value: string | number | (string | number)[]) => any;
202
197
  clear: () => any;
@@ -208,9 +203,9 @@ declare const __VLS_component_7: DefineComponent<VtSelectProps, {
208
203
  "remove-tag": (value: string | number) => any;
209
204
  scrolled: () => any;
210
205
  }, string, PublicProps, Readonly<VtSelectProps> & Readonly<{
211
- onBlur?: ((event: FocusEvent) => any) | undefined;
206
+ onBlur?: (() => any) | undefined;
212
207
  onChange?: ((value: string | number | (string | number)[]) => any) | undefined;
213
- onFocus?: ((event: FocusEvent) => any) | undefined;
208
+ onFocus?: (() => any) | undefined;
214
209
  onFilter?: ((query: string) => any) | undefined;
215
210
  "onUpdate:modelValue"?: ((value: string | number | (string | number)[]) => any) | undefined;
216
211
  onClear?: (() => any) | undefined;
@@ -224,122 +219,27 @@ declare const __VLS_component_7: DefineComponent<VtSelectProps, {
224
219
  }>, {
225
220
  disabled: boolean;
226
221
  loading: boolean;
227
- size: VtSelectSize;
228
222
  placeholder: string;
229
223
  maxHeight: number | string;
230
- placement: "bottom" | "bottom-start" | "bottom-end" | "top" | "top-start" | "top-end";
231
224
  status: VtSelectStatus;
232
225
  clearable: boolean;
233
226
  validateOnInput: boolean;
234
227
  validateOnBlur: boolean;
235
228
  multiple: boolean;
236
229
  collapsedTags: boolean;
237
- filterable: boolean;
238
- infiniteScroll: boolean;
239
230
  noDataText: string;
240
- noMatchText: string;
241
231
  loadingText: string;
242
232
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
243
233
  selectRef: HTMLDivElement;
244
234
  triggerRef: HTMLDivElement;
245
235
  containerRef: HTMLDivElement;
246
236
  dropdownRef: HTMLDivElement;
247
- filterInputRef: CreateComponentPublicInstanceWithMixins<Readonly< VtInputProps> & Readonly<{
248
- onBlur?: ((event: FocusEvent) => any) | undefined;
249
- onChange?: ((event: Event) => any) | undefined;
250
- onClick?: ((event: MouseEvent) => any) | undefined;
251
- onFocus?: ((event: FocusEvent) => any) | undefined;
252
- onInput?: ((event: Event) => any) | undefined;
253
- onKeydown?: ((event: KeyboardEvent) => any) | undefined;
254
- onKeypress?: ((event: KeyboardEvent) => any) | undefined;
255
- onKeyup?: ((event: KeyboardEvent) => any) | undefined;
256
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
257
- onClear?: (() => any) | undefined;
258
- onValidation?: ((result: VtInputValidationResult) => any) | undefined;
259
- }>, {
260
- focus(): void;
261
- blur(): void;
262
- select(): void;
263
- clear(): void;
264
- validate(): boolean;
265
- clearValidation(): void;
266
- getInputElement(): HTMLInputElement | HTMLTextAreaElement | null;
267
- getValidationState(): VtInputValidationResult;
268
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
269
- blur: (event: FocusEvent) => any;
270
- change: (event: Event) => any;
271
- click: (event: MouseEvent) => any;
272
- focus: (event: FocusEvent) => any;
273
- input: (event: Event) => any;
274
- keydown: (event: KeyboardEvent) => any;
275
- keypress: (event: KeyboardEvent) => any;
276
- keyup: (event: KeyboardEvent) => any;
277
- "update:modelValue": (value: string | number) => any;
278
- clear: () => any;
279
- validation: (result: VtInputValidationResult) => any;
280
- }, PublicProps, {
281
- resize: VtInputResize;
282
- type: VtInputType;
283
- disabled: boolean;
284
- size: VtInputSize;
285
- status: VtInputStatus;
286
- clearable: boolean;
287
- showPassword: boolean;
288
- rows: number;
289
- autosize: boolean | VtInputAutosizeConfig;
290
- validateOnInput: boolean;
291
- validateOnBlur: boolean;
292
- }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
293
- textareaRef: HTMLTextAreaElement;
294
- inputRef: HTMLInputElement;
295
- }, HTMLDivElement, ComponentProvideOptions, {
296
- P: {};
297
- B: {};
298
- D: {};
299
- C: {};
300
- M: {};
301
- Defaults: {};
302
- }, Readonly< VtInputProps> & Readonly<{
303
- onBlur?: ((event: FocusEvent) => any) | undefined;
304
- onChange?: ((event: Event) => any) | undefined;
305
- onClick?: ((event: MouseEvent) => any) | undefined;
306
- onFocus?: ((event: FocusEvent) => any) | undefined;
307
- onInput?: ((event: Event) => any) | undefined;
308
- onKeydown?: ((event: KeyboardEvent) => any) | undefined;
309
- onKeypress?: ((event: KeyboardEvent) => any) | undefined;
310
- onKeyup?: ((event: KeyboardEvent) => any) | undefined;
311
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
312
- onClear?: (() => any) | undefined;
313
- onValidation?: ((result: VtInputValidationResult) => any) | undefined;
314
- }>, {
315
- focus(): void;
316
- blur(): void;
317
- select(): void;
318
- clear(): void;
319
- validate(): boolean;
320
- clearValidation(): void;
321
- getInputElement(): HTMLInputElement | HTMLTextAreaElement | null;
322
- getValidationState(): VtInputValidationResult;
323
- }, {}, {}, {}, {
324
- resize: VtInputResize;
325
- type: VtInputType;
326
- disabled: boolean;
327
- size: VtInputSize;
328
- status: VtInputStatus;
329
- clearable: boolean;
330
- showPassword: boolean;
331
- rows: number;
332
- autosize: boolean | VtInputAutosizeConfig;
333
- validateOnInput: boolean;
334
- validateOnBlur: boolean;
335
- }> | null;
336
- scrollContainer: HTMLDivElement;
337
- sentinelRef: HTMLDivElement;
237
+ scrollContainerRef: HTMLDivElement;
338
238
  }, HTMLDivElement>;
339
239
 
340
- declare const __VLS_component_8: DefineComponent<VtOptionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
240
+ declare const __VLS_component_8: DefineComponent<VtSelectOption, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
341
241
  click: (option: VtSelectOption) => any;
342
- }, string, PublicProps, Readonly<VtOptionProps> & Readonly<{
242
+ }, string, PublicProps, Readonly<VtSelectOption> & Readonly<{
343
243
  onClick?: ((option: VtSelectOption) => any) | undefined;
344
244
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
345
245
 
@@ -421,97 +321,7 @@ declare function __VLS_template_7(): {
421
321
  triggerRef: HTMLDivElement;
422
322
  containerRef: HTMLDivElement;
423
323
  dropdownRef: HTMLDivElement;
424
- filterInputRef: CreateComponentPublicInstanceWithMixins<Readonly< VtInputProps> & Readonly<{
425
- onBlur?: ((event: FocusEvent) => any) | undefined;
426
- onChange?: ((event: Event) => any) | undefined;
427
- onClick?: ((event: MouseEvent) => any) | undefined;
428
- onFocus?: ((event: FocusEvent) => any) | undefined;
429
- onInput?: ((event: Event) => any) | undefined;
430
- onKeydown?: ((event: KeyboardEvent) => any) | undefined;
431
- onKeypress?: ((event: KeyboardEvent) => any) | undefined;
432
- onKeyup?: ((event: KeyboardEvent) => any) | undefined;
433
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
434
- onClear?: (() => any) | undefined;
435
- onValidation?: ((result: VtInputValidationResult) => any) | undefined;
436
- }>, {
437
- focus(): void;
438
- blur(): void;
439
- select(): void;
440
- clear(): void;
441
- validate(): boolean;
442
- clearValidation(): void;
443
- getInputElement(): HTMLInputElement | HTMLTextAreaElement | null;
444
- getValidationState(): VtInputValidationResult;
445
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
446
- blur: (event: FocusEvent) => any;
447
- change: (event: Event) => any;
448
- click: (event: MouseEvent) => any;
449
- focus: (event: FocusEvent) => any;
450
- input: (event: Event) => any;
451
- keydown: (event: KeyboardEvent) => any;
452
- keypress: (event: KeyboardEvent) => any;
453
- keyup: (event: KeyboardEvent) => any;
454
- "update:modelValue": (value: string | number) => any;
455
- clear: () => any;
456
- validation: (result: VtInputValidationResult) => any;
457
- }, PublicProps, {
458
- resize: VtInputResize;
459
- type: VtInputType;
460
- disabled: boolean;
461
- size: VtInputSize;
462
- status: VtInputStatus;
463
- clearable: boolean;
464
- showPassword: boolean;
465
- rows: number;
466
- autosize: boolean | VtInputAutosizeConfig;
467
- validateOnInput: boolean;
468
- validateOnBlur: boolean;
469
- }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
470
- textareaRef: HTMLTextAreaElement;
471
- inputRef: HTMLInputElement;
472
- }, HTMLDivElement, ComponentProvideOptions, {
473
- P: {};
474
- B: {};
475
- D: {};
476
- C: {};
477
- M: {};
478
- Defaults: {};
479
- }, Readonly< VtInputProps> & Readonly<{
480
- onBlur?: ((event: FocusEvent) => any) | undefined;
481
- onChange?: ((event: Event) => any) | undefined;
482
- onClick?: ((event: MouseEvent) => any) | undefined;
483
- onFocus?: ((event: FocusEvent) => any) | undefined;
484
- onInput?: ((event: Event) => any) | undefined;
485
- onKeydown?: ((event: KeyboardEvent) => any) | undefined;
486
- onKeypress?: ((event: KeyboardEvent) => any) | undefined;
487
- onKeyup?: ((event: KeyboardEvent) => any) | undefined;
488
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
489
- onClear?: (() => any) | undefined;
490
- onValidation?: ((result: VtInputValidationResult) => any) | undefined;
491
- }>, {
492
- focus(): void;
493
- blur(): void;
494
- select(): void;
495
- clear(): void;
496
- validate(): boolean;
497
- clearValidation(): void;
498
- getInputElement(): HTMLInputElement | HTMLTextAreaElement | null;
499
- getValidationState(): VtInputValidationResult;
500
- }, {}, {}, {}, {
501
- resize: VtInputResize;
502
- type: VtInputType;
503
- disabled: boolean;
504
- size: VtInputSize;
505
- status: VtInputStatus;
506
- clearable: boolean;
507
- showPassword: boolean;
508
- rows: number;
509
- autosize: boolean | VtInputAutosizeConfig;
510
- validateOnInput: boolean;
511
- validateOnBlur: boolean;
512
- }> | null;
513
- scrollContainer: HTMLDivElement;
514
- sentinelRef: HTMLDivElement;
324
+ scrollContainerRef: HTMLDivElement;
515
325
  };
516
326
  rootEl: HTMLDivElement;
517
327
  };
@@ -631,8 +441,8 @@ export declare interface DropdownItemProps {
631
441
  export declare type DropdownPlacement = 'bottom' | 'bottom-start' | 'bottom-end' | 'top' | 'top-start' | 'top-end';
632
442
 
633
443
  export declare interface DropdownProps {
634
- trigger?: 'click' | 'hover' | 'contextmenu';
635
- placement?: 'bottom' | 'bottom-start' | 'bottom-end' | 'top' | 'top-start' | 'top-end';
444
+ trigger?: DropdownTriggerType;
445
+ placement?: DropdownPlacement;
636
446
  disabled?: boolean;
637
447
  splitButton?: boolean;
638
448
  hideOnClick?: boolean;
@@ -642,7 +452,7 @@ export declare interface DropdownProps {
642
452
  maxHeight?: string | number;
643
453
  }
644
454
 
645
- export declare type DropdownTriggerType = 'click' | 'hover' | 'contextmenu';
455
+ export declare type DropdownTriggerType = 'click' | 'hover';
646
456
 
647
457
  export declare type IconName = keyof typeof icons;
648
458
 
@@ -700,6 +510,11 @@ declare const icons: {
700
510
  readonly emailOutgoing: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
701
511
  readonly emailQueue: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
702
512
  readonly emailSpam: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
513
+ readonly ivr: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
514
+ readonly predictive: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
515
+ readonly preview: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
516
+ readonly progressive: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
517
+ readonly sms: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
703
518
  readonly columnInsert: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
704
519
  readonly columnsMove: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
705
520
  readonly empty: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
@@ -1224,22 +1039,11 @@ export declare interface VtOptionEmits {
1224
1039
  click: [option: VtSelectOption];
1225
1040
  }
1226
1041
 
1227
- export declare interface VtOptionProps {
1228
- label: string;
1229
- value: string | number;
1230
- disabled?: boolean;
1231
- icon?: string;
1232
- group?: string;
1233
- }
1234
-
1235
1042
  export declare interface VtSelectContext {
1236
1043
  selectValue: string | number | Array<string | number>;
1237
1044
  multiple: boolean;
1238
- filterable: boolean;
1239
- filterQuery: string;
1240
1045
  handleOptionClick: (option: VtSelectOption) => void;
1241
1046
  isOptionSelected: (value: string | number) => boolean;
1242
- isOptionVisible: (option: VtSelectOption) => boolean;
1243
1047
  registerOption: (option: VtSelectOption, slotContent?: any) => void;
1244
1048
  unregisterOption: (value: string | number) => void;
1245
1049
  }
@@ -1249,8 +1053,8 @@ export declare const VtSelectContextKey: unique symbol;
1249
1053
  export declare interface VtSelectEmits {
1250
1054
  'update:modelValue': [value: string | number | Array<string | number>];
1251
1055
  change: [value: string | number | Array<string | number>];
1252
- focus: [event: FocusEvent];
1253
- blur: [event: FocusEvent];
1056
+ focus: [];
1057
+ blur: [];
1254
1058
  clear: [];
1255
1059
  'visible-change': [visible: boolean];
1256
1060
  'remove-tag': [value: string | number];
@@ -1287,17 +1091,13 @@ export declare interface VtSelectProps {
1287
1091
  modelValue?: string | number | Array<string | number>;
1288
1092
  multiple?: boolean;
1289
1093
  collapsedTags?: boolean;
1290
- size?: VtSelectSize;
1291
1094
  status?: VtSelectStatus;
1292
1095
  disabled?: boolean;
1293
1096
  clearable?: boolean;
1294
1097
  filterable?: boolean;
1295
1098
  loading?: boolean;
1296
- infiniteScroll?: boolean;
1297
1099
  label?: string;
1298
1100
  placeholder?: string;
1299
- helperText?: string;
1300
- errorMessage?: string;
1301
1101
  noDataText?: string;
1302
1102
  noMatchText?: string;
1303
1103
  loadingText?: string;
@@ -1305,7 +1105,6 @@ export declare interface VtSelectProps {
1305
1105
  name?: string;
1306
1106
  tabindex?: number;
1307
1107
  maxHeight?: number | string;
1308
- placement?: 'bottom' | 'bottom-start' | 'bottom-end' | 'top' | 'top-start' | 'top-end';
1309
1108
  filterMethod?: (query: string, option: VtSelectOption) => boolean;
1310
1109
  required?: boolean;
1311
1110
  validateOnInput?: boolean;
@@ -1313,8 +1112,6 @@ export declare interface VtSelectProps {
1313
1112
  requiredMessage?: string;
1314
1113
  }
1315
1114
 
1316
- export declare type VtSelectSize = 'small' | 'medium' | 'large';
1317
-
1318
1115
  export declare type VtSelectStatus = 'default' | 'success' | 'error' | 'warning';
1319
1116
 
1320
1117
  declare const VUIPlugin: {