@sap-ux/fiori-app-sub-generator 0.0.28 → 0.0.30

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.
@@ -117,10 +117,17 @@ class FioriAppGenerator extends yeoman_generator_1.default {
117
117
  workspaceFolders: generatorOptions.workspaceFolders
118
118
  };
119
119
  let serviceAnswers = await (0, prompting_1.promptOdataServiceAnswers)(options, FioriAppGenerator.logger, this.env.adapter, cachedService?.connectedSystem);
120
- /** Back button issue temp fix */
120
+ /** Back button handling */
121
121
  // Persist derived state to facilitate backwards navigation
122
122
  if ((0, fiori_generator_shared_1.getHostEnvironment)() !== fiori_generator_shared_1.hostEnvironment.cli) {
123
123
  if (serviceAnswers.source === odata_service_inquirer_1.DatasourceType.none || serviceAnswers.edmx) {
124
+ // When navigating back YUI re-applies the answers from the previous steps up to the current step, however on Windows it removes some required properties
125
+ // of the service answers property: `ConnectedSystem`, so we need to re-apply them from our own cache.
126
+ if (cachedService?.connectedSystem &&
127
+ JSON.stringify(serviceAnswers.connectedSystem?.backendSystem) ===
128
+ JSON.stringify(cachedService?.connectedSystem?.backendSystem)) {
129
+ serviceAnswers.connectedSystem = cachedService?.connectedSystem;
130
+ }
124
131
  (0, utils_1.addToCache)(this.appWizard, { service: serviceAnswers }, FioriAppGenerator.logger);
125
132
  }
126
133
  else {
@@ -253,6 +260,7 @@ class FioriAppGenerator extends yeoman_generator_1.default {
253
260
  EnableEslint: project.enableEslint,
254
261
  EnableTypeScript: project.enableTypeScript,
255
262
  EnableCodeAssist: project.enableCodeAssist,
263
+ EnableVirtualEndpoints: project.enableVirtualEndpoints,
256
264
  ToolsId: appConfig.app.sourceTemplate?.toolsId
257
265
  });
258
266
  if (service.apiHubConfig && (0, btp_utils_1.isAppStudio)()) {
@@ -203,6 +203,9 @@ async function createUI5ApplicationPromptOptions(service, appGenStepConfigList,
203
203
  },
204
204
  [ui5_application_inquirer_1.promptNames.enableTypeScript]: {
205
205
  defaultValue: types_1.defaultPromptValues[ui5_application_inquirer_1.promptNames.enableTypeScript]
206
+ },
207
+ [ui5_application_inquirer_1.promptNames.enableVirtualEndpoints]: {
208
+ hide: service.capService?.capType === 'Java'
206
209
  }
207
210
  }, promptSettings);
208
211
  // Configure the prompts which should be hidden behind the ad
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-app-sub-generator",
3
3
  "description": "A yeoman (sub) generator that can generate Fiori applications. Not for standalone use.",
4
- "version": "0.0.28",
4
+ "version": "0.0.30",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -34,17 +34,17 @@
34
34
  "@sap-ux/btp-utils": "1.0.3",
35
35
  "@sap-ux/cap-config-writer": "0.9.28",
36
36
  "@sap-ux/feature-toggle": "0.2.3",
37
- "@sap-ux/fiori-elements-writer": "2.3.5",
38
- "@sap-ux/fiori-freestyle-writer": "2.3.3",
37
+ "@sap-ux/fiori-elements-writer": "2.3.6",
38
+ "@sap-ux/fiori-freestyle-writer": "2.3.4",
39
39
  "@sap-ux/fiori-generator-shared": "0.11.2",
40
40
  "@sap-ux/fiori-tools-settings": "0.1.0",
41
41
  "@sap-ux/launch-config": "0.9.4",
42
- "@sap-ux/odata-service-inquirer": "2.3.7",
42
+ "@sap-ux/odata-service-inquirer": "2.3.8",
43
43
  "@sap-ux/odata-service-writer": "0.26.17",
44
44
  "@sap-ux/project-access": "1.29.21",
45
45
  "@sap-ux/store": "1.0.0",
46
46
  "@sap-ux/telemetry": "0.5.77",
47
- "@sap-ux/ui5-application-inquirer": "0.12.2",
47
+ "@sap-ux/ui5-application-inquirer": "0.12.3",
48
48
  "@sap-ux/ui5-info": "0.10.0"
49
49
  },
50
50
  "devDependencies": {
@@ -62,7 +62,7 @@
62
62
  "mock-spawn": "0.2.6",
63
63
  "rimraf": "5.0.5",
64
64
  "yeoman-test": "6.3.0",
65
- "@sap-ux/flp-config-sub-generator": "0.1.66",
65
+ "@sap-ux/flp-config-sub-generator": "0.1.67",
66
66
  "@sap-ux/inquirer-common": "0.6.40",
67
67
  "@sap-ux/jest-file-matchers": "0.2.1",
68
68
  "@sap-ux/logger": "0.6.0"