@sap-ux/generator-adp 0.5.2 → 0.5.4
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.
|
@@ -51,6 +51,10 @@ export declare class ConfigPrompter {
|
|
|
51
51
|
* Error message to be shown in the confirm extension project prompt.
|
|
52
52
|
*/
|
|
53
53
|
private appValidationErrorMessage;
|
|
54
|
+
/**
|
|
55
|
+
* System additional message.
|
|
56
|
+
*/
|
|
57
|
+
private systemAdditionalMessage;
|
|
54
58
|
/**
|
|
55
59
|
* Indicates whether views are loaded synchronously.
|
|
56
60
|
*/
|
|
@@ -59,6 +59,10 @@ class ConfigPrompter {
|
|
|
59
59
|
* Error message to be shown in the confirm extension project prompt.
|
|
60
60
|
*/
|
|
61
61
|
appValidationErrorMessage;
|
|
62
|
+
/**
|
|
63
|
+
* System additional message.
|
|
64
|
+
*/
|
|
65
|
+
systemAdditionalMessage;
|
|
62
66
|
/**
|
|
63
67
|
* Indicates whether views are loaded synchronously.
|
|
64
68
|
*/
|
|
@@ -212,7 +216,10 @@ class ConfigPrompter {
|
|
|
212
216
|
},
|
|
213
217
|
default: '',
|
|
214
218
|
validate: async (value, answers) => await this.validateSystem(value, answers),
|
|
215
|
-
additionalMessages: () =>
|
|
219
|
+
additionalMessages: () => {
|
|
220
|
+
this.systemAdditionalMessage = (0, additional_messages_1.getSystemAdditionalMessages)(this.flexUISystem, this.isCloud);
|
|
221
|
+
return this.systemAdditionalMessage;
|
|
222
|
+
}
|
|
216
223
|
};
|
|
217
224
|
}
|
|
218
225
|
/**
|
|
@@ -275,7 +282,13 @@ class ConfigPrompter {
|
|
|
275
282
|
},
|
|
276
283
|
validate: async (value, answers) => await this.validatePassword(value, answers),
|
|
277
284
|
when: (answers) => (0, conditions_1.showCredentialQuestion)(answers, this.isAuthRequired),
|
|
278
|
-
additionalMessages: () =>
|
|
285
|
+
additionalMessages: () => {
|
|
286
|
+
if (!this.systemAdditionalMessage) {
|
|
287
|
+
this.systemAdditionalMessage = (0, additional_messages_1.getSystemAdditionalMessages)(this.flexUISystem, this.isCloud);
|
|
288
|
+
return this.systemAdditionalMessage;
|
|
289
|
+
}
|
|
290
|
+
return undefined;
|
|
291
|
+
}
|
|
279
292
|
};
|
|
280
293
|
}
|
|
281
294
|
/**
|
|
@@ -485,6 +498,7 @@ class ConfigPrompter {
|
|
|
485
498
|
try {
|
|
486
499
|
this.targetApps = [];
|
|
487
500
|
this.flexUISystem = undefined;
|
|
501
|
+
this.isCloudProject = undefined;
|
|
488
502
|
this.abapProvider = await (0, adp_tooling_1.getConfiguredProvider)(options, this.logger);
|
|
489
503
|
this.isAuthRequired = await this.systemLookup.getSystemRequiresAuth(system);
|
|
490
504
|
if (!this.isAuthRequired) {
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
"projectAttributesName": "Project Attributes",
|
|
6
6
|
"projectAttributesDescr": "Configure the main project attributes.",
|
|
7
7
|
"flpConfigName": "SAP Fiori Launchpad Configuration",
|
|
8
|
-
"tileSettingsName": "SAP Fiori Launchpad Configuration - Tile Settings
|
|
8
|
+
"tileSettingsName": "SAP Fiori Launchpad Configuration - Tile Settings",
|
|
9
|
+
"tileSettingsDescr": "Configure SAP Fiori Launchpad settings - {{projectName}}",
|
|
9
10
|
"deployConfigName": "Deployment Configuration",
|
|
10
11
|
"deployConfigDescr": "Configure deployment settings.",
|
|
11
12
|
"addComponentUsagesName": "Add SAPUI5 Component Usages",
|
|
@@ -63,8 +63,8 @@ function getFlpPages(showTileSettingsPage, projectName) {
|
|
|
63
63
|
];
|
|
64
64
|
if (showTileSettingsPage) {
|
|
65
65
|
pages.unshift({
|
|
66
|
-
name: (0, i18n_1.t)('yuiNavSteps.tileSettingsName'
|
|
67
|
-
description: ''
|
|
66
|
+
name: (0, i18n_1.t)('yuiNavSteps.tileSettingsName'),
|
|
67
|
+
description: (0, i18n_1.t)('yuiNavSteps.tileSettingsDescr', { projectName })
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
return pages;
|
|
@@ -118,10 +118,13 @@ function updateWizardSteps(prompts, step, insertAfter = '', shouldAdd = true) {
|
|
|
118
118
|
const targetIdx = afterIdx === -1 ? pages.length : afterIdx + 1;
|
|
119
119
|
// Page already there → move it
|
|
120
120
|
if (existingIdx !== -1) {
|
|
121
|
+
// Update step description
|
|
122
|
+
const existingStep = pages[existingIdx];
|
|
123
|
+
existingStep.description = step.description;
|
|
121
124
|
if (existingIdx === targetIdx) {
|
|
122
125
|
return;
|
|
123
126
|
}
|
|
124
|
-
|
|
127
|
+
pages.splice(existingIdx, 1);
|
|
125
128
|
prompts.splice(targetIdx > existingIdx ? targetIdx - 1 : targetIdx, 0, [existingStep]);
|
|
126
129
|
return;
|
|
127
130
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"displayName": "SAPUI5 Adaptation Project",
|
|
4
4
|
"homepage": "https://help.sap.com/viewer/584e0bcbfd4a4aff91c815cefa0bce2d/Cloud/en-US/ada9567b767941aba8d49fdb4fdedea7.html",
|
|
5
5
|
"description": "Adaptation project allows you to create an app variant for an existing SAP Fiori elements-based or SAPUI5 freestyle application, without changing the original application.",
|
|
6
|
-
"version": "0.5.
|
|
6
|
+
"version": "0.5.4",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
"i18next": "25.3.0",
|
|
31
31
|
"yeoman-generator": "5.10.0",
|
|
32
32
|
"uuid": "10.0.0",
|
|
33
|
-
"@sap-ux/adp-tooling": "0.16.2",
|
|
34
33
|
"@sap-ux/axios-extension": "1.23.0",
|
|
35
34
|
"@sap-ux/btp-utils": "1.1.4",
|
|
36
35
|
"@sap-ux/feature-toggle": "0.3.2",
|
|
37
|
-
"@sap-ux/inquirer-common": "0.7.51",
|
|
38
36
|
"@sap-ux/logger": "0.7.0",
|
|
37
|
+
"@sap-ux/inquirer-common": "0.7.51",
|
|
39
38
|
"@sap-ux/project-access": "1.32.4",
|
|
40
39
|
"@sap-ux/store": "1.2.0",
|
|
41
40
|
"@sap-ux/system-access": "0.6.20",
|
|
42
41
|
"@sap-ux/project-input-validator": "0.6.26",
|
|
43
42
|
"@sap-ux/fiori-generator-shared": "0.13.23",
|
|
44
|
-
"@sap-ux/odata-service-writer": "0.27.25"
|
|
43
|
+
"@sap-ux/odata-service-writer": "0.27.25",
|
|
44
|
+
"@sap-ux/adp-tooling": "0.16.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@jest/types": "30.0.1",
|