@sap-ux/fiori-app-sub-generator 0.0.14 → 0.0.16
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.
|
@@ -80,7 +80,7 @@ function _setEntityRelatedConfig(feAppConfig) {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
if (feAppConfig.entityConfig?.filterEntityType) {
|
|
83
|
-
entityRelatedConfig.
|
|
83
|
+
entityRelatedConfig.filterEntitySet = {
|
|
84
84
|
entitySetName: feAppConfig.entityConfig.filterEntityType,
|
|
85
85
|
entitySetType: feAppConfig.entityConfig.filterEntityType
|
|
86
86
|
};
|
|
@@ -274,7 +274,8 @@ class FioriAppGenerator extends yeoman_generator_1.default {
|
|
|
274
274
|
capService: this.state.service.capService,
|
|
275
275
|
enableCodeAssist: this.state.project?.enableCodeAssist ?? false,
|
|
276
276
|
// Assumption that npm workspaces will be enabled if cds ui5 plugin is a depenedency
|
|
277
|
-
useNpmWorkspaces: !!(this.state.
|
|
277
|
+
useNpmWorkspaces: !!(this.state.project.enableTypeScript || // If typescript is enabled, it is required that the CAP project will be updated to use NPM workspaces
|
|
278
|
+
this.state.service.capService?.cdsUi5PluginInfo?.isCdsUi5PluginEnabled ||
|
|
278
279
|
this.state.service.capService?.cdsUi5PluginInfo?.hasCdsUi5Plugin ||
|
|
279
280
|
this.state.service.capService?.cdsUi5PluginInfo?.isWorkspaceEnabled),
|
|
280
281
|
ui5Version: this.state.project?.ui5Version
|
|
@@ -84,7 +84,7 @@ function transformTemplateType(floorplan, entityRelatedConfig, viewName) {
|
|
|
84
84
|
entityConfig: _entityConfig
|
|
85
85
|
},
|
|
86
86
|
[fiori_elements_writer_1.TemplateType.OverviewPage]: {
|
|
87
|
-
|
|
87
|
+
filterEntitySet: entityRelatedConfig?.filterEntitySet?.entitySetName
|
|
88
88
|
},
|
|
89
89
|
[fiori_elements_writer_1.TemplateType.Worklist]: {
|
|
90
90
|
entityConfig: _entityConfig,
|
|
@@ -47,10 +47,10 @@ async function writeReadMe({ project, service, floorplan, entityRelatedConfig },
|
|
|
47
47
|
value: entityRelatedConfig.navigationEntity.navigationPropertyName || 'None'
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
if (entityRelatedConfig?.
|
|
50
|
+
if (entityRelatedConfig?.filterEntitySet) {
|
|
51
51
|
readMeCustom.additionalEntries.push({
|
|
52
52
|
label: (0, utils_1.t)('readme.label.filterEntityType'),
|
|
53
|
-
value: entityRelatedConfig.
|
|
53
|
+
value: entityRelatedConfig.filterEntitySet.entitySetName
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
const launchText = await (0, utils_1.getLaunchText)(service.capService, project.name, !!project.enableTypeScript, project.namespace);
|
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.0.
|
|
4
|
+
"version": "0.0.16",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"@sap-ux/btp-utils": "1.0.3",
|
|
35
35
|
"@sap-ux/cap-config-writer": "0.9.25",
|
|
36
36
|
"@sap-ux/feature-toggle": "0.2.3",
|
|
37
|
-
"@sap-ux/fiori-elements-writer": "2.
|
|
37
|
+
"@sap-ux/fiori-elements-writer": "2.2.0",
|
|
38
38
|
"@sap-ux/fiori-freestyle-writer": "2.2.8",
|
|
39
39
|
"@sap-ux/fiori-generator-shared": "0.10.2",
|
|
40
40
|
"@sap-ux/fiori-tools-settings": "0.1.0",
|
|
41
41
|
"@sap-ux/launch-config": "0.9.0",
|
|
42
|
-
"@sap-ux/odata-service-inquirer": "2.
|
|
42
|
+
"@sap-ux/odata-service-inquirer": "2.3.0",
|
|
43
43
|
"@sap-ux/odata-service-writer": "0.26.13",
|
|
44
44
|
"@sap-ux/project-access": "1.29.18",
|
|
45
45
|
"@sap-ux/store": "1.0.0",
|