import { Command } from '@theia/core'; import { DialogProps, Message } from '@theia/core/lib/browser'; import { ReactDialog } from '@theia/core/lib/browser/dialogs/react-dialog'; import { FuzzySearch } from '@theia/core/lib/browser/tree/fuzzy-search'; import { SelectOption } from '@theia/core/lib/browser/widgets/select-component'; import { Deferred } from '@theia/core/lib/common/promise-util'; import { interfaces } from '@theia/core/shared/inversify'; import * as React from '@theia/core/shared/react'; import { Root } from '@theia/core/shared/react-dom/client'; import { FileService } from '@theia/filesystem/lib/browser/file-service'; import { PerfectScrollbar } from '@theia/core/lib/browser/widgets/perfect-scrollbar'; import { IconSetProvider } from './icons/icon-set-provider.js'; import { ReactInteraction } from './toolbar-constants.js'; import { IconSet } from './toolbar-interfaces.js'; export interface ToolbarIconDialogFactory { (command: Command): ToolbarIconSelectorDialog; } export declare const ToolbarIconDialogFactory: unique symbol; export declare const ToolbarCommand: unique symbol; export declare class ToolbarIconSelectorDialog extends ReactDialog { protected readonly props: DialogProps; protected readonly toolbarCommand: Command; protected readonly fileService: FileService; protected readonly iconSetProvider: IconSetProvider; protected readonly fuzzySearch: FuzzySearch; static ID: string; protected deferredScrollContainer: Deferred; scrollOptions: PerfectScrollbar.Options; protected filterRef: HTMLInputElement; protected selectedIcon: string | undefined; protected activeIconPrefix: IconSet; protected iconSets: Map; protected filteredIcons: string[]; protected doShowFilterPlaceholder: boolean; protected debounceHandleSearch: import("lodash").DebouncedFunc; protected controlPanelRoot: Root; constructor(props: DialogProps); protected onUpdateRequest(msg: Message): void; protected init(): void; getScrollContainer(): Promise; protected assignScrollContainerRef: (element: HTMLDivElement) => void; protected doAssignScrollContainerRef(element: HTMLDivElement): void; protected assignFilterRef: (element: HTMLInputElement) => void; protected doAssignFilterRef(element: HTMLInputElement): void; get value(): string | undefined; protected handleSelectOnChange: (option: SelectOption) => Promise; protected doHandleSelectOnChange(option: SelectOption): Promise; protected renderIconSelectorOptions(): React.ReactNode; protected renderIconGrid(): React.ReactNode; protected render(): React.ReactNode; protected doHandleSearch(): Promise; protected handleOnIconClick: (e: ReactInteraction) => void; protected doHandleOnIconClick(e: ReactInteraction): void; protected handleOnIconBlur: (e: React.FocusEvent) => void; protected doHandleOnIconBlur(e: React.FocusEvent): void; protected doAccept: (e: React.MouseEvent) => void; protected doClose: () => void; protected renderControls(): React.ReactElement; } export declare const ICON_DIALOG_WIDTH = 600; export declare const ICON_DIALOG_PADDING = 24; export declare const bindToolbarIconDialog: (bind: interfaces.Bind) => void; //# sourceMappingURL=toolbar-icon-selector-dialog.d.ts.map