@sap/ux-specification 1.90.19 → 1.96.4
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 +17 -352
- package/README.md +1 -0
- package/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
- package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
- package/dist/documentation/v2/v2-ListReport.html +1 -1
- package/dist/documentation/v2/v2-ObjectPage.html +1 -1
- package/dist/documentation/v2/v2-OverviewPage.html +1 -1
- package/dist/documentation/v4/v4-AnalyticalListPage.html +1 -1
- package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
- package/dist/documentation/v4/v4-ListReport.html +1 -1
- package/dist/documentation/v4/v4-ObjectPage.html +1 -1
- package/dist/index-min.js +1 -1
- package/dist/schemas/v2/ApplicationV2.json +31 -0
- package/dist/schemas/v4/AnalyticalListPageConfig.json +89 -0
- package/dist/schemas/v4/ListReportConfig.json +89 -0
- package/dist/schemas/v4/ObjectPageConfig.json +87 -0
- package/dist/specification/v2/index-min.js +1 -1
- package/dist/src/api.d.ts +9 -1
- package/dist/src/apiTypes.d.ts +16 -0
- package/dist/src/specification/v2/ApplicationV2.d.ts +21 -0
- package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +18 -2
- package/dist/src/specification/v4/controls/Table.d.ts +2 -2
- package/dist/src/sync/common/generate/utils.d.ts +3 -1
- package/dist/src/sync/v2/application.d.ts +3 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +14 -1
- package/dist/src/sync/v4/export/controls/TableColumn.d.ts +14 -1
- package/dist/src/sync/v4/export/exportCustomColumn.d.ts +13 -0
- package/dist/src/sync/v4/utils/utils.d.ts +20 -2
- package/package.json +19 -13
- package/dist/scripts/extractDocu.js +0 -488
- package/dist/scripts/extractDocu.js.map +0 -1
- package/dist/scripts/runDocu.js +0 -577
- package/dist/scripts/runDocu.js.map +0 -1
- package/dist/scripts/spec.js +0 -114
- package/dist/scripts/spec.js.map +0 -1
- package/dist/scripts/to-json-schema.js +0 -124
- package/dist/scripts/to-json-schema.js.map +0 -1
- package/dist/src/api.js +0 -167
- package/dist/src/api.js.map +0 -1
- package/dist/src/apiTypes.js +0 -5
- package/dist/src/apiTypes.js.map +0 -1
- package/dist/src/extensionLogger.js +0 -39
- package/dist/src/extensionLogger.js.map +0 -1
- package/dist/src/i18n/i18n.js +0 -25
- package/dist/src/i18n/i18n.js.map +0 -1
- package/dist/src/index.js +0 -12
- package/dist/src/index.js.map +0 -1
- package/dist/src/project.js +0 -143
- package/dist/src/project.js.map +0 -1
- package/dist/src/specification/common/Application.js +0 -3
- package/dist/src/specification/common/Application.js.map +0 -1
- package/dist/src/specification/common/i18n.json +0 -1
- package/dist/src/specification/common/index.js +0 -10
- package/dist/src/specification/common/index.js.map +0 -1
- package/dist/src/specification/common/page.js +0 -33
- package/dist/src/specification/common/page.js.map +0 -1
- package/dist/src/specification/common/types.js +0 -20
- package/dist/src/specification/common/types.js.map +0 -1
- package/dist/src/specification/common/webapp/manifest/Manifest.js +0 -17
- package/dist/src/specification/common/webapp/manifest/Manifest.js.map +0 -1
- package/dist/src/specification/common/webapp/manifest/index.js +0 -8
- package/dist/src/specification/common/webapp/manifest/index.js.map +0 -1
- package/dist/src/specification/common/webapp/manifest/sapOvp.js +0 -9
- package/dist/src/specification/common/webapp/manifest/sapOvp.js.map +0 -1
- package/dist/src/specification/common/webapp/manifest/sapUi5.js +0 -14
- package/dist/src/specification/common/webapp/manifest/sapUi5.js.map +0 -1
- package/dist/src/specification/schemaAccess.js +0 -63
- package/dist/src/specification/schemaAccess.js.map +0 -1
- package/dist/src/specification/v2/ApplicationV2.js +0 -9
- package/dist/src/specification/v2/ApplicationV2.js.map +0 -1
- package/dist/src/specification/v2/controls/Action.js +0 -3
- package/dist/src/specification/v2/controls/Action.js.map +0 -1
- package/dist/src/specification/v2/controls/AnalyticalListPageChart.js +0 -36
- package/dist/src/specification/v2/controls/AnalyticalListPageChart.js.map +0 -1
- package/dist/src/specification/v2/controls/AnalyticalListPageKPI.js +0 -3
- package/dist/src/specification/v2/controls/AnalyticalListPageKPI.js.map +0 -1
- package/dist/src/specification/v2/controls/Card.js +0 -72
- package/dist/src/specification/v2/controls/Card.js.map +0 -1
- package/dist/src/specification/v2/controls/Facets.js +0 -3
- package/dist/src/specification/v2/controls/Facets.js.map +0 -1
- package/dist/src/specification/v2/controls/Field.js +0 -3
- package/dist/src/specification/v2/controls/Field.js.map +0 -1
- package/dist/src/specification/v2/controls/FilterBar.js +0 -78
- package/dist/src/specification/v2/controls/FilterBar.js.map +0 -1
- package/dist/src/specification/v2/controls/Footer.js +0 -3
- package/dist/src/specification/v2/controls/Footer.js.map +0 -1
- package/dist/src/specification/v2/controls/ObjectPageChart.js +0 -3
- package/dist/src/specification/v2/controls/ObjectPageChart.js.map +0 -1
- package/dist/src/specification/v2/controls/ObjectPageForm.js +0 -3
- package/dist/src/specification/v2/controls/ObjectPageForm.js.map +0 -1
- package/dist/src/specification/v2/controls/ObjectPageHeader.js +0 -3
- package/dist/src/specification/v2/controls/ObjectPageHeader.js.map +0 -1
- package/dist/src/specification/v2/controls/ObjectPageLayout.js +0 -3
- package/dist/src/specification/v2/controls/ObjectPageLayout.js.map +0 -1
- package/dist/src/specification/v2/controls/ObjectPageSection.js +0 -13
- package/dist/src/specification/v2/controls/ObjectPageSection.js.map +0 -1
- package/dist/src/specification/v2/controls/ObjectPageTable.js +0 -7
- package/dist/src/specification/v2/controls/ObjectPageTable.js.map +0 -1
- package/dist/src/specification/v2/controls/ObjectPageToolBar.js +0 -3
- package/dist/src/specification/v2/controls/ObjectPageToolBar.js.map +0 -1
- package/dist/src/specification/v2/controls/Table.js +0 -42
- package/dist/src/specification/v2/controls/Table.js.map +0 -1
- package/dist/src/specification/v2/controls/ToolBar.js +0 -3
- package/dist/src/specification/v2/controls/ToolBar.js.map +0 -1
- package/dist/src/specification/v2/controls/index.js +0 -12
- package/dist/src/specification/v2/controls/index.js.map +0 -1
- package/dist/src/specification/v2/index.js +0 -10
- package/dist/src/specification/v2/index.js.map +0 -1
- package/dist/src/specification/v2/page.js +0 -3
- package/dist/src/specification/v2/page.js.map +0 -1
- package/dist/src/specification/v2/pages/AnalyticalListPageConfig.js +0 -3
- package/dist/src/specification/v2/pages/AnalyticalListPageConfig.js.map +0 -1
- package/dist/src/specification/v2/pages/ListReportConfig.js +0 -3
- package/dist/src/specification/v2/pages/ListReportConfig.js.map +0 -1
- package/dist/src/specification/v2/pages/ObjectPageConfig.js +0 -3
- package/dist/src/specification/v2/pages/ObjectPageConfig.js.map +0 -1
- package/dist/src/specification/v2/pages/OverviewPageConfig.js +0 -8
- package/dist/src/specification/v2/pages/OverviewPageConfig.js.map +0 -1
- package/dist/src/specification/v2/pages/index.js +0 -7
- package/dist/src/specification/v2/pages/index.js.map +0 -1
- package/dist/src/specification/v2/webapp/index.js +0 -7
- package/dist/src/specification/v2/webapp/index.js.map +0 -1
- package/dist/src/specification/v2/webapp/manifest/index.js +0 -8
- package/dist/src/specification/v2/webapp/manifest/index.js.map +0 -1
- package/dist/src/specification/v2/webapp/manifest/sapUi.js +0 -3
- package/dist/src/specification/v2/webapp/manifest/sapUi.js.map +0 -1
- package/dist/src/specification/v2/webapp/manifest/sapUi5.js +0 -10
- package/dist/src/specification/v2/webapp/manifest/sapUi5.js.map +0 -1
- package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.js +0 -7
- package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.js.map +0 -1
- package/dist/src/specification/v4/ApplicationV4.js +0 -3
- package/dist/src/specification/v4/ApplicationV4.js.map +0 -1
- package/dist/src/specification/v4/controls/FilterBar.js +0 -3
- package/dist/src/specification/v4/controls/FilterBar.js.map +0 -1
- package/dist/src/specification/v4/controls/ObjectPageFooter.js +0 -3
- package/dist/src/specification/v4/controls/ObjectPageFooter.js.map +0 -1
- package/dist/src/specification/v4/controls/ObjectPageHeader.js +0 -3
- package/dist/src/specification/v4/controls/ObjectPageHeader.js.map +0 -1
- package/dist/src/specification/v4/controls/ObjectPageHeaderSection.js +0 -7
- package/dist/src/specification/v4/controls/ObjectPageHeaderSection.js.map +0 -1
- package/dist/src/specification/v4/controls/ObjectPageLayout.js +0 -8
- package/dist/src/specification/v4/controls/ObjectPageLayout.js.map +0 -1
- package/dist/src/specification/v4/controls/ObjectPageSection.js +0 -12
- package/dist/src/specification/v4/controls/ObjectPageSection.js.map +0 -1
- package/dist/src/specification/v4/controls/ObjectPageTable.js +0 -3
- package/dist/src/specification/v4/controls/ObjectPageTable.js.map +0 -1
- package/dist/src/specification/v4/controls/ObjectPageToolBar.js +0 -3
- package/dist/src/specification/v4/controls/ObjectPageToolBar.js.map +0 -1
- package/dist/src/specification/v4/controls/Table.js +0 -30
- package/dist/src/specification/v4/controls/Table.js.map +0 -1
- package/dist/src/specification/v4/controls/ToolBar.js +0 -8
- package/dist/src/specification/v4/controls/ToolBar.js.map +0 -1
- package/dist/src/specification/v4/controls/index.js +0 -11
- package/dist/src/specification/v4/controls/index.js.map +0 -1
- package/dist/src/specification/v4/index.js +0 -9
- package/dist/src/specification/v4/index.js.map +0 -1
- package/dist/src/specification/v4/page.js +0 -3
- package/dist/src/specification/v4/page.js.map +0 -1
- package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js +0 -3
- package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js.map +0 -1
- package/dist/src/specification/v4/pages/ListReportConfig.js +0 -9
- package/dist/src/specification/v4/pages/ListReportConfig.js.map +0 -1
- package/dist/src/specification/v4/pages/ObjectPageConfig.js +0 -8
- package/dist/src/specification/v4/pages/ObjectPageConfig.js.map +0 -1
- package/dist/src/specification/v4/pages/index.js +0 -8
- package/dist/src/specification/v4/pages/index.js.map +0 -1
- package/dist/src/specification/v4/webapp/index.js +0 -7
- package/dist/src/specification/v4/webapp/index.js.map +0 -1
- package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js +0 -22
- package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js.map +0 -1
- package/dist/src/specification/v4/webapp/manifest/index.js +0 -10
- package/dist/src/specification/v4/webapp/manifest/index.js.map +0 -1
- package/dist/src/specification/v4/webapp/manifest/sapUi5.js +0 -11
- package/dist/src/specification/v4/webapp/manifest/sapUi5.js.map +0 -1
- package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js +0 -14
- package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js.map +0 -1
- package/dist/src/sync/common/appProvider.js +0 -57
- package/dist/src/sync/common/appProvider.js.map +0 -1
- package/dist/src/sync/common/decoration/control.js +0 -206
- package/dist/src/sync/common/decoration/control.js.map +0 -1
- package/dist/src/sync/common/decoration/decorators.js +0 -43
- package/dist/src/sync/common/decoration/decorators.js.map +0 -1
- package/dist/src/sync/common/decoration/factory.js +0 -48
- package/dist/src/sync/common/decoration/factory.js.map +0 -1
- package/dist/src/sync/common/decoration/flex.js +0 -8
- package/dist/src/sync/common/decoration/flex.js.map +0 -1
- package/dist/src/sync/common/decoration/index.js +0 -9
- package/dist/src/sync/common/decoration/index.js.map +0 -1
- package/dist/src/sync/common/flexUtils.js +0 -95
- package/dist/src/sync/common/flexUtils.js.map +0 -1
- package/dist/src/sync/common/generate/index.js +0 -8
- package/dist/src/sync/common/generate/index.js.map +0 -1
- package/dist/src/sync/common/generate/objectPage.js +0 -348
- package/dist/src/sync/common/generate/objectPage.js.map +0 -1
- package/dist/src/sync/common/generate/utils.js +0 -221
- package/dist/src/sync/common/generate/utils.js.map +0 -1
- package/dist/src/sync/common/i18n.json +0 -23
- package/dist/src/sync/common/import/utils.js +0 -86
- package/dist/src/sync/common/import/utils.js.map +0 -1
- package/dist/src/sync/common/importProject.js +0 -342
- package/dist/src/sync/common/importProject.js.map +0 -1
- package/dist/src/sync/common/index.js +0 -15
- package/dist/src/sync/common/index.js.map +0 -1
- package/dist/src/sync/common/types.js +0 -106
- package/dist/src/sync/common/types.js.map +0 -1
- package/dist/src/sync/common/utils.js +0 -1053
- package/dist/src/sync/common/utils.js.map +0 -1
- package/dist/src/sync/i18n.js +0 -15
- package/dist/src/sync/i18n.js.map +0 -1
- package/dist/src/sync/v2/application.js +0 -170
- package/dist/src/sync/v2/application.js.map +0 -1
- package/dist/src/sync/v2/export/controls/Action.js +0 -127
- package/dist/src/sync/v2/export/controls/Action.js.map +0 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js +0 -72
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +0 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.js +0 -56
- package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.js.map +0 -1
- package/dist/src/sync/v2/export/controls/Card.js +0 -655
- package/dist/src/sync/v2/export/controls/Card.js.map +0 -1
- package/dist/src/sync/v2/export/controls/Field.js +0 -32
- package/dist/src/sync/v2/export/controls/Field.js.map +0 -1
- package/dist/src/sync/v2/export/controls/FilterBar.js +0 -236
- package/dist/src/sync/v2/export/controls/FilterBar.js.map +0 -1
- package/dist/src/sync/v2/export/controls/FormAction.js +0 -96
- package/dist/src/sync/v2/export/controls/FormAction.js.map +0 -1
- package/dist/src/sync/v2/export/controls/Fragment.js +0 -476
- package/dist/src/sync/v2/export/controls/Fragment.js.map +0 -1
- package/dist/src/sync/v2/export/controls/ObjectPageChart.js +0 -37
- package/dist/src/sync/v2/export/controls/ObjectPageChart.js.map +0 -1
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js +0 -110
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js.map +0 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js +0 -62
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +0 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.js +0 -60
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.js.map +0 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js +0 -62
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +0 -1
- package/dist/src/sync/v2/export/controls/ObjectPageLayout.js +0 -59
- package/dist/src/sync/v2/export/controls/ObjectPageLayout.js.map +0 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +0 -144
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +0 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js +0 -335
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +0 -1
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js +0 -61
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js.map +0 -1
- package/dist/src/sync/v2/export/controls/Table.js +0 -679
- package/dist/src/sync/v2/export/controls/Table.js.map +0 -1
- package/dist/src/sync/v2/export/controls/TableColumn.js +0 -166
- package/dist/src/sync/v2/export/controls/TableColumn.js.map +0 -1
- package/dist/src/sync/v2/export/controls/ToolBar.js +0 -6
- package/dist/src/sync/v2/export/controls/ToolBar.js.map +0 -1
- package/dist/src/sync/v2/export/controls/index.js +0 -26
- package/dist/src/sync/v2/export/controls/index.js.map +0 -1
- package/dist/src/sync/v2/export/export.js +0 -615
- package/dist/src/sync/v2/export/export.js.map +0 -1
- package/dist/src/sync/v2/export/exportPage.js +0 -312
- package/dist/src/sync/v2/export/exportPage.js.map +0 -1
- package/dist/src/sync/v2/export/factory.js +0 -59
- package/dist/src/sync/v2/export/factory.js.map +0 -1
- package/dist/src/sync/v2/export/manifest.js +0 -114
- package/dist/src/sync/v2/export/manifest.js.map +0 -1
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.js +0 -44
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +0 -1
- package/dist/src/sync/v2/export/pages/ListReport.js +0 -41
- package/dist/src/sync/v2/export/pages/ListReport.js.map +0 -1
- package/dist/src/sync/v2/export/pages/ObjectPage.js +0 -100
- package/dist/src/sync/v2/export/pages/ObjectPage.js.map +0 -1
- package/dist/src/sync/v2/export/pages/OverviewPage.js +0 -178
- package/dist/src/sync/v2/export/pages/OverviewPage.js.map +0 -1
- package/dist/src/sync/v2/export/pages/index.js +0 -10
- package/dist/src/sync/v2/export/pages/index.js.map +0 -1
- package/dist/src/sync/v2/export/view-controller-generator.js +0 -141
- package/dist/src/sync/v2/export/view-controller-generator.js.map +0 -1
- package/dist/src/sync/v2/generate/analyticalListReport.js +0 -92
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +0 -1
- package/dist/src/sync/v2/generate/generate.js +0 -96
- package/dist/src/sync/v2/generate/generate.js.map +0 -1
- package/dist/src/sync/v2/generate/index.js +0 -14
- package/dist/src/sync/v2/generate/index.js.map +0 -1
- package/dist/src/sync/v2/generate/listReport.js +0 -118
- package/dist/src/sync/v2/generate/listReport.js.map +0 -1
- package/dist/src/sync/v2/generate/objectPage.js +0 -556
- package/dist/src/sync/v2/generate/objectPage.js.map +0 -1
- package/dist/src/sync/v2/generate/overviewPage.js +0 -73
- package/dist/src/sync/v2/generate/overviewPage.js.map +0 -1
- package/dist/src/sync/v2/generate/utils.js +0 -476
- package/dist/src/sync/v2/generate/utils.js.map +0 -1
- package/dist/src/sync/v2/import/app/appProvider.js +0 -122
- package/dist/src/sync/v2/import/app/appProvider.js.map +0 -1
- package/dist/src/sync/v2/import/app/ovpProvider.js +0 -33
- package/dist/src/sync/v2/import/app/ovpProvider.js.map +0 -1
- package/dist/src/sync/v2/import/common/index.js +0 -423
- package/dist/src/sync/v2/import/common/index.js.map +0 -1
- package/dist/src/sync/v2/import/controls/table.js +0 -32
- package/dist/src/sync/v2/import/controls/table.js.map +0 -1
- package/dist/src/sync/v2/import/getPageType.js +0 -1
- package/dist/src/sync/v2/import/getPageType.js.map +0 -1
- package/dist/src/sync/v2/import/index.js +0 -11
- package/dist/src/sync/v2/import/index.js.map +0 -1
- package/dist/src/sync/v2/import/pages/analyticalListPage.js +0 -126
- package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +0 -1
- package/dist/src/sync/v2/import/pages/listReport.js +0 -124
- package/dist/src/sync/v2/import/pages/listReport.js.map +0 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +0 -695
- package/dist/src/sync/v2/import/pages/objectPage.js.map +0 -1
- package/dist/src/sync/v2/import/pages/overviewPage.js +0 -113
- package/dist/src/sync/v2/import/pages/overviewPage.js.map +0 -1
- package/dist/src/sync/v2/import/utils.js +0 -124
- package/dist/src/sync/v2/import/utils.js.map +0 -1
- package/dist/src/sync/v2/types.js +0 -33
- package/dist/src/sync/v2/types.js.map +0 -1
- package/dist/src/sync/v4/application.js +0 -80
- package/dist/src/sync/v4/application.js.map +0 -1
- package/dist/src/sync/v4/export/controls/FilterBar.js +0 -6
- package/dist/src/sync/v4/export/controls/FilterBar.js.map +0 -1
- package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js +0 -136
- package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +0 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.js +0 -55
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.js.map +0 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js +0 -65
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js.map +0 -1
- package/dist/src/sync/v4/export/controls/ObjectPageLayout.js +0 -24
- package/dist/src/sync/v4/export/controls/ObjectPageLayout.js.map +0 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTable.js +0 -245
- package/dist/src/sync/v4/export/controls/ObjectPageTable.js.map +0 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js +0 -64
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +0 -1
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js +0 -21
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js.map +0 -1
- package/dist/src/sync/v4/export/controls/Table.js +0 -318
- package/dist/src/sync/v4/export/controls/Table.js.map +0 -1
- package/dist/src/sync/v4/export/controls/TableColumn.js +0 -64
- package/dist/src/sync/v4/export/controls/TableColumn.js.map +0 -1
- package/dist/src/sync/v4/export/controls/ToolBar.js +0 -9
- package/dist/src/sync/v4/export/controls/ToolBar.js.map +0 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.js +0 -21
- package/dist/src/sync/v4/export/controls/ToolBarAction.js.map +0 -1
- package/dist/src/sync/v4/export/controls/index.js +0 -18
- package/dist/src/sync/v4/export/controls/index.js.map +0 -1
- package/dist/src/sync/v4/export/export.js +0 -422
- package/dist/src/sync/v4/export/export.js.map +0 -1
- package/dist/src/sync/v4/export/factory.js +0 -44
- package/dist/src/sync/v4/export/factory.js.map +0 -1
- package/dist/src/sync/v4/export/flexibleColumnLayout.js +0 -114
- package/dist/src/sync/v4/export/flexibleColumnLayout.js.map +0 -1
- package/dist/src/sync/v4/export/manifest.js +0 -208
- package/dist/src/sync/v4/export/manifest.js.map +0 -1
- package/dist/src/sync/v4/export/pages/AnalyticalListPage.js +0 -38
- package/dist/src/sync/v4/export/pages/AnalyticalListPage.js.map +0 -1
- package/dist/src/sync/v4/export/pages/ListReport.js +0 -33
- package/dist/src/sync/v4/export/pages/ListReport.js.map +0 -1
- package/dist/src/sync/v4/export/pages/ObjectPage.js +0 -39
- package/dist/src/sync/v4/export/pages/ObjectPage.js.map +0 -1
- package/dist/src/sync/v4/export/pages/index.js +0 -9
- package/dist/src/sync/v4/export/pages/index.js.map +0 -1
- package/dist/src/sync/v4/export/types.js +0 -3
- package/dist/src/sync/v4/export/types.js.map +0 -1
- package/dist/src/sync/v4/export/utils.js +0 -26
- package/dist/src/sync/v4/export/utils.js.map +0 -1
- package/dist/src/sync/v4/generate/generate.js +0 -56
- package/dist/src/sync/v4/generate/generate.js.map +0 -1
- package/dist/src/sync/v4/generate/index.js +0 -10
- package/dist/src/sync/v4/generate/index.js.map +0 -1
- package/dist/src/sync/v4/generate/listReport.js +0 -121
- package/dist/src/sync/v4/generate/listReport.js.map +0 -1
- package/dist/src/sync/v4/generate/objectPage.js +0 -376
- package/dist/src/sync/v4/generate/objectPage.js.map +0 -1
- package/dist/src/sync/v4/import/app/appProvider.js +0 -313
- package/dist/src/sync/v4/import/app/appProvider.js.map +0 -1
- package/dist/src/sync/v4/import/fragment.js +0 -130
- package/dist/src/sync/v4/import/fragment.js.map +0 -1
- package/dist/src/sync/v4/import/index.js +0 -9
- package/dist/src/sync/v4/import/index.js.map +0 -1
- package/dist/src/sync/v4/import/pages/analyticalListPage.js +0 -60
- package/dist/src/sync/v4/import/pages/analyticalListPage.js.map +0 -1
- package/dist/src/sync/v4/import/pages/listReport.js +0 -135
- package/dist/src/sync/v4/import/pages/listReport.js.map +0 -1
- package/dist/src/sync/v4/import/pages/objectPage.js +0 -236
- package/dist/src/sync/v4/import/pages/objectPage.js.map +0 -1
- package/dist/src/sync/v4/import/utils.js +0 -34
- package/dist/src/sync/v4/import/utils.js.map +0 -1
- package/dist/src/sync/v4/types.js +0 -3
- package/dist/src/sync/v4/types.js.map +0 -1
- package/dist/src/sync/v4/utils/StableIdHelper.js +0 -153
- package/dist/src/sync/v4/utils/StableIdHelper.js.map +0 -1
- package/dist/src/sync/v4/utils/utils.js +0 -170
- package/dist/src/sync/v4/utils/utils.js.map +0 -1
- package/dist/src/v2.js +0 -8
- package/dist/src/v2.js.map +0 -1
- package/dist/src/v4.js +0 -8
- package/dist/src/v4.js.map +0 -1
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const StableIdHelper_1 = require("../../v4/utils/StableIdHelper");
|
|
4
|
-
const common_1 = require("../../../specification/common");
|
|
5
|
-
const __1 = require("..");
|
|
6
|
-
/**
|
|
7
|
-
* Adds a field definition to the app specific schema
|
|
8
|
-
* @param {string} sectionType - prefix to distinguish Section and HeaderSection
|
|
9
|
-
* @param {object} appSchema - App schema in general
|
|
10
|
-
* @param {DataFieldAbstractTypes} field - field definition in parser output (AVT)
|
|
11
|
-
* @param {string} targetID - unique ID, identifies the parent object (form)
|
|
12
|
-
* @param {string} key - current field key
|
|
13
|
-
* @param {SectionType} section - current section of the object page
|
|
14
|
-
*/
|
|
15
|
-
function addField(sectionType, appSchema, field, targetID, key, section, version, withActions = true) {
|
|
16
|
-
var _a, _b, _c, _d, _e;
|
|
17
|
-
const fieldReferenceId = StableIdHelper_1.getStableIdPartFromDataField(field);
|
|
18
|
-
const fieldReference = version === common_1.FioriElementsVersion.v2 && fieldReferenceId && fieldReferenceId.includes('::')
|
|
19
|
-
? fieldReferenceId
|
|
20
|
-
.split('::')
|
|
21
|
-
.splice(1)
|
|
22
|
-
.join('::')
|
|
23
|
-
: fieldReferenceId;
|
|
24
|
-
const fieldReferenceType = version === common_1.FioriElementsVersion.v2 && fieldReferenceId && fieldReferenceId.includes('::')
|
|
25
|
-
? fieldReferenceId.split('::')[0].replace('DataField', 'Field')
|
|
26
|
-
: undefined;
|
|
27
|
-
const fieldDefinition = version === common_1.FioriElementsVersion.v2
|
|
28
|
-
? `${fieldReferenceType}<${targetID}::${fieldReference}>`
|
|
29
|
-
: `${targetID}::${fieldReference}`;
|
|
30
|
-
const fieldsDefinition = __1.prepareRef(`${sectionType}Fields<${targetID}>`);
|
|
31
|
-
const actionsDefinition = __1.prepareRef(`${sectionType}Actions<${targetID}>`);
|
|
32
|
-
if (!field || !field.$Type) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
else if (field.$Type === "com.sap.vocabularies.UI.v1.DataFieldForAction" /* DataFieldForAction */ ||
|
|
36
|
-
field.$Type === "com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation" /* DataFieldForIntentBasedNavigation */) {
|
|
37
|
-
if (withActions && sectionType === __1.SectionType.Section) {
|
|
38
|
-
appSchema['definitions'][actionsDefinition]['properties'][fieldReference] = {
|
|
39
|
-
$ref: __1.DEFINITION_LINK_PREFIX + fieldDefinition,
|
|
40
|
-
propertyIndex: parseInt(key)
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
appSchema['definitions'][fieldsDefinition]['properties'][fieldReference] = {
|
|
46
|
-
$ref: __1.DEFINITION_LINK_PREFIX + fieldDefinition,
|
|
47
|
-
propertyIndex: parseInt(key)
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
appSchema['definitions'][fieldDefinition] = {
|
|
51
|
-
type: 'object',
|
|
52
|
-
isViewNode: true,
|
|
53
|
-
properties: {},
|
|
54
|
-
description: __1.getDatafieldDescription(field, section.entityType),
|
|
55
|
-
additionalProperties: false,
|
|
56
|
-
annotationType: field.$Type
|
|
57
|
-
};
|
|
58
|
-
if (version === common_1.FioriElementsVersion.v4 && appSchema['definitions']['Field']) {
|
|
59
|
-
switch (field.$Type) {
|
|
60
|
-
case "com.sap.vocabularies.UI.v1.DataField" /* DataField */:
|
|
61
|
-
case "com.sap.vocabularies.UI.v1.DataFieldForAnnotation" /* DataFieldForAnnotation */:
|
|
62
|
-
case "com.sap.vocabularies.UI.v1.DataFieldWithNavigationPath" /* DataFieldWithNavigationPath */:
|
|
63
|
-
case "com.sap.vocabularies.UI.v1.DataFieldWithUrl" /* DataFieldWithUrl */: {
|
|
64
|
-
appSchema['definitions'][fieldDefinition]['properties'] =
|
|
65
|
-
appSchema['definitions']['Field']['properties'];
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
else if (version === common_1.FioriElementsVersion.v2 && appSchema['definitions']['Field']) {
|
|
71
|
-
switch (field.$Type) {
|
|
72
|
-
case "com.sap.vocabularies.UI.v1.DataField" /* DataField */:
|
|
73
|
-
case "com.sap.vocabularies.UI.v1.DataFieldForAnnotation" /* DataFieldForAnnotation */:
|
|
74
|
-
case "com.sap.vocabularies.UI.v1.DataFieldWithUrl" /* DataFieldWithUrl */: {
|
|
75
|
-
appSchema['definitions'][fieldDefinition]['properties'] =
|
|
76
|
-
appSchema['definitions']['Field']['properties'];
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
if (field.$Type === "com.sap.vocabularies.UI.v1.DataFieldForAction" /* DataFieldForAction */ && ((_a = appSchema['definitions']) === null || _a === void 0 ? void 0 : _a['FormAction'])) {
|
|
82
|
-
appSchema['definitions'][fieldDefinition]['properties'] = appSchema['definitions']['FormAction']['properties'];
|
|
83
|
-
}
|
|
84
|
-
if ((_c = (_b = field['Value']) === null || _b === void 0 ? void 0 : _b.$target) === null || _c === void 0 ? void 0 : _c.type) {
|
|
85
|
-
appSchema['definitions'][fieldDefinition].dataType = (_e = (_d = field['Value']) === null || _d === void 0 ? void 0 : _d.$target) === null || _e === void 0 ? void 0 : _e.type.replace('Edm.', '');
|
|
86
|
-
}
|
|
87
|
-
appSchema['definitions'][fieldDefinition].annotationPath = `/${section.entityType.fullyQualifiedName}/${field.fullyQualifiedName.split(section.entityType.fullyQualifiedName)[1]}`;
|
|
88
|
-
}
|
|
89
|
-
function determineTargetIdOfForm(section) {
|
|
90
|
-
let targetID;
|
|
91
|
-
if (section.target && section.target['qualifier'] && section.entityType) {
|
|
92
|
-
targetID = `${section.entityType.name}::${section.base}::${section.target['qualifier']}`;
|
|
93
|
-
}
|
|
94
|
-
else if (section.entityType) {
|
|
95
|
-
targetID = `${section.entityType.name}::${section.base}`;
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
targetID = section.ID;
|
|
99
|
-
}
|
|
100
|
-
return targetID;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Adds definitions for forms in object page sections to the app schema
|
|
104
|
-
* @param {SectionType} sectionType - prefix to distinguish Section and HeaderSection
|
|
105
|
-
* @param {FacetConfig} section - facet or section in the FE core model
|
|
106
|
-
* @param {object} appSchemaSection - current definition of facet or section in the JSON schema
|
|
107
|
-
* @param {object} appSchema - app specific schema that gets enhanced
|
|
108
|
-
*/
|
|
109
|
-
function handleForm(sectionType, section, appSchemaSection, appSchema, version, withActions = true) {
|
|
110
|
-
var _a;
|
|
111
|
-
if (!section.target) {
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
const targetID = determineTargetIdOfForm(section);
|
|
115
|
-
const formDefinition = __1.prepareRef(`${sectionType}Form<${targetID}>`);
|
|
116
|
-
const fieldsDefinition = __1.prepareRef(`${sectionType}Fields<${targetID}>`);
|
|
117
|
-
const actionsDefinition = __1.prepareRef(`${sectionType}Actions<${targetID}>`);
|
|
118
|
-
// Form definition
|
|
119
|
-
appSchemaSection['properties']['form'] = { $ref: __1.DEFINITION_LINK_PREFIX + formDefinition };
|
|
120
|
-
if (sectionType === __1.SectionType.Section && withActions) {
|
|
121
|
-
appSchema['definitions'][formDefinition] = {
|
|
122
|
-
type: 'object',
|
|
123
|
-
properties: {
|
|
124
|
-
actions: {
|
|
125
|
-
$ref: __1.DEFINITION_LINK_PREFIX + actionsDefinition
|
|
126
|
-
},
|
|
127
|
-
fields: { $ref: __1.DEFINITION_LINK_PREFIX + fieldsDefinition }
|
|
128
|
-
},
|
|
129
|
-
isViewNode: true,
|
|
130
|
-
description: 'Form',
|
|
131
|
-
additionalProperties: false
|
|
132
|
-
};
|
|
133
|
-
appSchema['definitions'][actionsDefinition] = {
|
|
134
|
-
type: 'object',
|
|
135
|
-
properties: {},
|
|
136
|
-
isViewNode: true,
|
|
137
|
-
description: 'Actions',
|
|
138
|
-
additionalProperties: false
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
appSchema['definitions'][formDefinition] = {
|
|
143
|
-
type: 'object',
|
|
144
|
-
properties: {
|
|
145
|
-
fields: { $ref: __1.DEFINITION_LINK_PREFIX + fieldsDefinition }
|
|
146
|
-
},
|
|
147
|
-
isViewNode: true,
|
|
148
|
-
description: 'Form',
|
|
149
|
-
additionalProperties: false
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
if ((_a = section.entityType) === null || _a === void 0 ? void 0 : _a.name) {
|
|
153
|
-
appSchema['definitions'][formDefinition].annotationPath = __1.createAnnotationPath(section.entityType.fullyQualifiedName, section.target['term'], section.target['qualifier']);
|
|
154
|
-
}
|
|
155
|
-
// Fields definition
|
|
156
|
-
appSchema['definitions'][fieldsDefinition] = {
|
|
157
|
-
type: 'object',
|
|
158
|
-
properties: {},
|
|
159
|
-
isViewNode: true,
|
|
160
|
-
description: 'Fields',
|
|
161
|
-
additionalProperties: false
|
|
162
|
-
};
|
|
163
|
-
// Add fields
|
|
164
|
-
if (section.base === __1.FacetBase.Identification) {
|
|
165
|
-
for (const key in section.target) {
|
|
166
|
-
const field = section.target[key];
|
|
167
|
-
if (field) {
|
|
168
|
-
addField(sectionType, appSchema, field, targetID, key, section, version, withActions);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
for (const key in section.target['Data']) {
|
|
174
|
-
const field = section.target['Data'][key];
|
|
175
|
-
addField(sectionType, appSchema, field, targetID, key, section, version);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
exports.handleForm = handleForm;
|
|
180
|
-
/**
|
|
181
|
-
* Replaces an alias in an annotation ID or reference, based on the AVT references' list
|
|
182
|
-
* @param annotationIdentifier - annotation ID or reference
|
|
183
|
-
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
184
|
-
* @returns the converted string
|
|
185
|
-
*/
|
|
186
|
-
function replaceAlias(annotationIdentifier, oDataServiceAVT) {
|
|
187
|
-
const potentialAlias = annotationIdentifier.indexOf('.') > -1 ? annotationIdentifier.split('.')[0] : undefined;
|
|
188
|
-
let result = annotationIdentifier;
|
|
189
|
-
if (potentialAlias) {
|
|
190
|
-
const reference = oDataServiceAVT.references.find((ref) => {
|
|
191
|
-
return ref.alias === potentialAlias;
|
|
192
|
-
});
|
|
193
|
-
if (reference) {
|
|
194
|
-
result = annotationIdentifier.replace(potentialAlias, reference.namespace);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
return result;
|
|
198
|
-
}
|
|
199
|
-
exports.replaceAlias = replaceAlias;
|
|
200
|
-
/**
|
|
201
|
-
* Common routine to determine the name and the ID of a header action
|
|
202
|
-
* @param action - action as given by AVT
|
|
203
|
-
* @param entityType - entity type by AVT
|
|
204
|
-
* @returns an object comprising action name and action id
|
|
205
|
-
*/
|
|
206
|
-
function getActionNameAndId(action, entityType) {
|
|
207
|
-
let separatorIndex = action.lastIndexOf('/');
|
|
208
|
-
if (separatorIndex === -1) {
|
|
209
|
-
separatorIndex = action.lastIndexOf('.');
|
|
210
|
-
}
|
|
211
|
-
let actionName, actionId;
|
|
212
|
-
if (separatorIndex > -1) {
|
|
213
|
-
actionName = action.substr(separatorIndex + 1);
|
|
214
|
-
actionId = action.substr(0, separatorIndex) + '::' + actionName;
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
actionName = action;
|
|
218
|
-
const namespace = entityType.fullyQualifiedName.split(entityType.name)[0];
|
|
219
|
-
actionId = namespace.substr(0, namespace.length - 1) + '::' + actionName;
|
|
220
|
-
}
|
|
221
|
-
return { actionName, actionId };
|
|
222
|
-
}
|
|
223
|
-
exports.getActionNameAndId = getActionNameAndId;
|
|
224
|
-
/**
|
|
225
|
-
* Add Object Page Footer Action Buttons to app-specific schema
|
|
226
|
-
*
|
|
227
|
-
* @param {object} appSchema Schema of the app
|
|
228
|
-
* @param {EntityType} entityType - current entity type
|
|
229
|
-
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
230
|
-
*/
|
|
231
|
-
function addFooterActions(appSchema, entityType, oDataServiceAVT) {
|
|
232
|
-
appSchema['definitions']['ObjectPageFooter'] = JSON.parse(JSON.stringify(appSchema['definitions']['ObjectPageFooter<ObjectPageFooterActions>']));
|
|
233
|
-
// Change reference of footer
|
|
234
|
-
appSchema['properties']['footer'] = {
|
|
235
|
-
$ref: `${__1.DEFINITION_LINK_PREFIX}ObjectPageFooter`
|
|
236
|
-
};
|
|
237
|
-
// Add action to configuration
|
|
238
|
-
appSchema['definitions']['ObjectPageFooter'].properties['actions'] = {
|
|
239
|
-
$ref: `${__1.DEFINITION_LINK_PREFIX}FooterActions`
|
|
240
|
-
};
|
|
241
|
-
const footerActions = (appSchema['definitions']['FooterActions'] = {
|
|
242
|
-
type: 'object',
|
|
243
|
-
properties: {},
|
|
244
|
-
description: 'Actions',
|
|
245
|
-
additionalProperties: false,
|
|
246
|
-
isViewNode: true
|
|
247
|
-
});
|
|
248
|
-
const alias = __1.findAlias(__1.UIVOCABULARY, oDataServiceAVT);
|
|
249
|
-
const actionAnnotation = alias &&
|
|
250
|
-
entityType.annotations &&
|
|
251
|
-
entityType.annotations[alias] &&
|
|
252
|
-
entityType.annotations[alias].Identification;
|
|
253
|
-
if (actionAnnotation) {
|
|
254
|
-
const convertedIdentification = actionAnnotation.fullyQualifiedName.replace(`@${"com.sap.vocabularies.UI.v1.Identification" /* Identification */}`, `/@${"com.sap.vocabularies.UI.v1.Identification" /* Identification */}`);
|
|
255
|
-
footerActions['annotationPath'] = `/${convertedIdentification}`;
|
|
256
|
-
actionAnnotation.forEach((item, index) => {
|
|
257
|
-
if (item['Determining'] && item.$Type === "com.sap.vocabularies.UI.v1.DataFieldForAction" /* DataFieldForAction */) {
|
|
258
|
-
const { actionName, actionId } = getActionNameAndId(item.Action, entityType);
|
|
259
|
-
const description = item.Label || actionName;
|
|
260
|
-
const actionDefinitionKey = __1.prepareRef(`ObjectPageFooterAction<${actionId}>`);
|
|
261
|
-
if (appSchema['definitions']['ObjectPageFooterAction']) {
|
|
262
|
-
appSchema['definitions'][actionDefinitionKey] = Object.assign(Object.assign({}, JSON.parse(JSON.stringify(appSchema['definitions']['ObjectPageFooterAction']))), { description, annotationPath: `/${convertedIdentification}/${index}` });
|
|
263
|
-
}
|
|
264
|
-
else {
|
|
265
|
-
appSchema['definitions'][actionDefinitionKey] = {
|
|
266
|
-
isViewNode: true,
|
|
267
|
-
type: 'object',
|
|
268
|
-
properties: {},
|
|
269
|
-
description: description,
|
|
270
|
-
annotationPath: `/${convertedIdentification}/${index}`
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
footerActions.properties[actionId] = {
|
|
274
|
-
$ref: `${__1.DEFINITION_LINK_PREFIX}${actionDefinitionKey}`
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
else {
|
|
280
|
-
footerActions['annotationPath'] = `/${entityType.fullyQualifiedName}/@${"com.sap.vocabularies.UI.v1.Identification" /* Identification */}`;
|
|
281
|
-
}
|
|
282
|
-
delete appSchema['definitions']['ObjectPageFooterActions'];
|
|
283
|
-
delete appSchema['definitions']['ObjectPageFooter<ObjectPageFooterActions>'];
|
|
284
|
-
}
|
|
285
|
-
exports.addFooterActions = addFooterActions;
|
|
286
|
-
/**
|
|
287
|
-
* Add Object Page Header Action Buttons to app-specific schema
|
|
288
|
-
* @param {object} appSchema Schema of the app
|
|
289
|
-
* @param {EntityType} entityType - current entity type
|
|
290
|
-
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
291
|
-
*/
|
|
292
|
-
function addHeaderActions(appSchema, entityType, oDataServiceAVT,
|
|
293
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
294
|
-
addHeaderActionCallBack) {
|
|
295
|
-
appSchema['definitions']['ObjectPageHeader'].properties['actions'] = {
|
|
296
|
-
$ref: `${__1.DEFINITION_LINK_PREFIX}HeaderActions`
|
|
297
|
-
};
|
|
298
|
-
const headerActions = (appSchema['definitions']['HeaderActions'] = {
|
|
299
|
-
type: 'object',
|
|
300
|
-
properties: {},
|
|
301
|
-
description: 'Actions',
|
|
302
|
-
additionalProperties: false,
|
|
303
|
-
isViewNode: true
|
|
304
|
-
});
|
|
305
|
-
const alias = __1.findAlias(__1.UIVOCABULARY, oDataServiceAVT);
|
|
306
|
-
const identification = alias &&
|
|
307
|
-
entityType.annotations &&
|
|
308
|
-
entityType.annotations[alias] &&
|
|
309
|
-
entityType.annotations[alias].Identification;
|
|
310
|
-
if (identification) {
|
|
311
|
-
headerActions['annotationPath'] =
|
|
312
|
-
'/' +
|
|
313
|
-
identification.fullyQualifiedName.replace(`@${"com.sap.vocabularies.UI.v1.Identification" /* Identification */}`, `/@${"com.sap.vocabularies.UI.v1.Identification" /* Identification */}`);
|
|
314
|
-
identification.forEach(addHeaderActionCallBack(entityType, appSchema, identification, headerActions, oDataServiceAVT));
|
|
315
|
-
}
|
|
316
|
-
else {
|
|
317
|
-
headerActions['annotationPath'] = `/${entityType.fullyQualifiedName}/@${"com.sap.vocabularies.UI.v1.Identification" /* Identification */}`;
|
|
318
|
-
}
|
|
319
|
-
delete appSchema['definitions']['GenericActions'];
|
|
320
|
-
delete appSchema['definitions']['ObjectPageHeader<GenericActions>'];
|
|
321
|
-
}
|
|
322
|
-
exports.addHeaderActions = addHeaderActions;
|
|
323
|
-
/**
|
|
324
|
-
* Adds common Object Page Header definitions to the app schema
|
|
325
|
-
* @param appSchema - app-specific JSOn schema
|
|
326
|
-
* @param entityType - current entity Type
|
|
327
|
-
*/
|
|
328
|
-
function addCommonHeaderSchema(appSchema, entityType) {
|
|
329
|
-
appSchema['properties']['header'] = {
|
|
330
|
-
$ref: __1.DEFINITION_LINK_PREFIX + 'ObjectPageHeader'
|
|
331
|
-
};
|
|
332
|
-
appSchema['definitions']['ObjectPageHeader'] = JSON.parse(JSON.stringify(appSchema['definitions']['ObjectPageHeader<GenericActions>']));
|
|
333
|
-
appSchema['definitions']['ObjectPageHeader'].annotationPath = `/${entityType.fullyQualifiedName}/@${"com.sap.vocabularies.UI.v1.HeaderInfo" /* HeaderInfo */}`;
|
|
334
|
-
}
|
|
335
|
-
exports.addCommonHeaderSchema = addCommonHeaderSchema;
|
|
336
|
-
/**
|
|
337
|
-
* Common logic to determine the EntitySet of a facet
|
|
338
|
-
* @param facet - current facet or section
|
|
339
|
-
* @param serviceAVT - AVT converter output, comprising all annotation information
|
|
340
|
-
* @returns the entity set as defined in AVT, if found
|
|
341
|
-
*/
|
|
342
|
-
function determineEntitySetOfFacet(facet, serviceAVT) {
|
|
343
|
-
return facet.entityType
|
|
344
|
-
? serviceAVT.entitySets.find((es) => es.entityType.name === facet.entityType.name || es.name === facet.entityType.name)
|
|
345
|
-
: undefined;
|
|
346
|
-
}
|
|
347
|
-
exports.determineEntitySetOfFacet = determineEntitySetOfFacet;
|
|
348
|
-
//# sourceMappingURL=objectPage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"objectPage.js","sourceRoot":"","sources":["../../../../../src/sync/common/generate/objectPage.ts"],"names":[],"mappings":";;AAOA,kEAA6E;AAC7E,0DAAqE;AACrE,0BAUY;AAGZ;;;;;;;;GAQG;AACH,SAAS,QAAQ,CACb,WAAwB,EACxB,SAAiB,EACjB,KAA6B,EAC7B,QAAgB,EAChB,GAAW,EACX,OAAoB,EACpB,OAA6B,EAC7B,WAAW,GAAG,IAAI;;IAElB,MAAM,gBAAgB,GAAG,6CAA4B,CAAC,KAAK,CAAC,CAAC;IAC7D,MAAM,cAAc,GAChB,OAAO,KAAK,6BAAoB,CAAC,EAAE,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtF,CAAC,CAAC,gBAAgB;aACX,KAAK,CAAC,IAAI,CAAC;aACX,MAAM,CAAC,CAAC,CAAC;aACT,IAAI,CAAC,IAAI,CAAC;QACjB,CAAC,CAAC,gBAAgB,CAAC;IAC3B,MAAM,kBAAkB,GACpB,OAAO,KAAK,6BAAoB,CAAC,EAAE,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtF,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC;QAC/D,CAAC,CAAC,SAAS,CAAC;IACpB,MAAM,eAAe,GACjB,OAAO,KAAK,6BAAoB,CAAC,E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AQ,CAAC,GAAG;QAChC,IAAI,EAAE,0BAAsB,GAAG,kBAAkB;KACpD,CAAC;IACF,SAAS,CAAC,aAAa,CAAC,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,KAAK,CACrD,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAC/E,CAAC;IACF,SAAS,CAAC,aAAa,CAAC,CACpB,kBAAkB,CACrB,CAAC,cAAc,GAAG,IAAI,UAAU,CAAC,kBAAkB,KAAK,wDAA4B,EAAE,CAAC;AAC5F,CAAC;AAVD,sDAUC;AAED;;;;;GAKG;AACH,SAAgB,yBAAyB,CAAC,KAAkB,EAAE,UAA2B;IACrF,OAAO,KAAK,CAAC,UAAU;QACnB,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CACtB,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,KAAK,KAAK,CAAC,UAAU,CAAC,IAAI,IAAI,EAAE,CAAC,IAAI,KAAK,KAAK,CAAC,UAAU,CAAC,IAAI,CAC5F;QACH,CAAC,CAAC,SAAS,CAAC;AACpB,CAAC;AAND,8DAMC"}
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const __1 = require("..");
|
|
4
|
-
/**
|
|
5
|
-
* Adds an enum filled with existing UI annotations of the given list (validAnnotations)
|
|
6
|
-
* @param {EntityType} entityType
|
|
7
|
-
* @param {UIAnnotationTerms[]} validAnnotations
|
|
8
|
-
* @param annoPath - the annotation path property in the app schema where the enum shall be added
|
|
9
|
-
*/
|
|
10
|
-
function addEnumForValidAnnotations(entityType, validAnnotations, annoPath) {
|
|
11
|
-
const UiAnnotations = entityType.annotations.UI;
|
|
12
|
-
if (!UiAnnotations) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
const enumEntries = annoPath['enum'] ? annoPath['enum'] : [];
|
|
16
|
-
for (const key in UiAnnotations) {
|
|
17
|
-
const annotation = UiAnnotations[key];
|
|
18
|
-
if (validAnnotations.indexOf(annotation.term) > -1) {
|
|
19
|
-
const enumEntry = annotation.qualifier
|
|
20
|
-
? `${annotation.term}#${annotation.qualifier}`
|
|
21
|
-
: `${annotation.term}`;
|
|
22
|
-
if (enumEntries.indexOf(enumEntry) === -1) {
|
|
23
|
-
enumEntries.push(enumEntry);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
if (enumEntries.length > 0) {
|
|
28
|
-
annoPath['enum'] = enumEntries;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.addEnumForValidAnnotations = addEnumForValidAnnotations;
|
|
32
|
-
/**
|
|
33
|
-
* Adds an enum filled with existing UI annotations for single-tab variants of a table
|
|
34
|
-
* @param {EntityType} entityType
|
|
35
|
-
* @param appSchema - app specific JSOn schema
|
|
36
|
-
* @param definitionName - name of the definition in the app schema
|
|
37
|
-
*/
|
|
38
|
-
function addEnumForSingleTabVariant(entityType, appSchema, definitionName) {
|
|
39
|
-
const quickVariant = appSchema['definitions'][definitionName];
|
|
40
|
-
const annoPath = quickVariant.properties.annotationPath;
|
|
41
|
-
const validAnnotations = ["com.sap.vocabularies.UI.v1.SelectionVariant" /* SelectionVariant */, "com.sap.vocabularies.UI.v1.SelectionPresentationVariant" /* SelectionPresentationVariant */];
|
|
42
|
-
addEnumForValidAnnotations(entityType, validAnnotations, annoPath);
|
|
43
|
-
}
|
|
44
|
-
exports.addEnumForSingleTabVariant = addEnumForSingleTabVariant;
|
|
45
|
-
/**
|
|
46
|
-
* Adds an enum filled with existing UI annotations for multi-tab variants of a table
|
|
47
|
-
* @param {ConverterOutput} oDataServiceAVT - combined service metadata, as returned by annotation vocabularies tools
|
|
48
|
-
* @param appSchema - app specific JSOn schema
|
|
49
|
-
* @param definitionName - name of the definition in the app schema
|
|
50
|
-
*/
|
|
51
|
-
function addEnumForMultiTabVariant(oDataServiceAVT, appSchema, definitionName) {
|
|
52
|
-
const quickVariant = appSchema['definitions'][definitionName];
|
|
53
|
-
const annoPath = quickVariant.properties.annotationPath;
|
|
54
|
-
const validAnnotations = [
|
|
55
|
-
"com.sap.vocabularies.UI.v1.SelectionVariant" /* SelectionVariant */,
|
|
56
|
-
"com.sap.vocabularies.UI.v1.SelectionPresentationVariant" /* SelectionPresentationVariant */,
|
|
57
|
-
"com.sap.vocabularies.UI.v1.PresentationVariant" /* PresentationVariant */
|
|
58
|
-
];
|
|
59
|
-
if (oDataServiceAVT.entitySets) {
|
|
60
|
-
oDataServiceAVT.entitySets.forEach((entitySet) => {
|
|
61
|
-
addEnumForValidAnnotations(entitySet.entityType, validAnnotations, annoPath);
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
exports.addEnumForMultiTabVariant = addEnumForMultiTabVariant;
|
|
66
|
-
/**
|
|
67
|
-
* Adds the enume values for entitySet as part of the multiple view scenario
|
|
68
|
-
* @param {ConverterOutput} oDataServiceAVT - combined service metadata, as returned by annotation vocabularies tools
|
|
69
|
-
* @param appSchema - app specific JSOn schema
|
|
70
|
-
* @param definitionName - name of the definition in the app schema
|
|
71
|
-
*/
|
|
72
|
-
function addEnumForVariantEntitySet(oDataServiceAVT, appSchema, definitionName) {
|
|
73
|
-
const quickVariant = appSchema['definitions'][definitionName];
|
|
74
|
-
const entitySet = quickVariant.properties.entitySet;
|
|
75
|
-
if (oDataServiceAVT.entitySets) {
|
|
76
|
-
const enumEntries = [];
|
|
77
|
-
oDataServiceAVT.entitySets.forEach((es) => {
|
|
78
|
-
enumEntries.push(es.name);
|
|
79
|
-
});
|
|
80
|
-
if (enumEntries.length > 0) {
|
|
81
|
-
entitySet['enum'] = enumEntries;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
exports.addEnumForVariantEntitySet = addEnumForVariantEntitySet;
|
|
86
|
-
/**
|
|
87
|
-
* Adds an enum filled with existing UI annotations for annotationPath property in FilterBar
|
|
88
|
-
* @param {EntityType} entityType
|
|
89
|
-
* @param appSchema - app specific JSOn schema
|
|
90
|
-
* @param definitionName - name of the definition in the app schema
|
|
91
|
-
*/
|
|
92
|
-
function addEnumForFilterBarAnnotationPath(entityType, appSchema, definitionName) {
|
|
93
|
-
const listReprtFilter = appSchema['definitions'][definitionName];
|
|
94
|
-
const annoPath = listReprtFilter.properties.annotationPath;
|
|
95
|
-
const validAnnotations = ["com.sap.vocabularies.UI.v1.SelectionVariant" /* SelectionVariant */];
|
|
96
|
-
addEnumForValidAnnotations(entityType, validAnnotations, annoPath);
|
|
97
|
-
}
|
|
98
|
-
exports.addEnumForFilterBarAnnotationPath = addEnumForFilterBarAnnotationPath;
|
|
99
|
-
/**
|
|
100
|
-
* Method adds definition for 'RelatedFacetKeys' as enum with describtion and adds references to 'RelatedFacetKeys' for custom section definitions.
|
|
101
|
-
* @param {object} schema App specific schema that potentially gets enhanced
|
|
102
|
-
* @param {string[]>} sectionDefinitions array of section definitions which should be updated with new reference to 'RelatedFacetKeys' enum.
|
|
103
|
-
* @param {FacetSection[]} facetSections Array of facet section objects which is used to generate enum values.
|
|
104
|
-
* @param {Array<keyof Omit<FacetSection, 'custom'>>} idProperties Array of property names which should be looked up in 'FacetSection' object.
|
|
105
|
-
* Please note that method depends on order and takes first non empty value associated to passed properties.
|
|
106
|
-
*/
|
|
107
|
-
function addDefinitionForRelatedFacetKeys(schema, sectionDefinitions, facetSections, idProperties) {
|
|
108
|
-
const oneOfSections = facetSections.map((section) => {
|
|
109
|
-
// Loop accaptable properties in received order and find first entry with value
|
|
110
|
-
const propertyName = idProperties.find((property) => !!section[property]);
|
|
111
|
-
const schemaIdForSection = section[propertyName];
|
|
112
|
-
return Object.assign(Object.assign({ const: schemaIdForSection }, (section.label && { description: section.label })), (section.custom && { custom: section.custom }));
|
|
113
|
-
});
|
|
114
|
-
// Change 'relatedFacet' only when we have entries for sections - otherwise use generic.
|
|
115
|
-
if (oneOfSections.length) {
|
|
116
|
-
// Create new definition in schema as 'oneOf'.
|
|
117
|
-
// Simpler way would be to use 'enum', but then there no option to pass description.
|
|
118
|
-
schema['definitions']['RelatedFacetKeys'] = {
|
|
119
|
-
type: 'string',
|
|
120
|
-
oneOf: oneOfSections
|
|
121
|
-
};
|
|
122
|
-
// Add enum definition
|
|
123
|
-
for (const name of sectionDefinitions) {
|
|
124
|
-
const definition = schema['definitions'][name];
|
|
125
|
-
const property = definition['properties']['relatedFacet'];
|
|
126
|
-
definition['properties']['relatedFacet'] = {
|
|
127
|
-
anyOf: [
|
|
128
|
-
{
|
|
129
|
-
$ref: __1.DEFINITION_LINK_PREFIX + 'RelatedFacetKeys'
|
|
130
|
-
},
|
|
131
|
-
property
|
|
132
|
-
]
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
exports.addDefinitionForRelatedFacetKeys = addDefinitionForRelatedFacetKeys;
|
|
138
|
-
/**
|
|
139
|
-
* Functions used both by V2 and V4 to add the common definitions for a line item to the app schema
|
|
140
|
-
* @param appSchema - the app specific schema that shall get enhanced
|
|
141
|
-
* @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
|
|
142
|
-
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
143
|
-
* @param lineItemId - line item ID, as comprise in stable ID
|
|
144
|
-
* @returns the actions definition plus the annotation path to the given line item
|
|
145
|
-
*/
|
|
146
|
-
function addCommonLineItemDefinitions(appSchema, lineItemAnnotation, entityType, lineItemId) {
|
|
147
|
-
let lineItemPath;
|
|
148
|
-
appSchema['definitions'][lineItemId] = {
|
|
149
|
-
type: 'object',
|
|
150
|
-
properties: {},
|
|
151
|
-
isViewNode: true,
|
|
152
|
-
description: 'Columns'
|
|
153
|
-
};
|
|
154
|
-
appSchema['definitions'][lineItemId].additionalProperties = false;
|
|
155
|
-
// Copy toolbar
|
|
156
|
-
const toolBar = lineItemId === 'LineItems' ? 'ToolBar' : 'ObjectPageToolBar';
|
|
157
|
-
const schemaIdForToolBar = `${toolBar}<${lineItemId}>`;
|
|
158
|
-
appSchema['definitions'][schemaIdForToolBar] = JSON.parse(JSON.stringify(appSchema['definitions'][`${toolBar}`]));
|
|
159
|
-
const schemaIdForActions = `Actions<${__1.prepareRef(lineItemId)}>`;
|
|
160
|
-
appSchema['definitions'][schemaIdForToolBar].properties.actions.$ref = __1.DEFINITION_LINK_PREFIX + schemaIdForActions;
|
|
161
|
-
const actionId = lineItemId === 'LineItems' ? 'Actions' : 'ObjectPageToolBarActions';
|
|
162
|
-
const actions = (appSchema['definitions'][schemaIdForActions] = JSON.parse(JSON.stringify(appSchema['definitions'][actionId])));
|
|
163
|
-
actions.properties = {};
|
|
164
|
-
actions.additionalProperties = false;
|
|
165
|
-
// Copy LR footer
|
|
166
|
-
let footerActions, schemaIdForFooter;
|
|
167
|
-
if (lineItemId === 'LineItems' && appSchema['properties']['footer']) {
|
|
168
|
-
schemaIdForFooter = `Footer<${lineItemId}>`;
|
|
169
|
-
appSchema['properties']['footer'].$ref = __1.DEFINITION_LINK_PREFIX + schemaIdForFooter;
|
|
170
|
-
appSchema['definitions'][schemaIdForFooter] = JSON.parse(JSON.stringify(appSchema['definitions'][`GenericFooter`]));
|
|
171
|
-
const schemaIdForFooterActions = `FooterActions<${__1.prepareRef(lineItemId)}>`;
|
|
172
|
-
appSchema['definitions'][schemaIdForFooter].properties.actions.$ref =
|
|
173
|
-
__1.DEFINITION_LINK_PREFIX + schemaIdForFooterActions;
|
|
174
|
-
footerActions = appSchema['definitions'][schemaIdForFooterActions] = JSON.parse(JSON.stringify(appSchema['definitions'][`Actions`]));
|
|
175
|
-
footerActions.properties = {};
|
|
176
|
-
footerActions.additionalProperties = false;
|
|
177
|
-
}
|
|
178
|
-
//Determine annotation path
|
|
179
|
-
if (lineItemAnnotation) {
|
|
180
|
-
lineItemPath = __1.createAnnotationPath(entityType.fullyQualifiedName, lineItemAnnotation.term, lineItemAnnotation.qualifier);
|
|
181
|
-
appSchema['definitions'][lineItemId].annotationPath = appSchema['definitions'][schemaIdForToolBar].annotationPath = lineItemPath;
|
|
182
|
-
if (footerActions) {
|
|
183
|
-
appSchema['definitions'][schemaIdForFooter].annotationPath = lineItemPath;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
return { actions, footerActions, lineItemPath };
|
|
187
|
-
}
|
|
188
|
-
exports.addCommonLineItemDefinitions = addCommonLineItemDefinitions;
|
|
189
|
-
/**
|
|
190
|
-
* Add schema definitions for fields of createWithParameterDialog
|
|
191
|
-
* @param {object} appSchema - Application-specific schema, to be enhanced
|
|
192
|
-
* @param {EntityType} entityType - Given entity type for which entries shall get generated
|
|
193
|
-
* @param {string=} floorplanSuffix - floorplan specific suffix (optional)
|
|
194
|
-
*/
|
|
195
|
-
function addFieldsType(appSchema, entityType, floorplanSuffix = '') {
|
|
196
|
-
const propertyNameArray = [], propertyObject = {};
|
|
197
|
-
const fieldPathRef = `FieldPath${__1.prepareRef(floorplanSuffix)}`;
|
|
198
|
-
for (const key of entityType.entityProperties) {
|
|
199
|
-
const propertyName = key.name;
|
|
200
|
-
propertyNameArray.push(propertyName);
|
|
201
|
-
propertyObject[propertyName] = {
|
|
202
|
-
$ref: __1.DEFINITION_LINK_PREFIX + fieldPathRef
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
appSchema['definitions'][entityType.name] = {
|
|
206
|
-
enum: propertyNameArray
|
|
207
|
-
};
|
|
208
|
-
appSchema['definitions'][fieldPathRef].properties.path = {
|
|
209
|
-
$ref: __1.DEFINITION_LINK_PREFIX + entityType.name
|
|
210
|
-
};
|
|
211
|
-
const creationFieldsRef = `CreationFieldKeys${__1.prepareRef(floorplanSuffix)}`;
|
|
212
|
-
appSchema['definitions'][creationFieldsRef] = {
|
|
213
|
-
type: 'object',
|
|
214
|
-
properties: propertyObject,
|
|
215
|
-
additionalProperties: false
|
|
216
|
-
};
|
|
217
|
-
const fields4Dialog = appSchema['definitions'][`Fields4Dialog${floorplanSuffix}`];
|
|
218
|
-
fields4Dialog.properties.fields.$ref = __1.DEFINITION_LINK_PREFIX + creationFieldsRef;
|
|
219
|
-
}
|
|
220
|
-
exports.addFieldsType = addFieldsType;
|
|
221
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/common/generate/utils.ts"],"names":[],"mappings":";;AAEA,0BAA4F;AAE5F;;;;;GAKG;AACH,SAAgB,0BAA0B,CACtC,UAAsB,EACtB,gBAAqC,EACrC,QAAgB;IAEhB,MAAM,aAAa,GAAG,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;IAChD,IAAI,CAAC,aAAa,EAAE;QAChB,OAAO;KACV;IACD,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7D,KAAK,MAAM,GAAG,IAAI,aAAa,EAAE;QAC7B,MAAM,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;QACtC,IAAI,gBAAgB,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE;YAChD,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS;gBAClC,CAAC,CAAC,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,SAAS,EAAE;gBAC9C,CAAC,CAAC,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC;YAC3B,IAAI,WAAW,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE;gBACvC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aAC/B;SACJ;KACJ;IACD,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;QACxB,QAAQ,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC;KAClC;AACL,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Aa,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG;QACxC,IAAI,EAAE,iBAAiB;KAC1B,CAAC;IACF,SAAS,CAAC,aAAa,CAAC,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,IAAI,GAAG;QACrD,IAAI,EAAE,0BAAsB,GAAG,UAAU,CAAC,IAAI;KACjD,CAAC;IACF,MAAM,iBAAiB,GAAG,oBAAoB,cAAU,CAAC,eAAe,CAAC,EAAE,CAAC;IAC5E,SAAS,CAAC,aAAa,CAAC,CAAC,iBAAiB,CAAC,GAAG;QAC1C,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,cAAc;QAC1B,oBAAoB,EAAE,KAAK;KAC9B,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,aAAa,CAAC,CAAC,gBAAgB,eAAe,EAAE,CAAC,CAAC;IAClF,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,GAAG,0BAAsB,GAAG,iBAAiB,CAAC;AACtF,CAAC;AAzBD,sCAyBC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"NOBASEPATH": "No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",
|
|
3
|
-
"NOPAGES": "No pages found in manifest for app with id '{{- appId}}'",
|
|
4
|
-
"NOFE": "The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",
|
|
5
|
-
"NOENTITYSET": "No page found in manifest for entitySet '{{- entitySet}}'",
|
|
6
|
-
"NOENTITYSET4NAME": "No entitySet could be found for the given entity type '{{- entityType}}'",
|
|
7
|
-
"ENTITYSETNOTFOUND": "Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",
|
|
8
|
-
"NOLR": "No page found in manifest for list report",
|
|
9
|
-
"NOALP": "No page found in manifest for analytical list page",
|
|
10
|
-
"NOTEMPLATE": "No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",
|
|
11
|
-
"ANNOERR": "Error while parsing annotation files",
|
|
12
|
-
"NOROUTING": "Incomplete manifest definition: no routing defined",
|
|
13
|
-
"NOLINEITEMS": "UI.LineItem annotation has not been defined",
|
|
14
|
-
"NOTARGETS": "Incomplete manifest definition: no targets defined",
|
|
15
|
-
"NOTARGET": "Invalid reference: annotation target '{{- target}}' not found",
|
|
16
|
-
"NOROUTINGID": "No page found in manifest for routingId '{{- routingId}}'",
|
|
17
|
-
"FLEXERROR": "Error while parsing flex change",
|
|
18
|
-
"INVALIDANCHOR": "Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",
|
|
19
|
-
"NOFRAGMENT": "fragmentName is undefined for columnKey '{{- columnKey}}'",
|
|
20
|
-
"NOENTITYTYPE": "Entity type '{{- entityType}}' is specified in manifest, but not present in metadata",
|
|
21
|
-
"INVALIDTARGETDEFINITION": "Invalid routing target definition in manifest: '{{- target}}'",
|
|
22
|
-
"NOID4SECTION": "No ID has been defined for a facet or header facet. As a consequence, manifest settings cannot be written correctly for this element in an OData V4 scenario: '{{- facet}}'"
|
|
23
|
-
}
|