@macrulez/vue-command-palette 0.1.2 → 0.2.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.
- package/LICENSE +21 -0
- package/README.md +420 -14
- package/dist/components/CommandGroup.vue.d.ts +8 -6
- package/dist/components/CommandItem.vue.d.ts +11 -3
- package/dist/components/CommandPalette.test.d.ts +1 -0
- package/dist/components/CommandPalette.vue.d.ts +336 -7
- package/dist/components/VirtualList.vue.d.ts +2 -0
- package/dist/core/CommandStore.d.ts +278 -7
- package/dist/core/CommandStore.test.d.ts +1 -0
- package/dist/core/FuzzySearch.d.ts +13 -1
- package/dist/core/generics.test.d.ts +1 -0
- package/dist/core/useCommandPalette.d.ts +40 -7
- package/dist/core/useCommandPalette.test.d.ts +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/plugin.d.ts +22 -1
- package/dist/plugin.test.d.ts +1 -0
- package/dist/testing.d.ts +281 -10
- package/dist/types.d.ts +122 -10
- package/dist/vue-command-palette.js +1457 -713
- package/dist/vue-command-palette.umd.cjs +1 -1
- package/package.json +27 -6
- package/dist/style.css +0 -1
|
@@ -2,18 +2,20 @@ import { Command, CommandGroup, SearchResult } from '../types';
|
|
|
2
2
|
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
"group-header"?(_: {
|
|
5
|
-
group: CommandGroup
|
|
5
|
+
group: CommandGroup<unknown>;
|
|
6
6
|
}): any;
|
|
7
7
|
"item-icon"?(_: {
|
|
8
|
-
command: Command
|
|
8
|
+
command: Command<unknown>;
|
|
9
9
|
}): any;
|
|
10
10
|
"item-shortcut"?(_: {
|
|
11
|
-
command: Command
|
|
11
|
+
command: Command<unknown>;
|
|
12
12
|
}): any;
|
|
13
13
|
item?(_: {
|
|
14
|
-
command: Command
|
|
14
|
+
command: Command<unknown>;
|
|
15
15
|
active: boolean;
|
|
16
16
|
matches: [number, number][];
|
|
17
|
+
parents: Command<unknown>[] | undefined;
|
|
18
|
+
matchedText: string | undefined;
|
|
17
19
|
}): any;
|
|
18
20
|
};
|
|
19
21
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -23,7 +25,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
23
25
|
globalOffset: number;
|
|
24
26
|
loadingCommandId?: string | null;
|
|
25
27
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
-
execute: (command: Command) => void;
|
|
28
|
+
execute: (command: Command<unknown>) => void;
|
|
27
29
|
activate: (index: number) => void;
|
|
28
30
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
29
31
|
group: CommandGroup;
|
|
@@ -32,7 +34,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
32
34
|
globalOffset: number;
|
|
33
35
|
loadingCommandId?: string | null;
|
|
34
36
|
}>>> & Readonly<{
|
|
35
|
-
onExecute?: ((command: Command) => any) | undefined;
|
|
37
|
+
onExecute?: ((command: Command<unknown>) => any) | undefined;
|
|
36
38
|
onActivate?: ((index: number) => any) | undefined;
|
|
37
39
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
38
40
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -2,15 +2,17 @@ import { Command } from '../types';
|
|
|
2
2
|
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
default?(_: {
|
|
5
|
-
command: Command
|
|
5
|
+
command: Command<unknown>;
|
|
6
6
|
active: boolean;
|
|
7
7
|
matches: [number, number][];
|
|
8
|
+
parents: Command<unknown>[] | undefined;
|
|
9
|
+
matchedText: string | undefined;
|
|
8
10
|
}): any;
|
|
9
11
|
"item-icon"?(_: {
|
|
10
|
-
command: Command
|
|
12
|
+
command: Command<unknown>;
|
|
11
13
|
}): any;
|
|
12
14
|
"item-shortcut"?(_: {
|
|
13
|
-
command: Command
|
|
15
|
+
command: Command<unknown>;
|
|
14
16
|
}): any;
|
|
15
17
|
};
|
|
16
18
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -19,6 +21,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
19
21
|
matches: Array<[number, number]>;
|
|
20
22
|
itemId: string;
|
|
21
23
|
loadingCommandId?: string | null;
|
|
24
|
+
parents?: Command[];
|
|
25
|
+
matchedText?: string;
|
|
26
|
+
alwaysShowPin?: boolean;
|
|
22
27
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
28
|
execute: () => void;
|
|
24
29
|
activate: () => void;
|
|
@@ -28,6 +33,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
28
33
|
matches: Array<[number, number]>;
|
|
29
34
|
itemId: string;
|
|
30
35
|
loadingCommandId?: string | null;
|
|
36
|
+
parents?: Command[];
|
|
37
|
+
matchedText?: string;
|
|
38
|
+
alwaysShowPin?: boolean;
|
|
31
39
|
}>>> & Readonly<{
|
|
32
40
|
onExecute?: (() => any) | undefined;
|
|
33
41
|
onActivate?: (() => any) | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,36 +1,316 @@
|
|
|
1
|
-
import { Command,
|
|
1
|
+
import { Command, CommandAction, PaletteLabels, PaletteMode } from '../types';
|
|
2
2
|
|
|
3
3
|
declare function onInput(): void;
|
|
4
|
+
declare function closeActions(): void;
|
|
5
|
+
declare function runAction(action: CommandAction): Promise<void>;
|
|
4
6
|
declare function __VLS_template(): {
|
|
5
7
|
trigger?(_: {
|
|
6
8
|
open: (paletteId?: string) => void;
|
|
7
9
|
toggle: () => void;
|
|
8
10
|
}): any;
|
|
11
|
+
actions?(_: {
|
|
12
|
+
command: {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
description?: string | undefined;
|
|
16
|
+
group?: string | undefined;
|
|
17
|
+
keywords?: string[] | undefined;
|
|
18
|
+
aliases?: string[] | undefined;
|
|
19
|
+
icon?: string | import('vue').FunctionalComponent<any, {}, any, {}> | {
|
|
20
|
+
new (...args: any[]): any;
|
|
21
|
+
__isFragment?: never;
|
|
22
|
+
__isTeleport?: never;
|
|
23
|
+
__isSuspense?: never;
|
|
24
|
+
} | {
|
|
25
|
+
[x: string]: any;
|
|
26
|
+
setup?: ((this: void, props: import('@vue/shared').LooseRequired<any>, ctx: {
|
|
27
|
+
attrs: import('vue').Attrs;
|
|
28
|
+
slots: Readonly<{
|
|
29
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
32
|
+
expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void;
|
|
33
|
+
}) => any) | undefined;
|
|
34
|
+
name?: string | undefined;
|
|
35
|
+
template?: string | object | undefined;
|
|
36
|
+
render?: Function | undefined;
|
|
37
|
+
components?: Record<string, import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>> | undefined;
|
|
38
|
+
directives?: Record<string, import('vue').Directive<any, any, string, any>> | undefined;
|
|
39
|
+
inheritAttrs?: boolean | undefined;
|
|
40
|
+
emits?: any;
|
|
41
|
+
slots?: {} | undefined;
|
|
42
|
+
expose?: string[] | undefined;
|
|
43
|
+
serverPrefetch?: (() => void | Promise<any>) | undefined;
|
|
44
|
+
compilerOptions?: {
|
|
45
|
+
isCustomElement?: ((tag: string) => boolean) | undefined;
|
|
46
|
+
whitespace?: "preserve" | "condense" | undefined;
|
|
47
|
+
comments?: boolean | undefined;
|
|
48
|
+
delimiters?: [string, string] | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
|
|
51
|
+
__isFragment?: never | undefined;
|
|
52
|
+
__isTeleport?: never | undefined;
|
|
53
|
+
__isSuspense?: never | undefined;
|
|
54
|
+
__defaults?: {} | undefined;
|
|
55
|
+
compatConfig?: {
|
|
56
|
+
GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
|
|
57
|
+
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
|
|
58
|
+
GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
|
|
59
|
+
GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
|
|
60
|
+
GLOBAL_SET?: boolean | "suppress-warning" | undefined;
|
|
61
|
+
GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
|
|
62
|
+
GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
|
|
63
|
+
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
|
|
64
|
+
CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
|
|
65
|
+
CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
|
|
66
|
+
CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
|
|
67
|
+
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
|
|
68
|
+
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
|
|
69
|
+
CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
|
|
70
|
+
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
|
|
71
|
+
INSTANCE_SET?: boolean | "suppress-warning" | undefined;
|
|
72
|
+
INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
|
|
73
|
+
INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
74
|
+
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
|
|
75
|
+
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
|
|
76
|
+
INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
|
|
77
|
+
INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
|
|
78
|
+
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
|
|
79
|
+
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
|
|
80
|
+
OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
|
|
81
|
+
OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
|
|
82
|
+
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
83
|
+
OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
|
|
84
|
+
WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
|
|
85
|
+
PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
|
|
86
|
+
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
|
|
87
|
+
CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
|
|
88
|
+
ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
|
|
89
|
+
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
|
|
90
|
+
TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
|
|
91
|
+
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
|
|
92
|
+
COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
|
|
93
|
+
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
|
|
94
|
+
COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
|
|
95
|
+
RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
|
|
96
|
+
FILTERS?: boolean | "suppress-warning" | undefined;
|
|
97
|
+
PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
|
|
98
|
+
MODE?: 2 | 3 | ((comp: import('vue').Component | null) => 2 | 3) | undefined;
|
|
99
|
+
} | undefined;
|
|
100
|
+
data?: ((this: any, vm: any) => any) | undefined;
|
|
101
|
+
computed?: import('vue').ComputedOptions | undefined;
|
|
102
|
+
methods?: import('vue').MethodOptions | undefined;
|
|
103
|
+
watch?: {
|
|
104
|
+
[x: string]: (string | import('vue').WatchCallback | ({
|
|
105
|
+
handler: import('vue').WatchCallback | string;
|
|
106
|
+
} & import('vue').WatchOptions<boolean>)) | (string | import('vue').WatchCallback | ({
|
|
107
|
+
handler: import('vue').WatchCallback | string;
|
|
108
|
+
} & import('vue').WatchOptions<boolean>))[];
|
|
109
|
+
} | undefined;
|
|
110
|
+
provide?: import('vue').ComponentProvideOptions | undefined;
|
|
111
|
+
inject?: {} | string[] | undefined;
|
|
112
|
+
filters?: Record<string, Function> | undefined;
|
|
113
|
+
mixins?: any[] | undefined;
|
|
114
|
+
extends?: any;
|
|
115
|
+
beforeCreate?: (() => any) | undefined;
|
|
116
|
+
created?: (() => any) | undefined;
|
|
117
|
+
beforeMount?: (() => any) | undefined;
|
|
118
|
+
mounted?: (() => any) | undefined;
|
|
119
|
+
beforeUpdate?: (() => any) | undefined;
|
|
120
|
+
updated?: (() => any) | undefined;
|
|
121
|
+
activated?: (() => any) | undefined;
|
|
122
|
+
deactivated?: (() => any) | undefined;
|
|
123
|
+
beforeDestroy?: (() => any) | undefined;
|
|
124
|
+
beforeUnmount?: (() => any) | undefined;
|
|
125
|
+
destroyed?: (() => any) | undefined;
|
|
126
|
+
unmounted?: (() => any) | undefined;
|
|
127
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | undefined;
|
|
128
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | undefined;
|
|
129
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | undefined;
|
|
130
|
+
delimiters?: [string, string] | undefined;
|
|
131
|
+
__differentiator?: string | number | symbol | undefined;
|
|
132
|
+
__isBuiltIn?: boolean | undefined;
|
|
133
|
+
__file?: string | undefined;
|
|
134
|
+
__name?: string | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
shortcut?: string[] | undefined;
|
|
137
|
+
disabled?: boolean | undefined;
|
|
138
|
+
enabled?: (() => boolean) | undefined;
|
|
139
|
+
disabledReason?: string | undefined;
|
|
140
|
+
badge?: string | {
|
|
141
|
+
text: string;
|
|
142
|
+
color?: string | undefined;
|
|
143
|
+
} | undefined;
|
|
144
|
+
confirm?: string | undefined;
|
|
145
|
+
perform: () => void | Promise<void>;
|
|
146
|
+
subCommands?: /*elided*/ any[] | undefined;
|
|
147
|
+
page?: {
|
|
148
|
+
placeholder?: string | undefined;
|
|
149
|
+
items?: /*elided*/ any[] | undefined;
|
|
150
|
+
onSearch?: ((query: string) => Command[] | Promise<Command[]>) | undefined;
|
|
151
|
+
} | undefined;
|
|
152
|
+
actions?: {
|
|
153
|
+
id: string;
|
|
154
|
+
label: string;
|
|
155
|
+
icon?: string | import('vue').FunctionalComponent<any, {}, any, {}> | {
|
|
156
|
+
new (...args: any[]): any;
|
|
157
|
+
__isFragment?: never;
|
|
158
|
+
__isTeleport?: never;
|
|
159
|
+
__isSuspense?: never;
|
|
160
|
+
} | {
|
|
161
|
+
[x: string]: any;
|
|
162
|
+
setup?: ((this: void, props: import('@vue/shared').LooseRequired<any>, ctx: {
|
|
163
|
+
attrs: import('vue').Attrs;
|
|
164
|
+
slots: Readonly<{
|
|
165
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
166
|
+
}>;
|
|
167
|
+
emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
168
|
+
expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void;
|
|
169
|
+
}) => any) | undefined;
|
|
170
|
+
name?: string | undefined;
|
|
171
|
+
template?: string | object | undefined;
|
|
172
|
+
render?: Function | undefined;
|
|
173
|
+
components?: Record<string, import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>> | undefined;
|
|
174
|
+
directives?: Record<string, import('vue').Directive<any, any, string, any>> | undefined;
|
|
175
|
+
inheritAttrs?: boolean | undefined;
|
|
176
|
+
emits?: any;
|
|
177
|
+
slots?: {} | undefined;
|
|
178
|
+
expose?: string[] | undefined;
|
|
179
|
+
serverPrefetch?: (() => void | Promise<any>) | undefined;
|
|
180
|
+
compilerOptions?: {
|
|
181
|
+
isCustomElement?: ((tag: string) => boolean) | undefined;
|
|
182
|
+
whitespace?: "preserve" | "condense" | undefined;
|
|
183
|
+
comments?: boolean | undefined;
|
|
184
|
+
delimiters?: [string, string] | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
|
|
187
|
+
__isFragment?: never | undefined;
|
|
188
|
+
__isTeleport?: never | undefined;
|
|
189
|
+
__isSuspense?: never | undefined;
|
|
190
|
+
__defaults?: {} | undefined;
|
|
191
|
+
compatConfig?: {
|
|
192
|
+
GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
|
|
193
|
+
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
|
|
194
|
+
GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
|
|
195
|
+
GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
|
|
196
|
+
GLOBAL_SET?: boolean | "suppress-warning" | undefined;
|
|
197
|
+
GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
|
|
198
|
+
GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
|
|
199
|
+
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
|
|
200
|
+
CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
|
|
201
|
+
CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
|
|
202
|
+
CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
|
|
203
|
+
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
|
|
204
|
+
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
|
|
205
|
+
CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
|
|
206
|
+
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
|
|
207
|
+
INSTANCE_SET?: boolean | "suppress-warning" | undefined;
|
|
208
|
+
INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
|
|
209
|
+
INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
210
|
+
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
|
|
211
|
+
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
|
|
212
|
+
INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
|
|
213
|
+
INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
|
|
214
|
+
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
|
|
215
|
+
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
|
|
216
|
+
OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
|
|
217
|
+
OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
|
|
218
|
+
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
219
|
+
OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
|
|
220
|
+
WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
|
|
221
|
+
PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
|
|
222
|
+
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
|
|
223
|
+
CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
|
|
224
|
+
ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
|
|
225
|
+
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
|
|
226
|
+
TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
|
|
227
|
+
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
|
|
228
|
+
COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
|
|
229
|
+
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
|
|
230
|
+
COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
|
|
231
|
+
RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
|
|
232
|
+
FILTERS?: boolean | "suppress-warning" | undefined;
|
|
233
|
+
PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
|
|
234
|
+
MODE?: 2 | 3 | ((comp: import('vue').Component | null) => 2 | 3) | undefined;
|
|
235
|
+
} | undefined;
|
|
236
|
+
data?: ((this: any, vm: any) => any) | undefined;
|
|
237
|
+
computed?: import('vue').ComputedOptions | undefined;
|
|
238
|
+
methods?: import('vue').MethodOptions | undefined;
|
|
239
|
+
watch?: {
|
|
240
|
+
[x: string]: (string | import('vue').WatchCallback | ({
|
|
241
|
+
handler: import('vue').WatchCallback | string;
|
|
242
|
+
} & import('vue').WatchOptions<boolean>)) | (string | import('vue').WatchCallback | ({
|
|
243
|
+
handler: import('vue').WatchCallback | string;
|
|
244
|
+
} & import('vue').WatchOptions<boolean>))[];
|
|
245
|
+
} | undefined;
|
|
246
|
+
provide?: import('vue').ComponentProvideOptions | undefined;
|
|
247
|
+
inject?: {} | string[] | undefined;
|
|
248
|
+
filters?: Record<string, Function> | undefined;
|
|
249
|
+
mixins?: any[] | undefined;
|
|
250
|
+
extends?: any;
|
|
251
|
+
beforeCreate?: (() => any) | undefined;
|
|
252
|
+
created?: (() => any) | undefined;
|
|
253
|
+
beforeMount?: (() => any) | undefined;
|
|
254
|
+
mounted?: (() => any) | undefined;
|
|
255
|
+
beforeUpdate?: (() => any) | undefined;
|
|
256
|
+
updated?: (() => any) | undefined;
|
|
257
|
+
activated?: (() => any) | undefined;
|
|
258
|
+
deactivated?: (() => any) | undefined;
|
|
259
|
+
beforeDestroy?: (() => any) | undefined;
|
|
260
|
+
beforeUnmount?: (() => any) | undefined;
|
|
261
|
+
destroyed?: (() => any) | undefined;
|
|
262
|
+
unmounted?: (() => any) | undefined;
|
|
263
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | undefined;
|
|
264
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | undefined;
|
|
265
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | undefined;
|
|
266
|
+
delimiters?: [string, string] | undefined;
|
|
267
|
+
__differentiator?: string | number | symbol | undefined;
|
|
268
|
+
__isBuiltIn?: boolean | undefined;
|
|
269
|
+
__file?: string | undefined;
|
|
270
|
+
__name?: string | undefined;
|
|
271
|
+
} | undefined;
|
|
272
|
+
shortcut?: string[] | undefined;
|
|
273
|
+
perform: () => void | Promise<void>;
|
|
274
|
+
}[] | undefined;
|
|
275
|
+
info?: string | undefined;
|
|
276
|
+
data?: unknown;
|
|
277
|
+
};
|
|
278
|
+
run: typeof runAction;
|
|
279
|
+
activeIndex: number;
|
|
280
|
+
close: typeof closeActions;
|
|
281
|
+
}): any;
|
|
9
282
|
header?(_: {}): any;
|
|
10
283
|
input?(_: {
|
|
11
284
|
query: string;
|
|
12
285
|
onInput: typeof onInput;
|
|
13
286
|
}): any;
|
|
14
287
|
"item-icon"?(_: {
|
|
15
|
-
command: Command
|
|
288
|
+
command: Command<unknown>;
|
|
16
289
|
}): any;
|
|
17
290
|
"item-shortcut"?(_: {
|
|
18
|
-
command: Command
|
|
291
|
+
command: Command<unknown>;
|
|
19
292
|
}): any;
|
|
20
293
|
item?(_: {
|
|
21
|
-
command: Command
|
|
294
|
+
command: Command<unknown>;
|
|
22
295
|
active: boolean;
|
|
23
296
|
matches: [number, number][];
|
|
297
|
+
parents: Command<unknown>[] | undefined;
|
|
298
|
+
matchedText: string | undefined;
|
|
24
299
|
}): any;
|
|
25
300
|
"group-header"?(_: {
|
|
26
|
-
group:
|
|
301
|
+
group: import('..').CommandGroupType<unknown>;
|
|
27
302
|
}): any;
|
|
28
303
|
empty?(_: {
|
|
29
304
|
query: string;
|
|
30
305
|
}): any;
|
|
306
|
+
preview?(_: {
|
|
307
|
+
command: Command<unknown> | null;
|
|
308
|
+
}): any;
|
|
31
309
|
footer?(_: {}): any;
|
|
32
310
|
};
|
|
33
311
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
312
|
+
/** Target a specific named palette instance (default singleton when omitted). */
|
|
313
|
+
name?: string;
|
|
34
314
|
placeholder?: string;
|
|
35
315
|
maxResults?: number;
|
|
36
316
|
emptyText?: string;
|
|
@@ -38,7 +318,19 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
38
318
|
teleportTo?: string;
|
|
39
319
|
theme?: "default" | "compact";
|
|
40
320
|
animationDuration?: number;
|
|
321
|
+
labels?: Partial<PaletteLabels>;
|
|
322
|
+
/** Cluster recent commands by their `group` with sub-headers (empty query view). */
|
|
323
|
+
groupRecent?: boolean;
|
|
324
|
+
/** Prefix-activated search scopes (e.g. `>` commands, `@` symbols). */
|
|
325
|
+
modes?: PaletteMode[];
|
|
326
|
+
/** Enable multi-select: Enter toggles, $mod+Enter submits the selection. */
|
|
327
|
+
selectable?: boolean;
|
|
328
|
+
/** Show a preview pane (right column) for the active command via the `#preview` slot and command `info`. */
|
|
329
|
+
preview?: boolean;
|
|
330
|
+
/** Key combo that toggles the preview pane (default `['$mod', 'i']`; empty to disable). */
|
|
331
|
+
previewHotkey?: string[];
|
|
41
332
|
}>, {
|
|
333
|
+
name: undefined;
|
|
42
334
|
placeholder: string;
|
|
43
335
|
maxResults: number;
|
|
44
336
|
emptyText: string;
|
|
@@ -46,7 +338,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
46
338
|
teleportTo: string;
|
|
47
339
|
theme: string;
|
|
48
340
|
animationDuration: number;
|
|
49
|
-
|
|
341
|
+
labels: undefined;
|
|
342
|
+
groupRecent: boolean;
|
|
343
|
+
modes: undefined;
|
|
344
|
+
selectable: boolean;
|
|
345
|
+
preview: boolean;
|
|
346
|
+
previewHotkey: () => string[];
|
|
347
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
348
|
+
"submit-selection": (commands: Command<unknown>[]) => void;
|
|
349
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
350
|
+
/** Target a specific named palette instance (default singleton when omitted). */
|
|
351
|
+
name?: string;
|
|
50
352
|
placeholder?: string;
|
|
51
353
|
maxResults?: number;
|
|
52
354
|
emptyText?: string;
|
|
@@ -54,7 +356,19 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
54
356
|
teleportTo?: string;
|
|
55
357
|
theme?: "default" | "compact";
|
|
56
358
|
animationDuration?: number;
|
|
359
|
+
labels?: Partial<PaletteLabels>;
|
|
360
|
+
/** Cluster recent commands by their `group` with sub-headers (empty query view). */
|
|
361
|
+
groupRecent?: boolean;
|
|
362
|
+
/** Prefix-activated search scopes (e.g. `>` commands, `@` symbols). */
|
|
363
|
+
modes?: PaletteMode[];
|
|
364
|
+
/** Enable multi-select: Enter toggles, $mod+Enter submits the selection. */
|
|
365
|
+
selectable?: boolean;
|
|
366
|
+
/** Show a preview pane (right column) for the active command via the `#preview` slot and command `info`. */
|
|
367
|
+
preview?: boolean;
|
|
368
|
+
/** Key combo that toggles the preview pane (default `['$mod', 'i']`; empty to disable). */
|
|
369
|
+
previewHotkey?: string[];
|
|
57
370
|
}>, {
|
|
371
|
+
name: undefined;
|
|
58
372
|
placeholder: string;
|
|
59
373
|
maxResults: number;
|
|
60
374
|
emptyText: string;
|
|
@@ -62,7 +376,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
62
376
|
teleportTo: string;
|
|
63
377
|
theme: string;
|
|
64
378
|
animationDuration: number;
|
|
65
|
-
|
|
379
|
+
labels: undefined;
|
|
380
|
+
groupRecent: boolean;
|
|
381
|
+
modes: undefined;
|
|
382
|
+
selectable: boolean;
|
|
383
|
+
preview: boolean;
|
|
384
|
+
previewHotkey: () => string[];
|
|
385
|
+
}>>> & Readonly<{
|
|
386
|
+
"onSubmit-selection"?: ((commands: Command<unknown>[]) => any) | undefined;
|
|
387
|
+
}>, {
|
|
388
|
+
selectable: boolean;
|
|
389
|
+
name: string;
|
|
66
390
|
placeholder: string;
|
|
67
391
|
maxResults: number;
|
|
68
392
|
emptyText: string;
|
|
@@ -70,6 +394,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
70
394
|
teleportTo: string;
|
|
71
395
|
theme: "default" | "compact";
|
|
72
396
|
animationDuration: number;
|
|
397
|
+
labels: Partial<PaletteLabels>;
|
|
398
|
+
groupRecent: boolean;
|
|
399
|
+
modes: PaletteMode[];
|
|
400
|
+
preview: boolean;
|
|
401
|
+
previewHotkey: string[];
|
|
73
402
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
74
403
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
75
404
|
export default _default;
|
|
@@ -4,6 +4,8 @@ declare const _default: <T>(__VLS_props: Awaited<typeof __VLS_setup>["props"], _
|
|
|
4
4
|
itemHeight: number;
|
|
5
5
|
containerHeight: number;
|
|
6
6
|
overscan?: number;
|
|
7
|
+
/** Index (into `items`) that should always be kept in view. */
|
|
8
|
+
activeIndex?: number;
|
|
7
9
|
}, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
8
10
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
9
11
|
containerEl: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|