@sap-ux/fe-fpm-writer 0.24.11 → 0.24.13
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/dist/action/index.js +11 -0
- package/dist/action/types.d.ts +2 -0
- package/dist/action/types.js +1 -0
- package/package.json +2 -2
package/dist/action/index.js
CHANGED
|
@@ -37,6 +37,7 @@ function enhanceConfig(data, manifestPath, manifest) {
|
|
|
37
37
|
*/
|
|
38
38
|
function enhanceManifestAndGetActionsElementReference(manifest, target) {
|
|
39
39
|
const page = manifest['sap.ui5'].routing.targets[target.page];
|
|
40
|
+
const SECTIONS = 'sections';
|
|
40
41
|
page.options = page.options || {};
|
|
41
42
|
page.options.settings = page.options.settings || {};
|
|
42
43
|
if (target.control === types_1.TargetControl.header || target.control === types_1.TargetControl.footer) {
|
|
@@ -46,6 +47,16 @@ function enhanceManifestAndGetActionsElementReference(manifest, target) {
|
|
|
46
47
|
page.options.settings.content[target.control].actions || {};
|
|
47
48
|
return page.options.settings.content[target.control].actions;
|
|
48
49
|
}
|
|
50
|
+
else if (target.control === types_1.TargetControl.body && target.customSectionKey) {
|
|
51
|
+
// custom section actions
|
|
52
|
+
page.options.settings[target.control] = page.options.settings[target.control] || {};
|
|
53
|
+
page.options.settings[target.control][SECTIONS] = page.options.settings[target.control][SECTIONS] || {};
|
|
54
|
+
page.options.settings[target.control][SECTIONS][target.customSectionKey] =
|
|
55
|
+
page.options.settings[target.control][SECTIONS][target.customSectionKey] || {};
|
|
56
|
+
page.options.settings[target.control][SECTIONS][target.customSectionKey].actions =
|
|
57
|
+
page.options.settings[target.control][SECTIONS][target.customSectionKey].actions || {};
|
|
58
|
+
return page.options.settings[target.control][SECTIONS][target.customSectionKey].actions;
|
|
59
|
+
}
|
|
49
60
|
else {
|
|
50
61
|
const controlPrefix = target.navProperty ? target.navProperty + '/' : '';
|
|
51
62
|
const controlSuffix = target.qualifier ? '#' + target.qualifier : '';
|
package/dist/action/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CustomElement, InternalCustomElement, Position, EventHandler } from '../common/types';
|
|
2
2
|
export declare enum TargetControl {
|
|
3
3
|
header = "header",
|
|
4
|
+
body = "body",
|
|
4
5
|
footer = "footer",
|
|
5
6
|
section = "@com.sap.vocabularies.UI.v1.FieldGroup",
|
|
6
7
|
table = "@com.sap.vocabularies.UI.v1.LineItem"
|
|
@@ -8,6 +9,7 @@ export declare enum TargetControl {
|
|
|
8
9
|
export interface CustomActionTarget {
|
|
9
10
|
page: string;
|
|
10
11
|
control: TargetControl;
|
|
12
|
+
customSectionKey?: string;
|
|
11
13
|
navProperty?: string;
|
|
12
14
|
qualifier?: string;
|
|
13
15
|
}
|
package/dist/action/types.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.TargetControl = void 0;
|
|
|
4
4
|
var TargetControl;
|
|
5
5
|
(function (TargetControl) {
|
|
6
6
|
TargetControl["header"] = "header";
|
|
7
|
+
TargetControl["body"] = "body";
|
|
7
8
|
TargetControl["footer"] = "footer";
|
|
8
9
|
TargetControl["section"] = "@com.sap.vocabularies.UI.v1.FieldGroup";
|
|
9
10
|
TargetControl["table"] = "@com.sap.vocabularies.UI.v1.LineItem";
|
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.24.
|
|
4
|
+
"version": "0.24.13",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@types/mem-fs": "1.1.2",
|
|
34
34
|
"@types/mem-fs-editor": "7.0.1",
|
|
35
35
|
"@types/semver": "7.5.2",
|
|
36
|
-
"@sap-ux/project-access": "1.
|
|
36
|
+
"@sap-ux/project-access": "1.20.3"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=18.x"
|