ucbuilder
Version:
:Shree Ganeshay Namah: new way app design
54 lines (53 loc) • 2.3 kB
TypeScript
import { IFileDeclaration, IUCConfigPreference, ProjectRowR, UserUCConfig } from "../common/ipc/enumAndMore.js";
import { builder } from "./builder.js";
import { codeOptionsBase, CommonRow, Control, DesignerOptionsBase, ImportClassNode } from "./buildRow.js";
import { codeFileInfo } from "./codeFileInfo.js";
import { TemplateMaker } from "./TemplateMaker.js";
import { commonGenerator } from "./commonGenerator.js";
import { FilterContent } from "../lib/StampGenerator.js";
export interface PathReplacementNode {
findPath: string;
replaceWith: string;
}
export declare class commonParser {
generateNodes(htContent: string): string;
reset(): void;
rows: CommonRow[];
pathReplacement: PathReplacementNode[];
pushReplacement({ findPath, replaceWith }: PathReplacementNode): void;
bldr: builder;
gen: commonGenerator;
SRC_DEC: Partial<{
code: IFileDeclaration;
designer: IFileDeclaration;
html: IFileDeclaration;
scss: IFileDeclaration;
}>;
OUT_DEC: Partial<{
code: IFileDeclaration;
designer: IFileDeclaration;
html: IFileDeclaration;
scss: IFileDeclaration;
}>;
SRC_CODE_EXT: string;
OUT_CODE_EXT: string;
dynamicTemplate: Function;
constructor(bldr: builder);
/** for getting project type of ucbuilder project */
UC_CONFIG: UserUCConfig;
CONFIG: UserUCConfig;
PREFERENCE: IUCConfigPreference;
project: ProjectRowR;
PROJECT_PATH_LENGTH: number;
init(cinfo: codeFileInfo, htmlContents?: string | undefined): Promise<void>;
tmaker: TemplateMaker;
_filterText: FilterContent;
codeHT: HTMLElement;
fill(cinfo: codeFileInfo, htmlContents?: string | undefined): Promise<CommonRow>;
common0: (htmlContents: string, _row: CommonRow, designer: DesignerOptionsBase) => Promise<string>;
fillUc: (finfo: codeFileInfo, htmlContents: string, _row: CommonRow) => Promise<CommonRow>;
fillTpt: (finfo: codeFileInfo, htmlContents: string, _row: CommonRow) => Promise<CommonRow>;
common1: (des: DesignerOptionsBase, code: codeOptionsBase, finfo: codeFileInfo) => void;
nc(_path: string, fromFilePath: string): string;
fillDefImports(name: string, url: string, classList: ImportClassNode[], ctrlNode?: Control): void;
}