@dolanske/vui 1.10.0 → 1.10.1

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.
@@ -41,13 +41,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
41
41
  disabled: BooleanConstructor;
42
42
  plain: BooleanConstructor;
43
43
  }>> & Readonly<{}>, {
44
+ variant: Variants;
45
+ outline: boolean;
44
46
  size: Sizes;
45
47
  loading: boolean;
46
48
  expand: boolean;
47
49
  square: boolean;
48
- outline: boolean;
49
50
  disabled: boolean;
50
51
  plain: boolean;
51
- variant: Variants;
52
52
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
53
53
  export default _default;
@@ -1,4 +1,5 @@
1
1
  import { VNode } from 'vue';
2
+ type __VLS_Props = Props;
2
3
  export interface Command {
3
4
  title: string;
4
5
  description?: string;
@@ -10,99 +11,52 @@ export interface Command {
10
11
  }
11
12
  interface Props {
12
13
  open: boolean;
13
- search?: string;
14
14
  placeholder?: string;
15
15
  commands: Command[];
16
+ loading?: boolean;
16
17
  }
17
- declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
+ type __VLS_PublicProps = {
19
+ 'search'?: string;
20
+ 'group'?: string | null;
21
+ } & __VLS_Props;
22
+ declare function __VLS_template(): {
23
+ attrs: Partial<{}>;
24
+ slots: {
25
+ default?(_: {
26
+ commands: Record<string, Command[]>;
27
+ }): any;
28
+ command?(_: {
29
+ command: Command;
30
+ group: string;
31
+ }): any;
32
+ icon?(_: {
33
+ command: Command;
34
+ }): any;
35
+ };
36
+ refs: {
37
+ searchRef: HTMLInputElement;
38
+ };
39
+ rootEl: any;
40
+ };
41
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
42
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
43
+ "update:search": (value: string) => any;
44
+ "update:group": (value: string | null) => any;
45
+ } & {
18
46
  close: () => any;
19
- }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
47
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
48
  onClose?: (() => any) | undefined;
49
+ "onUpdate:search"?: ((value: string) => any) | undefined;
50
+ "onUpdate:group"?: ((value: string | null) => any) | undefined;
21
51
  }>, {
22
52
  placeholder: string;
23
53
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
24
- searchRef: ({
25
- $: import('vue').ComponentInternalInstance;
26
- $data: {};
27
- $props: {
28
- readonly modelValue?: string | number | undefined;
29
- readonly type?: import('../Input/Input.vue').InputType | undefined;
30
- readonly label?: string | undefined;
31
- readonly hint?: string | undefined;
32
- readonly limit?: number | string | undefined;
33
- readonly expand?: boolean | undefined;
34
- readonly placeholder?: string | undefined;
35
- readonly required?: boolean | undefined;
36
- readonly readonly?: boolean | undefined;
37
- readonly focus?: boolean | undefined;
38
- readonly errors?: string[] | undefined;
39
- readonly accept?: string | undefined;
40
- readonly multiple?: boolean | undefined;
41
- readonly min?: number | undefined;
42
- readonly max?: number | undefined;
43
- readonly disabled?: boolean | undefined;
44
- readonly "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
45
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
46
- $attrs: {
47
- [x: string]: unknown;
48
- };
49
- $refs: {
50
- [x: string]: unknown;
51
- } & {
52
- input: HTMLInputElement;
53
- };
54
- $slots: Readonly<{
55
- [name: string]: import('vue').Slot<any> | undefined;
56
- }>;
57
- $root: import('vue').ComponentPublicInstance | null;
58
- $parent: import('vue').ComponentPublicInstance | null;
59
- $host: Element | null;
60
- $emit: (event: "update:modelValue", value: string | number) => void;
61
- $el: HTMLDivElement;
62
- $options: import('vue').ComponentOptionsBase<Readonly<{
63
- modelValue?: string | number;
64
- } & import('../Input/Input.vue').InputProps> & Readonly<{
65
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
66
- }>, {
67
- focus: () => void;
68
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
69
- "update:modelValue": (value: string | number) => any;
70
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
71
- beforeCreate?: (() => void) | (() => void)[];
72
- created?: (() => void) | (() => void)[];
73
- beforeMount?: (() => void) | (() => void)[];
74
- mounted?: (() => void) | (() => void)[];
75
- beforeUpdate?: (() => void) | (() => void)[];
76
- updated?: (() => void) | (() => void)[];
77
- activated?: (() => void) | (() => void)[];
78
- deactivated?: (() => void) | (() => void)[];
79
- beforeDestroy?: (() => void) | (() => void)[];
80
- beforeUnmount?: (() => void) | (() => void)[];
81
- destroyed?: (() => void) | (() => void)[];
82
- unmounted?: (() => void) | (() => void)[];
83
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
84
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
85
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
86
- };
87
- $forceUpdate: () => void;
88
- $nextTick: typeof import('vue').nextTick;
89
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
90
- } & Readonly<{}> & Omit<Readonly<{
91
- modelValue?: string | number;
92
- } & import('../Input/Input.vue').InputProps> & Readonly<{
93
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
94
- }>, "focus"> & import('vue').ShallowUnwrapRef<{
95
- focus: () => void;
96
- }> & {} & import('vue').ComponentCustomProperties & {} & {
97
- $slots: {
98
- before?(_: {}): any;
99
- start?(_: {}): any;
100
- __internal_replace_input?(_: {
101
- inputId: string;
102
- }): any;
103
- end?(_: {}): any;
104
- after?(_: {}): any;
105
- };
106
- }) | null;
54
+ searchRef: HTMLInputElement;
107
55
  }, any>;
56
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
108
57
  export default _default;
58
+ type __VLS_WithTemplateSlots<T, S> = T & {
59
+ new (): {
60
+ $slots: S;
61
+ };
62
+ };