@sap/ux-specification 1.142.2 → 1.144.0
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 +26 -78
- 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-ListReportNew.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 +256 -255
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/AnalyticalListPageConfig.json +21 -3
- package/dist/schemas/v2/ListReportConfig.json +35 -5
- package/dist/schemas/v2/ListReportNewConfig.json +1 -1
- package/dist/schemas/v2/ObjectPageConfig.json +35 -5
- package/dist/schemas/v4/ApplicationV4.json +7 -1
- package/dist/schemas/v4/BuildingBlocksConfig.json +1943 -1447
- package/dist/schemas/v4/ListReportConfig.json +24 -6
- package/dist/schemas/v4/ObjectPageConfig.json +38 -8
- package/dist/specification/package.json +14 -12
- package/dist/specification/scripts/extractDocu.js +18 -1
- package/dist/specification/scripts/extractDocu.js.map +1 -1
- package/dist/specification/scripts/generate-validity-report.d.ts +15 -0
- package/dist/specification/scripts/generate-validity-report.d.ts.map +1 -0
- package/dist/specification/scripts/generate-validity-report.js +367 -0
- package/dist/specification/scripts/generate-validity-report.js.map +1 -0
- package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
- package/dist/specification/scripts/macros/corrections.js +21 -9
- package/dist/specification/scripts/macros/corrections.js.map +1 -1
- package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
- package/dist/specification/scripts/macros/schema.js +13 -0
- package/dist/specification/scripts/macros/schema.js.map +1 -1
- package/dist/specification/src/api.d.ts.map +1 -1
- package/dist/specification/src/api.js +7 -7
- package/dist/specification/src/api.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts +503 -0
- package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/decorator-paths.js +497 -0
- package/dist/specification/src/sync/common/decoration/decorator-paths.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/decorators.d.ts +149 -23
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.js +369 -74
- package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/index.d.ts +1 -0
- package/dist/specification/src/sync/common/decoration/index.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/index.js +1 -0
- package/dist/specification/src/sync/common/decoration/index.js.map +1 -1
- package/dist/specification/src/sync/common/dist_tag.json +8 -3
- package/dist/specification/src/sync/common/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/objectPage.js +4 -1
- package/dist/specification/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/common/i18n.json +6 -2
- package/dist/specification/src/sync/common/importProject.d.ts.map +1 -1
- package/dist/specification/src/sync/common/importProject.js +3 -1
- package/dist/specification/src/sync/common/importProject.js.map +1 -1
- package/dist/specification/src/sync/common/utils.d.ts +22 -6
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +122 -18
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.d.ts +1 -0
- package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.js +25 -40
- package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Table.d.ts +1 -0
- package/dist/specification/src/sync/v2/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Table.js +24 -34
- package/dist/specification/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js +17 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/generate.d.ts +6 -3
- package/dist/specification/src/sync/v2/generate/generate.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/generate.js +12 -7
- package/dist/specification/src/sync/v2/generate/generate.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.js +5 -1
- package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.js +22 -6
- package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/overviewPage.d.ts +1 -9
- package/dist/specification/src/sync/v2/generate/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/overviewPage.js +30 -1
- package/dist/specification/src/sync/v2/generate/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.d.ts +19 -0
- package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.js +75 -0
- package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js +8 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js.map +1 -1
- package/dist/specification/src/sync/v2/import/app/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/app/appProvider.js +2 -0
- package/dist/specification/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts +2 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js +5 -0
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.d.ts +2 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.js +5 -0
- 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 +2 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/utils.d.ts +28 -1
- package/dist/specification/src/sync/v2/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/utils.js +37 -0
- package/dist/specification/src/sync/v2/import/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +12 -2
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +19 -2
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/application.d.ts +21 -2
- package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/application.js +37 -2
- package/dist/specification/src/sync/v4/application.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts +2 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.js +2 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts +4 -3
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.js +7 -3
- package/dist/specification/src/sync/v4/export/controls/Header.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts +2 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js +7 -0
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +2 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js +2 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js +0 -13
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts +24 -15
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js +40 -46
- package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/TableColumn.js +2 -2
- package/dist/specification/src/sync/v4/export/controls/TableColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts +2 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js +2 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/export.js +25 -3
- package/dist/specification/src/sync/v4/export/export.js.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ObjectPage.d.ts +1 -0
- package/dist/specification/src/sync/v4/export/pages/ObjectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ObjectPage.js +11 -0
- package/dist/specification/src/sync/v4/export/pages/ObjectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/actions.d.ts +1 -1
- package/dist/specification/src/sync/v4/generate/actions.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js +2 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +12 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js +10 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/index.d.ts +1 -1
- package/dist/specification/src/sync/v4/generate/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/index.js +1 -1
- package/dist/specification/src/sync/v4/generate/index.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts +73 -0
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js +354 -0
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/{listReport.d.ts → list-report/listReport.d.ts} +22 -15
- package/dist/specification/src/sync/v4/generate/list-report/listReport.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/{listReport.js → list-report/listReport.js} +115 -69
- package/dist/specification/src/sync/v4/generate/list-report/listReport.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +142 -44
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.js +2 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/import/utils.js +5 -3
- package/dist/specification/src/sync/v4/import/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts +9 -7
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.js +4 -8
- package/dist/specification/src/sync/v4/sync-rules/App.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts +2 -9
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js +2 -11
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts +177 -46
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +498 -152
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts +17 -22
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/Page.js +15 -22
- package/dist/specification/src/sync/v4/sync-rules/Page.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.d.ts +1 -0
- package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.js +17 -9
- package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/index.d.ts +5 -0
- package/dist/specification/src/sync/v4/sync-rules/index.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/index.js +21 -0
- package/dist/specification/src/sync/v4/sync-rules/index.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/utils.js +4 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/index.d.ts +2 -0
- package/dist/specification/src/sync/v4/utils/index.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/utils/index.js +18 -0
- package/dist/specification/src/sync/v4/utils/index.js.map +1 -0
- package/dist/specification/src/sync/v4/utils/utils.d.ts +10 -2
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +18 -3
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/specification/test/test-projects/v2sttaProdMan2/webapp/manifest.json +550 -0
- package/dist/specification/test/test-projects/v4new/webapp/manifest.json +147 -0
- package/dist/specification/test/test-utils/utils.d.ts +71 -0
- package/dist/specification/test/test-utils/utils.d.ts.map +1 -0
- package/dist/specification/test/test-utils/utils.js +403 -0
- package/dist/specification/test/test-utils/utils.js.map +1 -0
- package/dist/specification/test/unit/decorators/validity-test-utils.d.ts +131 -0
- package/dist/specification/test/unit/decorators/validity-test-utils.d.ts.map +1 -0
- package/dist/specification/test/unit/decorators/validity-test-utils.js +661 -0
- package/dist/specification/test/unit/decorators/validity-test-utils.js.map +1 -0
- package/dist/types/src/apiTypes.d.ts +6 -3
- package/dist/types/src/apiTypes.d.ts.map +1 -1
- package/dist/types/src/apiTypes.js.map +1 -1
- package/dist/types/src/common/types.d.ts +126 -13
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts +5 -1
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.d.ts +5 -1
- package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v4/application.d.ts +6 -0
- package/dist/types/src/v4/application.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v4/controls/Table.d.ts +3 -3
- package/dist/types/src/v4/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v4/pages/ObjectPageConfigV4.d.ts +4 -0
- package/dist/types/src/v4/pages/ObjectPageConfigV4.d.ts.map +1 -1
- package/package.json +15 -13
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts +0 -107
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts.map +0 -1
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js +0 -394
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js.map +0 -1
- package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +0 -1
- package/dist/specification/src/sync/v4/generate/listReport.js.map +0 -1
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TableAndViews = exports.FilterBar = exports.GeneralListReportSettings = void 0;
|
|
7
|
+
exports.addManifestPathsToDefinitionPropertiesLR = addManifestPathsToDefinitionPropertiesLR;
|
|
8
|
+
const __1 = require("../../../..");
|
|
9
|
+
const utils_1 = require("../../utils");
|
|
10
|
+
const listReport_1 = require("../list-report/listReport");
|
|
11
|
+
const sync_rules_1 = require("../../sync-rules");
|
|
12
|
+
const common_1 = require("../../../common");
|
|
13
|
+
const i18next_1 = __importDefault(require("i18next"));
|
|
14
|
+
/**
|
|
15
|
+
* Add general settings to schema (LR or ALP).
|
|
16
|
+
*
|
|
17
|
+
* - Adds Selection-(PresentationVariant) related enums to the schema.
|
|
18
|
+
*/
|
|
19
|
+
class GeneralListReportSettings extends sync_rules_1.BaseConstruct {
|
|
20
|
+
/**
|
|
21
|
+
* Constructor for general settings of ListReport.
|
|
22
|
+
*
|
|
23
|
+
* @param settings - general settings (App, Page, AppSchema, Logger)
|
|
24
|
+
*/
|
|
25
|
+
constructor(settings) {
|
|
26
|
+
super(settings);
|
|
27
|
+
}
|
|
28
|
+
init() {
|
|
29
|
+
this.addSPVEnums(__1.DefinitionName.AnnotationPathAsObject);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Adds Selection-(PresentationVariant) related enums to the schema.
|
|
33
|
+
*
|
|
34
|
+
* @param definitionName - definition name
|
|
35
|
+
*/
|
|
36
|
+
addSPVEnums(definitionName) {
|
|
37
|
+
const targetTerms = ["com.sap.vocabularies.UI.v1.SelectionVariant" /* UIAnnotationTerms.SelectionVariant */, "com.sap.vocabularies.UI.v1.SelectionPresentationVariant" /* UIAnnotationTerms.SelectionPresentationVariant */];
|
|
38
|
+
const uiAnnotations = this.page.getUIAnnotations();
|
|
39
|
+
if (!uiAnnotations) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const enumStrings = Object.values(uiAnnotations)
|
|
43
|
+
.filter((annotation) => targetTerms.includes(annotation.term))
|
|
44
|
+
.map((annotation) => annotation.qualifier ? `${annotation.term}#${annotation.qualifier}` : annotation.term);
|
|
45
|
+
const enums = [...new Set(enumStrings)];
|
|
46
|
+
this.appSchema.addEnumToSchema(definitionName, ['properties', __1.SchemaTag.annotationPath], enums);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.GeneralListReportSettings = GeneralListReportSettings;
|
|
50
|
+
/**
|
|
51
|
+
* Add filter bar to schema (LR or ALP).
|
|
52
|
+
*/
|
|
53
|
+
class FilterBar extends sync_rules_1.BaseConstruct {
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @param settings - general settings (App, Page, AppSchema, Logger)
|
|
57
|
+
*/
|
|
58
|
+
constructor(settings) {
|
|
59
|
+
super(settings);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Initializes the filter bar adjustments.
|
|
63
|
+
*/
|
|
64
|
+
init() {
|
|
65
|
+
this.addFilterBar(this.page.getEntityType(), this.appSchema, this.page.target, this.page.getUIVocabularyAlias());
|
|
66
|
+
}
|
|
67
|
+
// Implementation for FilterBar can be added here
|
|
68
|
+
addVisualFilters() {
|
|
69
|
+
(0, listReport_1.getVisualFilters)(this.page.target);
|
|
70
|
+
}
|
|
71
|
+
addSelectionFields() { }
|
|
72
|
+
/**
|
|
73
|
+
* Adds filter bar to schema (LR or ALP).
|
|
74
|
+
*
|
|
75
|
+
* @param entityType - the entity type
|
|
76
|
+
* @param schema - the application schema
|
|
77
|
+
* @param v4Page - the actual page in the manifest
|
|
78
|
+
* @param alias - alias definition for the UI vocabulary
|
|
79
|
+
*/
|
|
80
|
+
addFilterBar(entityType, schema, v4Page, alias) {
|
|
81
|
+
const selectionFields = alias && entityType?.annotations?.[alias]?.SelectionFields;
|
|
82
|
+
let selectionFieldsDefinition;
|
|
83
|
+
// Hide visualFilters/selectionFields depending on existing visual filters
|
|
84
|
+
const appSchema = schema.get();
|
|
85
|
+
const visualFilters = (0, listReport_1.getVisualFilters)(v4Page);
|
|
86
|
+
if (visualFilters) {
|
|
87
|
+
appSchema.definitions[__1.DefinitionName.SelectionFields][__1.SchemaTag.hidden] = true;
|
|
88
|
+
appSchema.definitions[__1.DefinitionName.SelectionFields]['properties'] = {};
|
|
89
|
+
selectionFieldsDefinition = appSchema.definitions[__1.DefinitionName.CompactFilters];
|
|
90
|
+
selectionFieldsDefinition.additionalProperties = false;
|
|
91
|
+
selectionFieldsDefinition.properties = {};
|
|
92
|
+
(0, listReport_1.addVisualFilters)(entityType, appSchema, visualFilters, selectionFields);
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
const filterBar = schema.getDefinition(__1.DefinitionName.FilterBar);
|
|
96
|
+
filterBar.properties['initialLayout'][__1.SchemaTag.hidden] = true;
|
|
97
|
+
filterBar.properties['layout'][__1.SchemaTag.hidden] = true;
|
|
98
|
+
appSchema.definitions[__1.DefinitionName.CompactFilters][__1.SchemaTag.hidden] = true;
|
|
99
|
+
appSchema.definitions[__1.DefinitionName.VisualFilters][__1.SchemaTag.hidden] = true;
|
|
100
|
+
}
|
|
101
|
+
selectionFieldsDefinition = (0, listReport_1.addSelectionFields)(entityType, appSchema, selectionFields, selectionFieldsDefinition);
|
|
102
|
+
// Apply custom filter fields
|
|
103
|
+
(0, listReport_1.applyCustomFilterFields)(appSchema, selectionFieldsDefinition, v4Page);
|
|
104
|
+
// Add "manifestPath" to filter fields
|
|
105
|
+
addManifestPathsToDefinitionPropertiesLR(schema.get(), v4Page.id, __1.DefinitionName.SelectionFields, this.app.getManifest());
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.FilterBar = FilterBar;
|
|
109
|
+
/**
|
|
110
|
+
* Adjusts the entity type if a different entity set is maintained for a view.
|
|
111
|
+
*
|
|
112
|
+
* @param {EntitySet} entitySet - actual entity set (AVT information)
|
|
113
|
+
* @param view - the current view in manifest
|
|
114
|
+
* @param page - the page object
|
|
115
|
+
* @param app - the app object
|
|
116
|
+
* @returns the target entity type
|
|
117
|
+
*/
|
|
118
|
+
function getTargetEntityType(entitySet, view, page, app) {
|
|
119
|
+
let targetEntityType = page.getEntityType();
|
|
120
|
+
let viewEntitySet = entitySet;
|
|
121
|
+
if (view['entitySet'] && view['entitySet'] !== entitySet.name) {
|
|
122
|
+
viewEntitySet = app.getAVT()?.entitySets.find((es) => {
|
|
123
|
+
return es.name === view['entitySet'];
|
|
124
|
+
});
|
|
125
|
+
targetEntityType = viewEntitySet.entityType;
|
|
126
|
+
}
|
|
127
|
+
return targetEntityType;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Adapts the table definition in schema.
|
|
131
|
+
* Evaluates the path depending on if defaultTemplateAnnotationPath or Selection-/PresentationVariant is present.
|
|
132
|
+
*
|
|
133
|
+
* @param settings - general settings (App, Page, AppSchema, Logger)
|
|
134
|
+
* @param templateAnnotation - defaultTemplateAnnotationPath as registered in manifest
|
|
135
|
+
* @param tableDefinitionName - The name of the table definition in the schema
|
|
136
|
+
*/
|
|
137
|
+
function adaptTableDefinition(settings, templateAnnotation, tableDefinitionName) {
|
|
138
|
+
const { appSchema, page, app } = settings;
|
|
139
|
+
let schemaIdForColumns = `${__1.DefinitionName.LineItems}`;
|
|
140
|
+
let schemaIdForActions;
|
|
141
|
+
//here: tableDefinitionName = DefinitionName.Table
|
|
142
|
+
const tableDefinition = appSchema.getDefinition(tableDefinitionName);
|
|
143
|
+
const { visualization, targetAnnotation, namespace } = (0, listReport_1.analyzeViewAnnotation)(templateAnnotation, page.getUIAnnotations(), app.getAVT(), undefined, __1.Visualization.LineItem, app.logger);
|
|
144
|
+
if (visualization) {
|
|
145
|
+
const annotationTerm = visualization.split('.')[1];
|
|
146
|
+
schemaIdForColumns = `${__1.DefinitionName.LineItems}OfSPV::${(0, common_1.prepareRef)(annotationTerm)}`;
|
|
147
|
+
const spvTable = appSchema.cloneDefinition(tableDefinitionName, `${tableDefinitionName}SPV`);
|
|
148
|
+
appSchema.setPropertyRef(spvTable, ['properties', 'toolBar'], `${__1.DefinitionName.ToolBar}<${schemaIdForColumns}>`);
|
|
149
|
+
// Switch from generic column to specific definition
|
|
150
|
+
// schema.setProperty(spvTable, ['properties', 'columns'], {});
|
|
151
|
+
appSchema.setProperty(spvTable, [__1.SchemaTag.annotationPath], targetAnnotation);
|
|
152
|
+
appSchema.setPropertyRef(spvTable, ['properties', 'columns'], schemaIdForColumns);
|
|
153
|
+
appSchema.setDefinitionRef(tableDefinition, `${tableDefinitionName}SPV`);
|
|
154
|
+
appSchema.removeProperty(spvTable, __1.SchemaTag.isViewNode);
|
|
155
|
+
appSchema.removeProperty(tableDefinition, 'properties');
|
|
156
|
+
appSchema.setProperty(tableDefinition, [__1.SchemaTag.annotationPath], `/${namespace}/@${templateAnnotation}`);
|
|
157
|
+
const lineItemAnnotation = page.getUIAnnotations()[annotationTerm];
|
|
158
|
+
if (!lineItemAnnotation) {
|
|
159
|
+
(0, __1.log)(app.logger, {
|
|
160
|
+
severity: "error" /* LogSeverity.Error */,
|
|
161
|
+
message: i18next_1.default.t('NOTARGET', { target: annotationTerm })
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
const dataForLineItem = {
|
|
165
|
+
isObjectPage: false,
|
|
166
|
+
appSchema: appSchema.get(),
|
|
167
|
+
lineItemAnnotation,
|
|
168
|
+
entityType: page.entity.type,
|
|
169
|
+
oDataServiceAVT: app.getAVT(),
|
|
170
|
+
lineItemId: schemaIdForColumns
|
|
171
|
+
};
|
|
172
|
+
(0, utils_1.addLineItemsTypeToSchema)(dataForLineItem);
|
|
173
|
+
const annotationTermQualifier = annotationTerm.split('#')?.[1];
|
|
174
|
+
const sectionIdInManifest = annotationTermQualifier
|
|
175
|
+
? `@${"com.sap.vocabularies.UI.v1.LineItem" /* UIAnnotationTerms.LineItem */}#${annotationTermQualifier}`
|
|
176
|
+
: `@${"com.sap.vocabularies.UI.v1.LineItem" /* UIAnnotationTerms.LineItem */}`;
|
|
177
|
+
(0, utils_1.addCustomColumnDefinition)(appSchema.get(), page.target, app.logger, undefined, schemaIdForColumns, sectionIdInManifest);
|
|
178
|
+
(0, utils_1.addFragmentEnumForAnchor)(appSchema.get(), schemaIdForColumns, page.target, undefined, sectionIdInManifest);
|
|
179
|
+
// Table toolbar actions with custom actions
|
|
180
|
+
schemaIdForActions = `${__1.DefinitionName.Actions}<${schemaIdForColumns}>`;
|
|
181
|
+
const customColumnDefinitionName = (0, common_1.getCustomExtensionDefinitionName)(appSchema.get(), schemaIdForColumns, __1.DefinitionName.CustomTableAction);
|
|
182
|
+
const schemaAdjustmentParameters = {
|
|
183
|
+
logger: app.logger,
|
|
184
|
+
appSchema: appSchema.get(),
|
|
185
|
+
v4Page: page.target,
|
|
186
|
+
tableDefinitionKey: `${tableDefinitionName}SPV`,
|
|
187
|
+
facetDefinitionKey: schemaIdForColumns,
|
|
188
|
+
dataForLineItem,
|
|
189
|
+
entityType: page.entity.type,
|
|
190
|
+
sectionActionsDefinitionKey: schemaIdForActions,
|
|
191
|
+
scopedCustomActionDefinitionKey: (0, common_1.getDefinitionKey)(customColumnDefinitionName),
|
|
192
|
+
customActionDefinitionName: __1.DefinitionName.CustomTableAction,
|
|
193
|
+
sectionIdInManifest
|
|
194
|
+
};
|
|
195
|
+
(0, listReport_1.applyLRSchemaAdjustments)(schemaAdjustmentParameters);
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
appSchema.setPropertyRef(tableDefinition, ['properties', 'toolBar'], `${__1.DefinitionName.ToolBarLR}`);
|
|
199
|
+
appSchema.setPropertyRef(tableDefinition, ['properties', 'columns'], `${__1.DefinitionName.LineItems}`);
|
|
200
|
+
// Switch from generic column to specific definition
|
|
201
|
+
const lineItemAnnotation = page.getUIAnnotations()?.LineItem;
|
|
202
|
+
if (!lineItemAnnotation && !page.target.options?.settings?.views?.paths) {
|
|
203
|
+
(0, __1.log)(app.logger, {
|
|
204
|
+
severity: "error" /* LogSeverity.Error */,
|
|
205
|
+
message: i18next_1.default.t('NOLINEITEMS')
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
const dataForLineItem = {
|
|
209
|
+
isObjectPage: false,
|
|
210
|
+
appSchema: appSchema.get(),
|
|
211
|
+
lineItemAnnotation,
|
|
212
|
+
entityType: page.entity.type,
|
|
213
|
+
oDataServiceAVT: app.getAVT(),
|
|
214
|
+
lineItemId: __1.DefinitionName.LineItems
|
|
215
|
+
};
|
|
216
|
+
(0, utils_1.addLineItemsTypeToSchema)(dataForLineItem);
|
|
217
|
+
(0, utils_1.addCustomColumnDefinition)(appSchema.get(), page.target, app.logger);
|
|
218
|
+
(0, utils_1.addFragmentEnumForAnchor)(appSchema.get(), __1.DefinitionName.LineItems, page.target);
|
|
219
|
+
schemaIdForActions = `${__1.DefinitionName.Actions}<${(0, common_1.prepareRef)(schemaIdForColumns)}>`;
|
|
220
|
+
const schemaAdjustmentParameters = {
|
|
221
|
+
logger: app.logger,
|
|
222
|
+
appSchema: appSchema.get(),
|
|
223
|
+
v4Page: page.target,
|
|
224
|
+
tableDefinitionKey: tableDefinitionName,
|
|
225
|
+
facetDefinitionKey: schemaIdForColumns,
|
|
226
|
+
dataForLineItem,
|
|
227
|
+
entityType: page.entity.type,
|
|
228
|
+
customActionDefinitionName: __1.DefinitionName.CustomTableAction,
|
|
229
|
+
sectionActionsDefinitionKey: schemaIdForActions
|
|
230
|
+
};
|
|
231
|
+
(0, listReport_1.applyLRSchemaAdjustments)(schemaAdjustmentParameters);
|
|
232
|
+
if (lineItemAnnotation && !page.target.options?.settings?.views?.paths) {
|
|
233
|
+
tableDefinition[__1.SchemaTag.annotationPath] = (0, common_1.createAnnotationPath)(page.entity.type.fullyQualifiedName, lineItemAnnotation.term, lineItemAnnotation.qualifier);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
// Add "manifestPath" for table properties
|
|
237
|
+
(0, listReport_1.addManifestPathsToPropertiesLR)(appSchema.get(), tableDefinitionName, tableDefinition, {
|
|
238
|
+
pageName: page.target.id,
|
|
239
|
+
manifest: app.getManifest(),
|
|
240
|
+
targetAnnotation
|
|
241
|
+
});
|
|
242
|
+
// Add "manifestPath" for table columns and actions
|
|
243
|
+
const customExtensionDefinitionNames = [schemaIdForColumns, schemaIdForActions];
|
|
244
|
+
customExtensionDefinitionNames.forEach((definitionName) => {
|
|
245
|
+
addManifestPathsToDefinitionPropertiesLR(appSchema.get(), page.target.id, definitionName, app.getManifest());
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Add list report views to the app-specific schema.
|
|
250
|
+
*
|
|
251
|
+
* @param settings - general settings (App, Page, AppSchema, Logger)
|
|
252
|
+
* @param tableDefinitionName - The name of the table definition in the schema
|
|
253
|
+
*/
|
|
254
|
+
function addLRViews(settings, tableDefinitionName) {
|
|
255
|
+
const { appSchema, app, page } = settings;
|
|
256
|
+
const viewsPaths = page.config.views.paths;
|
|
257
|
+
const tableDefinition = appSchema.getDefinition(tableDefinitionName);
|
|
258
|
+
tableDefinition.properties = {
|
|
259
|
+
annotationPath: tableDefinition.properties.annotationPath,
|
|
260
|
+
initialLoad: tableDefinition.properties.initialLoad,
|
|
261
|
+
views: tableDefinition.properties.views
|
|
262
|
+
};
|
|
263
|
+
const viewsDefinition = appSchema.getDefinition(__1.DefinitionName.MultiTableModeV4);
|
|
264
|
+
for (const view of viewsPaths) {
|
|
265
|
+
if (!view[__1.SchemaTag.key]) {
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
let navPropName = undefined;
|
|
269
|
+
const targetEntityType = getTargetEntityType(page.entity.set, view, page, app);
|
|
270
|
+
const uiAnnotations = targetEntityType?.annotations.UI;
|
|
271
|
+
const { visualization, targetAnnotation, namespace, title } = (0, listReport_1.analyzeViewAnnotation)(view?.[__1.SchemaTag.annotationPath], uiAnnotations, app.getAVT(), view[__1.SchemaTag.key], undefined, app.logger);
|
|
272
|
+
if (view['entitySet']) {
|
|
273
|
+
navPropName = page.entity.type.navigationProperties.find((np) => {
|
|
274
|
+
return np.targetTypeName === namespace;
|
|
275
|
+
})?.name;
|
|
276
|
+
}
|
|
277
|
+
const viewKey = (0, common_1.prepareRef)(view[__1.SchemaTag.key]);
|
|
278
|
+
const commonInputParameters = {
|
|
279
|
+
viewKey,
|
|
280
|
+
appSchema: appSchema.get(),
|
|
281
|
+
targetAnnotation,
|
|
282
|
+
navPropName,
|
|
283
|
+
targetEntityType,
|
|
284
|
+
title,
|
|
285
|
+
entitySet: view['entitySet']
|
|
286
|
+
};
|
|
287
|
+
(0, listReport_1.addLRViewParts)(visualization, viewsDefinition, commonInputParameters, { serviceAVT: app.getAVT(), entityType: targetEntityType, logger: app.logger }, page, app, uiAnnotations, view);
|
|
288
|
+
(0, listReport_1.addTagsToView)(viewsDefinition, viewKey, namespace, view);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
class TableAndViews extends sync_rules_1.BaseConstruct {
|
|
292
|
+
/**
|
|
293
|
+
* Initializes the addition of table and views to the schema.
|
|
294
|
+
*/
|
|
295
|
+
init() {
|
|
296
|
+
this.addTableAndViews();
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Adds table and views to the schema.
|
|
300
|
+
*/
|
|
301
|
+
addTableAndViews() {
|
|
302
|
+
const tableDefinitionName = (0, utils_1.alignSchemaWithTemplateType)(this.appSchema.get(), this.page.template.type);
|
|
303
|
+
const config = this.page.config;
|
|
304
|
+
if (this.page.template.type === __1.TemplateType.ListReportObjectPageV4) {
|
|
305
|
+
this.appSchema.hide(this.appSchema.getRootProperty([__1.PropertyName.chart]));
|
|
306
|
+
adaptTableDefinition(this.getSettings(), config.defaultAnnotation, tableDefinitionName);
|
|
307
|
+
if (!config.views) {
|
|
308
|
+
this.appSchema.setProperty(__1.DefinitionName.MultiTableModeV4, ['properties'], {});
|
|
309
|
+
}
|
|
310
|
+
else if (config.views.paths) {
|
|
311
|
+
this.appSchema.cleanup(['LineItems', 'ToolBar<LineItems>', 'Actions<LineItems>']);
|
|
312
|
+
addLRViews(this.getSettings(), tableDefinitionName);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
else if (config.isALP) {
|
|
316
|
+
const generateParameters = {
|
|
317
|
+
logger: this.logger,
|
|
318
|
+
entityType: this.page.getEntityType(),
|
|
319
|
+
serviceAVT: this.app.getAVT()
|
|
320
|
+
};
|
|
321
|
+
(0, listReport_1.addALPViews)(this.appSchema.get(), config.views?.paths, generateParameters, config.defaultAnnotation, this.page.target, tableDefinitionName);
|
|
322
|
+
(0, utils_1.addFragmentEnumForAnchor)(this.appSchema.get(), __1.DefinitionName.LineItems, this.page.target);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
exports.TableAndViews = TableAndViews;
|
|
327
|
+
/**
|
|
328
|
+
* Enhances the List Report schema with manifest paths for definition and properties.
|
|
329
|
+
*
|
|
330
|
+
* This function extends the app schema (`appSchema`) by adding manifestPath to definition and properties on the List Report.
|
|
331
|
+
*
|
|
332
|
+
* @param {Definition} appSchema - The application schema object representing the List Report structure.
|
|
333
|
+
* @param {string} pageId - Identifier of the page.
|
|
334
|
+
* @param {string} definitionName - Identifier of the corresponding definition.
|
|
335
|
+
* @param {Manifest} manifest - The application manifest.
|
|
336
|
+
* @param {string} targetAnnotation - Target annotation.
|
|
337
|
+
* @param {string} entitySet - Entity set.
|
|
338
|
+
*/
|
|
339
|
+
function addManifestPathsToDefinitionPropertiesLR(appSchema, pageId, definitionName, manifest, targetAnnotation, entitySet) {
|
|
340
|
+
const matchingDefinition = appSchema.definitions[definitionName];
|
|
341
|
+
for (const key in matchingDefinition?.properties ?? {}) {
|
|
342
|
+
const property = matchingDefinition.properties[key];
|
|
343
|
+
(0, listReport_1.addManifestPathsToPropertiesLR)(appSchema, undefined, property, {
|
|
344
|
+
pageName: pageId,
|
|
345
|
+
columnKey: key,
|
|
346
|
+
manifest,
|
|
347
|
+
targetAnnotation,
|
|
348
|
+
viewConfig: {
|
|
349
|
+
entitySet
|
|
350
|
+
}
|
|
351
|
+
}, true);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
//# sourceMappingURL=ListReportUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListReportUtils.js","sourceRoot":"","sources":["../../../../../../../src/sync/v4/generate/list-report/ListReportUtils.ts"],"names":[],"mappings":";;;;;;AAicA,4FA2BC;AA3dD,mCAAqH;AAErH,uCAKqB;AAErB,0DAWmC;AAEnC,iDAAiD;AAGjD,4CAAuH;AACvH,sDAA8B;AAI9B;;;;GAIG;AACH,MAAa,yBAA0B,SAAQ,0BAAa;IACxD;;;;OAIG;IACH,YAAY,QAAyB;QACjC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC;IAED,IAAI;QACA,IAAI,CAAC,WAAW,CAAC,kBAAc,CAAC,sBAAsB,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACK,WAAW,CAAC,cAA8B;QAC9C,MAAM,WAAW,GAAG,wMAAoF,CAAC;QACzG,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACnD,IAAI,CAAC,aAAa,EAAE,CAAC;YACjB,OAAO;QACX,CAAC;QACD,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC;aAC3C,MAAM,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAyB,CAAC,CAAC;aAClF,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAChB,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CACxF,CAAC;QACN,MAAM,KAAK,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC;QACxC,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,cAAc,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,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/F,CAAC;IACL,CAAC;CACJ;AA5CD,sCA4CC;AAED;;;;;;;;;;;GAWG;AACH,SAAgB,wCAAwC,CACpD,SAAqB,EACrB,MAAc,EACd,cAAsB,EACtB,QAAkB,EAClB,gBAAyB,EACzB,SAAkB;IAElB,MAAM,kBAAkB,GAAG,SAAS,CAAC,WAAW,CAAC,cAAc,CAAe,CAAC;IAC/E,KAAK,MAAM,GAAG,IAAI,kBAAkB,EAAE,UAAU,IAAI,EAAE,EAAE,CAAC;QACrD,MAAM,QAAQ,GAAG,kBAAkB,CAAC,UAAU,CAAC,GAAG,CAAe,CAAC;QAClE,IAAA,2CAA8B,EAC1B,SAAS,EACT,SAAS,EACT,QAAQ,EACR;YACI,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,GAAG;YACd,QAAQ;YACR,gBAAgB;YAChB,UAAU,EAAE;gBACR,SAAS;aACZ;SACJ,EACD,IAAI,CACP,CAAC;IACN,CAAC;AACL,CAAC"}
|
package/dist/specification/src/sync/v4/generate/{listReport.d.ts → list-report/listReport.d.ts}
RENAMED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { type LineItemDataForSchema } from '
|
|
2
|
-
import {
|
|
1
|
+
import { type LineItemDataForSchema } from '../../utils';
|
|
2
|
+
import { Visualization, DefinitionName } from '@sap/ux-specification-types';
|
|
3
3
|
import type { ExtensionLogger, v4, GenerateAppSchemaParameters } from '@sap/ux-specification-types';
|
|
4
4
|
import type { AnnotationTerm, EntityType, ConvertedMetadata } from '@sap-ux/vocabularies-types';
|
|
5
5
|
import type { SelectionFields } from '@sap-ux/vocabularies-types/vocabularies/UI';
|
|
6
|
-
import { type ManifestPathParams } from '
|
|
6
|
+
import { type ManifestPathParams } from '../../../common';
|
|
7
7
|
import type { Definition } from 'typescript-json-schema';
|
|
8
|
-
import {
|
|
8
|
+
import type { PageConfig, App } from '../../sync-rules';
|
|
9
|
+
import { Page } from '../../sync-rules';
|
|
9
10
|
/**
|
|
10
11
|
* Parameter bag for post-generation schema adjustments.
|
|
11
12
|
*
|
|
@@ -36,6 +37,19 @@ export interface SchemaAdjustmentParameters {
|
|
|
36
37
|
sectionIdInManifest?: string;
|
|
37
38
|
customActionPosition?: string;
|
|
38
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Configuration interface for List Report pages.
|
|
42
|
+
* Extends the base PageConfig with List Report specific properties.
|
|
43
|
+
*/
|
|
44
|
+
export interface ListReportPageConfig extends PageConfig {
|
|
45
|
+
isALP?: boolean;
|
|
46
|
+
defaultAnnotation?: string;
|
|
47
|
+
views?: v4.SapUi5Views;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Type alias for a Page with ListReportPageConfig configuration.
|
|
51
|
+
*/
|
|
52
|
+
export type LRPage = Page<ListReportPageConfig>;
|
|
39
53
|
/**
|
|
40
54
|
* Adds the selection fields to the app schema, as properties of the FilterBar.
|
|
41
55
|
*
|
|
@@ -140,19 +154,11 @@ export declare function addTagsToView(viewsDefinition: Definition, viewKey: stri
|
|
|
140
154
|
* @param generateParameters.entityType - entity type of the current page
|
|
141
155
|
* @param generateParameters.logger - extension logger
|
|
142
156
|
* @param page - the current page object
|
|
157
|
+
* @param app - the application object containing manifest and other app-specific information.
|
|
143
158
|
* @param uiAnnotations - UI annotations of the given entityType
|
|
144
159
|
* @param view - the given view
|
|
145
160
|
*/
|
|
146
|
-
export declare function addLRViewParts(visualization: string, viewsDefinition: Definition, commonInputParameters: ViewsParameters, { serviceAVT, entityType, logger }: Partial<GenerateAppSchemaParameters>, page: Page, uiAnnotations: object, view: object): void;
|
|
147
|
-
/**
|
|
148
|
-
* Checks for the default annotation path to use for LR table.
|
|
149
|
-
*
|
|
150
|
-
* @param v4Page - actual page in the manifest
|
|
151
|
-
* @param entityType - actual entity type (AVT information)
|
|
152
|
-
* @param templateType - The type of template being used (e.g., ListReportObjectPageV4 or AnalyticalListPageV4)
|
|
153
|
-
* @returns annotation term
|
|
154
|
-
*/
|
|
155
|
-
export declare function getDefaultAnnotationPath(v4Page: v4.SapUiAppPageV4, entityType: EntityType, templateType: TemplateType): string | undefined;
|
|
161
|
+
export declare function addLRViewParts(visualization: string, viewsDefinition: Definition, commonInputParameters: ViewsParameters, { serviceAVT, entityType, logger }: Partial<GenerateAppSchemaParameters>, page: Page, app: App, uiAnnotations: object, view: object): void;
|
|
156
162
|
/**
|
|
157
163
|
* Adds header actions to schema (LR or ALP).
|
|
158
164
|
*
|
|
@@ -168,8 +174,9 @@ export declare function addHeaderActions(appSchema: Definition, v4Page: v4.SapUi
|
|
|
168
174
|
* @param definitionName - The name of the definition/class whose properties are being processed.
|
|
169
175
|
* @param definition - The definition object containing property schemas.
|
|
170
176
|
* @param pathParams - Additional context required to compute manifest paths.
|
|
177
|
+
* @param handleRelative - A flag indicating whether to use relative paths for definition properties.
|
|
171
178
|
*/
|
|
172
|
-
export declare function addManifestPathsToPropertiesLR(appSchema: Definition, definitionName: string | undefined, definition: Definition, pathParams: ManifestPathParams): void;
|
|
179
|
+
export declare function addManifestPathsToPropertiesLR(appSchema: Definition, definitionName: string | undefined, definition: Definition, pathParams: ManifestPathParams, handleRelative?: boolean): void;
|
|
173
180
|
/**
|
|
174
181
|
* Generates an app specific schema for the FE V4 ListReport from the generic schema.
|
|
175
182
|
* Generic types are replaced by information from the app specific annotations.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listReport.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v4/generate/list-report/listReport.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,qBAAqB,EAC7B,MAAM,aAAa,CAAC;AAWrB,OAAO,EAIH,aAAa,EAGb,cAAc,EAQjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,2BAA2B,EAAY,MAAM,6BAA6B,CAAC;AAC9G,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,iBA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