@sap/ux-specification 1.90.24 → 1.90.27
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/CHANGELOG.md +80 -1
- package/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
- package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
- package/dist/documentation/v2/v2-ListReport.html +1 -1
- package/dist/documentation/v2/v2-ObjectPage.html +1 -1
- package/dist/documentation/v2/v2-OverviewPage.html +1 -1
- package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
- package/dist/documentation/v4/v4-ListReport.html +1 -1
- package/dist/documentation/v4/v4-ObjectPage.html +1 -1
- package/dist/index-min.js +1 -1
- package/dist/schemas/v2/AnalyticalListPageConfig.json +10 -10
- package/dist/schemas/v2/ListReportConfig.json +15 -15
- package/dist/schemas/v2/ObjectPageConfig.json +204 -20
- package/dist/schemas/v4/ListReportConfig.json +33 -3
- package/dist/schemas/v4/ObjectPageConfig.json +36 -0
- package/dist/scripts/to-json-schema.js +1 -1
- package/dist/scripts/to-json-schema.js.map +1 -1
- package/dist/specification/v2/index-min.js +1 -1
- package/dist/src/apiTypes.d.ts +2 -1
- package/dist/src/project.d.ts +1 -0
- package/dist/src/project.js +13 -5
- package/dist/src/project.js.map +1 -1
- package/dist/src/specification/v2/controls/Action.d.ts +6 -4
- package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +3 -2
- package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +40 -7
- package/dist/src/specification/v2/controls/ObjectPageSection.js.map +1 -1
- package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +5 -3
- package/dist/src/specification/v2/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/specification/v2/controls/Table.d.ts +7 -4
- package/dist/src/specification/v2/controls/Table.js.map +1 -1
- package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +22 -1
- package/dist/src/specification/v4/controls/ObjectPageSection.js.map +1 -1
- package/dist/src/specification/v4/controls/Table.d.ts +8 -0
- package/dist/src/specification/v4/pages/ListReportConfig.d.ts +6 -1
- package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.d.ts +1 -0
- package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
- package/dist/src/sync/common/decoration/control.d.ts +1 -1
- package/dist/src/sync/common/decoration/control.js +27 -22
- package/dist/src/sync/common/decoration/control.js.map +1 -1
- package/dist/src/sync/common/generate/objectPage.d.ts +5 -4
- package/dist/src/sync/common/generate/objectPage.js +67 -66
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +54 -13
- package/dist/src/sync/common/generate/utils.js +140 -47
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/common/import/utils.d.ts +3 -2
- package/dist/src/sync/common/import/utils.js +11 -6
- package/dist/src/sync/common/import/utils.js.map +1 -1
- package/dist/src/sync/common/importProject.js +20 -19
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/types.d.ts +105 -26
- package/dist/src/sync/common/types.js +101 -22
- package/dist/src/sync/common/types.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +17 -12
- package/dist/src/sync/common/utils.js +132 -88
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Action.d.ts +12 -10
- package/dist/src/sync/v2/export/controls/Action.js.map +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.d.ts +9 -7
- package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.js +2 -2
- package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +6 -4
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +6 -4
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +26 -14
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +57 -5
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +5 -3
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +6 -4
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Table.d.ts +6 -3
- package/dist/src/sync/v2/export/controls/Table.js +89 -48
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v2/export/controls/TableColumn.d.ts +12 -10
- package/dist/src/sync/v2/export/controls/TableColumn.js.map +1 -1
- package/dist/src/sync/v2/export/export.d.ts +0 -1
- package/dist/src/sync/v2/export/export.js +222 -160
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/export/exportPage.js +35 -34
- package/dist/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/src/sync/v2/export/manifest.d.ts +22 -0
- package/dist/src/sync/v2/export/manifest.js +77 -36
- package/dist/src/sync/v2/export/manifest.js.map +1 -1
- package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +1 -1
- package/dist/src/sync/v2/export/pages/OverviewPage.js +18 -16
- package/dist/src/sync/v2/export/pages/OverviewPage.js.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.js +10 -10
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.js +1 -1
- package/dist/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.js +57 -43
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +5 -4
- package/dist/src/sync/v2/generate/utils.js +73 -69
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/app/appProvider.d.ts +9 -0
- package/dist/src/sync/v2/import/app/appProvider.js +36 -13
- package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.js +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
- package/dist/src/sync/v2/import/common/index.js +6 -6
- package/dist/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +93 -101
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.js +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/src/sync/v2/import/utils.js +1 -1
- package/dist/src/sync/v2/import/utils.js.map +1 -1
- package/dist/src/sync/v2/types.d.ts +8 -3
- package/dist/src/sync/v2/types.js +6 -2
- package/dist/src/sync/v2/types.js.map +1 -1
- package/dist/src/sync/v4/application.d.ts +22 -10
- package/dist/src/sync/v4/application.js +68 -19
- package/dist/src/sync/v4/application.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTable.js +6 -18
- package/dist/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v4/export/controls/Table.d.ts +8 -1
- package/dist/src/sync/v4/export/controls/Table.js +110 -86
- package/dist/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v4/export/controls/TableColumn.js +4 -4
- package/dist/src/sync/v4/export/controls/TableColumn.js.map +1 -1
- package/dist/src/sync/v4/export/export.js +285 -150
- package/dist/src/sync/v4/export/export.js.map +1 -1
- package/dist/src/sync/v4/export/manifest.js +25 -6
- package/dist/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/src/sync/v4/export/pages/ListReport.d.ts +1 -0
- package/dist/src/sync/v4/export/pages/ListReport.js +7 -0
- package/dist/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/src/sync/v4/export/pages/ObjectPage.js +3 -2
- package/dist/src/sync/v4/export/pages/ObjectPage.js.map +1 -1
- package/dist/src/sync/v4/export/types.d.ts +5 -5
- package/dist/src/sync/v4/generate/listReport.js +304 -156
- package/dist/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.d.ts +1 -1
- package/dist/src/sync/v4/generate/objectPage.js +286 -148
- package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/app/appProvider.js +32 -22
- package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v4/import/pages/listReport.js +54 -37
- package/dist/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v4/import/pages/objectPage.d.ts +13 -0
- package/dist/src/sync/v4/import/pages/objectPage.js +64 -35
- package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/utils.d.ts +2 -1
- package/dist/src/sync/v4/import/utils.js.map +1 -1
- package/dist/src/sync/v4/types.d.ts +2 -0
- package/dist/src/sync/v4/utils/StableIdHelper.js +13 -10
- package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/src/sync/v4/utils/utils.d.ts +7 -7
- package/dist/src/sync/v4/utils/utils.js +44 -34
- package/dist/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/test/unit/export/manifest.test.d.ts +1 -0
- package/package.json +3 -3
|
@@ -11,6 +11,28 @@ const i18next_1 = __importDefault(require("i18next"));
|
|
|
11
11
|
const extensionLogger_1 = require("../../../../extensionLogger");
|
|
12
12
|
const i18n_1 = require("../../../../i18n/i18n");
|
|
13
13
|
const factory_1 = require("../../export/factory");
|
|
14
|
+
/**
|
|
15
|
+
* Converts section ID to manifest ID (replaces '::' with ['/', '#'])
|
|
16
|
+
* @param sectionId - converted ID of the given object page section
|
|
17
|
+
* @param splitOnLt - split ID and get only part in <...>
|
|
18
|
+
* @returns manifest ID
|
|
19
|
+
*/
|
|
20
|
+
function getManifestId(sectionId, splitOnLt = false) {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
const tableId = splitOnLt ? (_a = sectionId.split('<')[1]) === null || _a === void 0 ? void 0 : _a.slice(0, -1) : sectionId;
|
|
23
|
+
const pathParts = tableId.split(`@${"com.sap.vocabularies.UI.v1.LineItem" /* LineItem */}`);
|
|
24
|
+
return `${(_b = pathParts[0]) === null || _b === void 0 ? void 0 : _b.replace(/::/g, '/')}@${"com.sap.vocabularies.UI.v1.LineItem" /* LineItem */}${pathParts[1].replace(/::/g, '#')}`;
|
|
25
|
+
}
|
|
26
|
+
exports.getManifestId = getManifestId;
|
|
27
|
+
/**
|
|
28
|
+
* Converts manifest ID to definition ID (replaces ['#', '/'] with '::')
|
|
29
|
+
* @param manifestId - ID of the given object page section in manifest
|
|
30
|
+
* @returns definition ID
|
|
31
|
+
*/
|
|
32
|
+
function getDefinitionId(manifestId) {
|
|
33
|
+
return manifestId.replace(/#/g, '::').replace(/\//g, '::');
|
|
34
|
+
}
|
|
35
|
+
exports.getDefinitionId = getDefinitionId;
|
|
14
36
|
/**
|
|
15
37
|
* Fills the section table columns in a V4 config
|
|
16
38
|
* @param {ImportObjectPageV4Parameters} importParameters - object comprising all input data
|
|
@@ -21,11 +43,11 @@ const factory_1 = require("../../export/factory");
|
|
|
21
43
|
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
22
44
|
* @param v4Page - page definition in V4 format
|
|
23
45
|
*/
|
|
24
|
-
function fillTableColumnsInConfig(importParameters, manifestSection, configPart, sectionId,
|
|
46
|
+
function fillTableColumnsInConfig(importParameters, manifestSection, configPart, sectionId, factory, manifestSectionId) {
|
|
25
47
|
if (manifestSection['columns']) {
|
|
26
48
|
configPart[sectionId].table.columns = {};
|
|
27
49
|
let tableDefinition;
|
|
28
|
-
const lineItems = importParameters.jsonSchema
|
|
50
|
+
const lineItems = importParameters.jsonSchema.definitions[getDefinitionId(manifestSectionId)];
|
|
29
51
|
if (lineItems) {
|
|
30
52
|
for (const columnKey in lineItems.properties) {
|
|
31
53
|
const columnInSchema = lineItems.properties[columnKey];
|
|
@@ -36,7 +58,7 @@ function fillTableColumnsInConfig(importParameters, manifestSection, configPart,
|
|
|
36
58
|
tableDefinition = common_2.DefinitionName.ObjectPageTableColumn;
|
|
37
59
|
}
|
|
38
60
|
const columnInConfig = factory.createInstance(common_1.PageTypeV4.ObjectPage, tableDefinition);
|
|
39
|
-
utils_1.transferSettingsOfObject(columnInConfig, importParameters.manifest, importParameters.jsonSchema
|
|
61
|
+
utils_1.transferSettingsOfObject(columnInConfig, importParameters.manifest, importParameters.jsonSchema.definitions[tableDefinition], importParameters.routingId, [columnKey], manifestSectionId);
|
|
40
62
|
if (Object.keys(columnInConfig).length > 0) {
|
|
41
63
|
configPart[sectionId].table.columns[columnKey] = columnInConfig;
|
|
42
64
|
}
|
|
@@ -46,19 +68,20 @@ function fillTableColumnsInConfig(importParameters, manifestSection, configPart,
|
|
|
46
68
|
}
|
|
47
69
|
/**
|
|
48
70
|
* Fills the table actions in config.json
|
|
49
|
-
* @param {ImportObjectPageV4Parameters} importParameters
|
|
71
|
+
* @param {ImportObjectPageV4Parameters} importParameters - object comprising all input data
|
|
50
72
|
* @param sectionId - ID of the current section
|
|
51
73
|
* @param configPart - the given part of the object page config
|
|
52
74
|
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
53
75
|
* @param v4Page - current (object) page
|
|
54
76
|
*/
|
|
55
|
-
function fillTableActionsInConfig(importParameters, sectionId, configPart, factory) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
77
|
+
function fillTableActionsInConfig(importParameters, sectionId, configPart, factory, manifestSectionId = sectionId) {
|
|
78
|
+
var _a;
|
|
79
|
+
const actionsDefinition = importParameters.jsonSchema.definitions[`${common_2.DefinitionName.Actions}<${getDefinitionId(manifestSectionId)}>`];
|
|
80
|
+
if (actionsDefinition) {
|
|
81
|
+
for (const actionKey in actionsDefinition['properties']) {
|
|
82
|
+
configPart[sectionId].table.toolBar.actions[actionKey] = factory.createInstance(common_1.PageTypeV4.ObjectPage, common_2.DefinitionName.ObjectPageToolBarAction);
|
|
83
|
+
const action = (_a = actionKey.split('DataFieldForAction::')[1]) === null || _a === void 0 ? void 0 : _a.replace('/', '??');
|
|
84
|
+
utils_1.transferSettingsOfObject(configPart[sectionId].table.toolBar.actions[actionKey], importParameters.manifest, importParameters.jsonSchema.definitions[`${common_2.DefinitionName.ObjectPageToolBarAction}<${action}>`], importParameters.routingId, [actionKey.replace('/', '??')], manifestSectionId);
|
|
62
85
|
if (Object.keys(configPart[sectionId].table.toolBar.actions[actionKey]).length === 0) {
|
|
63
86
|
delete configPart[sectionId].table.toolBar.actions[actionKey];
|
|
64
87
|
}
|
|
@@ -74,20 +97,20 @@ function fillTableActionsInConfig(importParameters, sectionId, configPart, facto
|
|
|
74
97
|
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
75
98
|
* @param v4Page - current (object) page
|
|
76
99
|
*/
|
|
77
|
-
function fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory) {
|
|
78
|
-
const manifestSectionId = sectionId
|
|
100
|
+
function fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory, tableId) {
|
|
101
|
+
const manifestSectionId = tableId ? tableId : getManifestId(sectionId);
|
|
79
102
|
const manifestSection = manifestSettings.controlConfiguration[manifestSectionId];
|
|
80
103
|
if (manifestSection) {
|
|
81
104
|
// Data needs to be transferred
|
|
82
105
|
configPart[sectionId] = {};
|
|
83
|
-
configPart[sectionId].table = factory.createInstance(common_1.PageTypeV4.ObjectPage,
|
|
84
|
-
const sectionDefinition =
|
|
85
|
-
utils_1.transferSettingsOfObject(configPart[sectionId].table, importParameters.manifest, importParameters.jsonSchema
|
|
86
|
-
configPart[sectionId].table.toolBar = factory.createInstance(common_1.PageTypeV4.ObjectPage,
|
|
106
|
+
configPart[sectionId].table = factory.createInstance(common_1.PageTypeV4.ObjectPage, common_2.DefinitionName.ObjectPageTable);
|
|
107
|
+
const sectionDefinition = `${common_2.DefinitionName.ObjectPageTable}<${tableId ? getDefinitionId(tableId) : sectionId}>`;
|
|
108
|
+
utils_1.transferSettingsOfObject(configPart[sectionId].table, importParameters.manifest, importParameters.jsonSchema.definitions[sectionDefinition], importParameters.routingId, [], manifestSectionId);
|
|
109
|
+
configPart[sectionId].table.toolBar = factory.createInstance(common_1.PageTypeV4.ObjectPage, common_2.DefinitionName.ToolBar, {
|
|
87
110
|
actions: {}
|
|
88
111
|
});
|
|
89
|
-
fillTableActionsInConfig(importParameters, sectionId, configPart, factory);
|
|
90
|
-
fillTableColumnsInConfig(importParameters, manifestSection, configPart, sectionId,
|
|
112
|
+
fillTableActionsInConfig(importParameters, sectionId, configPart, factory, manifestSectionId);
|
|
113
|
+
fillTableColumnsInConfig(importParameters, manifestSection, configPart, sectionId, factory, manifestSectionId);
|
|
91
114
|
}
|
|
92
115
|
}
|
|
93
116
|
/**
|
|
@@ -100,18 +123,24 @@ function fillTableInConfig(importParameters, manifestSettings, configPart, secti
|
|
|
100
123
|
* @param v4Page - current (object) page
|
|
101
124
|
*/
|
|
102
125
|
function fillSectionsInConfig(importParameters, sectionProperties, manifestSettings, configPart, factory) {
|
|
126
|
+
var _a, _b, _c;
|
|
103
127
|
for (const sectionId in sectionProperties) {
|
|
104
128
|
const schemaSection = sectionProperties[sectionId];
|
|
105
|
-
|
|
106
|
-
|
|
129
|
+
let tableManifestId = sectionId;
|
|
130
|
+
if (((_a = schemaSection.$ref) === null || _a === void 0 ? void 0 : _a.includes("com.sap.vocabularies.UI.v1.LineItem" /* LineItem */)) && ((_b = schemaSection.$ref) === null || _b === void 0 ? void 0 : _b.startsWith(common_2.DEFINITION_LINK_PREFIX + common_2.DefinitionName.ObjectPageSectionPresentationVariant))) {
|
|
131
|
+
const sectionIdRef = schemaSection['$ref'].split(common_2.DEFINITION_LINK_PREFIX)[1];
|
|
132
|
+
tableManifestId = sectionIdRef ? getManifestId(sectionIdRef, true) : sectionId;
|
|
133
|
+
fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory, tableManifestId);
|
|
134
|
+
}
|
|
135
|
+
else if ((_c = schemaSection.$ref) === null || _c === void 0 ? void 0 : _c.startsWith(common_2.DEFINITION_LINK_PREFIX + common_2.DefinitionName.ObjectPageSectionTableV4)) {
|
|
107
136
|
// Section without subsections
|
|
108
137
|
fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory);
|
|
109
138
|
}
|
|
110
|
-
else if (schemaSection
|
|
139
|
+
else if (schemaSection.properties && schemaSection.properties.subsections) {
|
|
111
140
|
configPart[sectionId] = {
|
|
112
141
|
subsections: {}
|
|
113
142
|
};
|
|
114
|
-
fillSectionsInConfig(importParameters, schemaSection
|
|
143
|
+
fillSectionsInConfig(importParameters, schemaSection.properties.subsections['properties'], manifestSettings, configPart[sectionId].subsections, factory);
|
|
115
144
|
}
|
|
116
145
|
}
|
|
117
146
|
}
|
|
@@ -124,20 +153,20 @@ function fillSectionsInConfig(importParameters, sectionProperties, manifestSetti
|
|
|
124
153
|
* @param v4Page - current (object) page
|
|
125
154
|
*/
|
|
126
155
|
function fillHeaderFacets(appSchema, objectPageConfig, factory, manifest, routingId) {
|
|
127
|
-
var _a, _b;
|
|
128
|
-
const headerSections = appSchema
|
|
156
|
+
var _a, _b, _c;
|
|
157
|
+
const headerSections = appSchema.definitions[common_2.DefinitionName.HeaderSections];
|
|
129
158
|
if (headerSections && headerSections.properties) {
|
|
130
159
|
objectPageConfig.header.sections = {};
|
|
131
160
|
for (const sectionId in headerSections.properties) {
|
|
132
161
|
const sectionDefinitionKey = (_a = headerSections.properties[sectionId]['$ref']) === null || _a === void 0 ? void 0 : _a.split(common_2.DEFINITION_LINK_PREFIX)[1];
|
|
133
162
|
const sectionDefinition = sectionDefinitionKey
|
|
134
|
-
? appSchema
|
|
163
|
+
? appSchema.definitions[sectionDefinitionKey]
|
|
135
164
|
: headerSections.properties[sectionId];
|
|
136
165
|
const factoryKey = sectionDefinitionKey ? sectionDefinitionKey.split('<')[0] : undefined;
|
|
137
166
|
objectPageConfig.header.sections[sectionId] = factoryKey
|
|
138
167
|
? factory.createInstance(common_1.PageTypeV4.ObjectPage, factoryKey)
|
|
139
168
|
: {};
|
|
140
|
-
utils_1.transferSettingsOfObject(objectPageConfig.header.sections[sectionId], manifest, sectionDefinition, routingId, [], (_b = sectionDefinition === null ||
|
|
169
|
+
utils_1.transferSettingsOfObject(objectPageConfig.header.sections[sectionId], manifest, sectionDefinition, routingId, [], (_c = (_b = sectionDefinition) === null || _b === void 0 ? void 0 : _b.title) === null || _c === void 0 ? void 0 : _c.split(common_2.FacetTitlePrefix)[1]);
|
|
141
170
|
}
|
|
142
171
|
}
|
|
143
172
|
}
|
|
@@ -153,28 +182,28 @@ function fillObjectPageConfig(importParameters, v4Page, factory) {
|
|
|
153
182
|
const objectPageConfig = factory.createPageInstance(common_1.PageTypeV4.ObjectPage);
|
|
154
183
|
const manifestSettings = v4Page.options && v4Page.options.settings;
|
|
155
184
|
// Transfer header information
|
|
156
|
-
objectPageConfig.header = factory.createInstance(common_1.PageTypeV4.ObjectPage,
|
|
157
|
-
utils_1.transferSettingsOfObject(objectPageConfig.header, importParameters.manifest, importParameters.jsonSchema
|
|
185
|
+
objectPageConfig.header = factory.createInstance(common_1.PageTypeV4.ObjectPage, common_2.DefinitionName.ObjectPageHeader);
|
|
186
|
+
utils_1.transferSettingsOfObject(objectPageConfig.header, importParameters.manifest, importParameters.jsonSchema.definitions[common_2.DefinitionName.ObjectPageHeader], importParameters.routingId, []);
|
|
158
187
|
// Transfer layout information
|
|
159
|
-
objectPageConfig.layout = factory.createInstance(common_1.PageTypeV4.ObjectPage,
|
|
160
|
-
utils_1.transferSettingsOfObject(objectPageConfig.layout, importParameters.manifest, importParameters.jsonSchema
|
|
188
|
+
objectPageConfig.layout = factory.createInstance(common_1.PageTypeV4.ObjectPage, common_2.DefinitionName.ObjectPageLayout);
|
|
189
|
+
utils_1.transferSettingsOfObject(objectPageConfig.layout, importParameters.manifest, importParameters.jsonSchema.definitions[common_2.DefinitionName.ObjectPageLayout], importParameters.routingId, []);
|
|
161
190
|
utils_1.transferSettingsOfObject(objectPageConfig, importParameters.manifest, importParameters.jsonSchema, importParameters.routingId, []);
|
|
162
191
|
if (!objectPageConfig.sections) {
|
|
163
192
|
objectPageConfig.sections = {};
|
|
164
193
|
}
|
|
165
194
|
if (manifestSettings) {
|
|
166
|
-
if (manifestSettings.controlConfiguration && importParameters.jsonSchema
|
|
195
|
+
if (manifestSettings.controlConfiguration && importParameters.jsonSchema.definitions[common_2.DefinitionName.Sections]) {
|
|
167
196
|
// Fill sections and subsections
|
|
168
197
|
objectPageConfig.sections = {};
|
|
169
|
-
fillSectionsInConfig(importParameters, importParameters.jsonSchema[
|
|
198
|
+
fillSectionsInConfig(importParameters, importParameters.jsonSchema.definitions[common_2.DefinitionName.Sections]['properties'], manifestSettings, objectPageConfig.sections, factory);
|
|
170
199
|
}
|
|
171
200
|
// Fill Custom sections
|
|
172
201
|
const customSections = (_b = (_a = manifestSettings.content) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.sections;
|
|
173
202
|
if (customSections) {
|
|
174
203
|
objectPageConfig.sections.custom = [];
|
|
175
204
|
for (const sectionId in customSections) {
|
|
176
|
-
const section = factory.createInstance(common_1.PageTypeV4.ObjectPage,
|
|
177
|
-
utils_1.transferSettingsOfObject(section, importParameters.manifest, importParameters.jsonSchema
|
|
205
|
+
const section = factory.createInstance(common_1.PageTypeV4.ObjectPage, common_2.DefinitionName.ObjectPageCustomSectionFragment);
|
|
206
|
+
utils_1.transferSettingsOfObject(section, importParameters.manifest, importParameters.jsonSchema.definitions[common_2.DefinitionName.ObjectPageCustomSectionFragment], importParameters.routingId, [], sectionId);
|
|
178
207
|
objectPageConfig.sections.custom.push(section);
|
|
179
208
|
}
|
|
180
209
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectPage.js","sourceRoot":"","sources":["../../../../../../src/sync/v4/import/pages/objectPage.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"objectPage.js","sourceRoot":"","sources":["../../../../../../src/sync/v4/import/pages/objectPage.ts"],"names":[],"mappings":";;;;;AAQA,sDAAgE;AAChE,6DAA8D;AAC9D,oCAAoD;AACpD,4CAAyG;AACzG,sDAA8B;AAC9B,iEAA+D;AAE/D,gDAAiD;AACjD,kDAA4E;AAG5E;;;;;GAKG;AACH,SAAgB,aAAa,CAAC,SAAiB,EAAE,SAAS,GAAG,KAAK;;IAC9D,MAAM,OAAO,GAAG,SAAS,CAAC,CAAC,OAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC;IAC9E,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,oDAA0B,EAAE,CAAC,CAAC;IAClE,OAAO,GAAG,MAAA,SAAS,CAAC,CAAC,CAAC,0CAAE,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,oDAA0B,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC;AACnH,CAAC;AAJD,sCAIC;AAED;;;;GAIG;AACH,SAAgB,eAAe,CAAC,UAAkB;IAC9C,OAAO,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AAC/D,CAAC;AAFD,0CAE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OAAO,GAAG,IAAI,mCAAO,EAAE,CAAC;IAE9B,kBAAkB;IAClB,OAAO,oBAAoB,CAAC,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACnE,CAAC;AA5CD,4DA4CC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Definition, DefinitionOrBoolean } from 'typescript-json-schema';
|
|
1
2
|
import type { Manifest } from '../../../specification/common/webapp/manifest/Manifest';
|
|
2
3
|
import type { ExtensionLogger } from '../../..';
|
|
3
4
|
/**
|
|
@@ -11,4 +12,4 @@ import type { ExtensionLogger } from '../../..';
|
|
|
11
12
|
*/
|
|
12
13
|
export declare function transferSettingsOfObject(configPart: {
|
|
13
14
|
[key: string]: any;
|
|
14
|
-
}, manifest: Manifest, appSchema:
|
|
15
|
+
}, manifest: Manifest, appSchema: Definition | DefinitionOrBoolean, pageKey: string, breadcrumbs: string[], sectionId?: string, logger?: ExtensionLogger): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/v4/import/utils.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/v4/import/utils.ts"],"names":[],"mappings":";;AAEA,yCAAqG;AACrG,mEAAwE;AAGxE;;;;;;;;GAQG;AACH,SAAgB,wBAAwB,CACpC,UAAkC,EAClC,QAAkB,EAClB,SAA2C,EAC3C,OAAe,EACf,WAAqB,EACrB,SAAkB,EAClB,MAAwB;IAExB,IAAI,CAAC,SAAS,EAAE;QACZ,OAAO;KACV;IACD,IAAI,eAAe,GAAG,EAAE,CAAC;IACzB,MAAM,oBAAoB,GAAG,UAAU,CAAC,aAAa,CAAC;IACtD,MAAM,uBAAuB,GAAG,SAAS,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAE1E,KAAK,MAAM,WAAW,IAAI,SAAS,CAAC,YAAY,CAAC,EAAE;QAC/C,MAAM,QAAQ,GAAG,+BAAkB,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QAE7D,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,EAAE;YACpB,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,uBAAuB,EAAE,GAAG,WAAW,CAAC,CAAC;YAClG,eAAe,GAAG,mCAA0B,CAAC,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,uBAAuB,EAAE,IAAI,CAAC,CAAC;YACvG,IAAI,eAAe,IAAI,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC5D,uBAAc,CAAC,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;gBAC3F,kCAAyB,CAAC,oBAAoB,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;aAClF;SACJ;KACJ;AACL,CAAC;AA5BD,4DA4BC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { Chart, LineItem } from '@sap-ux/vocabularies-types';
|
|
1
2
|
import type * as v4controls from './export/controls';
|
|
2
3
|
import type * as v4pages from './export/pages';
|
|
3
4
|
export declare type V4Controls = typeof v4controls;
|
|
4
5
|
export declare type V4Pages = typeof v4pages;
|
|
6
|
+
export declare type PresentationVariantV4 = Chart | LineItem;
|
|
@@ -48,22 +48,25 @@ exports.prepareId = function (sId) {
|
|
|
48
48
|
throw sId + ' - Stable Id could not be generated due to insufficient information.';
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
+
function evaluateConcat(oValue) {
|
|
52
|
+
let sPathConcat = '';
|
|
53
|
+
for (const applyValue of oValue.$Apply) {
|
|
54
|
+
if (applyValue.$Path) {
|
|
55
|
+
if (sPathConcat) {
|
|
56
|
+
sPathConcat += '::';
|
|
57
|
+
}
|
|
58
|
+
sPathConcat += applyValue.$Path;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return sPathConcat;
|
|
62
|
+
}
|
|
51
63
|
function getStableIdPartFromValue(oValue) {
|
|
52
64
|
var _a, _b;
|
|
53
65
|
if ((oValue === null || oValue === void 0 ? void 0 : oValue.$Path) || (oValue === null || oValue === void 0 ? void 0 : oValue.path)) {
|
|
54
66
|
return oValue.$Path || oValue.path;
|
|
55
67
|
}
|
|
56
68
|
if ((oValue === null || oValue === void 0 ? void 0 : oValue.$Apply) && oValue.$Function === 'odata.concat') {
|
|
57
|
-
|
|
58
|
-
for (let i = 0; i < oValue.$Apply.length; i++) {
|
|
59
|
-
if (oValue.$Apply[i].$Path) {
|
|
60
|
-
if (sPathConcat) {
|
|
61
|
-
sPathConcat += '::';
|
|
62
|
-
}
|
|
63
|
-
sPathConcat += oValue.$Apply[i].$Path;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return sPathConcat;
|
|
69
|
+
return evaluateConcat(oValue);
|
|
67
70
|
}
|
|
68
71
|
if (oValue) {
|
|
69
72
|
if (typeof oValue === 'string') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StableIdHelper.js","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/StableIdHelper.ts"],"names":[],"mappings":";;AAEA;;GAEG;AAEH;;;;;GAKG;AACH,SAAS,OAAO,CAAC,MAAc;IAC3B,OAAO,+BAA+B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,mBAAmB,CAAC,GAAW;IAC3C,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QACzB,OAAO;KACV;IACD,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;QACvB,MAAM,GAAG,GAAG,wCAAwC,CAAC;KACxD;IACD,GAAG,GAAG,GAAG;SACJ,OAAO,CAAC,eAAe,EAAE,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,yEAAuC,EAAE;QACpF,OAAO,GAAG,oBAAoB,CAAC;QAC/B,OAAO,IAAI,wBAAwB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QACtD,OAAO,iBAAS,CAAC,OAAO,CAAC,CAAC;KAC7B;SAAM;QACH,0CAA0C;QAC1C,8FAA8F;KACjG;IACD,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { AnnotationTerm, ConverterOutput, EntityType, LineItem, DataFieldForActionAbstractTypes } from '@sap-ux/vocabularies-types';
|
|
2
1
|
import type { EntitySet } from '@sap-ux/annotation-converter';
|
|
3
|
-
import type { ExtensionLogger } from '../../..';
|
|
4
2
|
import type { GenerateAppSchemaParameters, SapUiAppPageV4 } from '../../../v4';
|
|
3
|
+
import type { ExtensionLogger } from '../../..';
|
|
4
|
+
import type { AnnotationTerm, ConverterOutput, EntityType, LineItem, DataFieldForActionAbstractTypes } from '@sap-ux/vocabularies-types';
|
|
5
5
|
import type { Definition } from 'typescript-json-schema';
|
|
6
6
|
/**
|
|
7
|
-
* Processes a LineItem record of type
|
|
7
|
+
* Processes a LineItem record of type DataFieldForAction during app schema generation
|
|
8
8
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
9
9
|
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
10
10
|
* @param actions - actions definition in schema, parent object
|
|
@@ -12,18 +12,18 @@ import type { Definition } from 'typescript-json-schema';
|
|
|
12
12
|
* @param lineItemRecord - actual record of the line item collection
|
|
13
13
|
* @param recordIndex - record index in the collection
|
|
14
14
|
*/
|
|
15
|
-
export declare function handleActionRecord(appSchema:
|
|
15
|
+
export declare function handleActionRecord(appSchema: Definition, entityType: EntityType, actionsDefinition: Definition, lineItemPath: string, lineItemRecord: DataFieldForActionAbstractTypes, lineItemId: string, recordIndex: number): void;
|
|
16
16
|
/**
|
|
17
17
|
* Adds the line item definition, columns and actions to the app schema (for the list report or an object page section comprising a table)
|
|
18
18
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
19
19
|
* @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
|
|
20
20
|
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
21
21
|
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by Annotation Vocabularies Tool
|
|
22
|
+
* @param lineItemId - in case of OP the paramter must be passed to distinguish the OP tables;
|
|
23
|
+
* in case of LR or ALP 'LineItems' is passed.
|
|
22
24
|
* @param columnDefinitionName - name of the column definition, i.e. TableColumn or ObjectPageTableColumn
|
|
23
|
-
* @param lineItemId - optional: in case of OP the paramter must be passed to distinguish the OP tables;
|
|
24
|
-
* in case of LR or ALP no ID is passed, 'LineItems' is taken then.
|
|
25
25
|
*/
|
|
26
|
-
export declare function addLineItemsType(appSchema:
|
|
26
|
+
export declare function addLineItemsType(appSchema: Definition, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, oDataServiceAVT: ConverterOutput, lineItemId: string, columnDefinitionName?: string): void;
|
|
27
27
|
/**
|
|
28
28
|
* Find the relevant V4 page under the routing targets of manifest,json
|
|
29
29
|
* @param pages - list of all pages in manifest
|
|
@@ -9,9 +9,8 @@ const common_1 = require("../../common");
|
|
|
9
9
|
const i18next_1 = __importDefault(require("i18next"));
|
|
10
10
|
const __1 = require("../../..");
|
|
11
11
|
const v4_1 = require("../../../v4");
|
|
12
|
-
const v4_2 = require("../../../v4");
|
|
13
12
|
/**
|
|
14
|
-
* Processes a LineItem record of type
|
|
13
|
+
* Processes a LineItem record of type DataFieldForAction during app schema generation
|
|
15
14
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
16
15
|
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
17
16
|
* @param actions - actions definition in schema, parent object
|
|
@@ -19,35 +18,45 @@ const v4_2 = require("../../../v4");
|
|
|
19
18
|
* @param lineItemRecord - actual record of the line item collection
|
|
20
19
|
* @param recordIndex - record index in the collection
|
|
21
20
|
*/
|
|
22
|
-
function handleActionRecord(appSchema, entityType,
|
|
21
|
+
function handleActionRecord(appSchema, entityType, actionsDefinition, lineItemPath, lineItemRecord, lineItemId, recordIndex) {
|
|
23
22
|
// Action but not inline action
|
|
24
23
|
if (lineItemRecord.Determining !== true) {
|
|
25
24
|
//no footer bar -> toolbar action
|
|
26
25
|
let actionDefinitionName;
|
|
27
|
-
if (lineItemId.startsWith(
|
|
26
|
+
if (lineItemId.startsWith(v4_1.DefinitionName.LineItemsOfView)) {
|
|
28
27
|
actionDefinitionName = v4_1.DefinitionName.ViewToolBarAction;
|
|
29
28
|
}
|
|
30
|
-
else if (lineItemId.startsWith(
|
|
29
|
+
else if (lineItemId.startsWith(v4_1.DefinitionName.LineItems)) {
|
|
31
30
|
actionDefinitionName = v4_1.DefinitionName.ToolBarAction;
|
|
32
31
|
}
|
|
33
32
|
else {
|
|
34
33
|
actionDefinitionName = v4_1.DefinitionName.ObjectPageToolBarAction;
|
|
35
34
|
}
|
|
36
|
-
const
|
|
37
|
-
const description = utils_1.
|
|
35
|
+
const actionId = lineItemRecord.Action.replace('/', '??');
|
|
36
|
+
const description = utils_1.getDataFieldDescription(lineItemRecord, entityType);
|
|
38
37
|
const prefix = lineItemRecord.$Type.split(`${common_1.UIVOCABULARY}.`)[1];
|
|
39
|
-
actions
|
|
40
|
-
$ref:
|
|
41
|
-
description
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
const actions = (actionsDefinition.properties[`${prefix}::${lineItemRecord.Action}`] = {
|
|
39
|
+
$ref: common_1.getFacetDefinitionLink(actionDefinitionName, common_1.prepareRef(actionId)),
|
|
40
|
+
description
|
|
41
|
+
});
|
|
42
|
+
actions[v4_1.SchemaTag.propertyIndex] = recordIndex;
|
|
43
|
+
actions[v4_1.SchemaTag.annotationType] = lineItemRecord.$Type;
|
|
44
|
+
const action = common_1.parseSchemaDefinition(actionDefinitionName, common_1.prepareRef(actionId), appSchema);
|
|
45
|
+
action[v4_1.SchemaTag.annotationPath] = `${lineItemPath}/${recordIndex}`;
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
exports.handleActionRecord = handleActionRecord;
|
|
50
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Processes a LineItem record of type DataField during app schema generation
|
|
51
|
+
* @param lineItem - object comprising the line item information:
|
|
52
|
+
* { lineItemRecord, lineItemId, lineItemPath }
|
|
53
|
+
* @param appSchema - the app specific schema that shall get enhanced
|
|
54
|
+
* @param columnDefinitionName - Schema definition name for the column
|
|
55
|
+
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
56
|
+
* @param recordIndex - record index in the collection
|
|
57
|
+
* @param {ConverterOutput} oDataServiceAVT - AVT information
|
|
58
|
+
*/
|
|
59
|
+
function handleLineItemRecord(lineItem, appSchema, columnDefinitionName, entityType, recordIndex, oDataServiceAVT) {
|
|
51
60
|
var _a, _b, _c, _d, _e;
|
|
52
61
|
const lineItemId = lineItem['lineItemId'];
|
|
53
62
|
const lineItemRecord = lineItem['lineItemRecord'];
|
|
@@ -57,16 +66,16 @@ function handleLineItemRecord(lineItem, appSchema, columnDefinitionName, entityT
|
|
|
57
66
|
}
|
|
58
67
|
const schemaKey = StableIdHelper_1.getStableIdPartFromDataField(lineItemRecord);
|
|
59
68
|
if (schemaKey) {
|
|
60
|
-
appSchema
|
|
69
|
+
const properties = appSchema.definitions[lineItemId].properties;
|
|
70
|
+
properties[schemaKey] = {
|
|
61
71
|
$ref: utils_1.DEFINITION_LINK_PREFIX + columnDefinitionName,
|
|
62
|
-
description: utils_1.
|
|
63
|
-
// Custom property in schema - for object properties ordering purpose
|
|
64
|
-
propertyIndex,
|
|
65
|
-
annotationPath: `${lineItem['lineItemPath']}/${propertyIndex}`,
|
|
66
|
-
annotationType: lineItemRecord === null || lineItemRecord === void 0 ? void 0 : lineItemRecord.$Type
|
|
72
|
+
description: utils_1.getDataFieldDescription(lineItemRecord, entityType)
|
|
67
73
|
};
|
|
74
|
+
properties[schemaKey][v4_1.SchemaTag.annotationType] = lineItemRecord === null || lineItemRecord === void 0 ? void 0 : lineItemRecord.$Type;
|
|
75
|
+
properties[schemaKey][v4_1.SchemaTag.annotationPath] = `${lineItem['lineItemPath']}/${recordIndex}`;
|
|
76
|
+
properties[schemaKey][v4_1.SchemaTag.propertyIndex] = recordIndex;
|
|
68
77
|
if ((_c = (_b = lineItemRecord['Value']) === null || _b === void 0 ? void 0 : _b.$target) === null || _c === void 0 ? void 0 : _c.type) {
|
|
69
|
-
|
|
78
|
+
properties[schemaKey][v4_1.SchemaTag.dataType] = (_e = (_d = lineItemRecord['Value']) === null || _d === void 0 ? void 0 : _d.$target) === null || _e === void 0 ? void 0 : _e.type.replace('Edm.', '');
|
|
70
79
|
}
|
|
71
80
|
}
|
|
72
81
|
}
|
|
@@ -76,13 +85,12 @@ function handleLineItemRecord(lineItem, appSchema, columnDefinitionName, entityT
|
|
|
76
85
|
* @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
|
|
77
86
|
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
78
87
|
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by Annotation Vocabularies Tool
|
|
88
|
+
* @param lineItemId - in case of OP the paramter must be passed to distinguish the OP tables;
|
|
89
|
+
* in case of LR or ALP 'LineItems' is passed.
|
|
79
90
|
* @param columnDefinitionName - name of the column definition, i.e. TableColumn or ObjectPageTableColumn
|
|
80
|
-
* @param lineItemId - optional: in case of OP the paramter must be passed to distinguish the OP tables;
|
|
81
|
-
* in case of LR or ALP no ID is passed, 'LineItems' is taken then.
|
|
82
91
|
*/
|
|
83
|
-
function addLineItemsType(appSchema, lineItemAnnotation, entityType, oDataServiceAVT, columnDefinitionName = v4_1.DefinitionName.TableColumn
|
|
92
|
+
function addLineItemsType(appSchema, lineItemAnnotation, entityType, oDataServiceAVT, lineItemId, columnDefinitionName = v4_1.DefinitionName.TableColumn) {
|
|
84
93
|
// Add the correct lineItem definition
|
|
85
|
-
lineItemId = lineItemId || 'LineItems';
|
|
86
94
|
const { actions, lineItemPath } = common_1.addCommonLineItemDefinitions(appSchema, lineItemAnnotation, entityType, lineItemId);
|
|
87
95
|
if (!lineItemAnnotation) {
|
|
88
96
|
return;
|
|
@@ -119,7 +127,7 @@ function findPageV4(pages, pageName, entitySet, logger) {
|
|
|
119
127
|
for (const i in pages) {
|
|
120
128
|
if (((_b = (_a = pages[i].options) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.entitySet) === entitySet.name &&
|
|
121
129
|
(pages[i].name === pageName ||
|
|
122
|
-
(pageName ===
|
|
130
|
+
(pageName === v4_1.FE_TEMPLATE_V4_ALP && pages[i].name === v4_1.FE_TEMPLATE_V4_LIST_REPORT))) {
|
|
123
131
|
v4Page = pages[i];
|
|
124
132
|
break;
|
|
125
133
|
}
|
|
@@ -145,21 +153,23 @@ exports.findPageV4 = findPageV4;
|
|
|
145
153
|
*/
|
|
146
154
|
function alignSchemaWithTemplateType(appSchema, generateParameters) {
|
|
147
155
|
let tableDefinitionName;
|
|
156
|
+
const tableDefinition = appSchema.properties[v4_1.PropertyName.table];
|
|
148
157
|
if (generateParameters.templateType === utils_1.TemplateType.AnalyticalListPageV4) {
|
|
149
|
-
delete appSchema.properties['table']['anyOf'];
|
|
150
|
-
appSchema.properties['table']['$ref'] = `${utils_1.DEFINITION_LINK_PREFIX}${v4_1.DefinitionName.ALPTableView}`;
|
|
151
158
|
tableDefinitionName = v4_1.DefinitionName.ALPTableView;
|
|
159
|
+
delete tableDefinition.anyOf;
|
|
160
|
+
tableDefinition.$ref = `${utils_1.DEFINITION_LINK_PREFIX}${v4_1.DefinitionName.ALPTableView}`;
|
|
152
161
|
delete appSchema.definitions[v4_1.DefinitionName.Table];
|
|
153
162
|
delete appSchema.definitions[v4_1.DefinitionName.LRChartView];
|
|
154
163
|
delete appSchema.definitions[v4_1.DefinitionName.LRTableView];
|
|
155
|
-
delete appSchema.definitions[
|
|
164
|
+
delete appSchema.definitions[v4_1.DefinitionName.MultiTableModeV4];
|
|
156
165
|
}
|
|
157
166
|
else if (generateParameters.templateType === utils_1.TemplateType.ListReportObjectPageV4) {
|
|
158
|
-
delete appSchema.properties['table']['anyOf'];
|
|
159
|
-
appSchema.properties['table']['$ref'] = `${utils_1.DEFINITION_LINK_PREFIX}${v4_1.DefinitionName.Table}`;
|
|
160
167
|
tableDefinitionName = v4_1.DefinitionName.Table;
|
|
168
|
+
delete tableDefinition.anyOf;
|
|
169
|
+
tableDefinition.$ref = `${utils_1.DEFINITION_LINK_PREFIX}${v4_1.DefinitionName.Table}`;
|
|
170
|
+
appSchema.definitions[tableDefinitionName].properties[v4_1.PropertyName.annotationPath][v4_1.SchemaTag.hidden] = true;
|
|
161
171
|
delete appSchema.definitions[v4_1.DefinitionName.ALPTableView];
|
|
162
|
-
appSchema.properties[
|
|
172
|
+
appSchema.properties[v4_1.PropertyName.defaultPath][v4_1.SchemaTag.hidden] = true;
|
|
163
173
|
}
|
|
164
174
|
return tableDefinitionName;
|
|
165
175
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/utils.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/utils.ts"],"names":[],"mappings":";;;;;AAWA,8CAA8G;AAC9G,qDAAgE;AAEhE,yCAOsB;AACtB,sDAA8B;AAC9B,gCAA6D;AAC7D,oCAAsH;AAGtH;;;;;;;;GAQG;AACH,SAAgB,kBAAkB,CAC9B,SAAqB,EACrB,UAAsB,EACtB,iBAA6B,EAC7B,YAAoB,EACpB,cAA+C,EAC/C,UAAkB,EAClB,WAAmB;IAEnB,+BAA+B;IAC/B,IAAI,cAAc,CAAC,WAAW,KAAK,IAAI,EAAE;QACrC,iCAAiC;QACjC,IAAI,oBAAoC,CAAC;QACzC,IAAI,UAAU,CAAC,UAAU,CAAC,mBAA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,CAAC,KAAK,CAAC,CAAC;QACnD,OAAO,SAAS,CAAC,WAAW,CAAC,mBAAc,CAAC,WAAW,CAAC,CAAC;QACzD,OAAO,SAAS,CAAC,WAAW,CAAC,mBAAc,CAAC,WAAW,CAAC,CAAC;QACzD,OAAO,SAAS,CAAC,WAAW,CAAC,mBAAc,CAAC,gBAAgB,CAAC,CAAC;KACjE;SAAM,IAAI,kBAAkB,CAAC,YAAY,KAAK,oBAAY,CAAC,sBAAsB,EAAE;QAChF,mBAAmB,GAAG,mBAAc,CAAC,KAAK,CAAC;QAE3C,OAAO,eAAe,CAAC,KAAK,CAAC;QAC7B,eAAe,CAAC,IAAI,GAAG,GAAG,8BAAsB,GAAG,mBAAc,CAAC,KAAK,EAAE,CAAC;QACzE,SAAS,CAAC,WAAW,CAAC,mBAAmB,CAAgB,CAAC,UAAU,CAAC,iBAAY,CAAC,cAAc,CAAC,CAC9F,cAAS,CAAC,MAAM,CACnB,GAAG,IAAI,CAAC;QACT,OAAO,SAAS,CAAC,WAAW,CAAC,mBAAc,CAAC,YAAY,CAAC,CAAC;QAC1D,SAAS,CAAC,UAAU,CAAC,iBAAY,CAAC,WAAW,CAAC,CAAC,cAAS,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;KAC3E;IACD,OAAO,mBAAmB,CAAC;AAC/B,CAAC;AA3BD,kEA2BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/ux-specification",
|
|
3
|
-
"version": "1.90.
|
|
3
|
+
"version": "1.90.27",
|
|
4
4
|
"displayName": "SAP Fiori tools - Specification",
|
|
5
5
|
"description": "SAP Fiori tools - Specification",
|
|
6
6
|
"files": [
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@sap-ux/annotation-converter": "0.3.39",
|
|
50
50
|
"@sap-ux/edmx-parser": "0.3.39",
|
|
51
51
|
"@sap-ux/vocabularies-types": "0.3.39",
|
|
52
|
-
"@sapui5/ts-types": "1.90.
|
|
52
|
+
"@sapui5/ts-types-esm": "1.90.14",
|
|
53
53
|
"@types/d3": "7.1.0",
|
|
54
54
|
"@types/jest": "26.0.23",
|
|
55
55
|
"@types/jquery": "3.5.6",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"cpy-cli": "3.1.1",
|
|
62
62
|
"d3": "7.1.1",
|
|
63
63
|
"deepmerge": "4.2.2",
|
|
64
|
-
"ejs": "3.1.
|
|
64
|
+
"ejs": "3.1.7",
|
|
65
65
|
"eslint": "7.32.0",
|
|
66
66
|
"eslint-formatter-multiple": "1.0.0",
|
|
67
67
|
"eslint-plugin-prettier": "3.4.1",
|