@sap-ux/fiori-app-sub-generator 0.6.0 → 0.6.1

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.
@@ -112,7 +112,7 @@ class FioriAppGenerator extends yeoman_generator_1.default {
112
112
  capService: cachedService?.capService ?? this.state.service?.capService,
113
113
  requiredOdataVersion: (0, utils_1.getRequiredOdataVersion)(this.state.floorplan),
114
114
  allowNoDatasource: isFioriFreestyleTemplate,
115
- promptOptions: generatorOptions.promptSettings,
115
+ promptOptions: generatorOptions.promptSettings?.['@sap/generator-fiori'],
116
116
  showCollabDraftWarning: generatorOptions.showCollabDraftWarning,
117
117
  workspaceFolders: generatorOptions.workspaceFolders
118
118
  };
@@ -174,7 +174,7 @@ class FioriAppGenerator extends yeoman_generator_1.default {
174
174
  targetFolder: this.state.project?.targetFolder,
175
175
  service: this.state.service,
176
176
  floorplan: this.state.floorplan,
177
- promptSettings: generatorOptions.promptSettings,
177
+ promptSettings: generatorOptions.promptSettings?.['@sap/generator-fiori'],
178
178
  promptExtension: generatorOptions.extensions
179
179
  }, [this.yeomanUiStepConfig], this.env.adapter);
