@sap-ux/fiori-app-sub-generator 1.1.7 → 1.1.9

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.
@@ -3,14 +3,14 @@ import { isAppStudio } from '@sap-ux/btp-utils';
3
3
  import { isInternalFeaturesSettingEnabled } from '@sap-ux/feature-toggle';
4
4
  import { generate as generateFioriElementsApp } from '@sap-ux/fiori-elements-writer';
5
5
  import { generate as generateFioriFreestyleApp } from '@sap-ux/fiori-freestyle-writer';
6
- import { DefaultLogger, getHostEnvironment, hostEnvironment, sendTelemetry, TelemetryHelper, getFlpId } from '@sap-ux/fiori-generator-shared';
6
+ import { DefaultLogger, getHostEnvironment, hostEnvironment, sendTelemetry, TelemetryHelper, getFlpId, getFloorplanLabel } from '@sap-ux/fiori-generator-shared';
7
7
  import { DatasourceType, getEntityRelatedPrompts } from '@sap-ux/odata-service-inquirer';
8
8
  import { initTelemetrySettings } from '@sap-ux/telemetry';
9
9
  import { getUI5Versions, latestVersionString } from '@sap-ux/ui5-info';
10
10
  import { join } from 'node:path';
11
11
  import Generator from 'yeoman-generator';
12
12
  import { defaultNavActionDisplay, defaultNavActionTile, FIORI_STEPS, FloorplanFF, generatorName, STEP_DATASOURCE_AND_SERVICE, STEP_DEPLOY_CONFIG, STEP_FLP_CONFIG, STEP_PROJECT_ATTRIBUTES, FloorplanFE } from '../types/index.js';
13
- import { addToCache, deleteCache, getAppId, getCdsUi5PluginInfo, getFromCache, getRequiredOdataVersion, getTelemetryBusinessHubType, getTelemetrySapSystemType, hasActiveStep, hasStep, initAppWizardCache, initI18nFioriAppSubGenerator, restoreServiceProviderLoggers, t, updateDependentStep, getFloorplanLabel } from '../utils/index.js';
13
+ import { addToCache, deleteCache, getAppId, getCdsUi5PluginInfo, getFromCache, getRequiredOdataVersion, getTelemetryBusinessHubType, getTelemetrySapSystemType, hasActiveStep, hasStep, initAppWizardCache, initI18nFioriAppSubGenerator, restoreServiceProviderLoggers, t, updateDependentStep } from '../utils/index.js';
14
14
  import { runPostGenerationTasks } from './end.js';
15
15
  import { installDependencies } from './install.js';
16
16
  import { getViewQuestion, promptOdataServiceAnswers, promptUI5ApplicationAnswers } from './prompting.js';
@@ -1,7 +1,7 @@
1
- import { generateAppGenInfo, getHostEnvironment } from '@sap-ux/fiori-generator-shared';
1
+ import { generateAppGenInfo, getHostEnvironment, getFloorplanLabel } from '@sap-ux/fiori-generator-shared';
2
2
  import { basename, join } from 'node:path';
3
3
  import { DEFAULT_CAP_HOST } from '../types/index.js';
4
- import { getLaunchText, getReadMeDataSourceLabel, isAbapCloud, t, getFloorplanLabel } from '../utils/index.js';
4
+ import { getLaunchText, getReadMeDataSourceLabel, isAbapCloud, t } from '../utils/index.js';
5
5
  /**
6
6
  * Writes app related information files - README.md & .appGenInfo.json.
7
7
  * The files are based on the project, service, and additional properties.
@@ -1,24 +1,4 @@
1
1
  {
2
- "floorplans": {
3
- "label": {
4
- "basic": "Basic{{odataVersion, odataVersionFormatter}}",
5
- "fpm": "Custom Page{{odataVersion, odataVersionFormatter}}",
6
- "lrop": "List Report Page{{odataVersion, odataVersionFormatter}}",
7
- "worklist": "Worklist Page{{odataVersion, odataVersionFormatter}}",
8
- "alp": "Analytical List Page{{odataVersion, odataVersionFormatter}}",
9
- "ovp": "Overview Page{{odataVersion, odataVersionFormatter}}",
10
- "feop": "Form Entry Object Page{{odataVersion, odataVersionFormatter}}"
11
- },
12
- "description": {
13
- "basic": "Create a freestyle application, starting with an empty page.",
14
- "fpm": "Create an SAP Fiori elements application containing a custom page based on the flexible programming model.",
15
- "lrop": "Create an SAP Fiori elements application containing a list report and an object page.",
16
- "worklist": "Create an SAP Fiori elements application containing a worklist and an object page.",
17
- "alp": "Create an SAP Fiori elements application containing an analytical list and an object page.",
18
- "ovp": "Create an SAP Fiori elements application containing an overview page.",
19
- "feop": "Create an SAP Fiori elements application containing an object page optimized for data entry."
20
- }
21
- },
22
2
  "defaults": {
23
3
  "projectName": "project{{defaultProjectNumber}}",
24
4
  "projectTitle": "Application Title",
@@ -138,12 +138,4 @@ export declare function convertCapRuntimeToCapProjectType(capRuntime?: CapRuntim
138
138
  export declare function getAnnotations(projectName: string, annotations?: Annotations, capService?: CapService): Promise<CdsAnnotationsInfo | EdmxAnnotationsInfo | undefined>;
139
139
  /** @deprecated Import directly from `@sap-ux/fiori-generator-shared` instead. */
