@sap/ux-specification 1.90.20 → 1.90.25
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 +91 -0
- 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/ApplicationV2.json +11 -11
- package/dist/schemas/v4/ApplicationV4.json +9 -5
- package/dist/schemas/v4/ListReportConfig.json +621 -195
- package/dist/schemas/v4/ObjectPageConfig.json +6 -38
- package/dist/scripts/extractDocu.js.map +1 -1
- package/dist/scripts/runDocu.js +10 -40
- package/dist/scripts/runDocu.js.map +1 -1
- package/dist/scripts/spec.js.map +1 -1
- package/dist/scripts/to-json-schema.js.map +1 -1
- package/dist/specification/v2/index-min.js +1 -1
- package/dist/specification/v4/index-min.js +1 -1
- package/dist/src/api.d.ts +2 -2
- package/dist/src/api.js +11 -11
- package/dist/src/api.js.map +1 -1
- package/dist/src/apiTypes.d.ts +14 -18
- package/dist/src/apiTypes.js +0 -2
- package/dist/src/apiTypes.js.map +1 -1
- package/dist/src/extensionLogger.d.ts +1 -1
- package/dist/src/project.d.ts +1 -1
- package/dist/src/project.js +11 -3
- package/dist/src/project.js.map +1 -1
- package/dist/src/specification/common/Application.d.ts +24 -4
- package/dist/src/specification/common/page.d.ts +1 -1
- package/dist/src/specification/common/webapp/manifest/Manifest.d.ts +6 -6
- package/dist/src/specification/common/webapp/manifest/sapUi5.d.ts +1 -1
- package/dist/src/specification/schemaAccess.d.ts +1 -1
- package/dist/src/specification/schemaAccess.js +1 -2
- package/dist/src/specification/schemaAccess.js.map +1 -1
- package/dist/src/specification/v2/ApplicationV2.d.ts +3 -17
- package/dist/src/specification/v2/controls/Facets.d.ts +1 -1
- package/dist/src/specification/v2/controls/Footer.d.ts +2 -2
- package/dist/src/specification/v2/controls/ObjectPageForm.d.ts +1 -1
- package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +2 -2
- package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +2 -2
- package/dist/src/specification/v2/controls/ObjectPageToolBar.d.ts +1 -1
- package/dist/src/specification/v2/controls/Table.d.ts +3 -3
- package/dist/src/specification/v2/controls/ToolBar.d.ts +1 -1
- package/dist/src/specification/v2/page.d.ts +1 -1
- package/dist/src/specification/v2/pages/AnalyticalListPageConfig.d.ts +4 -4
- package/dist/src/specification/v2/pages/ListReportConfig.d.ts +2 -2
- package/dist/src/specification/v2/pages/ObjectPageConfig.d.ts +3 -3
- package/dist/src/specification/v2/pages/OverviewPageConfig.d.ts +3 -3
- package/dist/src/specification/v2/webapp/manifest/sapUi5.d.ts +2 -2
- package/dist/src/specification/v2/webapp/manifest/sapUi5.js +0 -1
- package/dist/src/specification/v2/webapp/manifest/sapUi5.js.map +1 -1
- package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.d.ts +2 -2
- package/dist/src/specification/v4/ApplicationV4.d.ts +4 -14
- package/dist/src/specification/v4/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/specification/v4/controls/ObjectPageHeaderSection.d.ts +2 -14
- package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +2 -2
- package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +3 -3
- package/dist/src/specification/v4/controls/ObjectPageToolBar.d.ts +1 -1
- package/dist/src/specification/v4/controls/Table.d.ts +166 -25
- package/dist/src/specification/v4/controls/Table.js +6 -0
- package/dist/src/specification/v4/controls/Table.js.map +1 -1
- package/dist/src/specification/v4/controls/ToolBar.d.ts +26 -1
- package/dist/src/specification/v4/page.d.ts +2 -2
- package/dist/src/specification/v4/pages/ListReportConfig.d.ts +22 -3
- package/dist/src/specification/v4/pages/ObjectPageConfig.d.ts +2 -2
- package/dist/src/specification/v4/pages/ObjectPageConfig.js.map +1 -1
- package/dist/src/specification/v4/pages/index.d.ts +0 -1
- package/dist/src/specification/v4/webapp/manifest/ManifestSettings.d.ts +77 -0
- package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js.map +1 -1
- package/dist/src/specification/v4/webapp/manifest/sapUi5.d.ts +12 -3
- package/dist/src/specification/v4/webapp/manifest/sapUi5.js.map +1 -1
- package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.d.ts +21 -1
- package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
- package/dist/src/sync/common/appProvider.d.ts +6 -5
- 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.js +1 -1
- 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.js.map +1 -1
- package/dist/src/sync/common/decoration/factory.d.ts +3 -3
- package/dist/src/sync/common/decoration/flex.d.ts +3 -3
- package/dist/src/sync/common/flexUtils.d.ts +4 -4
- package/dist/src/sync/common/flexUtils.js.map +1 -1
- package/dist/src/sync/common/generate/objectPage.d.ts +9 -7
- package/dist/src/sync/common/generate/objectPage.js +64 -68
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +24 -16
- package/dist/src/sync/common/generate/utils.js +55 -62
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/common/import/utils.d.ts +4 -3
- package/dist/src/sync/common/import/utils.js +3 -2
- package/dist/src/sync/common/import/utils.js.map +1 -1
- package/dist/src/sync/common/importProject.d.ts +4 -4
- package/dist/src/sync/common/importProject.js +13 -22
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/types.d.ts +60 -12
- package/dist/src/sync/common/types.js +59 -7
- package/dist/src/sync/common/types.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +18 -8
- package/dist/src/sync/common/utils.js +179 -65
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/i18n.d.ts +1 -1
- package/dist/src/sync/v2/application.d.ts +2 -2
- package/dist/src/sync/v2/application.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Action.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Card.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Field.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/FilterBar.d.ts +2 -1
- package/dist/src/sync/v2/export/controls/FormAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.d.ts +5 -11
- package/dist/src/sync/v2/export/controls/Fragment.js +110 -34
- package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageChart.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.d.ts +3 -3
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageLayout.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +6 -6
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +14 -17
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +3 -3
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Table.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/Table.js +26 -25
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v2/export/controls/TableColumn.d.ts +2 -2
- package/dist/src/sync/v2/export/controls/ToolBar.d.ts +1 -1
- package/dist/src/sync/v2/export/export.d.ts +3 -3
- package/dist/src/sync/v2/export/export.js +6 -4
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/export/exportPage.d.ts +2 -2
- package/dist/src/sync/v2/export/exportPage.js +2 -10
- package/dist/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/src/sync/v2/export/factory.d.ts +2 -1
- package/dist/src/sync/v2/export/factory.js.map +1 -1
- package/dist/src/sync/v2/export/manifest.d.ts +17 -1
- package/dist/src/sync/v2/export/manifest.js +29 -2
- package/dist/src/sync/v2/export/manifest.js.map +1 -1
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts +4 -4
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/export/pages/ListReport.d.ts +2 -2
- package/dist/src/sync/v2/export/pages/ListReport.js.map +1 -1
- package/dist/src/sync/v2/export/pages/ObjectPage.d.ts +3 -3
- package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +2 -2
- package/dist/src/sync/v2/export/pages/OverviewPage.js +6 -3
- package/dist/src/sync/v2/export/pages/OverviewPage.js.map +1 -1
- package/dist/src/sync/v2/export/view-controller-generator.d.ts +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.js +27 -36
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/generate.d.ts +2 -2
- package/dist/src/sync/v2/generate/generate.js +3 -0
- package/dist/src/sync/v2/generate/generate.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.d.ts +7 -4
- package/dist/src/sync/v2/generate/listReport.js +38 -36
- 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.js +83 -108
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/overviewPage.d.ts +1 -1
- package/dist/src/sync/v2/generate/overviewPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +5 -5
- package/dist/src/sync/v2/generate/utils.js +34 -33
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/app/appProvider.d.ts +4 -4
- package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.d.ts +3 -3
- package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
- package/dist/src/sync/v2/import/common/index.d.ts +6 -5
- package/dist/src/sync/v2/import/common/index.js +4 -17
- package/dist/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/src/sync/v2/import/controls/table.d.ts +1 -1
- package/dist/src/sync/v2/import/controls/table.js +1 -1
- package/dist/src/sync/v2/import/controls/table.js.map +1 -1
- package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +2 -2
- package/dist/src/sync/v2/import/pages/analyticalListPage.js +1 -9
- package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/listReport.d.ts +2 -2
- package/dist/src/sync/v2/import/pages/objectPage.d.ts +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +33 -20
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.d.ts +2 -2
- 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.d.ts +3 -2
- package/dist/src/sync/v2/import/utils.js +16 -2
- package/dist/src/sync/v2/import/utils.js.map +1 -1
- package/dist/src/sync/v2/types.d.ts +7 -7
- package/dist/src/sync/v4/application.d.ts +9 -5
- package/dist/src/sync/v4/application.js +23 -2
- package/dist/src/sync/v4/application.js.map +1 -1
- package/dist/src/sync/v4/export/controls/FilterBar.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +2 -1
- package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js +3 -3
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageLayout.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTable.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/Table.d.ts +126 -9
- package/dist/src/sync/v4/export/controls/Table.js +439 -48
- package/dist/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v4/export/controls/TableColumn.d.ts +52 -1
- package/dist/src/sync/v4/export/controls/TableColumn.js +246 -0
- package/dist/src/sync/v4/export/controls/TableColumn.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ToolBar.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts +4 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.js +10 -0
- package/dist/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- package/dist/src/sync/v4/export/export.d.ts +2 -2
- package/dist/src/sync/v4/export/export.js +317 -78
- package/dist/src/sync/v4/export/export.js.map +1 -1
- package/dist/src/sync/v4/export/factory.d.ts +2 -1
- package/dist/src/sync/v4/export/factory.js.map +1 -1
- package/dist/src/sync/v4/export/flexibleColumnLayout.d.ts +1 -1
- package/dist/src/sync/v4/export/flexibleColumnLayout.js.map +1 -1
- package/dist/src/sync/v4/export/manifest.d.ts +2 -2
- package/dist/src/sync/v4/export/manifest.js +43 -31
- package/dist/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/src/sync/v4/export/pages/ListReport.d.ts +9 -3
- package/dist/src/sync/v4/export/pages/ListReport.js +49 -0
- package/dist/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +2 -2
- package/dist/src/sync/v4/export/pages/index.d.ts +0 -1
- package/dist/src/sync/v4/export/pages/index.js +0 -1
- package/dist/src/sync/v4/export/pages/index.js.map +1 -1
- package/dist/src/sync/v4/export/types.d.ts +7 -5
- package/dist/src/sync/v4/export/utils.d.ts +1 -1
- package/dist/src/sync/v4/generate/generate.d.ts +5 -4
- package/dist/src/sync/v4/generate/generate.js +6 -3
- package/dist/src/sync/v4/generate/generate.js.map +1 -1
- package/dist/src/sync/v4/generate/listReport.d.ts +2 -4
- package/dist/src/sync/v4/generate/listReport.js +406 -36
- 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 +37 -14
- package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/app/appProvider.d.ts +6 -5
- package/dist/src/sync/v4/import/app/appProvider.js +55 -43
- package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v4/import/fragment.d.ts +2 -2
- package/dist/src/sync/v4/import/fragment.js.map +1 -1
- package/dist/src/sync/v4/import/index.d.ts +0 -1
- package/dist/src/sync/v4/import/index.js +0 -1
- package/dist/src/sync/v4/import/index.js.map +1 -1
- package/dist/src/sync/v4/import/pages/listReport.d.ts +8 -7
- package/dist/src/sync/v4/import/pages/listReport.js +120 -29
- package/dist/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v4/import/pages/objectPage.d.ts +2 -2
- package/dist/src/sync/v4/import/pages/objectPage.js +19 -19
- package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/utils.d.ts +2 -2
- package/dist/src/sync/v4/import/utils.js +2 -2
- package/dist/src/sync/v4/import/utils.js.map +1 -1
- package/dist/src/sync/v4/types.d.ts +2 -2
- package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/src/sync/v4/utils/utils.d.ts +17 -12
- package/dist/src/sync/v4/utils/utils.js +72 -25
- package/dist/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/test/test-data/flexChange/v2/stta.prod.man/index.d.ts +1 -1
- package/dist/test/test-projects/index.d.ts +1 -1
- package/dist/test/test-utils/utils.d.ts +5 -4
- package/dist/test/unit/export/manifest.test.d.ts +1 -0
- package/package.json +12 -10
- package/dist/documentation/v4/v4-AnalyticalListPage.html +0 -49
- package/dist/schemas/v4/AnalyticalListPageConfig.json +0 -392
- package/dist/src/specification/v4/pages/AnalyticalListPageConfig.d.ts +0 -13
- package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js +0 -3
- package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js.map +0 -1
- package/dist/src/sync/v4/export/pages/AnalyticalListPage.d.ts +0 -8
- package/dist/src/sync/v4/export/pages/AnalyticalListPage.js +0 -38
- package/dist/src/sync/v4/export/pages/AnalyticalListPage.js.map +0 -1
- package/dist/src/sync/v4/import/pages/analyticalListPage.d.ts +0 -11
- package/dist/src/sync/v4/import/pages/analyticalListPage.js +0 -60
- package/dist/src/sync/v4/import/pages/analyticalListPage.js.map +0 -1
|
@@ -5,6 +5,11 @@ var ExportArtifacts;
|
|
|
5
5
|
ExportArtifacts["flex"] = "flex";
|
|
6
6
|
ExportArtifacts["manifest"] = "manifest";
|
|
7
7
|
})(ExportArtifacts = exports.ExportArtifacts || (exports.ExportArtifacts = {}));
|
|
8
|
+
var ALPViewType;
|
|
9
|
+
(function (ALPViewType) {
|
|
10
|
+
ALPViewType["Primary"] = "primary";
|
|
11
|
+
ALPViewType["Secondary"] = "secondary";
|
|
12
|
+
})(ALPViewType = exports.ALPViewType || (exports.ALPViewType = {}));
|
|
8
13
|
var DirName;
|
|
9
14
|
(function (DirName) {
|
|
10
15
|
DirName["Sapux"] = "src";
|
|
@@ -59,6 +64,11 @@ var ControlType;
|
|
|
59
64
|
ControlType["Section"] = "sap.uxap.ObjectPageSection";
|
|
60
65
|
ControlType["SubSection"] = "sap.uxap.ObjectPageSubSection";
|
|
61
66
|
})(ControlType = exports.ControlType || (exports.ControlType = {}));
|
|
67
|
+
var Visualization;
|
|
68
|
+
(function (Visualization) {
|
|
69
|
+
Visualization["LineItem"] = "LineItem";
|
|
70
|
+
Visualization["Chart"] = "Chart";
|
|
71
|
+
})(Visualization = exports.Visualization || (exports.Visualization = {}));
|
|
62
72
|
var FacetBase;
|
|
63
73
|
(function (FacetBase) {
|
|
64
74
|
FacetBase["LineItem"] = "LineItem";
|
|
@@ -80,20 +90,62 @@ var ViewTemplateType;
|
|
|
80
90
|
ViewTemplateType["GridTableColumnsExtension"] = "GridTableColumnsExtension";
|
|
81
91
|
ViewTemplateType["ResponsiveTableCellsExtension"] = "ResponsiveTableCellsExtension";
|
|
82
92
|
})(ViewTemplateType = exports.ViewTemplateType || (exports.ViewTemplateType = {}));
|
|
93
|
+
//Definitions for elements in app schema
|
|
83
94
|
var DefinitionName;
|
|
84
95
|
(function (DefinitionName) {
|
|
85
|
-
DefinitionName["
|
|
86
|
-
DefinitionName["
|
|
87
|
-
DefinitionName["
|
|
88
|
-
DefinitionName["
|
|
89
|
-
DefinitionName["
|
|
96
|
+
DefinitionName["Actions"] = "Actions";
|
|
97
|
+
DefinitionName["ALPChart"] = "ALPChart";
|
|
98
|
+
DefinitionName["ALPChartView"] = "ALPChartView";
|
|
99
|
+
DefinitionName["ALPTable"] = "ALPTable";
|
|
100
|
+
DefinitionName["ALPTableView"] = "ALPTableView";
|
|
101
|
+
DefinitionName["AnalyticalListPageFilterBar"] = "AnalyticalListPageFilterBar";
|
|
102
|
+
DefinitionName["AnnotationPathAsObject"] = "AnnotationPathAsObject";
|
|
103
|
+
DefinitionName["ChartToolBarAction"] = "ChartToolBarAction";
|
|
90
104
|
DefinitionName["CustomColumn"] = "TableCustomColumn";
|
|
91
105
|
DefinitionName["CustomColumnOP"] = "TableCustomColumnOP";
|
|
106
|
+
DefinitionName["CustomColumns"] = "TableCustomColumns";
|
|
107
|
+
DefinitionName["Fields"] = "Fields";
|
|
108
|
+
DefinitionName["FooterActions"] = "FooterActions";
|
|
109
|
+
DefinitionName["Form"] = "Form";
|
|
110
|
+
DefinitionName["FormAction"] = "FormAction";
|
|
111
|
+
DefinitionName["GenericActions"] = "GenericActions";
|
|
112
|
+
DefinitionName["HeaderActions"] = "HeaderActions";
|
|
113
|
+
DefinitionName["LineItems"] = "LineItems";
|
|
114
|
+
DefinitionName["LineItemsOfView"] = "LineItemsOfView";
|
|
115
|
+
DefinitionName["ListReportFilterBar"] = "ListReportFilterBar";
|
|
116
|
+
DefinitionName["LRTableView"] = "LRTableView";
|
|
117
|
+
DefinitionName["LRChartView"] = "LRChartView";
|
|
118
|
+
DefinitionName["MultiTableModeV4"] = "MultiTableModeV4";
|
|
119
|
+
DefinitionName["ObjectPageFooter"] = "ObjectPageFooter";
|
|
120
|
+
DefinitionName["ObjectPageFooterAction"] = "ObjectPageFooterAction";
|
|
121
|
+
DefinitionName["ObjectPageFooterActions"] = "ObjectPageFooterActions";
|
|
122
|
+
DefinitionName["ObjectPageHeader"] = "ObjectPageHeader";
|
|
123
|
+
DefinitionName["ObjectPageTable"] = "ObjectPageTable";
|
|
124
|
+
DefinitionName["ObjectPageTableColumn"] = "ObjectPageTableColumn";
|
|
125
|
+
DefinitionName["ObjectPageToolBarAction"] = "ObjectPageToolBarAction";
|
|
92
126
|
DefinitionName["Position"] = "Position";
|
|
93
127
|
DefinitionName["PositionOP"] = "PositionOP";
|
|
94
|
-
DefinitionName["
|
|
95
|
-
DefinitionName["
|
|
128
|
+
DefinitionName["Table"] = "Table";
|
|
129
|
+
DefinitionName["TableColumn"] = "TableColumn";
|
|
130
|
+
DefinitionName["ToolBarAction"] = "ToolBarAction";
|
|
131
|
+
DefinitionName["ToolBarLR"] = "ToolBar<LineItems>";
|
|
132
|
+
DefinitionName["ToolBar"] = "ToolBar";
|
|
133
|
+
DefinitionName["ViewTableColumn"] = "ViewTableColumn";
|
|
134
|
+
DefinitionName["ViewCustomColumn"] = "ViewTableCustomColumn";
|
|
135
|
+
DefinitionName["ViewChartToolBar"] = "ViewChartToolBar";
|
|
136
|
+
DefinitionName["ViewToolBarAction"] = "ViewToolBarAction";
|
|
96
137
|
})(DefinitionName = exports.DefinitionName || (exports.DefinitionName = {}));
|
|
138
|
+
var SchemaTag;
|
|
139
|
+
(function (SchemaTag) {
|
|
140
|
+
SchemaTag["hidden"] = "hidden";
|
|
141
|
+
SchemaTag["isViewNode"] = "isViewNode";
|
|
142
|
+
SchemaTag["annotationPath"] = "annotationPath";
|
|
143
|
+
SchemaTag["annotationType"] = "annotationType";
|
|
144
|
+
SchemaTag["dataType"] = "dataType";
|
|
145
|
+
SchemaTag["propertyIndex"] = "propertyIndex";
|
|
146
|
+
SchemaTag["artifactType"] = "artifactType";
|
|
147
|
+
SchemaTag["key"] = "key";
|
|
148
|
+
})(SchemaTag = exports.SchemaTag || (exports.SchemaTag = {}));
|
|
97
149
|
exports.METADATAPATH = 'webapp/localService/metadata.xml';
|
|
98
150
|
exports.MANIFESTPATH = 'webapp/manifest.json';
|
|
99
151
|
exports.VOCWITHSLASH = '/@com.sap.vocabularies';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/sync/common/types.ts"],"names":[],"mappings":";;AAIA,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,wCAAqB,CAAA;AACzB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/sync/common/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { FacetConfigs, FileData, FacetConfig, FacetSection, SchemaFilePath } from './types';
|
|
2
|
-
import { AnnotationTerm, CollectionFacet, ConverterOutput, DataFieldAbstractTypes, EntityType, PropertyAnnotations, PropertyPath, ReferenceFacet, ReferenceURLFacet } from '@sap-ux/vocabularies-types';
|
|
3
|
-
import {
|
|
1
|
+
import type { FacetConfigs, FileData, FacetConfig, FacetSection, SchemaFilePath } from './types';
|
|
2
|
+
import type { AnnotationTerm, CollectionFacet, ConverterOutput, DataFieldAbstractTypes, EntityType, PropertyAnnotations, PropertyPath, ReferenceFacet, ReferenceURLFacet } from '@sap-ux/vocabularies-types';
|
|
3
|
+
import type { Manifest } from '../../specification/common';
|
|
4
|
+
import { FioriElementsVersion, PageType, PageTypeV4 } from '../../specification/common';
|
|
4
5
|
import { SchemaType } from '../../specification/schemaAccess';
|
|
5
|
-
import { ExtensionLogger } from '../../apiTypes';
|
|
6
|
-
import { MetadataInstanceInterface } from './decoration/factory';
|
|
6
|
+
import type { ExtensionLogger } from '../../apiTypes';
|
|
7
|
+
import type { MetadataInstanceInterface } from './decoration/factory';
|
|
7
8
|
export declare enum TemplateType {
|
|
8
9
|
ListReportObjectPageV2 = "ListReportObjectPageV2",
|
|
9
10
|
ListReportObjectPageV4 = "ListReportObjectPageV4",
|
|
@@ -82,15 +83,17 @@ export declare function findAlias(namespace: string, oDataServiceAVT: ConverterO
|
|
|
82
83
|
*/
|
|
83
84
|
export declare function getSectionFacet(facetDefinition: AnnotationTerm<CollectionFacet> | AnnotationTerm<ReferenceFacet> | AnnotationTerm<ReferenceURLFacet>, sourceEntityType: EntityType, oDataServiceAVT: ConverterOutput, logger?: ExtensionLogger, oDataVersion?: FioriElementsVersion, keyForRelatedFacetKeys?: boolean): FacetSection | undefined;
|
|
84
85
|
/**
|
|
85
|
-
* Finds the alias for a given namespace in the references' section of the converted service metadata
|
|
86
|
-
*
|
|
86
|
+
* Finds the alias for a given namespace in the references' section of the converted service metadata.
|
|
87
|
+
* An empty object is created if the path element does not exist yet.
|
|
88
|
+
* Exception: if an empty array is the next element of the 'path' definition, an empty array is created instaed of an empty object.
|
|
89
|
+
* @param {object} manifest - manifest that is being modified during export
|
|
87
90
|
* @param {string} path - path of the property in the manifest
|
|
88
91
|
* @param {string} targetAnnotation - target annotation (optional)
|
|
89
92
|
* @param {string} targetAnnotationEncoded - target annotation in its encoded form, as used in manifest settings
|
|
90
93
|
* @param {boolean} importScenario - indicates if the function is called for the import, else it is the export
|
|
91
94
|
* @returns returns section of the manifest based on path, generates an empty object in case it does not exists
|
|
92
95
|
*/
|
|
93
|
-
export declare const getManifestSectionByPathV4: (
|
|
96
|
+
export declare const getManifestSectionByPathV4: (manifest: object, path: string, targetAnnotation?: string, targetAnnotationEncoded?: string, importScenario?: boolean) => object;
|
|
94
97
|
export declare function getSchemaKeyOfLineItemRecord(lineItemRecord: DataFieldAbstractTypes): string;
|
|
95
98
|
/**
|
|
96
99
|
* Retrieve header facet configurations that can be used to generate ObjectPage schemas
|
|
@@ -142,6 +145,13 @@ export declare function getTemplateTypeFromManifest(manifest: Manifest, fioriEle
|
|
|
142
145
|
* @param facetKey - key of the facet
|
|
143
146
|
*/
|
|
144
147
|
export declare function addSectionTitleAndDescription(facet: FacetConfig, section: object, facetKey: string): void;
|
|
148
|
+
/**
|
|
149
|
+
* Adds target title or description to a section or header section in an app schema
|
|
150
|
+
* @param facet - intermediate facet structure comprising annotation information
|
|
151
|
+
* @param section - section in the app schema
|
|
152
|
+
* @param facetKey - key of the facet
|
|
153
|
+
*/
|
|
154
|
+
export declare function addTargetTitleAndSectionDescription(facet: FacetConfig, section: object, facetKey: string): void;
|
|
145
155
|
/**
|
|
146
156
|
* Creates a default object for a new section or subsection, and adds the ID as title if present.
|
|
147
157
|
* @param facet Facet configuration, to be analyzed
|
|
@@ -359,28 +359,43 @@ function getSectionFacet(facetDefinition, sourceEntityType, oDataServiceAVT, log
|
|
|
359
359
|
}
|
|
360
360
|
exports.getSectionFacet = getSectionFacet;
|
|
361
361
|
/**
|
|
362
|
-
* Finds the alias for a given namespace in the references' section of the converted service metadata
|
|
363
|
-
*
|
|
362
|
+
* Finds the alias for a given namespace in the references' section of the converted service metadata.
|
|
363
|
+
* An empty object is created if the path element does not exist yet.
|
|
364
|
+
* Exception: if an empty array is the next element of the 'path' definition, an empty array is created instaed of an empty object.
|
|
365
|
+
* @param {object} manifest - manifest that is being modified during export
|
|
364
366
|
* @param {string} path - path of the property in the manifest
|
|
365
367
|
* @param {string} targetAnnotation - target annotation (optional)
|
|
366
368
|
* @param {string} targetAnnotationEncoded - target annotation in its encoded form, as used in manifest settings
|
|
367
369
|
* @param {boolean} importScenario - indicates if the function is called for the import, else it is the export
|
|
368
370
|
* @returns returns section of the manifest based on path, generates an empty object in case it does not exists
|
|
369
371
|
*/
|
|
370
|
-
exports.getManifestSectionByPathV4 = (
|
|
371
|
-
let
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
372
|
+
exports.getManifestSectionByPathV4 = (manifest, path, targetAnnotation, targetAnnotationEncoded, importScenario = false) => {
|
|
373
|
+
let manifestSection = manifest;
|
|
374
|
+
const pathElements = path.split('/');
|
|
375
|
+
for (let index = 0; index < pathElements.length; index++) {
|
|
376
|
+
const element = pathElements[index];
|
|
377
|
+
if (element === '[]') {
|
|
378
|
+
continue;
|
|
379
|
+
}
|
|
380
|
+
const decodedElement = targetAnnotationEncoded && targetAnnotationEncoded === element
|
|
381
|
+
? targetAnnotation
|
|
382
|
+
: element.replace('??', '/');
|
|
383
|
+
//?? can be used in path functions to encoode /
|
|
384
|
+
if (!manifestSection[decodedElement]) {
|
|
375
385
|
if (importScenario) {
|
|
376
|
-
|
|
386
|
+
manifestSection = undefined;
|
|
377
387
|
break;
|
|
378
388
|
}
|
|
379
|
-
|
|
389
|
+
if (pathElements[index + 1] === '[]') {
|
|
390
|
+
manifestSection[decodedElement] = [];
|
|
391
|
+
}
|
|
392
|
+
else {
|
|
393
|
+
manifestSection[decodedElement] = {};
|
|
394
|
+
}
|
|
380
395
|
}
|
|
381
|
-
|
|
396
|
+
manifestSection = manifestSection[decodedElement];
|
|
382
397
|
}
|
|
383
|
-
return
|
|
398
|
+
return manifestSection;
|
|
384
399
|
};
|
|
385
400
|
function getSchemaKeyOfLineItemRecord(lineItemRecord) {
|
|
386
401
|
let schemaKey, target, value;
|
|
@@ -437,64 +452,130 @@ function getSchemaKeyOfLineItemRecord(lineItemRecord) {
|
|
|
437
452
|
}
|
|
438
453
|
exports.getSchemaKeyOfLineItemRecord = getSchemaKeyOfLineItemRecord;
|
|
439
454
|
/**
|
|
440
|
-
*
|
|
441
|
-
* @param {
|
|
442
|
-
* @param {
|
|
455
|
+
* Determines if type of given annotation term is of UIAnnotationTerm
|
|
456
|
+
* @param {string} path path in manifest
|
|
457
|
+
* @param {string} alias for a given namespace
|
|
443
458
|
* @param {EntityType} entityType - the entity type
|
|
444
|
-
* @
|
|
445
|
-
* @param {FioriElementsVersion} oDataVersion - OData version
|
|
446
|
-
* @param {ExtensionLogger} logger - Logger class for logging messages
|
|
459
|
+
* @returns UI annotation term type
|
|
447
460
|
*/
|
|
448
|
-
function
|
|
449
|
-
var _a, _b, _c, _d, _e, _f;
|
|
450
|
-
const alias = findAlias(types_1.UIVOCABULARY, oDataServiceAVT);
|
|
451
|
-
let path = section ? section.key : '';
|
|
452
|
-
const targetEntityType = section.entityType;
|
|
453
|
-
let annotation, targetAnnotation;
|
|
461
|
+
function getUIAnnotationTerm(path, alias, entityType) {
|
|
454
462
|
if (path.includes("com.sap.vocabularies.UI.v1.Chart" /* Chart */) || path.includes(alias + '.Chart')) {
|
|
455
|
-
|
|
456
|
-
facets[path].entityType = targetEntityType;
|
|
463
|
+
return "com.sap.vocabularies.UI.v1.Chart" /* Chart */;
|
|
457
464
|
}
|
|
458
465
|
else if (path.includes("com.sap.vocabularies.UI.v1.Identification" /* Identification */) || path.includes(alias + '.Identification')) {
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
facets[path].target = targetAnnotation;
|
|
464
|
-
}
|
|
465
|
-
else if (entityType && (path.includes("com.sap.vocabularies.UI.v1.LineItem" /* LineItem */) || path.includes(alias + '.LineItem'))) {
|
|
466
|
-
if (!path.includes("com.sap.vocabularies.UI.v1.LineItem" /* LineItem */) && path.includes('.LineItem')) {
|
|
467
|
-
const pathParts = path.split('::');
|
|
468
|
-
pathParts[pathParts.length - 1] = `@${"com.sap.vocabularies.UI.v1.LineItem" /* LineItem */}`;
|
|
469
|
-
path = pathParts.join('::');
|
|
470
|
-
}
|
|
471
|
-
facets[path] = { base: types_1.FacetBase.LineItem };
|
|
472
|
-
facets[path].target = (_a = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _a === void 0 ? void 0 : _a.$target;
|
|
473
|
-
facets[path].entityType = targetEntityType;
|
|
466
|
+
return "com.sap.vocabularies.UI.v1.Identification" /* Identification */;
|
|
467
|
+
}
|
|
468
|
+
else if ((entityType && path.includes("com.sap.vocabularies.UI.v1.LineItem" /* LineItem */)) || path.includes(alias + '.LineItem')) {
|
|
469
|
+
return "com.sap.vocabularies.UI.v1.LineItem" /* LineItem */;
|
|
474
470
|
}
|
|
475
471
|
else if (path.includes("com.sap.vocabularies.UI.v1.FieldGroup" /* FieldGroup */) || path.includes(alias + '.FieldGroup')) {
|
|
476
|
-
|
|
477
|
-
facets[path].target = (_b = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _b === void 0 ? void 0 : _b.$target;
|
|
478
|
-
facets[path].entityType = targetEntityType;
|
|
472
|
+
return "com.sap.vocabularies.UI.v1.FieldGroup" /* FieldGroup */;
|
|
479
473
|
}
|
|
480
474
|
else if (path.includes("com.sap.vocabularies.UI.v1.DataPoint" /* DataPoint */) || path.includes(alias + '.DataPoint')) {
|
|
481
|
-
|
|
482
|
-
facets[path].target = (_c = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _c === void 0 ? void 0 : _c.$target;
|
|
483
|
-
facets[path].entityType = targetEntityType;
|
|
484
|
-
facets[path].Label = (_d = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _d === void 0 ? void 0 : _d.$target['Title'];
|
|
475
|
+
return "com.sap.vocabularies.UI.v1.DataPoint" /* DataPoint */;
|
|
485
476
|
}
|
|
486
|
-
else
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
477
|
+
else {
|
|
478
|
+
return undefined;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* Determines if type of given annotation term is of CommunicationAnnotationTerm
|
|
483
|
+
* @param {string} path path in manifest
|
|
484
|
+
* @param {string} alias for a given namespace
|
|
485
|
+
* @param {EntityType} entityType - the entity type
|
|
486
|
+
* @returns Communication annotation term type
|
|
487
|
+
*/
|
|
488
|
+
function getCommunicationAnnotationTerm(path, alias) {
|
|
489
|
+
if (path.includes('com.sap.vocabularies.Communication.v1.Contact') || path.includes(alias + '.Contact')) {
|
|
490
|
+
return "com.sap.vocabularies.Communication.v1.Contact" /* Contact */;
|
|
490
491
|
}
|
|
491
492
|
else if (path.includes('com.sap.vocabularies.Communication.v1.Address') || path.includes(alias + '.Address')) {
|
|
492
|
-
|
|
493
|
-
facets[path].target = (_f = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _f === void 0 ? void 0 : _f.$target;
|
|
494
|
-
facets[path].entityType = targetEntityType;
|
|
493
|
+
return "com.sap.vocabularies.Communication.v1.Address" /* Address */;
|
|
495
494
|
}
|
|
496
495
|
else {
|
|
497
|
-
|
|
496
|
+
return undefined;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* Determines the type of given annotation term
|
|
501
|
+
* @param {string} path path in manifest
|
|
502
|
+
* @param {string} alias for a given namespace
|
|
503
|
+
* @param {EntityType} entityType - the entity type
|
|
504
|
+
* @returns annotation term type
|
|
505
|
+
*/
|
|
506
|
+
function getAnnotationTerm(path, alias, entityType) {
|
|
507
|
+
return getUIAnnotationTerm(path, alias, entityType) || getCommunicationAnnotationTerm(path, alias);
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Evaluates the target annotation of a reference facet and actualizes the facets for the config
|
|
511
|
+
* @param {AnnotationTerm} annotationRecord - the actual annotation record
|
|
512
|
+
* @param {FacetConfigs} facets - list of facets in config format, to be updated
|
|
513
|
+
* @param {EntityType} entityType - the entity type
|
|
514
|
+
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
515
|
+
* @param {FioriElementsVersion} oDataVersion - OData version
|
|
516
|
+
* @param {ExtensionLogger} logger - Logger class for logging messages
|
|
517
|
+
*/
|
|
518
|
+
function evaluateTargetAnnotation(section, annotationRecord, facets, entityType, oDataServiceAVT, oDataVersion = common_1.FioriElementsVersion.v2, logger) {
|
|
519
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
520
|
+
const alias = findAlias(types_1.UIVOCABULARY, oDataServiceAVT);
|
|
521
|
+
let path = section ? section.key : '';
|
|
522
|
+
const targetEntityType = section.entityType;
|
|
523
|
+
const annotationTerm = getAnnotationTerm(path, alias, entityType);
|
|
524
|
+
let annotation, targetAnnotation;
|
|
525
|
+
switch (annotationTerm) {
|
|
526
|
+
case "com.sap.vocabularies.UI.v1.Chart" /* Chart */: {
|
|
527
|
+
facets[path] = { base: types_1.FacetBase.Chart };
|
|
528
|
+
facets[path].target = (_a = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _a === void 0 ? void 0 : _a.$target;
|
|
529
|
+
facets[path].entityType = targetEntityType;
|
|
530
|
+
break;
|
|
531
|
+
}
|
|
532
|
+
case "com.sap.vocabularies.UI.v1.Identification" /* Identification */: {
|
|
533
|
+
annotation = path.split('.')[path.split('.').length - 1];
|
|
534
|
+
targetAnnotation = targetEntityType.annotations[alias][annotation];
|
|
535
|
+
facets[path] = { base: types_1.FacetBase.Identification };
|
|
536
|
+
facets[path].entityType = targetEntityType;
|
|
537
|
+
facets[path].target = targetAnnotation;
|
|
538
|
+
break;
|
|
539
|
+
}
|
|
540
|
+
case "com.sap.vocabularies.UI.v1.LineItem" /* LineItem */: {
|
|
541
|
+
if (!path.includes("com.sap.vocabularies.UI.v1.LineItem" /* LineItem */) && path.includes('.LineItem')) {
|
|
542
|
+
const pathParts = path.split('::');
|
|
543
|
+
pathParts[pathParts.length - 1] = `@${"com.sap.vocabularies.UI.v1.LineItem" /* LineItem */}`;
|
|
544
|
+
path = pathParts.join('::');
|
|
545
|
+
}
|
|
546
|
+
facets[path] = { base: types_1.FacetBase.LineItem };
|
|
547
|
+
facets[path].target = (_b = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _b === void 0 ? void 0 : _b.$target;
|
|
548
|
+
facets[path].entityType = targetEntityType;
|
|
549
|
+
break;
|
|
550
|
+
}
|
|
551
|
+
case "com.sap.vocabularies.UI.v1.FieldGroup" /* FieldGroup */: {
|
|
552
|
+
facets[path] = { base: types_1.FacetBase.Form };
|
|
553
|
+
facets[path].target = (_c = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _c === void 0 ? void 0 : _c.$target;
|
|
554
|
+
facets[path].entityType = targetEntityType;
|
|
555
|
+
break;
|
|
556
|
+
}
|
|
557
|
+
case "com.sap.vocabularies.UI.v1.DataPoint" /* DataPoint */: {
|
|
558
|
+
facets[path] = { base: types_1.FacetBase.DataPoint };
|
|
559
|
+
facets[path].target = (_d = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _d === void 0 ? void 0 : _d.$target;
|
|
560
|
+
facets[path].entityType = targetEntityType;
|
|
561
|
+
facets[path].Label = (_e = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _e === void 0 ? void 0 : _e.$target['Title'];
|
|
562
|
+
break;
|
|
563
|
+
}
|
|
564
|
+
case "com.sap.vocabularies.Communication.v1.Contact" /* Contact */: {
|
|
565
|
+
facets[path] = { base: types_1.FacetBase.Contact };
|
|
566
|
+
facets[path].target = (_f = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _f === void 0 ? void 0 : _f.$target;
|
|
567
|
+
facets[path].entityType = targetEntityType;
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
case "com.sap.vocabularies.Communication.v1.Address" /* Address */: {
|
|
571
|
+
facets[path] = { base: types_1.FacetBase.Address };
|
|
572
|
+
facets[path].target = (_g = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _g === void 0 ? void 0 : _g.$target;
|
|
573
|
+
facets[path].entityType = targetEntityType;
|
|
574
|
+
break;
|
|
575
|
+
}
|
|
576
|
+
default: {
|
|
577
|
+
facets[path] = { base: types_1.FacetBase.Unknown };
|
|
578
|
+
}
|
|
498
579
|
}
|
|
499
580
|
if (facets[path]) {
|
|
500
581
|
facets[path].annotationPath = `/${annotationRecord.fullyQualifiedName.replace('@com.sap.vocabularies', types_1.VOCWITHSLASH)}`;
|
|
@@ -670,6 +751,7 @@ exports.determineV2Template = determineV2Template;
|
|
|
670
751
|
* @returns {TemplateType} the template type
|
|
671
752
|
*/
|
|
672
753
|
function determineV4Template(manifest, logger) {
|
|
754
|
+
var _a, _b, _c, _d;
|
|
673
755
|
let templateType;
|
|
674
756
|
const v4Pages = manifest[v4_1.ManifestSection.ui5].routing &&
|
|
675
757
|
manifest[v4_1.ManifestSection.ui5].routing.targets;
|
|
@@ -691,10 +773,20 @@ function determineV4Template(manifest, logger) {
|
|
|
691
773
|
templateType = TemplateType.AnalyticalListPageV4;
|
|
692
774
|
break;
|
|
693
775
|
}
|
|
694
|
-
else if (pageType === common_1.PageTypeV4.ListReport
|
|
695
|
-
|
|
776
|
+
else if (pageType === common_1.PageTypeV4.ListReport) {
|
|
777
|
+
const viewPath = (_d = (_c = (_b = (_a = v4Page.options) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.views) === null || _c === void 0 ? void 0 : _c.paths) === null || _d === void 0 ? void 0 : _d[0];
|
|
778
|
+
if (viewPath && (viewPath[types_1.ALPViewType.Primary] || viewPath[types_1.ALPViewType.Secondary])) {
|
|
779
|
+
templateType = TemplateType.AnalyticalListPageV4;
|
|
780
|
+
}
|
|
781
|
+
else {
|
|
782
|
+
templateType = TemplateType.ListReportObjectPageV4;
|
|
783
|
+
}
|
|
696
784
|
break;
|
|
697
785
|
}
|
|
786
|
+
else if (pageType === common_1.PageTypeV4.ObjectPage) {
|
|
787
|
+
templateType = TemplateType.ListReportObjectPageV4;
|
|
788
|
+
//fixed now for FEOP scenario, bit continue to check if LR/ALP exists
|
|
789
|
+
}
|
|
698
790
|
}
|
|
699
791
|
if (!templateType) {
|
|
700
792
|
extensionLogger_1.log(logger, {
|
|
@@ -752,7 +844,7 @@ function addSectionTitleAndDescription(facet, section, facetKey) {
|
|
|
752
844
|
section['title'] = types_1.FacetTitlePrefix + facet.ID;
|
|
753
845
|
}
|
|
754
846
|
else {
|
|
755
|
-
section['title'] = facetKey.
|
|
847
|
+
section['title'] = facetKey.replace(/@com.sap/g, 'com.sap');
|
|
756
848
|
}
|
|
757
849
|
// Description
|
|
758
850
|
if (facet === null || facet === void 0 ? void 0 : facet.Label) {
|
|
@@ -766,6 +858,23 @@ function addSectionTitleAndDescription(facet, section, facetKey) {
|
|
|
766
858
|
}
|
|
767
859
|
}
|
|
768
860
|
exports.addSectionTitleAndDescription = addSectionTitleAndDescription;
|
|
861
|
+
/**
|
|
862
|
+
* Adds target title or description to a section or header section in an app schema
|
|
863
|
+
* @param facet - intermediate facet structure comprising annotation information
|
|
864
|
+
* @param section - section in the app schema
|
|
865
|
+
* @param facetKey - key of the facet
|
|
866
|
+
*/
|
|
867
|
+
function addTargetTitleAndSectionDescription(facet, section, facetKey) {
|
|
868
|
+
var _a, _b, _c, _d;
|
|
869
|
+
addSectionTitleAndDescription(facet, section, facetKey);
|
|
870
|
+
if ((_a = facet === null || facet === void 0 ? void 0 : facet.target) === null || _a === void 0 ? void 0 : _a['Title']) {
|
|
871
|
+
section['description'] = (_b = facet === null || facet === void 0 ? void 0 : facet.target) === null || _b === void 0 ? void 0 : _b['Title'];
|
|
872
|
+
}
|
|
873
|
+
else if ((_c = facet === null || facet === void 0 ? void 0 : facet.target) === null || _c === void 0 ? void 0 : _c['Description']) {
|
|
874
|
+
section['description'] = (_d = facet === null || facet === void 0 ? void 0 : facet.target) === null || _d === void 0 ? void 0 : _d['Description'];
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
exports.addTargetTitleAndSectionDescription = addTargetTitleAndSectionDescription;
|
|
769
878
|
/**
|
|
770
879
|
* Creates a default object for a new section or subsection, and adds the ID as title if present.
|
|
771
880
|
* @param facet Facet configuration, to be analyzed
|
|
@@ -827,19 +936,24 @@ exports.deleteEmptyStructure = (manifest, path, targetAnnotation, targetAnnotati
|
|
|
827
936
|
let manifestSection = manifest;
|
|
828
937
|
const pathArray = path.split('/');
|
|
829
938
|
pathArray.forEach(function (element) {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
if (!manifestSection[
|
|
939
|
+
const decodedElement = targetAnnotationEncoded && targetAnnotationEncoded === element
|
|
940
|
+
? targetAnnotation
|
|
941
|
+
: element.replace('??', '/');
|
|
942
|
+
if (!manifestSection[decodedElement]) {
|
|
834
943
|
return;
|
|
835
944
|
}
|
|
836
|
-
if (Object.keys(manifestSection[
|
|
837
|
-
|
|
945
|
+
if (Object.keys(manifestSection[decodedElement]).length === 0) {
|
|
946
|
+
if (Array.isArray(manifestSection)) {
|
|
947
|
+
manifestSection.splice(Number(decodedElement), 1);
|
|
948
|
+
}
|
|
949
|
+
else {
|
|
950
|
+
delete manifestSection[decodedElement];
|
|
951
|
+
}
|
|
838
952
|
pathArray.pop();
|
|
839
953
|
exports.deleteEmptyStructure(manifest, pathArray.join('/'), targetAnnotation, targetAnnotationEncoded);
|
|
840
954
|
return;
|
|
841
955
|
}
|
|
842
|
-
manifestSection = manifestSection && manifestSection[
|
|
956
|
+
manifestSection = manifestSection && manifestSection[decodedElement];
|
|
843
957
|
});
|
|
844
958
|
};
|
|
845
959
|
/**
|