180
180
  this.state.project = Object.assign(this.state.project ?? {}, ui5AppAnswers, {
@@ -1,9 +1,9 @@
1
1
  import type { Logger } from '@sap-ux/logger';
2
- import { type CapService, type ConnectedSystem, OdataVersion } from '@sap-ux/odata-service-inquirer';
2
+ import { type CapService, type ConnectedSystem, type OdataServicePromptOptions, OdataVersion } from '@sap-ux/odata-service-inquirer';
3
3
  import type { UI5ApplicationAnswers, UI5ApplicationPromptOptions } from '@sap-ux/ui5-application-inquirer';
4
4
  import type { Question } from 'inquirer';
5
5
  import type { Adapter } from 'yeoman-environment';
6
- import type { FioriAppGeneratorPromptSettings, Floorplan, Project, Service, YeomanUiStepConfig } from '../types';
6
+ import type { Floorplan, Project, Service, YeomanUiStepConfig } from '../types';
7
7
  declare const viewNamePromptName = "viewName";
8
8
  export interface ViewNameAnswer {
9
9
  [viewNamePromptName]: string;
@@ -16,7 +16,7 @@ type PromptUI5AppAnswersOptions = {
16
16
  projectName?: Project['name'];
17
17
  targetFolder?: Project['targetFolder'];
18
18
  service: Partial<Service>;
19
- promptSettings?: FioriAppGeneratorPromptSettings;
19
+ promptSettings?: UI5ApplicationPromptOptions;
20
20
  floorplan: Floorplan;
21
21
  promptExtension?: UI5ApplicationPromptOptions;
22
22
  };
@@ -63,7 +63,7 @@ export declare function promptOdataServiceAnswers(options: OdataServiceInquirerO
63
63
  * @param extensions
64
64
  * @returns {Promise<UI5ApplicationPromptOptions>} prompt options that may be used to configure UI5 application prompting
65
65
  */
66
- export declare function createUI5ApplicationPromptOptions(service: Partial<Readonly<Service>>, appGenStepConfigList: YeomanUiStepConfig[], floorplan: Floorplan, projectName?: Project['name'], targetFolder?: Project['targetFolder'], promptSettings?: FioriAppGeneratorPromptSettings, extensions?: UI5ApplicationPromptOptions): Promise<UI5ApplicationPromptOptions>;
66
+ export declare function createUI5ApplicationPromptOptions(service: Partial<Readonly<Service>>, appGenStepConfigList: YeomanUiStepConfig[], floorplan: Floorplan, projectName?: Project['name'], targetFolder?: Project['targetFolder'], promptSettings?: UI5ApplicationPromptOptions, extensions?: UI5ApplicationPromptOptions): Promise<UI5ApplicationPromptOptions>;
67
67
  /**
68
68
  * Convienience type for the options of the `createOdataServicePromptOptions` function.
69
69
  */
@@ -75,7 +75,7 @@ export interface OdataServiceInquirerOptions {
75
75
  * Note: only some of the allowed prompt options are currently supported.
76
76
  * Eventually all should be supported by merging the options with the prompt specific options.
77
77
  */
78
- promptOptions?: FioriAppGeneratorPromptSettings;
78
+ promptOptions?: OdataServicePromptOptions;
79
79
  showCollabDraftWarning?: boolean;
80
80
  workspaceFolders?: string[];
81
81
  }
@@ -21,9 +21,9 @@ export interface SubGeneratorPromptSettings {
21
21
  '@sap-ux/flp-config-sub-generator'?: FLPConfigPromptOptions;
22
22
  }
23
23
  export interface FioriGeneratorPromptSettings {
24
- '@sap/generator-fiori': OdataServicePromptOptions & UI5ApplicationPromptOptions;
24
+ '@sap/generator-fiori'?: OdataServicePromptOptions & UI5ApplicationPromptOptions;
25
25
  }
26
- export type FioriAppGeneratorPromptSettings = FioriGeneratorPromptSettings['@sap/generator-fiori'] & SubGeneratorPromptSettings;
26
+ export type FioriAppGeneratorPromptSettings = FioriGeneratorPromptSettings & SubGeneratorPromptSettings;
27
27
  /**
28
28
  * Custom environment type until yeoman-environment provides one
29
29
  */
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.6.0",
4
+ "version": "0.6.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -30,21 +30,21 @@
30
30
  "uuid": "11.0.5",
31
31
  "yeoman-generator": "5.10.0",
32
32
  "@sap-ux/annotation-generator": "0.3.46",
33
- "@sap-ux/axios-extension": "1.22.3",
34
33
  "@sap-ux/btp-utils": "1.1.0",
35
- "@sap-ux/cap-config-writer": "0.10.21",
36
34
  "@sap-ux/feature-toggle": "0.3.0",
35
+ "@sap-ux/axios-extension": "1.22.3",
36
+ "@sap-ux/cap-config-writer": "0.10.21",
37
37
  "@sap-ux/fiori-elements-writer": "2.5.14",
38
- "@sap-ux/fiori-freestyle-writer": "2.4.25",
39
38
  "@sap-ux/fiori-generator-shared": "0.13.3",
39
+ "@sap-ux/fiori-freestyle-writer": "2.4.25",
40
40
  "@sap-ux/fiori-tools-settings": "0.2.0",
41
41
  "@sap-ux/launch-config": "0.10.14",
42
42
  "@sap-ux/odata-service-inquirer": "2.5.22",
43
43
  "@sap-ux/odata-service-writer": "0.27.12",
44
44
  "@sap-ux/project-access": "1.30.7",
45
45
  "@sap-ux/store": "1.1.2",
46
- "@sap-ux/telemetry": "0.6.10",
47
46
  "@sap-ux/ui5-application-inquirer": "0.14.31",
47
+ "@sap-ux/telemetry": "0.6.10",
48
48
  "@sap-ux/ui5-info": "0.12.1"
49
49
  },
50
50
  "devDependencies": {
@@ -63,10 +63,10 @@
63
63
  "rimraf": "5.0.5",
64
64
  "yeoman-test": "6.3.0",
65
65
  "@sap-ux/deploy-config-sub-generator": "0.3.47",
66
- "@sap-ux/flp-config-sub-generator": "0.3.0",
67
66
  "@sap-ux/inquirer-common": "0.7.27",
68
- "@sap-ux/jest-file-matchers": "0.2.4",
69
- "@sap-ux/logger": "0.7.0"
67
+ "@sap-ux/logger": "0.7.0",
68
+ "@sap-ux/flp-config-sub-generator": "0.3.0",
69
+ "@sap-ux/jest-file-matchers": "0.2.4"
70
70
  },
71
71
  "engines": {
72
72
  "node": ">=20.x"