@sap-ux/fiori-app-sub-generator 0.4.22 → 0.4.23
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.
- package/generators/fiori-app-generator/fioriAppGenerator.js +1 -1
- package/generators/fiori-app-generator/subgenHelpers.d.ts +1 -1
- package/generators/fiori-app-generator/subgenHelpers.js +2 -2
- package/generators/fiori-app-generator/transforms.js +0 -1
- package/generators/utils/common.d.ts +0 -9
- package/generators/utils/common.js +0 -17
- package/package.json +11 -11
|
@@ -182,7 +182,7 @@ class FioriAppGenerator extends yeoman_generator_1.default {
|
|
|
182
182
|
localUI5Version
|
|
183
183
|
});
|
|
184
184
|
// Some extensions may reference this before the writing phase where normally the flpAppId is set
|
|
185
|
-
this.state.project.flpAppId = (0,
|
|
185
|
+
this.state.project.flpAppId = (0, fiori_generator_shared_1.getFlpId)((0, utils_1.getAppId)(this.state.project.name, ui5AppAnswers.namespace ?? ''), this.state.floorplan === types_1.FloorplanFF.FF_SIMPLE ? types_1.defaultNavActionDisplay : types_1.defaultNavActionTile);
|
|
186
186
|
}
|
|
187
187
|
if (this.state.project?.addDeployConfig) {
|
|
188
188
|
// Allows back nav where we have iinterdependent steps
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AppWizard } from '@sap-devx/yeoman-ui-types';
|
|
2
|
-
import type
|
|
2
|
+
import { type ILogWrapper } from '@sap-ux/fiori-generator-shared';
|
|
3
3
|
import type Generator from 'yeoman-generator';
|
|
4
4
|
import { type FioriAppGeneratorPromptSettings, type Service } from '../types';
|
|
5
5
|
/**
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addDeployGen = addDeployGen;
|
|
4
4
|
exports.addFlpGen = addFlpGen;
|
|
5
|
+
const fiori_generator_shared_1 = require("@sap-ux/fiori-generator-shared");
|
|
5
6
|
const path_1 = require("path");
|
|
6
7
|
const types_1 = require("../types");
|
|
7
|
-
const utils_1 = require("../utils");
|
|
8
8
|
/**
|
|
9
9
|
* Add the '@sap/fiori:fiori-deployment' generator as a subgenerator.
|
|
10
10
|
*
|
|
@@ -62,7 +62,7 @@ function addFlpGen({ projectName, targetFolder, title, skipPrompt }, composeWith
|
|
|
62
62
|
...flpConfigOptions,
|
|
63
63
|
skipPrompt: true,
|
|
64
64
|
inboundConfig: {
|
|
65
|
-
semanticObject: (0,
|
|
65
|
+
semanticObject: (0, fiori_generator_shared_1.getSemanticObject)(projectName),
|
|
66
66
|
action: types_1.defaultNavActionDisplay,
|
|
67
67
|
title
|
|
68
68
|
}
|
|
@@ -238,7 +238,6 @@ function getBaseAppConfig({ project, service, floorplan, entityRelatedConfig, vi
|
|
|
238
238
|
id: appId,
|
|
239
239
|
title: project.title,
|
|
240
240
|
description: project.description,
|
|
241
|
-
flpAppId: (0, utils_1.getFlpId)(appId, floorplan === types_1.FloorplanFF.FF_SIMPLE ? types_1.defaultNavActionDisplay : types_1.defaultNavActionTile),
|
|
242
241
|
sourceTemplate: {
|
|
243
242
|
toolsId: (0, utils_1.generateToolsId)()
|
|
244
243
|
},
|
|
@@ -24,15 +24,6 @@ export declare function getODataVersion(edmx: string): OdataVersion;
|
|
|
24
24
|
* @returns AppId
|
|
25
25
|
*/
|
|
26
26
|
export declare function getAppId(name: string, namespace?: string): string;
|
|
27
|
-
/**
|
|
28
|
-
* Creates a value suitable for use as a semantic object for navigation intents.
|
|
29
|
-
* Removes specific characters that would break the navigation.
|
|
30
|
-
*
|
|
31
|
-
* @param appId
|
|
32
|
-
* @returns
|
|
33
|
-
*/
|
|
34
|
-
export declare const getSemanticObject: (appId: string) => string;
|
|
35
|
-
export declare const getFlpId: (appId: string, action?: string | undefined) => string;
|
|
36
27
|
/**
|
|
37
28
|
* Builds the sap-client parameter for the URL.
|
|
38
29
|
* If sapClient is not provided, returns an empty string.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFlpId = exports.getSemanticObject = void 0;
|
|
4
3
|
exports.getODataVersion = getODataVersion;
|
|
5
4
|
exports.getAppId = getAppId;
|
|
6
5
|
exports.buildSapClientParam = buildSapClientParam;
|
|
@@ -56,22 +55,6 @@ function getAppId(name, namespace) {
|
|
|
56
55
|
const fullyQualifiedProjectName = [namespace, name].filter((x) => !!x).join('.');
|
|
57
56
|
return fullyQualifiedProjectName.replace(/[_-]/g, '');
|
|
58
57
|
}
|
|
59
|
-
/**
|
|
60
|
-
* Creates a value suitable for use as a semantic object for navigation intents.
|
|
61
|
-
* Removes specific characters that would break the navigation.
|
|
62
|
-
*
|
|
63
|
-
* @param appId
|
|
64
|
-
* @returns
|
|
65
|
-
*/
|
|
66
|
-
const getSemanticObject = (appId) => {
|
|
67
|
-
const semanticObject = appId.replace(/[-_.#]/g, '');
|
|
68
|
-
return semanticObject.length > 30 ? semanticObject.substring(0, 30) : semanticObject;
|
|
69
|
-
};
|
|
70
|
-
exports.getSemanticObject = getSemanticObject;
|
|
71
|
-
const getFlpId = (appId, action) => {
|
|
72
|
-
return `${(0, exports.getSemanticObject)(appId)}${action ? '-' + action : ''}`;
|
|
73
|
-
};
|
|
74
|
-
exports.getFlpId = getFlpId;
|
|
75
58
|
/**
|
|
76
59
|
* Builds the sap-client parameter for the URL.
|
|
77
60
|
* If sapClient is not provided, returns an empty string.
|
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.4.
|
|
4
|
+
"version": "0.4.23",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
"@sap-ux/annotation-generator": "0.3.39",
|
|
33
33
|
"@sap-ux/axios-extension": "1.21.4",
|
|
34
34
|
"@sap-ux/btp-utils": "1.1.0",
|
|
35
|
-
"@sap-ux/cap-config-writer": "0.10.
|
|
35
|
+
"@sap-ux/cap-config-writer": "0.10.8",
|
|
36
36
|
"@sap-ux/feature-toggle": "0.3.0",
|
|
37
|
-
"@sap-ux/fiori-elements-writer": "2.4.
|
|
38
|
-
"@sap-ux/fiori-freestyle-writer": "2.4.
|
|
39
|
-
"@sap-ux/fiori-generator-shared": "0.12.
|
|
37
|
+
"@sap-ux/fiori-elements-writer": "2.4.19",
|
|
38
|
+
"@sap-ux/fiori-freestyle-writer": "2.4.11",
|
|
39
|
+
"@sap-ux/fiori-generator-shared": "0.12.8",
|
|
40
40
|
"@sap-ux/fiori-tools-settings": "0.2.0",
|
|
41
41
|
"@sap-ux/launch-config": "0.10.4",
|
|
42
|
-
"@sap-ux/odata-service-inquirer": "2.4.
|
|
42
|
+
"@sap-ux/odata-service-inquirer": "2.4.22",
|
|
43
43
|
"@sap-ux/odata-service-writer": "0.27.5",
|
|
44
44
|
"@sap-ux/project-access": "1.30.2",
|
|
45
45
|
"@sap-ux/store": "1.1.0",
|
|
46
46
|
"@sap-ux/telemetry": "0.6.3",
|
|
47
|
-
"@sap-ux/ui5-application-inquirer": "0.14.
|
|
47
|
+
"@sap-ux/ui5-application-inquirer": "0.14.13",
|
|
48
48
|
"@sap-ux/ui5-info": "0.12.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"mock-spawn": "0.2.6",
|
|
63
63
|
"rimraf": "5.0.5",
|
|
64
64
|
"yeoman-test": "6.3.0",
|
|
65
|
-
"@sap-ux/abap-deploy-config-inquirer": "1.4.
|
|
66
|
-
"@sap-ux/cf-deploy-config-inquirer": "0.3.
|
|
67
|
-
"@sap-ux/flp-config-sub-generator": "0.2.
|
|
68
|
-
"@sap-ux/inquirer-common": "0.7.
|
|
65
|
+
"@sap-ux/abap-deploy-config-inquirer": "1.4.19",
|
|
66
|
+
"@sap-ux/cf-deploy-config-inquirer": "0.3.13",
|
|
67
|
+
"@sap-ux/flp-config-sub-generator": "0.2.28",
|
|
68
|
+
"@sap-ux/inquirer-common": "0.7.13",
|
|
69
69
|
"@sap-ux/jest-file-matchers": "0.2.2",
|
|
70
70
|
"@sap-ux/logger": "0.7.0"
|
|
71
71
|
},
|