@sap-ux/fe-fpm-writer 0.29.3 → 0.29.5
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.
|
@@ -155,7 +155,7 @@ function getMetaPath(applyContextPath, metaPath, usePlaceholders) {
|
|
|
155
155
|
if (!metaPath) {
|
|
156
156
|
return getDefaultMetaPath(applyContextPath, usePlaceholders);
|
|
157
157
|
}
|
|
158
|
-
const { bindingContextType = 'absolute' } = metaPath;
|
|
158
|
+
const { bindingContextType = 'absolute', alwaysAbsolutePath = true } = metaPath;
|
|
159
159
|
let { entitySet, qualifier } = metaPath;
|
|
160
160
|
entitySet = entitySet || (usePlaceholders ? PLACEHOLDERS.entitySet : '');
|
|
161
161
|
const qualifierOrPlaceholder = qualifier || (usePlaceholders ? PLACEHOLDERS.qualifier : '');
|
|
@@ -168,7 +168,9 @@ function getMetaPath(applyContextPath, metaPath, usePlaceholders) {
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
return {
|
|
171
|
-
metaPath: bindingContextType === 'absolute'
|
|
171
|
+
metaPath: bindingContextType === 'absolute' || alwaysAbsolutePath
|
|
172
|
+
? `/${entitySet}/${qualifierOrPlaceholder}`
|
|
173
|
+
: qualifierOrPlaceholder
|
|
172
174
|
};
|
|
173
175
|
}
|
|
174
176
|
/**
|
|
@@ -23,6 +23,12 @@ export interface BuildingBlockMetaPath {
|
|
|
23
23
|
entitySet: string;
|
|
24
24
|
qualifier: string;
|
|
25
25
|
bindingContextType?: BindingContextType;
|
|
26
|
+
/**
|
|
27
|
+
* Always generate absolute paths.
|
|
28
|
+
*
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
alwaysAbsolutePath?: boolean;
|
|
26
32
|
}
|
|
27
33
|
/**
|
|
28
34
|
* Represents a building block control.
|
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.29.
|
|
4
|
+
"version": "0.29.5",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"semver": "7.5.4",
|
|
32
32
|
"xml-formatter": "2.6.1",
|
|
33
33
|
"xpath": "0.0.33",
|
|
34
|
-
"@sap-ux/fiori-annotation-api": "0.2.
|
|
35
|
-
"@sap-ux/project-access": "1.27.
|
|
34
|
+
"@sap-ux/fiori-annotation-api": "0.2.2",
|
|
35
|
+
"@sap-ux/project-access": "1.27.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/inquirer": "8.2.6",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@types/mem-fs-editor": "7.0.1",
|
|
43
43
|
"@types/semver": "7.5.2",
|
|
44
44
|
"@types/vinyl": "2.0.7",
|
|
45
|
-
"@sap-ux/ui-prompting": "0.1.
|
|
45
|
+
"@sap-ux/ui-prompting": "0.1.9"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=18.x"
|