mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 02:58:20 +08:00
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
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:
parent
b1e09c8f16
commit
348afab163
|
@ -37,7 +37,7 @@ function formatAsAbapClass(content, className, isSpecialFile) {
|
||||||
line = line.replace(/\s+$/, ''); // Remove trailing spaces
|
line = line.replace(/\s+$/, ''); // Remove trailing spaces
|
||||||
let formattedLine = ` \`${line.replace(/`/g, '``')}\` && ${isSpecialFile ? '' : '|\\n| &&'}`;
|
let formattedLine = ` \`${line.replace(/`/g, '``')}\` && ${isSpecialFile ? '' : '|\\n| &&'}`;
|
||||||
formattedLine = formattedLine.replace(/&&\s+$/, '&&'); // Remove trailing spaces after &&
|
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}\n |\\n|.\n result = result &&`;
|
||||||
}
|
}
|
||||||
return formattedLine;
|
return formattedLine;
|
||||||
|
|
|
@ -418,6 +418,8 @@ CLASS z2ui5_cl_app_app_js IMPLEMENTATION.
|
||||||
` type: "string",` && |\n| &&
|
` type: "string",` && |\n| &&
|
||||||
` defaultValue: ""` && |\n| &&
|
` defaultValue: ""` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
|
|\n|.
|
||||||
|
result = result &&
|
||||||
` altitudeAccuracy: {` && |\n| &&
|
` altitudeAccuracy: {` && |\n| &&
|
||||||
` type: "string",` && |\n| &&
|
` type: "string",` && |\n| &&
|
||||||
` defaultValue: ""` && |\n| &&
|
` defaultValue: ""` && |\n| &&
|
||||||
|
@ -518,8 +520,6 @@ CLASS z2ui5_cl_app_app_js IMPLEMENTATION.
|
||||||
` defaultValue: "Upload"` && |\n| &&
|
` defaultValue: "Upload"` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` enabled: {` && |\n| &&
|
` enabled: {` && |\n| &&
|
||||||
|\n|.
|
|
||||||
result = result &&
|
|
||||||
` type: "boolean",` && |\n| &&
|
` type: "boolean",` && |\n| &&
|
||||||
` defaultValue: true` && |\n| &&
|
` defaultValue: true` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
|
@ -820,6 +820,8 @@ CLASS z2ui5_cl_app_app_js IMPLEMENTATION.
|
||||||
` });` && |\n| &&
|
` });` && |\n| &&
|
||||||
` return oRangeDataNew;` && |\n| &&
|
` return oRangeDataNew;` && |\n| &&
|
||||||
` }));` && |\n| &&
|
` }));` && |\n| &&
|
||||||
|
|\n|.
|
||||||
|
result = result &&
|
||||||
` //we need to set token text explicitly, as setRangeData does no recalculation` && |\n| &&
|
` //we need to set token text explicitly, as setRangeData does no recalculation` && |\n| &&
|
||||||
` input.getTokens().forEach((token, index) => {` && |\n| &&
|
` input.getTokens().forEach((token, index) => {` && |\n| &&
|
||||||
` const sTokenText = aRangeData[index].TOKENTEXT;` && |\n| &&
|
` const sTokenText = aRangeData[index].TOKENTEXT;` && |\n| &&
|
||||||
|
@ -1020,8 +1022,6 @@ CLASS z2ui5_cl_app_app_js IMPLEMENTATION.
|
||||||
` DateCreateObject: (s) => new Date(s),` && |\n| &&
|
` DateCreateObject: (s) => new Date(s),` && |\n| &&
|
||||||
` // DateAbapTimestampToDate: (sTimestamp) => new sap.gantt.misc.Format.abapTimestampToDate(sTimestamp), commented for UI5 2.x compatibility` && |\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| &&
|
` 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| &&
|
` 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| &&
|
||||||
`}` && |\n| &&
|
`}` && |\n| &&
|
||||||
|
|
|
@ -418,6 +418,8 @@ CLASS z2ui5_cl_app_view1_js IMPLEMENTATION.
|
||||||
` break;` && |\n| &&
|
` break;` && |\n| &&
|
||||||
` case 'TRIGGER_SMS':` && |\n| &&
|
` case 'TRIGGER_SMS':` && |\n| &&
|
||||||
` URLHelper.triggerSms(params);` && |\n| &&
|
` URLHelper.triggerSms(params);` && |\n| &&
|
||||||
|
|\n|.
|
||||||
|
result = result &&
|
||||||
` break;` && |\n| &&
|
` break;` && |\n| &&
|
||||||
` case 'TRIGGER_TEL':` && |\n| &&
|
` case 'TRIGGER_TEL':` && |\n| &&
|
||||||
` URLHelper.triggerTel(params);` && |\n| &&
|
` URLHelper.triggerTel(params);` && |\n| &&
|
||||||
|
@ -518,8 +520,6 @@ CLASS z2ui5_cl_app_view1_js IMPLEMENTATION.
|
||||||
` if (params == undefined) {` && |\n| &&
|
` if (params == undefined) {` && |\n| &&
|
||||||
` return;` && |\n| &&
|
` return;` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
|\n|.
|
|
||||||
result = result &&
|
|
||||||
` if (params[msgType]?.TEXT !== undefined) {` && |\n| &&
|
` if (params[msgType]?.TEXT !== undefined) {` && |\n| &&
|
||||||
` if (msgType === 'S_MSG_TOAST') {` && |\n| &&
|
` if (msgType === 'S_MSG_TOAST') {` && |\n| &&
|
||||||
` MessageToast.show(params[msgType].TEXT, {` && |\n| &&
|
` MessageToast.show(params[msgType].TEXT, {` && |\n| &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user