@sap-ux/adp-tooling 0.14.37 → 0.14.39
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/base/helper.js +31 -2
- package/dist/i18n.d.ts +2 -1
- package/dist/i18n.js +4 -2
- package/package.json +9 -9
package/dist/base/helper.js
CHANGED
|
@@ -118,17 +118,46 @@ function filterAndMapInboundsToManifest(inbounds) {
|
|
|
118
118
|
if (!inbounds || inbounds.length === 0) {
|
|
119
119
|
return undefined;
|
|
120
120
|
}
|
|
121
|
-
|
|
121
|
+
const filteredInbounds = inbounds.reduce((acc, inbound) => {
|
|
122
122
|
// Skip if hideLauncher is not false
|
|
123
123
|
if (!inbound?.content || inbound.content.hideLauncher !== false) {
|
|
124
124
|
return acc;
|
|
125
125
|
}
|
|
126
|
-
const { semanticObject, action } = inbound.content;
|
|
126
|
+
const { semanticObject, action, signature } = inbound.content;
|
|
127
127
|
if (semanticObject && action) {
|
|
128
128
|
const key = `${semanticObject}-${action}`;
|
|
129
|
+
// Temporary filtration of parameters to avoid issues with merged manifest until release of ABAP Platform Cloud 2508
|
|
130
|
+
if (signature?.parameters) {
|
|
131
|
+
filterIboundsParameters(signature);
|
|
132
|
+
}
|
|
129
133
|
acc[key] = inbound.content;
|
|
130
134
|
}
|
|
131
135
|
return acc;
|
|
132
136
|
}, {});
|
|
137
|
+
return Object.keys(filteredInbounds).length === 0 ? undefined : filteredInbounds;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Filters parameters of the inbound signature to remove invalid or incomplete entries.
|
|
141
|
+
*
|
|
142
|
+
* @param {ManifestNamespace.SignatureDef} inboundSinature - The inbound signature definition to filter.
|
|
143
|
+
*/
|
|
144
|
+
function filterIboundsParameters(inboundSinature) {
|
|
145
|
+
Object.keys(inboundSinature.parameters).forEach((paramKey) => {
|
|
146
|
+
const param = inboundSinature.parameters[paramKey];
|
|
147
|
+
if (param.defaultValue && (!param.defaultValue.format || !param.defaultValue.value)) {
|
|
148
|
+
delete inboundSinature.parameters[paramKey];
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
if (param.filter && !param.filter.format) {
|
|
152
|
+
delete inboundSinature.parameters[paramKey].filter;
|
|
153
|
+
}
|
|
154
|
+
if (param.launcherValue) {
|
|
155
|
+
Object.keys(param.launcherValue).forEach((launcherKey) => {
|
|
156
|
+
if (launcherKey !== 'value') {
|
|
157
|
+
delete param.launcherValue[launcherKey];
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
});
|
|
133
162
|
}
|
|
134
163
|
//# sourceMappingURL=helper.js.map
|
package/dist/i18n.d.ts
CHANGED
package/dist/i18n.js
CHANGED
|
@@ -3,18 +3,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.i18n = void 0;
|
|
6
7
|
exports.initI18n = initI18n;
|
|
7
8
|
exports.t = t;
|
|
8
9
|
const i18next_1 = __importDefault(require("i18next"));
|
|
9
10
|
const adp_tooling_i18n_json_1 = __importDefault(require("./translations/adp-tooling.i18n.json"));
|
|
10
11
|
const adpI18nNamespace = 'adp-tooling';
|
|
12
|
+
exports.i18n = i18next_1.default.createInstance();
|
|
11
13
|
/**
|
|
12
14
|
* Initialize i18next with the translations for this module.
|
|
13
15
|
*
|
|
14
16
|
* @returns {Promise<void>} A promise that resolves when the i18n initialization is completed.
|
|
15
17
|
*/
|
|
16
18
|
async function initI18n() {
|
|
17
|
-
await
|
|
19
|
+
await exports.i18n.init({
|
|
18
20
|
resources: {
|
|
19
21
|
en: {
|
|
20
22
|
[adpI18nNamespace]: adp_tooling_i18n_json_1.default
|
|
@@ -37,7 +39,7 @@ function t(key, options) {
|
|
|
37
39
|
if (!options?.ns) {
|
|
38
40
|
options = Object.assign(options ?? {}, { ns: adpI18nNamespace });
|
|
39
41
|
}
|
|
40
|
-
return
|
|
42
|
+
return exports.i18n.t(key, options);
|
|
41
43
|
}
|
|
42
44
|
initI18n().catch(() => {
|
|
43
45
|
// Needed for lint
|
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.14.
|
|
12
|
+
"version": "0.14.39",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@sap-devx/yeoman-ui-types": "1.16.9",
|
|
27
27
|
"adm-zip": "0.5.10",
|
|
28
28
|
"ejs": "3.1.10",
|
|
29
|
-
"i18next": "
|
|
29
|
+
"i18next": "25.3.0",
|
|
30
30
|
"inquirer": "8.2.6",
|
|
31
31
|
"mem-fs": "2.1.0",
|
|
32
32
|
"mem-fs-editor": "9.4.0",
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
"uuid": "10.0.0",
|
|
36
36
|
"@sap-ux/axios-extension": "1.22.3",
|
|
37
37
|
"@sap-ux/btp-utils": "1.1.0",
|
|
38
|
-
"@sap-ux/inquirer-common": "0.7.
|
|
39
|
-
"@sap-ux/project-access": "1.30.6",
|
|
38
|
+
"@sap-ux/inquirer-common": "0.7.21",
|
|
40
39
|
"@sap-ux/logger": "0.7.0",
|
|
41
|
-
"@sap-ux/project-
|
|
40
|
+
"@sap-ux/project-access": "1.30.6",
|
|
41
|
+
"@sap-ux/project-input-validator": "0.6.10",
|
|
42
|
+
"@sap-ux/system-access": "0.6.10",
|
|
42
43
|
"@sap-ux/ui5-config": "0.29.0",
|
|
43
|
-
"@sap-ux/system-access": "0.6.9",
|
|
44
44
|
"@sap-ux/ui5-info": "0.12.0",
|
|
45
|
+
"@sap-ux/odata-service-writer": "0.27.11",
|
|
45
46
|
"@sap-ux/nodejs-utils": "0.2.1",
|
|
46
|
-
"@sap-ux/odata-service-writer": "0.27.10",
|
|
47
47
|
"@sap-ux/i18n": "0.3.1",
|
|
48
|
-
"@sap-ux/store": "1.1.
|
|
48
|
+
"@sap-ux/store": "1.1.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/adm-zip": "0.5.5",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"rimraf": "5.0.5",
|
|
64
64
|
"supertest": "6.3.3",
|
|
65
65
|
"cross-env": "^7.0.3",
|
|
66
|
-
"@sap-ux/store": "1.1.
|
|
66
|
+
"@sap-ux/store": "1.1.2"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=20.x"
|