@sap-ux/fe-fpm-writer 0.39.32 → 0.40.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.
|
@@ -152,9 +152,7 @@ function getAnnotationPathQualifiersForEntityType(entityType, annotationTerms, r
|
|
|
152
152
|
}
|
|
153
153
|
else if (bindingContext.type === 'relative') {
|
|
154
154
|
entityType.navigationProperties.forEach((navigationProperty) => {
|
|
155
|
-
if (navigationProperty.targetType &&
|
|
156
|
-
navigationProperty.targetType._type === 'EntityType' &&
|
|
157
|
-
navigationProperty.name !== 'SiblingEntity') {
|
|
155
|
+
if (navigationProperty.targetType?._type === 'EntityType' && navigationProperty.name !== 'SiblingEntity') {
|
|
158
156
|
if (!bindingContext.isCollection || (bindingContext.isCollection && navigationProperty.isCollection)) {
|
|
159
157
|
addAnnotationPathQualifierToResult(navigationProperty.targetType, navigationProperty.name, annotationTerms, result, useNamespace);
|
|
160
158
|
}
|
|
@@ -111,7 +111,9 @@ async function getFilterBarIdsInFile(viewOrFragmentPath, fs) {
|
|
|
111
111
|
const elements = Array.from(xmlDocument.getElementsByTagName(buildingBlockSelector));
|
|
112
112
|
for (const element of elements) {
|
|
113
113
|
const id = element.getAttributeNode('id')?.value;
|
|
114
|
-
|
|
114
|
+
if (id) {
|
|
115
|
+
ids.push(id);
|
|
116
|
+
}
|
|
115
117
|
}
|
|
116
118
|
return ids;
|
|
117
119
|
}
|
package/dist/prompts/api.js
CHANGED
|
@@ -81,7 +81,7 @@ class PromptsAPI {
|
|
|
81
81
|
try {
|
|
82
82
|
const prompt = this.cache[type] ?? (await this.getPrompts(type));
|
|
83
83
|
const question = prompt.questions.find((question) => question.name === fieldName);
|
|
84
|
-
if (question
|
|
84
|
+
if (question?.type === 'list') {
|
|
85
85
|
const choices = typeof question.choices === 'function' ? await question.choices(answers) : question.choices;
|
|
86
86
|
return choices ?? [];
|
|
87
87
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/fe-fpm-writer",
|
|
3
3
|
"description": "SAP Fiori elements flexible programming model writer",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.40.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"!dist/**/*.map"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@sap-ux/annotation-converter": "0.10.
|
|
24
|
-
"@sap-ux/vocabularies-types": "0.13.
|
|
23
|
+
"@sap-ux/annotation-converter": "0.10.9",
|
|
24
|
+
"@sap-ux/vocabularies-types": "0.13.2",
|
|
25
25
|
"@xmldom/xmldom": "0.8.10",
|
|
26
26
|
"ejs": "3.1.10",
|
|
27
27
|
"i18next": "25.3.0",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"semver": "7.5.4",
|
|
31
31
|
"xml-formatter": "2.6.1",
|
|
32
32
|
"xpath": "0.0.33",
|
|
33
|
-
"@sap-ux/fiori-annotation-api": "0.
|
|
34
|
-
"@sap-ux/project-access": "1.32.
|
|
35
|
-
"@sap-ux/logger": "0.7.
|
|
33
|
+
"@sap-ux/fiori-annotation-api": "0.8.0",
|
|
34
|
+
"@sap-ux/project-access": "1.32.16",
|
|
35
|
+
"@sap-ux/logger": "0.7.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/inquirer": "8.2.6",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@types/mem-fs-editor": "7.0.1",
|
|
42
42
|
"@types/semver": "7.5.2",
|
|
43
43
|
"@types/vinyl": "2.0.7",
|
|
44
|
-
"@sap-ux/i18n": "0.3.
|
|
45
|
-
"@sap-ux/ui-prompting": "0.5.
|
|
44
|
+
"@sap-ux/i18n": "0.3.6",
|
|
45
|
+
"@sap-ux/ui-prompting": "0.5.8"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=20.x"
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"watch": "tsc --watch",
|
|
53
53
|
"clean": "rimraf --glob dist test/test-output *.tsbuildinfo",
|
|
54
54
|
"format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",
|
|
55
|
-
"lint": "eslint
|
|
56
|
-
"lint:fix": "eslint
|
|
55
|
+
"lint": "eslint",
|
|
56
|
+
"lint:fix": "eslint --fix",
|
|
57
57
|
"test": "jest --ci --forceExit --detectOpenHandles --colors"
|
|
58
58
|
}
|
|
59
59
|
}
|