@sap/ux-specification 1.124.34 → 1.124.36
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 +356 -275
- 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 +275 -267
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/AnalyticalListPageConfig.json +3 -3
- package/dist/schemas/v2/ListReportConfig.json +5 -5
- package/dist/schemas/v2/ListReportNewConfig.json +1 -1
- package/dist/schemas/v2/ObjectPageConfig.json +5 -5
- package/dist/schemas/v4/ApplicationV4.json +1 -1
- package/dist/schemas/v4/BuildingBlocksConfig.json +46 -4
- package/dist/schemas/v4/ListReportConfig.json +24 -6
- package/dist/schemas/v4/ObjectPageConfig.json +32 -8
- package/dist/specification/package.json +15 -13
- 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 +40 -0
- package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
- package/dist/specification/scripts/macros/corrections.js +114 -7
- 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 +14 -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/src/api.js +1 -1
- package/dist/specification/src/i18n/i18n.d.ts.map +1 -1
- package/dist/specification/src/i18n/i18n.js +2 -1
- package/dist/specification/src/i18n/i18n.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts +501 -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 +116 -24
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.js +308 -78
- 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/utils.d.ts +2 -1
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +5 -1
- package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/common/i18n.json +2 -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/generate/analyticalListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js +9 -7
- 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 +3 -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 +58 -2
- 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/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 +31 -2
- package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/application.js +42 -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 +21 -8
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js +38 -41
- 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 +4 -3
- 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/generate/fpm-custom-page/annotations.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js +20 -12
- 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/generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +16 -1
- 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 +336 -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} +21 -14
- 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} +120 -226
- 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 +135 -43
- 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/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 +219 -96
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +557 -211
- 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 +9 -1
- 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 +400 -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 +2 -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 +119 -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 +1 -1
- package/dist/types/src/v2/controls/Table.d.ts +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/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 -374
- 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,73 @@
|
|
|
1
|
+
import type { Manifest } from '../../../..';
|
|
2
|
+
import type { GeneralSettings } from '../../sync-rules';
|
|
3
|
+
import { BaseConstruct } from '../../sync-rules';
|
|
4
|
+
import type { Definition } from 'typescript-json-schema';
|
|
5
|
+
/**
|
|
6
|
+
* Add general settings to schema (LR or ALP).
|
|
7
|
+
*
|
|
8
|
+
* - Adds Selection-(PresentationVariant) related enums to the schema.
|
|
9
|
+
*/
|
|
10
|
+
export declare class GeneralListReportSettings extends BaseConstruct {
|
|
11
|
+
/**
|
|
12
|
+
* Constructor for general settings of ListReport.
|
|
13
|
+
*
|
|
14
|
+
* @param settings - general settings (App, Page, AppSchema, Logger)
|
|
15
|
+
*/
|
|
16
|
+
constructor(settings: GeneralSettings);
|
|
17
|
+
init(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Adds Selection-(PresentationVariant) related enums to the schema.
|
|
20
|
+
*
|
|
21
|
+
* @param definitionName - definition name
|
|
22
|
+
*/
|
|
23
|
+
private addSPVEnums;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Add filter bar to schema (LR or ALP).
|
|
27
|
+
*/
|
|
28
|
+
export declare class FilterBar extends BaseConstruct {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param settings - general settings (App, Page, AppSchema, Logger)
|
|
32
|
+
*/
|
|
33
|
+
constructor(settings: GeneralSettings);
|
|
34
|
+
/**
|
|
35
|
+
* Initializes the filter bar adjustments.
|
|
36
|
+
*/
|
|
37
|
+
init(): void;
|
|
38
|
+
private addVisualFilters;
|
|
39
|
+
private addSelectionFields;
|
|
40
|
+
/**
|
|
41
|
+
* Adds filter bar to schema (LR or ALP).
|
|
42
|
+
*
|
|
43
|
+
* @param entityType - the entity type
|
|
44
|
+
* @param schema - the application schema
|
|
45
|
+
* @param v4Page - the actual page in the manifest
|
|
46
|
+
* @param alias - alias definition for the UI vocabulary
|
|
47
|
+
*/
|
|
48
|
+
private addFilterBar;
|
|
49
|
+
}
|
|
50
|
+
export declare class TableAndViews extends BaseConstruct {
|
|
51
|
+
/**
|
|
52
|
+
* Initializes the addition of table and views to the schema.
|
|
53
|
+
*/
|
|
54
|
+
init(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Adds table and views to the schema.
|
|
57
|
+
*/
|
|
58
|
+
private addTableAndViews;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Enhances the List Report schema with manifest paths for definition and properties.
|
|
62
|
+
*
|
|
63
|
+
* This function extends the app schema (`appSchema`) by adding manifestPath to definition and properties on the List Report.
|
|
64
|
+
*
|
|
65
|
+
* @param {Definition} appSchema - The application schema object representing the List Report structure.
|
|
66
|
+
* @param {string} pageId - Identifier of the page.
|
|
67
|
+
* @param {string} definitionName - Identifier of the corresponding definition.
|
|
68
|
+
* @param {Manifest} manifest - The application manifest.
|
|
69
|
+
* @param {string} targetAnnotation - Target annotation.
|
|
70
|
+
* @param {string} entitySet - Entity set.
|
|
71
|
+
*/
|
|
72
|
+
export declare function addManifestPathsToDefinitionPropertiesLR(appSchema: Definition, pageId: string, definitionName: string, manifest: Manifest, targetAnnotation?: string, entitySet?: string): void;
|
|
73
|
+
//# sourceMappingURL=ListReportUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListReportUtils.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v4/generate/list-report/ListReportUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA+B,QAAQ,EAAM,MAAM,aAAa,CAAC;AAuB7E,OAAO,KAAK,EAAE,eAAe,EAAwB,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;;;GAIG;AACH,qBAAa,yBAA0B,SAAQ,aAAa;IACxD;;;;OAIG;gBACS,QAAQ,EAAE,eAAe;IAIrC,IAAI;IAIJ;;;;OAIG;IACH,OAAO,CAAC,WAAW;CActB;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,aAAa;IACxC;;;OAGG;gBACS,QAAQ,EAAE,eAAe;IAIrC;;OAEG;IACH,IAAI;IAWJ,OAAO,CAAC,gBAAgB;IAGxB,OAAO,CAAC,kBAAkB;IAE1B;;;;;;;OAOG;IACH,OAAO,CAAC,YAAY;CAoCvB;AAqOD,qBAAa,aAAc,SAAQ,aAAa;IAC5C;;OAEG;IACH,IAAI;IAIJ;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAiC3B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wCAAwC,CACpD,SAAS,EAAE,UAAU,EACrB,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,CAAC,EAAE,MAAM,EACzB,SAAS,CAAC,EAAE,MAAM,GACnB,IAAI,CAoBN"}
|
|
@@ -0,0 +1,336 @@
|
|
|
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
|
+
// Use generic definition for unqualified LineItem, specific definition for qualified
|
|
182
|
+
const customActionDefinitionName = schemaIdForColumns === 'LineItemsOfSPV::LineItem'
|
|
183
|
+
? __1.DefinitionName.CustomTableAction
|
|
184
|
+
: `${__1.DefinitionName.CustomTableAction}<${schemaIdForColumns}>`;
|
|
185
|
+
(0, utils_1.addCustomActionDefinition)(appSchema.get(), page.target, app.logger, customActionDefinitionName, schemaIdForActions, sectionIdInManifest);
|
|
186
|
+
(0, utils_1.addEnumForActionAnchor)(appSchema.get(), schemaIdForActions, __1.DefinitionName.CustomActionPosition);
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
appSchema.setPropertyRef(tableDefinition, ['properties', 'toolBar'], `${__1.DefinitionName.ToolBarLR}`);
|
|
190
|
+
appSchema.setPropertyRef(tableDefinition, ['properties', 'columns'], `${__1.DefinitionName.LineItems}`);
|
|
191
|
+
// Switch from generic column to specific definition
|
|
192
|
+
const lineItemAnnotation = page.getUIAnnotations()?.LineItem;
|
|
193
|
+
if (!lineItemAnnotation && !page.target.options?.settings?.views?.paths) {
|
|
194
|
+
(0, __1.log)(app.logger, {
|
|
195
|
+
severity: "error" /* LogSeverity.Error */,
|
|
196
|
+
message: i18next_1.default.t('NOLINEITEMS')
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
const dataForLineItem = {
|
|
200
|
+
isObjectPage: false,
|
|
201
|
+
appSchema: appSchema.get(),
|
|
202
|
+
lineItemAnnotation,
|
|
203
|
+
entityType: page.entity.type,
|
|
204
|
+
oDataServiceAVT: app.getAVT(),
|
|
205
|
+
lineItemId: __1.DefinitionName.LineItems
|
|
206
|
+
};
|
|
207
|
+
(0, utils_1.addLineItemsTypeToSchema)(dataForLineItem);
|
|
208
|
+
(0, utils_1.addCustomColumnDefinition)(appSchema.get(), page.target, app.logger);
|
|
209
|
+
(0, utils_1.addFragmentEnumForAnchor)(appSchema.get(), __1.DefinitionName.LineItems, page.target);
|
|
210
|
+
if (lineItemAnnotation && !page.target.options?.settings?.views?.paths) {
|
|
211
|
+
tableDefinition[__1.SchemaTag.annotationPath] = (0, common_1.createAnnotationPath)(page.entity.type.fullyQualifiedName, lineItemAnnotation.term, lineItemAnnotation.qualifier);
|
|
212
|
+
}
|
|
213
|
+
// Table toolbar actions with custom actions
|
|
214
|
+
schemaIdForActions = `${__1.DefinitionName.Actions}<${__1.DefinitionName.LineItems}>`;
|
|
215
|
+
(0, utils_1.addCustomActionDefinition)(appSchema.get(), page.target, app.logger, undefined, schemaIdForActions);
|
|
216
|
+
(0, utils_1.addEnumForActionAnchor)(appSchema.get(), schemaIdForActions, __1.DefinitionName.CustomActionPosition);
|
|
217
|
+
}
|
|
218
|
+
// Add "manifestPath" for table properties
|
|
219
|
+
(0, listReport_1.addManifestPathsToPropertiesLR)(appSchema.get(), tableDefinitionName, tableDefinition, {
|
|
220
|
+
pageName: page.target.id,
|
|
221
|
+
manifest: app.getManifest(),
|
|
222
|
+
targetAnnotation
|
|
223
|
+
});
|
|
224
|
+
// Add "manifestPath" for table columns and actions
|
|
225
|
+
const customExtensionDefinitionNames = [schemaIdForColumns, schemaIdForActions];
|
|
226
|
+
customExtensionDefinitionNames.forEach((definitionName) => {
|
|
227
|
+
addManifestPathsToDefinitionPropertiesLR(appSchema.get(), page.target.id, definitionName, app.getManifest());
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Add list report views to the app-specific schema.
|
|
232
|
+
*
|
|
233
|
+
* @param settings - general settings (App, Page, AppSchema, Logger)
|
|
234
|
+
* @param tableDefinitionName - The name of the table definition in the schema
|
|
235
|
+
*/
|
|
236
|
+
function addLRViews(settings, tableDefinitionName) {
|
|
237
|
+
const { appSchema, app, page } = settings;
|
|
238
|
+
const viewsPaths = page.config.views.paths;
|
|
239
|
+
const tableDefinition = appSchema.getDefinition(tableDefinitionName);
|
|
240
|
+
tableDefinition.properties = {
|
|
241
|
+
annotationPath: tableDefinition.properties.annotationPath,
|
|
242
|
+
initialLoad: tableDefinition.properties.initialLoad,
|
|
243
|
+
views: tableDefinition.properties.views
|
|
244
|
+
};
|
|
245
|
+
const viewsDefinition = appSchema.getDefinition(__1.DefinitionName.MultiTableModeV4);
|
|
246
|
+
for (const view of viewsPaths) {
|
|
247
|
+
if (!view[__1.SchemaTag.key]) {
|
|
248
|
+
continue;
|
|
249
|
+
}
|
|
250
|
+
let navPropName = undefined;
|
|
251
|
+
const targetEntityType = getTargetEntityType(page.entity.set, view, page, app);
|
|
252
|
+
const uiAnnotations = targetEntityType?.annotations.UI;
|
|
253
|
+
const { visualization, targetAnnotation, namespace, title } = (0, listReport_1.analyzeViewAnnotation)(view?.[__1.SchemaTag.annotationPath], uiAnnotations, app.getAVT(), view[__1.SchemaTag.key], undefined, app.logger);
|
|
254
|
+
if (view['entitySet']) {
|
|
255
|
+
navPropName = page.entity.type.navigationProperties.find((np) => {
|
|
256
|
+
return np.targetTypeName === namespace;
|
|
257
|
+
})?.name;
|
|
258
|
+
}
|
|
259
|
+
const viewKey = (0, common_1.prepareRef)(view[__1.SchemaTag.key]);
|
|
260
|
+
const commonInputParameters = {
|
|
261
|
+
viewKey,
|
|
262
|
+
appSchema: appSchema.get(),
|
|
263
|
+
targetAnnotation,
|
|
264
|
+
navPropName,
|
|
265
|
+
targetEntityType,
|
|
266
|
+
title,
|
|
267
|
+
entitySet: view['entitySet']
|
|
268
|
+
};
|
|
269
|
+
(0, listReport_1.addLRViewParts)(visualization, viewsDefinition, commonInputParameters, { serviceAVT: app.getAVT(), entityType: targetEntityType, logger: app.logger }, page, app, uiAnnotations, view);
|
|
270
|
+
(0, listReport_1.addTagsToView)(viewsDefinition, viewKey, namespace, view);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
class TableAndViews extends sync_rules_1.BaseConstruct {
|
|
274
|
+
/**
|
|
275
|
+
* Initializes the addition of table and views to the schema.
|
|
276
|
+
*/
|
|
277
|
+
init() {
|
|
278
|
+
this.addTableAndViews();
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Adds table and views to the schema.
|
|
282
|
+
*/
|
|
283
|
+
addTableAndViews() {
|
|
284
|
+
const tableDefinitionName = (0, utils_1.alignSchemaWithTemplateType)(this.appSchema.get(), this.page.template.type);
|
|
285
|
+
const config = this.page.config;
|
|
286
|
+
if (this.page.template.type === __1.TemplateType.ListReportObjectPageV4) {
|
|
287
|
+
this.appSchema.hide(this.appSchema.getRootProperty([__1.PropertyName.chart]));
|
|
288
|
+
adaptTableDefinition(this.getSettings(), config.defaultAnnotation, tableDefinitionName);
|
|
289
|
+
if (!config.views) {
|
|
290
|
+
this.appSchema.setProperty(__1.DefinitionName.MultiTableModeV4, ['properties'], {});
|
|
291
|
+
}
|
|
292
|
+
else if (config.views.paths) {
|
|
293
|
+
this.appSchema.cleanup(['LineItems', 'ToolBar<LineItems>', 'Actions<LineItems>']);
|
|
294
|
+
addLRViews(this.getSettings(), tableDefinitionName);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
else if (config.isALP) {
|
|
298
|
+
const generateParameters = {
|
|
299
|
+
logger: this.logger,
|
|
300
|
+
entityType: this.page.getEntityType(),
|
|
301
|
+
serviceAVT: this.app.getAVT()
|
|
302
|
+
};
|
|
303
|
+
(0, listReport_1.addALPViews)(this.appSchema.get(), config.views?.paths, generateParameters, config.defaultAnnotation, this.page.target, tableDefinitionName);
|
|
304
|
+
(0, utils_1.addFragmentEnumForAnchor)(this.appSchema.get(), __1.DefinitionName.LineItems, this.page.target);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
exports.TableAndViews = TableAndViews;
|
|
309
|
+
/**
|
|
310
|
+
* Enhances the List Report schema with manifest paths for definition and properties.
|
|
311
|
+
*
|
|
312
|
+
* This function extends the app schema (`appSchema`) by adding manifestPath to definition and properties on the List Report.
|
|
313
|
+
*
|
|
314
|
+
* @param {Definition} appSchema - The application schema object representing the List Report structure.
|
|
315
|
+
* @param {string} pageId - Identifier of the page.
|
|
316
|
+
* @param {string} definitionName - Identifier of the corresponding definition.
|
|
317
|
+
* @param {Manifest} manifest - The application manifest.
|
|
318
|
+
* @param {string} targetAnnotation - Target annotation.
|
|
319
|
+
* @param {string} entitySet - Entity set.
|
|
320
|
+
*/
|
|
321
|
+
function addManifestPathsToDefinitionPropertiesLR(appSchema, pageId, definitionName, manifest, targetAnnotation, entitySet) {
|
|
322
|
+
const matchingDefinition = appSchema.definitions[definitionName];
|
|
323
|
+
for (const key in matchingDefinition?.properties ?? {}) {
|
|
324
|
+
const property = matchingDefinition.properties[key];
|
|
325
|
+
(0, listReport_1.addManifestPathsToPropertiesLR)(appSchema, undefined, property, {
|
|
326
|
+
pageName: pageId,
|
|
327
|
+
columnKey: key,
|
|
328
|
+
manifest,
|
|
329
|
+
targetAnnotation,
|
|
330
|
+
viewConfig: {
|
|
331
|
+
entitySet
|
|
332
|
+
}
|
|
333
|
+
}, true);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
//# 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":";;;;;;AAkbA,4FA2BC;AA5cD,mCAAqH;AAErH,uCAOqB;AAErB,0DAUmC;AAEnC,iDAAiD;AAGjD,4CAAmE;AACnE,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,EAAE,CAAC,YAAY,EAAE,aAAS,CAAC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,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,10 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Visualization } from '@sap/ux-specification-types';
|
|
2
2
|
import type { ExtensionLogger, v4, GenerateAppSchemaParameters } from '@sap/ux-specification-types';
|
|
3
3
|
import type { AnnotationTerm, EntityType, ConvertedMetadata } from '@sap-ux/vocabularies-types';
|
|
4
4
|
import type { SelectionFields } from '@sap-ux/vocabularies-types/vocabularies/UI';
|
|
5
|
-
import { type ManifestPathParams } from '
|
|
5
|
+
import { type ManifestPathParams } from '../../../common';
|
|
6
6
|
import type { Definition } from 'typescript-json-schema';
|
|
7
|
-
import {
|
|
7
|
+
import type { PageConfig, App } from '../../sync-rules';
|
|
8
|
+
import { Page } from '../../sync-rules';
|
|
9
|
+
/**
|
|
10
|
+
* Configuration interface for List Report pages.
|
|
11
|
+
* Extends the base PageConfig with List Report specific properties.
|
|
12
|
+
*/
|
|
13
|
+
export interface ListReportPageConfig extends PageConfig {
|
|
14
|
+
isALP?: boolean;
|
|
15
|
+
defaultAnnotation?: string;
|
|
16
|
+
views?: v4.SapUi5Views;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Type alias for a Page with ListReportPageConfig configuration.
|
|
20
|
+
*/
|
|
21
|
+
export type LRPage = Page<ListReportPageConfig>;
|
|
8
22
|
/**
|
|
9
23
|
* Adds the selection fields to the app schema, as properties of the FilterBar.
|
|
10
24
|
*
|
|
@@ -102,19 +116,11 @@ export declare function addTagsToView(viewsDefinition: Definition, viewKey: stri
|
|
|
102
116
|
* @param generateParameters.entityType - entity type of the current page
|
|
103
117
|
* @param generateParameters.logger - extension logger
|
|
104
118
|
* @param page - the current page object
|
|
119
|
+
* @param app - the application object containing manifest and other app-specific information.
|
|
105
120
|
* @param uiAnnotations - UI annotations of the given entityType
|
|
106
121
|
* @param view - the given view
|
|
107
122
|
*/
|
|
108
|
-
export declare function addLRViewParts(visualization: string, viewsDefinition: Definition, commonInputParameters: ViewsParameters, { serviceAVT, entityType, logger }: Partial<GenerateAppSchemaParameters>, page: Page, uiAnnotations: object, view: object): void;
|
|
109
|
-
/**
|
|
110
|
-
* Checks for the default annotation path to use for LR table.
|
|
111
|
-
*
|
|
112
|
-
* @param v4Page - actual page in the manifest
|
|
113
|
-
* @param entityType - actual entity type (AVT information)
|
|
114
|
-
* @param templateType - The type of template being used (e.g., ListReportObjectPageV4 or AnalyticalListPageV4)
|
|
115
|
-
* @returns annotation term
|
|
116
|
-
*/
|
|
117
|
-
export declare function getDefaultAnnotationPath(v4Page: v4.SapUiAppPageV4, entityType: EntityType, templateType: TemplateType): string | undefined;
|
|
123
|
+
export declare function addLRViewParts(visualization: string, viewsDefinition: Definition, commonInputParameters: ViewsParameters, { serviceAVT, entityType, logger }: Partial<GenerateAppSchemaParameters>, page: Page, app: App, uiAnnotations: object, view: object): void;
|
|
118
124
|
/**
|
|
119
125
|
* Adds header actions to schema (LR or ALP).
|
|
120
126
|
*
|
|
@@ -130,8 +136,9 @@ export declare function addHeaderActions(appSchema: Definition, v4Page: v4.SapUi
|
|
|
130
136
|
* @param definitionName - The name of the definition/class whose properties are being processed.
|
|
131
137
|
* @param definition - The definition object containing property schemas.
|
|
132
138
|
* @param pathParams - Additional context required to compute manifest paths.
|
|
139
|
+
* @param handleRelative - A flag indicating whether to use relative paths for definition properties.
|
|
133
140
|
*/
|
|
134
|
-
export declare function addManifestPathsToPropertiesLR(appSchema: Definition, definitionName: string | undefined, definition: Definition, pathParams: ManifestPathParams): void;
|
|
141
|
+
export declare function addManifestPathsToPropertiesLR(appSchema: Definition, definitionName: string | undefined, definition: Definition, pathParams: ManifestPathParams, handleRelative?: boolean): void;
|
|
135
142
|
/**
|
|
136
143
|
* Generates an app specific schema for the FE V4 ListReport from the generic schema.
|
|
137
144
|
* 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":"AAWA,OAAO,EAIH,aAAa,EAUhB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,2BAA2B,EAAY,MAAM,6BAA6B,CAAC;AAC9G,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAChG,OAAO,KAAK,EAAoC,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAIpH,OAAO,EAgBH,KAAK,kBAAkB,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAmB,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAwB,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAmB9D;;;GAGG;AACH,MAAM,WAAW,oBAAqB,SAAQ,UAAU;IACpD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC,oBAAoB,CAAC,CAAC;AAEhD;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAC9B,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,UAAU,EACrB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