1 | import { Token } from '@lumino/coreutils';
|
2 | import { IDisposable } from '@lumino/disposable';
|
3 | import { Message } from '@lumino/messaging';
|
4 | import { CommandPalette, Panel } from '@lumino/widgets';
|
5 |
|
6 |
|
7 |
|
8 | export declare const ICommandPalette: Token<ICommandPalette>;
|
9 |
|
10 |
|
11 |
|
12 | export interface IPaletteItem extends CommandPalette.IItemOptions {
|
13 | }
|
14 |
|
15 |
|
16 |
|
17 | export interface ICommandPalette {
|
18 | |
19 |
|
20 |
|
21 | placeholder: string;
|
22 | |
23 |
|
24 |
|
25 | activate(): void;
|
26 | |
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | addItem(options: IPaletteItem): IDisposable;
|
34 | }
|
35 |
|
36 |
|
37 |
|
38 | export declare class ModalCommandPalette extends Panel {
|
39 | constructor(options: ModalCommandPalette.IOptions);
|
40 | get palette(): CommandPalette;
|
41 | set palette(value: CommandPalette);
|
42 | attach(): void;
|
43 | detach(): void;
|
44 | /**
|
45 | * Hide the modal command palette and reset its search.
|
46 | */
|
47 | hideAndReset(): void;
|
48 | /**
|
49 | * Handle incoming events.
|
50 | */
|
51 | handleEvent(event: Event): void;
|
52 | /**
|
53 | * Find the element with search icon group.
|
54 | */
|
55 | protected get searchIconGroup(): HTMLDivElement | undefined;
|
56 | /**
|
57 | * Create element with search icon group.
|
58 | */
|
59 | protected createSearchIconGroup(): HTMLDivElement;
|
60 | /**
|
61 | * A message handler invoked on an `'after-attach'` message.
|
62 | */
|
63 | protected onAfterAttach(msg: Message): void;
|
64 | /**
|
65 | * A message handler invoked on an `'after-detach'` message.
|
66 | */
|
67 | protected onAfterDetach(msg: Message): void;
|
68 | protected onBeforeHide(msg: Message): void;
|
69 | protected onAfterShow(msg: Message): void;
|
70 | /**
|
71 | * A message handler invoked on an `'activate-request'` message.
|
72 | */
|
73 | protected onActivateRequest(msg: Message): void;
|
74 | /**
|
75 | * Handle the `'keydown'` event for the widget.
|
76 | */
|
77 | protected _evtKeydown(event: KeyboardEvent): void;
|
78 | private _commandPalette;
|
79 | }
|
80 | export declare namespace ModalCommandPalette {
|
81 | interface IOptions {
|
82 | commandPalette: CommandPalette;
|
83 | }
|
84 | }
|