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 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 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 {cx_root} = await import("./cx_root.clas.mjs"); // zcl_abapgit_html_toolbar.clas.abap class zcl_abapgit_html_toolbar { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'ZCL_ABAPGIT_HTML_TOOLBAR'; static IMPLEMENTED_INTERFACES = []; static ATTRIBUTES = {"MT_ITEMS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "txt": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-TXT"}), "act": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ACT"}), "ico": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ICO"}), "sub": new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"}), "opt": new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_html_toolbar=>ty_item-opt"}), "typ": new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_html_toolbar=>ty_item-typ"}), "cur": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "chk": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "aux": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-AUX"}), "id": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ID"}), "title": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-TITLE"}), "class": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-CLASS"}), "li_class": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-LI_CLASS"}), "hotkey": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-HOTKEY"})}, "zcl_abapgit_html_toolbar=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_html_toolbar=>ty_items");}, "visibility": "I", "is_constant": " ", "is_class": " "}, "MV_ID": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": " "}}; static METHODS = {"RENDER_ITEMS": {"visibility": "I", "parameters": {"RI_HTML": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});}, "is_optional": " "}, "IV_SORT": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}}, "CREATE": {"visibility": "U", "parameters": {"RO_INSTANCE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"});}, "is_optional": " "}, "IV_ID": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}}, "CONSTRUCTOR": {"visibility": "U", "parameters": {"IV_ID": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}}, "ADD": {"visibility": "U", "parameters": {"RO_SELF": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"});}, "is_optional": " "}, "IV_TXT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IO_SUB": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"});}, "is_optional": " "}, "IV_TYP": {"type": () => {return new abap.types.Character();}, "is_optional": " "}, "IV_ACT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_ICO": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_CUR": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "IV_OPT": {"type": () => {return new abap.types.Character();}, "is_optional": " "}, "IV_CHK": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "IV_AUX": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_ID": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_TITLE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_CLASS": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_HOTKEY": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_LI_CLASS": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}}, "COUNT_ITEMS": {"visibility": "U", "parameters": {"RV_COUNT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}}, "RENDER": {"visibility": "U", "parameters": {"RI_HTML": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});}, "is_optional": " "}, "IV_RIGHT": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "IV_SORT": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}}, "RENDER_AS_DROPLIST": {"visibility": "U", "parameters": {"RI_HTML": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});}, "is_optional": " "}, "IV_LABEL": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_RIGHT": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "IV_SORT": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "IV_CORNER": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "IV_ACTION": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}}, "GET_HOTKEYS": {"visibility": "U", "parameters": {"RT_HOTKEYS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "ui_component": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-UI_COMPONENT"}), "action": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-ACTION"}), "hotkey": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-HOTKEY"}), "description": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-DESCRIPTION"})}, "zif_abapgit_gui_hotkeys=>ty_hotkey_with_descr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"action","type":"SORTED","isUnique":true,"keyFields":["UI_COMPONENT","ACTION"]}]}, "zif_abapgit_gui_hotkeys=>ty_hotkeys_with_descr");}, "is_optional": " "}, "IV_COMPONENT_NAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}}}; #mt_items; #mv_id; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { "render_items": this.#render_items.bind(this), "add": this.add.bind(this), "count_items": this.count_items.bind(this), "render": this.render.bind(this), "render_as_droplist": this.render_as_droplist.bind(this), "get_hotkeys": this.get_hotkeys.bind(this), }; this.#mt_items = abap.types.TableFactory.construct(new abap.types.Structure({ "txt": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-TXT"}), "act": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ACT"}), "ico": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ICO"}), "sub": new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"}), "opt": new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_html_toolbar=>ty_item-opt"}), "typ": new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_html_toolbar=>ty_item-typ"}), "cur": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "chk": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "aux": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-AUX"}), "id": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ID"}), "title": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-TITLE"}), "class": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-CLASS"}), "li_class": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-LI_CLASS"}), "hotkey": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-HOTKEY"})}, "zcl_abapgit_html_toolbar=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_html_toolbar=>ty_items"); this.FRIENDS_ACCESS_INSTANCE["mt_items"] = this.#mt_items; this.#mv_id = new abap.types.String({qualifiedName: "STRING"}); this.FRIENDS_ACCESS_INSTANCE["mv_id"] = this.#mv_id; } async add(INPUT) { let ro_self = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"}); let iv_txt = INPUT?.iv_txt; if (iv_txt?.getQualifiedName === undefined || iv_txt.getQualifiedName() !== "STRING") { iv_txt = undefined; } if (iv_txt === undefined) { iv_txt = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_txt); } let io_sub = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"}); if (INPUT && INPUT.io_sub) {io_sub.set(INPUT.io_sub);} let iv_typ = INPUT?.iv_typ || new abap.types.Character(); if (INPUT === undefined || INPUT.iv_typ === undefined) {iv_typ = abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().sapevent;} let iv_act = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_act) {iv_act.set(INPUT.iv_act);} let iv_ico = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_ico) {iv_ico.set(INPUT.iv_ico);} let iv_cur = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_cur) {iv_cur.set(INPUT.iv_cur);} let iv_opt = INPUT?.iv_opt || new abap.types.Character(); let iv_chk = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_chk) {iv_chk.set(INPUT.iv_chk);} if (INPUT === undefined || INPUT.iv_chk === undefined) {iv_chk = abap.builtin.abap_undefined;} let iv_aux = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_aux) {iv_aux.set(INPUT.iv_aux);} let iv_id = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_id) {iv_id.set(INPUT.iv_id);} let iv_title = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_title) {iv_title.set(INPUT.iv_title);} let iv_class = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_class) {iv_class.set(INPUT.iv_class);} let iv_hotkey = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_hotkey) {iv_hotkey.set(INPUT.iv_hotkey);} let iv_li_class = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_li_class) {iv_li_class.set(INPUT.iv_li_class);} let ls_item = new abap.types.Structure({ "txt": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-TXT"}), "act": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ACT"}), "ico": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ICO"}), "sub": new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"}), "opt": new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_html_toolbar=>ty_item-opt"}), "typ": new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_html_toolbar=>ty_item-typ"}), "cur": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "chk": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "aux": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-AUX"}), "id": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ID"}), "title": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-TITLE"}), "class": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-CLASS"}), "li_class": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-LI_CLASS"}), "hotkey": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-HOTKEY"})}, "zcl_abapgit_html_toolbar=>ty_item", undefined, {}, {}); abap.statements.assert(abap.compare.eq(iv_typ, abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().separator) || abap.compare.eq(iv_typ, abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().onclick) || abap.compare.eq(iv_typ, abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().dummy) || abap.compare.initial(iv_act) && abap.compare.initial(io_sub) === false || abap.compare.initial(iv_act) === false && abap.compare.initial(io_sub)); abap.statements.assert(!(abap.compare.ne(iv_chk, abap.builtin.abap_undefined) && abap.compare.initial(io_sub) === false)); abap.statements.assert(abap.compare.initial(iv_hotkey) || abap.compare.eq(abap.builtin.strlen({val: iv_hotkey}), abap.IntegerFactory.get(1))); ls_item.get().txt.set(iv_txt); ls_item.get().act.set(iv_act); ls_item.get().ico.set(iv_ico); ls_item.get().sub.set(io_sub); ls_item.get().opt.set(iv_opt); ls_item.get().typ.set(iv_typ); ls_item.get().cur.set(iv_cur); ls_item.get().chk.set(iv_chk); ls_item.get().aux.set(iv_aux); ls_item.get().id.set(iv_id); ls_item.get().title.set(iv_title); ls_item.get().class.set(iv_class); ls_item.get().li_class.set(iv_li_class); ls_item.get().hotkey.set(abap.builtin.to_lower({val: iv_hotkey})); abap.statements.append({source: ls_item, target: this.#mt_items}); ro_self.set(this.me); return ro_self; } async constructor_(INPUT) { let iv_id = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_id) {iv_id.set(INPUT.iv_id);} this.#mv_id.set(iv_id); return this; } async count_items() { let rv_count = new abap.types.Integer({qualifiedName: "I"}); rv_count.set(abap.builtin.lines({val: this.#mt_items})); return rv_count; } async create(INPUT) { return zcl_abapgit_html_toolbar.create(INPUT); } static async create(INPUT) { let ro_instance = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"}); let iv_id = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_id) {iv_id.set(INPUT.iv_id);} ro_instance.set(await (new abap.Classes['ZCL_ABAPGIT_HTML_TOOLBAR']()).constructor_({iv_id: iv_id})); return ro_instance; } async get_hotkeys(INPUT) { let rt_hotkeys = abap.types.TableFactory.construct(new abap.types.Structure({ "ui_component": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-UI_COMPONENT"}), "action": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-ACTION"}), "hotkey": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-HOTKEY"}), "description": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-DESCRIPTION"})}, "zif_abapgit_gui_hotkeys=>ty_hotkey_with_descr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"action","type":"SORTED","isUnique":true,"keyFields":["UI_COMPONENT","ACTION"]}]}, "zif_abapgit_gui_hotkeys=>ty_hotkeys_with_descr"); let iv_component_name = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_component_name) {iv_component_name.set(INPUT.iv_component_name);} let ls_hotkey_action = new abap.types.Structure({ "ui_component": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-UI_COMPONENT"}), "action": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-ACTION"}), "hotkey": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-HOTKEY"}), "description": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GUI_HOTKEYS=>TY_HOTKEY_WITH_DESCR-DESCRIPTION"})}, "zif_abapgit_gui_hotkeys=>ty_hotkey_with_descr", undefined, {}, {}); let fs_ls_i_ = new abap.types.FieldSymbol(new abap.types.Structure({ "txt": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-TXT"}), "act": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ACT"}), "ico": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ICO"}), "sub": new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"}), "opt": new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_html_toolbar=>ty_item-opt"}), "typ": new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_html_toolbar=>ty_item-typ"}), "cur": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "chk": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "aux": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-AUX"}), "id": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ID"}), "title": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-TITLE"}), "class": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-CLASS"}), "li_class": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-LI_CLASS"}), "hotkey": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-HOTKEY"})}, "zcl_abapgit_html_toolbar=>ty_item", undefined, {}, {})); ls_hotkey_action.get().ui_component.set(iv_component_name); for await (const unique807 of abap.statements.loop(this.#mt_items,{where: async (I) => {return abap.compare.initial(I.hotkey) === false;}})) { fs_ls_i_.assign(unique807); ls_hotkey_action.get().description.set(fs_ls_i_.get().txt); ls_hotkey_action.get().action.set(fs_ls_i_.get().act); ls_hotkey_action.get().hotkey.set(fs_ls_i_.get().hotkey); abap.statements.insertInternal({data: ls_hotkey_action, table: rt_hotkeys}); } return rt_hotkeys; } async render(INPUT) { let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"}); let iv_right = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_right) {iv_right.set(INPUT.iv_right);} let iv_sort = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_sort) {iv_sort.set(INPUT.iv_sort);} let lv_class = new abap.types.String({qualifiedName: "STRING"}); ri_html.set(await (new abap.Classes['ZCL_ABAPGIT_HTML']()).constructor_()); lv_class.set(abap.CharacterFactory.get(13, 'nav-container')); if (abap.compare.eq(iv_right, abap.builtin.abap_true)) { lv_class.set(abap.operators.concat(lv_class,abap.CharacterFactory.get(12, ' float-right'))); } await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<div class="${abap.templateFormatting(lv_class)}">`)}); await ri_html.get().zif_abapgit_html$add({ig_chunk: (await this.#render_items({iv_sort: iv_sort}))}); await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(6, '</div>')}); return ri_html; } async render_as_droplist(INPUT) { let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"}); let iv_label = INPUT?.iv_label; if (iv_label?.getQualifiedName === undefined || iv_label.getQualifiedName() !== "STRING") { iv_label = undefined; } if (iv_label === undefined) { iv_label = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_label); } let iv_right = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_right) {iv_right.set(INPUT.iv_right);} let iv_sort = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_sort) {iv_sort.set(INPUT.iv_sort);} let iv_corner = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_corner) {iv_corner.set(INPUT.iv_corner);} let iv_action = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_action) {iv_action.set(INPUT.iv_action);} let lv_class = new abap.types.String({qualifiedName: "STRING"}); ri_html.set(await (new abap.Classes['ZCL_ABAPGIT_HTML']()).constructor_()); lv_class.set(abap.CharacterFactory.get(13, 'nav-container')); if (abap.compare.eq(iv_right, abap.builtin.abap_true)) { lv_class.set(abap.operators.concat(lv_class,abap.CharacterFactory.get(12, ' float-right'))); } if (abap.compare.eq(iv_corner, abap.builtin.abap_true)) { lv_class.set(abap.operators.concat(lv_class,abap.CharacterFactory.get(7, ' corner'))); } await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<div class="${abap.templateFormatting(lv_class)}">`)}); await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(8, '<ul><li>')}); await ri_html.get().zif_abapgit_html$add_a({iv_txt: iv_label, iv_typ: abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().sapevent, iv_act: iv_action}); await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(28, '<div class="minizone"></div>')}); await ri_html.get().zif_abapgit_html$add({ig_chunk: (await this.#render_items({iv_sort: iv_sort}))}); await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(10, '</li></ul>')}); await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(6, '</div>')}); return ri_html; } async #render_items(INPUT) { let ri_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"}); let iv_sort = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_sort) {iv_sort.set(INPUT.iv_sort);} let lv_class = new abap.types.String({qualifiedName: "STRING"}); let lv_class_value = new abap.types.String({qualifiedName: "STRING"}); let lv_icon = new abap.types.String({qualifiedName: "STRING"}); let lv_id = new abap.types.String({qualifiedName: "STRING"}); let lv_check = new abap.types.String({qualifiedName: "STRING"}); let lv_aux = new abap.types.String({qualifiedName: "STRING"}); let lv_txt = new abap.types.String({qualifiedName: "STRING"}); let lv_hkidx = new abap.types.Integer({qualifiedName: "I"}); let lv_has_icons = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); let fs_ls_item_ = new abap.types.FieldSymbol(new abap.types.Structure({ "txt": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-TXT"}), "act": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ACT"}), "ico": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ICO"}), "sub": new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"}), "opt": new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_html_toolbar=>ty_item-opt"}), "typ": new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_html_toolbar=>ty_item-typ"}), "cur": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "chk": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "aux": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-AUX"}), "id": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ID"}), "title": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-TITLE"}), "class": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-CLASS"}), "li_class": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-LI_CLASS"}), "hotkey": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-HOTKEY"})}, "zcl_abapgit_html_toolbar=>ty_item", undefined, {}, {})); ri_html.set(await (new abap.Classes['ZCL_ABAPGIT_HTML']()).constructor_()); if (abap.compare.eq(iv_sort, abap.builtin.abap_true)) { abap.statements.sort(this.#mt_items,{by: [{component: "txt"}]}); } for await (const unique808 of abap.statements.loop(this.#mt_items,{where: async (I) => {return abap.compare.initial(I.ico) === false || abap.compare.ne(I.chk, abap.builtin.abap_undefined);}})) { fs_ls_item_.assign(unique808); lv_has_icons.set(abap.builtin.abap_true); lv_class.set(abap.CharacterFactory.get(19, ' class="with-icons"')); break; } if (abap.compare.initial(this.#mv_id) === false) { lv_id.set(new abap.types.String().set(` id="${abap.templateFormatting(this.#mv_id)}"`)); } await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<ul${abap.templateFormatting(lv_id)}${abap.templateFormatting(lv_class)}>`)}); for await (const unique809 of abap.statements.loop(this.#mt_items)) { fs_ls_item_.assign(unique809); lv_class.clear(); lv_class_value.clear(); lv_icon.clear(); lv_txt.set(fs_ls_item_.get().txt); if (abap.compare.initial(fs_ls_item_.get().hotkey) === false) { abap.statements.assert(abap.compare.eq(abap.builtin.strlen({val: fs_ls_item_.get().hotkey}), abap.IntegerFactory.get(1))); lv_hkidx.set(abap.builtin.find({val: lv_txt, sub: abap.builtin.to_upper({val: fs_ls_item_.get().hotkey})})); if (abap.compare.lt(lv_hkidx, abap.IntegerFactory.get(0))) { lv_hkidx.set(abap.builtin.find({val: lv_txt, sub: fs_ls_item_.get().hotkey})); } if (abap.compare.ge(lv_hkidx, abap.IntegerFactory.get(0))) { lv_txt.set(abap.builtin.replace({val: lv_txt, off: lv_hkidx, len: abap.IntegerFactory.get(1), with: new abap.types.String().set(`<u>${abap.templateFormatting(lv_txt.getOffset({offset: lv_hkidx, length: 1}))}</u>`)})); } } if (abap.compare.eq(fs_ls_item_.get().typ, abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().separator)) { await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<li class="separator">${abap.templateFormatting(lv_txt)}</li>`)}); continue; } if (abap.compare.eq(lv_has_icons, abap.builtin.abap_true)) { if (abap.compare.eq(fs_ls_item_.get().chk, abap.builtin.abap_true)) { lv_icon.set((await ri_html.get().zif_abapgit_html$icon({iv_name: abap.CharacterFactory.get(10, 'check/blue')}))); lv_check.set(abap.CharacterFactory.get(15, ' data-check="X"')); } else if (abap.compare.eq(fs_ls_item_.get().chk, abap.builtin.abap_false)) { lv_icon.set((await ri_html.get().zif_abapgit_html$icon({iv_name: abap.CharacterFactory.get(10, 'check/grey')}))); lv_check.set(abap.CharacterFactory.get(14, ' data-check=""')); } else { lv_icon.set((await ri_html.get().zif_abapgit_html$icon({iv_name: fs_ls_item_.get().ico}))); } } if (abap.compare.eq(fs_ls_item_.get().cur, abap.builtin.abap_true)) { if (abap.compare.initial(fs_ls_item_.get().li_class)) { lv_class_value.set(abap.CharacterFactory.get(17, 'current-menu-item')); } else { lv_class_value.set(new abap.types.String().set(`current-menu-item ${abap.templateFormatting(fs_ls_item_.get().li_class)}`)); } } else { lv_class_value.set(fs_ls_item_.get().li_class); } if (abap.compare.initial(lv_class_value) === false) { lv_class.set(new abap.types.String().set(` class="${abap.templateFormatting(lv_class_value)}"`)); } if (abap.compare.initial(fs_ls_item_.get().aux) === false) { lv_aux.set(new abap.types.String().set(` data-aux="${abap.templateFormatting(fs_ls_item_.get().aux)}"`)); } await ri_html.get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<li${abap.templateFormatting(lv_class)}${abap.templateFormatting(lv_check)}${abap.templateFormatting(lv_aux)}>`)}); if (abap.compare.initial(fs_ls_item_.get().sub)) { await ri_html.get().zif_abapgit_html$add_a({iv_txt: abap.operators.concat(lv_icon,lv_txt), iv_typ: fs_ls_item_.get().typ, iv_act: fs_ls_item_.get().act, iv_id: fs_ls_item_.get().id, iv_opt: fs_ls_item_.get().opt, iv_title: fs_ls_item_.get().title, iv_class: fs_ls_item_.get().class}); } else { await ri_html.get().zif_abapgit_html$add_a({iv_txt: abap.operators.concat(lv_icon,lv_txt), iv_typ: abap.Classes['ZIF_ABAPGIT_HTML'].zif_abapgit_html$c_action_type.get().dummy, iv_act: abap.CharacterFactory.get(1, ''), iv_id: fs_ls_item_.get().id, iv_opt: fs_ls_item_.get().opt, iv_title: fs_ls_item_.get().title, iv_class: fs_ls_item_.get().class}); await ri_html.get().zif_abapgit_html$add({ig_chunk: (await fs_ls_item_.get().sub.get().#render_items({iv_sort: iv_sort}))}); } await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(5, '</li>')}); } await ri_html.get().zif_abapgit_html$add({ig_chunk: abap.CharacterFactory.get(5, '</ul>')}); return ri_html; } } abap.Classes['ZCL_ABAPGIT_HTML_TOOLBAR'] = zcl_abapgit_html_toolbar; zcl_abapgit_html_toolbar.ty_item = new abap.types.Structure({ "txt": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-TXT"}), "act": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ACT"}), "ico": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ICO"}), "sub": new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"}), "opt": new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_html_toolbar=>ty_item-opt"}), "typ": new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_html_toolbar=>ty_item-typ"}), "cur": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "chk": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "aux": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-AUX"}), "id": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ID"}), "title": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-TITLE"}), "class": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-CLASS"}), "li_class": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-LI_CLASS"}), "hotkey": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-HOTKEY"})}, "zcl_abapgit_html_toolbar=>ty_item", undefined, {}, {}); zcl_abapgit_html_toolbar.ty_items = abap.types.TableFactory.construct(new abap.types.Structure({ "txt": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-TXT"}), "act": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ACT"}), "ico": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ICO"}), "sub": new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"}), "opt": new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_html_toolbar=>ty_item-opt"}), "typ": new abap.types.Character(1, {"qualifiedName":"zcl_abapgit_html_toolbar=>ty_item-typ"}), "cur": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "chk": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "aux": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-AUX"}), "id": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-ID"}), "title": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-TITLE"}), "class": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-CLASS"}), "li_class": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-LI_CLASS"}), "hotkey": new abap.types.String({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR=>TY_ITEM-HOTKEY"})}, "zcl_abapgit_html_toolbar=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_html_toolbar=>ty_items"); export {zcl_abapgit_html_toolbar}; |