voiptime-components 1.20.0 → 1.20.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
@@ -1,5 +1,7 @@
1
+ import { AllowedComponentProps } from 'vue';
1
2
  import { App } from 'vue';
2
3
  import { Component } from 'vue';
4
+ import { ComponentCustomProps } from 'vue';
3
5
  import { ComponentOptionsMixin } from 'vue';
4
6
  import { ComponentProvideOptions } from 'vue';
5
7
  import { ComputedRef } from 'vue';
@@ -12,7 +14,11 @@ import { InjectionKey } from 'vue';
12
14
  import { ObjectDirective } from 'vue';
13
15
  import { PublicProps } from 'vue';
14
16
  import { Ref } from 'vue';
17
+ import { RendererElement } from 'vue';
18
+ import { RendererNode } from 'vue';
19
+ import { ShallowUnwrapRef } from 'vue';
15
20
  import { VNode } from 'vue';
21
+ import { VNodeProps } from 'vue';
16
22
 
17
23
  declare const __VLS_component: DefineComponent<VButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
18
24
  click: (event: MouseEvent) => any;
@@ -463,6 +469,10 @@ declare const __VLS_component_9: DefineComponent<{}, {}, {}, {}, {}, ComponentOp
463
469
  onClick?: ((option: VtSelectOption) => any) | undefined;
464
470
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
465
471
 
472
+ declare type __VLS_PrettifyLocal<T> = {
473
+ [K in keyof T]: T[K];
474
+ } & {};
475
+
466
476
  declare type __VLS_Props = VTableProps;
467
477
 
468
478
  declare type __VLS_Props_2 = {
@@ -2600,6 +2610,62 @@ export declare interface VtOptionEmits {
2600
2610
  click: [option: VtSelectOption];
2601
2611
  }
2602
2612
 
2613
+ export declare const VTransferList: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2614
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
2615
+ readonly "onUpdate:listOne"?: ((value: T[]) => any) | undefined;
2616
+ readonly "onUpdate:listTwo"?: ((value: T[]) => any) | undefined;
2617
+ readonly onSelectLeft?: ((item: T) => any) | undefined;
2618
+ readonly onSelectRight?: ((item: T) => any) | undefined;
2619
+ readonly onTransfer?: ((item: T, direction: "left" | "right") => any) | undefined;
2620
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:listOne" | "onUpdate:listTwo" | "onSelectLeft" | "onSelectRight" | "onTransfer"> & ({
2621
+ listOne: T[];
2622
+ listTwo: T[];
2623
+ } & VTransferListProps<T>) & Partial<{}>> & PublicProps;
2624
+ expose(exposed: ShallowUnwrapRef<{}>): void;
2625
+ attrs: any;
2626
+ slots: {
2627
+ 'left-empty'?(_: {}): any;
2628
+ item?(_: {
2629
+ item: T;
2630
+ }): any;
2631
+ item?(_: {
2632
+ item: T;
2633
+ }): any;
2634
+ 'right-empty'?(_: {}): any;
2635
+ };
2636
+ emit: (((evt: "selectLeft", item: T) => void) & ((evt: "selectRight", item: T) => void) & ((evt: "transfer", item: T, direction: "left" | "right") => void)) & (((evt: "update:listOne", value: T[]) => void) & ((evt: "update:listTwo", value: T[]) => void));
2637
+ }>) => VNode<RendererNode, RendererElement, {
2638
+ [key: string]: any;
2639
+ }> & {
2640
+ __ctx?: Awaited<typeof __VLS_setup>;
2641
+ };
2642
+
2643
+ export declare interface VTransferListEmits<T extends Record<string, any>> {
2644
+ selectLeft: [item: T];
2645
+ selectRight: [item: T];
2646
+ /** Емітується при кожному переносі елемента, з напрямком */
2647
+ transfer: [item: T, direction: 'left' | 'right'];
2648
+ }
2649
+
2650
+ export declare interface VTransferListProps<T extends Record<string, any>> {
2651
+ /** Ключ для відображення тексту елемента */
2652
+ optionLabel?: keyof T & string;
2653
+ /** Ключ унікального ідентифікатора елемента */
2654
+ optionValue?: keyof T & string;
2655
+ /** Підсвічує правий контейнер червоною рамкою при невалідному стані */
2656
+ isValidRightContainer?: boolean;
2657
+ /** Фіксована висота контейнерів (наприклад: '300px') */
2658
+ heightStyle?: string;
2659
+ /** Плейсхолдер лівого списку */
2660
+ leftPlaceholder?: string;
2661
+ /** Плейсхолдер правого списку */
2662
+ rightPlaceholder?: string;
2663
+ /** Заголовок лівого списку */
2664
+ leftLabel?: string;
2665
+ /** Заголовок правого списку */
2666
+ rightLabel?: string;
2667
+ }
2668
+
2603
2669
  export declare interface VtSelectContext {
2604
2670
  selectValue: any;
2605
2671
  multiple: boolean;