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 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 | 1x 1x 21x 21x 21x 21x 21x 21x 21x 1x 1x 1x 1x 1x 1x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 21x 3x 3x 3x 3x 3x 3x 3x 3x 3x 2x 2x 1x 1x 1x 1x 3x 1x 1x 3x 3x 21x 3x 3x 21x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 21x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 20x 20x 20x 6x 20x 3x 3x 3x 3x 2x 2x 2x 2x 2x 4x 4x 4x 4x 1x 1x 1x 4x 1x 1x 2x 14x 11x 11x 11x 20x 3x 3x 20x 2x 6x 21x 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 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 8x 8x 8x 8x 8x 2x 8x 1x 6x 2x 5x 1x 1x 1x 1x 2x 2x 2x 2x 2x 4x 4x 4x 4x 2x 2x 1x 1x 3x 2x 2x 2x 8x 1x 1x 21x 3x 3x 3x 3x 3x 21x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 87x 87x 87x 12x 12x 87x 2x 2x 87x 87x 35x 1x 35x 34x 1x 1x 34x 1x 1x 34x 87x 4x 4x 4x 1x 1x 1x 1x 1x 4x 1x 1x 4x 1x 1x 4x 87x 24x 24x 21x 1x 1x | const {cx_root} = await import("./cx_root.clas.mjs"); // zcl_abapgit_html_form_utils.clas.abap class zcl_abapgit_html_form_utils { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'ZCL_ABAPGIT_HTML_FORM_UTILS'; static IMPLEMENTED_INTERFACES = []; 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": " "}}; static METHODS = {"CREATE": {"visibility": "U", "parameters": {"RO_FORM_UTIL": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM_UTILS", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM_UTILS"});}, "is_optional": " "}, "IO_FORM": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});}, "is_optional": " "}}}, "IS_DIRTY": {"visibility": "U", "parameters": {"RV_DIRTY": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "IO_FORM_DATA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "is_optional": " "}, "IO_COMPARE_WITH": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "is_optional": " "}}}, "CONSTRUCTOR": {"visibility": "U", "parameters": {"IO_FORM": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"});}, "is_optional": " "}}}, "NORMALIZE": {"visibility": "U", "parameters": {"RO_FORM_DATA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "is_optional": " "}, "IO_FORM_DATA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "is_optional": " "}}}, "VALIDATE": {"visibility": "U", "parameters": {"RO_VALIDATION_LOG": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "is_optional": " "}, "IO_FORM_DATA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "is_optional": " "}}}, "IS_EMPTY": {"visibility": "U", "parameters": {"RV_EMPTY": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "IO_FORM_DATA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "is_optional": " "}}}, "SET_DATA": {"visibility": "U", "parameters": {"IO_FORM_DATA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "is_optional": " "}}}, "EXIT": {"visibility": "U", "parameters": {"RV_STATE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "IO_FORM_DATA": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "is_optional": " "}, "IO_COMPARE_WITH": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"});}, "is_optional": " "}}}}; #mo_form; #mo_form_data; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { "normalize": this.normalize.bind(this), "validate": this.validate.bind(this), "is_empty": this.is_empty.bind(this), "set_data": this.set_data.bind(this), "exit": this.exit.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; } async constructor_(INPUT) { let io_form = INPUT?.io_form; if (io_form?.getQualifiedName === undefined || io_form.getQualifiedName() !== "ZCL_ABAPGIT_HTML_FORM") { io_form = undefined; } if (io_form === undefined) { io_form = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"}).set(INPUT.io_form); } this.#mo_form.set(io_form); return this; } async create(INPUT) { return zcl_abapgit_html_form_utils.create(INPUT); } static async create(INPUT) { let ro_form_util = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM_UTILS", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM_UTILS"}); let io_form = INPUT?.io_form; if (io_form?.getQualifiedName === undefined || io_form.getQualifiedName() !== "ZCL_ABAPGIT_HTML_FORM") { io_form = undefined; } if (io_form === undefined) { io_form = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_HTML_FORM", RTTIName: "\\CLASS=ZCL_ABAPGIT_HTML_FORM"}).set(INPUT.io_form); } ro_form_util.set(await (new abap.Classes['ZCL_ABAPGIT_HTML_FORM_UTILS']()).constructor_({io_form: io_form})); return ro_form_util; } async exit(INPUT) { let rv_state = new abap.types.Integer({qualifiedName: "I"}); let io_form_data = INPUT?.io_form_data; if (io_form_data?.getQualifiedName === undefined || io_form_data.getQualifiedName() !== "ZCL_ABAPGIT_STRING_MAP") { io_form_data = undefined; } if (io_form_data === undefined) { io_form_data = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"}).set(INPUT.io_form_data); } let io_compare_with = INPUT?.io_compare_with; if (io_compare_with?.getQualifiedName === undefined || io_compare_with.getQualifiedName() !== "ZCL_ABAPGIT_STRING_MAP") { io_compare_with = undefined; } if (io_compare_with === undefined) { io_compare_with = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"}).set(INPUT.io_compare_with); } let lv_answer = new abap.types.Character(1, {}); if (abap.compare.eq((await this.is_dirty({io_form_data: io_form_data, io_compare_with: io_compare_with})), abap.builtin.abap_true)) { lv_answer.set((await (await abap.Classes['ZCL_ABAPGIT_UI_FACTORY'].get_popups()).get().zif_abapgit_popups$popup_to_confirm({iv_display_cancel_button: abap.builtin.abap_false, iv_titlebar: abap.CharacterFactory.get(25, 'abapGit - Unsaved Changes'), iv_text_question: abap.CharacterFactory.get(56, 'There are unsaved changes. Do you want to exit the form?'), iv_default_button: abap.CharacterFactory.get(1, '2')}))); if (abap.compare.eq(lv_answer, abap.CharacterFactory.get(1, '1'))) { rv_state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().go_back_to_bookmark); } else { rv_state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().no_more_act); } } else { rv_state.set(abap.Classes['ZCL_ABAPGIT_GUI'].c_event_state.get().go_back_to_bookmark); } return rv_state; } async is_dirty(INPUT) { return zcl_abapgit_html_form_utils.is_dirty(INPUT); } static async is_dirty(INPUT) { let rv_dirty = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); let io_form_data = INPUT?.io_form_data; if (io_form_data?.getQualifiedName === undefined || io_form_data.getQualifiedName() !== "ZCL_ABAPGIT_STRING_MAP") { io_form_data = undefined; } if (io_form_data === undefined) { io_form_data = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"}).set(INPUT.io_form_data); } let io_compare_with = INPUT?.io_compare_with; if (io_compare_with?.getQualifiedName === undefined || io_compare_with.getQualifiedName() !== "ZCL_ABAPGIT_STRING_MAP") { io_compare_with = undefined; } if (io_compare_with === undefined) { io_compare_with = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"}).set(INPUT.io_compare_with); } rv_dirty.set(abap.builtin.boolc(abap.compare.ne(io_form_data.get().mt_entries, io_compare_with.get().mt_entries))); return rv_dirty; } async is_empty(INPUT) { let rv_empty = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); let io_form_data = INPUT?.io_form_data; if (io_form_data?.getQualifiedName === undefined || io_form_data.getQualifiedName() !== "ZCL_ABAPGIT_STRING_MAP") { io_form_data = undefined; } if (io_form_data === undefined) { io_form_data = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"}).set(INPUT.io_form_data); } let lt_fields = abap.types.TableFactory.construct(new abap.types.Structure({ "type": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-TYPE"}), "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-NAME"}), "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-LABEL"}), "hint": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-HINT"}), "dblclick": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-DBLCLICK"}), "click": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-CLICK"}), "placeholder": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-PLACEHOLDER"}), "required": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-REQUIRED"}), "upper_case": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "item_class": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ITEM_CLASS"}), "error": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ERROR"}), "default_value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-DEFAULT_VALUE"}), "side_action": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-SIDE_ACTION"}), "subitems": abap.types.TableFactory.construct(new abap.types.Structure({ "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_SUBITEM-LABEL"}), "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_SUBITEM-VALUE"}), "readonly": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_html_form=>ty_subitem", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_html_form=>ty_subitems"), "readonly": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "password": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "condense": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "min": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-MIN"}), "max": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-MAX"}), "rows": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ROWS"}), "cols": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-COLS"})}, "zif_abapgit_html_form=>ty_field", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"by_name","type":"SORTED","isUnique":true,"keyFields":["NAME"]}]}, "zif_abapgit_html_form=>ty_fields"); let lv_value = new abap.types.String({qualifiedName: "STRING"}); let lv_rows = new abap.types.Integer({qualifiedName: "I"}); let lv_row = new abap.types.Integer({qualifiedName: "I"}); let fs_ls_field_ = new abap.types.FieldSymbol(new abap.types.Structure({ "type": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-TYPE"}), "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-NAME"}), "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-LABEL"}), "hint": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-HINT"}), "dblclick": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-DBLCLICK"}), "click": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-CLICK"}), "placeholder": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-PLACEHOLDER"}), "required": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-REQUIRED"}), "upper_case": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "item_class": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ITEM_CLASS"}), "error": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ERROR"}), "default_value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-DEFAULT_VALUE"}), "side_action": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-SIDE_ACTION"}), "subitems": abap.types.TableFactory.construct(new abap.types.Structure({ "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_SUBITEM-LABEL"}), "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_SUBITEM-VALUE"}), "readonly": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_html_form=>ty_subitem", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_html_form=>ty_subitems"), "readonly": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "password": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "condense": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "min": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-MIN"}), "max": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-MAX"}), "rows": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ROWS"}), "cols": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-COLS"})}, "zif_abapgit_html_form=>ty_field", undefined, {}, {})); rv_empty.set(abap.builtin.abap_true); lt_fields.set((await this.#mo_form.get().get_fields())); for await (const unique790 of abap.statements.loop(lt_fields,{where: async (I) => {return abap.compare.ne(I.type, abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_field_type.get().field_group);}})) { fs_ls_field_.assign(unique790); lv_value.set((abap.builtin.condense({val: (await io_form_data.get().get({iv_key: fs_ls_field_.get().name})), del: new abap.types.String().set(` `)}))); if (abap.compare.eq(fs_ls_field_.get().type, abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_field_type.get().number)) { rv_empty.set(abap.builtin.boolc(abap.compare.initial(lv_value) || abap.compare.eq(lv_value, abap.CharacterFactory.get(1, '0')))); } else if (abap.compare.eq(fs_ls_field_.get().type, abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_field_type.get().table)) { lv_rows.set((await io_form_data.get().get({iv_key: new abap.types.String().set(`${abap.templateFormatting(fs_ls_field_.get().name)}-${abap.templateFormatting(abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_rows)}`)}))); const indexBackup1 = abap.builtin.sy.get().index.get(); const unique791 = lv_rows.get(); for (let unique792 = 0; unique792 < unique791; unique792++) { abap.builtin.sy.get().index.set(unique792 + 1); lv_row.set(abap.builtin.sy.get().index); const indexBackup2 = abap.builtin.sy.get().index.get(); const unique793 = abap.builtin.lines({val: fs_ls_field_.get().subitems}).get(); for (let unique794 = 0; unique794 < unique793; unique794++) { abap.builtin.sy.get().index.set(unique794 + 1); lv_value.set((await io_form_data.get().get({iv_key: new abap.types.String().set(`${abap.templateFormatting(fs_ls_field_.get().name)}-${abap.templateFormatting(lv_row)}-${abap.templateFormatting(abap.builtin.sy.get().index)}`)}))); rv_empty.set(abap.builtin.boolc(abap.compare.initial(lv_value))); if (abap.compare.ne(rv_empty, abap.builtin.abap_true)) { abap.builtin.sy.get().index.set(indexBackup1); return rv_empty; } } abap.builtin.sy.get().index.set(indexBackup2); } abap.builtin.sy.get().index.set(indexBackup1); } else if (abap.compare.eq(fs_ls_field_.get().type, abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_field_type.get().textarea)) { abap.statements.replace({target: lv_value, all: true, with: abap.CharacterFactory.get(1, ''), of: abap.Classes['CL_ABAP_CHAR_UTILITIES'].cr_lf}); abap.statements.replace({target: lv_value, all: true, with: abap.CharacterFactory.get(1, ''), of: abap.Classes['CL_ABAP_CHAR_UTILITIES'].newline}); rv_empty.set(abap.builtin.boolc(abap.compare.initial(lv_value))); } else { rv_empty.set(abap.builtin.boolc(abap.compare.initial(lv_value))); } if (abap.compare.ne(rv_empty, abap.builtin.abap_true)) { return rv_empty; } } return rv_empty; } async normalize(INPUT) { let ro_form_data = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"}); let io_form_data = INPUT?.io_form_data; if (io_form_data?.getQualifiedName === undefined || io_form_data.getQualifiedName() !== "ZCL_ABAPGIT_STRING_MAP") { io_form_data = undefined; } if (io_form_data === undefined) { io_form_data = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"}).set(INPUT.io_form_data); } let lt_fields = abap.types.TableFactory.construct(new abap.types.Structure({ "type": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-TYPE"}), "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-NAME"}), "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-LABEL"}), "hint": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-HINT"}), "dblclick": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-DBLCLICK"}), "click": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-CLICK"}), "placeholder": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-PLACEHOLDER"}), "required": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-REQUIRED"}), "upper_case": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "item_class": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ITEM_CLASS"}), "error": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ERROR"}), "default_value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-DEFAULT_VALUE"}), "side_action": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-SIDE_ACTION"}), "subitems": abap.types.TableFactory.construct(new abap.types.Structure({ "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_SUBITEM-LABEL"}), "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_SUBITEM-VALUE"}), "readonly": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_html_form=>ty_subitem", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_html_form=>ty_subitems"), "readonly": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "password": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "condense": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "min": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-MIN"}), "max": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-MAX"}), "rows": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ROWS"}), "cols": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-COLS"})}, "zif_abapgit_html_form=>ty_field", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"by_name","type":"SORTED","isUnique":true,"keyFields":["NAME"]}]}, "zif_abapgit_html_form=>ty_fields"); let lv_value = new abap.types.String({qualifiedName: "STRING"}); let lv_rows = new abap.types.Integer({qualifiedName: "I"}); let lv_row = new abap.types.Integer({qualifiedName: "I"}); let lv_len = new abap.types.Integer({qualifiedName: "I"}); let fs_ls_field_ = new abap.types.FieldSymbol(new abap.types.Structure({ "type": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-TYPE"}), "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-NAME"}), "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-LABEL"}), "hint": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-HINT"}), "dblclick": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-DBLCLICK"}), "click": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-CLICK"}), "placeholder": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-PLACEHOLDER"}), "required": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-REQUIRED"}), "upper_case": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "item_class": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ITEM_CLASS"}), "error": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ERROR"}), "default_value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-DEFAULT_VALUE"}), "side_action": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-SIDE_ACTION"}), "subitems": abap.types.TableFactory.construct(new abap.types.Structure({ "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_SUBITEM-LABEL"}), "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_SUBITEM-VALUE"}), "readonly": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_html_form=>ty_subitem", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_html_form=>ty_subitems"), "readonly": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "password": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "condense": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "min": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-MIN"}), "max": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-MAX"}), "rows": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ROWS"}), "cols": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-COLS"})}, "zif_abapgit_html_form=>ty_field", undefined, {}, {})); ro_form_data.set(await (new abap.Classes['ZCL_ABAPGIT_STRING_MAP']()).constructor_()); if (abap.compare.eq((await io_form_data.get().is_empty()), abap.builtin.abap_true)) { return ro_form_data; } lt_fields.set((await this.#mo_form.get().get_fields())); for await (const unique795 of abap.statements.loop(lt_fields,{where: async (I) => {return abap.compare.ne(I.type, abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_field_type.get().field_group) && abap.compare.ne(I.type, abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_field_type.get().hidden);}})) { fs_ls_field_.assign(unique795); lv_value.clear(); lv_value.set((await io_form_data.get().get({iv_key: fs_ls_field_.get().name}))); if (abap.compare.eq(fs_ls_field_.get().condense, abap.builtin.abap_true)) { lv_value.set(abap.builtin.condense({val: lv_value, del: new abap.types.String().set(` `)})); } if (abap.compare.eq(fs_ls_field_.get().type, abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_field_type.get().checkbox)) { await ro_form_data.get().set({iv_key: fs_ls_field_.get().name, iv_val: abap.builtin.boolc(abap.compare.eq(lv_value, abap.CharacterFactory.get(2, 'on')))}); } else if ((abap.compare.eq(fs_ls_field_.get().type, abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_field_type.get().text) || abap.compare.eq(fs_ls_field_.get().type, abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_field_type.get().textarea)) && abap.compare.eq(fs_ls_field_.get().upper_case, abap.builtin.abap_true)) { await ro_form_data.get().set({iv_key: fs_ls_field_.get().name, iv_val: abap.builtin.to_upper({val: lv_value})}); } else if (abap.compare.eq(fs_ls_field_.get().type, abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_field_type.get().number)) { await ro_form_data.get().set({iv_key: fs_ls_field_.get().name, iv_val: abap.builtin.condense({val: lv_value, del: new abap.types.String().set(` `)})}); } else if (abap.compare.eq(fs_ls_field_.get().type, abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_field_type.get().table)) { lv_rows.set((await io_form_data.get().get({iv_key: new abap.types.String().set(`${abap.templateFormatting(fs_ls_field_.get().name)}-${abap.templateFormatting(abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_rows)}`)}))); const indexBackup1 = abap.builtin.sy.get().index.get(); const unique796 = lv_rows.get(); for (let unique797 = 0; unique797 < unique796; unique797++) { abap.builtin.sy.get().index.set(unique797 + 1); lv_row.set(abap.builtin.sy.get().index); const indexBackup2 = abap.builtin.sy.get().index.get(); const unique798 = abap.builtin.lines({val: fs_ls_field_.get().subitems}).get(); for (let unique799 = 0; unique799 < unique798; unique799++) { abap.builtin.sy.get().index.set(unique799 + 1); lv_value.set((await io_form_data.get().get({iv_key: new abap.types.String().set(`${abap.templateFormatting(fs_ls_field_.get().name)}-${abap.templateFormatting(lv_row)}-${abap.templateFormatting(abap.builtin.sy.get().index)}`)}))); await ro_form_data.get().set({iv_key: new abap.types.String().set(`${abap.templateFormatting(fs_ls_field_.get().name)}-${abap.templateFormatting(lv_row)}-${abap.templateFormatting(abap.builtin.sy.get().index)}`), iv_val: lv_value}); } abap.builtin.sy.get().index.set(indexBackup2); } abap.builtin.sy.get().index.set(indexBackup1); await ro_form_data.get().set({iv_key: new abap.types.String().set(`${abap.templateFormatting(fs_ls_field_.get().name)}-${abap.templateFormatting(abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_rows)}`), iv_val: new abap.types.String().set(`${abap.templateFormatting(lv_rows)}`)}); } else if (abap.compare.eq(fs_ls_field_.get().type, abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_field_type.get().textarea)) { abap.statements.replace({target: lv_value, all: true, with: abap.Classes['CL_ABAP_CHAR_UTILITIES'].newline, of: abap.Classes['CL_ABAP_CHAR_UTILITIES'].cr_lf}); lv_len.set(abap.operators.minus(abap.builtin.strlen({val: lv_value}),abap.IntegerFactory.get(2))); if (abap.compare.ge(lv_len, abap.IntegerFactory.get(0)) && abap.compare.eq(lv_value.getOffset({offset: lv_len, length: 1}), abap.Classes['CL_ABAP_CHAR_UTILITIES'].newline)) { lv_len.set(abap.operators.add(lv_len,abap.IntegerFactory.get(1))); lv_value.set(lv_value.getOffset({length: lv_len})); } await ro_form_data.get().set({iv_key: fs_ls_field_.get().name, iv_val: lv_value}); } else { await ro_form_data.get().set({iv_key: fs_ls_field_.get().name, iv_val: lv_value}); } } return ro_form_data; } async set_data(INPUT) { let io_form_data = INPUT?.io_form_data; if (io_form_data?.getQualifiedName === undefined || io_form_data.getQualifiedName() !== "ZCL_ABAPGIT_STRING_MAP") { io_form_data = undefined; } if (io_form_data === undefined) { io_form_data = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"}).set(INPUT.io_form_data); } this.#mo_form_data.set(io_form_data); } async validate(INPUT) { let ro_validation_log = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"}); let io_form_data = INPUT?.io_form_data; if (io_form_data?.getQualifiedName === undefined || io_form_data.getQualifiedName() !== "ZCL_ABAPGIT_STRING_MAP") { io_form_data = undefined; } if (io_form_data === undefined) { io_form_data = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_STRING_MAP", RTTIName: "\\CLASS=ZCL_ABAPGIT_STRING_MAP"}).set(INPUT.io_form_data); } let lt_fields = abap.types.TableFactory.construct(new abap.types.Structure({ "type": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-TYPE"}), "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-NAME"}), "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-LABEL"}), "hint": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-HINT"}), "dblclick": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-DBLCLICK"}), "click": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-CLICK"}), "placeholder": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-PLACEHOLDER"}), "required": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-REQUIRED"}), "upper_case": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "item_class": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ITEM_CLASS"}), "error": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ERROR"}), "default_value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-DEFAULT_VALUE"}), "side_action": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-SIDE_ACTION"}), "subitems": abap.types.TableFactory.construct(new abap.types.Structure({ "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_SUBITEM-LABEL"}), "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_SUBITEM-VALUE"}), "readonly": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_html_form=>ty_subitem", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_html_form=>ty_subitems"), "readonly": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "password": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "condense": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "min": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-MIN"}), "max": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-MAX"}), "rows": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ROWS"}), "cols": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-COLS"})}, "zif_abapgit_html_form=>ty_field", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"by_name","type":"SORTED","isUnique":true,"keyFields":["NAME"]}]}, "zif_abapgit_html_form=>ty_fields"); let lv_value = new abap.types.String({qualifiedName: "STRING"}); let lv_number = new abap.types.Packed({length: 16, decimals: 0}); let fs_ls_field_ = new abap.types.FieldSymbol(new abap.types.Structure({ "type": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-TYPE"}), "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-NAME"}), "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-LABEL"}), "hint": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-HINT"}), "dblclick": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-DBLCLICK"}), "click": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-CLICK"}), "placeholder": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-PLACEHOLDER"}), "required": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-REQUIRED"}), "upper_case": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "item_class": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ITEM_CLASS"}), "error": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ERROR"}), "default_value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-DEFAULT_VALUE"}), "side_action": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-SIDE_ACTION"}), "subitems": abap.types.TableFactory.construct(new abap.types.Structure({ "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_SUBITEM-LABEL"}), "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_SUBITEM-VALUE"}), "readonly": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_html_form=>ty_subitem", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_html_form=>ty_subitems"), "readonly": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "password": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "condense": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "min": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-MIN"}), "max": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-MAX"}), "rows": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-ROWS"}), "cols": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_HTML_FORM=>TY_FIELD-COLS"})}, "zif_abapgit_html_form=>ty_field", undefined, {}, {})); ro_validation_log.set(await (new abap.Classes['ZCL_ABAPGIT_STRING_MAP']()).constructor_()); lt_fields.set((await this.#mo_form.get().get_fields())); for await (const unique800 of abap.statements.loop(lt_fields)) { fs_ls_field_.assign(unique800); lv_value.set((await io_form_data.get().get({iv_key: fs_ls_field_.get().name}))); if (abap.compare.eq(fs_ls_field_.get().condense, abap.builtin.abap_true)) { lv_value.set(abap.builtin.condense({val: lv_value, del: new abap.types.String().set(` `)})); } if (abap.compare.initial(fs_ls_field_.get().required) === false && abap.compare.initial(lv_value)) { await ro_validation_log.get().set({iv_key: fs_ls_field_.get().name, iv_val: new abap.types.String().set(`${abap.templateFormatting(fs_ls_field_.get().label)} cannot be empty`)}); } let unique801 = fs_ls_field_.get().type; if (abap.compare.eq(unique801, abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_field_type.get().text)) { if (abap.compare.eq(fs_ls_field_.get().min, fs_ls_field_.get().max) && abap.compare.ne(abap.builtin.strlen({val: lv_value}), fs_ls_field_.get().min)) { await ro_validation_log.get().set({iv_key: fs_ls_field_.get().name, iv_val: new abap.types.String().set(`${abap.templateFormatting(fs_ls_field_.get().label)} must be exactly ${abap.templateFormatting(fs_ls_field_.get().min)} characters long`)}); } else { if (abap.compare.ne(fs_ls_field_.get().min, abap.Classes['CL_ABAP_MATH'].min_int4) && abap.compare.lt(abap.builtin.strlen({val: lv_value}), fs_ls_field_.get().min)) { await ro_validation_log.get().set({iv_key: fs_ls_field_.get().name, iv_val: new abap.types.String().set(`${abap.templateFormatting(fs_ls_field_.get().label)} must not be shorter than ${abap.templateFormatting(fs_ls_field_.get().min)} characters`)}); } if (abap.compare.ne(fs_ls_field_.get().max, abap.Classes['CL_ABAP_MATH'].max_int4) && abap.compare.gt(abap.builtin.strlen({val: lv_value}), fs_ls_field_.get().max)) { await ro_validation_log.get().set({iv_key: fs_ls_field_.get().name, iv_val: new abap.types.String().set(`${abap.templateFormatting(fs_ls_field_.get().label)} must not be longer than ${abap.templateFormatting(fs_ls_field_.get().max)} characters`)}); } } } else if (abap.compare.eq(unique801, abap.Classes['ZIF_ABAPGIT_HTML_FORM'].zif_abapgit_html_form$c_field_type.get().number)) { try { lv_number.set(lv_value); } catch (e) { if ((abap.Classes['CX_ROOT'] && e instanceof abap.Classes['CX_ROOT'])) { await ro_validation_log.get().set({iv_key: fs_ls_field_.get().name, iv_val: new abap.types.String().set(`${abap.templateFormatting(fs_ls_field_.get().label)} is not numeric`)}); continue; } else { throw e; } } if (abap.compare.ne(fs_ls_field_.get().min, abap.Classes['CL_ABAP_MATH'].min_int4) && abap.compare.lt(lv_number, fs_ls_field_.get().min)) { await ro_validation_log.get().set({iv_key: fs_ls_field_.get().name, iv_val: new abap.types.String().set(`${abap.templateFormatting(fs_ls_field_.get().label)} must not be lower than ${abap.templateFormatting(fs_ls_field_.get().min)}`)}); } if (abap.compare.ne(fs_ls_field_.get().max, abap.Classes['CL_ABAP_MATH'].max_int4) && abap.compare.gt(lv_number, fs_ls_field_.get().max)) { await ro_validation_log.get().set({iv_key: fs_ls_field_.get().name, iv_val: new abap.types.String().set(`${abap.templateFormatting(fs_ls_field_.get().label)} must not be higher than ${abap.templateFormatting(fs_ls_field_.get().max)}`)}); } } } return ro_validation_log; } } abap.Classes['ZCL_ABAPGIT_HTML_FORM_UTILS'] = zcl_abapgit_html_form_utils; export {zcl_abapgit_html_form_utils}; |