Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | 1x 1x 1x 1x | const {cx_root} = await import("./cx_root.clas.mjs"); // zcl_abapgit_gui_in_page_modal.clas.abap class zcl_abapgit_gui_in_page_modal { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'ZCL_ABAPGIT_GUI_IN_PAGE_MODAL'; static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_GUI_RENDERABLE"]; static ATTRIBUTES = {"MI_CHILD": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"});}, "visibility": "I", "is_constant": " ", "is_class": " "}, "MS_ATTRS": {"type": () => {return new abap.types.Structure({ "width": new abap.types.Integer({qualifiedName: "I"}), "height": new abap.types.Integer({qualifiedName: "I"})}, undefined, undefined, {}, {});}, "visibility": "I", "is_constant": " ", "is_class": " "}}; static METHODS = {"CREATE": {"visibility": "U", "parameters": {"RO_WRAP": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_GUI_IN_PAGE_MODAL", RTTIName: "\\CLASS=ZCL_ABAPGIT_GUI_IN_PAGE_MODAL"});}, "is_optional": " "}, "II_CHILD": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"});}, "is_optional": " "}, "IV_WIDTH": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "IV_HEIGHT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}}, "CONSTRUCTOR": {"visibility": "U", "parameters": {"II_CHILD": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"});}, "is_optional": " "}, "IV_WIDTH": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "IV_HEIGHT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}}}; #mi_child; #ms_attrs; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { }; this.#mi_child = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"}); this.FRIENDS_ACCESS_INSTANCE["mi_child"] = this.#mi_child; this.#ms_attrs = new abap.types.Structure({ "width": new abap.types.Integer({qualifiedName: "I"}), "height": new abap.types.Integer({qualifiedName: "I"})}, undefined, undefined, {}, {}); this.FRIENDS_ACCESS_INSTANCE["ms_attrs"] = this.#ms_attrs; } async constructor_(INPUT) { let ii_child = INPUT?.ii_child; if (ii_child?.getQualifiedName === undefined || ii_child.getQualifiedName() !== "ZIF_ABAPGIT_GUI_RENDERABLE") { ii_child = undefined; } if (ii_child === undefined) { ii_child = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"}).set(INPUT.ii_child); } let iv_width = new abap.types.Integer({qualifiedName: "I"}); if (INPUT && INPUT.iv_width) {iv_width.set(INPUT.iv_width);} let iv_height = new abap.types.Integer({qualifiedName: "I"}); if (INPUT && INPUT.iv_height) {iv_height.set(INPUT.iv_height);} this.#ms_attrs.get().width.set(iv_width); this.#ms_attrs.get().height.set(iv_height); this.#mi_child.set(ii_child); return this; } async create(INPUT) { return zcl_abapgit_gui_in_page_modal.create(INPUT); } static async create(INPUT) { let ro_wrap = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_GUI_IN_PAGE_MODAL", RTTIName: "\\CLASS=ZCL_ABAPGIT_GUI_IN_PAGE_MODAL"}); let ii_child = INPUT?.ii_child; if (ii_child?.getQualifiedName === undefined || ii_child.getQualifiedName() !== "ZIF_ABAPGIT_GUI_RENDERABLE") { ii_child = undefined; } if (ii_child === undefined) { ii_child = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"}).set(INPUT.ii_child); } let iv_width = new abap.types.Integer({qualifiedName: "I"}); if (INPUT && INPUT.iv_width) {iv_width.set(INPUT.iv_width);} let iv_height = new abap.types.Integer({qualifiedName: "I"}); if (INPUT && INPUT.iv_height) {iv_height.set(INPUT.iv_height);} ro_wrap.set(await (new abap.Classes['ZCL_ABAPGIT_GUI_IN_PAGE_MODAL']()).constructor_({ii_child: ii_child, iv_width: iv_width, iv_height: iv_height})); return ro_wrap; } async zif_abapgit_gui_renderable$render() { let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"}); let lo_style = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_BUFFER", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_BUFFER"}); ri_html.set(await (new abap.Classes['ZCL_ABAPGIT_HTML']()).constructor_()); lo_style.set(await (new abap.Classes['ZCL_ABAPGIT_STRING_BUFFER']()).constructor_()); if (abap.compare.initial(this.#ms_attrs.get().width) === false) { await lo_style.get().add({iv_str: new abap.types.String().set(`width:${abap.templateFormatting(this.#ms_attrs.get().width)}px;`)}); } if (abap.compare.initial(this.#ms_attrs.get().height) === false) { await lo_style.get().add({iv_str: new abap.types.String().set(`height:${abap.templateFormatting(this.#ms_attrs.get().height)}px;`)}); } await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<div class="modal" style="${abap.templateFormatting((await lo_style.get().join_w_space_and_flush()))}">`)}); await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<div class="modal-guts">`)}); await ri_html.get().zif_abapgit_html$add({ig_chunk: (await this.#mi_child.get().zif_abapgit_gui_renderable$render())}); await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`</div>`)}); await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`</div>`)}); await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<div class="modal-overlay"></div>`)}); return ri_html; } } abap.Classes['ZCL_ABAPGIT_GUI_IN_PAGE_MODAL'] = zcl_abapgit_gui_in_page_modal; export {zcl_abapgit_gui_in_page_modal}; |