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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | const {zcl_abapgit_gui_component} = await import("./zcl_abapgit_gui_component.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_popup_to_confirm.clas.abap
class zcl_abapgit_popup_to_confirm extends zcl_abapgit_gui_component {
static STATIC_SUPER = zcl_abapgit_gui_component;
static INTERNAL_TYPE = 'CLAS';
static INTERNAL_NAME = 'ZCL_ABAPGIT_POPUP_TO_CONFIRM';
static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_GUI_EVENT_HANDLER","ZIF_ABAPGIT_GUI_RENDERABLE"];
static ATTRIBUTES = {"MO_FORM": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
"MO_FORM_DATA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
"MV_CLOSED": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
"MV_TITLE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
"MV_TEXT_QUESTION": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
"MV_TEXT_BUTTON_1": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
"MV_TEXT_BUTTON_2": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
"MV_ACTION_BUTTON_1": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
"MV_ACTION_BUTTON_2": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
"MV_DEFAULT_BUTTON": {"type": () => {return new abap.types.Character(1, {});}, "visibility": "I", "is_constant": " ", "is_class": " "},
"MV_DISPLAY_CANCEL_BUTTON": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
"MV_ACTION_CANCEL": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
"MV_POPUP_TYPE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
"C_ACTION": {"type": () => {return new abap.types.Structure({
"button_1": new abap.types.String({qualifiedName: "STRING"}),
"button_2": new abap.types.String({qualifiedName: "STRING"}),
"cancel": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
"C_ID": {"type": () => {return new abap.types.Structure({
"title": new abap.types.String({qualifiedName: "STRING"}),
"icon": new abap.types.String({qualifiedName: "STRING"}),
"text": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});}, "visibility": "I", "is_constant": "X", "is_class": "X"}};
static METHODS = {"GET_FORM_SCHEMA": {"visibility": "I", "parameters": {"RO_FORM": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}}},
"RENDER_SCRIPTS": {"visibility": "I", "parameters": {"RI_HTML": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}}},
"CREATE": {"visibility": "U", "parameters": {"RO_POPUP": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_POPUP_TO_CONFIRM", RTTIName: "\\CLASS=ZCL_ABAPGIT_POPUP_TO_CONFIRM"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}, "IV_TITLEBAR": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_TEXT_QUESTION": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_TEXT_BUTTON_1": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_ACTION_BUTTON_1": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_TEXT_BUTTON_2": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_ACTION_BUTTON_2": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_DEFAULT_BUTTON": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_popup_to_confirm=>ty_char1"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "IV_DISPLAY_CANCEL_BUTTON": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "IV_ACTION_CANCEL": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_POPUP_TYPE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}}},
"CONSTRUCTOR": {"visibility": "U", "parameters": {"IV_TITLEBAR": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_TEXT_QUESTION": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_TEXT_BUTTON_1": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_ACTION_BUTTON_1": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_TEXT_BUTTON_2": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_ACTION_BUTTON_2": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_DEFAULT_BUTTON": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_popup_to_confirm=>ty_char1"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "IV_DISPLAY_CANCEL_BUTTON": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "IV_ACTION_CANCEL": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_POPUP_TYPE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}}},
"CLOSE": {"visibility": "U", "parameters": {}},
"WAS_CLOSED": {"visibility": "U", "parameters": {"RV_YES": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "R", "type_name": "CharacterType"}}}};
#mo_form;
#mo_form_data;
#mv_closed;
#mv_title;
#mv_text_question;
#mv_text_button_1;
#mv_text_button_2;
#mv_action_button_1;
#mv_action_button_2;
#mv_default_button;
#mv_display_cancel_button;
#mv_action_cancel;
#mv_popup_type;
constructor() {
const sup = super();
this.me = new abap.types.ABAPObject();
this.me.set(this);
this.INTERNAL_ID = abap.internalIdCounter++;
this.FRIENDS_ACCESS_INSTANCE = {
"SUPER": sup.FRIENDS_ACCESS_INSTANCE,
"get_form_schema": this.#get_form_schema.bind(this),
"render_scripts": this.#render_scripts.bind(this),
"close": this.close.bind(this),
"was_closed": this.was_closed.bind(this),
};
this.#mo_form = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});
this.FRIENDS_ACCESS_INSTANCE["mo_form"] = this.#mo_form;
this.#mo_form_data = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});
this.FRIENDS_ACCESS_INSTANCE["mo_form_data"] = this.#mo_form_data;
this.#mv_closed = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
this.FRIENDS_ACCESS_INSTANCE["mv_closed"] = this.#mv_closed;
this.#mv_title = new abap.types.String({qualifiedName: "STRING"});
this.FRIENDS_ACCESS_INSTANCE["mv_title"] = this.#mv_title;
this.#mv_text_question = new abap.types.String({qualifiedName: "STRING"});
this.FRIENDS_ACCESS_INSTANCE["mv_text_question"] = this.#mv_text_question;
this.#mv_text_button_1 = new abap.types.String({qualifiedName: "STRING"});
this.FRIENDS_ACCESS_INSTANCE["mv_text_button_1"] = this.#mv_text_button_1;
this.#mv_text_button_2 = new abap.types.String({qualifiedName: "STRING"});
this.FRIENDS_ACCESS_INSTANCE["mv_text_button_2"] = this.#mv_text_button_2;
this.#mv_action_button_1 = new abap.types.String({qualifiedName: "STRING"});
this.FRIENDS_ACCESS_INSTANCE["mv_action_button_1"] = this.#mv_action_button_1;
this.#mv_action_button_2 = new abap.types.String({qualifiedName: "STRING"});
this.FRIENDS_ACCESS_INSTANCE["mv_action_button_2"] = this.#mv_action_button_2;
this.#mv_default_button = new abap.types.Character(1, {});
this.FRIENDS_ACCESS_INSTANCE["mv_default_button"] = this.#mv_default_button;
this.#mv_display_cancel_button = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
this.FRIENDS_ACCESS_INSTANCE["mv_display_cancel_button"] = this.#mv_display_cancel_button;
this.#mv_action_cancel = new abap.types.String({qualifiedName: "STRING"});
this.FRIENDS_ACCESS_INSTANCE["mv_action_cancel"] = this.#mv_action_cancel;
this.#mv_popup_type = new abap.types.String({qualifiedName: "STRING"});
this.FRIENDS_ACCESS_INSTANCE["mv_popup_type"] = this.#mv_popup_type;
this.c_action = zcl_abapgit_popup_to_confirm.c_action;
this.c_id = zcl_abapgit_popup_to_confirm.c_id;
}
async close() {
this.#mv_closed.set(abap.builtin.abap_true);
}
async constructor_(INPUT) {
let iv_titlebar = INPUT?.iv_titlebar;
let iv_text_question = INPUT?.iv_text_question;
let iv_text_button_1 = INPUT?.iv_text_button_1;
let iv_action_button_1 = INPUT?.iv_action_button_1;
let iv_text_button_2 = INPUT?.iv_text_button_2;
let iv_action_button_2 = INPUT?.iv_action_button_2;
let iv_default_button = INPUT?.iv_default_button;
if (iv_default_button?.getQualifiedName === undefined || iv_default_button.getQualifiedName() !== "ZCL_ABAPGIT_POPUP_TO_CONFIRM=>TY_CHAR1") { iv_default_button = undefined; }
if (iv_default_button === undefined) { iv_default_button = new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_popup_to_confirm=>ty_char1"}).set(INPUT.iv_default_button); }
let iv_display_cancel_button = INPUT?.iv_display_cancel_button;
if (iv_display_cancel_button?.getQualifiedName === undefined || iv_display_cancel_button.getQualifiedName() !== "ABAP_BOOL") { iv_display_cancel_button = undefined; }
if (iv_display_cancel_button === undefined) { iv_display_cancel_button = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}).set(INPUT.iv_display_cancel_button); }
let iv_action_cancel = INPUT?.iv_action_cancel;
let iv_popup_type = INPUT?.iv_popup_type;
await super.constructor_();
this.#mv_title.set(iv_titlebar);
this.#mv_text_question.set(iv_text_question);
this.#mv_text_button_1.set(iv_text_button_1);
this.#mv_text_button_2.set(iv_text_button_2);
this.#mv_action_button_1.set(iv_action_button_1);
this.#mv_action_button_2.set(iv_action_button_2);
this.#mv_default_button.set(iv_default_button);
this.#mv_display_cancel_button.set(iv_display_cancel_button);
this.#mv_action_cancel.set(iv_action_cancel);
this.#mv_popup_type.set(iv_popup_type);
this.#mo_form_data.set(await (new abap.Classes['ZCL_ABAPGIT_STRING_MAP']()).constructor_());
this.#mo_form.set((await this.#get_form_schema()));
return this;
}
async create(INPUT) {
return zcl_abapgit_popup_to_confirm.create(INPUT);
}
static async create(INPUT) {
let ro_popup = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_POPUP_TO_CONFIRM", RTTIName: "\\CLASS=ZCL_ABAPGIT_POPUP_TO_CONFIRM"});
let iv_titlebar = INPUT?.iv_titlebar;
let iv_text_question = INPUT?.iv_text_question;
let iv_text_button_1 = INPUT?.iv_text_button_1 || new abap.types.Character();
if (INPUT === undefined || INPUT.iv_text_button_1 === undefined) {iv_text_button_1 = abap.CharacterFactory.get(3, 'Yes');}
let iv_action_button_1 = INPUT?.iv_action_button_1 || new abap.types.Character();
if (INPUT === undefined || INPUT.iv_action_button_1 === undefined) {iv_action_button_1 = this.c_action.get().button_1;}
let iv_text_button_2 = INPUT?.iv_text_button_2 || new abap.types.Character();
if (INPUT === undefined || INPUT.iv_text_button_2 === undefined) {iv_text_button_2 = abap.CharacterFactory.get(2, 'No');}
let iv_action_button_2 = INPUT?.iv_action_button_2 || new abap.types.Character();
if (INPUT === undefined || INPUT.iv_action_button_2 === undefined) {iv_action_button_2 = this.c_action.get().button_2;}
let iv_default_button = new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_popup_to_confirm=>ty_char1"});
if (INPUT && INPUT.iv_default_button) {iv_default_button.set(INPUT.iv_default_button);}
if (INPUT === undefined || INPUT.iv_default_button === undefined) {iv_default_button = abap.CharacterFactory.get(1, '1');}
let iv_display_cancel_button = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
if (INPUT && INPUT.iv_display_cancel_button) {iv_display_cancel_button.set(INPUT.iv_display_cancel_button);}
if (INPUT === undefined || INPUT.iv_display_cancel_button === undefined) {iv_display_cancel_button = abap.builtin.abap_true;}
let iv_action_cancel = INPUT?.iv_action_cancel || new abap.types.Character();
if (INPUT === undefined || INPUT.iv_action_cancel === undefined) {iv_action_cancel = this.c_action.get().cancel;}
let iv_popup_type = INPUT?.iv_popup_type || new abap.types.Character();
if (INPUT === undefined || INPUT.iv_popup_type === undefined) {iv_popup_type = abap.CharacterFactory.get(21, 'ICON_MESSAGE_QUESTION');}
ro_popup.set(await (new abap.Classes['ZCL_ABAPGIT_POPUP_TO_CONFIRM']()).constructor_({iv_titlebar: iv_titlebar, iv_text_question: iv_text_question, iv_text_button_1: iv_text_button_1, iv_action_button_1: iv_action_button_1, iv_text_button_2: iv_text_button_2, iv_action_button_2: iv_action_button_2, iv_default_button: iv_default_button, iv_display_cancel_button: iv_display_cancel_button, iv_action_cancel: iv_action_cancel, iv_popup_type: iv_popup_type}));
return ro_popup;
}
async #get_form_schema() {
let ro_form = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});
let lv_icon = new abap.types.String({qualifiedName: "STRING"});
let lv_text = new abap.types.String({qualifiedName: "STRING"});
let lv_default_1 = new abap.types.Integer({qualifiedName: "I"});
lv_default_1.set(abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_cmd_type.get().input);
let lv_default_2 = new abap.types.Integer({qualifiedName: "I"});
lv_default_2.set(abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_cmd_type.get().input);
let lv_default_cancel = new abap.types.Integer({qualifiedName: "I"});
lv_default_cancel.set(abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_cmd_type.get().input);
ro_form.set((await abap.Classes['ZCL_ABAPGIT_HTML_FORM'].create({iv_form_id: abap.CharacterFactory.get(16, 'popup_to_confirm')})));
await ro_form.get().start_group({iv_name: zcl_abapgit_popup_to_confirm.c_id.get().title, iv_label: this.#mv_title});
let unique1283 = this.#mv_popup_type;
if (abap.compare.eq(unique1283, abap.CharacterFactory.get(21, 'ICON_MESSAGE_QUESTION'))) {
lv_icon.set(abap.CharacterFactory.get(12, 's_m_ques.gif'));
} else if (abap.compare.eq(unique1283, abap.CharacterFactory.get(24, 'ICON_MESSAGE_INFORMATION'))) {
lv_icon.set(abap.CharacterFactory.get(12, 's_m_info.gif'));
} else if (abap.compare.eq(unique1283, abap.CharacterFactory.get(20, 'ICON_MESSAGE_WARNING'))) {
lv_icon.set(abap.CharacterFactory.get(12, 's_m_warn.gif'));
} else if (abap.compare.eq(unique1283, abap.CharacterFactory.get(18, 'ICON_MESSAGE_ERROR'))) {
lv_icon.set(abap.CharacterFactory.get(12, 's_m_erro.gif'));
} else if (abap.compare.eq(unique1283, abap.CharacterFactory.get(21, 'ICON_MESSAGE_CRITICAL'))) {
lv_icon.set(abap.CharacterFactory.get(12, 's_m_crit.gif'));
}
if (abap.compare.initial(lv_icon) === false) {
await ro_form.get().icon({iv_name: zcl_abapgit_popup_to_confirm.c_id.get().icon, iv_icon: lv_icon});
}
lv_text.set(this.#mv_text_question);
abap.statements.replace({target: lv_text, all: true, with: abap.CharacterFactory.get(4, '<br>'), of: new abap.types.String().set(`\n`)});
await ro_form.get().freetext({iv_name: zcl_abapgit_popup_to_confirm.c_id.get().text, iv_text: lv_text});
let unique1284 = this.#mv_default_button;
if (abap.compare.eq(unique1284, abap.CharacterFactory.get(1, '1'))) {
lv_default_1.set(abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_cmd_type.get().input_main);
} else if (abap.compare.eq(unique1284, abap.CharacterFactory.get(1, '2'))) {
lv_default_2.set(abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_cmd_type.get().input_main);
} else if (abap.compare.eq(unique1284, abap.CharacterFactory.get(1, 'A'))) {
lv_default_cancel.set(abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_cmd_type.get().input_main);
}
await (await ro_form.get().command({iv_label: this.#mv_text_button_1, iv_cmd_type: lv_default_1, iv_action: this.#mv_action_button_1})).get().command({iv_label: this.#mv_text_button_2, iv_cmd_type: lv_default_2, iv_action: this.#mv_action_button_2});
if (abap.compare.eq(this.#mv_display_cancel_button, abap.builtin.abap_true)) {
await ro_form.get().command({iv_label: abap.CharacterFactory.get(6, 'Cancel'), iv_cmd_type: lv_default_cancel, iv_action: this.#mv_action_cancel});
}
return ro_form;
}
async #render_scripts() {
let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
ri_html.set((await (await (await abap.Classes['ZCL_ABAPGIT_HTML'].create()).get().zif_abapgit_html$set_title({iv_title: abap.CharacterFactory.get(16, 'popup_to_confirm')})).get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(12, 'trapFocus();')})));
return ri_html;
}
async was_closed() {
let rv_yes = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
rv_yes.set(this.#mv_closed);
return rv_yes;
}
async zif_abapgit_gui_event_handler$on_event(INPUT) {
let rs_handled = new abap.types.Structure({
"page": new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"}),
"state": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_GUI_EVENT_HANDLER=>TY_HANDLING_RESULT-STATE"})}, "zif_abapgit_gui_event_handler=>ty_handling_result", undefined, {}, {});
let ii_event = INPUT?.ii_event;
if (ii_event?.getQualifiedName === undefined || ii_event.getQualifiedName() !== "ZIF_ABAPGIT_GUI_EVENT") { ii_event = undefined; }
if (ii_event === undefined) { ii_event = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_EVENT", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_EVENT"}).set(INPUT.ii_event); }
let unique1285 = ii_event.get().zif_abapgit_gui_event$mv_action;
if (abap.compare.eq(unique1285, this.#mv_action_cancel) || abap.compare.eq(unique1285, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().go_back)) {
await this.close();
rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().re_render);
}
return rs_handled;
}
async zif_abapgit_gui_renderable$render() {
let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});
await this.register_handlers();
ri_html.set((await abap.Classes['ZCL_ABAPGIT_HTML'].create({iv_initial_chunk: (await this.#mo_form.get().render({io_values: this.#mo_form_data}))})));
await this.register_deferred_script({ii_part: (await this.#render_scripts())});
return ri_html;
}
}
abap.Classes['ZCL_ABAPGIT_POPUP_TO_CONFIRM'] = zcl_abapgit_popup_to_confirm;
zcl_abapgit_popup_to_confirm.c_action = new abap.types.Structure({
"button_1": new abap.types.String({qualifiedName: "STRING"}),
"button_2": new abap.types.String({qualifiedName: "STRING"}),
"cancel": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});
zcl_abapgit_popup_to_confirm.c_action.get().button_1.set('button_1');
zcl_abapgit_popup_to_confirm.c_action.get().button_2.set('button_2');
zcl_abapgit_popup_to_confirm.c_action.get().cancel.set('cancel');
zcl_abapgit_popup_to_confirm.c_id = new abap.types.Structure({
"title": new abap.types.String({qualifiedName: "STRING"}),
"icon": new abap.types.String({qualifiedName: "STRING"}),
"text": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});
zcl_abapgit_popup_to_confirm.c_id.get().title.set('title');
zcl_abapgit_popup_to_confirm.c_id.get().icon.set('icon');
zcl_abapgit_popup_to_confirm.c_id.get().text.set('text');
zcl_abapgit_popup_to_confirm.ty_char1 = new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_popup_to_confirm=>ty_char1"});
export {zcl_abapgit_popup_to_confirm}; |