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 | 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_gui_page_whereused.clas.abap class zcl_abapgit_gui_page_whereused extends zcl_abapgit_gui_component { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'ZCL_ABAPGIT_GUI_PAGE_WHEREUSED'; static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_GUI_PAGE_TITLE","ZIF_ABAPGIT_GUI_EVENT_HANDLER","ZIF_ABAPGIT_GUI_HOTKEYS","ZIF_ABAPGIT_GUI_MENU_PROVIDER","ZIF_ABAPGIT_GUI_RENDERABLE","ZIF_ABAPGIT_HTML_TABLE"]; static ATTRIBUTES = {"MV_PACKAGE": {"type": () => {return new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"});}, "visibility": "I", "is_constant": " ", "is_class": " "}, "MV_IGNORE_SUBPACKAGES": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "visibility": "I", "is_constant": " ", "is_class": " "}, "MI_TABLE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TABLE", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TABLE"});}, "visibility": "I", "is_constant": " ", "is_class": " "}, "MV_SHOW_USED_OBJ": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "visibility": "I", "is_constant": " ", "is_class": " "}, "MV_SHOW_ROOT_PKG": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "visibility": "I", "is_constant": " ", "is_class": " "}, "MT_WHERE_USED": {"type": () => {return (() => { throw new Error("Void type: ZCL_ABAPGIT_WHERE_USED_TOOLS") })();}, "visibility": "I", "is_constant": " ", "is_class": " "}, "C_ACTION": {"type": () => {return new abap.types.Structure({ "refresh": new abap.types.String({qualifiedName: "STRING"}), "show_used_obj": new abap.types.String({qualifiedName: "STRING"}), "show_root_pkg": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {});}, "visibility": "I", "is_constant": "X", "is_class": "X"}, "C_TITLE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": "X", "is_class": "X"}}; static METHODS = {"INIT_TABLE_COMPONENT": {"visibility": "I", "parameters": {}}, "RENDER_FILTER_HELP_HINT": {"visibility": "I", "parameters": {"RV_HTML": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}}, "RENDER_HEADER": {"visibility": "I", "parameters": {"II_HTML": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"});}, "is_optional": " "}}}, "RUN_WHERE_USED": {"visibility": "I", "parameters": {}}, "CREATE": {"visibility": "U", "parameters": {"RI_PAGE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"});}, "is_optional": " "}, "IV_PACKAGE": {"type": () => {return new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"});}, "is_optional": " "}, "II_REPO": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"});}, "is_optional": " "}}}, "CONSTRUCTOR": {"visibility": "U", "parameters": {"IV_PACKAGE": {"type": () => {return new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"});}, "is_optional": " "}, "II_REPO": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"});}, "is_optional": " "}}}}; #mv_package; #mv_ignore_subpackages; #mi_table; #mv_show_used_obj; #mv_show_root_pkg; #mt_where_used; 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, "init_table_component": this.#init_table_component.bind(this), "render_filter_help_hint": this.#render_filter_help_hint.bind(this), "render_header": this.#render_header.bind(this), "run_where_used": this.#run_where_used.bind(this), }; this.#mv_package = new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}); this.FRIENDS_ACCESS_INSTANCE["mv_package"] = this.#mv_package; this.#mv_ignore_subpackages = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); this.FRIENDS_ACCESS_INSTANCE["mv_ignore_subpackages"] = this.#mv_ignore_subpackages; this.#mi_table = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TABLE", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TABLE"}); this.FRIENDS_ACCESS_INSTANCE["mi_table"] = this.#mi_table; this.#mv_show_used_obj = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); this.FRIENDS_ACCESS_INSTANCE["mv_show_used_obj"] = this.#mv_show_used_obj; this.#mv_show_root_pkg = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); this.FRIENDS_ACCESS_INSTANCE["mv_show_root_pkg"] = this.#mv_show_root_pkg; this.#mt_where_used = (() => { throw new Error("Void type: ZCL_ABAPGIT_WHERE_USED_TOOLS") })(); this.FRIENDS_ACCESS_INSTANCE["mt_where_used"] = this.#mt_where_used; this.c_action = zcl_abapgit_gui_page_whereused.c_action; this.c_title = zcl_abapgit_gui_page_whereused.c_title; } async constructor_(INPUT) { let iv_package = new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}); if (INPUT && INPUT.iv_package) {iv_package.set(INPUT.iv_package);} let ii_repo = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"}); if (INPUT && INPUT.ii_repo) {ii_repo.set(INPUT.ii_repo);} await super.constructor_(); if (abap.compare.initial(ii_repo) === false) { this.#mv_package.set((await ii_repo.get().zif_abapgit_repo$get_package())); this.#mv_ignore_subpackages.set(((await ii_repo.get().zif_abapgit_repo$get_local_settings())).get().ignore_subpackages); } else { this.#mv_package.set(iv_package); } if (abap.compare.initial(this.#mv_package) || abap.compare.eq((await (await abap.Classes['ZCL_ABAPGIT_FACTORY'].get_sap_package({iv_package: this.#mv_package})).get().zif_abapgit_sap_package$exists()), abap.builtin.abap_false)) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: new abap.types.String().set(`Package ${abap.templateFormatting(this.#mv_package)} does not exist`)}); } await this.#run_where_used(); return this; } async create(INPUT) { return zcl_abapgit_gui_page_whereused.create(INPUT); } static async create(INPUT) { let ri_page = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GUI_RENDERABLE", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GUI_RENDERABLE"}); let iv_package = new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}); if (INPUT && INPUT.iv_package) {iv_package.set(INPUT.iv_package);} let ii_repo = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"}); if (INPUT && INPUT.ii_repo) {ii_repo.set(INPUT.ii_repo);} let lo_component = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_GUI_PAGE_WHEREUSED", RTTIName: "\\CLASS=ZCL_ABAPGIT_GUI_PAGE_WHEREUSED"}); lo_component.set(await (new abap.Classes['ZCL_ABAPGIT_GUI_PAGE_WHEREUSED']()).constructor_({ii_repo: ii_repo, iv_package: iv_package})); ri_page.set((await abap.Classes['ZCL_ABAPGIT_GUI_PAGE_HOC'].create({ii_child_component: lo_component}))); return ri_page; } async #init_table_component() { let ls_sorting_state = new abap.types.Structure({ "column_id": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_TABLE=>TY_SORTING_STATE-COLUMN_ID"}), "descending": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_html_table=>ty_sorting_state", undefined, {}, {}); let lv_package_col_id = new abap.types.String({qualifiedName: "STRING"}); let lv_package_col_title = new abap.types.String({qualifiedName: "STRING"}); if (abap.compare.initial(this.#mi_table) === false) { return; } if (abap.compare.eq(this.#mv_show_root_pkg, abap.builtin.abap_true)) { ls_sorting_state.get().column_id.set(abap.CharacterFactory.get(12, 'root_package')); lv_package_col_id.set(abap.CharacterFactory.get(12, 'root_package')); lv_package_col_title.set(abap.CharacterFactory.get(12, 'Root package')); } else { ls_sorting_state.get().column_id.set(abap.CharacterFactory.get(7, 'package')); lv_package_col_id.set(abap.CharacterFactory.get(7, 'package')); lv_package_col_title.set(abap.CharacterFactory.get(7, 'Package')); } this.#mi_table.set((await abap.Classes['ZCL_ABAPGIT_HTML_TABLE'].create({ii_renderer: this.me, is_initial_sorting_state: ls_sorting_state}))); await (await (await (await this.#mi_table.get().define_column_group({iv_group_title: abap.CharacterFactory.get(11, 'Repo object'), iv_group_id: abap.CharacterFactory.get(1, '')})).get().define_column({iv_column_id: abap.CharacterFactory.get(11, 'dep_package'), iv_column_title: abap.CharacterFactory.get(7, 'Package')})).get().define_column({iv_column_id: abap.CharacterFactory.get(12, 'dep_obj_type'), iv_column_title: abap.CharacterFactory.get(4, 'Type')})).get().define_column({iv_column_id: abap.CharacterFactory.get(12, 'dep_obj_name'), iv_column_title: abap.CharacterFactory.get(4, 'Name')}); await (await (await (await this.#mi_table.get().define_column_group({iv_group_title: abap.CharacterFactory.get(7, 'Used in'), iv_group_id: abap.CharacterFactory.get(5, 'where')})).get().define_column({iv_column_id: lv_package_col_id, iv_column_title: lv_package_col_title})).get().define_column({iv_column_id: abap.CharacterFactory.get(8, 'obj_type'), iv_column_title: abap.CharacterFactory.get(4, 'Type')})).get().define_column({iv_column_id: abap.CharacterFactory.get(8, 'obj_name'), iv_column_title: abap.CharacterFactory.get(4, 'Name')}); } async #render_filter_help_hint() { let rv_html = new abap.types.String({qualifiedName: "STRING"}); let li_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"}); li_html.set((await (await (await (await (await (await (await (await (await abap.Classes['ZCL_ABAPGIT_HTML'].create()).get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<p>This tool cycles through all objects in the repo `)})).get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`and runs the standard where-used function against it. `)})).get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`The result is displayed here less the usages `)})).get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`inside the repo itself.</p>`)})).get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`<p>The tool can be used to detect `)})).get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`potential regressions in the code which uses the repo `)})).get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`and external to it (e.g. when deploying updates `)})).get().zif_abapgit_html$add({ig_chunk: new abap.types.String().set(`to a library-like repo).</p>`)}))); rv_html.set((await abap.Classes['ZCL_ABAPGIT_GUI_CHUNK_LIB'].render_help_hint({iv_text_to_wrap: (await li_html.get().zif_abapgit_html$render({iv_no_line_breaks: abap.builtin.abap_true}))}))); return rv_html; } async #render_header(INPUT) { let ii_html = INPUT?.ii_html; if (ii_html?.getQualifiedName === undefined || ii_html.getQualifiedName() !== "ZIF_ABAPGIT_HTML") { ii_html = undefined; } if (ii_html === undefined) { ii_html = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"}).set(INPUT.ii_html); } let lv_sub_hint = new abap.types.String({qualifiedName: "STRING"}); if (abap.compare.eq(this.#mv_ignore_subpackages, abap.builtin.abap_false)) { lv_sub_hint.set(abap.CharacterFactory.get(20, ' and its subpackages')); } await ii_html.get().zif_abapgit_html$div({iv_class: abap.CharacterFactory.get(9, 'wu-header'), iv_content: new abap.types.String().set(`Where used for package ${abap.templateFormatting((await (await abap.Classes['ZCL_ABAPGIT_GUI_CHUNK_LIB'].render_package_name({iv_package: this.#mv_package})).get().zif_abapgit_html$render({iv_no_line_breaks: abap.builtin.abap_true})))}${abap.templateFormatting(lv_sub_hint)} in other packages. ${abap.templateFormatting((await this.#render_filter_help_hint()))}`)}); } async #run_where_used() { this.#mt_where_used.set((await (await abap.Classes['ZCL_ABAPGIT_WHERE_USED_TOOLS'].new()).get().select_external_usages({iv_ignore_subpackages: this.#mv_ignore_subpackages, iv_package: this.#mv_package}))); } 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); } if (abap.compare.eq((await this.#mi_table.get().process_sorting_request({iv_event: ii_event.get().zif_abapgit_gui_event$mv_action})), abap.builtin.abap_true)) { rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().re_render); return rs_handled; } let unique845 = ii_event.get().zif_abapgit_gui_event$mv_action; if (abap.compare.eq(unique845, zcl_abapgit_gui_page_whereused.c_action.get().refresh)) { await this.#run_where_used(); rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().re_render); } else if (abap.compare.eq(unique845, zcl_abapgit_gui_page_whereused.c_action.get().show_used_obj)) { this.#mv_show_used_obj.set(abap.builtin.boolc(abap.compare.eq(this.#mv_show_used_obj, abap.builtin.abap_false))); rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().re_render); } else if (abap.compare.eq(unique845, zcl_abapgit_gui_page_whereused.c_action.get().show_root_pkg)) { this.#mv_show_root_pkg.set(abap.builtin.boolc(abap.compare.eq(this.#mv_show_root_pkg, abap.builtin.abap_false))); this.#mi_table.clear(); rs_handled.get().state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().re_render); } return rs_handled; } async zif_abapgit_gui_hotkeys$get_hotkey_actions() { let rt_hotkey_actions = 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"); rt_hotkey_actions.set((await (await this.zif_abapgit_gui_menu_provider$get_menu()).get().get_hotkeys({iv_component_name: zcl_abapgit_gui_page_whereused.c_title}))); return rt_hotkey_actions; } async zif_abapgit_gui_menu_provider$get_menu() { let ro_toolbar = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_TOOLBAR", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_TOOLBAR"}); let lv_show_used_txt = new abap.types.String({qualifiedName: "STRING"}); let lv_show_root_txt = new abap.types.String({qualifiedName: "STRING"}); if (abap.compare.eq(this.#mv_show_used_obj, abap.builtin.abap_true)) { lv_show_used_txt.set(abap.CharacterFactory.get(14, 'Hide Used Type')); } else { lv_show_used_txt.set(abap.CharacterFactory.get(14, 'Show Used Type')); } if (abap.compare.eq(this.#mv_show_root_pkg, abap.builtin.abap_true)) { lv_show_root_txt.set(abap.CharacterFactory.get(19, 'Show parent package')); } else { lv_show_root_txt.set(abap.CharacterFactory.get(17, 'Show root package')); } ro_toolbar.set((await (await (await (await (await abap.Classes['ZCL_ABAPGIT_HTML_TOOLBAR'].create({iv_id: abap.CharacterFactory.get(18, 'toolbar-where-used')})).get().add({iv_txt: lv_show_root_txt, iv_title: abap.CharacterFactory.get(42, 'Show root package or direct parent package'), iv_act: zcl_abapgit_gui_page_whereused.c_action.get().show_root_pkg, iv_hotkey: abap.CharacterFactory.get(1, 'p')})).get().add({iv_txt: lv_show_used_txt, iv_title: abap.CharacterFactory.get(46, 'Show/Hide used type or object (when available)'), iv_act: zcl_abapgit_gui_page_whereused.c_action.get().show_used_obj, iv_hotkey: abap.CharacterFactory.get(1, 'u')})).get().add({iv_txt: abap.CharacterFactory.get(7, 'Refresh'), iv_act: zcl_abapgit_gui_page_whereused.c_action.get().refresh, iv_hotkey: abap.CharacterFactory.get(1, 'r')})).get().add({iv_txt: abap.CharacterFactory.get(4, 'Back'), iv_act: abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_action.get().go_back}))); return ro_toolbar; } async zif_abapgit_gui_page_title$get_page_title() { let rv_title = new abap.types.String({qualifiedName: "STRING"}); rv_title.set(zcl_abapgit_gui_page_whereused.c_title); return rv_title; } 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(); await this.#init_table_component(); ri_html.set((await abap.Classes['ZCL_ABAPGIT_HTML'].create())); await this.#render_header({ii_html: ri_html}); if (abap.compare.initial(this.#mt_where_used)) { await ri_html.get().zif_abapgit_html$add({ig_chunk: (await abap.Classes['ZCL_ABAPGIT_GUI_CHUNK_LIB'].render_success({iv_message: abap.CharacterFactory.get(15, 'No usages found')}))}); } else { await ri_html.get().zif_abapgit_html$div({iv_class: abap.CharacterFactory.get(2, 'wu'), ii_content: (await this.#mi_table.get().render({iv_wrap_in_div: abap.CharacterFactory.get(23, 'default-table-container'), iv_css_class: abap.CharacterFactory.get(13, 'default-table'), iv_with_cids: abap.builtin.abap_true, it_data: this.#mt_where_used}))}); } return ri_html; } async zif_abapgit_html_table$get_row_attrs(INPUT) { let rs_attrs = new abap.types.Structure({ "css_class": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_TABLE=>TY_ROW_ATTRS-CSS_CLASS"}), "data": new abap.types.Structure({ "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-NAME"}), "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML=>TY_DATA_ATTR-VALUE"})}, "zif_abapgit_html=>ty_data_attr", undefined, {}, {})}, "zif_abapgit_html_table=>ty_row_attrs", undefined, {}, {}); let iv_table_id = INPUT?.iv_table_id; if (iv_table_id?.getQualifiedName === undefined || iv_table_id.getQualifiedName() !== "STRING") { iv_table_id = undefined; } if (iv_table_id === undefined) { iv_table_id = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_table_id); } let iv_row_index = INPUT?.iv_row_index; if (iv_row_index?.getQualifiedName === undefined || iv_row_index.getQualifiedName() !== "I") { iv_row_index = undefined; } if (iv_row_index === undefined) { iv_row_index = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.iv_row_index); } let is_row = INPUT?.is_row; return rs_attrs; } async zif_abapgit_html_table$render_cell(INPUT) { let rs_render = new abap.types.Structure({ "css_class": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_TABLE=>TY_CELL_RENDER-CSS_CLASS"}), "content": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_TABLE=>TY_CELL_RENDER-CONTENT"}), "html": new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML"})}, "zif_abapgit_html_table=>ty_cell_render", undefined, {}, {}); let iv_table_id = INPUT?.iv_table_id; if (iv_table_id?.getQualifiedName === undefined || iv_table_id.getQualifiedName() !== "STRING") { iv_table_id = undefined; } if (iv_table_id === undefined) { iv_table_id = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_table_id); } let iv_row_index = INPUT?.iv_row_index; if (iv_row_index?.getQualifiedName === undefined || iv_row_index.getQualifiedName() !== "I") { iv_row_index = undefined; } if (iv_row_index === undefined) { iv_row_index = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.iv_row_index); } let is_row = INPUT?.is_row; let iv_column_id = INPUT?.iv_column_id; if (iv_column_id?.getQualifiedName === undefined || iv_column_id.getQualifiedName() !== "STRING") { iv_column_id = undefined; } if (iv_column_id === undefined) { iv_column_id = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_column_id); } let iv_value = INPUT?.iv_value; let fs_ls_i_ = new abap.types.FieldSymbol((() => { throw new Error("Void type: ZCL_ABAPGIT_WHERE_USED_TOOLS") })()); abap.statements.assign({target: fs_ls_i_, source: is_row}); let unique846 = iv_column_id; if (abap.compare.eq(unique846, abap.CharacterFactory.get(12, 'dep_obj_name'))) { rs_render.get().content.set(fs_ls_i_.get().dep_obj_name); if (abap.compare.eq(this.#mv_show_used_obj, abap.builtin.abap_true)) { rs_render.get().content.set(abap.operators.concat(rs_render.get().content,new abap.types.String().set(`<span class='used-obj'>${abap.templateFormatting(fs_ls_i_.get().dep_used_obj)}</span>`))); } } else if (abap.compare.eq(unique846, abap.CharacterFactory.get(8, 'obj_type'))) { if (abap.compare.initial(fs_ls_i_.get().obj_prog_type)) { rs_render.get().content.set(fs_ls_i_.get().obj_type); } else { rs_render.get().content.set(abap.operators.concat(fs_ls_i_.get().obj_type,abap.operators.concat(abap.CharacterFactory.get(1, ':'),fs_ls_i_.get().obj_prog_type))); } } else if (abap.compare.eq(unique846, abap.CharacterFactory.get(8, 'obj_name'))) { rs_render.get().content.set((await abap.Classes['ZCL_ABAPGIT_GUI_CHUNK_LIB'].get_item_link({iv_obj_type: fs_ls_i_.get().obj_type, iv_obj_name: fs_ls_i_.get().obj_name}))); } else { rs_render.get().content.set(iv_value); } return rs_render; } } abap.Classes['ZCL_ABAPGIT_GUI_PAGE_WHEREUSED'] = zcl_abapgit_gui_page_whereused; zcl_abapgit_gui_page_whereused.c_action = new abap.types.Structure({ "refresh": new abap.types.String({qualifiedName: "STRING"}), "show_used_obj": new abap.types.String({qualifiedName: "STRING"}), "show_root_pkg": new abap.types.String({qualifiedName: "STRING"})}, undefined, undefined, {}, {}); zcl_abapgit_gui_page_whereused.c_action.get().refresh.set('refresh'); zcl_abapgit_gui_page_whereused.c_action.get().show_used_obj.set('show_used_obj'); zcl_abapgit_gui_page_whereused.c_action.get().show_root_pkg.set('show_root_pkg'); zcl_abapgit_gui_page_whereused.c_title = new abap.types.String({qualifiedName: "STRING"}); zcl_abapgit_gui_page_whereused.c_title.set('Where Used'); export {zcl_abapgit_gui_page_whereused}; |