140
140
  export { restoreServiceProviderLoggers } from '@sap-ux/fiori-generator-shared';
141
- /**
142
- * Returns the human-readable display label for a given floorplan/template type.
143
- *
144
- * @param templateType - the template type string (e.g. 'lrop', 'fpm')
145
- * @param odataVersion - the OData version string (e.g. 'v2', 'v4')
146
- * @returns the display label (e.g. 'List Report Page V4', 'Custom Page V4')
147
- */
148
- export declare function getFloorplanLabel(templateType: string, odataVersion?: string): string;
149
141
  //# sourceMappingURL=common.d.ts.map
@@ -261,14 +261,4 @@ export async function getAnnotations(projectName, annotations, capService) {
261
261
  }
262
262
  /** @deprecated Import directly from `@sap-ux/fiori-generator-shared` instead. */
263
263
  export { restoreServiceProviderLoggers } from '@sap-ux/fiori-generator-shared';
264
- /**
265
- * Returns the human-readable display label for a given floorplan/template type.
266
- *
267
- * @param templateType - the template type string (e.g. 'lrop', 'fpm')
268
- * @param odataVersion - the OData version string (e.g. 'v2', 'v4')
269
- * @returns the display label (e.g. 'List Report Page V4', 'Custom Page V4')
270
- */
271
- export function getFloorplanLabel(templateType, odataVersion) {
272
- return t(`floorplans.label.${templateType}`, { defaultValue: templateType, odataVersion });
273
- }
274
264
  //# sourceMappingURL=common.js.map
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": "1.1.7",
4
+ "version": "1.1.9",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -33,20 +33,20 @@
33
33
  "@sap-ux/annotation-generator": "1.0.15",
34
34
  "@sap-ux/axios-extension": "2.0.7",
35
35
  "@sap-ux/btp-utils": "2.0.5",
36
- "@sap-ux/cap-config-writer": "1.0.20",
36
+ "@sap-ux/cap-config-writer": "1.0.21",
37
37
  "@sap-ux/feature-toggle": "1.0.5",
38
- "@sap-ux/fiori-elements-writer": "3.0.55",
39
- "@sap-ux/fiori-freestyle-writer": "3.0.50",
40
- "@sap-ux/fiori-generator-shared": "1.0.20",
38
+ "@sap-ux/fiori-elements-writer": "3.0.57",
39
+ "@sap-ux/fiori-freestyle-writer": "3.0.51",
40
+ "@sap-ux/fiori-generator-shared": "1.1.0",
41
41
  "@sap-ux/fiori-tools-settings": "1.0.1",
42
- "@sap-ux/odata-service-inquirer": "3.0.23",
42
+ "@sap-ux/launch-config": "1.0.12",
43
+ "@sap-ux/odata-service-inquirer": "3.0.24",
43
44
  "@sap-ux/odata-service-writer": "1.0.12",
44
45
  "@sap-ux/project-access": "2.1.6",
45
46
  "@sap-ux/store": "2.0.4",
46
47
  "@sap-ux/telemetry": "1.0.18",
47
- "@sap-ux/ui5-application-inquirer": "1.0.21",
48
- "@sap-ux/ui5-info": "1.0.5",
49
- "@sap-ux/launch-config": "1.0.12"
48
+ "@sap-ux/ui5-application-inquirer": "1.0.22",
49
+ "@sap-ux/ui5-info": "1.0.5"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@jest/globals": "30.4.1",
@@ -64,9 +64,9 @@
64
64
  "mock-spawn": "0.2.6",
65
65
  "rimraf": "6.1.3",
66
66
  "yeoman-test": "6.3.0",
67
- "@sap-ux/deploy-config-sub-generator": "1.0.40",
68
- "@sap-ux/flp-config-sub-generator": "1.0.37",
69
- "@sap-ux/inquirer-common": "1.0.21",
67
+ "@sap-ux/deploy-config-sub-generator": "1.0.41",
68
+ "@sap-ux/flp-config-sub-generator": "1.0.38",
69
+ "@sap-ux/inquirer-common": "1.0.22",
70
70
  "@sap-ux/jest-file-matchers": "1.0.2",
71
71
  "@sap-ux/logger": "1.0.3"
72
72
  },