ucbuilder
Version:
:Shree Ganeshay Namah: new way app design
59 lines • 2.67 kB
JavaScript
import { Usercontrol } from "../../../renderer/Usercontrol.js";
import { intenseGenerator } from "../../../renderer/intenseGenerator.js";
import { ucWinFrame } from "../../../renderer/controls/ucWinFrame.uc.js";
import { sampleForm } from "../../../renderer/controls/sampleForm.uc.js";
import sampleForm$dynamicHtmlCode from "../../../renderer/controls/sampleForm.uc.html.js";
const FILE_PATH = '../../../htmlFiles/renderer/controls/sampleForm.uc.html';
export class sampleForm$Designer extends Usercontrol {
static get FILE_PATH() {
return FILE_PATH;
}
static get AbsolutePath() {
return import.meta.url; //Usercontrol.Resolver(import.meta.url, this.FILE_PATH);
}
static setCSS_globalVar(varList) {
intenseGenerator.setCSS_globalVar(varList, this.FILE_PATH);
}
static Create(pera, ...args) {
return intenseGenerator.generateUC(this.FILE_PATH, sampleForm, import.meta.url, pera, ...args);
}
static async CreateAsync(pera, ...args) {
return (await intenseGenerator.generateUCAsync(this.FILE_PATH, sampleForm, import.meta.url, pera, ...args));
}
get(id) {
return this.ucExtends.find(`[id="${id}"]`)[0];
}
winframe1;
constructor() { super(); }
async initializecomponentAsync(args, form) {
let ucExt = this.ucExtends;
args.source.htmlContents = args?.source?.htmlContents ?? sampleForm$dynamicHtmlCode?.htmlSource() ?? undefined;
ucExt.initializecomponent(args);
let CONTROLS = ucExt.controls;
await Usercontrol.GenerateControls(this, args, args.cfInfo.pathOf.code);
if (args.events?.beforeFinalize != undefined)
args.events?.beforeFinalize(form);
await ucExt.finalizeInitAsync(args);
delete this.initializecomponent;
delete this.initializecomponentAsync;
}
initializecomponent(args, form) {
let ucExt = this.ucExtends;
args.source.htmlContents = args?.source?.htmlContents ?? sampleForm$dynamicHtmlCode?.htmlSource() ?? undefined;
ucExt.initializecomponent(args);
let CONTROLS = ucExt.controls;
this.winframe1 = ucWinFrame.Create({
parentUc: this,
mode: args.mode,
accessName: "winframe1",
targetElement: CONTROLS.winframe1
});
this.winframe1.ucExtends.show({ decision: 'replace' });
if (args.events?.beforeFinalize != undefined)
args.events?.beforeFinalize(form);
ucExt.finalizeInit(args);
delete this.initializecomponent;
delete this.initializecomponentAsync;
}
}
//# sourceMappingURL=sampleForm.uc.designer.js.map