@dooboostore/dom-render
Version:
html view template engine
68 lines • 3.53 kB
TypeScript
import { Config } from '../configs/Config';
export declare class EventManager {
static readonly attrPrefix = "dr-";
readonly eventNames: string[];
static ownerVariablePathAttrName: string;
static readonly eventParam: string;
static readonly onInitAttrName: string;
static readonly valueAttrName: string;
static linkAttrs: {
name: string;
property: string;
event: string;
}[];
static readonly linkTargetMapAttrName: string;
static readonly onRenderedInitAttrName: string;
static readonly attrAttrName: string;
static readonly normalAttrMapAttrName: string;
static readonly styleAttrName: string;
static readonly classAttrName: string;
static readonly VALUE_VARNAME = "$value";
static readonly SCRIPTS_VARNAME = "$scripts";
static readonly FAG_VARNAME = "$fag";
static readonly RAWSET_VARNAME = "$rawSet";
static readonly RENDER_VARNAME = "$render";
static readonly NEAR_THIS_VARNAME = "$nearThis";
static readonly PARENT_THIS_VARNAME = "$parentThis";
static readonly ROOT_OBJECT_VARNAME = "$rootObject";
static readonly SCRIPT_UTILS_VARNAME = "$scriptUtils";
static readonly RANGE_VARNAME = "$range";
static readonly ROUTER_VARNAME = "$router";
static readonly INNER_HTML_VARNAME = "$innerHTML";
static readonly ELEMENT_VARNAME = "$element";
static readonly TARGET_VARNAME = "$target";
static readonly EVENT_VARNAME = "$event";
static readonly COMPONENT_VARNAME = "$component";
static readonly INNERHTML_VARNAME = "$innerHTML";
static readonly ATTRIBUTE_VARNAME = "$attribute";
static readonly CREATOR_META_DATA_VARNAME = "$creatorMetaData";
static readonly PARENT_THIS_PATH_VARNAME = "$parentPath";
static readonly CURRENT_THIS_VARNAME = "$currentThis";
static readonly CURRENT_THIS_PATH_VARNAME = "$currentThisPath";
static readonly NEAR_THIS_PATH_VARNAME = "$nearThisPath";
static readonly VARNAMES: string[];
static readonly WINDOW_EVENT_POPSTATE = "popstate";
static readonly WINDOW_EVENT_RESIZE = "resize";
static readonly WINDOW_EVENTS: string[];
static readonly attrNames: string[];
readonly bindScript: string;
constructor();
findAttrElements(fragment: DocumentFragment | Element, config?: Config): Set<Element>;
applyEvent(obj: any, childNodes: Set<ChildNode> | Set<Element>, config?: Config): void;
onRenderedEvent(obj: any, childNodes: Set<ChildNode> | Set<Element> | Node[], config?: Config): void;
changeVar(obj: any, elements: Set<Element> | Set<ChildNode>, varName?: string, config?: Config): void;
addDrEvents(obj: any, eventName: string, elements: Set<Element> | Set<ChildNode>, config?: Config): void;
addDrEventPram(obj: any, attr: string, elements: Set<ChildNode> | Set<Element>, config?: Config): void;
procAttr<T extends Element = Element>(elements: Set<Element> | Set<ChildNode> | Node[], attrName: string, callBack: (h: T, value: string, attributes: any) => void): void;
getValue<T = any>(obj: any, name: string, bindObj?: any): T;
setValue(obj: any, name: string, value?: any): void;
static isUsingThisVar(raws: string | null | undefined, varName: string | null | undefined): boolean;
static setBindProperty(scripts: {
[p: string]: any;
} | undefined, obj: any): {
[p: string]: any;
} | undefined;
getBindScript(config?: Config): string;
}
export declare const eventManager: EventManager;
//# sourceMappingURL=EventManager.d.ts.map