@sap-ux/adp-tooling 0.18.130 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts
CHANGED
|
@@ -744,7 +744,7 @@ export interface CloudCustomTaskConfig {
|
|
|
744
744
|
target: AbapTarget;
|
|
745
745
|
}
|
|
746
746
|
export interface InboundChangeContentAddInboundId {
|
|
747
|
-
|
|
747
|
+
inbounds: {
|
|
748
748
|
[inboundId: string]: AddInboundModel;
|
|
749
749
|
};
|
|
750
750
|
}
|
|
@@ -769,26 +769,6 @@ export interface InboundParameters {
|
|
|
769
769
|
'sap-appvar-id'?: object;
|
|
770
770
|
'sap-priority'?: object;
|
|
771
771
|
}
|
|
772
|
-
export interface InboundChange {
|
|
773
|
-
inbound: {
|
|
774
|
-
[key: string]: {
|
|
775
|
-
/** Represent business entities that reflect a specific scenario. */
|
|
776
|
-
semanticObject: string;
|
|
777
|
-
/** Operations which can be performed on a semantic object. */
|
|
778
|
-
action: string;
|
|
779
|
-
/** Icon associated with the inbound navigation data. */
|
|
780
|
-
icon: string;
|
|
781
|
-
/** Title associated with the inbound navigation data. */
|
|
782
|
-
title: string;
|
|
783
|
-
/** Subtitle associated with the inbound navigation data. */
|
|
784
|
-
subTitle: string;
|
|
785
|
-
signature: {
|
|
786
|
-
parameters: object | string;
|
|
787
|
-
additionalParameters: 'allowed';
|
|
788
|
-
};
|
|
789
|
-
};
|
|
790
|
-
};
|
|
791
|
-
}
|
|
792
772
|
/**
|
|
793
773
|
* Route structure from xs-app.json
|
|
794
774
|
*/
|
|
@@ -29,7 +29,10 @@ export declare function getFlpI18nKeys(config: InternalInboundNavigation, appId:
|
|
|
29
29
|
*/
|
|
30
30
|
export declare function updateI18n(basePath: string, appId: string, configs: InternalInboundNavigation[], fs: Editor): Promise<void>;
|
|
31
31
|
/**
|
|
32
|
-
* Removes elements with changeType 'appdescr_app_addNewInbound', 'appdescr_app_removeAllInboundsExceptOne'
|
|
32
|
+
* Removes elements with changeType 'appdescr_app_addNewInbound', 'appdescr_app_removeAllInboundsExceptOne',
|
|
33
|
+
* 'appdescr_app_changeInbound' and 'appdescr_app_setInbounds' from the given array.
|
|
34
|
+
* Note: 'appdescr_app_addNewInbound', 'appdescr_app_removeAllInboundsExceptOne' and 'appdescr_app_changeInbound' are kept for
|
|
35
|
+
* backwards compatibility to clean up variant files written by older versions of this tool.
|
|
33
36
|
*
|
|
34
37
|
* @param content The array of manifest change objects.
|
|
35
38
|
* @returns A new array with the specified elements removed.
|
|
@@ -81,7 +81,10 @@ async function updateI18n(basePath, appId, configs, fs) {
|
|
|
81
81
|
await (0, i18n_1.removeAndCreateI18nEntries)(i18nPath, newEntries, keysToRemove, basePath, fs);
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
|
-
* Removes elements with changeType 'appdescr_app_addNewInbound', 'appdescr_app_removeAllInboundsExceptOne'
|
|
84
|
+
* Removes elements with changeType 'appdescr_app_addNewInbound', 'appdescr_app_removeAllInboundsExceptOne',
|
|
85
|
+
* 'appdescr_app_changeInbound' and 'appdescr_app_setInbounds' from the given array.
|
|
86
|
+
* Note: 'appdescr_app_addNewInbound', 'appdescr_app_removeAllInboundsExceptOne' and 'appdescr_app_changeInbound' are kept for
|
|
87
|
+
* backwards compatibility to clean up variant files written by older versions of this tool.
|
|
85
88
|
*
|
|
86
89
|
* @param content The array of manifest change objects.
|
|
87
90
|
* @returns A new array with the specified elements removed.
|
|
@@ -89,6 +92,7 @@ async function updateI18n(basePath, appId, configs, fs) {
|
|
|
89
92
|
function removeInboundChangeTypes(content) {
|
|
90
93
|
return content.filter((item) => item.changeType !== 'appdescr_app_addNewInbound' &&
|
|
91
94
|
item.changeType !== 'appdescr_app_changeInbound' &&
|
|
92
|
-
item.changeType !== 'appdescr_app_removeAllInboundsExceptOne'
|
|
95
|
+
item.changeType !== 'appdescr_app_removeAllInboundsExceptOne' &&
|
|
96
|
+
item.changeType !== 'appdescr_app_setInbounds');
|
|
93
97
|
}
|
|
94
98
|
//# sourceMappingURL=inbound-navigation.js.map
|
package/dist/writer/options.js
CHANGED
|
@@ -253,7 +253,7 @@ function getAdpCloudCustomTasks(config) {
|
|
|
253
253
|
function getInboundChangeContentWithNewInboundID(flpConfiguration, appId) {
|
|
254
254
|
const parameters = flpConfiguration?.additionalParameters ? JSON.parse(flpConfiguration.additionalParameters) : {};
|
|
255
255
|
const content = {
|
|
256
|
-
|
|
256
|
+
inbounds: {
|
|
257
257
|
[flpConfiguration.inboundId]: {
|
|
258
258
|
action: flpConfiguration.action,
|
|
259
259
|
semanticObject: flpConfiguration.semanticObject,
|
|
@@ -267,7 +267,7 @@ function getInboundChangeContentWithNewInboundID(flpConfiguration, appId) {
|
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
if (flpConfiguration.subTitle) {
|
|
270
|
-
content.
|
|
270
|
+
content.inbounds[flpConfiguration.inboundId].subTitle =
|
|
271
271
|
`{{${appId}_sap.app.crossNavigation.inbounds.${flpConfiguration.inboundId}.subTitle}}`;
|
|
272
272
|
}
|
|
273
273
|
return content;
|
|
@@ -280,29 +280,17 @@ function getInboundChangeContentWithNewInboundID(flpConfiguration, appId) {
|
|
|
280
280
|
* @param manifestChangeContent Application variant change content
|
|
281
281
|
*/
|
|
282
282
|
function enhanceManifestChangeContentWithFlpConfig(flpConfigurations, appId, manifestChangeContent = []) {
|
|
283
|
-
|
|
283
|
+
flpConfigurations.forEach((flpConfig) => {
|
|
284
284
|
const inboundChangeContent = getInboundChangeContentWithNewInboundID(flpConfig, appId);
|
|
285
285
|
const addInboundChange = {
|
|
286
|
-
changeType: '
|
|
286
|
+
changeType: 'appdescr_app_setInbounds',
|
|
287
287
|
content: inboundChangeContent,
|
|
288
288
|
texts: {
|
|
289
289
|
'i18n': 'i18n/i18n.properties'
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
manifestChangeContent.push(addInboundChange);
|
|
293
|
-
|
|
294
|
-
// This is implemented this way to avoid issues with the merged on ABAP side
|
|
295
|
-
if (index === 0) {
|
|
296
|
-
const removeOtherInboundsChange = {
|
|
297
|
-
changeType: 'appdescr_app_removeAllInboundsExceptOne',
|
|
298
|
-
content: {
|
|
299
|
-
'inboundId': flpConfig.inboundId
|
|
300
|
-
},
|
|
301
|
-
texts: {}
|
|
302
|
-
};
|
|
303
|
-
manifestChangeContent.push(removeOtherInboundsChange);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
293
|
+
});
|
|
306
294
|
}
|
|
307
295
|
/**
|
|
308
296
|
* Generate custom configuration required for the ui5.yaml.
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.19.2",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"!dist/**/*.map"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@sap-devx/yeoman-ui-types": "1.
|
|
26
|
+
"@sap-devx/yeoman-ui-types": "1.25.0",
|
|
27
27
|
"@sap/cf-tools": "3.3.0",
|
|
28
28
|
"adm-zip": "0.5.16",
|
|
29
29
|
"axios": "1.16.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"prompts": "2.4.2",
|
|
37
37
|
"sanitize-filename": "1.6.4",
|
|
38
38
|
"uuid": "11.1.1",
|
|
39
|
-
"@sap-ux/axios-extension": "1.
|
|
40
|
-
"@sap-ux/btp-utils": "1.
|
|
41
|
-
"@sap-ux/i18n": "0.
|
|
42
|
-
"@sap-ux/inquirer-common": "0.
|
|
43
|
-
"@sap-ux/logger": "0.
|
|
44
|
-
"@sap-ux/nodejs-utils": "0.
|
|
45
|
-
"@sap-ux/odata-service-writer": "0.
|
|
46
|
-
"@sap-ux/project-access": "1.
|
|
47
|
-
"@sap-ux/project-input-validator": "0.
|
|
48
|
-
"@sap-ux/store": "1.
|
|
49
|
-
"@sap-ux/system-access": "0.
|
|
50
|
-
"@sap-ux/ui5-config": "0.
|
|
51
|
-
"@sap-ux/ui5-info": "0.
|
|
39
|
+
"@sap-ux/axios-extension": "1.26.0",
|
|
40
|
+
"@sap-ux/btp-utils": "1.2.0",
|
|
41
|
+
"@sap-ux/i18n": "0.4.0",
|
|
42
|
+
"@sap-ux/inquirer-common": "0.13.0",
|
|
43
|
+
"@sap-ux/logger": "0.9.0",
|
|
44
|
+
"@sap-ux/nodejs-utils": "0.3.0",
|
|
45
|
+
"@sap-ux/odata-service-writer": "0.32.0",
|
|
46
|
+
"@sap-ux/project-access": "1.37.0",
|
|
47
|
+
"@sap-ux/project-input-validator": "0.7.0",
|
|
48
|
+
"@sap-ux/store": "1.6.0",
|
|
49
|
+
"@sap-ux/system-access": "0.8.0",
|
|
50
|
+
"@sap-ux/ui5-config": "0.31.0",
|
|
51
|
+
"@sap-ux/ui5-info": "0.14.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/adm-zip": "0.5.8",
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
"nock": "14.0.11",
|
|
69
69
|
"rimraf": "6.1.3",
|
|
70
70
|
"supertest": "7.2.2",
|
|
71
|
-
"@sap-ux/store": "1.
|
|
71
|
+
"@sap-ux/store": "1.6.0"
|
|
72
72
|
},
|
|
73
73
|
"engines": {
|
|
74
|
-
"node": ">=
|
|
74
|
+
"node": ">=22.x"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"build": "tsc --build",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"build": "ui5.js build --verbose --include-task generateCachebusterInfo"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@sap-ux/create": "
|
|
24
|
+
"@sap-ux/create": "~0",
|
|
25
25
|
"@sap/ui5-builder-webide-extension": "^1.1.9",
|
|
26
|
-
"@sap-ux/backend-proxy-middleware-cf": "
|
|
26
|
+
"@sap-ux/backend-proxy-middleware-cf": "~0",
|
|
27
27
|
"@sapui5/ts-types": "^1.141.2",
|
|
28
28
|
"@sap/ux-ui5-tooling": "1",
|
|
29
29
|
"@ui5/cli": "^4.0.33",
|