@sap/ux-specification 1.142.0 → 1.142.2
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 +71 -0
- 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 +261 -262
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ApplicationV2.json +28 -3
- package/dist/schemas/v2/ListReportNewConfig.json +45 -0
- package/dist/schemas/v2/ObjectPageConfig.json +11 -5
- package/dist/schemas/v4/ApplicationV4.json +18 -12
- package/dist/schemas/v4/BuildingBlocksConfig.json +84 -41
- package/dist/schemas/v4/ListReportConfig.json +358 -52
- package/dist/schemas/v4/ObjectPageConfig.json +511 -196
- package/dist/specification/package.json +17 -17
- package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
- package/dist/specification/scripts/macros/corrections.js +17 -1
- 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 +10 -1
- package/dist/specification/scripts/macros/schema.js.map +1 -1
- package/dist/specification/scripts/macros/types.d.ts +1 -0
- package/dist/specification/scripts/macros/types.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +23 -13
- package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
- package/dist/specification/src/api.d.ts.map +1 -1
- package/dist/specification/src/api.js +2 -1
- package/dist/specification/src/api.js.map +1 -1
- package/dist/specification/src/sync/common/DataFieldStrategy.d.ts +38 -8
- package/dist/specification/src/sync/common/DataFieldStrategy.d.ts.map +1 -1
- package/dist/specification/src/sync/common/DataFieldStrategy.js +64 -11
- package/dist/specification/src/sync/common/DataFieldStrategy.js.map +1 -1
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts +0 -4
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts.map +1 -1
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js +0 -3
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js.map +1 -1
- package/dist/specification/src/sync/common/appProvider.d.ts +0 -1
- package/dist/specification/src/sync/common/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/common/appProvider.js +0 -1
- package/dist/specification/src/sync/common/appProvider.js.map +1 -1
- package/dist/specification/src/sync/common/generate/objectPage.d.ts +0 -1
- package/dist/specification/src/sync/common/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/objectPage.js +0 -3
- package/dist/specification/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.d.ts +9 -2
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +30 -18
- package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/common/i18n.json +5 -3
- package/dist/specification/src/sync/common/import/utils.d.ts +0 -1
- package/dist/specification/src/sync/common/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/import/utils.js +0 -1
- package/dist/specification/src/sync/common/import/utils.js.map +1 -1
- package/dist/specification/src/sync/common/rules.js +0 -1
- package/dist/specification/src/sync/common/rules.js.map +1 -1
- package/dist/specification/src/sync/common/utils.d.ts +52 -2
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +176 -5
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/application.d.ts +1 -0
- package/dist/specification/src/sync/v2/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/application.js +18 -0
- package/dist/specification/src/sync/v2/application.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/exportPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.js +15 -4
- package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +8 -15
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/export/factory.d.ts +26 -0
- package/dist/specification/src/sync/v2/export/factory.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/factory.js +3 -3
- package/dist/specification/src/sync/v2/export/factory.js.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.d.ts +1 -0
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.js +11 -0
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.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 +46 -0
- package/dist/specification/src/sync/v2/generate/analyticalListReport.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 +46 -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 +63 -13
- package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +28 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.d.ts +22 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.js +124 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +4 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.js +5 -6
- package/dist/specification/src/sync/v2/import/importPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js +4 -0
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +17 -1
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +57 -0
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/application.d.ts +1 -1
- package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/application.js +1 -1
- package/dist/specification/src/sync/v4/application.js.map +1 -1
- package/dist/specification/src/sync/v4/export/actions.d.ts +39 -0
- package/dist/specification/src/sync/v4/export/actions.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/export/actions.js +99 -0
- package/dist/specification/src/sync/v4/export/actions.js.map +1 -0
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts +3 -2
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.js +14 -2
- 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 -2
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.d.ts +2 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.d.ts +2 -6
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.js +2 -44
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.d.ts +2 -2
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts +14 -3
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.js +54 -11
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +4 -0
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.js +30 -0
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +15 -3
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.js +55 -12
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts +0 -3
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js +0 -3
- package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts +7 -0
- package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/TableColumn.js +60 -0
- package/dist/specification/src/sync/v4/export/controls/TableColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBar.d.ts +9 -2
- package/dist/specification/src/sync/v4/export/controls/ToolBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBar.js +39 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBar.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts +17 -4
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js +80 -23
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/export.d.ts +7 -0
- package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/export.js +100 -11
- package/dist/specification/src/sync/v4/export/export.js.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js +2 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/specification/src/sync/v4/export/types.d.ts +2 -0
- package/dist/specification/src/sync/v4/export/types.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts +107 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js +394 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/actions.d.ts +35 -0
- package/dist/specification/src/sync/v4/generate/actions.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/actions.js +112 -0
- package/dist/specification/src/sync/v4/generate/actions.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts +3 -3
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js +10 -2
- 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 +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 +3 -2
- 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 +9 -2
- 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.js +2 -2
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.d.ts +129 -4
- package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.js +170 -356
- package/dist/specification/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts +0 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +14 -20
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/objectPage.js +16 -3
- package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/utils.d.ts +0 -1
- package/dist/specification/src/sync/v4/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/utils.js +0 -1
- package/dist/specification/src/sync/v4/import/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +2 -2
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/utils.js +2 -2
- package/dist/specification/src/sync/v4/sync-rules/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.d.ts +105 -50
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +356 -117
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/types/src/apiTypes.d.ts +3 -2
- package/dist/types/src/apiTypes.d.ts.map +1 -1
- package/dist/types/src/apiTypes.js +1 -0
- package/dist/types/src/apiTypes.js.map +1 -1
- package/dist/types/src/common/types.d.ts +40 -1
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js +39 -1
- package/dist/types/src/common/types.js.map +1 -1
- package/dist/types/src/common/webapp/manifest/Manifest.d.ts +1 -1
- package/dist/types/src/common/webapp/manifest/Manifest.d.ts.map +1 -1
- package/dist/types/src/v2/application.d.ts +18 -0
- package/dist/types/src/v2/application.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts +4 -4
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v2/pages/ObjectPageConfigV2.d.ts +10 -1
- package/dist/types/src/v2/pages/ObjectPageConfigV2.d.ts.map +1 -1
- package/dist/types/src/v4/application.d.ts +6 -6
- package/dist/types/src/v4/controls/Action.d.ts +3 -2
- package/dist/types/src/v4/controls/Action.d.ts.map +1 -1
- package/dist/types/src/v4/controls/CustomAction.d.ts +133 -19
- package/dist/types/src/v4/controls/CustomAction.d.ts.map +1 -1
- package/dist/types/src/v4/controls/CustomAction.js.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts +2 -2
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts +22 -3
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageSection.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts +2 -2
- package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ToolBar.d.ts +10 -3
- package/dist/types/src/v4/controls/ToolBar.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts +59 -0
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.js.map +1 -1
- package/package.json +17 -17
|
@@ -0,0 +1,394 @@
|
|
|
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.Header = exports.GeneralListReportSettings = exports.BaseConstruct = void 0;
|
|
7
|
+
const __1 = require("../../..");
|
|
8
|
+
const utils_1 = require("../utils/utils");
|
|
9
|
+
const listReport_1 = require("./listReport");
|
|
10
|
+
const controls_1 = require("../export/controls");
|
|
11
|
+
const listReport_2 = require("./listReport");
|
|
12
|
+
const common_1 = require("../../common");
|
|
13
|
+
const i18next_1 = __importDefault(require("i18next"));
|
|
14
|
+
class BaseConstruct {
|
|
15
|
+
/**
|
|
16
|
+
* Constructor for BaseConstruct.
|
|
17
|
+
*
|
|
18
|
+
* @param schema - the application schema
|
|
19
|
+
* @param page - the page object
|
|
20
|
+
* @param logger - optional extension logger
|
|
21
|
+
*/
|
|
22
|
+
constructor(schema, page, logger) {
|
|
23
|
+
this.schema = schema;
|
|
24
|
+
this.page = page;
|
|
25
|
+
this.logger = logger;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.BaseConstruct = BaseConstruct;
|
|
29
|
+
/**
|
|
30
|
+
* Add general settings to schema (LR or ALP).
|
|
31
|
+
*
|
|
32
|
+
* - Adds Selection-(PresentationVariant) related enums to the schema.
|
|
33
|
+
*/
|
|
34
|
+
class GeneralListReportSettings extends BaseConstruct {
|
|
35
|
+
/**
|
|
36
|
+
* Constructor for general settings of ListReport.
|
|
37
|
+
*
|
|
38
|
+
* @param schema - the application schema
|
|
39
|
+
* @param page - the page object
|
|
40
|
+
* @param logger - optional extension logger
|
|
41
|
+
*/
|
|
42
|
+
constructor(schema, page, logger) {
|
|
43
|
+
super(schema, page, logger);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Adds Selection-(PresentationVariant) related enums to the schema.
|
|
47
|
+
*
|
|
48
|
+
* @param definitionName - definition name
|
|
49
|
+
*/
|
|
50
|
+
addSPVEnums(definitionName) {
|
|
51
|
+
const targetTerms = ["com.sap.vocabularies.UI.v1.SelectionVariant" /* UIAnnotationTerms.SelectionVariant */, "com.sap.vocabularies.UI.v1.SelectionPresentationVariant" /* UIAnnotationTerms.SelectionPresentationVariant */];
|
|
52
|
+
const uiAnnotations = this.page.getUIAnnotations();
|
|
53
|
+
if (!uiAnnotations) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const enumStrings = Object.values(uiAnnotations)
|
|
57
|
+
.filter((annotation) => targetTerms.includes(annotation.term))
|
|
58
|
+
.map((annotation) => annotation.qualifier ? `${annotation.term}#${annotation.qualifier}` : annotation.term);
|
|
59
|
+
const enums = [...new Set(enumStrings)];
|
|
60
|
+
this.schema.addEnumToSchema(definitionName, ['properties', __1.SchemaTag.annotationPath], enums);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Instantiates the GeneralListReport and adds general settings to the schema.
|
|
64
|
+
*/
|
|
65
|
+
instantiate() {
|
|
66
|
+
this.addSPVEnums(__1.DefinitionName.AnnotationPathAsObject);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.GeneralListReportSettings = GeneralListReportSettings;
|
|
70
|
+
/**
|
|
71
|
+
* Add header to schema (LR or ALP).
|
|
72
|
+
*/
|
|
73
|
+
class Header extends BaseConstruct {
|
|
74
|
+
/**
|
|
75
|
+
* Constructor for Header.
|
|
76
|
+
*
|
|
77
|
+
* @param schema - the application schema
|
|
78
|
+
* @param page - the page object
|
|
79
|
+
* @param logger - optional extension logger
|
|
80
|
+
*/
|
|
81
|
+
constructor(schema, page, logger) {
|
|
82
|
+
super(schema, page, logger);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Adds header actions to schema (LR or ALP).
|
|
86
|
+
*/
|
|
87
|
+
addActions() {
|
|
88
|
+
new controls_1.HeaderActions(this.schema.getSchema()).applyDecorators();
|
|
89
|
+
new controls_1.CustomHeaderAction(this.schema.getSchema()).applyDecorators();
|
|
90
|
+
(0, utils_1.addHeaderFooterCustomActionDefinition)(this.schema.getSchema(), this.page.getPage(), this.logger, __1.DefinitionName.CustomHeaderAction, __1.DefinitionName.HeaderActions);
|
|
91
|
+
// parseSchemaDefinition(facetKey, facetKey, this.schema.getSchema(), false);
|
|
92
|
+
// this.schema.setPropertyRef(
|
|
93
|
+
// this.schema.getDefinition(DefinitionName.CustomHeaderAction),
|
|
94
|
+
// ['properties', 'position'],
|
|
95
|
+
// DefinitionName.CustomHeaderActionPosition
|
|
96
|
+
// );
|
|
97
|
+
// Anchor selection
|
|
98
|
+
(0, utils_1.addEnumForActionAnchor)(this.schema.getSchema(), __1.DefinitionName.HeaderActions, __1.DefinitionName.CustomHeaderActionPosition);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Instantiates the Header and adds actions to the schema.
|
|
102
|
+
*/
|
|
103
|
+
instantiate() {
|
|
104
|
+
// addHeaderActions(this.schema.getSchema(), this.page.getPage(), this.logger);
|
|
105
|
+
this.addActions();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.Header = Header;
|
|
109
|
+
/**
|
|
110
|
+
* Add filter bar to schema (LR or ALP).
|
|
111
|
+
*/
|
|
112
|
+
class FilterBar extends BaseConstruct {
|
|
113
|
+
/**
|
|
114
|
+
* Constructor for FilterBar.
|
|
115
|
+
*
|
|
116
|
+
* @param schema - the application schema
|
|
117
|
+
* @param page - the page object
|
|
118
|
+
* @param logger - optional extension logger
|
|
119
|
+
*/
|
|
120
|
+
constructor(schema, page, logger) {
|
|
121
|
+
super(schema, page, logger);
|
|
122
|
+
}
|
|
123
|
+
// Implementation for FilterBar can be added here
|
|
124
|
+
addVisualFilters() {
|
|
125
|
+
const visualFilters = (0, listReport_2.getVisualFilters)(this.page.getPage());
|
|
126
|
+
}
|
|
127
|
+
addSelectionFields() {
|
|
128
|
+
const selectionFields = this.page.getUIAnnotations()?.SelectionFields;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Instantiates the FilterBar and adds the filterBar to the schema.
|
|
132
|
+
*/
|
|
133
|
+
instantiate() {
|
|
134
|
+
// this.addVisualFilters();
|
|
135
|
+
// this.addSelectionFields();
|
|
136
|
+
this.addFilterBar(this.page.getEntityType(), this.schema, this.page.getPage(), this.page.getApp().getUIVocabularyAlias() || 'UI');
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Adds filter bar to schema (LR or ALP).
|
|
140
|
+
*
|
|
141
|
+
* @param entityType - the entity type
|
|
142
|
+
* @param schema - the application schema
|
|
143
|
+
* @param v4Page - the actual page in the manifest
|
|
144
|
+
* @param alias - alias definition for the UI vocabulary
|
|
145
|
+
*/
|
|
146
|
+
addFilterBar(entityType, schema, v4Page, alias) {
|
|
147
|
+
const selectionFields = alias && entityType?.annotations?.[alias]?.SelectionFields;
|
|
148
|
+
let selectionFieldsDefinition;
|
|
149
|
+
// Hide visualFilters/selectionFields depending on existing visual filters
|
|
150
|
+
const appSchema = schema.getSchema();
|
|
151
|
+
const visualFilters = (0, listReport_2.getVisualFilters)(v4Page);
|
|
152
|
+
if (visualFilters) {
|
|
153
|
+
appSchema.definitions[__1.DefinitionName.SelectionFields][__1.SchemaTag.hidden] = true;
|
|
154
|
+
appSchema.definitions[__1.DefinitionName.SelectionFields]['properties'] = {};
|
|
155
|
+
selectionFieldsDefinition = appSchema.definitions[__1.DefinitionName.CompactFilters];
|
|
156
|
+
selectionFieldsDefinition.additionalProperties = false;
|
|
157
|
+
selectionFieldsDefinition.properties = {};
|
|
158
|
+
(0, listReport_2.addVisualFilters)(entityType, appSchema, visualFilters, selectionFields);
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
const filterBar = schema.getDefinition(__1.DefinitionName.FilterBar);
|
|
162
|
+
filterBar.properties['initialLayout'][__1.SchemaTag.hidden] = true;
|
|
163
|
+
filterBar.properties['layout'][__1.SchemaTag.hidden] = true;
|
|
164
|
+
appSchema.definitions[__1.DefinitionName.CompactFilters][__1.SchemaTag.hidden] = true;
|
|
165
|
+
appSchema.definitions[__1.DefinitionName.VisualFilters][__1.SchemaTag.hidden] = true;
|
|
166
|
+
}
|
|
167
|
+
selectionFieldsDefinition = (0, listReport_2.addSelectionFields)(entityType, appSchema, selectionFields, selectionFieldsDefinition);
|
|
168
|
+
// Apply custom filter fields
|
|
169
|
+
(0, listReport_2.applyCustomFilterFields)(appSchema, selectionFieldsDefinition, v4Page);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
exports.FilterBar = FilterBar;
|
|
173
|
+
/**
|
|
174
|
+
* Adjusts the entity type if a different entity set is maintained for a view.
|
|
175
|
+
*
|
|
176
|
+
* @param {EntitySet} entitySet - actual entity set (AVT information)
|
|
177
|
+
* @param view - the current view in manifest
|
|
178
|
+
* @param page - the page object
|
|
179
|
+
* @returns the target entity type
|
|
180
|
+
*/
|
|
181
|
+
function getTargetEntityType(entitySet, view, page) {
|
|
182
|
+
let targetEntityType = page.getEntityType();
|
|
183
|
+
let viewEntitySet = entitySet;
|
|
184
|
+
if (view['entitySet'] && view['entitySet'] !== entitySet.name) {
|
|
185
|
+
viewEntitySet = page
|
|
186
|
+
.getApp()
|
|
187
|
+
.getAVT()
|
|
188
|
+
?.entitySets.find((es) => {
|
|
189
|
+
return es.name === view['entitySet'];
|
|
190
|
+
});
|
|
191
|
+
targetEntityType = viewEntitySet.entityType;
|
|
192
|
+
}
|
|
193
|
+
return targetEntityType;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Adapts the table definition in schema.
|
|
197
|
+
* Evaluates the path depending on if defaultTemplateAnnotationPath or Selection-/PresentationVariant is present.
|
|
198
|
+
*
|
|
199
|
+
* @param schema - the app-specific JSON schema
|
|
200
|
+
* @param page - the page object
|
|
201
|
+
* @param templateAnnotation - defaultTemplateAnnotationPath as registered in manifest
|
|
202
|
+
* @param tableDefinitionName - The name of the table definition in the schema
|
|
203
|
+
*/
|
|
204
|
+
function adaptTableDefinition(schema, page, templateAnnotation, tableDefinitionName) {
|
|
205
|
+
const logger = page.getApp().getLogger();
|
|
206
|
+
//here: tableDefinitionName = DefinitionName.Table
|
|
207
|
+
const tableDefinition = schema.getDefinition(tableDefinitionName);
|
|
208
|
+
const { visualization, targetAnnotation, namespace } = (0, listReport_2.analyzeViewAnnotation)(templateAnnotation, page.getUIAnnotations(), page.getApp().avt, undefined, __1.Visualization.LineItem, page.getApp().getLogger());
|
|
209
|
+
if (visualization) {
|
|
210
|
+
const annotationTerm = visualization.split('.')[1];
|
|
211
|
+
const annotationTermInSchema = `${__1.DefinitionName.LineItems}OfSPV::${(0, common_1.prepareRef)(annotationTerm)}`;
|
|
212
|
+
const spvTable = schema.cloneDefinition(tableDefinitionName, `${tableDefinitionName}SPV`);
|
|
213
|
+
schema.setPropertyRef(spvTable, ['properties', 'toolBar'], `${__1.DefinitionName.ToolBar}<${annotationTermInSchema}>`);
|
|
214
|
+
// Switch from generic column to specific definition
|
|
215
|
+
// schema.setProperty(spvTable, ['properties', 'columns'], {});
|
|
216
|
+
schema.setProperty(spvTable, [__1.SchemaTag.annotationPath], targetAnnotation);
|
|
217
|
+
schema.setPropertyRef(spvTable, ['properties', 'columns'], annotationTermInSchema);
|
|
218
|
+
schema.setDefinitionRef(tableDefinition, `${tableDefinitionName}SPV`);
|
|
219
|
+
schema.removeProperty(spvTable, __1.SchemaTag.isViewNode);
|
|
220
|
+
schema.removeProperty(tableDefinition, 'properties');
|
|
221
|
+
schema.setProperty(tableDefinition, [__1.SchemaTag.annotationPath], `/${namespace}/@${templateAnnotation}`);
|
|
222
|
+
const lineItemAnnotation = page.getUIAnnotations()[annotationTerm];
|
|
223
|
+
if (!lineItemAnnotation) {
|
|
224
|
+
(0, __1.log)(logger, {
|
|
225
|
+
severity: "error" /* LogSeverity.Error */,
|
|
226
|
+
message: i18next_1.default.t('NOTARGET', { target: annotationTerm })
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
const dataForLineItem = {
|
|
230
|
+
isObjectPage: false,
|
|
231
|
+
appSchema: schema.getSchema(),
|
|
232
|
+
lineItemAnnotation,
|
|
233
|
+
entityType: page.entity.type,
|
|
234
|
+
oDataServiceAVT: page.getApp().getAVT(),
|
|
235
|
+
lineItemId: annotationTermInSchema
|
|
236
|
+
};
|
|
237
|
+
(0, utils_1.addLineItemsTypeToSchema)(dataForLineItem);
|
|
238
|
+
const annotationTermQualifier = annotationTerm.split('#')?.[1];
|
|
239
|
+
const sectionIdInManifest = annotationTermQualifier
|
|
240
|
+
? `@${"com.sap.vocabularies.UI.v1.LineItem" /* UIAnnotationTerms.LineItem */}#${annotationTermQualifier}`
|
|
241
|
+
: `@${"com.sap.vocabularies.UI.v1.LineItem" /* UIAnnotationTerms.LineItem */}`;
|
|
242
|
+
(0, utils_1.addCustomColumnDefinition)(schema.getSchema(), page.getPage(), logger, undefined, annotationTermInSchema, sectionIdInManifest);
|
|
243
|
+
(0, utils_1.addFragmentEnumForAnchor)(schema.getSchema(), annotationTermInSchema, page.getPage(), undefined, sectionIdInManifest);
|
|
244
|
+
// Table toolbar actions with custom actions
|
|
245
|
+
const schemaIdForToolbarActions = `${__1.DefinitionName.Actions}<${annotationTermInSchema}>`;
|
|
246
|
+
const customColumnDefinitionName = (0, common_1.getCustomExtensionDefinitionName)(schema.getSchema(), annotationTermInSchema, __1.DefinitionName.CustomTableAction);
|
|
247
|
+
const schemaAdjustmentParameters = {
|
|
248
|
+
logger,
|
|
249
|
+
appSchema: schema.getSchema(),
|
|
250
|
+
v4Page: page.getPage(),
|
|
251
|
+
tableDefinitionKey: `${tableDefinitionName}SPV`,
|
|
252
|
+
facetDefinitionKey: annotationTermInSchema,
|
|
253
|
+
dataForLineItem,
|
|
254
|
+
entityType: page.entity.type,
|
|
255
|
+
sectionActionsDefinitionKey: schemaIdForToolbarActions,
|
|
256
|
+
scopedCustomActionDefinitionKey: (0, common_1.getDefinitionKey)(customColumnDefinitionName),
|
|
257
|
+
customActionDefinitionName: __1.DefinitionName.CustomTableAction,
|
|
258
|
+
sectionIdInManifest
|
|
259
|
+
};
|
|
260
|
+
(0, listReport_2.applyLRSchemaAdjustments)(schemaAdjustmentParameters);
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
schema.setPropertyRef(tableDefinition, ['properties', 'toolBar'], `${__1.DefinitionName.ToolBarLR}`);
|
|
264
|
+
schema.setPropertyRef(tableDefinition, ['properties', 'columns'], `${__1.DefinitionName.LineItems}`);
|
|
265
|
+
// Switch from generic column to specific definition
|
|
266
|
+
const lineItemAnnotation = page.getUIAnnotations()?.LineItem;
|
|
267
|
+
if (!lineItemAnnotation && !page.getPage().options?.settings?.views?.paths) {
|
|
268
|
+
(0, __1.log)(logger, {
|
|
269
|
+
severity: "error" /* LogSeverity.Error */,
|
|
270
|
+
message: i18next_1.default.t('NOLINEITEMS')
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
const dataForLineItem = {
|
|
274
|
+
isObjectPage: false,
|
|
275
|
+
appSchema: schema.getSchema(),
|
|
276
|
+
lineItemAnnotation,
|
|
277
|
+
entityType: page.entity.type,
|
|
278
|
+
oDataServiceAVT: page.getApp().getAVT(),
|
|
279
|
+
lineItemId: __1.DefinitionName.LineItems
|
|
280
|
+
};
|
|
281
|
+
(0, utils_1.addLineItemsTypeToSchema)(dataForLineItem);
|
|
282
|
+
(0, utils_1.addCustomColumnDefinition)(schema.getSchema(), page.getPage(), logger);
|
|
283
|
+
(0, utils_1.addFragmentEnumForAnchor)(schema.getSchema(), __1.DefinitionName.LineItems, page.getPage());
|
|
284
|
+
const schemaAdjustmentParameters = {
|
|
285
|
+
logger,
|
|
286
|
+
appSchema: schema.getSchema(),
|
|
287
|
+
v4Page: page.getPage(),
|
|
288
|
+
tableDefinitionKey: tableDefinitionName,
|
|
289
|
+
facetDefinitionKey: __1.DefinitionName.LineItems,
|
|
290
|
+
dataForLineItem,
|
|
291
|
+
entityType: page.entity.type,
|
|
292
|
+
customActionDefinitionName: __1.DefinitionName.CustomTableAction,
|
|
293
|
+
sectionActionsDefinitionKey: `${__1.DefinitionName.Actions}<${(0, common_1.prepareRef)(__1.DefinitionName.LineItems)}>`
|
|
294
|
+
};
|
|
295
|
+
(0, listReport_2.applyLRSchemaAdjustments)(schemaAdjustmentParameters);
|
|
296
|
+
if (lineItemAnnotation && !page.getPage().options?.settings?.views?.paths) {
|
|
297
|
+
tableDefinition[__1.SchemaTag.annotationPath] = (0, common_1.createAnnotationPath)(page.getEntityType().fullyQualifiedName, lineItemAnnotation.term, lineItemAnnotation.qualifier);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
// Add "manifestPath" for table properties
|
|
301
|
+
(0, listReport_1.addManifestPathsToPropertiesLR)(schema.getSchema(), tableDefinitionName, tableDefinition, {
|
|
302
|
+
pageName: page.getPage().id,
|
|
303
|
+
manifest: page.getApp().getManifest(),
|
|
304
|
+
targetAnnotation
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Add list report views to the app-specific schema.
|
|
309
|
+
*
|
|
310
|
+
* @param schema - app-specific JSON schema
|
|
311
|
+
* @param viewsPaths - views' paths' section in the manifest
|
|
312
|
+
* @param page - the given page in manifest
|
|
313
|
+
* @param tableDefinitionName - The name of the table definition in the schema
|
|
314
|
+
*/
|
|
315
|
+
function addLRViews(schema, viewsPaths, page, tableDefinitionName) {
|
|
316
|
+
const tableDefinition = schema.getDefinition(tableDefinitionName);
|
|
317
|
+
tableDefinition.properties = {
|
|
318
|
+
annotationPath: tableDefinition.properties.annotationPath,
|
|
319
|
+
initialLoad: tableDefinition.properties.initialLoad,
|
|
320
|
+
views: tableDefinition.properties.views
|
|
321
|
+
};
|
|
322
|
+
const viewsDefinition = schema.getDefinition(__1.DefinitionName.MultiTableModeV4);
|
|
323
|
+
for (const view of viewsPaths) {
|
|
324
|
+
if (!view[__1.SchemaTag.key]) {
|
|
325
|
+
continue;
|
|
326
|
+
}
|
|
327
|
+
let navPropName = undefined;
|
|
328
|
+
const targetEntityType = getTargetEntityType(page.entity.set, view, page);
|
|
329
|
+
const uiAnnotations = targetEntityType?.annotations.UI;
|
|
330
|
+
const { visualization, targetAnnotation, namespace, title } = (0, listReport_2.analyzeViewAnnotation)(view?.[__1.SchemaTag.annotationPath], uiAnnotations, page.getApp().getAVT(), view[__1.SchemaTag.key], undefined, page.getApp().getLogger());
|
|
331
|
+
if (view['entitySet']) {
|
|
332
|
+
navPropName = page.getEntityType().navigationProperties.find((np) => {
|
|
333
|
+
return np.targetTypeName === namespace;
|
|
334
|
+
})?.name;
|
|
335
|
+
}
|
|
336
|
+
const viewKey = (0, common_1.prepareRef)(view[__1.SchemaTag.key]);
|
|
337
|
+
const commonInputParameters = {
|
|
338
|
+
viewKey,
|
|
339
|
+
appSchema: schema.getSchema(),
|
|
340
|
+
targetAnnotation,
|
|
341
|
+
navPropName,
|
|
342
|
+
targetEntityType,
|
|
343
|
+
title,
|
|
344
|
+
entitySet: view['entitySet']
|
|
345
|
+
};
|
|
346
|
+
(0, listReport_2.addLRViewParts)(visualization, viewsDefinition, commonInputParameters, { serviceAVT: page.getApp().getAVT(), entityType: targetEntityType, logger: page.getApp().getLogger() }, page, uiAnnotations, view);
|
|
347
|
+
(0, listReport_2.addTagsToView)(viewsDefinition, viewKey, namespace, view);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
class TableAndViews extends BaseConstruct {
|
|
351
|
+
/**
|
|
352
|
+
* Constructor for TableAndViews.
|
|
353
|
+
*
|
|
354
|
+
* @param schema - the application schema
|
|
355
|
+
* @param page - the page object
|
|
356
|
+
* @param logger - optional extension logger
|
|
357
|
+
*/
|
|
358
|
+
constructor(schema, page, logger) {
|
|
359
|
+
super(schema, page, logger);
|
|
360
|
+
}
|
|
361
|
+
addTableAndViews() {
|
|
362
|
+
const views = this.page.getPage().options?.settings?.views;
|
|
363
|
+
const defaultAnnotation = (0, listReport_2.getDefaultAnnotationPath)(this.page.getPage(), this.page.getEntityType(), this.page.getTemplate().type);
|
|
364
|
+
const tableDefinitionName = (0, utils_1.alignSchemaWithTemplateType)(this.schema.getSchema(), this.page.getTemplate().type);
|
|
365
|
+
if (this.page.getTemplate().type === __1.TemplateType.ListReportObjectPageV4) {
|
|
366
|
+
this.schema.hide(this.schema.getRootProperty([__1.PropertyName.chart]));
|
|
367
|
+
adaptTableDefinition(this.schema, this.page, defaultAnnotation, tableDefinitionName);
|
|
368
|
+
if (!views) {
|
|
369
|
+
this.schema.setProperty(__1.DefinitionName.MultiTableModeV4, ['properties'], {});
|
|
370
|
+
}
|
|
371
|
+
else if (views.paths) {
|
|
372
|
+
this.schema.cleanup(['LineItems', 'ToolBar<LineItems>', 'Actions<LineItems>']);
|
|
373
|
+
addLRViews(this.schema, views.paths, this.page, tableDefinitionName);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
else if (this.page.getTemplate().type === __1.TemplateType.AnalyticalListPageV4) {
|
|
377
|
+
const generateParameters = {
|
|
378
|
+
logger: this.logger,
|
|
379
|
+
entityType: this.page.getEntityType(),
|
|
380
|
+
serviceAVT: this.page.getApp().getAVT()
|
|
381
|
+
};
|
|
382
|
+
(0, listReport_2.addALPViews)(this.schema.getSchema(), views?.paths, generateParameters, defaultAnnotation, this.page.getPage(), tableDefinitionName);
|
|
383
|
+
(0, utils_1.addFragmentEnumForAnchor)(this.schema.getSchema(), __1.DefinitionName.LineItems, this.page.getPage());
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Instantiates the TableAndViews and adds them to the schema.
|
|
388
|
+
*/
|
|
389
|
+
instantiate() {
|
|
390
|
+
this.addTableAndViews();
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
exports.TableAndViews = TableAndViews;
|
|
394
|
+
//# sourceMappingURL=ListReportUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListReportUtils.js","sourceRoot":"","sources":["../../../../../../src/sync/v4/generate/ListReportUtils.ts"],"names":[],"mappings":";;;;;;AACA,gCAAkH;AAElH,0CAQwB;AACxB,6CAA8D;AAC9D,iDAAuE;AAGvE,6CAWsB;AAItB,yCAAoH;AACpH,sDAA8B;AAG9B,MAAa,aAAa;IAKtB;;;;;;OAMG;IACH,YAAY,MAAiB,EAAE,IAAU,EAAE,MAAwB;QAC/D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;CACJ;AAjBD,sCAiBC;AAED;;;;GAIG;AACH,MAAa,yBAA0B,SAAQ,aAAa;IACxD;;;;;;OAMG;IACH,YAAY,MAAiB,EAAE,IAAU,EAAE,MAAwB;QAC/D,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAChC,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,I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,CAAC,CAAC;QACrG,CAAC;IACL,CAAC;IACD;;OAEG;IACH,WAAW;QACP,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC5B,CAAC;CACJ;AArDD,sCAqDC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DefinitionName } from '@sap/ux-specification-types';
|
|
2
|
+
import type { Definition } from 'typescript-json-schema';
|
|
3
|
+
import type { SchemaAdjustmentParameters } from './listReport';
|
|
4
|
+
/**
|
|
5
|
+
* Builds the JSON Schema definition to be used as `additionalProperties` for custom actions.
|
|
6
|
+
*
|
|
7
|
+
* Depending on the action type (`definitionKey`), this function uses the action-to-menu mapping to decide whether
|
|
8
|
+
* only an action reference is allowed, or both an action reference and a menu reference (via `anyOf`).
|
|
9
|
+
*
|
|
10
|
+
* @param definitionKey - Base definition name of the custom action type.
|
|
11
|
+
* @param scopedActionDefinitionKey - Optional scoped definition key to use for the action `$ref`.
|
|
12
|
+
* @param scopedMenuDefinitionKey - Optional scoped definition key to use for the menu `$ref` (if the mapping provides one).
|
|
13
|
+
* @returns A schema fragment (`$ref` or `anyOf` with `$ref`s) that can be assigned to `additionalProperties`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function buildAdditionalPropertiesSchemaForCustomActionsAndMenus(definitionKey: DefinitionName, scopedActionDefinitionKey?: string, scopedMenuDefinitionKey?: string): Definition;
|
|
16
|
+
/**
|
|
17
|
+
* Configures additional properties for custom actions and menus in the provided application schema.
|
|
18
|
+
* This includes updating actions' positions, creating specific action menu definitions, and setting up additional properties.
|
|
19
|
+
*
|
|
20
|
+
* @param appSchema The application schema that needs to be updated with custom actions and menus.
|
|
21
|
+
* @param actionsSchemaKey The key in the schema that references the actions definitions.
|
|
22
|
+
* @param actionsPositionDefinitionKey The key for the definition related to an action's position in the schema.
|
|
23
|
+
* @param lineItemId The identifier for the specific line item being processed.
|
|
24
|
+
* @param customActionDefinitionName The name of the definition for the custom action being added.
|
|
25
|
+
* @param scopedCustomActionDefinitionKey The key for the scoped definition specific to the custom action.
|
|
26
|
+
*/
|
|
27
|
+
export declare function configureAdditionalPropertiesForCustomActionsAndMenus(appSchema: Definition, actionsSchemaKey: string, actionsPositionDefinitionKey: string, lineItemId: string, customActionDefinitionName: DefinitionName, scopedCustomActionDefinitionKey: string): void;
|
|
28
|
+
/**
|
|
29
|
+
* Configures the custom action definition within the provided schema by adjusting relevant parameters and adding necessary definitions and enumerations.
|
|
30
|
+
*
|
|
31
|
+
* @param schemaAdjustmentParameters An object containing parameters required to adjust the schema for the custom action definition.
|
|
32
|
+
* Includes the application schema, page information, generation parameters, section definition properties, and custom action details.
|
|
33
|
+
*/
|
|
34
|
+
export declare function configureCustomActionDefinition(schemaAdjustmentParameters: SchemaAdjustmentParameters): void;
|
|
35
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v4/generate/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAgB,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAW/D;;;;;;;;;;GAUG;AACH,wBAAgB,uDAAuD,CACnE,aAAa,EAAE,cAAc,EAC7B,yBAAyB,CAAC,EAAE,MAAM,EAClC,uBAAuB,CAAC,EAAE,MAAM,GACjC,UAAU,CAcZ;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qDAAqD,CACjE,SAAS,EAAE,UAAU,EACrB,gBAAgB,EAAE,MAAM,EACxB,4BAA4B,EAAE,MAAM,EACpC,UAAU,EAAE,MAAM,EAClB,0BAA0B,EAAE,cAAc,EAC1C,+BAA+B,EAAE,MAAM,QAmB1C;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,0BAA0B,EAAE,0BAA0B,GAAG,IAAI,CAmC5G"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildAdditionalPropertiesSchemaForCustomActionsAndMenus = buildAdditionalPropertiesSchemaForCustomActionsAndMenus;
|
|
4
|
+
exports.configureAdditionalPropertiesForCustomActionsAndMenus = configureAdditionalPropertiesForCustomActionsAndMenus;
|
|
5
|
+
exports.configureCustomActionDefinition = configureCustomActionDefinition;
|
|
6
|
+
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
7
|
+
const common_1 = require("../../common");
|
|
8
|
+
const utils_1 = require("../utils/utils");
|
|
9
|
+
const actionToMenuDefinitionMap = new Map([
|
|
10
|
+
[ux_specification_types_1.DefinitionName.CustomHeaderActionOP, ux_specification_types_1.DefinitionName.ObjectPageHeaderCustomActionMenu],
|
|
11
|
+
[ux_specification_types_1.DefinitionName.CustomFormActionOP, ux_specification_types_1.DefinitionName.ObjectPageCustomActionMenu],
|
|
12
|
+
[ux_specification_types_1.DefinitionName.CustomTableActionOP, ux_specification_types_1.DefinitionName.ObjectPageCustomActionMenu],
|
|
13
|
+
[ux_specification_types_1.DefinitionName.CustomTableAction, ux_specification_types_1.DefinitionName.CustomActionMenu],
|
|
14
|
+
[ux_specification_types_1.DefinitionName.ViewCustomAction, ux_specification_types_1.DefinitionName.ViewCustomActionMenu]
|
|
15
|
+
]);
|
|
16
|
+
/**
|
|
17
|
+
* Builds the JSON Schema definition to be used as `additionalProperties` for custom actions.
|
|
18
|
+
*
|
|
19
|
+
* Depending on the action type (`definitionKey`), this function uses the action-to-menu mapping to decide whether
|
|
20
|
+
* only an action reference is allowed, or both an action reference and a menu reference (via `anyOf`).
|
|
21
|
+
*
|
|
22
|
+
* @param definitionKey - Base definition name of the custom action type.
|
|
23
|
+
* @param scopedActionDefinitionKey - Optional scoped definition key to use for the action `$ref`.
|
|
24
|
+
* @param scopedMenuDefinitionKey - Optional scoped definition key to use for the menu `$ref` (if the mapping provides one).
|
|
25
|
+
* @returns A schema fragment (`$ref` or `anyOf` with `$ref`s) that can be assigned to `additionalProperties`.
|
|
26
|
+
*/
|
|
27
|
+
function buildAdditionalPropertiesSchemaForCustomActionsAndMenus(definitionKey, scopedActionDefinitionKey, scopedMenuDefinitionKey) {
|
|
28
|
+
const actionRefSchema = {
|
|
29
|
+
$ref: (0, common_1.getDefinitionsRef)(scopedActionDefinitionKey ?? definitionKey)
|
|
30
|
+
};
|
|
31
|
+
// actionToMenuDefinitionMap contains the mapping between the action and the corresponding menu definition
|
|
32
|
+
const menuDefinitionKey = actionToMenuDefinitionMap.get(definitionKey);
|
|
33
|
+
if (!menuDefinitionKey) {
|
|
34
|
+
return actionRefSchema;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
anyOf: [actionRefSchema, { $ref: (0, common_1.getDefinitionsRef)(scopedMenuDefinitionKey ?? menuDefinitionKey) }]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Configures additional properties for custom actions and menus in the provided application schema.
|
|
42
|
+
* This includes updating actions' positions, creating specific action menu definitions, and setting up additional properties.
|
|
43
|
+
*
|
|
44
|
+
* @param appSchema The application schema that needs to be updated with custom actions and menus.
|
|
45
|
+
* @param actionsSchemaKey The key in the schema that references the actions definitions.
|
|
46
|
+
* @param actionsPositionDefinitionKey The key for the definition related to an action's position in the schema.
|
|
47
|
+
* @param lineItemId The identifier for the specific line item being processed.
|
|
48
|
+
* @param customActionDefinitionName The name of the definition for the custom action being added.
|
|
49
|
+
* @param scopedCustomActionDefinitionKey The key for the scoped definition specific to the custom action.
|
|
50
|
+
*/
|
|
51
|
+
function configureAdditionalPropertiesForCustomActionsAndMenus(appSchema, actionsSchemaKey, actionsPositionDefinitionKey, lineItemId, customActionDefinitionName, scopedCustomActionDefinitionKey) {
|
|
52
|
+
const customActionMenuDefinitionKey = actionToMenuDefinitionMap.get(customActionDefinitionName);
|
|
53
|
+
const actionsSchema = appSchema.definitions[actionsSchemaKey];
|
|
54
|
+
if (!actionsSchema || !customActionMenuDefinitionKey) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
// Update actions position for each action - we need this for the action menu
|
|
58
|
+
updateActionsPosition(appSchema, actionsSchema, actionsPositionDefinitionKey);
|
|
59
|
+
// Create the specific action menu definition in the schema based on the generic action menu definition
|
|
60
|
+
createCustomMenuDefinition(appSchema, lineItemId, actionsPositionDefinitionKey, customActionMenuDefinitionKey);
|
|
61
|
+
const scopedCustomMenuDefinitionKey = (0, common_1.getFacetDefinitionKey)(customActionMenuDefinitionKey, lineItemId);
|
|
62
|
+
actionsSchema.additionalProperties = buildAdditionalPropertiesSchemaForCustomActionsAndMenus(customActionDefinitionName, scopedCustomActionDefinitionKey, scopedCustomMenuDefinitionKey);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Configures the custom action definition within the provided schema by adjusting relevant parameters and adding necessary definitions and enumerations.
|
|
66
|
+
*
|
|
67
|
+
* @param schemaAdjustmentParameters An object containing parameters required to adjust the schema for the custom action definition.
|
|
68
|
+
* Includes the application schema, page information, generation parameters, section definition properties, and custom action details.
|
|
69
|
+
*/
|
|
70
|
+
function configureCustomActionDefinition(schemaAdjustmentParameters) {
|
|
71
|
+
const { appSchema, v4Page, sectionActionsDefinitionKey, scopedCustomActionDefinitionKey, sectionIdInManifest, customActionPosition, facetDefinitionKey, customActionDefinitionName, logger } = schemaAdjustmentParameters;
|
|
72
|
+
(0, utils_1.addCustomActionDefinition)(appSchema, v4Page, logger, scopedCustomActionDefinitionKey, sectionActionsDefinitionKey, sectionIdInManifest);
|
|
73
|
+
(0, utils_1.addEnumForActionAnchor)(appSchema, sectionActionsDefinitionKey, customActionPosition ?? ux_specification_types_1.DefinitionName.CustomActionPosition);
|
|
74
|
+
configureAdditionalPropertiesForCustomActionsAndMenus(appSchema, sectionActionsDefinitionKey, customActionPosition ?? ux_specification_types_1.DefinitionName.CustomActionPosition, facetDefinitionKey, customActionDefinitionName, scopedCustomActionDefinitionKey);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Updates the position references of actions within a schema by linking them to a specified position identifier.
|
|
78
|
+
*
|
|
79
|
+
* @param {Definition} appSchema - The main application schema containing all definitions.
|
|
80
|
+
* @param {Definition} schemaForActions - A schema that defines the actions to be updated.
|
|
81
|
+
* @param {string} positionId - The identifier of the position to which the actions should be linked.
|
|
82
|
+
*/
|
|
83
|
+
function updateActionsPosition(appSchema, schemaForActions, positionId) {
|
|
84
|
+
const { properties } = schemaForActions;
|
|
85
|
+
for (const property in properties) {
|
|
86
|
+
const { $ref } = properties[property];
|
|
87
|
+
if ($ref) {
|
|
88
|
+
const definitionKey = (0, common_1.getDefinitionKey)($ref);
|
|
89
|
+
const definition = appSchema.definitions[definitionKey];
|
|
90
|
+
if (definition?.properties?.position) {
|
|
91
|
+
definition.properties.position.$ref = (0, common_1.getDefinitionsRef)(positionId);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Creates a custom actions menu definition in the given application schema using the provided parameters.
|
|
98
|
+
*
|
|
99
|
+
* @param {Definition} appSchema - The application schema object where the custom menu definition will be created.
|
|
100
|
+
* @param {string} lineItemId - The identifier for the line item associated with the custom menu definition.
|
|
101
|
+
* @param {string} positionId - The identifier for the position to be set in the custom menu definition.
|
|
102
|
+
* @param {DefinitionName} customActionMenuDefinitionKey - The key for the generic action menu definition used as a base for customization.
|
|
103
|
+
*/
|
|
104
|
+
function createCustomMenuDefinition(appSchema, lineItemId, positionId, customActionMenuDefinitionKey) {
|
|
105
|
+
// Create the specific action menu definition in the schema based on the generic action menu definition
|
|
106
|
+
const customActionMenuDefinition = (0, common_1.parseSchemaDefinition)(customActionMenuDefinitionKey, lineItemId, appSchema);
|
|
107
|
+
const customActionMenuActionsDefinitionKey = (0, common_1.getDefinitionKey)(customActionMenuDefinition?.properties[ux_specification_types_1.PropertyName.actions]?.$ref);
|
|
108
|
+
(0, common_1.parseSchemaDefinition)(customActionMenuActionsDefinitionKey, lineItemId, appSchema);
|
|
109
|
+
customActionMenuDefinition.properties.position.$ref = (0, common_1.getDefinitionsRef)(positionId);
|
|
110
|
+
customActionMenuDefinition.properties.actions.$ref = (0, common_1.getDefinitionsRef)(customActionMenuActionsDefinitionKey);
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../../../../src/sync/v4/generate/actions.ts"],"names":[],"mappings":";;AAyBA,0HAkBC;AAaD,sHAyBC;AAQD,0EAmCC;AA5HD,wEAA2E;AAE3E,yCAAiH;AAEjH,0CAAmF;AAEnF,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAiC;IACtE,CAAC,uCAAc,CAAC,oBAAoB,EAAE,uCAAc,CAAC,gCAAgC,CAAC;IACtF,CAAC,uCAAc,CAAC,kBAAkB,EAAE,uCAAc,CAAC,0BAA0B,CAAC;IAC9E,CAAC,uCAAc,CAAC,mBAAmB,EAAE,uCAAc,CAAC,0BAA0B,CAAC;IAC/E,CAAC,uCAAc,CAAC,iBAAiB,EAAE,uCAAc,CAAC,gBAAgB,CAAC;IACnE,CAAC,uCAAc,CAAC,gBAAgB,EAAE,uCAAc,CAAC,oBAAoB,CAAC;CACzE,CAAC,CAAC;AAEH;;;;;;;;;;GAUG;AACH,SAAgB,uDAAuD,CACnE,aAA6B,EAC7B,yBAAkC,EAClC,uBAAgC;IAEhC,MAAM,eAAe,GAAe;QAChC,IAAI,EAAE,IAAA,0BAAiB,EAAC,yBAAyB,IAAI,aAAa,CAAC;KACtE,CAAC;IACF,0GAA0G;IAC1G,MAAM,iBAAiB,GAAG,yBAAyB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAEvE,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACrB,OAAO,eAAe,CAAC;IAC3B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,CAAC,QAAuB,CAAC,IAAI,GAAG,IAAA,0BAAiB,EAAC,UAAU,CAAC,CAAC;IACnG,0BAA0B,CAAC,UAAU,CAAC,OAAsB,CAAC,IAAI,GAAG,IAAA,0BAAiB,EAClF,oCAAoC,CACvC,CAAC;AACN,CAAC"}
|
|
@@ -9,9 +9,9 @@ export interface HandlerParams {
|
|
|
9
9
|
rootSchema: SchemaDefinition;
|
|
10
10
|
connectionContext: PageConnection;
|
|
11
11
|
}
|
|
12
|
-
type
|
|
13
|
-
export declare const
|
|
14
|
-
[key: string]:
|
|
12
|
+
type MacrosHandler = (params: HandlerParams) => void;
|
|
13
|
+
export declare const macrosHandlers: {
|
|
14
|
+
[key: string]: MacrosHandler;
|
|
15
15
|
};
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=annotations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v4/generate/fpm-custom-page/annotations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,iBAAiB,EAKpB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAOlD,MAAM,WAAW,aAAa;IAC1B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,IAAI,EAAE,UAAU,CAAC;IAEjB,MAAM,EAAE,gBAAgB,CAAC;IAEzB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,iBAAiB,EAAE,cAAc,CAAC;CACrC;AAcD,KAAK,
|
|
1
|
+
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v4/generate/fpm-custom-page/annotations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,iBAAiB,EAKpB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAOlD,MAAM,WAAW,aAAa;IAC1B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,IAAI,EAAE,UAAU,CAAC;IAEjB,MAAM,EAAE,gBAAgB,CAAC;IAEzB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,iBAAiB,EAAE,cAAc,CAAC;CACrC;AAcD,KAAK,aAAa,GAAG,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;AAoJrD,eAAO,MAAM,cAAc,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;CAmE1D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.macrosHandlers = void 0;
|
|
4
4
|
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
5
5
|
const listReport_1 = require("../listReport");
|
|
6
6
|
const common_1 = require("../../../common");
|
|
@@ -138,7 +138,7 @@ function getTableLineItemAnnotationData(entityTypeResolution, serviceAVT, alias)
|
|
|
138
138
|
return undefined;
|
|
139
139
|
}
|
|
140
140
|
// Handlers map for macros controls
|
|
141
|
-
exports.
|
|
141
|
+
exports.macrosHandlers = {
|
|
142
142
|
'sap.fe.macros.Chart': (params) => {
|
|
143
143
|
const entityTypeResolution = getEntityTypeResolution(params);
|
|
144
144
|
applyAnnotationPath(params.schema, entityTypeResolution);
|
|
@@ -188,6 +188,14 @@ exports.annotationMacrosHandlers = {
|
|
|
188
188
|
(0, utils_2.appendLineItemsToSchema)(dataForLineItem, actionDefinition, schema.annotationPath, colDefinition);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
+
},
|
|
192
|
+
'sap.fe.macros.richtexteditor.ButtonGroup': (params) => {
|
|
193
|
+
const { node, schema } = params;
|
|
194
|
+
const customToolBarPriority = (0, utils_1.getAttribute)(node, 'customToolbarPriority');
|
|
195
|
+
if (customToolBarPriority !== undefined) {
|
|
196
|
+
// Set propertyIndex for UI ordering based on customToolbarPriority attribute
|
|
197
|
+
schema.propertyIndex = Number(customToolBarPriority);
|
|
198
|
+
}
|
|
191
199
|
}
|
|
192
200
|
};
|
|
193
201
|
//# sourceMappingURL=annotations.js.map
|