UNPKG

@xcons/widget

Version:

XCon Studio widget utilities with advanced template rendering, reactive binding system and registry pattern support

25 lines (24 loc) 901 B
import type { EncapsulationMode } from "../interfaces"; import { WidgetConfig } from "../interfaces"; export declare class WidgetEncapsulationManager { /** * Apply encapsulation to container */ static applyEncapsulation(container: any, selector: string, encapsulation: EncapsulationMode, config: WidgetConfig, widgetInstance?: any): HTMLElement; /** * Apply emulated encapsulation - directly on container without creating wrapper */ private static applyEmulatedEncapsulation; /** * Apply XCon-style component encapsulation - directly on container */ private static applyXConStyleComponentEncapsulation; /** * Apply shadow DOM encapsulation */ private static applyShadowEncapsulation; /** * Resolve container to HTMLElement */ static resolveContainer(container: any, widgetInstance?: any): HTMLElement | null; }