update (#1692)
Some checks failed
build_downport / build_downport (push) Has been cancelled
build_frontend_classic / build_frontend_classic (push) Has been cancelled
build_frontend_cloud / build_frontend_cloud (push) Has been cancelled
js_transform / Code-Cleanup (push) Has been cancelled
ui5lint / test (push) Has been cancelled

This commit is contained in:
oblomov-dev 2024-12-30 19:27:09 +01:00 committed by GitHub
parent b1e09c8f16
commit 348afab163
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -37,7 +37,7 @@ function formatAsAbapClass(content, className, isSpecialFile) {
line = line.replace(/\s+$/, ''); // Remove trailing spaces
let formattedLine = ` \`${line.replace(/`/g, '``')}\` && ${isSpecialFile ? '' : '|\\n| &&'}`;
formattedLine = formattedLine.replace(/&&\s+$/, '&&'); // Remove trailing spaces after &&
if ((index + 1) % 500 === 0) {
if ((index + 1) % 400 === 0) {
return `${formattedLine}\n |\\n|.\n result = result &&`;
}
return formattedLine;

View File

@ -418,6 +418,8 @@ CLASS z2ui5_cl_app_app_js IMPLEMENTATION.
` type: "string",` && |\n| &&
` defaultValue: ""` && |\n| &&
` },` && |\n| &&
|\n|.
result = result &&
` altitudeAccuracy: {` && |\n| &&
` type: "string",` && |\n| &&
` defaultValue: ""` && |\n| &&
@ -518,8 +520,6 @@ CLASS z2ui5_cl_app_app_js IMPLEMENTATION.
` defaultValue: "Upload"` && |\n| &&
` },` && |\n| &&
` enabled: {` && |\n| &&
|\n|.
result = result &&
` type: "boolean",` && |\n| &&
` defaultValue: true` && |\n| &&
` },` && |\n| &&
@ -820,6 +820,8 @@ CLASS z2ui5_cl_app_app_js IMPLEMENTATION.
` });` && |\n| &&
` return oRangeDataNew;` && |\n| &&
` }));` && |\n| &&
|\n|.
result = result &&
` //we need to set token text explicitly, as setRangeData does no recalculation` && |\n| &&
` input.getTokens().forEach((token, index) => {` && |\n| &&
` const sTokenText = aRangeData[index].TOKENTEXT;` && |\n| &&
@ -1020,8 +1022,6 @@ CLASS z2ui5_cl_app_app_js IMPLEMENTATION.
` DateCreateObject: (s) => new Date(s),` && |\n| &&
` // DateAbapTimestampToDate: (sTimestamp) => new sap.gantt.misc.Format.abapTimestampToDate(sTimestamp), commented for UI5 2.x compatibility` && |\n| &&
` DateAbapDateToDateObject: (d) => new Date(d.slice(0, 4), parseInt(d.slice(4, 6)) - 1, d.slice(6, 8)),` && |\n| &&
|\n|.
result = result &&
` DateAbapDateTimeToDateObject: (d, t = '000000') => new Date(d.slice(0, 4), parseInt(d.slice(4, 6)) - 1, d.slice(6, 8), t.slice(0, 2), t.slice(2, 4), t.slice(4, 6)),` && |\n| &&
` };` && |\n| &&
`}` && |\n| &&

View File

@ -418,6 +418,8 @@ CLASS z2ui5_cl_app_view1_js IMPLEMENTATION.
` break;` && |\n| &&
` case 'TRIGGER_SMS':` && |\n| &&
` URLHelper.triggerSms(params);` && |\n| &&
|\n|.
result = result &&
` break;` && |\n| &&
` case 'TRIGGER_TEL':` && |\n| &&
` URLHelper.triggerTel(params);` && |\n| &&
@ -518,8 +520,6 @@ CLASS z2ui5_cl_app_view1_js IMPLEMENTATION.
` if (params == undefined) {` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
|\n|.
result = result &&
` if (params[msgType]?.TEXT !== undefined) {` && |\n| &&
` if (msgType === 'S_MSG_TOAST') {` && |\n| &&
` MessageToast.show(params[msgType].TEXT, {` && |\n| &&