@sap-ux/fiori-app-sub-generator 1.0.50 → 1.1.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.
|
@@ -10,7 +10,7 @@ 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 } from '../utils/index.js';
|
|
13
|
+
import { addToCache, deleteCache, getAppId, getCdsUi5PluginInfo, getFromCache, getRequiredOdataVersion, getTelemetryBusinessHubType, getTelemetrySapSystemType, hasActiveStep, hasStep, initAppWizardCache, initI18nFioriAppSubGenerator, restoreServiceProviderLoggers, t, updateDependentStep, getFloorplanLabel } 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';
|
|
@@ -244,9 +244,7 @@ export class FioriAppGenerator extends Generator {
|
|
|
244
244
|
const t2 = performance.now();
|
|
245
245
|
FioriAppGenerator.logger.debug(`Writing Fiori application files from template took ${Math.round(t2 - t1)} milliseconds.`);
|
|
246
246
|
TelemetryHelper.createTelemetryData({
|
|
247
|
-
Template:
|
|
248
|
-
odataVersion: service.version
|
|
249
|
-
}),
|
|
247
|
+
Template: getFloorplanLabel(floorplan, service.version),
|
|
250
248
|
DataSource: service.source,
|
|
251
249
|
UI5Version: project.ui5Version || latestVersionString,
|
|
252
250
|
Theme: project.ui5Theme,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { generateAppGenInfo, getHostEnvironment } 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 } from '../utils/index.js';
|
|
4
|
+
import { getLaunchText, getReadMeDataSourceLabel, isAbapCloud, t, getFloorplanLabel } 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.
|
|
@@ -19,9 +19,7 @@ import { getLaunchText, getReadMeDataSourceLabel, isAbapCloud, t } from '../util
|
|
|
19
19
|
* @param existingAppGenInfo
|
|
20
20
|
*/
|
|
21
21
|
export async function writeAppGenInfoFiles({ project, service, floorplan, entityRelatedConfig, appGenInfo }, generatorName, generatorVersion, targetPath, fs, existingAppGenInfo) {
|
|
22
|
-
const templateLabel =
|
|
23
|
-
odataVersion: service.version
|
|
24
|
-
});
|
|
22
|
+
const templateLabel = getFloorplanLabel(floorplan, service.version);
|
|
25
23
|
const datasourceLabel = getReadMeDataSourceLabel(service.source, isAbapCloud(service.connectedSystem), service.apiHubConfig?.apiHubType);
|
|
26
24
|
// Assign any custom overriding properties that may be provided via headless, adaptors
|
|
27
25
|
const appGenInfoCustom = Object.assign({
|
|
@@ -138,4 +138,12 @@ 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;
|
|
141
149
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -261,4 +261,14 @@ 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
|
+
}
|
|
264
274
|
//# 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.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -30,23 +30,23 @@
|
|
|
30
30
|
"mem-fs-editor": "9.4.0",
|
|
31
31
|
"uuid": "11.1.1",
|
|
32
32
|
"yeoman-generator": "5.10.0",
|
|
33
|
-
"@sap-ux/annotation-generator": "1.0.
|
|
34
|
-
"@sap-ux/axios-extension": "2.0.
|
|
33
|
+
"@sap-ux/annotation-generator": "1.0.15",
|
|
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.
|
|
37
|
-
"@sap-ux/feature-toggle": "1.0.
|
|
38
|
-
"@sap-ux/fiori-elements-writer": "3.0.
|
|
39
|
-
"@sap-ux/fiori-freestyle-writer": "3.0.
|
|
40
|
-
"@sap-ux/fiori-generator-shared": "1.0.
|
|
36
|
+
"@sap-ux/cap-config-writer": "1.0.20",
|
|
37
|
+
"@sap-ux/feature-toggle": "1.0.5",
|
|
38
|
+
"@sap-ux/fiori-elements-writer": "3.0.49",
|
|
39
|
+
"@sap-ux/fiori-freestyle-writer": "3.0.44",
|
|
40
|
+
"@sap-ux/fiori-generator-shared": "1.0.20",
|
|
41
41
|
"@sap-ux/fiori-tools-settings": "1.0.1",
|
|
42
|
-
"@sap-ux/launch-config": "1.0.
|
|
43
|
-
"@sap-ux/odata-service-inquirer": "3.0.
|
|
42
|
+
"@sap-ux/launch-config": "1.0.12",
|
|
43
|
+
"@sap-ux/odata-service-inquirer": "3.0.23",
|
|
44
44
|
"@sap-ux/odata-service-writer": "1.0.12",
|
|
45
45
|
"@sap-ux/project-access": "2.1.6",
|
|
46
|
-
"@sap-ux/store": "2.0.
|
|
47
|
-
"@sap-ux/telemetry": "1.0.
|
|
48
|
-
"@sap-ux/ui5-application-inquirer": "1.0.
|
|
49
|
-
"@sap-ux/ui5-info": "1.0.
|
|
46
|
+
"@sap-ux/store": "2.0.4",
|
|
47
|
+
"@sap-ux/telemetry": "1.0.18",
|
|
48
|
+
"@sap-ux/ui5-application-inquirer": "1.0.21",
|
|
49
|
+
"@sap-ux/ui5-info": "1.0.5"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@jest/globals": "30.4.1",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@types/lodash": "4.17.24",
|
|
56
56
|
"@types/mem-fs": "1.1.2",
|
|
57
57
|
"@types/mem-fs-editor": "7.0.1",
|
|
58
|
-
"@types/vscode": "1.
|
|
58
|
+
"@types/vscode": "1.106.1",
|
|
59
59
|
"@types/yeoman-environment": "2.10.11",
|
|
60
60
|
"@types/yeoman-generator": "5.2.14",
|
|
61
61
|
"@types/yeoman-test": "4.0.6",
|
|
@@ -64,11 +64,11 @@
|
|
|
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.
|
|
68
|
-
"@sap-ux/flp-config-sub-generator": "1.0.
|
|
69
|
-
"@sap-ux/inquirer-common": "1.0.
|
|
67
|
+
"@sap-ux/deploy-config-sub-generator": "1.0.38",
|
|
68
|
+
"@sap-ux/flp-config-sub-generator": "1.0.34",
|
|
69
|
+
"@sap-ux/inquirer-common": "1.0.21",
|
|
70
70
|
"@sap-ux/jest-file-matchers": "1.0.2",
|
|
71
|
-
"@sap-ux/logger": "1.0.
|
|
71
|
+
"@sap-ux/logger": "1.0.3"
|
|
72
72
|
},
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=22.x"
|