@sap-ux/fe-fpm-writer 0.31.4 → 0.31.6
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 +2 -3
- package/dist/app/index.js +2 -2
- package/dist/building-block/index.js +3 -4
- package/dist/building-block/prompts/questions/building-blocks.js +2 -2
- package/dist/building-block/prompts/questions/chart.js +1 -2
- package/dist/building-block/prompts/questions/filter-bar.js +1 -2
- package/dist/building-block/prompts/questions/table.js +1 -2
- package/dist/building-block/prompts/utils/project.js +1 -2
- package/dist/building-block/prompts/utils/questions.js +11 -12
- package/dist/building-block/prompts/utils/service.js +6 -7
- package/dist/building-block/prompts/utils/xml.js +3 -4
- package/dist/column/index.js +2 -3
- package/dist/common/defaults.js +4 -4
- package/dist/common/event-handler.js +2 -2
- package/dist/common/file.js +3 -4
- package/dist/common/utils.js +5 -6
- package/dist/common/validate.js +4 -5
- package/dist/controller-extension/index.js +2 -2
- package/dist/filter/index.js +1 -2
- package/dist/i18n.js +3 -3
- package/dist/page/common.js +9 -9
- package/dist/page/custom.js +3 -4
- package/dist/page/list.js +1 -2
- package/dist/page/object.js +1 -2
- package/dist/prompts/utils.js +1 -2
- package/dist/section/index.js +4 -5
- package/dist/templates.js +1 -2
- package/dist/view/index.js +1 -2
- package/package.json +4 -4
package/dist/action/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.enhanceManifestAndGetActionsElementReference = enhanceManifestAndGetActionsElementReference;
|
|
4
|
+
exports.generateCustomAction = generateCustomAction;
|
|
4
5
|
const mem_fs_1 = require("mem-fs");
|
|
5
6
|
const mem_fs_editor_1 = require("mem-fs-editor");
|
|
6
7
|
const types_1 = require("./types");
|
|
@@ -77,7 +78,6 @@ function enhanceManifestAndGetActionsElementReference(manifest, target) {
|
|
|
77
78
|
return page.options.settings.controlConfiguration[controlId].actions;
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
|
-
exports.enhanceManifestAndGetActionsElementReference = enhanceManifestAndGetActionsElementReference;
|
|
81
81
|
/**
|
|
82
82
|
* Add a custom page to an existing UI5 application.
|
|
83
83
|
*
|
|
@@ -107,5 +107,4 @@ async function generateCustomAction(basePath, actionConfig, fs) {
|
|
|
107
107
|
fs.writeJSON(manifestPath, manifest, undefined, (0, file_1.getJsonSpace)(fs, manifestPath, actionConfig.tabInfo));
|
|
108
108
|
return fs;
|
|
109
109
|
}
|
|
110
|
-
exports.generateCustomAction = generateCustomAction;
|
|
111
110
|
//# sourceMappingURL=index.js.map
|
package/dist/app/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MIN_VERSION = void 0;
|
|
4
|
+
exports.enableFPM = enableFPM;
|
|
4
5
|
const mem_fs_1 = require("mem-fs");
|
|
5
6
|
const mem_fs_editor_1 = require("mem-fs-editor");
|
|
6
7
|
const path_1 = require("path");
|
|
@@ -107,5 +108,4 @@ async function enableFPM(basePath, config = {}, fs) {
|
|
|
107
108
|
}
|
|
108
109
|
return fs;
|
|
109
110
|
}
|
|
110
|
-
exports.enableFPM = enableFPM;
|
|
111
111
|
//# sourceMappingURL=index.js.map
|
|
@@ -26,7 +26,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.generateBuildingBlock = generateBuildingBlock;
|
|
30
|
+
exports.getManifestContent = getManifestContent;
|
|
31
|
+
exports.getSerializedFileContent = getSerializedFileContent;
|
|
30
32
|
const mem_fs_1 = require("mem-fs");
|
|
31
33
|
const mem_fs_editor_1 = require("mem-fs-editor");
|
|
32
34
|
const ejs_1 = require("ejs");
|
|
@@ -84,7 +86,6 @@ async function generateBuildingBlock(basePath, config, fs) {
|
|
|
84
86
|
}
|
|
85
87
|
return fs;
|
|
86
88
|
}
|
|
87
|
-
exports.generateBuildingBlock = generateBuildingBlock;
|
|
88
89
|
/**
|
|
89
90
|
* Returns the UI5 xml file document (view/fragment).
|
|
90
91
|
*
|
|
@@ -223,7 +224,6 @@ async function getManifestContent(fs) {
|
|
|
223
224
|
const templatePath = (0, templates_1.getTemplatePath)('/building-block/common/manifest.json');
|
|
224
225
|
return (0, ejs_1.render)(fs.read(templatePath), { libraries: { 'sap.fe.macros': {} } });
|
|
225
226
|
}
|
|
226
|
-
exports.getManifestContent = getManifestContent;
|
|
227
227
|
/**
|
|
228
228
|
* Returns the template xml file document.
|
|
229
229
|
*
|
|
@@ -337,5 +337,4 @@ async function getSerializedFileContent(basePath, config, fs) {
|
|
|
337
337
|
}
|
|
338
338
|
return snippets;
|
|
339
339
|
}
|
|
340
|
-
exports.getSerializedFileContent = getSerializedFileContent;
|
|
341
340
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getManifestPromptsGroup = void 0;
|
|
4
|
+
exports.getBuildingBlockTypePrompts = getBuildingBlockTypePrompts;
|
|
4
5
|
const i18n_1 = require("../../../i18n");
|
|
5
6
|
const types_1 = require("../../types");
|
|
6
7
|
/**
|
|
@@ -39,5 +40,4 @@ async function getBuildingBlockTypePrompts() {
|
|
|
39
40
|
]
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
|
-
exports.getBuildingBlockTypePrompts = getBuildingBlockTypePrompts;
|
|
43
43
|
//# sourceMappingURL=building-blocks.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getChartBuildingBlockPrompts =
|
|
3
|
+
exports.getChartBuildingBlockPrompts = getChartBuildingBlockPrompts;
|
|
4
4
|
const i18n_1 = require("../../../i18n");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
6
|
const types_1 = require("../../types");
|
|
@@ -148,5 +148,4 @@ async function getChartBuildingBlockPrompts(context) {
|
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
-
exports.getChartBuildingBlockPrompts = getChartBuildingBlockPrompts;
|
|
152
151
|
//# sourceMappingURL=chart.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFilterBarBuildingBlockPrompts =
|
|
3
|
+
exports.getFilterBarBuildingBlockPrompts = getFilterBarBuildingBlockPrompts;
|
|
4
4
|
const i18n_1 = require("../../../i18n");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
6
|
const types_1 = require("../../types");
|
|
@@ -114,5 +114,4 @@ async function getFilterBarBuildingBlockPrompts(context) {
|
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
exports.getFilterBarBuildingBlockPrompts = getFilterBarBuildingBlockPrompts;
|
|
118
117
|
//# sourceMappingURL=filter-bar.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getTableBuildingBlockPrompts =
|
|
3
|
+
exports.getTableBuildingBlockPrompts = getTableBuildingBlockPrompts;
|
|
4
4
|
const i18n_1 = require("../../../i18n");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
6
|
const types_1 = require("../../types");
|
|
@@ -251,5 +251,4 @@ async function getTableBuildingBlockPrompts(context) {
|
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
|
-
exports.getTableBuildingBlockPrompts = getTableBuildingBlockPrompts;
|
|
255
254
|
//# sourceMappingURL=table.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isCapProject =
|
|
3
|
+
exports.isCapProject = isCapProject;
|
|
4
4
|
/**
|
|
5
5
|
* Method checks if passed project is CAP project.
|
|
6
6
|
*
|
|
@@ -10,5 +10,4 @@ exports.isCapProject = void 0;
|
|
|
10
10
|
function isCapProject(project) {
|
|
11
11
|
return ['CAPJava', 'CAPNodejs'].includes(project.projectType);
|
|
12
12
|
}
|
|
13
|
-
exports.isCapProject = isCapProject;
|
|
14
13
|
//# sourceMappingURL=project.js.map
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getBooleanPrompt = getBooleanPrompt;
|
|
4
|
+
exports.getAnnotationPathQualifierPrompt = getAnnotationPathQualifierPrompt;
|
|
5
|
+
exports.getViewOrFragmentPathPrompt = getViewOrFragmentPathPrompt;
|
|
6
|
+
exports.getCAPServicePrompt = getCAPServicePrompt;
|
|
7
|
+
exports.getEntityPrompt = getEntityPrompt;
|
|
8
|
+
exports.getCAPServiceChoices = getCAPServiceChoices;
|
|
9
|
+
exports.getAggregationPathPrompt = getAggregationPathPrompt;
|
|
10
|
+
exports.transformChoices = transformChoices;
|
|
11
|
+
exports.getFilterBarIdPrompt = getFilterBarIdPrompt;
|
|
12
|
+
exports.getBindingContextTypePrompt = getBindingContextTypePrompt;
|
|
13
|
+
exports.getBuildingBlockIdPrompt = getBuildingBlockIdPrompt;
|
|
4
14
|
const path_1 = require("path");
|
|
5
15
|
const service_1 = require("./service");
|
|
6
16
|
const project_access_1 = require("@sap-ux/project-access");
|
|
@@ -32,7 +42,6 @@ function getBooleanPrompt(properties) {
|
|
|
32
42
|
}
|
|
33
43
|
};
|
|
34
44
|
}
|
|
35
|
-
exports.getBooleanPrompt = getBooleanPrompt;
|
|
36
45
|
/**
|
|
37
46
|
* Returns the prompt for choosing the existing annotation term.
|
|
38
47
|
*
|
|
@@ -73,7 +82,6 @@ function getAnnotationPathQualifierPrompt(context, properties = {}, annotationTe
|
|
|
73
82
|
}
|
|
74
83
|
};
|
|
75
84
|
}
|
|
76
|
-
exports.getAnnotationPathQualifierPrompt = getAnnotationPathQualifierPrompt;
|
|
77
85
|
/**
|
|
78
86
|
* Returns the prompt for choosing a View or a Fragment file.
|
|
79
87
|
*
|
|
@@ -106,7 +114,6 @@ function getViewOrFragmentPathPrompt(context, validationErrorMessage, properties
|
|
|
106
114
|
}
|
|
107
115
|
};
|
|
108
116
|
}
|
|
109
|
-
exports.getViewOrFragmentPathPrompt = getViewOrFragmentPathPrompt;
|
|
110
117
|
/**
|
|
111
118
|
* Returns the prompt for choosing CAP service.
|
|
112
119
|
*
|
|
@@ -132,7 +139,6 @@ async function getCAPServicePrompt(context, properties = {}) {
|
|
|
132
139
|
}
|
|
133
140
|
};
|
|
134
141
|
}
|
|
135
|
-
exports.getCAPServicePrompt = getCAPServicePrompt;
|
|
136
142
|
/**
|
|
137
143
|
* Returns a Prompt for choosing an entity.
|
|
138
144
|
*
|
|
@@ -160,7 +166,6 @@ function getEntityPrompt(context, properties = {}) {
|
|
|
160
166
|
}
|
|
161
167
|
};
|
|
162
168
|
}
|
|
163
|
-
exports.getEntityPrompt = getEntityPrompt;
|
|
164
169
|
/**
|
|
165
170
|
* Method returns choices for cap service selection.
|
|
166
171
|
*
|
|
@@ -177,7 +182,6 @@ async function getCAPServiceChoices(project, appId) {
|
|
|
177
182
|
}
|
|
178
183
|
return transformChoices(servicesMap);
|
|
179
184
|
}
|
|
180
|
-
exports.getCAPServiceChoices = getCAPServiceChoices;
|
|
181
185
|
/**
|
|
182
186
|
* Return a Prompt for choosing the aggregation path.
|
|
183
187
|
*
|
|
@@ -212,7 +216,6 @@ function getAggregationPathPrompt(context, properties = {}) {
|
|
|
212
216
|
}
|
|
213
217
|
};
|
|
214
218
|
}
|
|
215
|
-
exports.getAggregationPathPrompt = getAggregationPathPrompt;
|
|
216
219
|
/**
|
|
217
220
|
* Method converts choices to "PromptListChoices" type.
|
|
218
221
|
*
|
|
@@ -234,7 +237,6 @@ function transformChoices(obj, sort = true) {
|
|
|
234
237
|
}
|
|
235
238
|
return choices;
|
|
236
239
|
}
|
|
237
|
-
exports.transformChoices = transformChoices;
|
|
238
240
|
/**
|
|
239
241
|
* Returns a Prompt for selecting existing filter bar ID or entering a new one.
|
|
240
242
|
*
|
|
@@ -274,7 +276,6 @@ function getFilterBarIdPrompt(context, properties) {
|
|
|
274
276
|
}
|
|
275
277
|
};
|
|
276
278
|
}
|
|
277
|
-
exports.getFilterBarIdPrompt = getFilterBarIdPrompt;
|
|
278
279
|
/**
|
|
279
280
|
* Returns the Binding Context Type Prompt.
|
|
280
281
|
*
|
|
@@ -297,7 +298,6 @@ function getBindingContextTypePrompt(properties = {}) {
|
|
|
297
298
|
}
|
|
298
299
|
};
|
|
299
300
|
}
|
|
300
|
-
exports.getBindingContextTypePrompt = getBindingContextTypePrompt;
|
|
301
301
|
/**
|
|
302
302
|
* Returns a Prompt for entering a Building block ID.
|
|
303
303
|
*
|
|
@@ -333,5 +333,4 @@ function getBuildingBlockIdPrompt(context, validationErrorMessage, properties =
|
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
|
-
exports.getBuildingBlockIdPrompt = getBuildingBlockIdPrompt;
|
|
337
336
|
//# sourceMappingURL=questions.js.map
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getMappedServiceName = getMappedServiceName;
|
|
4
|
+
exports.getAnnotationService = getAnnotationService;
|
|
5
|
+
exports.getMergedMetadata = getMergedMetadata;
|
|
6
|
+
exports.getEntitySets = getEntitySets;
|
|
7
|
+
exports.getAnnotationTermAlias = getAnnotationTermAlias;
|
|
8
|
+
exports.getAnnotationPathQualifiers = getAnnotationPathQualifiers;
|
|
4
9
|
const annotation_converter_1 = require("@sap-ux/annotation-converter");
|
|
5
10
|
const fiori_annotation_api_1 = require("@sap-ux/fiori-annotation-api");
|
|
6
11
|
const project_access_1 = require("@sap-ux/project-access");
|
|
@@ -23,7 +28,6 @@ async function getMappedServiceName(project, serviceName, appName) {
|
|
|
23
28
|
}
|
|
24
29
|
return mappedServiceName;
|
|
25
30
|
}
|
|
26
|
-
exports.getMappedServiceName = getMappedServiceName;
|
|
27
31
|
/**
|
|
28
32
|
* Method returns service object for passed service name.
|
|
29
33
|
*
|
|
@@ -41,7 +45,6 @@ async function getAnnotationService(project, serviceName, appName, sync = true)
|
|
|
41
45
|
}
|
|
42
46
|
return service;
|
|
43
47
|
}
|
|
44
|
-
exports.getAnnotationService = getAnnotationService;
|
|
45
48
|
/**
|
|
46
49
|
* Method to get and convert metadata.
|
|
47
50
|
*
|
|
@@ -52,7 +55,6 @@ function getMergedMetadata(annotationService) {
|
|
|
52
55
|
const rawMetadata = annotationService.getSchema();
|
|
53
56
|
return (0, annotation_converter_1.convert)(rawMetadata);
|
|
54
57
|
}
|
|
55
|
-
exports.getMergedMetadata = getMergedMetadata;
|
|
56
58
|
/**
|
|
57
59
|
* Method returns converted metadata object.
|
|
58
60
|
*
|
|
@@ -98,7 +100,6 @@ async function getEntitySets(project, appId) {
|
|
|
98
100
|
const metadata = await getServiceMetadata(project, getMainService(project, appId), appId);
|
|
99
101
|
return Array.from(metadata.entitySets);
|
|
100
102
|
}
|
|
101
|
-
exports.getEntitySets = getEntitySets;
|
|
102
103
|
/**
|
|
103
104
|
* Method to get the annotation term alias.
|
|
104
105
|
*
|
|
@@ -109,7 +110,6 @@ function getAnnotationTermAlias(annotationTerm) {
|
|
|
109
110
|
const [, , , vocabularyName, , annotationTermName] = annotationTerm.split('.');
|
|
110
111
|
return [vocabularyName, annotationTermName];
|
|
111
112
|
}
|
|
112
|
-
exports.getAnnotationTermAlias = getAnnotationTermAlias;
|
|
113
113
|
/**
|
|
114
114
|
* Method to get the annotation path qualifiers for entity.
|
|
115
115
|
*
|
|
@@ -137,7 +137,6 @@ async function getAnnotationPathQualifiers(project, appId, entity, annotationTer
|
|
|
137
137
|
}
|
|
138
138
|
return result;
|
|
139
139
|
}
|
|
140
|
-
exports.getAnnotationPathQualifiers = getAnnotationPathQualifiers;
|
|
141
140
|
/**
|
|
142
141
|
* Method to get annotation path qualifiers and add to result.
|
|
143
142
|
*
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isElementIdAvailable = isElementIdAvailable;
|
|
4
|
+
exports.getXPathStringsForXmlFile = getXPathStringsForXmlFile;
|
|
5
|
+
exports.getFilterBarIdsInFile = getFilterBarIdsInFile;
|
|
4
6
|
const xmldom_1 = require("@xmldom/xmldom");
|
|
5
7
|
/**
|
|
6
8
|
* Method validates if passed id is available.
|
|
@@ -15,7 +17,6 @@ function isElementIdAvailable(fs, viewOrFragmentPath, id) {
|
|
|
15
17
|
const xmlDocument = new xmldom_1.DOMParser({ errorHandler: () => { } }).parseFromString(xmlContent);
|
|
16
18
|
return xmlDocument.documentElement ? !xmlDocument.getElementById(id) : true;
|
|
17
19
|
}
|
|
18
|
-
exports.isElementIdAvailable = isElementIdAvailable;
|
|
19
20
|
/**
|
|
20
21
|
* Converts the provided xpath string from `/mvc:View/Page/content` to
|
|
21
22
|
* `/mvc:View/*[local-name()='Page']/*[local-name()='content']`.
|
|
@@ -68,7 +69,6 @@ function getXPathStringsForXmlFile(xmlFilePath, fs) {
|
|
|
68
69
|
}
|
|
69
70
|
return result;
|
|
70
71
|
}
|
|
71
|
-
exports.getXPathStringsForXmlFile = getXPathStringsForXmlFile;
|
|
72
72
|
/**
|
|
73
73
|
* Returns the message property if the error is an instance of `Error` else a string representation of the error.
|
|
74
74
|
*
|
|
@@ -100,5 +100,4 @@ async function getFilterBarIdsInFile(viewOrFragmentPath, fs) {
|
|
|
100
100
|
}
|
|
101
101
|
return ids;
|
|
102
102
|
}
|
|
103
|
-
exports.getFilterBarIdsInFile = getFilterBarIdsInFile;
|
|
104
103
|
//# sourceMappingURL=xml.js.map
|
package/dist/column/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getManifestRoot = getManifestRoot;
|
|
4
|
+
exports.generateCustomColumn = generateCustomColumn;
|
|
4
5
|
const ejs_1 = require("ejs");
|
|
5
6
|
const mem_fs_1 = require("mem-fs");
|
|
6
7
|
const mem_fs_editor_1 = require("mem-fs-editor");
|
|
@@ -30,7 +31,6 @@ function getManifestRoot(ui5Version) {
|
|
|
30
31
|
return (0, templates_1.getTemplatePath)('column/1.84');
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
|
-
exports.getManifestRoot = getManifestRoot;
|
|
34
34
|
/**
|
|
35
35
|
* Enhances the provided custom table column configuration with default data.
|
|
36
36
|
*
|
|
@@ -90,5 +90,4 @@ async function generateCustomColumn(basePath, customColumn, fs) {
|
|
|
90
90
|
}
|
|
91
91
|
return fs;
|
|
92
92
|
}
|
|
93
|
-
exports.generateCustomColumn = generateCustomColumn;
|
|
94
93
|
//# sourceMappingURL=index.js.map
|
package/dist/common/defaults.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.FCL_ROUTER = void 0;
|
|
4
|
+
exports.setCommonDefaults = setCommonDefaults;
|
|
5
|
+
exports.getDefaultFragmentContentData = getDefaultFragmentContentData;
|
|
6
|
+
exports.getDefaultFragmentContent = getDefaultFragmentContent;
|
|
4
7
|
const path_1 = require("path");
|
|
5
8
|
exports.FCL_ROUTER = 'sap.f.routing.Router';
|
|
6
9
|
/**
|
|
@@ -19,7 +22,6 @@ function setCommonDefaults(config, manifestPath, manifest) {
|
|
|
19
22
|
config.path = (0, path_1.join)((0, path_1.dirname)(manifestPath), config.folder);
|
|
20
23
|
return config;
|
|
21
24
|
}
|
|
22
|
-
exports.setCommonDefaults = setCommonDefaults;
|
|
23
25
|
/**
|
|
24
26
|
* Method to generate default content data for xml fragment.
|
|
25
27
|
*
|
|
@@ -66,7 +68,6 @@ function getDefaultFragmentContentData(text, eventHandler, isController = false,
|
|
|
66
68
|
requireAttribute
|
|
67
69
|
};
|
|
68
70
|
}
|
|
69
|
-
exports.getDefaultFragmentContentData = getDefaultFragmentContentData;
|
|
70
71
|
/**
|
|
71
72
|
* Method to generate default content for xml fragment.
|
|
72
73
|
*
|
|
@@ -82,5 +83,4 @@ function getDefaultFragmentContent(text, eventHandler, isController = false, pre
|
|
|
82
83
|
const contentData = getDefaultFragmentContentData(text, eventHandler, isController, prefferInput);
|
|
83
84
|
return contentData.content;
|
|
84
85
|
}
|
|
85
|
-
exports.getDefaultFragmentContent = getDefaultFragmentContent;
|
|
86
86
|
//# sourceMappingURL=defaults.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.contextParameter = exports.defaultParameter = void 0;
|
|
4
|
+
exports.applyEventHandlerConfiguration = applyEventHandlerConfiguration;
|
|
4
5
|
const path_1 = require("path");
|
|
5
6
|
const templates_1 = require("../templates");
|
|
6
7
|
const utils_1 = require("../common/utils");
|
|
@@ -101,5 +102,4 @@ function applyEventHandlerConfiguration(fs, config, eventHandler, eventHandlerOp
|
|
|
101
102
|
const fullNamespace = `${config.ns}.${resolvedName}.${eventHandlerFnName}`;
|
|
102
103
|
return controllerPrefix ? `${controllerPrefix}.${fullNamespace}` : `${fullNamespace}`;
|
|
103
104
|
}
|
|
104
|
-
exports.applyEventHandlerConfiguration = applyEventHandlerConfiguration;
|
|
105
105
|
//# sourceMappingURL=event-handler.js.map
|
package/dist/common/file.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.detectTabSpacing = detectTabSpacing;
|
|
4
|
+
exports.getJsonSpace = getJsonSpace;
|
|
5
|
+
exports.extendJSON = extendJSON;
|
|
4
6
|
const CHAR_SPACE = ' ';
|
|
5
7
|
const CHAR_TAB = '\t';
|
|
6
8
|
/**
|
|
@@ -43,7 +45,6 @@ function detectTabSpacing(content) {
|
|
|
43
45
|
}
|
|
44
46
|
return tabSize;
|
|
45
47
|
}
|
|
46
|
-
exports.detectTabSpacing = detectTabSpacing;
|
|
47
48
|
/**
|
|
48
49
|
* Method calculates tab spacing parameter for 'JSON.stringify' method.
|
|
49
50
|
*
|
|
@@ -72,7 +73,6 @@ function getJsonSpace(fs, filePath, tabInfo) {
|
|
|
72
73
|
}
|
|
73
74
|
return space;
|
|
74
75
|
}
|
|
75
|
-
exports.getJsonSpace = getJsonSpace;
|
|
76
76
|
/**
|
|
77
77
|
* Method extends target JSON file with passed JSOn content.
|
|
78
78
|
* Method uses 'fs.extendJSON', but applies additional calculation to reuse existing content tab sizing information.
|
|
@@ -86,5 +86,4 @@ function extendJSON(fs, params) {
|
|
|
86
86
|
// Write json
|
|
87
87
|
fs.extendJSON(filepath, JSON.parse(content), replacer, space);
|
|
88
88
|
}
|
|
89
|
-
exports.extendJSON = extendJSON;
|
|
90
89
|
//# sourceMappingURL=file.js.map
|
package/dist/common/utils.js
CHANGED
|
@@ -3,7 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.insertTextAtAbsolutePosition = insertTextAtAbsolutePosition;
|
|
7
|
+
exports.insertTextAtPosition = insertTextAtPosition;
|
|
8
|
+
exports.addExtensionTypes = addExtensionTypes;
|
|
9
|
+
exports.getManifestPath = getManifestPath;
|
|
10
|
+
exports.getManifest = getManifest;
|
|
7
11
|
const os_1 = __importDefault(require("os"));
|
|
8
12
|
const path_1 = require("path");
|
|
9
13
|
const semver_1 = require("semver");
|
|
@@ -30,7 +34,6 @@ function insertTextAtAbsolutePosition(text, content, position) {
|
|
|
30
34
|
}
|
|
31
35
|
return `${content.slice(0, position)}${text}${content.slice(position)}`;
|
|
32
36
|
}
|
|
33
|
-
exports.insertTextAtAbsolutePosition = insertTextAtAbsolutePosition;
|
|
34
37
|
/**
|
|
35
38
|
* Method inserts passed text into content by line and char position.
|
|
36
39
|
* In case if position is out of range, then whitespaces would be created.
|
|
@@ -56,7 +59,6 @@ function insertTextAtPosition(text, content, position) {
|
|
|
56
59
|
lines[position.line] = insertTextAtAbsolutePosition(text, lines[position.line], position.character);
|
|
57
60
|
return lines.join(os_1.default.EOL);
|
|
58
61
|
}
|
|
59
|
-
exports.insertTextAtPosition = insertTextAtPosition;
|
|
60
62
|
/**
|
|
61
63
|
* Adds type extensions for sap.fe types if an older version is used.
|
|
62
64
|
* The types were fixed in 1.108 and downported to 1.102.
|
|
@@ -72,7 +74,6 @@ function addExtensionTypes(basePath, minUI5Version, fs) {
|
|
|
72
74
|
fs.copyTpl((0, templates_1.getTemplatePath)('common/sap.fe.d.ts'), path, { version });
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
|
-
exports.addExtensionTypes = addExtensionTypes;
|
|
76
77
|
/**
|
|
77
78
|
* Gets manifest path.
|
|
78
79
|
*
|
|
@@ -83,7 +84,6 @@ exports.addExtensionTypes = addExtensionTypes;
|
|
|
83
84
|
async function getManifestPath(basePath, fs) {
|
|
84
85
|
return (0, path_1.join)(await (0, project_access_1.getWebappPath)(basePath, fs), 'manifest.json');
|
|
85
86
|
}
|
|
86
|
-
exports.getManifestPath = getManifestPath;
|
|
87
87
|
/**
|
|
88
88
|
* Gets content and path of the manifest.
|
|
89
89
|
*
|
|
@@ -102,5 +102,4 @@ async function getManifest(basePath, fs, validate = true) {
|
|
|
102
102
|
content: fs.readJSON(path)
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
exports.getManifest = getManifest;
|
|
106
105
|
//# sourceMappingURL=utils.js.map
|
package/dist/common/validate.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.validateVersion = validateVersion;
|
|
4
|
+
exports.validateDependenciesLibs = validateDependenciesLibs;
|
|
5
|
+
exports.validateBasePath = validateBasePath;
|
|
6
|
+
exports.getErrorMessage = getErrorMessage;
|
|
4
7
|
const path_1 = require("path");
|
|
5
8
|
const mem_fs_1 = require("mem-fs");
|
|
6
9
|
const mem_fs_editor_1 = require("mem-fs-editor");
|
|
@@ -18,7 +21,6 @@ function validateVersion(ui5Version) {
|
|
|
18
21
|
}
|
|
19
22
|
return true;
|
|
20
23
|
}
|
|
21
|
-
exports.validateVersion = validateVersion;
|
|
22
24
|
/**
|
|
23
25
|
* Validates the library dependencies - at least one of expected dependencies is present.
|
|
24
26
|
*
|
|
@@ -34,7 +36,6 @@ function validateDependenciesLibs(manifest, dependencies) {
|
|
|
34
36
|
})
|
|
35
37
|
: true;
|
|
36
38
|
}
|
|
37
|
-
exports.validateDependenciesLibs = validateDependenciesLibs;
|
|
38
39
|
/**
|
|
39
40
|
* Validates the provided base path, checks at least one of expected dependencies is present.
|
|
40
41
|
*
|
|
@@ -64,7 +65,6 @@ function validateBasePath(basePath, fs, dependencies = ['sap.fe.templates']) {
|
|
|
64
65
|
}
|
|
65
66
|
return true;
|
|
66
67
|
}
|
|
67
|
-
exports.validateBasePath = validateBasePath;
|
|
68
68
|
/**
|
|
69
69
|
* Returns the message property if the error is an instance of `Error` else a string representation of the error.
|
|
70
70
|
*
|
|
@@ -74,5 +74,4 @@ exports.validateBasePath = validateBasePath;
|
|
|
74
74
|
function getErrorMessage(error) {
|
|
75
75
|
return error instanceof Error ? error.message : String(error);
|
|
76
76
|
}
|
|
77
|
-
exports.getErrorMessage = getErrorMessage;
|
|
78
77
|
//# sourceMappingURL=validate.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.UI5_CONTROLLER_EXTENSION_OBJECT_PAGE = exports.UI5_CONTROLLER_EXTENSION_LIST_REPORT = void 0;
|
|
4
|
+
exports.generateControllerExtension = generateControllerExtension;
|
|
4
5
|
const mem_fs_1 = require("mem-fs");
|
|
5
6
|
const mem_fs_editor_1 = require("mem-fs-editor");
|
|
6
7
|
const path_1 = require("path");
|
|
@@ -206,5 +207,4 @@ async function generateControllerExtension(basePath, controllerConfig, fs) {
|
|
|
206
207
|
}
|
|
207
208
|
return fs;
|
|
208
209
|
}
|
|
209
|
-
exports.generateControllerExtension = generateControllerExtension;
|
|
210
210
|
//# sourceMappingURL=index.js.map
|
package/dist/filter/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateCustomFilter =
|
|
3
|
+
exports.generateCustomFilter = generateCustomFilter;
|
|
4
4
|
const mem_fs_1 = require("mem-fs");
|
|
5
5
|
const mem_fs_editor_1 = require("mem-fs-editor");
|
|
6
6
|
const path_1 = require("path");
|
|
@@ -69,7 +69,6 @@ async function generateCustomFilter(basePath, filterConfig, fs) {
|
|
|
69
69
|
}
|
|
70
70
|
return fs;
|
|
71
71
|
}
|
|
72
|
-
exports.generateCustomFilter = generateCustomFilter;
|
|
73
72
|
/**
|
|
74
73
|
* Enhance the target object in the manifest with the required nested objects and return a reference to it.
|
|
75
74
|
*
|
package/dist/i18n.js
CHANGED
|
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.i18nNamespaces = void 0;
|
|
7
|
+
exports.initI18n = initI18n;
|
|
8
|
+
exports.translate = translate;
|
|
7
9
|
const i18next_1 = __importDefault(require("i18next"));
|
|
8
10
|
const i18next_fs_backend_1 = __importDefault(require("i18next-fs-backend"));
|
|
9
11
|
const path_1 = require("path");
|
|
@@ -39,7 +41,6 @@ async function initI18n() {
|
|
|
39
41
|
}
|
|
40
42
|
});
|
|
41
43
|
}
|
|
42
|
-
exports.initI18n = initI18n;
|
|
43
44
|
/**
|
|
44
45
|
* Wraps the i18next module's translate function to bind the provided namespace and a key prefix.
|
|
45
46
|
*
|
|
@@ -50,5 +51,4 @@ exports.initI18n = initI18n;
|
|
|
50
51
|
function translate(namespace, keyPrefix) {
|
|
51
52
|
return (key, options) => i18nInstance.t(`${namespace}:${keyPrefix ?? ''}${key}`, options) || '';
|
|
52
53
|
}
|
|
53
|
-
exports.translate = translate;
|
|
54
54
|
//# sourceMappingURL=i18n.js.map
|
package/dist/page/common.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PATTERN_SUFFIX = void 0;
|
|
4
|
+
exports.generateRoutePattern = generateRoutePattern;
|
|
5
|
+
exports.generateRouteTarget = generateRouteTarget;
|
|
6
|
+
exports.getManifestJsonExtensionHelper = getManifestJsonExtensionHelper;
|
|
7
|
+
exports.getFclConfig = getFclConfig;
|
|
8
|
+
exports.getLibraryDependencies = getLibraryDependencies;
|
|
9
|
+
exports.initializeTargetSettings = initializeTargetSettings;
|
|
10
|
+
exports.validatePageConfig = validatePageConfig;
|
|
11
|
+
exports.extendPageJSON = extendPageJSON;
|
|
4
12
|
const mem_fs_1 = require("mem-fs");
|
|
5
13
|
const mem_fs_editor_1 = require("mem-fs-editor");
|
|
6
14
|
const ejs_1 = require("ejs");
|
|
@@ -51,7 +59,6 @@ function generateRoutePattern(routes, targetEntity, nav) {
|
|
|
51
59
|
parts.push(exports.PATTERN_SUFFIX);
|
|
52
60
|
return parts.join('');
|
|
53
61
|
}
|
|
54
|
-
exports.generateRoutePattern = generateRoutePattern;
|
|
55
62
|
/**
|
|
56
63
|
* Generates the target property for a route based on exiting routes, configurations and the target's name.
|
|
57
64
|
*
|
|
@@ -71,7 +78,6 @@ function generateRouteTarget(routes, name, fcl, nav) {
|
|
|
71
78
|
}
|
|
72
79
|
return fcl ? [name] : name;
|
|
73
80
|
}
|
|
74
|
-
exports.generateRouteTarget = generateRouteTarget;
|
|
75
81
|
/**
|
|
76
82
|
* Create a function that can be used as JsonReplace when calling extendJson.
|
|
77
83
|
*
|
|
@@ -98,7 +104,6 @@ function getManifestJsonExtensionHelper(config) {
|
|
|
98
104
|
return value;
|
|
99
105
|
};
|
|
100
106
|
}
|
|
101
|
-
exports.getManifestJsonExtensionHelper = getManifestJsonExtensionHelper;
|
|
102
107
|
/**
|
|
103
108
|
* Get the configuration parameters for the flexible column layout based on the given manifest and navigation config.
|
|
104
109
|
*
|
|
@@ -121,7 +126,6 @@ function getFclConfig(manifest, navigation) {
|
|
|
121
126
|
}
|
|
122
127
|
return config;
|
|
123
128
|
}
|
|
124
|
-
exports.getFclConfig = getFclConfig;
|
|
125
129
|
/**
|
|
126
130
|
* Get the library dependencies for a given page type.
|
|
127
131
|
*
|
|
@@ -143,7 +147,6 @@ function getLibraryDependencies(pageType) {
|
|
|
143
147
|
}
|
|
144
148
|
return libraries;
|
|
145
149
|
}
|
|
146
|
-
exports.getLibraryDependencies = getLibraryDependencies;
|
|
147
150
|
/**
|
|
148
151
|
* Create target settings for a Fiori elements page.
|
|
149
152
|
*
|
|
@@ -164,7 +167,6 @@ function initializeTargetSettings(data, addSettings) {
|
|
|
164
167
|
}
|
|
165
168
|
return settings;
|
|
166
169
|
}
|
|
167
|
-
exports.initializeTargetSettings = initializeTargetSettings;
|
|
168
170
|
/**
|
|
169
171
|
* Validate the input parameters for the generation of a custom or an object page.
|
|
170
172
|
*
|
|
@@ -199,7 +201,6 @@ async function validatePageConfig(basePath, config, fs, dependencies = []) {
|
|
|
199
201
|
}
|
|
200
202
|
return fs;
|
|
201
203
|
}
|
|
202
|
-
exports.validatePageConfig = validatePageConfig;
|
|
203
204
|
/**
|
|
204
205
|
* Add an generic page to an existing UI5 application.
|
|
205
206
|
* Supported pages - ListReport or ObjectPage.
|
|
@@ -227,5 +228,4 @@ async function extendPageJSON(basePath, data, enhanceDataFn, templatePath, fs) {
|
|
|
227
228
|
});
|
|
228
229
|
return fs;
|
|
229
230
|
}
|
|
230
|
-
exports.extendPageJSON = extendPageJSON;
|
|
231
231
|
//# sourceMappingURL=common.js.map
|
package/dist/page/custom.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.enhanceData = enhanceData;
|
|
4
|
+
exports.getTemplateRoot = getTemplateRoot;
|
|
5
|
+
exports.generate = generate;
|
|
4
6
|
const path_1 = require("path");
|
|
5
7
|
const mem_fs_1 = require("mem-fs");
|
|
6
8
|
const mem_fs_editor_1 = require("mem-fs-editor");
|
|
@@ -39,7 +41,6 @@ function enhanceData(data, manifestPath, fs) {
|
|
|
39
41
|
}
|
|
40
42
|
return config;
|
|
41
43
|
}
|
|
42
|
-
exports.enhanceData = enhanceData;
|
|
43
44
|
/**
|
|
44
45
|
* Validate the UI5 version and if valid return the root folder for the templates to be used.
|
|
45
46
|
*
|
|
@@ -55,7 +56,6 @@ function getTemplateRoot(ui5Version) {
|
|
|
55
56
|
return (0, templates_1.getTemplatePath)('/page/custom/1.84');
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
exports.getTemplateRoot = getTemplateRoot;
|
|
59
59
|
/**
|
|
60
60
|
* Add a custom page to an existing UI5 application.
|
|
61
61
|
*
|
|
@@ -108,5 +108,4 @@ async function generate(basePath, data, fs) {
|
|
|
108
108
|
}
|
|
109
109
|
return fs;
|
|
110
110
|
}
|
|
111
|
-
exports.generate = generate;
|
|
112
111
|
//# sourceMappingURL=custom.js.map
|
package/dist/page/list.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generate =
|
|
3
|
+
exports.generate = generate;
|
|
4
4
|
const common_1 = require("./common");
|
|
5
5
|
const types_1 = require("./types");
|
|
6
6
|
/**
|
|
@@ -44,5 +44,4 @@ function enhanceData(data, manifest) {
|
|
|
44
44
|
async function generate(basePath, data, fs) {
|
|
45
45
|
return (0, common_1.extendPageJSON)(basePath, data, enhanceData, 'page/list/manifest.json', fs);
|
|
46
46
|
}
|
|
47
|
-
exports.generate = generate;
|
|
48
47
|
//# sourceMappingURL=list.js.map
|
package/dist/page/object.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generate =
|
|
3
|
+
exports.generate = generate;
|
|
4
4
|
const common_1 = require("./common");
|
|
5
5
|
const types_1 = require("./types");
|
|
6
6
|
/**
|
|
@@ -36,5 +36,4 @@ function enhanceData(data, manifest) {
|
|
|
36
36
|
async function generate(basePath, data, fs) {
|
|
37
37
|
return (0, common_1.extendPageJSON)(basePath, data, enhanceData, '/page/object/manifest.json', fs);
|
|
38
38
|
}
|
|
39
|
-
exports.generate = generate;
|
|
40
39
|
//# sourceMappingURL=object.js.map
|
package/dist/prompts/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAnswer =
|
|
3
|
+
exports.getAnswer = getAnswer;
|
|
4
4
|
/**
|
|
5
5
|
* Method returns value of answer by given path.
|
|
6
6
|
*
|
|
@@ -19,5 +19,4 @@ function getAnswer(answers, path) {
|
|
|
19
19
|
}
|
|
20
20
|
return current;
|
|
21
21
|
}
|
|
22
|
-
exports.getAnswer = getAnswer;
|
|
23
22
|
//# sourceMappingURL=utils.js.map
|
package/dist/section/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getManifestRoot = getManifestRoot;
|
|
4
|
+
exports.generateCustomHeaderSection = generateCustomHeaderSection;
|
|
5
|
+
exports.generateCustomSection = generateCustomSection;
|
|
6
|
+
exports.generateCustomSubSection = generateCustomSubSection;
|
|
4
7
|
const mem_fs_1 = require("mem-fs");
|
|
5
8
|
const mem_fs_editor_1 = require("mem-fs-editor");
|
|
6
9
|
const path_1 = require("path");
|
|
@@ -28,7 +31,6 @@ function getManifestRoot(folderName, ui5Version) {
|
|
|
28
31
|
return (0, templates_1.getTemplatePath)(`/${folderName}/1.85`);
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
|
-
exports.getManifestRoot = getManifestRoot;
|
|
32
34
|
/**
|
|
33
35
|
* Get additional dependencies for fragment.xml template based on passed ui5 version.
|
|
34
36
|
*
|
|
@@ -151,7 +153,6 @@ async function generateCustomHeaderSection(basePath, customHeaderSection, fs) {
|
|
|
151
153
|
}
|
|
152
154
|
return editor;
|
|
153
155
|
}
|
|
154
|
-
exports.generateCustomHeaderSection = generateCustomHeaderSection;
|
|
155
156
|
/**
|
|
156
157
|
* Add a custom section to an existing UI5 application.
|
|
157
158
|
*
|
|
@@ -164,7 +165,6 @@ async function generateCustomSection(basePath, customSection, fs) {
|
|
|
164
165
|
const manifestRoot = getManifestRoot('section', customSection.minUI5Version);
|
|
165
166
|
return (await generate(basePath, customSection, manifestRoot, fs)).editor;
|
|
166
167
|
}
|
|
167
|
-
exports.generateCustomSection = generateCustomSection;
|
|
168
168
|
/**
|
|
169
169
|
* Add a custom sub section to an existing UI5 application.
|
|
170
170
|
*
|
|
@@ -177,5 +177,4 @@ async function generateCustomSubSection(basePath, customSubSection, fs) {
|
|
|
177
177
|
const manifestRoot = getManifestRoot('subsection', customSubSection.minUI5Version);
|
|
178
178
|
return (await generate(basePath, customSubSection, manifestRoot, fs)).editor;
|
|
179
179
|
}
|
|
180
|
-
exports.generateCustomSubSection = generateCustomSubSection;
|
|
181
180
|
//# sourceMappingURL=index.js.map
|
package/dist/templates.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getTemplatePath =
|
|
3
|
+
exports.getTemplatePath = getTemplatePath;
|
|
4
4
|
const path_1 = require("path");
|
|
5
5
|
/**
|
|
6
6
|
* Locates template files relative to the dist folder.
|
|
@@ -12,5 +12,4 @@ const path_1 = require("path");
|
|
|
12
12
|
function getTemplatePath(relativeTemplatePath = '') {
|
|
13
13
|
return (0, path_1.join)(__dirname, '../templates', relativeTemplatePath);
|
|
14
14
|
}
|
|
15
|
-
exports.getTemplatePath = getTemplatePath;
|
|
16
15
|
//# sourceMappingURL=templates.js.map
|
package/dist/view/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateCustomView =
|
|
3
|
+
exports.generateCustomView = generateCustomView;
|
|
4
4
|
const mem_fs_1 = require("mem-fs");
|
|
5
5
|
const mem_fs_editor_1 = require("mem-fs-editor");
|
|
6
6
|
const path_1 = require("path");
|
|
@@ -108,5 +108,4 @@ async function generateCustomView(basePath, customView, fs) {
|
|
|
108
108
|
}
|
|
109
109
|
return fs;
|
|
110
110
|
}
|
|
111
|
-
exports.generateCustomView = generateCustomView;
|
|
112
111
|
//# sourceMappingURL=index.js.map
|
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.31.
|
|
4
|
+
"version": "0.31.6",
|
|
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.6",
|
|
35
|
+
"@sap-ux/project-access": "1.27.5"
|
|
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.2.
|
|
45
|
+
"@sap-ux/ui-prompting": "0.2.1"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=18.x"
|