@sap-ux/fiori-app-sub-generator 0.9.19 → 0.11.0

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.
@@ -265,7 +265,8 @@ class FioriAppGenerator extends yeoman_generator_1.default {
265
265
  EnableEslint: project.enableEslint,
266
266
  EnableTypeScript: project.enableTypeScript,
267
267
  EnableVirtualEndpoints: project.enableVirtualEndpoints,
268
- ToolsId: appConfig.app.sourceTemplate?.toolsId
268
+ ToolsId: appConfig.app.sourceTemplate?.toolsId,
269
+ ValueHelpCount: service.valueListMetadata?.length ?? 0
269
270
  });
270
271
  if (service.apiHubConfig && (0, btp_utils_1.isAppStudio)()) {
271
272
  (0, writing_1.writeAPIHubKeyFiles)(this.fs, destRoot, service.apiHubConfig);
@@ -128,6 +128,7 @@ async function promptOdataServiceAnswers(options, logger, adapter, connectedSyst
128
128
  serviceId: answers.serviceId,
129
129
  edmx: answers.metadata,
130
130
  annotations: answers.annotations,
131
+ valueListMetadata: answers.valueListMetadata,
131
132
  version: answers.odataVersion,
132
133
  capService: answers.capService,
133
134
  source: answers.datasourceType,
@@ -316,6 +317,10 @@ function createOdataServicePromptOptions(options) {
316
317
  useAutoComplete: !isYUI,
317
318
  includeCloudFoundryAbapEnvChoice: true,
318
319
  ...options.promptOptions?.systemSelection
320
+ },
321
+ [odata_service_inquirer_1.promptNames.valueHelpDownload]: {
322
+ hide: true,
323
+ ...options.promptOptions?.valueHelpDownload
319
324
  }
320
325
  };
321
326
  }
@@ -164,7 +164,8 @@ async function transformState({ project, service, floorplan, entityRelatedConfig
164
164
  annotations: project.skipAnnotations !== true
165
165
  ? await (0, utils_1.getAnnotations)(project.name, service.annotations?.[0], service?.capService)
166
166
  : undefined,
167
- ignoreCertError: service.ignoreCertError
167
+ ignoreCertError: service.ignoreCertError,
168
+ externalServices: service.valueListMetadata
168
169
  };
169
170
  const destinationName = service.destinationName ?? service.connectedSystem?.destination?.Name;
170
171
  if (destinationName) {
@@ -77,7 +77,8 @@ async function writeAppGenInfoFiles({ project, service, floorplan, entityRelated
77
77
  generatorName: appGenInfoCustom?.generatorName ?? '',
78
78
  entityRelatedConfig: appGenInfoCustom?.entityRelatedConfig ?? [],
79
79
  externalParameters: appGenInfoCustom?.externalParameters,
80
- launchText
80
+ launchText,
81
+ valueHelpDownloaded: service.valueListMetadata && service.valueListMetadata.length > 0
81
82
  };
82
83
  (0, fiori_generator_shared_1.generateAppGenInfo)(targetPath, genInfo, fs);
83
84
  }
@@ -1,5 +1,5 @@
1
1
  import type { AuthenticationType } from '@sap-ux/store';
2
- import type { Annotations } from '@sap-ux/axios-extension';
2
+ import type { Annotations, ExternalService } from '@sap-ux/axios-extension';
3
3
  import type { CapServiceCdsInfo } from '@sap-ux/cap-config-writer';
4
4
  import type { CdsUi5PluginInfo, UI5FlexLayer } from '@sap-ux/project-access';
5
5
  import type { TableSelectionMode } from '@sap-ux/fiori-elements-writer';
@@ -70,6 +70,14 @@ export interface Service {
70
70
  destinationAuthType?: string;
71
71
  apiHubConfig?: ApiHubConfig;
72
72
  ignoreCertError?: boolean;
73
+ /**
74
+ * Value list references for the service when the user opts to download value helps.
75
+ */
76
+ /**
77
+ * Downloaded external service metadata including value helps with their metadata content.
78
+ * Populated when user opts to download value help metadata during generation.
79
+ */
80
+ valueListMetadata?: ExternalService[];
73
81
  /**
74
82
  * Can be set by adaptors if preview settings have been determined
75
83
  */
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.9.19",
4
+ "version": "0.11.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -19,7 +19,7 @@
19
19
  "!generators/**/*.map"
20
20
  ],
21
21
  "dependencies": {
22
- "@sap-ux/annotation-converter": "0.10.8",
22
+ "@sap-ux/annotation-converter": "0.10.9",
23
23
  "@sap-ux/edmx-parser": "0.9.1",
24
24
  "@sap/service-provider-apis": "2.5.1",
25
25
  "i18next": "25.3.0",
@@ -29,22 +29,22 @@
29
29
  "mem-fs-editor": "9.4.0",
30
30
  "uuid": "11.0.5",
31
31
  "yeoman-generator": "5.10.0",
32
- "@sap-ux/annotation-generator": "0.3.85",
33
- "@sap-ux/axios-extension": "1.24.6",
32
+ "@sap-ux/annotation-generator": "0.4.0",
33
+ "@sap-ux/axios-extension": "1.25.0",
34
34
  "@sap-ux/btp-utils": "1.1.6",
35
35
  "@sap-ux/cap-config-writer": "0.12.35",
36
36
  "@sap-ux/feature-toggle": "0.3.5",
37
- "@sap-ux/fiori-elements-writer": "2.8.22",
38
- "@sap-ux/fiori-freestyle-writer": "2.5.14",
37
+ "@sap-ux/fiori-elements-writer": "2.8.24",
38
+ "@sap-ux/fiori-freestyle-writer": "2.5.16",
39
39
  "@sap-ux/fiori-generator-shared": "0.13.44",
40
40
  "@sap-ux/fiori-tools-settings": "0.2.3",
41
41
  "@sap-ux/launch-config": "0.10.43",
42
- "@sap-ux/odata-service-inquirer": "2.11.22",
43
- "@sap-ux/odata-service-writer": "0.27.38",
42
+ "@sap-ux/odata-service-inquirer": "2.13.0",
43
+ "@sap-ux/odata-service-writer": "0.29.0",
44
44
  "@sap-ux/project-access": "1.32.16",
45
45
  "@sap-ux/store": "1.4.0",
46
46
  "@sap-ux/telemetry": "0.6.48",
47
- "@sap-ux/ui5-application-inquirer": "0.15.48",
47
+ "@sap-ux/ui5-application-inquirer": "0.15.50",
48
48
  "@sap-ux/ui5-info": "0.13.4"
49
49
  },
50
50
  "devDependencies": {
@@ -62,9 +62,9 @@
62
62
  "mock-spawn": "0.2.6",
63
63
  "rimraf": "6.0.1",
64
64
  "yeoman-test": "6.3.0",
65
- "@sap-ux/deploy-config-sub-generator": "0.5.21",
66
- "@sap-ux/flp-config-sub-generator": "0.3.84",
67
- "@sap-ux/inquirer-common": "0.9.17",
65
+ "@sap-ux/deploy-config-sub-generator": "0.5.23",
66
+ "@sap-ux/flp-config-sub-generator": "0.3.87",
67
+ "@sap-ux/inquirer-common": "0.10.1",
68
68
  "@sap-ux/jest-file-matchers": "0.2.8",
69
69
  "@sap-ux/logger": "0.7.2"
70
70
  },