ucbuilder
Version:
:Shree Ganeshay Namah: new way app design
64 lines (63 loc) • 2.95 kB
TypeScript
import { codeFileInfo } from "../build/codeFileInfo.js";
import { TemplateMaker } from "../build/TemplateMaker.js";
import { ITemplatePathOptions, ITptOptions } from "../common/enumAndMore.js";
import { SourceNode } from "../lib/StampGenerator.js";
import { CSSSearchAttributeCondition, CSSVariableScope, StyleBaseType, VariableList } from "./StylerRegs.js";
import { ITransferDataNode, Usercontrol } from "./Usercontrol.js";
export declare class Template {
static extractArgs: (args: any) => IArguments;
static getTemplateOptionByElement(iele: HTMLElement, cinfo: codeFileInfo): ITemplatePathOptions | undefined;
static splitCSSById(cssContent: string, cssFilePath: string, importMetaUrl: string, rtrn: {
[key: string]: ITemplatePathOptions;
}): string;
static GetOptionsByContent(htmlcontent: string, cssContent: string, cssFilePath: string, importMetaUrl: string): {
outerCSS: string;
tptObj: {
[key: string]: ITemplatePathOptions;
};
};
static GetObjectOfTemplate(cinfo: codeFileInfo, htContent?: string, cssdata?: string): {
outerCSS: string;
tptObj: {
[key: string]: ITemplatePathOptions;
};
};
static GetArrayOfTemplate(cinfo: codeFileInfo): ITemplatePathOptions[];
createTemplate(tptPathOpt: ITemplatePathOptions): TemplateNode;
pushTemplateCss(cssCode: string, cssPath: string, baseType?: StyleBaseType, mode?: CSSSearchAttributeCondition): void;
extended: {
initializebase: (pera: ITptOptions) => void;
cfInfo: codeFileInfo;
parentUc: Usercontrol;
};
}
export declare class TemplateNode {
constructor(main: Template);
extended: {
main: Template;
srcNode: SourceNode;
accessName: string;
parentUc: Usercontrol;
setCssVariable: (varList: VariableList, scope: CSSVariableScope) => void;
getCssVariable: (key: string, scope: CSSVariableScope) => string;
generateContent: (jsonRow: {}, preDefinedContent?: string) => string;
tmaker: TemplateMaker;
generateNode: (jsonRow: any) => HTMLElement;
initializecomponent: (_args: ITptOptions, tptPathOpt: ITemplatePathOptions) => void;
sampleNode: HTMLElement;
Events: {
beforeGenerateContent: (content: string, jsonRow: any) => string;
onGenerateContent: (content: string, jsonRow: any) => string;
onGenerateNode: (mainNode: HTMLElement, jsonRow: any, ctrls?: {
[key: string]: HTMLElement | HTMLElement[];
}) => void;
onDataExport: (data: ITransferDataNode) => boolean;
onDataImport: (data: ITransferDataNode) => boolean;
};
destruct: () => void;
find: (skey: string, fromHT: HTMLElement) => Element[];
getAllControls: (specific: string[], fromHT: HTMLElement) => {
[key: string]: HTMLElement;
};
};
}