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

META-INF.frontend.vaadin-dev-tools.theme-editor.metadata.model.d.ts Maven / Gradle / Ivy

There is a newer version: 24.6.0
Show newest version
import { TemplateResult } from 'lit';
import { ComponentReference } from '../../component-util';
export declare enum EditorType {
    text = "text",
    checkbox = "checkbox",
    range = "range",
    color = "color"
}
export interface CssPropertyMetadata {
    propertyName: string;
    displayName: string;
    defaultValue?: string;
    description?: string;
    editorType?: EditorType;
    presets?: string[];
    icon?: string;
    checkedValue?: string;
}
export interface ComponentElementMetadata {
    selector: string;
    stateAttribute?: string;
    stateElementSelector?: string;
    displayName: string;
    description?: string;
    properties: CssPropertyMetadata[];
}
export interface ComponentMetadata {
    tagName: string;
    displayName: string;
    description?: TemplateResult;
    notAccessibleDescription?: TemplateResult;
    elements: ComponentElementMetadata[];
    setupElement?: (element: any) => Promise;
    cleanupElement?: (element: any) => Promise;
    openOverlay?: (component: ComponentReference) => void;
    hideOverlay?: (component: ComponentReference) => void;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy