@sap/ux-specification 1.96.25 → 1.96.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/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-FreestylePage.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 +185 -55
- package/dist/index-min.js.map +3 -3
- package/dist/schemas/v2/AnalyticalListPageConfig.json +9 -0
- package/dist/schemas/v2/ListReportConfig.json +9 -0
- package/dist/schemas/v2/ObjectPageConfig.json +13 -4
- package/dist/schemas/v4/ListReportConfig.json +66 -43
- package/dist/schemas/v4/ObjectPageConfig.json +209 -59
- package/dist/scripts/to-json-schema.d.ts.map +1 -1
- package/dist/scripts/to-json-schema.js +9 -1
- package/dist/scripts/to-json-schema.js.map +1 -1
- package/dist/src/api.d.ts +1 -2
- package/dist/src/api.d.ts.map +1 -1
- package/dist/src/api.js +14 -6
- package/dist/src/api.js.map +1 -1
- package/dist/src/extensionLogger.d.ts +1 -24
- package/dist/src/extensionLogger.d.ts.map +1 -1
- package/dist/src/extensionLogger.js +5 -15
- package/dist/src/extensionLogger.js.map +1 -1
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/project.d.ts +1 -2
- package/dist/src/project.d.ts.map +1 -1
- package/dist/src/project.js.map +1 -1
- package/dist/src/sync/common/appProvider.d.ts +1 -3
- package/dist/src/sync/common/appProvider.d.ts.map +1 -1
- package/dist/src/sync/common/appProvider.js +3 -4
- package/dist/src/sync/common/appProvider.js.map +1 -1
- package/dist/src/sync/common/decoration/control.d.ts +1 -1
- package/dist/src/sync/common/decoration/control.d.ts.map +1 -1
- package/dist/src/sync/common/decoration/control.js +12 -12
- package/dist/src/sync/common/decoration/control.js.map +1 -1
- package/dist/src/sync/common/decoration/decorators.d.ts +1 -1
- package/dist/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/src/sync/common/decoration/flex.d.ts +1 -2
- package/dist/src/sync/common/decoration/flex.d.ts.map +1 -1
- package/dist/src/sync/common/decoration/flex.js.map +1 -1
- package/dist/src/sync/common/flexUtils.d.ts +1 -4
- package/dist/src/sync/common/flexUtils.d.ts.map +1 -1
- package/dist/src/sync/common/flexUtils.js.map +1 -1
- package/dist/src/sync/common/generate/objectPage.d.ts +12 -8
- package/dist/src/sync/common/generate/objectPage.d.ts.map +1 -1
- package/dist/src/sync/common/generate/objectPage.js +226 -115
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +20 -4
- package/dist/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/src/sync/common/generate/utils.js +93 -27
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/common/import/utils.d.ts +1 -2
- package/dist/src/sync/common/import/utils.d.ts.map +1 -1
- package/dist/src/sync/common/import/utils.js +4 -3
- package/dist/src/sync/common/import/utils.js.map +1 -1
- package/dist/src/sync/common/importProject.d.ts +1 -2
- package/dist/src/sync/common/importProject.d.ts.map +1 -1
- package/dist/src/sync/common/importProject.js +22 -23
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/index.d.ts +0 -1
- package/dist/src/sync/common/index.d.ts.map +1 -1
- package/dist/src/sync/common/index.js +0 -1
- package/dist/src/sync/common/index.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +2 -12
- package/dist/src/sync/common/utils.d.ts.map +1 -1
- package/dist/src/sync/common/utils.js +67 -61
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/application.d.ts.map +1 -1
- package/dist/src/sync/v2/application.js +1 -2
- package/dist/src/sync/v2/application.js.map +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js +1 -2
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Field.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/Field.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FilterBar.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/FilterBar.js +4 -5
- package/dist/src/sync/v2/export/controls/FilterBar.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.d.ts +2 -4
- package/dist/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.js +12 -13
- package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +2 -2
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +1 -3
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +2 -3
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +1 -2
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js +3 -3
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Table.d.ts +1 -2
- package/dist/src/sync/v2/export/controls/Table.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/Table.js +6 -6
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v2/export/controls/TableColumn.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/TableColumn.js +1 -1
- package/dist/src/sync/v2/export/export.d.ts +1 -1
- package/dist/src/sync/v2/export/export.d.ts.map +1 -1
- package/dist/src/sync/v2/export/export.js +6 -6
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/export/exportPage.d.ts +1 -2
- package/dist/src/sync/v2/export/exportPage.d.ts.map +1 -1
- package/dist/src/sync/v2/export/exportPage.js +1 -1
- package/dist/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/src/sync/v2/export/view-controller-generator.d.ts +1 -2
- package/dist/src/sync/v2/export/view-controller-generator.d.ts.map +1 -1
- package/dist/src/sync/v2/export/view-controller-generator.js +2 -2
- package/dist/src/sync/v2/export/view-controller-generator.js.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.d.ts +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.d.ts.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/generate.d.ts +1 -2
- package/dist/src/sync/v2/generate/generate.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/generate.js +3 -3
- package/dist/src/sync/v2/generate/generate.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.d.ts +1 -1
- package/dist/src/sync/v2/generate/listReport.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/listReport.js +5 -5
- package/dist/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.d.ts +1 -1
- package/dist/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.js +114 -78
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +3 -4
- package/dist/src/sync/v2/generate/utils.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/utils.js +53 -40
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/app/appProvider.d.ts +1 -3
- package/dist/src/sync/v2/import/app/appProvider.d.ts.map +1 -1
- package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.d.ts +1 -2
- package/dist/src/sync/v2/import/app/ovpProvider.d.ts.map +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
- package/dist/src/sync/v2/import/common/index.d.ts +1 -3
- package/dist/src/sync/v2/import/common/index.d.ts.map +1 -1
- package/dist/src/sync/v2/import/common/index.js +9 -9
- package/dist/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/src/sync/v2/import/controls/table.d.ts.map +1 -1
- package/dist/src/sync/v2/import/controls/table.js +3 -4
- package/dist/src/sync/v2/import/controls/table.js.map +1 -1
- package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +1 -2
- package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts.map +1 -1
- package/dist/src/sync/v2/import/pages/analyticalListPage.js +16 -16
- package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/listReport.d.ts +1 -2
- package/dist/src/sync/v2/import/pages/listReport.d.ts.map +1 -1
- package/dist/src/sync/v2/import/pages/listReport.js +15 -15
- package/dist/src/sync/v2/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.d.ts +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +31 -31
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v2/import/utils.d.ts.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/v4/application.d.ts +3 -0
- package/dist/src/sync/v4/application.d.ts.map +1 -1
- package/dist/src/sync/v4/application.js +15 -3
- package/dist/src/sync/v4/application.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.d.ts +5 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.js +7 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.d.ts +9 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.js +42 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageForm.d.ts +16 -0
- package/dist/src/sync/v4/export/controls/ObjectPageForm.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageForm.js +48 -0
- package/dist/src/sync/v4/export/controls/ObjectPageForm.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFormAction.d.ts +10 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFormAction.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFormAction.js +68 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFormAction.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts +9 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.js +42 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageTable.js +4 -4
- package/dist/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +1 -2
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js +0 -10
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js +9 -9
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js.map +1 -1
- package/dist/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/Table.js +2 -1
- package/dist/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ToolBar.d.ts +2 -2
- package/dist/src/sync/v4/export/controls/ToolBar.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts +6 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.js +33 -9
- package/dist/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- package/dist/src/sync/v4/export/controls/index.d.ts +6 -0
- package/dist/src/sync/v4/export/controls/index.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/index.js +6 -0
- package/dist/src/sync/v4/export/controls/index.js.map +1 -1
- package/dist/src/sync/v4/export/export.d.ts +1 -3
- package/dist/src/sync/v4/export/export.d.ts.map +1 -1
- package/dist/src/sync/v4/export/export.js +36 -36
- package/dist/src/sync/v4/export/export.js.map +1 -1
- package/dist/src/sync/v4/export/exportCustomColumn.d.ts +1 -1
- package/dist/src/sync/v4/export/exportCustomColumn.d.ts.map +1 -1
- package/dist/src/sync/v4/export/exportCustomColumn.js +3 -4
- package/dist/src/sync/v4/export/exportCustomColumn.js.map +1 -1
- package/dist/src/sync/v4/export/manifest.js +1 -1
- package/dist/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +1 -0
- package/dist/src/sync/v4/export/pages/ObjectPage.d.ts.map +1 -1
- package/dist/src/sync/v4/export/pages/ObjectPage.js.map +1 -1
- package/dist/src/sync/v4/export/types.d.ts +1 -3
- package/dist/src/sync/v4/export/types.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/freestylePage.d.ts +1 -1
- package/dist/src/sync/v4/generate/freestylePage.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/generate.d.ts +2 -3
- package/dist/src/sync/v4/generate/generate.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/generate.js +2 -2
- package/dist/src/sync/v4/generate/generate.js.map +1 -1
- package/dist/src/sync/v4/generate/listReport.d.ts +1 -1
- package/dist/src/sync/v4/generate/listReport.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/listReport.js +137 -120
- package/dist/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.js +245 -159
- package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/app/appProvider.d.ts +1 -2
- package/dist/src/sync/v4/import/app/appProvider.d.ts.map +1 -1
- package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v4/import/app/baseAppProvider.d.ts +2 -4
- package/dist/src/sync/v4/import/app/baseAppProvider.d.ts.map +1 -1
- package/dist/src/sync/v4/import/app/baseAppProvider.js +4 -4
- package/dist/src/sync/v4/import/app/baseAppProvider.js.map +1 -1
- package/dist/src/sync/v4/import/app/freestyleProvider.d.ts +1 -2
- package/dist/src/sync/v4/import/app/freestyleProvider.d.ts.map +1 -1
- package/dist/src/sync/v4/import/app/freestyleProvider.js.map +1 -1
- package/dist/src/sync/v4/import/fragment.d.ts +1 -2
- package/dist/src/sync/v4/import/fragment.d.ts.map +1 -1
- package/dist/src/sync/v4/import/fragment.js.map +1 -1
- package/dist/src/sync/v4/import/pages/listReport.d.ts +1 -2
- package/dist/src/sync/v4/import/pages/listReport.d.ts.map +1 -1
- package/dist/src/sync/v4/import/pages/listReport.js +36 -36
- package/dist/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v4/import/pages/objectPage.d.ts +3 -3
- package/dist/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v4/import/pages/objectPage.js +125 -28
- package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v4/utils/StableIdHelper.d.ts +4 -0
- package/dist/src/sync/v4/utils/StableIdHelper.d.ts.map +1 -1
- package/dist/src/sync/v4/utils/StableIdHelper.js +3 -11
- package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/src/sync/v4/utils/utils.d.ts +5 -6
- package/dist/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/src/sync/v4/utils/utils.js +109 -68
- package/dist/src/sync/v4/utils/utils.js.map +1 -1
- package/package.json +4 -19
- package/dist/src/apiTypes.d.ts +0 -335
- package/dist/src/apiTypes.d.ts.map +0 -1
- package/dist/src/apiTypes.js +0 -25
- package/dist/src/apiTypes.js.map +0 -1
- package/dist/src/sync/common/types.d.ts +0 -306
- package/dist/src/sync/common/types.d.ts.map +0 -1
- package/dist/src/sync/common/types.js +0 -176
- package/dist/src/sync/common/types.js.map +0 -1
|
@@ -16,13 +16,13 @@ const common_1 = require("../../common");
|
|
|
16
16
|
* @param selectionFieldsAnnotation - the UI.SelectionField annotation
|
|
17
17
|
*/
|
|
18
18
|
function addSelectionFields(entityType, appSchema, selectionFieldsAnnotation) {
|
|
19
|
-
const selectionFieldsDefinition = appSchema
|
|
19
|
+
const selectionFieldsDefinition = appSchema.definitions.SelectionFields;
|
|
20
20
|
selectionFieldsDefinition.additionalProperties = false;
|
|
21
21
|
selectionFieldsDefinition.properties = {};
|
|
22
22
|
if (!entityType) {
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
|
-
selectionFieldsDefinition[
|
|
25
|
+
selectionFieldsDefinition[ux_specification_types_1.SchemaTag.annotationPath] = common_1.createAnnotationPath(entityType.fullyQualifiedName, "com.sap.vocabularies.UI.v1.SelectionFields" /* SelectionFields */);
|
|
26
26
|
if (!selectionFieldsAnnotation) {
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
@@ -33,21 +33,33 @@ function addSelectionFields(entityType, appSchema, selectionFieldsAnnotation) {
|
|
|
33
33
|
if (selectionField.type === 'PropertyPath') {
|
|
34
34
|
description = common_1.getLabelForPropertyPath(selectionField, entityType);
|
|
35
35
|
}
|
|
36
|
-
selectionFieldsDefinition
|
|
36
|
+
selectionFieldsDefinition.properties[fieldDefinition] = {
|
|
37
37
|
$ref: common_1.DEFINITION_LINK_PREFIX + fieldDefinition
|
|
38
38
|
};
|
|
39
|
-
selectionFieldsDefinition
|
|
39
|
+
selectionFieldsDefinition.properties[fieldDefinition][ux_specification_types_1.SchemaTag.propertyIndex] = i;
|
|
40
40
|
const dataType = common_1.determineDataType(selectionField);
|
|
41
|
-
appSchema
|
|
41
|
+
appSchema.definitions[fieldDefinition] = {
|
|
42
42
|
type: 'object',
|
|
43
43
|
properties: {},
|
|
44
44
|
description,
|
|
45
|
-
annotationPath: `${selectionFieldsDefinition[common_1.SchemaTag.annotationPath]}/${i}`,
|
|
46
|
-
isViewNode: true,
|
|
47
45
|
additionalProperties: false,
|
|
48
|
-
annotationType: selectionField?.type,
|
|
49
46
|
...(dataType && { dataType })
|
|
50
47
|
};
|
|
48
|
+
appSchema.definitions[fieldDefinition][ux_specification_types_1.SchemaTag.isViewNode] = true;
|
|
49
|
+
appSchema.definitions[fieldDefinition][ux_specification_types_1.SchemaTag.keys] = [
|
|
50
|
+
{ name: ux_specification_types_1.SchemaKeyName.value, value: `${selectionField.value}` }
|
|
51
|
+
];
|
|
52
|
+
if (selectionField.$target?.fullyQualifiedName.indexOf('@') > -1) {
|
|
53
|
+
appSchema.definitions[fieldDefinition][ux_specification_types_1.SchemaTag.target] = selectionField.$target.fullyQualifiedName
|
|
54
|
+
.split('@')[0]
|
|
55
|
+
.split('/')[0];
|
|
56
|
+
}
|
|
57
|
+
else if (selectionField.$target?.fullyQualifiedName) {
|
|
58
|
+
appSchema.definitions[fieldDefinition][ux_specification_types_1.SchemaTag.target] =
|
|
59
|
+
selectionField.$target.fullyQualifiedName.split('/')[0];
|
|
60
|
+
}
|
|
61
|
+
appSchema.definitions[fieldDefinition][ux_specification_types_1.SchemaTag.annotationType] = selectionField?.type;
|
|
62
|
+
appSchema.definitions[fieldDefinition][ux_specification_types_1.SchemaTag.annotationPath] = `${selectionFieldsDefinition[ux_specification_types_1.SchemaTag.annotationPath]}/${i}`;
|
|
51
63
|
i++;
|
|
52
64
|
});
|
|
53
65
|
}
|
|
@@ -70,25 +82,25 @@ function defineActions(appSchema, schemaIdForActions, annotations, targetAnnotat
|
|
|
70
82
|
const actions = appSchema.definitions[schemaIdForActions];
|
|
71
83
|
actions.properties = {};
|
|
72
84
|
actions.additionalProperties = false;
|
|
73
|
-
const chartAnnotation = annotations[targetAnnotation?.split(`${
|
|
85
|
+
const chartAnnotation = annotations[targetAnnotation?.split(`${ux_specification_types_1.UIVOCABULARY}.`)[1]];
|
|
74
86
|
if (chartAnnotation && chartAnnotation.Actions) {
|
|
75
87
|
let i = 0;
|
|
76
88
|
chartAnnotation.Actions.forEach((actionRecord) => {
|
|
77
|
-
const actionDefinition = common_1.prepareRef(`${
|
|
89
|
+
const actionDefinition = common_1.prepareRef(`${ux_specification_types_1.DefinitionName.ChartToolBarAction}<${actionRecord.Action}>`);
|
|
78
90
|
const description = common_1.getDataFieldDescription(actionRecord, entityType);
|
|
79
|
-
const prefix = actionRecord.$Type.split(`${
|
|
91
|
+
const prefix = actionRecord.$Type.split(`${ux_specification_types_1.UIVOCABULARY}.`)[1];
|
|
80
92
|
const action = (actions.properties[`${prefix}::${actionRecord.Action}`] = {
|
|
81
93
|
$ref: common_1.DEFINITION_LINK_PREFIX + actionDefinition,
|
|
82
94
|
description
|
|
83
95
|
});
|
|
84
96
|
//Add tags
|
|
85
|
-
action[
|
|
86
|
-
action[
|
|
87
|
-
action[
|
|
97
|
+
action[ux_specification_types_1.SchemaTag.propertyIndex] = i;
|
|
98
|
+
action[ux_specification_types_1.SchemaTag.annotationType] = actionRecord.$Type;
|
|
99
|
+
action[ux_specification_types_1.SchemaTag.annotationPath] = `/${actionRecord.fullyQualifiedName}`;
|
|
88
100
|
//as ChartToolBarAction is an empty object, copy ViewToolBarAction and remove properties
|
|
89
|
-
appSchema.definitions[actionDefinition] = JSON.parse(JSON.stringify(appSchema.definitions[
|
|
101
|
+
appSchema.definitions[actionDefinition] = JSON.parse(JSON.stringify(appSchema.definitions[ux_specification_types_1.DefinitionName.ViewToolBarAction]));
|
|
90
102
|
appSchema.definitions[actionDefinition].properties = {};
|
|
91
|
-
appSchema.definitions[actionDefinition][
|
|
103
|
+
appSchema.definitions[actionDefinition][ux_specification_types_1.SchemaTag.annotationPath] = actionRecord.fullyQualifiedName;
|
|
92
104
|
i++;
|
|
93
105
|
});
|
|
94
106
|
}
|
|
@@ -112,7 +124,7 @@ function findTheRightVisualization(allVisualizations, alias, namespace, viewKey,
|
|
|
112
124
|
}
|
|
113
125
|
else if (viewKey === 'secondary') {
|
|
114
126
|
visualizationObject = allVisualizations.find((vis) => {
|
|
115
|
-
return vis['value'].indexOf(
|
|
127
|
+
return vis['value'].indexOf(ux_specification_types_1.FacetBase.LineItem) > -1;
|
|
116
128
|
});
|
|
117
129
|
}
|
|
118
130
|
else {
|
|
@@ -128,7 +140,7 @@ function findTheRightVisualization(allVisualizations, alias, namespace, viewKey,
|
|
|
128
140
|
targetAnnotation = `/${namespace}/${visualizationObject['$target'].fullyQualifiedName.split(namespace)[1]}`;
|
|
129
141
|
}
|
|
130
142
|
else if (visualization) {
|
|
131
|
-
targetAnnotation = `/${namespace}/` + visualization.replace(`UI`,
|
|
143
|
+
targetAnnotation = `/${namespace}/` + visualization.replace(`UI`, ux_specification_types_1.UIVOCABULARY);
|
|
132
144
|
}
|
|
133
145
|
}
|
|
134
146
|
return { visualization, targetAnnotation };
|
|
@@ -164,14 +176,14 @@ function analyzeChartAnnotation(namespace, annotationPath, annotationAVT, viewKe
|
|
|
164
176
|
function analyzeViewAnnotation(annotationPath, uIAnnotations, generateParameters, viewKey, visualizationType) {
|
|
165
177
|
let namespace = undefined, title;
|
|
166
178
|
const UILINEITEM = '@UI.LineItem';
|
|
167
|
-
const annotationInManifest = annotationPath?.split(`${
|
|
179
|
+
const annotationInManifest = annotationPath?.split(`${ux_specification_types_1.UIVOCABULARY}.`)[1];
|
|
168
180
|
const annotationAVT = annotationInManifest && uIAnnotations[annotationInManifest];
|
|
169
181
|
if (!annotationAVT) {
|
|
170
182
|
return { visualization: undefined, targetAnnotation: undefined, namespace, title: `View (${viewKey})` };
|
|
171
183
|
}
|
|
172
184
|
title = annotationAVT.Text;
|
|
173
185
|
namespace = annotationAVT.fullyQualifiedName.split('@com.sap.vocabularies.UI.v1.')[0];
|
|
174
|
-
const alias = common_1.findAlias(
|
|
186
|
+
const alias = common_1.findAlias(ux_specification_types_1.UIVOCABULARY, generateParameters.serviceAVT);
|
|
175
187
|
if (annotationInManifest.startsWith('PresentationVariant')) {
|
|
176
188
|
const { visualization, targetAnnotation } = findTheRightVisualization(annotationAVT.Visualizations, alias, namespace, viewKey, visualizationType);
|
|
177
189
|
title = title || `View (${viewKey})`;
|
|
@@ -181,7 +193,7 @@ function analyzeViewAnnotation(annotationPath, uIAnnotations, generateParameters
|
|
|
181
193
|
let { visualization, targetAnnotation } = findTheRightVisualization(annotationAVT.PresentationVariant.Visualizations, alias, namespace, viewKey, visualizationType);
|
|
182
194
|
if (!visualization) {
|
|
183
195
|
visualization = UILINEITEM; // default visualization
|
|
184
|
-
targetAnnotation = `/${namespace}/` + visualization.replace(`UI`,
|
|
196
|
+
targetAnnotation = `/${namespace}/` + visualization.replace(`UI`, ux_specification_types_1.UIVOCABULARY); // default targetAnnotation
|
|
185
197
|
}
|
|
186
198
|
title = title || `View (${viewKey})`;
|
|
187
199
|
return { visualization, targetAnnotation, namespace, title };
|
|
@@ -211,25 +223,26 @@ function analyzeViewAnnotation(annotationPath, uIAnnotations, generateParameters
|
|
|
211
223
|
* @param annotations - UI annotations, as determined by AVT
|
|
212
224
|
*/
|
|
213
225
|
function addALPChartView(appSchema, chartAnnotationPath, targetAnnotation, annotations) {
|
|
214
|
-
const chartView = appSchema.definitions[
|
|
215
|
-
appSchema.definitions[
|
|
216
|
-
delete appSchema.definitions[
|
|
226
|
+
const chartView = appSchema.definitions[ux_specification_types_1.DefinitionName.ALPChartView];
|
|
227
|
+
appSchema.definitions[ux_specification_types_1.DefinitionName.ALPChart] = JSON.parse(JSON.stringify(chartView));
|
|
228
|
+
delete appSchema.definitions[ux_specification_types_1.DefinitionName.ALPChart][ux_specification_types_1.SchemaTag.isViewNode];
|
|
217
229
|
if (targetAnnotation) {
|
|
218
|
-
appSchema.definitions[
|
|
230
|
+
appSchema.definitions[ux_specification_types_1.DefinitionName.ALPChart][ux_specification_types_1.SchemaTag.annotationPath] = targetAnnotation;
|
|
219
231
|
}
|
|
220
|
-
appSchema.definitions[
|
|
221
|
-
chartView.properties.annotationPath[
|
|
232
|
+
appSchema.definitions[ux_specification_types_1.DefinitionName.ALPChart].properties.annotationPath[ux_specification_types_1.SchemaTag.hidden] = true;
|
|
233
|
+
chartView.properties.annotationPath[ux_specification_types_1.SchemaTag.hidden] = true;
|
|
222
234
|
chartView.additionalProperties = false;
|
|
223
235
|
chartView.description = `Chart (key: primary)`;
|
|
224
236
|
chartView.title = `Chart`;
|
|
225
|
-
chartView.$ref = `${common_1.DEFINITION_LINK_PREFIX}${
|
|
237
|
+
chartView.$ref = `${common_1.DEFINITION_LINK_PREFIX}${ux_specification_types_1.DefinitionName.ALPChart}`;
|
|
226
238
|
if (chartAnnotationPath) {
|
|
227
|
-
const viewAnnotation = chartAnnotationPath.split(
|
|
239
|
+
const viewAnnotation = chartAnnotationPath.split(ux_specification_types_1.UIVOCABULARYDOT)[1];
|
|
228
240
|
const pathParts = annotations[viewAnnotation].fullyQualifiedName.split('@');
|
|
229
|
-
chartView[
|
|
241
|
+
chartView[ux_specification_types_1.SchemaTag.annotationPath] = `/${pathParts[0]}/@${pathParts[1]}`;
|
|
230
242
|
}
|
|
231
|
-
chartView[
|
|
232
|
-
chartView[
|
|
243
|
+
chartView[ux_specification_types_1.SchemaTag.artifactType] = ux_specification_types_1.ArtifactType.Manifest;
|
|
244
|
+
chartView[ux_specification_types_1.SchemaTag.key] = 'primary';
|
|
245
|
+
chartView[ux_specification_types_1.SchemaTag.keys] = [{ name: ux_specification_types_1.SchemaKeyName.key, value: 'primary' }];
|
|
233
246
|
}
|
|
234
247
|
/**
|
|
235
248
|
* Adds the ALP views to the app-specific schema
|
|
@@ -243,49 +256,49 @@ function addALPChartView(appSchema, chartAnnotationPath, targetAnnotation, annot
|
|
|
243
256
|
function addALPViews(appSchema, viewsPaths, entityType, generateParameters, templateAnnotation, v4Page, tableDefinitionName) {
|
|
244
257
|
const annotations = entityType.annotations.UI;
|
|
245
258
|
//1. Chart View
|
|
246
|
-
const chartAnnotationPath = viewsPaths?.[0]?.['primary']?.[0]?.[
|
|
259
|
+
const chartAnnotationPath = viewsPaths?.[0]?.['primary']?.[0]?.[ux_specification_types_1.SchemaTag.annotationPath];
|
|
247
260
|
const { targetAnnotation } = analyzeViewAnnotation(chartAnnotationPath, annotations, generateParameters, 'primary');
|
|
248
261
|
addALPChartView(appSchema, chartAnnotationPath, targetAnnotation, annotations);
|
|
249
262
|
// Copy toolbar
|
|
250
263
|
const schemaIdForActions = `Actions<ALPChart>`;
|
|
251
|
-
appSchema.definitions[
|
|
264
|
+
appSchema.definitions[ux_specification_types_1.DefinitionName.ViewChartToolBar].properties.actions['$ref'] =
|
|
252
265
|
common_1.DEFINITION_LINK_PREFIX + schemaIdForActions;
|
|
253
266
|
defineActions(appSchema, schemaIdForActions, annotations, targetAnnotation, entityType);
|
|
254
267
|
//2. Table View
|
|
255
|
-
const { visualization: tableVisualization, targetAnnotation: target } = analyzeViewAnnotation(viewsPaths?.[0]?.['secondary']?.[0]?.[
|
|
268
|
+
const { visualization: tableVisualization, targetAnnotation: target } = analyzeViewAnnotation(viewsPaths?.[0]?.['secondary']?.[0]?.[ux_specification_types_1.SchemaTag.annotationPath], annotations, generateParameters, 'secondary');
|
|
256
269
|
const tableDefinition = appSchema.definitions[tableDefinitionName];
|
|
257
270
|
if (tableVisualization || templateAnnotation) {
|
|
258
|
-
tableDefinition.properties.toolBar['$ref'] = `${common_1.DEFINITION_LINK_PREFIX}${
|
|
271
|
+
tableDefinition.properties.toolBar['$ref'] = `${common_1.DEFINITION_LINK_PREFIX}${ux_specification_types_1.DefinitionName.ToolBarLR}`;
|
|
259
272
|
// Switch from generic column to specific definition
|
|
260
273
|
tableDefinition.properties['columns'] = {
|
|
261
|
-
$ref: common_1.DEFINITION_LINK_PREFIX +
|
|
274
|
+
$ref: common_1.DEFINITION_LINK_PREFIX + ux_specification_types_1.DefinitionName.LineItems
|
|
262
275
|
};
|
|
263
|
-
tableDefinition.properties.annotationPath[
|
|
276
|
+
tableDefinition.properties.annotationPath[ux_specification_types_1.SchemaTag.hidden] = true;
|
|
264
277
|
}
|
|
265
278
|
else {
|
|
266
279
|
tableDefinition.properties = {};
|
|
267
280
|
}
|
|
268
|
-
const tableView = appSchema.definitions[
|
|
269
|
-
appSchema.definitions[
|
|
270
|
-
delete appSchema.definitions[
|
|
281
|
+
const tableView = appSchema.definitions[ux_specification_types_1.DefinitionName.ALPTableView];
|
|
282
|
+
appSchema.definitions[ux_specification_types_1.DefinitionName.ALPTable] = JSON.parse(JSON.stringify(tableView));
|
|
283
|
+
delete appSchema.definitions[ux_specification_types_1.DefinitionName.ALPTable][ux_specification_types_1.SchemaTag.isViewNode];
|
|
271
284
|
tableView.additionalProperties = false;
|
|
272
285
|
tableView.description = `Table (key: secondary)`;
|
|
273
286
|
tableView.title = `Table`;
|
|
274
287
|
if (tableVisualization) {
|
|
275
288
|
delete tableView.properties;
|
|
276
|
-
tableView.$ref = `${common_1.DEFINITION_LINK_PREFIX}${
|
|
289
|
+
tableView.$ref = `${common_1.DEFINITION_LINK_PREFIX}${ux_specification_types_1.DefinitionName.ALPTable}`;
|
|
277
290
|
}
|
|
278
291
|
else if (!templateAnnotation) {
|
|
279
292
|
tableView.properties = {};
|
|
280
293
|
}
|
|
281
|
-
tableView[
|
|
294
|
+
tableView[ux_specification_types_1.SchemaTag.artifactType] = ux_specification_types_1.ArtifactType.Manifest;
|
|
282
295
|
let annotationTerm, viewAnnotation;
|
|
283
|
-
if (tableVisualization && tableVisualization.indexOf(
|
|
296
|
+
if (tableVisualization && tableVisualization.indexOf(ux_specification_types_1.FacetBase.LineItem) > -1) {
|
|
284
297
|
annotationTerm = tableVisualization.split('.')[1];
|
|
285
|
-
viewAnnotation = viewsPaths[0]['secondary'][0].annotationPath.split(
|
|
298
|
+
viewAnnotation = viewsPaths[0]['secondary'][0].annotationPath.split(ux_specification_types_1.UIVOCABULARYDOT)[1];
|
|
286
299
|
}
|
|
287
300
|
else if (templateAnnotation) {
|
|
288
|
-
annotationTerm = viewAnnotation = templateAnnotation.split(
|
|
301
|
+
annotationTerm = viewAnnotation = templateAnnotation.split(ux_specification_types_1.UIVOCABULARYDOT)[1];
|
|
289
302
|
}
|
|
290
303
|
if (annotationTerm) {
|
|
291
304
|
const dataForLineItem = {
|
|
@@ -293,19 +306,22 @@ function addALPViews(appSchema, viewsPaths, entityType, generateParameters, temp
|
|
|
293
306
|
lineItemAnnotation: entityType.annotations.UI[annotationTerm],
|
|
294
307
|
entityType,
|
|
295
308
|
oDataServiceAVT: generateParameters.serviceAVT,
|
|
296
|
-
lineItemId:
|
|
309
|
+
lineItemId: ux_specification_types_1.DefinitionName.LineItems
|
|
297
310
|
};
|
|
298
|
-
utils_1.addLineItemsTypeToSchema(dataForLineItem,
|
|
299
|
-
|
|
311
|
+
utils_1.addLineItemsTypeToSchema(dataForLineItem, ux_specification_types_1.DefinitionName.ViewTableColumn);
|
|
312
|
+
if (target) {
|
|
313
|
+
appSchema.definitions[ux_specification_types_1.DefinitionName.ALPTable][ux_specification_types_1.SchemaTag.annotationPath] = target;
|
|
314
|
+
}
|
|
300
315
|
const pathParts = annotations[viewAnnotation].fullyQualifiedName.split('@');
|
|
301
|
-
tableView[
|
|
302
|
-
tableView[
|
|
316
|
+
tableView[ux_specification_types_1.SchemaTag.annotationPath] = `/${pathParts[0]}/@${pathParts[1]}`;
|
|
317
|
+
tableView[ux_specification_types_1.SchemaTag.key] = 'secondary';
|
|
318
|
+
tableView[ux_specification_types_1.SchemaTag.keys] = [{ name: ux_specification_types_1.SchemaKeyName.key, value: 'secondary' }];
|
|
303
319
|
}
|
|
304
320
|
utils_1.addCustomColumnDefinition(appSchema, v4Page, generateParameters.logger);
|
|
305
321
|
// Table toolbar actions with custom actions
|
|
306
|
-
const schemaIdForToolbarActions = `${
|
|
322
|
+
const schemaIdForToolbarActions = `${ux_specification_types_1.DefinitionName.Actions}<${common_1.prepareRef(ux_specification_types_1.DefinitionName.LineItems)}>`;
|
|
307
323
|
utils_1.addCustomActionDefinition(appSchema, v4Page, generateParameters.logger, undefined, schemaIdForToolbarActions);
|
|
308
|
-
utils_1.addEnumForActionAnchor(appSchema, schemaIdForToolbarActions,
|
|
324
|
+
utils_1.addEnumForActionAnchor(appSchema, schemaIdForToolbarActions, ux_specification_types_1.DefinitionName.CustomActionPosition);
|
|
309
325
|
}
|
|
310
326
|
/**
|
|
311
327
|
* Modifies the app schema, adds the right line chart settings
|
|
@@ -314,21 +330,21 @@ function addALPViews(appSchema, viewsPaths, entityType, generateParameters, temp
|
|
|
314
330
|
* @returns the ID for the chart view in schema
|
|
315
331
|
*/
|
|
316
332
|
function addViewChartDefinitions(inputParameters, annotations) {
|
|
317
|
-
const idForChart = `${
|
|
318
|
-
inputParameters.appSchema.definitions[idForChart] = JSON.parse(JSON.stringify(inputParameters.appSchema.definitions[
|
|
319
|
-
delete inputParameters.appSchema.definitions[idForChart][
|
|
320
|
-
inputParameters.appSchema.definitions[idForChart][
|
|
333
|
+
const idForChart = `${ux_specification_types_1.DefinitionName.LRChartView}<${inputParameters.viewKey}>`;
|
|
334
|
+
inputParameters.appSchema.definitions[idForChart] = JSON.parse(JSON.stringify(inputParameters.appSchema.definitions[ux_specification_types_1.DefinitionName.LRChartView]));
|
|
335
|
+
delete inputParameters.appSchema.definitions[idForChart][ux_specification_types_1.SchemaTag.isViewNode];
|
|
336
|
+
inputParameters.appSchema.definitions[idForChart][ux_specification_types_1.SchemaTag.annotationPath] = inputParameters.targetAnnotation;
|
|
321
337
|
if (inputParameters.navPropName) {
|
|
322
338
|
inputParameters.appSchema.definitions[idForChart]['navigationProperty'] = inputParameters.navPropName;
|
|
323
339
|
}
|
|
324
340
|
//Copy toolbar
|
|
325
|
-
const idForToolbar = `${
|
|
326
|
-
inputParameters.appSchema.definitions[idForToolbar] = JSON.parse(JSON.stringify(inputParameters.appSchema.definitions[
|
|
341
|
+
const idForToolbar = `${ux_specification_types_1.DefinitionName.ViewChartToolBar}<${inputParameters.viewKey}>`;
|
|
342
|
+
inputParameters.appSchema.definitions[idForToolbar] = JSON.parse(JSON.stringify(inputParameters.appSchema.definitions[ux_specification_types_1.DefinitionName.ViewChartToolBar]));
|
|
327
343
|
inputParameters.appSchema.definitions[idForChart]['properties'].toolBar.$ref = `${common_1.DEFINITION_LINK_PREFIX}${idForToolbar}`;
|
|
328
344
|
//Copy actions
|
|
329
|
-
const schemaIdForActions = `${
|
|
345
|
+
const schemaIdForActions = `${ux_specification_types_1.DefinitionName.Actions}<${inputParameters.viewKey}>`;
|
|
330
346
|
defineActions(inputParameters.appSchema, schemaIdForActions, annotations, inputParameters.targetAnnotation, inputParameters.targetEntityType);
|
|
331
|
-
inputParameters.appSchema.definitions[idForToolbar]['properties'][
|
|
347
|
+
inputParameters.appSchema.definitions[idForToolbar]['properties'][ux_specification_types_1.PropertyName.actions]['$ref'] = `${common_1.DEFINITION_LINK_PREFIX}${schemaIdForActions}`;
|
|
332
348
|
return idForChart;
|
|
333
349
|
}
|
|
334
350
|
/**
|
|
@@ -342,9 +358,9 @@ function addViewChartDefinitions(inputParameters, annotations) {
|
|
|
342
358
|
*/
|
|
343
359
|
function addViewChart(inputParameters, UIAnnotations, appSchema, viewsDefinition, viewKey, title) {
|
|
344
360
|
const idForChart = addViewChartDefinitions(inputParameters, UIAnnotations);
|
|
345
|
-
appSchema.definitions[idForChart].properties.annotationPath[
|
|
346
|
-
appSchema.definitions[idForChart].properties.index[
|
|
347
|
-
appSchema.definitions[idForChart].properties.entitySet[
|
|
361
|
+
appSchema.definitions[idForChart].properties.annotationPath[ux_specification_types_1.SchemaTag.hidden] = true;
|
|
362
|
+
appSchema.definitions[idForChart].properties.index[ux_specification_types_1.SchemaTag.hidden] = true;
|
|
363
|
+
appSchema.definitions[idForChart].properties.entitySet[ux_specification_types_1.SchemaTag.hidden] = true;
|
|
348
364
|
const titleOnHover = `Chart View (key: ${viewKey})`;
|
|
349
365
|
viewsDefinition.properties[viewKey] = {
|
|
350
366
|
$ref: `${common_1.DEFINITION_LINK_PREFIX}${idForChart}`,
|
|
@@ -361,16 +377,16 @@ function addViewChart(inputParameters, UIAnnotations, appSchema, viewsDefinition
|
|
|
361
377
|
* @param {GenerateAppSchemaParameters} generateParameters - list of API input parameters
|
|
362
378
|
*/
|
|
363
379
|
function addViewLineItems(inputParameters, viewsDefinition, visualization, templateAnnotation, generateParameters) {
|
|
364
|
-
const tableId = `${
|
|
365
|
-
const viewId = `${
|
|
366
|
-
const lrTableView = common_1.parseSchemaDefinition(
|
|
367
|
-
delete lrTableView[
|
|
368
|
-
lrTableView[
|
|
380
|
+
const tableId = `${ux_specification_types_1.DefinitionName.LRTableView}<${inputParameters.viewKey}>`;
|
|
381
|
+
const viewId = `${ux_specification_types_1.DefinitionName.LineItemsOfView}::${inputParameters.viewKey}`;
|
|
382
|
+
const lrTableView = common_1.parseSchemaDefinition(ux_specification_types_1.DefinitionName.LRTableView, inputParameters.viewKey, inputParameters.appSchema);
|
|
383
|
+
delete lrTableView[ux_specification_types_1.SchemaTag.isViewNode];
|
|
384
|
+
lrTableView[ux_specification_types_1.SchemaTag.annotationPath] = inputParameters.targetAnnotation;
|
|
369
385
|
if (inputParameters.navPropName) {
|
|
370
386
|
lrTableView['navigationProperty'] = inputParameters.navPropName;
|
|
371
387
|
}
|
|
372
388
|
//Copy toolbar
|
|
373
|
-
common_1.addDefinitionRef(lrTableView.properties.toolBar,
|
|
389
|
+
common_1.addDefinitionRef(lrTableView.properties.toolBar, ux_specification_types_1.DefinitionName.ToolBar, viewId);
|
|
374
390
|
const title = `Table View (key: ${inputParameters.viewKey})`;
|
|
375
391
|
viewsDefinition.properties[inputParameters.viewKey] = {
|
|
376
392
|
$ref: `${common_1.DEFINITION_LINK_PREFIX}${tableId}`,
|
|
@@ -378,10 +394,10 @@ function addViewLineItems(inputParameters, viewsDefinition, visualization, templ
|
|
|
378
394
|
title
|
|
379
395
|
};
|
|
380
396
|
common_1.addDefinitionRef(lrTableView.properties.columns, viewId);
|
|
381
|
-
lrTableView.properties.annotationPath[
|
|
382
|
-
lrTableView.properties.index[
|
|
383
|
-
lrTableView.properties.entitySet[
|
|
384
|
-
const annotationTerm = visualization?.split('.')[1] || templateAnnotation.split(
|
|
397
|
+
lrTableView.properties.annotationPath[ux_specification_types_1.SchemaTag.hidden] = true;
|
|
398
|
+
lrTableView.properties.index[ux_specification_types_1.SchemaTag.hidden] = true;
|
|
399
|
+
lrTableView.properties.entitySet[ux_specification_types_1.SchemaTag.hidden] = true;
|
|
400
|
+
const annotationTerm = visualization?.split('.')[1] || templateAnnotation.split(ux_specification_types_1.UIVOCABULARYDOT)[1];
|
|
385
401
|
const dataForLineItem = {
|
|
386
402
|
appSchema: inputParameters.appSchema,
|
|
387
403
|
lineItemAnnotation: inputParameters.targetEntityType.annotations.UI[annotationTerm],
|
|
@@ -389,7 +405,7 @@ function addViewLineItems(inputParameters, viewsDefinition, visualization, templ
|
|
|
389
405
|
oDataServiceAVT: generateParameters.serviceAVT,
|
|
390
406
|
lineItemId: viewId
|
|
391
407
|
};
|
|
392
|
-
utils_1.addLineItemsTypeToSchema(dataForLineItem,
|
|
408
|
+
utils_1.addLineItemsTypeToSchema(dataForLineItem, ux_specification_types_1.DefinitionName.ViewTableColumn, ux_specification_types_1.DefinitionName.ViewCustomColumn, ux_specification_types_1.DefinitionName.ViewCustomAction);
|
|
393
409
|
}
|
|
394
410
|
/**
|
|
395
411
|
* Adds the schema tags to a given view
|
|
@@ -399,12 +415,13 @@ function addViewLineItems(inputParameters, viewsDefinition, visualization, templ
|
|
|
399
415
|
* @param view - the given view
|
|
400
416
|
*/
|
|
401
417
|
function addTagsToView(viewsDefinition, viewKey, namespace, view) {
|
|
402
|
-
viewsDefinition.properties[viewKey][
|
|
403
|
-
viewsDefinition.properties[viewKey][
|
|
404
|
-
? `/${namespace}/@${view[
|
|
418
|
+
viewsDefinition.properties[viewKey][ux_specification_types_1.SchemaTag.isViewNode] = true;
|
|
419
|
+
viewsDefinition.properties[viewKey][ux_specification_types_1.SchemaTag.annotationPath] = namespace
|
|
420
|
+
? `/${namespace}/@${view[ux_specification_types_1.SchemaTag.annotationPath]}`
|
|
405
421
|
: undefined;
|
|
406
|
-
viewsDefinition.properties[viewKey][
|
|
407
|
-
viewsDefinition.properties[viewKey][
|
|
422
|
+
viewsDefinition.properties[viewKey][ux_specification_types_1.SchemaTag.artifactType] = ux_specification_types_1.ArtifactType.Manifest;
|
|
423
|
+
viewsDefinition.properties[viewKey][ux_specification_types_1.SchemaTag.key] = viewKey;
|
|
424
|
+
viewsDefinition.properties[viewKey][ux_specification_types_1.SchemaTag.keys] = [{ name: ux_specification_types_1.SchemaKeyName.key, value: viewKey }];
|
|
408
425
|
}
|
|
409
426
|
/**
|
|
410
427
|
* Adjusts the entity type if a different entity set is maintained for a view
|
|
@@ -433,26 +450,26 @@ function getTargetEntityType(entitySet, view, generateParameters, entityType) {
|
|
|
433
450
|
* @param {SapUiAppPageV4} v4Page - the given page in manifest
|
|
434
451
|
*/
|
|
435
452
|
function addViewCustomExtensions(commonInputParameters, generateParameters, visualization, v4Page) {
|
|
436
|
-
const sectionId = `${
|
|
453
|
+
const sectionId = `${ux_specification_types_1.DefinitionName.LineItemsOfView}::${commonInputParameters.viewKey}`;
|
|
437
454
|
const navigationProperty = commonInputParameters.navPropName ? `${commonInputParameters.navPropName}/` : '';
|
|
438
455
|
const sectionIdInManifest = `${navigationProperty}@${"com.sap.vocabularies.UI.v1.LineItem" /* LineItem */}${visualization.split(ux_specification_types_1.Visualization.LineItem)[1]}`;
|
|
439
|
-
const viewColumnDefinition = common_1.parseSchemaDefinition(
|
|
440
|
-
common_1.addDefinitionRef(viewColumnDefinition.properties.position,
|
|
441
|
-
common_1.parseSchemaDefinition(
|
|
442
|
-
utils_1.addCustomColumnDefinition(commonInputParameters.appSchema, v4Page, generateParameters.logger, `${
|
|
443
|
-
utils_1.addFragmentEnumForAnchor(commonInputParameters.appSchema, sectionId, v4Page, `${
|
|
456
|
+
const viewColumnDefinition = common_1.parseSchemaDefinition(ux_specification_types_1.DefinitionName.ViewCustomColumn, sectionId, commonInputParameters.appSchema);
|
|
457
|
+
common_1.addDefinitionRef(viewColumnDefinition.properties.position, ux_specification_types_1.DefinitionName.ViewPosition, sectionId);
|
|
458
|
+
common_1.parseSchemaDefinition(ux_specification_types_1.DefinitionName.ViewPosition, sectionId, commonInputParameters.appSchema);
|
|
459
|
+
utils_1.addCustomColumnDefinition(commonInputParameters.appSchema, v4Page, generateParameters.logger, `${ux_specification_types_1.DefinitionName.ViewCustomColumn}<${sectionId}>`, sectionId, sectionIdInManifest);
|
|
460
|
+
utils_1.addFragmentEnumForAnchor(commonInputParameters.appSchema, sectionId, v4Page, `${ux_specification_types_1.DefinitionName.ViewPosition}<${sectionId}>`, sectionIdInManifest);
|
|
444
461
|
// Remove generic position
|
|
445
462
|
if (commonInputParameters.appSchema.definitions.Position) {
|
|
446
463
|
delete commonInputParameters.appSchema.definitions.Position;
|
|
447
464
|
delete commonInputParameters.appSchema.definitions.TableCustomColumn;
|
|
448
465
|
}
|
|
449
466
|
// Table toolbar actions with custom actions
|
|
450
|
-
const schemaIdForToolbarActions = `${
|
|
451
|
-
const customActionDefinitionKey = `${
|
|
467
|
+
const schemaIdForToolbarActions = `${ux_specification_types_1.DefinitionName.Actions}<${sectionId}>`;
|
|
468
|
+
const customActionDefinitionKey = `${ux_specification_types_1.DefinitionName.ViewCustomAction}<${sectionId}>`;
|
|
452
469
|
utils_1.addCustomActionDefinition(commonInputParameters.appSchema, v4Page, generateParameters.logger, customActionDefinitionKey, schemaIdForToolbarActions, sectionIdInManifest);
|
|
453
470
|
// Anchor selection
|
|
454
|
-
common_1.parseSchemaDefinition(
|
|
455
|
-
const customActionPositionDefinitionKey = `${
|
|
471
|
+
common_1.parseSchemaDefinition(ux_specification_types_1.DefinitionName.ViewCustomActionPosition, sectionId, commonInputParameters.appSchema);
|
|
472
|
+
const customActionPositionDefinitionKey = `${ux_specification_types_1.DefinitionName.ViewCustomActionPosition}<${sectionId}>`;
|
|
456
473
|
const customActionDefinition = commonInputParameters.appSchema.definitions[customActionDefinitionKey];
|
|
457
474
|
customActionDefinition.properties.position.$ref = `${common_1.DEFINITION_LINK_PREFIX}${customActionPositionDefinitionKey}`;
|
|
458
475
|
utils_1.addEnumForActionAnchor(commonInputParameters.appSchema, schemaIdForToolbarActions, customActionPositionDefinitionKey);
|
|
@@ -488,7 +505,7 @@ function addLRViewParts(visualization, viewsDefinition, commonInputParameters, g
|
|
|
488
505
|
description: commonInputParameters.title || titleOnHover,
|
|
489
506
|
title: titleOnHover,
|
|
490
507
|
// Default view - use table view reference as default
|
|
491
|
-
$ref: `${common_1.DEFINITION_LINK_PREFIX}${
|
|
508
|
+
$ref: `${common_1.DEFINITION_LINK_PREFIX}${ux_specification_types_1.DefinitionName.TableViewExtension}`
|
|
492
509
|
};
|
|
493
510
|
}
|
|
494
511
|
else {
|
|
@@ -497,7 +514,7 @@ function addLRViewParts(visualization, viewsDefinition, commonInputParameters, g
|
|
|
497
514
|
description: commonInputParameters.title || titleOnHover,
|
|
498
515
|
title: titleOnHover,
|
|
499
516
|
// Default view - use table view reference as default
|
|
500
|
-
$ref: `${common_1.DEFINITION_LINK_PREFIX}${
|
|
517
|
+
$ref: `${common_1.DEFINITION_LINK_PREFIX}${ux_specification_types_1.DefinitionName.LRTableView}`
|
|
501
518
|
};
|
|
502
519
|
}
|
|
503
520
|
}
|
|
@@ -520,19 +537,19 @@ function addLRViews(appSchema, viewsPaths, entityType, entitySet, generateParame
|
|
|
520
537
|
};
|
|
521
538
|
const viewsDefinition = appSchema.definitions.MultiTableModeV4;
|
|
522
539
|
for (const view of viewsPaths) {
|
|
523
|
-
if (!view[
|
|
540
|
+
if (!view[ux_specification_types_1.SchemaTag.key]) {
|
|
524
541
|
continue;
|
|
525
542
|
}
|
|
526
543
|
let navPropName = undefined;
|
|
527
544
|
const targetEntityType = getTargetEntityType(entitySet, view, generateParameters, entityType);
|
|
528
545
|
const uiAnnotations = targetEntityType.annotations.UI;
|
|
529
|
-
const { visualization, targetAnnotation, namespace, title } = analyzeViewAnnotation(view?.[
|
|
546
|
+
const { visualization, targetAnnotation, namespace, title } = analyzeViewAnnotation(view?.[ux_specification_types_1.SchemaTag.annotationPath], uiAnnotations, generateParameters, view[ux_specification_types_1.SchemaTag.key]);
|
|
530
547
|
if (view['entitySet']) {
|
|
531
548
|
navPropName = entityType.navigationProperties.find((np) => {
|
|
532
549
|
return np.targetTypeName === namespace;
|
|
533
550
|
})?.name;
|
|
534
551
|
}
|
|
535
|
-
const viewKey = common_1.prepareRef(view[
|
|
552
|
+
const viewKey = common_1.prepareRef(view[ux_specification_types_1.SchemaTag.key]);
|
|
536
553
|
const commonInputParameters = {
|
|
537
554
|
viewKey,
|
|
538
555
|
appSchema,
|
|
@@ -560,17 +577,17 @@ function adaptTableDefinition(appSchema, entityType, generateParameters, templat
|
|
|
560
577
|
const { visualization, targetAnnotation, namespace } = analyzeViewAnnotation(templateAnnotation, entityType.annotations.UI, generateParameters, undefined, ux_specification_types_1.Visualization.LineItem);
|
|
561
578
|
if (visualization) {
|
|
562
579
|
const annotationTerm = visualization.split('.')[1];
|
|
563
|
-
const annotationTermInSchema = `${
|
|
580
|
+
const annotationTermInSchema = `${ux_specification_types_1.DefinitionName.LineItems}OfSPV::${common_1.prepareRef(annotationTerm)}`;
|
|
564
581
|
const spvTable = (appSchema.definitions[`${tableDefinitionName}SPV`] = JSON.parse(JSON.stringify(appSchema.definitions[tableDefinitionName])));
|
|
565
|
-
delete spvTable[
|
|
566
|
-
common_1.addDefinitionRef(spvTable.properties.toolBar,
|
|
582
|
+
delete spvTable[ux_specification_types_1.SchemaTag.isViewNode];
|
|
583
|
+
common_1.addDefinitionRef(spvTable.properties.toolBar, ux_specification_types_1.DefinitionName.ToolBar, annotationTermInSchema);
|
|
567
584
|
// Switch from generic column to specific definition
|
|
568
|
-
spvTable[
|
|
585
|
+
spvTable[ux_specification_types_1.SchemaTag.annotationPath] = targetAnnotation;
|
|
569
586
|
spvTable.properties.columns = {};
|
|
570
587
|
common_1.addDefinitionRef(spvTable.properties.columns, annotationTermInSchema);
|
|
571
588
|
delete tableDefinition.properties;
|
|
572
589
|
common_1.addDefinitionRef(tableDefinition, `${tableDefinitionName}SPV`);
|
|
573
|
-
tableDefinition[
|
|
590
|
+
tableDefinition[ux_specification_types_1.SchemaTag.annotationPath] = `/${namespace}/@${templateAnnotation}`;
|
|
574
591
|
const lineItemAnnotation = entityType.annotations.UI[annotationTerm];
|
|
575
592
|
const dataForLineItem = {
|
|
576
593
|
appSchema,
|
|
@@ -587,33 +604,33 @@ function adaptTableDefinition(appSchema, entityType, generateParameters, templat
|
|
|
587
604
|
utils_1.addCustomColumnDefinition(appSchema, v4Page, generateParameters.logger, undefined, annotationTermInSchema, sectionIdInManifest);
|
|
588
605
|
utils_1.addFragmentEnumForAnchor(appSchema, annotationTermInSchema, v4Page, undefined, sectionIdInManifest);
|
|
589
606
|
// Table toolbar actions with custom actions
|
|
590
|
-
const schemaIdForToolbarActions = `${
|
|
591
|
-
const customColumnDefinitionName = common_1.getCustomExtensionDefinitionName(appSchema, annotationTermInSchema,
|
|
607
|
+
const schemaIdForToolbarActions = `${ux_specification_types_1.DefinitionName.Actions}<${annotationTermInSchema}>`;
|
|
608
|
+
const customColumnDefinitionName = common_1.getCustomExtensionDefinitionName(appSchema, annotationTermInSchema, ux_specification_types_1.DefinitionName.CustomTableAction);
|
|
592
609
|
utils_1.addCustomActionDefinition(appSchema, v4Page, generateParameters.logger, common_1.getDefinitionKey(customColumnDefinitionName), schemaIdForToolbarActions, sectionIdInManifest);
|
|
593
|
-
utils_1.addEnumForActionAnchor(appSchema, schemaIdForToolbarActions,
|
|
610
|
+
utils_1.addEnumForActionAnchor(appSchema, schemaIdForToolbarActions, ux_specification_types_1.DefinitionName.CustomActionPosition);
|
|
594
611
|
}
|
|
595
612
|
else {
|
|
596
|
-
tableDefinition.properties.toolBar['$ref'] = `${common_1.DEFINITION_LINK_PREFIX}${
|
|
613
|
+
tableDefinition.properties.toolBar['$ref'] = `${common_1.DEFINITION_LINK_PREFIX}${ux_specification_types_1.DefinitionName.ToolBarLR}`;
|
|
597
614
|
// Switch from generic column to specific definition
|
|
598
|
-
common_1.addDefinitionRef(tableDefinition.properties.columns,
|
|
615
|
+
common_1.addDefinitionRef(tableDefinition.properties.columns, ux_specification_types_1.DefinitionName.LineItems);
|
|
599
616
|
const lineItemAnnotation = entityType?.annotations?.[alias]?.LineItem;
|
|
600
617
|
const dataForLineItem = {
|
|
601
618
|
appSchema,
|
|
602
619
|
lineItemAnnotation,
|
|
603
620
|
entityType,
|
|
604
621
|
oDataServiceAVT: generateParameters.serviceAVT,
|
|
605
|
-
lineItemId:
|
|
622
|
+
lineItemId: ux_specification_types_1.DefinitionName.LineItems
|
|
606
623
|
};
|
|
607
624
|
utils_1.addLineItemsTypeToSchema(dataForLineItem);
|
|
608
625
|
utils_1.addCustomColumnDefinition(appSchema, v4Page, generateParameters.logger);
|
|
609
|
-
utils_1.addFragmentEnumForAnchor(appSchema,
|
|
626
|
+
utils_1.addFragmentEnumForAnchor(appSchema, ux_specification_types_1.DefinitionName.LineItems, v4Page);
|
|
610
627
|
if (lineItemAnnotation) {
|
|
611
|
-
tableDefinition[
|
|
628
|
+
tableDefinition[ux_specification_types_1.SchemaTag.annotationPath] = common_1.createAnnotationPath(entityType.fullyQualifiedName, lineItemAnnotation.term, lineItemAnnotation.qualifier);
|
|
612
629
|
}
|
|
613
630
|
// Table toolbar actions with custom actions
|
|
614
|
-
const schemaIdForActions = `${
|
|
631
|
+
const schemaIdForActions = `${ux_specification_types_1.DefinitionName.Actions}<${common_1.prepareRef(ux_specification_types_1.DefinitionName.LineItems)}>`;
|
|
615
632
|
utils_1.addCustomActionDefinition(appSchema, v4Page, generateParameters.logger, undefined, schemaIdForActions);
|
|
616
|
-
utils_1.addEnumForActionAnchor(appSchema, schemaIdForActions,
|
|
633
|
+
utils_1.addEnumForActionAnchor(appSchema, schemaIdForActions, ux_specification_types_1.DefinitionName.CustomActionPosition);
|
|
617
634
|
}
|
|
618
635
|
}
|
|
619
636
|
/**
|
|
@@ -623,13 +640,13 @@ function adaptTableDefinition(appSchema, entityType, generateParameters, templat
|
|
|
623
640
|
* @returns {string} annotation term
|
|
624
641
|
*/
|
|
625
642
|
function getDefaultAnnotationPath(v4Page, entityType, templateType) {
|
|
626
|
-
if (v4Page.options.settings?.views?.paths && templateType ===
|
|
643
|
+
if (v4Page.options.settings?.views?.paths && templateType === ux_specification_types_1.TemplateType.ListReportObjectPageV4) {
|
|
627
644
|
return;
|
|
628
645
|
}
|
|
629
646
|
if (v4Page.options.settings?.defaultTemplateAnnotationPath) {
|
|
630
647
|
return v4Page.options.settings.defaultTemplateAnnotationPath;
|
|
631
648
|
}
|
|
632
|
-
if (templateType ===
|
|
649
|
+
if (templateType === ux_specification_types_1.TemplateType.ListReportObjectPageV4) {
|
|
633
650
|
return (entityType.annotations.UI?.SelectionPresentationVariant?.term ||
|
|
634
651
|
entityType.annotations.UI?.PresentationVariant?.term);
|
|
635
652
|
}
|
|
@@ -646,7 +663,7 @@ function addTableAndViews(appSchema, v4Page, entityType, entitySet, generatePara
|
|
|
646
663
|
const viewsPaths = v4Page.options?.settings?.views?.paths;
|
|
647
664
|
const defaultAnnotation = getDefaultAnnotationPath(v4Page, entityType, generateParameters.templateType);
|
|
648
665
|
const tableDefinitionName = utils_1.alignSchemaWithTemplateType(appSchema, generateParameters);
|
|
649
|
-
if (generateParameters.templateType ===
|
|
666
|
+
if (generateParameters.templateType === ux_specification_types_1.TemplateType.ListReportObjectPageV4) {
|
|
650
667
|
if (viewsPaths) {
|
|
651
668
|
addLRViews(appSchema, viewsPaths, entityType, entitySet, generateParameters, v4Page, tableDefinitionName);
|
|
652
669
|
}
|
|
@@ -656,11 +673,11 @@ function addTableAndViews(appSchema, v4Page, entityType, entitySet, generatePara
|
|
|
656
673
|
}
|
|
657
674
|
adaptTableDefinition(appSchema, entityType, generateParameters, defaultAnnotation, v4Page, alias, tableDefinitionName);
|
|
658
675
|
}
|
|
659
|
-
appSchema.properties[
|
|
676
|
+
appSchema.properties[ux_specification_types_1.PropertyName.chart][ux_specification_types_1.SchemaTag.hidden] = true;
|
|
660
677
|
}
|
|
661
|
-
else if (generateParameters.templateType ===
|
|
678
|
+
else if (generateParameters.templateType === ux_specification_types_1.TemplateType.AnalyticalListPageV4) {
|
|
662
679
|
addALPViews(appSchema, viewsPaths, entityType, generateParameters, defaultAnnotation, v4Page, tableDefinitionName);
|
|
663
|
-
utils_1.addFragmentEnumForAnchor(appSchema,
|
|
680
|
+
utils_1.addFragmentEnumForAnchor(appSchema, ux_specification_types_1.DefinitionName.LineItems, v4Page);
|
|
664
681
|
}
|
|
665
682
|
}
|
|
666
683
|
/**
|
|
@@ -676,13 +693,13 @@ function addTableAndViews(appSchema, v4Page, entityType, entitySet, generatePara
|
|
|
676
693
|
function generateListReportSchemaV4(generateParameters, genericSchema, entitySet, templateName) {
|
|
677
694
|
const appSchema = JSON.parse(JSON.stringify(genericSchema));
|
|
678
695
|
const entityType = entitySet?.entityType;
|
|
679
|
-
const alias = generateParameters.serviceAVT && common_1.findAlias(
|
|
696
|
+
const alias = generateParameters.serviceAVT && common_1.findAlias(ux_specification_types_1.UIVOCABULARY, generateParameters.serviceAVT);
|
|
680
697
|
//Add selection fields
|
|
681
698
|
const selectionFieldAnnotation = alias && entityType?.annotations?.[alias]?.SelectionFields;
|
|
682
699
|
addSelectionFields(entityType, appSchema, selectionFieldAnnotation);
|
|
683
|
-
appSchema.properties[
|
|
700
|
+
appSchema.properties[ux_specification_types_1.PropertyName.defaultTemplateAnnotationPath][ux_specification_types_1.SchemaTag.hidden] = true;
|
|
684
701
|
//enum for annotation path as part of QuickVariantSelection
|
|
685
|
-
common_1.addEnumForSingleTabVariant(entityType, appSchema,
|
|
702
|
+
common_1.addEnumForSingleTabVariant(entityType, appSchema, ux_specification_types_1.DefinitionName.AnnotationPathAsObject);
|
|
686
703
|
if (generateParameters.manifest) {
|
|
687
704
|
//Find page in targets
|
|
688
705
|
const pages = generateParameters.manifest[ux_specification_types_1.ManifestSection.ui5].routing
|
|
@@ -692,7 +709,7 @@ function generateListReportSchemaV4(generateParameters, genericSchema, entitySet
|
|
|
692
709
|
severity: "error" /* Error */,
|
|
693
710
|
message: i18next_1.default.t('NOPAGES', { appId: generateParameters.manifest['sap.app']['id'] }),
|
|
694
711
|
location: {
|
|
695
|
-
path:
|
|
712
|
+
path: ux_specification_types_1.MANIFESTPATH,
|
|
696
713
|
range: [ux_specification_types_1.ManifestSection.generic]
|
|
697
714
|
}
|
|
698
715
|
});
|