@sap/ux-specification 1.124.3 → 1.124.5
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 +48 -26
- package/dist/documentation/runDocu-min.js.map +3 -3
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
- package/dist/documentation/v4/v4-FreestylePage.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +89 -89
- package/dist/index-min.js.map +3 -3
- package/dist/schemas/v2/AnalyticalListPageConfig.json +76 -76
- package/dist/schemas/v2/ApplicationV2.json +5 -5
- package/dist/schemas/v2/ListReportConfig.json +86 -85
- package/dist/schemas/v2/ObjectPageConfig.json +83 -83
- package/dist/schemas/v2/OverviewPageConfig.json +84 -84
- package/dist/schemas/v4/ApplicationV4.json +4 -4
- package/dist/schemas/v4/BuildingBlocksConfig.json +138 -8
- package/dist/schemas/v4/ListReportConfig.json +50 -50
- package/dist/schemas/v4/ObjectPageConfig.json +47 -47
- package/dist/specification/package.json +7 -7
- package/dist/specification/scripts/documentation/components/filter.js +0 -1
- package/dist/specification/scripts/documentation/components/filter.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/TreeUI.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/TreeUI.js +2 -1
- package/dist/specification/scripts/documentation/components/ui/TreeUI.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/search.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/search.js +6 -3
- package/dist/specification/scripts/documentation/components/ui/search.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/toggle.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/toggle.js +6 -3
- package/dist/specification/scripts/documentation/components/ui/toggle.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/tooltip.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/tooltip.js +13 -9
- package/dist/specification/scripts/documentation/components/ui/tooltip.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/utils.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/utils.js +8 -4
- package/dist/specification/scripts/documentation/components/ui/utils.js.map +1 -1
- package/dist/specification/scripts/extractDocu.js +64 -24
- package/dist/specification/scripts/extractDocu.js.map +1 -1
- package/dist/specification/scripts/macros/api.js +5 -5
- package/dist/specification/scripts/macros/api.js.map +1 -1
- package/dist/specification/scripts/macros/cmd.js +2 -2
- package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
- package/dist/specification/scripts/macros/schema.js.map +1 -1
- package/dist/specification/scripts/to-json-schema.js +1 -1
- package/dist/specification/scripts/to-json-schema.js.map +1 -1
- package/dist/specification/src/api.js +4 -4
- package/dist/specification/src/extensionLogger.js +3 -3
- package/dist/specification/src/sync/common/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/common/appProvider.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/control.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/control.js +2 -2
- package/dist/specification/src/sync/common/decoration/control.js.map +1 -1
- package/dist/specification/src/sync/common/flexUtils.js +1 -1
- package/dist/specification/src/sync/common/flexUtils.js.map +1 -1
- package/dist/specification/src/sync/common/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/objectPage.js +1 -3
- package/dist/specification/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +10 -10
- package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/common/import/utils.js +2 -2
- package/dist/specification/src/sync/common/importProject.js +3 -3
- package/dist/specification/src/sync/common/importProject.js.map +1 -1
- package/dist/specification/src/sync/common/utils.d.ts +1 -2
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +113 -109
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Action.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Action.js +4 -8
- package/dist/specification/src/sync/v2/export/controls/Action.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/AnalyticalListPageChart.js +4 -9
- package/dist/specification/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Field.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Field.js +1 -2
- package/dist/specification/src/sync/v2/export/controls/Field.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/FilterBar.d.ts +1 -1
- package/dist/specification/src/sync/v2/export/controls/FilterBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/FilterBar.js +1 -2
- package/dist/specification/src/sync/v2/export/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/FormAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/FormAction.js +1 -2
- package/dist/specification/src/sync/v2/export/controls/FormAction.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Fragment.js +14 -6
- package/dist/specification/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageFooterAction.js +1 -2
- package/dist/specification/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeader.js +1 -2
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeader.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderAction.js +1 -2
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.js +7 -8
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageLayout.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageLayout.js +4 -8
- package/dist/specification/src/sync/v2/export/controls/ObjectPageLayout.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageSection.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageSection.js +11 -22
- package/dist/specification/src/sync/v2/export/controls/ObjectPageSection.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.js +7 -14
- package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageToolBarAction.js +1 -2
- package/dist/specification/src/sync/v2/export/controls/ObjectPageToolBarAction.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Table.js +7 -14
- package/dist/specification/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/TableColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/TableColumn.js +4 -8
- package/dist/specification/src/sync/v2/export/controls/TableColumn.js.map +1 -1
- package/dist/specification/src/sync/v2/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/export.js +9 -8
- package/dist/specification/src/sync/v2/export/export.js.map +1 -1
- package/dist/specification/src/sync/v2/export/factory.js +8 -8
- package/dist/specification/src/sync/v2/export/manifest.js +0 -1
- package/dist/specification/src/sync/v2/export/manifest.js.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/AnalyticalListPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/AnalyticalListPage.js +1 -2
- package/dist/specification/src/sync/v2/export/pages/AnalyticalListPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/ListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/ListReport.js +1 -2
- package/dist/specification/src/sync/v2/export/pages/ListReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.js +4 -4
- package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.js +0 -2
- package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/import/app/appProvider.js +0 -1
- package/dist/specification/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/specification/src/sync/v2/import/app/ovpProvider.js.map +1 -1
- package/dist/specification/src/sync/v2/import/common/index.d.ts +3 -2
- package/dist/specification/src/sync/v2/import/common/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/common/index.js +41 -24
- package/dist/specification/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js +1 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.js +1 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.js +7 -8
- package/dist/specification/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFooter.d.ts +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFooter.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.d.ts +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderSection.d.ts +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBar.d.ts +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/export.js +9 -10
- package/dist/specification/src/sync/v4/export/export.js.map +1 -1
- package/dist/specification/src/sync/v4/export/factory.js +6 -6
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/objectPage.js +3 -3
- package/dist/types/src/apiTypes.d.ts +1 -1
- package/dist/types/src/apiTypes.js +2 -2
- package/dist/types/src/common/Application.d.ts +4 -8
- package/dist/types/src/common/Application.d.ts.map +1 -1
- package/dist/types/src/common/page.d.ts +1 -1
- package/dist/types/src/common/page.d.ts.map +1 -1
- package/dist/types/src/common/page.js.map +1 -1
- package/dist/types/src/common/types.d.ts +3 -5
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js +4 -4
- package/dist/types/src/common/types.js.map +1 -1
- package/dist/types/src/v2/application.d.ts +1 -1
- package/dist/types/src/v2/controls/Action.d.ts +4 -2
- package/dist/types/src/v2/controls/Action.d.ts.map +1 -1
- package/dist/types/src/v2/controls/AnalyticalListPageKPI.d.ts +6 -6
- package/dist/types/src/v2/controls/Card.d.ts +37 -36
- package/dist/types/src/v2/controls/Card.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Card.js.map +1 -1
- package/dist/types/src/v2/controls/Field.d.ts +1 -1
- package/dist/types/src/v2/controls/FilterBar.d.ts +18 -14
- package/dist/types/src/v2/controls/FilterBar.d.ts.map +1 -1
- package/dist/types/src/v2/controls/FilterBar.js.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageChart.d.ts +2 -2
- package/dist/types/src/v2/controls/ObjectPageHeader.d.ts +2 -2
- package/dist/types/src/v2/controls/ObjectPageLayout.d.ts +4 -4
- package/dist/types/src/v2/controls/ObjectPageSection.d.ts +2 -2
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts +20 -20
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.d.ts +52 -47
- package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.js.map +1 -1
- package/dist/types/src/v2/overviewPage.d.ts +2 -2
- package/dist/types/src/v2/pages/ObjectPageConfigV2.d.ts +4 -4
- package/dist/types/src/v2/pages/OverviewPageConfigV2.d.ts +5 -5
- package/dist/types/src/v4/controls/CustomAction.d.ts +3 -3
- package/dist/types/src/v4/controls/FilterBar.d.ts +5 -7
- package/dist/types/src/v4/controls/FilterBar.d.ts.map +1 -1
- package/dist/types/src/v4/controls/FilterBar.js.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageFooter.d.ts +1 -1
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts +6 -6
- package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts +2 -2
- package/dist/types/src/v4/controls/ObjectPageLayout.d.ts +1 -2
- package/dist/types/src/v4/controls/ObjectPageLayout.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageSection.d.ts +2 -2
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts +4 -4
- package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts +2 -2
- package/dist/types/src/v4/controls/Table.d.ts +28 -35
- package/dist/types/src/v4/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ToolBar.d.ts +3 -3
- package/dist/types/src/v4/pages/ListReportConfigV4.d.ts +1 -2
- package/dist/types/src/v4/pages/ListReportConfigV4.d.ts.map +1 -1
- package/dist/types/src/v4/pages/ObjectPageConfigV4.d.ts +3 -4
- package/dist/types/src/v4/pages/ObjectPageConfigV4.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts +10 -8
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/sapUi5.d.ts +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/sync/common/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,yBAAyB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;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,CAE9D;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAErG;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAM/E;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,OAAO,CAczF;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAIpD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAIrD"}
|
|
@@ -44,7 +44,6 @@ exports.getJSONPropertyByPath = getJSONPropertyByPath;
|
|
|
44
44
|
exports.removeNamespaces = removeNamespaces;
|
|
45
45
|
exports.replaceNamespaces = replaceNamespaces;
|
|
46
46
|
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
47
|
-
const ux_specification_types_2 = require("@sap/ux-specification-types");
|
|
48
47
|
const i18next_1 = __importDefault(require("i18next"));
|
|
49
48
|
const deepmerge_1 = __importDefault(require("deepmerge"));
|
|
50
49
|
const annotation_converter_1 = require("@sap-ux/annotation-converter");
|
|
@@ -52,10 +51,10 @@ const edmx_parser_1 = require("@sap-ux/edmx-parser");
|
|
|
52
51
|
const extensionLogger_1 = require("../../extensionLogger");
|
|
53
52
|
exports.DEFINITION_LINK_PREFIX = '#/definitions/';
|
|
54
53
|
exports.V4_TEMPLATES = [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
ux_specification_types_1.v4.FE_TEMPLATE_V4_LIST_REPORT,
|
|
55
|
+
ux_specification_types_1.v4.FE_TEMPLATE_V4_ALP,
|
|
56
|
+
ux_specification_types_1.v4.FE_TEMPLATE_V4_OBJECT_PAGE,
|
|
57
|
+
ux_specification_types_1.v4.FE_TEMPLATE_V4_CUSTOM_PAGE
|
|
59
58
|
];
|
|
60
59
|
exports.V4_LIBS = ['sap.fe.core', 'sap.fe.templates'];
|
|
61
60
|
const arrayIncludes = (arr, target) => target.every((v) => arr.includes(v));
|
|
@@ -269,7 +268,7 @@ function getDataFieldDescription(dataFieldAbstract, entityType) {
|
|
|
269
268
|
}
|
|
270
269
|
return title;
|
|
271
270
|
}
|
|
272
|
-
catch
|
|
271
|
+
catch {
|
|
273
272
|
return title;
|
|
274
273
|
}
|
|
275
274
|
}
|
|
@@ -278,6 +277,7 @@ function getDataFieldDescription(dataFieldAbstract, entityType) {
|
|
|
278
277
|
* @param refInput string to be character checked and replaced
|
|
279
278
|
* @returns string with replaced characters
|
|
280
279
|
*/
|
|
280
|
+
//@typescript-eslint/no-wrapper-object-types turned off tor prevent conversion String > string; String is used by AVT
|
|
281
281
|
function prepareRef(refInput) {
|
|
282
282
|
return refInput.replace('#', '::').replace(/\//g, ':2f');
|
|
283
283
|
}
|
|
@@ -287,7 +287,7 @@ function prepareRef(refInput) {
|
|
|
287
287
|
*/
|
|
288
288
|
function getPageTypeV2(name) {
|
|
289
289
|
if (name) {
|
|
290
|
-
const templatePart = `${
|
|
290
|
+
const templatePart = `${ux_specification_types_1.v2.FE_TEMPLATE_V2}.`;
|
|
291
291
|
return name.split(templatePart)[1];
|
|
292
292
|
}
|
|
293
293
|
}
|
|
@@ -296,16 +296,16 @@ function getPageTypeV2(name) {
|
|
|
296
296
|
* @param name - page component name
|
|
297
297
|
*/
|
|
298
298
|
function getPageTypeV4(v4App) {
|
|
299
|
-
if (v4App.name && v4App.name !==
|
|
300
|
-
const templatePart = `${
|
|
299
|
+
if (v4App.name && v4App.name !== ux_specification_types_1.v4.FE_TEMPLATE_V4_CUSTOM_PAGE) {
|
|
300
|
+
const templatePart = `${ux_specification_types_1.v4.FE_TEMPLATE_V4}.`;
|
|
301
301
|
return v4App.name.split(templatePart)[1];
|
|
302
302
|
}
|
|
303
|
-
else if (v4App?.name ===
|
|
304
|
-
return
|
|
303
|
+
else if (v4App?.name === ux_specification_types_1.v4.FE_TEMPLATE_V4_CUSTOM_PAGE) {
|
|
304
|
+
return ux_specification_types_1.PageTypeV4.FPMCustomPage;
|
|
305
305
|
}
|
|
306
306
|
else if (v4App.viewId ||
|
|
307
307
|
v4App.viewName) {
|
|
308
|
-
return
|
|
308
|
+
return ux_specification_types_1.PageTypeV4.CustomPage;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
function getTargetAnnotationName(targetAnnotation, keyForRelatedFacetKeys = false) {
|
|
@@ -373,11 +373,11 @@ function adjustKey(key, navigationParts, keyForRelatedFacetKeys) {
|
|
|
373
373
|
key = pathParts.join('::');
|
|
374
374
|
}
|
|
375
375
|
else {
|
|
376
|
-
key = uiClass.replace('@UI', `${!keyForRelatedFacetKeys ? '@' : ''}${
|
|
376
|
+
key = uiClass.replace('@UI', `${!keyForRelatedFacetKeys ? '@' : ''}${ux_specification_types_1.UIVOCABULARY}`);
|
|
377
377
|
}
|
|
378
378
|
return key;
|
|
379
379
|
}
|
|
380
|
-
function getKeyAndEntityTypeOfReferenceFacet(oDataServiceAVT, key, entityType, propertyValue, oDataVersion =
|
|
380
|
+
function getKeyAndEntityTypeOfReferenceFacet(oDataServiceAVT, key, entityType, propertyValue, oDataVersion = ux_specification_types_1.FioriElementsVersion.v2, keyForRelatedFacetKeys = false) {
|
|
381
381
|
let stopProcessing = false;
|
|
382
382
|
let namespace;
|
|
383
383
|
const navigationParts = propertyValue.split('/');
|
|
@@ -388,7 +388,7 @@ function getKeyAndEntityTypeOfReferenceFacet(oDataServiceAVT, key, entityType, p
|
|
|
388
388
|
key = adjustKey(key, navigationParts, keyForRelatedFacetKeys);
|
|
389
389
|
const targetAnnotation = determineTargetAnnotation(navigationParts, entityType, oDataServiceAVT);
|
|
390
390
|
if (targetAnnotation) {
|
|
391
|
-
const separator = oDataVersion ===
|
|
391
|
+
const separator = oDataVersion === ux_specification_types_1.FioriElementsVersion.v2 ? '::' : '#';
|
|
392
392
|
key = getTargetAnnotationName(targetAnnotation, keyForRelatedFacetKeys).replace('#', separator);
|
|
393
393
|
namespace = targetAnnotation.fullyQualifiedName?.split('@')[0];
|
|
394
394
|
}
|
|
@@ -397,7 +397,7 @@ function getKeyAndEntityTypeOfReferenceFacet(oDataServiceAVT, key, entityType, p
|
|
|
397
397
|
return { key, entityType, stopProcessing, namespace };
|
|
398
398
|
}
|
|
399
399
|
if (navigation) {
|
|
400
|
-
const navSeparator = oDataVersion ===
|
|
400
|
+
const navSeparator = oDataVersion === ux_specification_types_1.FioriElementsVersion.v2 ? '::' : '/';
|
|
401
401
|
navigationParts.pop();
|
|
402
402
|
const navigationIDs = [...navigationParts].join(navSeparator);
|
|
403
403
|
key = `${navigationIDs}${navSeparator}${key}`;
|
|
@@ -413,7 +413,7 @@ function getKeyAndEntityTypeOfReferenceFacet(oDataServiceAVT, key, entityType, p
|
|
|
413
413
|
* @param {ExtensionLogger} logger - Logger class for logging messages
|
|
414
414
|
* @returns {FacetSection} - object comprising the relevant facet information
|
|
415
415
|
*/
|
|
416
|
-
function getSectionFacet(facetDefinition, sourceEntityType, oDataServiceAVT, logger, oDataVersion =
|
|
416
|
+
function getSectionFacet(facetDefinition, sourceEntityType, oDataServiceAVT, logger, oDataVersion = ux_specification_types_1.FioriElementsVersion.v2, keyForRelatedFacetKeys = false) {
|
|
417
417
|
//Take facet ID as fallback
|
|
418
418
|
const facetName = facetDefinition.fullyQualifiedName?.substring(facetDefinition.fullyQualifiedName?.lastIndexOf('@'));
|
|
419
419
|
let key = facetDefinition.ID ? facetDefinition.ID.toString() : facetName;
|
|
@@ -569,7 +569,7 @@ function getSchemaKeyOfLineItemRecord(lineItemRecord) {
|
|
|
569
569
|
schemaKey =
|
|
570
570
|
'DataFieldForAnnotation:::sTarget::' +
|
|
571
571
|
target
|
|
572
|
-
.replace('@UI', `@${
|
|
572
|
+
.replace('@UI', `@${ux_specification_types_1.UIVOCABULARY}`)
|
|
573
573
|
.replace('@Communication', '@com.sap.vocabularies.Communication.v1')
|
|
574
574
|
.replace('@Contact', '@com.sap.vocabularies.Contact.v1');
|
|
575
575
|
}
|
|
@@ -668,20 +668,20 @@ function getAnnotationTerm(path, alias, entityType) {
|
|
|
668
668
|
* @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
669
669
|
*/
|
|
670
670
|
function evaluateTargetAnnotation(section, annotationRecord, facets, entityType, oDataServiceAVT) {
|
|
671
|
-
const alias = findAlias(
|
|
671
|
+
const alias = findAlias(ux_specification_types_1.UIVOCABULARY, oDataServiceAVT);
|
|
672
672
|
let path = section ? section.key : '';
|
|
673
673
|
const targetEntityType = section.entityType;
|
|
674
674
|
const annotationTerm = getAnnotationTerm(path, alias, entityType);
|
|
675
675
|
switch (annotationTerm) {
|
|
676
676
|
case "com.sap.vocabularies.UI.v1.Chart" /* UIAnnotationTerms.Chart */: {
|
|
677
|
-
facets[path] = { base:
|
|
677
|
+
facets[path] = { base: ux_specification_types_1.FacetBase.Chart };
|
|
678
678
|
facets[path].target = annotationRecord?.Target?.$target;
|
|
679
679
|
facets[path].entityType = targetEntityType;
|
|
680
680
|
facets[path].namespace = section.namespace;
|
|
681
681
|
break;
|
|
682
682
|
}
|
|
683
683
|
case "com.sap.vocabularies.UI.v1.Identification" /* UIAnnotationTerms.Identification */: {
|
|
684
|
-
facets[path] = { base:
|
|
684
|
+
facets[path] = { base: ux_specification_types_1.FacetBase.Identification };
|
|
685
685
|
facets[path].target = annotationRecord?.Target?.$target;
|
|
686
686
|
facets[path].entityType = targetEntityType;
|
|
687
687
|
facets[path].namespace = section.namespace;
|
|
@@ -693,21 +693,21 @@ function evaluateTargetAnnotation(section, annotationRecord, facets, entityType,
|
|
|
693
693
|
pathParts[pathParts.length - 1] = `@${"com.sap.vocabularies.UI.v1.LineItem" /* UIAnnotationTerms.LineItem */}`;
|
|
694
694
|
path = pathParts.join('::');
|
|
695
695
|
}
|
|
696
|
-
facets[path] = { base:
|
|
696
|
+
facets[path] = { base: ux_specification_types_1.FacetBase.LineItem };
|
|
697
697
|
facets[path].target = annotationRecord?.Target?.$target;
|
|
698
698
|
facets[path].entityType = targetEntityType;
|
|
699
699
|
facets[path].namespace = section.namespace;
|
|
700
700
|
break;
|
|
701
701
|
}
|
|
702
702
|
case "com.sap.vocabularies.UI.v1.FieldGroup" /* UIAnnotationTerms.FieldGroup */: {
|
|
703
|
-
facets[path] = { base:
|
|
703
|
+
facets[path] = { base: ux_specification_types_1.FacetBase.Form };
|
|
704
704
|
facets[path].target = annotationRecord?.Target?.$target;
|
|
705
705
|
facets[path].entityType = targetEntityType;
|
|
706
706
|
facets[path].namespace = section.namespace;
|
|
707
707
|
break;
|
|
708
708
|
}
|
|
709
709
|
case "com.sap.vocabularies.UI.v1.DataPoint" /* UIAnnotationTerms.DataPoint */: {
|
|
710
|
-
facets[path] = { base:
|
|
710
|
+
facets[path] = { base: ux_specification_types_1.FacetBase.DataPoint };
|
|
711
711
|
facets[path].Label = annotationRecord?.Target?.$target['Title'];
|
|
712
712
|
facets[path].target = annotationRecord?.Target?.$target;
|
|
713
713
|
facets[path].entityType = targetEntityType;
|
|
@@ -715,39 +715,39 @@ function evaluateTargetAnnotation(section, annotationRecord, facets, entityType,
|
|
|
715
715
|
break;
|
|
716
716
|
}
|
|
717
717
|
case "com.sap.vocabularies.UI.v1.PresentationVariant" /* UIAnnotationTerms.PresentationVariant */: {
|
|
718
|
-
facets[path] = { base:
|
|
718
|
+
facets[path] = { base: ux_specification_types_1.FacetBase.PresentationVariant };
|
|
719
719
|
facets[path].target = annotationRecord?.Target?.$target;
|
|
720
720
|
facets[path].entityType = targetEntityType;
|
|
721
721
|
facets[path].namespace = section.namespace;
|
|
722
722
|
break;
|
|
723
723
|
}
|
|
724
724
|
case "com.sap.vocabularies.UI.v1.SelectionPresentationVariant" /* UIAnnotationTerms.SelectionPresentationVariant */: {
|
|
725
|
-
facets[path] = { base:
|
|
725
|
+
facets[path] = { base: ux_specification_types_1.FacetBase.SelectionPresentationVariant };
|
|
726
726
|
facets[path].target = annotationRecord?.Target?.$target;
|
|
727
727
|
facets[path].entityType = targetEntityType;
|
|
728
728
|
facets[path].namespace = section.namespace;
|
|
729
729
|
break;
|
|
730
730
|
}
|
|
731
731
|
case "com.sap.vocabularies.Communication.v1.Contact" /* CommunicationAnnotationTerms.Contact */: {
|
|
732
|
-
facets[path] = { base:
|
|
732
|
+
facets[path] = { base: ux_specification_types_1.FacetBase.Contact };
|
|
733
733
|
facets[path].target = annotationRecord?.Target?.$target;
|
|
734
734
|
facets[path].entityType = targetEntityType;
|
|
735
735
|
facets[path].namespace = section.namespace;
|
|
736
736
|
break;
|
|
737
737
|
}
|
|
738
738
|
case "com.sap.vocabularies.Communication.v1.Address" /* CommunicationAnnotationTerms.Address */: {
|
|
739
|
-
facets[path] = { base:
|
|
739
|
+
facets[path] = { base: ux_specification_types_1.FacetBase.Address };
|
|
740
740
|
facets[path].target = annotationRecord?.Target?.$target;
|
|
741
741
|
facets[path].entityType = targetEntityType;
|
|
742
742
|
facets[path].namespace = section.namespace;
|
|
743
743
|
break;
|
|
744
744
|
}
|
|
745
745
|
default: {
|
|
746
|
-
facets[path] = { base:
|
|
746
|
+
facets[path] = { base: ux_specification_types_1.FacetBase.Unknown };
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
if (facets[path]) {
|
|
750
|
-
facets[path].annotationPath = `/${annotationRecord.fullyQualifiedName.replace('@com.sap.vocabularies',
|
|
750
|
+
facets[path].annotationPath = `/${annotationRecord.fullyQualifiedName.replace('@com.sap.vocabularies', ux_specification_types_1.VOCWITHSLASH)}`;
|
|
751
751
|
if (annotationRecord.Label) {
|
|
752
752
|
facets[path].Label = annotationRecord.Label;
|
|
753
753
|
}
|
|
@@ -779,7 +779,7 @@ function getAnnotationPathUsingFullyQualifiedName(entityType, fullyQualifiedName
|
|
|
779
779
|
* @param {FioriElementsVersion} oDataVersion - OData version
|
|
780
780
|
* @param {ExtensionLogger} logger - Logger class for logging messages
|
|
781
781
|
*/
|
|
782
|
-
function addFacetToConfig(annotationRecord, oDataServiceAVT, serviceName, entityType, facets, oDataVersion =
|
|
782
|
+
function addFacetToConfig(annotationRecord, oDataServiceAVT, serviceName, entityType, facets, oDataVersion = ux_specification_types_1.FioriElementsVersion.v2, logger) {
|
|
783
783
|
const section = getSectionFacet(annotationRecord, entityType, oDataServiceAVT, logger, oDataVersion, false);
|
|
784
784
|
if (section) {
|
|
785
785
|
switch (annotationRecord.$Type) {
|
|
@@ -790,14 +790,14 @@ function addFacetToConfig(annotationRecord, oDataServiceAVT, serviceName, entity
|
|
|
790
790
|
case "com.sap.vocabularies.UI.v1.CollectionFacet" /* UIAnnotationTypes.CollectionFacet */: {
|
|
791
791
|
const annotationPath = getAnnotationPathUsingFullyQualifiedName(entityType, annotationRecord.fullyQualifiedName);
|
|
792
792
|
const facet = (facets[section.key] = {
|
|
793
|
-
base:
|
|
793
|
+
base: ux_specification_types_1.FacetBase.CollectionFacet,
|
|
794
794
|
facets: {},
|
|
795
795
|
ID: section.ID,
|
|
796
796
|
annotationPath: annotationPath,
|
|
797
797
|
Label: section.label,
|
|
798
798
|
namespace: section.namespace
|
|
799
799
|
});
|
|
800
|
-
if (!facet.ID && oDataVersion ===
|
|
800
|
+
if (!facet.ID && oDataVersion === ux_specification_types_1.FioriElementsVersion.v4) {
|
|
801
801
|
(0, extensionLogger_1.log)(logger, {
|
|
802
802
|
severity: "error" /* LogSeverity.Error */,
|
|
803
803
|
message: i18next_1.default.t('NOID4SECTION', { facet: annotationRecord.fullyQualifiedName })
|
|
@@ -818,12 +818,12 @@ function addFacetToConfig(annotationRecord, oDataServiceAVT, serviceName, entity
|
|
|
818
818
|
* @param {FioriElementsVersion} oDataVersion - OData version
|
|
819
819
|
* @param {ExtensionLogger} logger - Logger class for logging messages
|
|
820
820
|
*/
|
|
821
|
-
function getObjectPageHeaderFacets(entityType, oDataServiceAVT, oDataVersion =
|
|
821
|
+
function getObjectPageHeaderFacets(entityType, oDataServiceAVT, oDataVersion = ux_specification_types_1.FioriElementsVersion.v2, logger) {
|
|
822
822
|
const facets = {};
|
|
823
823
|
if (!entityType || !entityType.annotations) {
|
|
824
824
|
return;
|
|
825
825
|
}
|
|
826
|
-
const alias = findAlias(
|
|
826
|
+
const alias = findAlias(ux_specification_types_1.UIVOCABULARY, oDataServiceAVT);
|
|
827
827
|
const facetAnnotation = alias && entityType?.annotations?.[alias]?.HeaderFacets;
|
|
828
828
|
if (facetAnnotation) {
|
|
829
829
|
const lastDot = entityType && entityType.fullyQualifiedName.lastIndexOf('.');
|
|
@@ -842,12 +842,12 @@ function getObjectPageHeaderFacets(entityType, oDataServiceAVT, oDataVersion = u
|
|
|
842
842
|
* @param {FioriElementsVersion} oDataVersion - OData version
|
|
843
843
|
* @param {ExtensionLogger} logger - Logger class for logging messages
|
|
844
844
|
*/
|
|
845
|
-
function getObjectPageFacets(entityType, oDataServiceAVT, oDataVersion =
|
|
845
|
+
function getObjectPageFacets(entityType, oDataServiceAVT, oDataVersion = ux_specification_types_1.FioriElementsVersion.v2, logger) {
|
|
846
846
|
const facets = {};
|
|
847
847
|
if (!entityType || !entityType.annotations) {
|
|
848
848
|
return;
|
|
849
849
|
}
|
|
850
|
-
const alias = findAlias(
|
|
850
|
+
const alias = findAlias(ux_specification_types_1.UIVOCABULARY, oDataServiceAVT);
|
|
851
851
|
const facetAnnotation = alias && entityType?.annotations[alias]?.Facets;
|
|
852
852
|
if (facetAnnotation) {
|
|
853
853
|
const lastDot = entityType && entityType.fullyQualifiedName.lastIndexOf('.');
|
|
@@ -865,17 +865,17 @@ function getObjectPageFacets(entityType, oDataServiceAVT, oDataVersion = ux_spec
|
|
|
865
865
|
* @returns FioriElementsVersion
|
|
866
866
|
*/
|
|
867
867
|
function getFEVersionFromManifest(manifest) {
|
|
868
|
-
if ((manifest[
|
|
869
|
-
(manifest[
|
|
870
|
-
return
|
|
868
|
+
if ((manifest[ux_specification_types_1.ManifestSection.generic] && Object.keys(manifest[ux_specification_types_1.ManifestSection.generic]).length > 0) ||
|
|
869
|
+
(manifest[ux_specification_types_1.ManifestSection.ovp] && Object.keys(manifest[ux_specification_types_1.ManifestSection.ovp]).length > 0)) {
|
|
870
|
+
return ux_specification_types_1.FioriElementsVersion.v2;
|
|
871
871
|
}
|
|
872
872
|
else {
|
|
873
|
-
const targets = manifest[
|
|
874
|
-
const libs = manifest[
|
|
873
|
+
const targets = manifest[ux_specification_types_1.ManifestSection.ui5]?.routing?.targets;
|
|
874
|
+
const libs = manifest[ux_specification_types_1.ManifestSection.ui5]?.dependencies?.libs;
|
|
875
875
|
if ((targets &&
|
|
876
876
|
Object.keys(targets).find((targetKey) => exports.V4_TEMPLATES.indexOf(targets[targetKey].name) > -1)) ||
|
|
877
877
|
(libs && Object.keys(libs).find((lib) => exports.V4_LIBS.indexOf(lib) > -1))) {
|
|
878
|
-
return
|
|
878
|
+
return ux_specification_types_1.FioriElementsVersion.v4;
|
|
879
879
|
}
|
|
880
880
|
else {
|
|
881
881
|
return undefined;
|
|
@@ -891,11 +891,11 @@ function getFEVersionFromManifest(manifest) {
|
|
|
891
891
|
* @returns - main service name
|
|
892
892
|
*/
|
|
893
893
|
function getMainService(manifest) {
|
|
894
|
-
const model = typeof manifest?.[
|
|
895
|
-
? manifest[
|
|
894
|
+
const model = typeof manifest?.[ux_specification_types_1.ManifestSection.ovp]?.globalFilterModel === 'string'
|
|
895
|
+
? manifest[ux_specification_types_1.ManifestSection.ovp].globalFilterModel
|
|
896
896
|
: '';
|
|
897
|
-
return typeof manifest?.[
|
|
898
|
-
? manifest[
|
|
897
|
+
return typeof manifest?.[ux_specification_types_1.ManifestSection.ui5]?.models?.[model]?.dataSource === 'string'
|
|
898
|
+
? manifest[ux_specification_types_1.ManifestSection.ui5].models[model].dataSource
|
|
899
899
|
: undefined;
|
|
900
900
|
}
|
|
901
901
|
/**
|
|
@@ -908,7 +908,7 @@ function getODataVersionFromManifest(manifest) {
|
|
|
908
908
|
if (!mainService) {
|
|
909
909
|
return ux_specification_types_1.OdataVersion.v2;
|
|
910
910
|
}
|
|
911
|
-
const dataSource = manifest[
|
|
911
|
+
const dataSource = manifest[ux_specification_types_1.ManifestSection.app].dataSources?.[mainService];
|
|
912
912
|
return dataSource?.settings?.odataVersion === '4.0' ? ux_specification_types_1.OdataVersion.v4 : ux_specification_types_1.OdataVersion.v2;
|
|
913
913
|
}
|
|
914
914
|
/**
|
|
@@ -919,27 +919,27 @@ function getODataVersionFromManifest(manifest) {
|
|
|
919
919
|
*/
|
|
920
920
|
function determineV2Template(manifest, logger) {
|
|
921
921
|
let templateType;
|
|
922
|
-
if (manifest[
|
|
923
|
-
const v2Pages = manifest[
|
|
922
|
+
if (manifest[ux_specification_types_1.ManifestSection.generic]) {
|
|
923
|
+
const v2Pages = manifest[ux_specification_types_1.ManifestSection.generic].pages;
|
|
924
924
|
if (!v2Pages) {
|
|
925
925
|
(0, extensionLogger_1.log)(logger, {
|
|
926
926
|
severity: "error" /* LogSeverity.Error */,
|
|
927
927
|
message: i18next_1.default.t('NOPAGES', { appId: manifest['sap.app']['id'] }),
|
|
928
928
|
location: {
|
|
929
|
-
path:
|
|
930
|
-
range: [
|
|
929
|
+
path: ux_specification_types_1.MANIFESTPATH,
|
|
930
|
+
range: [ux_specification_types_1.ManifestSection.generic]
|
|
931
931
|
}
|
|
932
932
|
});
|
|
933
933
|
return;
|
|
934
934
|
}
|
|
935
935
|
for (const pageKey in v2Pages) {
|
|
936
936
|
const v2Page = v2Pages[pageKey];
|
|
937
|
-
if (getPageTypeV2(v2Page.component?.name) ===
|
|
938
|
-
templateType =
|
|
937
|
+
if (getPageTypeV2(v2Page.component?.name) === ux_specification_types_1.PageTypeV2.AnalyticalListPage) {
|
|
938
|
+
templateType = ux_specification_types_1.TemplateType.AnalyticalListPageV2;
|
|
939
939
|
break;
|
|
940
940
|
}
|
|
941
|
-
else if (getPageTypeV2(v2Page.component?.name) ===
|
|
942
|
-
templateType =
|
|
941
|
+
else if (getPageTypeV2(v2Page.component?.name) === ux_specification_types_1.PageTypeV2.ListReport) {
|
|
942
|
+
templateType = ux_specification_types_1.TemplateType.ListReportObjectPageV2;
|
|
943
943
|
break;
|
|
944
944
|
}
|
|
945
945
|
}
|
|
@@ -948,10 +948,10 @@ function determineV2Template(manifest, logger) {
|
|
|
948
948
|
if (!templateType) {
|
|
949
949
|
(0, extensionLogger_1.log)(logger, {
|
|
950
950
|
severity: "error" /* LogSeverity.Error */,
|
|
951
|
-
message: i18next_1.default.t('NOTEMPLATE', { section:
|
|
951
|
+
message: i18next_1.default.t('NOTEMPLATE', { section: ux_specification_types_1.ManifestSection.generic }),
|
|
952
952
|
location: {
|
|
953
|
-
path:
|
|
954
|
-
range: [
|
|
953
|
+
path: ux_specification_types_1.MANIFESTPATH,
|
|
954
|
+
range: [ux_specification_types_1.ManifestSection.generic]
|
|
955
955
|
}
|
|
956
956
|
});
|
|
957
957
|
}
|
|
@@ -966,24 +966,24 @@ function determineV2Template(manifest, logger) {
|
|
|
966
966
|
function determineV4PageTemplateType(v4Page) {
|
|
967
967
|
let templateType;
|
|
968
968
|
const pageType = getPageTypeV4(v4Page);
|
|
969
|
-
if (pageType ===
|
|
970
|
-
templateType =
|
|
969
|
+
if (pageType === ux_specification_types_1.PageTypeV4.AnalyticalListPage) {
|
|
970
|
+
templateType = ux_specification_types_1.TemplateType.AnalyticalListPageV4;
|
|
971
971
|
}
|
|
972
|
-
else if (pageType ===
|
|
972
|
+
else if (pageType === ux_specification_types_1.PageTypeV4.ListReport) {
|
|
973
973
|
const viewPath = v4Page.options?.settings?.views?.paths?.[0];
|
|
974
|
-
if (viewPath && (viewPath[
|
|
975
|
-
templateType =
|
|
974
|
+
if (viewPath && (viewPath[ux_specification_types_1.ALPViewType.Primary] || viewPath[ux_specification_types_1.ALPViewType.Secondary])) {
|
|
975
|
+
templateType = ux_specification_types_1.TemplateType.AnalyticalListPageV4;
|
|
976
976
|
}
|
|
977
977
|
else {
|
|
978
|
-
templateType =
|
|
978
|
+
templateType = ux_specification_types_1.TemplateType.ListReportObjectPageV4;
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
|
-
else if (pageType ===
|
|
982
|
-
templateType =
|
|
981
|
+
else if (pageType === ux_specification_types_1.PageTypeV4.ObjectPage) {
|
|
982
|
+
templateType = ux_specification_types_1.TemplateType.ListReportObjectPageV4;
|
|
983
983
|
//fixed now for FEOP scenario, bit continue to check if LR/ALP exists
|
|
984
984
|
}
|
|
985
|
-
else if ([
|
|
986
|
-
templateType =
|
|
985
|
+
else if ([ux_specification_types_1.PageTypeV4.CustomPage, ux_specification_types_1.PageTypeV4.FPMCustomPage].includes(pageType)) {
|
|
986
|
+
templateType = ux_specification_types_1.TemplateType.FreestylePageV4;
|
|
987
987
|
}
|
|
988
988
|
return templateType;
|
|
989
989
|
}
|
|
@@ -1010,29 +1010,29 @@ function determineV4TemplateFromPages(v4Pages) {
|
|
|
1010
1010
|
* @returns {TemplateType} the template type
|
|
1011
1011
|
*/
|
|
1012
1012
|
function determineV4Template(manifest, logger) {
|
|
1013
|
-
const v4Pages = manifest[
|
|
1014
|
-
manifest[
|
|
1013
|
+
const v4Pages = manifest[ux_specification_types_1.ManifestSection.ui5].routing &&
|
|
1014
|
+
manifest[ux_specification_types_1.ManifestSection.ui5].routing.targets;
|
|
1015
1015
|
// if there are no pages in routing targets, we use LROPV4 as default template type
|
|
1016
1016
|
if (!v4Pages || Object.keys(v4Pages).length === 0) {
|
|
1017
1017
|
(0, extensionLogger_1.log)(logger, {
|
|
1018
1018
|
severity: "info" /* LogSeverity.Info */,
|
|
1019
1019
|
message: i18next_1.default.t('NOPAGES', { appId: manifest['sap.app']['id'] }),
|
|
1020
1020
|
location: {
|
|
1021
|
-
path:
|
|
1022
|
-
range: [
|
|
1021
|
+
path: ux_specification_types_1.MANIFESTPATH,
|
|
1022
|
+
range: [ux_specification_types_1.ManifestSection.ui5, 'routing']
|
|
1023
1023
|
}
|
|
1024
1024
|
});
|
|
1025
|
-
return
|
|
1025
|
+
return ux_specification_types_1.TemplateType.ListReportObjectPageV4;
|
|
1026
1026
|
}
|
|
1027
1027
|
// else try to determine template type from routing targets
|
|
1028
1028
|
const templateType = determineV4TemplateFromPages(v4Pages);
|
|
1029
1029
|
if (!templateType) {
|
|
1030
1030
|
(0, extensionLogger_1.log)(logger, {
|
|
1031
1031
|
severity: "error" /* LogSeverity.Error */,
|
|
1032
|
-
message: i18next_1.default.t('NOTEMPLATE', { section:
|
|
1032
|
+
message: i18next_1.default.t('NOTEMPLATE', { section: ux_specification_types_1.ManifestSection.ui5 }),
|
|
1033
1033
|
location: {
|
|
1034
|
-
path:
|
|
1035
|
-
range: [
|
|
1034
|
+
path: ux_specification_types_1.MANIFESTPATH,
|
|
1035
|
+
range: [ux_specification_types_1.ManifestSection.ui5, 'routing', 'targets']
|
|
1036
1036
|
}
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
@@ -1047,13 +1047,13 @@ function determineV4Template(manifest, logger) {
|
|
|
1047
1047
|
*/
|
|
1048
1048
|
function getTemplateTypeFromManifest(manifest, fioriElementsVersion, logger) {
|
|
1049
1049
|
let templateType;
|
|
1050
|
-
if (manifest[
|
|
1051
|
-
templateType =
|
|
1050
|
+
if (manifest[ux_specification_types_1.ManifestSection.ovp]) {
|
|
1051
|
+
templateType = ux_specification_types_1.TemplateType.OverviewPageV2;
|
|
1052
1052
|
}
|
|
1053
|
-
else if (fioriElementsVersion ===
|
|
1053
|
+
else if (fioriElementsVersion === ux_specification_types_1.FioriElementsVersion.v2) {
|
|
1054
1054
|
templateType = determineV2Template(manifest, logger);
|
|
1055
1055
|
}
|
|
1056
|
-
else if (fioriElementsVersion ===
|
|
1056
|
+
else if (fioriElementsVersion === ux_specification_types_1.FioriElementsVersion.v4) {
|
|
1057
1057
|
templateType = determineV4Template(manifest, logger);
|
|
1058
1058
|
}
|
|
1059
1059
|
return templateType;
|
|
@@ -1066,12 +1066,12 @@ function getTemplateTypeFromManifest(manifest, fioriElementsVersion, logger) {
|
|
|
1066
1066
|
*/
|
|
1067
1067
|
function addSectionTitleAndDescription(facet, section, facetKey) {
|
|
1068
1068
|
if (facet?.ID) {
|
|
1069
|
-
section.title =
|
|
1070
|
-
section[
|
|
1069
|
+
section.title = ux_specification_types_1.FACETTITLEPREFIX + facet.ID;
|
|
1070
|
+
section[ux_specification_types_1.SchemaTag.keys] = [{ name: ux_specification_types_1.SchemaKeyName.id, value: facet.ID }];
|
|
1071
1071
|
}
|
|
1072
1072
|
else {
|
|
1073
1073
|
section.title = facetKey.replace(/@com.sap/g, 'com.sap');
|
|
1074
|
-
section[
|
|
1074
|
+
section[ux_specification_types_1.SchemaTag.keys] = [{ name: ux_specification_types_1.SchemaKeyName.id, value: facetKey.replace(ux_specification_types_1.UIVOCABULARYALPHADOT, '') }];
|
|
1075
1075
|
}
|
|
1076
1076
|
// Description
|
|
1077
1077
|
if (facet?.Label) {
|
|
@@ -1116,8 +1116,8 @@ function createDefaultSection(appSchema, facet, facetKey) {
|
|
|
1116
1116
|
properties: {},
|
|
1117
1117
|
additionalProperties: false
|
|
1118
1118
|
};
|
|
1119
|
-
section[
|
|
1120
|
-
section[
|
|
1119
|
+
section[ux_specification_types_1.SchemaTag.isViewNode] = true;
|
|
1120
|
+
section[ux_specification_types_1.SchemaTag.annotationPath] = facet.annotationPath;
|
|
1121
1121
|
addTargetTitleAndSectionDescription(facet, section, facetKey);
|
|
1122
1122
|
return section;
|
|
1123
1123
|
}
|
|
@@ -1130,8 +1130,8 @@ function createDefaultSection(appSchema, facet, facetKey) {
|
|
|
1130
1130
|
* @param {boolean} [checkUnresolvableFacets=false] - Check and avoid facets and sections without ID and Target.
|
|
1131
1131
|
* @returns {FacetSection[]} - Array of facets or sections
|
|
1132
1132
|
*/
|
|
1133
|
-
function getObjectPageFacetSection(entityType, oDataServiceAVT, logger, oDataVersion =
|
|
1134
|
-
const alias = findAlias(
|
|
1133
|
+
function getObjectPageFacetSection(entityType, oDataServiceAVT, logger, oDataVersion = ux_specification_types_1.FioriElementsVersion.v2, checkUnresolvableFacets = false) {
|
|
1134
|
+
const alias = findAlias(ux_specification_types_1.UIVOCABULARY, oDataServiceAVT);
|
|
1135
1135
|
let sections = [];
|
|
1136
1136
|
if (entityType) {
|
|
1137
1137
|
const facetAnnotation = alias && entityType?.annotations?.[alias]?.Facets;
|
|
@@ -1167,11 +1167,16 @@ const deleteEmptyStructure = (manifest, path, deletionRequest, entityPathArray,
|
|
|
1167
1167
|
let manifestSection = manifest;
|
|
1168
1168
|
const pathArray = path.split('/');
|
|
1169
1169
|
pathArray.forEach(function (element) {
|
|
1170
|
-
|
|
1170
|
+
let decodedElement = targetAnnotationEncoded && targetAnnotationEncoded === element
|
|
1171
1171
|
? targetAnnotation
|
|
1172
1172
|
: element.replace(/\?\?/g, '/');
|
|
1173
1173
|
if (!manifestSection[decodedElement]) {
|
|
1174
|
-
|
|
1174
|
+
if (targetAnnotationEncoded === element) {
|
|
1175
|
+
decodedElement = targetAnnotationEncoded;
|
|
1176
|
+
}
|
|
1177
|
+
if (!manifestSection[decodedElement]) {
|
|
1178
|
+
return;
|
|
1179
|
+
}
|
|
1175
1180
|
}
|
|
1176
1181
|
if (Object.keys(manifestSection[decodedElement]).length === 0 ||
|
|
1177
1182
|
//deletion explicitly requested by using entityPath
|
|
@@ -1196,12 +1201,12 @@ exports.deleteEmptyStructure = deleteEmptyStructure;
|
|
|
1196
1201
|
* @return {string} File name of generic schema.
|
|
1197
1202
|
*/
|
|
1198
1203
|
const getGenericSchemaFileName = (schemaType) => {
|
|
1199
|
-
if (schemaType ===
|
|
1200
|
-
return
|
|
1204
|
+
if (schemaType === ux_specification_types_1.SchemaType.FreestylePage) {
|
|
1205
|
+
return ux_specification_types_1.PageTypeV2.CustomPage;
|
|
1201
1206
|
}
|
|
1202
|
-
if (schemaType ===
|
|
1207
|
+
if (schemaType === ux_specification_types_1.SchemaType.FPMCustomPage) {
|
|
1203
1208
|
// FPM custom pages uses generic schema generated for building blocks
|
|
1204
|
-
return
|
|
1209
|
+
return ux_specification_types_1.SchemaType.BuildingBlocks;
|
|
1205
1210
|
}
|
|
1206
1211
|
return `${schemaType}`;
|
|
1207
1212
|
};
|
|
@@ -1218,30 +1223,30 @@ const getSchemaFilePath = (schemaType, pageId, viewId) => {
|
|
|
1218
1223
|
};
|
|
1219
1224
|
switch (schemaType) {
|
|
1220
1225
|
// Application schema
|
|
1221
|
-
case
|
|
1226
|
+
case ux_specification_types_1.SchemaType.Application: {
|
|
1222
1227
|
// File name
|
|
1223
1228
|
schemaFile.filename = `App`;
|
|
1224
1229
|
// Full path
|
|
1225
|
-
schemaFile.path = `./${
|
|
1230
|
+
schemaFile.path = `./${ux_specification_types_1.DirName.Schemas}/${schemaFile.filename}`;
|
|
1226
1231
|
break;
|
|
1227
1232
|
}
|
|
1228
1233
|
// List report and object page
|
|
1229
|
-
case
|
|
1230
|
-
case
|
|
1234
|
+
case ux_specification_types_1.SchemaType.ListReport:
|
|
1235
|
+
case ux_specification_types_1.SchemaType.ObjectPage: {
|
|
1231
1236
|
// File name
|
|
1232
1237
|
schemaFile.filename = pageId ? `${schemaType}_${pageId}` : getGenericSchemaFileName(schemaType);
|
|
1233
1238
|
// Full path
|
|
1234
|
-
schemaFile.path = `../${
|
|
1239
|
+
schemaFile.path = `../${ux_specification_types_1.DirName.Schemas}/${schemaFile.filename}`;
|
|
1235
1240
|
break;
|
|
1236
1241
|
}
|
|
1237
|
-
case
|
|
1238
|
-
case
|
|
1242
|
+
case ux_specification_types_1.PageTypeV4.FPMCustomPage:
|
|
1243
|
+
case ux_specification_types_1.SchemaType.FPMCustomPage: {
|
|
1239
1244
|
// File name
|
|
1240
1245
|
schemaFile.filename = viewId
|
|
1241
|
-
? `${
|
|
1242
|
-
: getGenericSchemaFileName(
|
|
1246
|
+
? `${ux_specification_types_1.SchemaType.FPMCustomPage}_${viewId}`
|
|
1247
|
+
: getGenericSchemaFileName(ux_specification_types_1.SchemaType.FPMCustomPage);
|
|
1243
1248
|
// Full path
|
|
1244
|
-
schemaFile.path = `../${
|
|
1249
|
+
schemaFile.path = `../${ux_specification_types_1.DirName.Schemas}/${schemaFile.filename}`;
|
|
1245
1250
|
break;
|
|
1246
1251
|
}
|
|
1247
1252
|
// Other page configs
|
|
@@ -1249,7 +1254,7 @@ const getSchemaFilePath = (schemaType, pageId, viewId) => {
|
|
|
1249
1254
|
// File name
|
|
1250
1255
|
schemaFile.filename = getGenericSchemaFileName(schemaType);
|
|
1251
1256
|
// Full path
|
|
1252
|
-
schemaFile.path = `../${
|
|
1257
|
+
schemaFile.path = `../${ux_specification_types_1.DirName.Schemas}/${schemaFile.filename}`;
|
|
1253
1258
|
break;
|
|
1254
1259
|
}
|
|
1255
1260
|
}
|
|
@@ -1267,7 +1272,7 @@ exports.getSchemaFilePath = getSchemaFilePath;
|
|
|
1267
1272
|
* @returns {string} Generated page id
|
|
1268
1273
|
*/
|
|
1269
1274
|
function generatePageId(pageType, entitySet, viewId, pageName) {
|
|
1270
|
-
if (pageType ===
|
|
1275
|
+
if (pageType === ux_specification_types_1.PageTypeV2.CustomPage) {
|
|
1271
1276
|
const names = viewId && viewId.split('.');
|
|
1272
1277
|
return names && names[names.length - 1] + 'Page';
|
|
1273
1278
|
}
|
|
@@ -1386,7 +1391,6 @@ function determineNextDefinitionFromDefinitionArray(definitionArray, appSchema,
|
|
|
1386
1391
|
const lastDefinition = definitionArray[definitionArray.length - 1];
|
|
1387
1392
|
nextDefinition.targetDefinition = appSchema['definitions'][lastDefinition];
|
|
1388
1393
|
if (nextDefinition?.targetDefinition?.['$ref'] || nextDefinition?.targetDefinition?.['type'] === 'array') {
|
|
1389
|
-
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
1390
1394
|
nextDefinition = getNextTargetDefinition(appSchema, title, currentConfigObject, nextDefinition.targetDefinition, key, factory, pageType);
|
|
1391
1395
|
return nextDefinition;
|
|
1392
1396
|
}
|
|
@@ -1564,7 +1568,7 @@ function getJSONPropertyByPath(obj, paths) {
|
|
|
1564
1568
|
* @returns {string} modified string without namespace
|
|
1565
1569
|
*/
|
|
1566
1570
|
function removeNamespaces(sId) {
|
|
1567
|
-
sId = sId.replace(
|
|
1571
|
+
sId = sId.replace(ux_specification_types_1.UIVOCABULARYDOT, '');
|
|
1568
1572
|
sId = sId.replace('com.sap.vocabularies.Communication.v1.', '');
|
|
1569
1573
|
return sId;
|
|
1570
1574
|
}
|
|
@@ -1574,7 +1578,7 @@ function removeNamespaces(sId) {
|
|
|
1574
1578
|
* @returns {string} modified string with replaced namespaces
|
|
1575
1579
|
*/
|
|
1576
1580
|
function replaceNamespaces(sId) {
|
|
1577
|
-
sId = sId.replace(
|
|
1581
|
+
sId = sId.replace(ux_specification_types_1.UIVOCABULARY, 'UI');
|
|
1578
1582
|
sId = sId.replace('com.sap.vocabularies.Communication.v1', 'Communication');
|
|
1579
1583
|
return sId;
|
|
1580
1584
|
}
|