ucbuilder
Version:
:Shree Ganeshay Namah: new way app design
97 lines (96 loc) • 3.36 kB
TypeScript
import { ProjectRowR } from "../common/ipc/enumAndMore.js";
import { CSSSearchAttributeCondition, IKeyStampNode, StyleBaseType, StylerRegs } from "../renderer/StylerRegs.js";
import { Usercontrol } from "../renderer/Usercontrol.js";
export declare enum STYLER_SELECTOR_TYPE {
CLASS_SELECTOR = 1,
ATTRIB_SELECTOR = 2
}
export interface IPassElementOptions {
attechDomTree?: boolean;
applySubTree?: boolean;
skipTopEle?: boolean;
groupKey?: string;
}
declare class HTMLCodeNode {
content: string;
hasContent: boolean;
hasLoadedByPath: boolean;
originalContent: string;
path: string;
load(original_content: string): boolean;
}
declare class StyleCodeNode {
originalContent: string;
styleHT: HTMLStyleElement;
counter: number;
constructor();
private _content;
get content(): string;
set content(value: string);
}
export declare class SourceNode {
isNewSource: boolean;
counter: number;
get templateStamp(): string;
get localStamp(): string;
myObjectKey: string;
accessKey: string;
htmlCode: HTMLCodeNode;
styler: StylerRegs;
cssFilePath: string;
onRelease: (() => void)[];
dataHT: HTMLElement;
rootFilePath: string;
config: ({ parentSrc, parentUc, wrapper, key, accessName }: {
parentSrc: SourceNode;
parentUc: Usercontrol;
wrapper: HTMLElement;
key: string;
accessName: string;
}) => void;
project: ProjectRowR;
cssObj: {
[key: string]: StyleCodeNode;
};
pushCSSByContent(key: string, cssContent: string, /*project: ProjectRow,*/ localNodeElement?: HTMLElement): void;
pushCSS(cssFilePath: string, importMetaUrl: string, localNodeElement?: HTMLElement): void;
pushCSSAsync: (cssFilePath: string, importMetaUrl: string, localNodeElement?: HTMLElement) => Promise<void>;
static resourcesHT: HTMLElement;
static init(): void;
static ExtendControlObject(rtrn: {}, xname: string, ctr: any, ignoreEmpty?: boolean): void;
setWrapper(ele: HTMLElement): void;
passElement: <A = HTMLElement | HTMLElement[]>(ele: A, options?: IPassElementOptions) => {
[xname: string]: HTMLElement | HTMLElement[];
};
static transferAttributes(fromEl: HTMLElement, toEl: HTMLElement): void;
static tramsformForm(htnode: HTMLElement): HTMLElement;
loadHTML(setTabindex?: boolean): void;
release: () => Promise<void>;
}
export declare class StampNode {
static MODE: STYLER_SELECTOR_TYPE;
static dataHT: HTMLElement;
static GetKey(key: string, alice: string): string;
static childs: {
[key: string]: SourceNode;
};
static cacheData: {
[key: string]: IKeyStampNode;
};
static registerSoruce({ key, accessName, cssKeyStamp, mode, baseType, cssFilePath, project, /*root,*/ generateStamp }: {
key: string;
accessName?: string;
cssFilePath?: string;
cssKeyStamp?: IKeyStampNode;
baseType?: StyleBaseType;
mode?: CSSSearchAttributeCondition;
generateStamp?: boolean;
project: ProjectRowR;
}): SourceNode;
static deregisterSource: (key: string) => Promise<boolean>;
}
export declare class FilterContent {
static select_inline_Pattern: RegExp;
static select_inline_filter(data: string, _guid?: string): string;
}
export {};