All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.frontend.vaadin-dev-tools.vaadin-dev-tools.d.ts Maven / Gradle / Ivy

There is a newer version: 24.6.2
Show newest version
import 'construct-style-sheets-polyfill';
import { LitElement, PropertyValueMap, TemplateResult } from 'lit';
import './theme-editor/editor';
import { ThemeEditorState } from './theme-editor/model';
import { Product } from './License';
import { ConnectionStatus } from './connection';
import './vaadin-dev-tools-log';
import './vaadin-dev-tools-info';
/**
 * Plugin API for the dev tools window.
 */
export interface DevToolsInterface {
    send(command: string, data: any): void;
    addTab(id: string, tag: string): void;
}
export interface MessageHandler {
    handleMessage(message: ServerMessage): boolean;
}
export interface ServerMessage {
    /**
     * The command
     */
    command: string;
    /**
     * the data for the command
     */
    data: any;
}
/**
 * To create and register a plugin, use e.g.
 * @example
 * export class MyTab extends LitElement implements MessageHandler {
 *   render() {
 *     return html`
Here I am
`; * } * } * customElements.define('my-tab', MyTab); * * const plugin: DevToolsPlugin = { * init: function (devToolsInterface: DevToolsInterface): void { * devToolsInterface.addTab('Tab title', 'my-tab') * } * }; * * (window as any).Vaadin.devToolsPlugins.push(plugin); */ export interface DevToolsPlugin { /** * Called once to initialize the plugin. * * @param devToolsInterface provides methods to interact with the dev tools */ init(devToolsInterface: DevToolsInterface): void; } interface Feature { id: string; title: string; moreInfoLink: string; requiresServerRestart: boolean; enabled: boolean; } export declare enum MessageType { LOG = "log", INFORMATION = "information", WARNING = "warning", ERROR = "error" } interface Message { id: number; type: MessageType; message: string; details?: string; link?: string; persistentId?: string; dontShowAgain: boolean; deleted: boolean; } export declare class VaadinDevTools extends LitElement { static MAX_LOG_ROWS: number; unhandledMessages: ServerMessage[]; static get styles(): import("lit").CSSResult[]; static DISMISSED_NOTIFICATIONS_IN_LOCAL_STORAGE: string; static ACTIVE_KEY_IN_SESSION_STORAGE: string; static TRIGGERED_KEY_IN_SESSION_STORAGE: string; static TRIGGERED_COUNT_KEY_IN_SESSION_STORAGE: string; static AUTO_DEMOTE_NOTIFICATION_DELAY: number; static HOTSWAP_AGENT: string; static JREBEL: string; static SPRING_BOOT_DEVTOOLS: string; static BACKEND_DISPLAY_NAME: Record; static get isActive(): boolean; static notificationDismissed(persistentId: string): boolean; url?: string; liveReloadDisabled?: boolean; backend?: string; springBootLiveReloadPort?: number; expanded: boolean; messages: Message[]; splashMessage?: string; notifications: Message[]; frontendStatus: ConnectionStatus; javaStatus: ConnectionStatus; private tabs; private activeTab; private features; unreadErrors: boolean; private root; private componentPicker; componentPickActive: boolean; themeEditorState: ThemeEditorState; private javaConnection?; private frontendConnection?; private nextMessageId; private disableEventListener?; private transitionDuration; elementTelemetry(): void; openWebSocketConnection(): void; tabHandleMessage(tabElement: HTMLElement, message: ServerMessage): boolean; handleFrontendMessage(message: ServerMessage): void; getDedicatedWebSocketUrl(): string | undefined; getSpringBootWebSocketUrl(location: any): string; constructor(); connectedCallback(): void; initPlugin(plugin: DevToolsPlugin): Promise; format(o: any): string; catchErrors(): void; disconnectedCallback(): void; toggleExpanded(): void; showSplashMessage(msg: string | undefined): void; demoteSplashMessage(): void; checkLicense(productInfo: Product): void; log(type: MessageType, message: string, details?: string, link?: string): void; showNotification(type: MessageType, message: string, details?: string, link?: string, persistentId?: string): void; dismissNotification(id: number): void; findNotificationIndex(id: number): number; toggleDontShowAgain(id: number): void; setActive(yes: boolean): void; getStatusColor(status: ConnectionStatus | undefined): "none" | "var(--dev-tools-green-color)" | "var(--dev-tools-grey-color)" | "var(--dev-tools-yellow-hsl)" | "var(--dev-tools-red-color)"; renderMessage(messageObject: Message): TemplateResult<1>; render(): TemplateResult<1>; protected updated(_changedProperties: PropertyValueMap | Map): void; renderCode(): TemplateResult<1>; private renderFeatures; disableJavaLiveReload(): void; enableJavaLiveReload(): void; renderThemeEditor(): TemplateResult<1>; toggleFeatureFlag(e: Event, feature: Feature): void; } export {};




© 2015 - 2025 Weber Informatics LLC | Privacy Policy