import controls = require("./controls"); import wb = require("./workbench"); import { IControl, Composite } from "./controls"; import { PropertyDescription, PropertyGroup } from "./properties"; export declare enum Severity { OK = 0, WARNING = 1, ERROR = 2, } export declare class Status { sev: Severity; message: string; } export declare class Form extends controls.Composite { constructor(); } export declare class TabFolder extends controls.WrapComposite { constructor(); protected extraRender(ch: HTMLElement): void; protected wrap(p: HTMLElement, c?: IControl): HTMLElement; protected renderChildren(ch: HTMLElement): void; } export declare class InputGroup extends controls.Composite { constructor(); } export declare class InputGroupAddOn extends controls.Composite { constructor(); } export declare abstract class BindableControl extends controls.Composite { _binding: IBinding; protected renderContent(ch: HTMLElement): void; protected abstract initBinding(ch: HTMLElement): any; } export declare class Input extends BindableControl { constructor(); protected initBinding(ch: HTMLElement): void; } export declare class TextArea extends BindableControl { constructor(); protected initBinding(ch: HTMLElement): void; } export declare class Option extends controls.Composite { constructor(value: any); } export declare class Help extends controls.Composite { constructor(value: string); } export declare class Select extends BindableControl { constructor(); protected initBinding(ch: HTMLElement): void; } export declare class Button extends controls.Composite { constructor(text: string); } export declare class Toolbar extends controls.Composite { items: controls.IContributionItem[]; constructor(); protected renderContent(ch: HTMLElement): void; } export declare class Section extends controls.Composite { heading: Composite; toolbar: Toolbar; body: Composite; protected description: string; add(c: IControl): void; constructor(title?: string); } export declare class CreateAction { private pd; private b; obj: {}; constructor(pd: PropertyDescription, b: IBinding); run(): void; } export declare class EditAction { private pd; private b; obj: {}; constructor(pd: PropertyDescription, b: IBinding); run(): void; } export declare class ListView extends BindableControl implements wb.ISelectionProvider { private pd; private emptyText; constructor(pd: PropertyDescription, emptyText?: string); selectionListeners: wb.ISelectionListener[]; addSelectionListener(l: wb.ISelectionListener): void; removeSelectionListener(l: wb.ISelectionListener): void; getSelection(): any[]; renderValue(v: any): string; selectedIndex: number; protected initBinding(ch: HTMLElement): void; } export declare class TableEditor extends BindableControl { private pd; private ctx; initBinding(): void; protected appendValue(v: any): void; protected replaceValue(old: number, v: any): void; protected removeValue(v: any): void; content: Section; listView: ListView; _selection: any; updateToolbar(toolbar: Toolbar): void; constructor(pd: PropertyDescription, ctx?: RenderingContext); } export interface IBridge { get(path: string): any; set(path: string, v: any): any; keys(): string[]; binding(p: string): IBinding; } export interface IBinding { get(): any; set(v: any): any; } export declare class CheckBox extends BindableControl { constructor(caption?: string); protected initBinding(ch: HTMLElement): any; } export declare class ObjectBridge implements IBridge { private obj; listeners: ((x) => void)[]; addListener(l: (x) => void): void; removeListener(l: (x) => void): void; constructor(obj: any); get(path: string): any; set(path: string, v: any): void; binding(p: string): any; keys(): string[]; } export declare class BridgeBinding implements IBinding { private id; private br; constructor(id: string, br: IBridge); get(): any; set(v: any): void; } export declare class ArrayBinding implements IBinding { private p; private br; constructor(p: PropertyDescription, br: IBinding); get(): any; set(v: any): void; } export declare class MapBinding implements IBinding { private id; private br; constructor(id: string, br: IBridge); get(): any[]; set(v: any): void; } export interface RenderingContext { tabsTop?: boolean; } export declare function renderPropertyGroup(p: PropertyGroup, bridge: IBridge, ctx?: RenderingContext): controls.VerticalFlex;