UNPKG

ucbuilder

Version:

For Developing Applications with multiple form/usercontrols etc.. In Single BrowserWindow...

37 lines (30 loc) 1.28 kB
import { codefileHandler } from "ucbuilder/build/codefileHandler"; import { propOpt } from "ucbuilder/build/common"; import { stylerRegs } from "ucbuilder/global/stylerRegs"; import { TabIndexManager } from "ucbuilder/global/tabIndexManager"; import { LoadGlobal } from "ucbuilder/global/loadGlobal"; import { Usercontrol } from "ucbuilder/Usercontrol"; export class ResourcesUC { static tabMng = new TabIndexManager(); static styler = new stylerRegs(); static rendrarCounter = 0; /** @type {{}} */ static resources: {} = {}; /** @param {HTMLElement} element @returns {Usercontrol} */ static getBaseObject(element: HTMLElement): Usercontrol { return element.data(propOpt.ATTR.BASE_OBJECT); } static contentHT = document.body; /** @type {codefileHandler} */ static codefilelist: codefileHandler = new codefileHandler(); static isInitBefore = false; static init(callback:()=>void) { if (!this.isInitBefore) { this.contentHT = document.body; ResourcesUC.tabMng.init(this.contentHT); LoadGlobal.init(); stylerRegs.pushPublicStyles(callback); this.isInitBefore = true; } } }