@sap/ux-specification 1.90.19 → 1.90.24
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 +92 -0
- package/dist/documentation/runDocu-min.js +1 -1
- package/dist/documentation/styleDocu.css +7 -14
- 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-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/AnalyticalListPageConfig.json +48 -24
- package/dist/schemas/v2/ApplicationV2.json +11 -11
- package/dist/schemas/v2/ListReportConfig.json +48 -24
- package/dist/schemas/v2/OverviewPageConfig.json +29 -28
- package/dist/schemas/v4/ApplicationV4.json +9 -5
- package/dist/schemas/v4/ListReportConfig.json +590 -174
- package/dist/schemas/v4/ObjectPageConfig.json +6 -38
- package/dist/scripts/extractDocu.js.map +1 -1
- package/dist/scripts/runDocu.js +40 -47
- package/dist/scripts/runDocu.js.map +1 -1
- package/dist/scripts/spec.js.map +1 -1
- package/dist/scripts/to-json-schema.js.map +1 -1
- package/dist/specification/v2/index-min.js +1 -1
- package/dist/specification/v4/index-min.js +1 -1
- package/dist/src/api.d.ts +2 -2
- package/dist/src/api.js +11 -11
- package/dist/src/api.js.map +1 -1
- package/dist/src/apiTypes.d.ts +14 -18
- package/dist/src/apiTypes.js +0 -2
- package/dist/src/apiTypes.js.map +1 -1
- package/dist/src/extensionLogger.d.ts +1 -1
- package/dist/src/project.d.ts +1 -1
- package/dist/src/specification/common/Application.d.ts +24 -4
- package/dist/src/specification/common/page.d.ts +1 -1
- package/dist/src/specification/common/webapp/manifest/Manifest.d.ts +6 -6
- package/dist/src/specification/common/webapp/manifest/sapUi5.d.ts +1 -1
- package/dist/src/specification/schemaAccess.d.ts +1 -1
- package/dist/src/specification/schemaAccess.js +1 -2
- package/dist/src/specification/schemaAccess.js.map +1 -1
- package/dist/src/specification/v2/ApplicationV2.d.ts +3 -17
- package/dist/src/specification/v2/controls/Facets.d.ts +1 -1
- package/dist/src/specification/v2/controls/FilterBar.d.ts +47 -31
- package/dist/src/specification/v2/controls/Footer.d.ts +2 -2
- package/dist/src/specification/v2/controls/ObjectPageForm.d.ts +1 -1
- package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +2 -2
- package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +2 -2
- package/dist/src/specification/v2/controls/ObjectPageToolBar.d.ts +1 -1
- package/dist/src/specification/v2/controls/Table.d.ts +3 -3
- package/dist/src/specification/v2/controls/ToolBar.d.ts +1 -1
- package/dist/src/specification/v2/page.d.ts +1 -1
- package/dist/src/specification/v2/pages/AnalyticalListPageConfig.d.ts +4 -4
- package/dist/src/specification/v2/pages/ListReportConfig.d.ts +2 -2
- package/dist/src/specification/v2/pages/ObjectPageConfig.d.ts +3 -3
- package/dist/src/specification/v2/pages/OverviewPageConfig.d.ts +38 -4
- package/dist/src/specification/v2/pages/OverviewPageConfig.js.map +1 -1
- package/dist/src/specification/v2/webapp/manifest/sapUi5.d.ts +2 -2
- package/dist/src/specification/v2/webapp/manifest/sapUi5.js +0 -1
- package/dist/src/specification/v2/webapp/manifest/sapUi5.js.map +1 -1
- package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.d.ts +2 -2
- package/dist/src/specification/v4/ApplicationV4.d.ts +4 -14
- package/dist/src/specification/v4/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/specification/v4/controls/ObjectPageHeaderSection.d.ts +2 -14
- package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +2 -2
- package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +3 -3
- package/dist/src/specification/v4/controls/ObjectPageToolBar.d.ts +1 -1
- package/dist/src/specification/v4/controls/Table.d.ts +162 -25
- package/dist/src/specification/v4/controls/Table.js +6 -0
- package/dist/src/specification/v4/controls/Table.js.map +1 -1
- package/dist/src/specification/v4/controls/ToolBar.d.ts +26 -1
- package/dist/src/specification/v4/page.d.ts +2 -2
- package/dist/src/specification/v4/pages/ListReportConfig.d.ts +17 -3
- package/dist/src/specification/v4/pages/ObjectPageConfig.d.ts +2 -2
- package/dist/src/specification/v4/pages/ObjectPageConfig.js.map +1 -1
- package/dist/src/specification/v4/pages/index.d.ts +0 -1
- package/dist/src/specification/v4/webapp/manifest/ManifestSettings.d.ts +77 -0
- package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js.map +1 -1
- package/dist/src/specification/v4/webapp/manifest/sapUi5.d.ts +12 -3
- package/dist/src/specification/v4/webapp/manifest/sapUi5.js.map +1 -1
- package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.d.ts +20 -1
- package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
- package/dist/src/sync/common/appProvider.d.ts +6 -5
- package/dist/src/sync/common/appProvider.js.map +1 -1
- package/dist/src/sync/common/decoration/control.d.ts +1 -1
- package/dist/src/sync/common/decoration/control.js.map +1 -1
- package/dist/src/sync/common/decoration/decorators.d.ts +1 -1
- package/dist/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/src/sync/common/decoration/factory.d.ts +3 -3
- package/dist/src/sync/common/decoration/flex.d.ts +3 -3
- package/dist/src/sync/common/flexUtils.d.ts +4 -4
- package/dist/src/sync/common/flexUtils.js.map +1 -1
- package/dist/src/sync/common/generate/objectPage.d.ts +5 -3
- package/dist/src/sync/common/generate/objectPage.js +73 -44
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +43 -9
- package/dist/src/sync/common/generate/utils.js +122 -32
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/common/import/utils.d.ts +4 -3
- package/dist/src/sync/common/import/utils.js +3 -2
- package/dist/src/sync/common/import/utils.js.map +1 -1
- package/dist/src/sync/common/importProject.d.ts +4 -4
- package/dist/src/sync/common/importProject.js +13 -22
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/types.d.ts +28 -6
- package/dist/src/sync/common/types.js +24 -0
- package/dist/src/sync/common/types.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +18 -8
- package/dist/src/sync/common/utils.js +178 -66
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/i18n.d.ts +1 -1
- package/dist/src/sync/v2/application.d.ts +2 -2
- package/dist/src/sync/v2/application.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Action.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Card.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Field.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/FilterBar.d.ts +17 -4
- package/dist/src/sync/v2/export/controls/FilterBar.js +102 -56
- package/dist/src/sync/v2/export/controls/FilterBar.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.d.ts +5 -11
- package/dist/src/sync/v2/export/controls/Fragment.js +108 -32
- package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageChart.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.d.ts +3 -3
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageLayout.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +6 -6
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +14 -17
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +3 -3
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Table.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/Table.js +26 -25
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v2/export/controls/TableColumn.d.ts +2 -2
- package/dist/src/sync/v2/export/controls/ToolBar.d.ts +1 -1
- package/dist/src/sync/v2/export/export.d.ts +3 -3
- package/dist/src/sync/v2/export/export.js +6 -1
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/export/exportPage.d.ts +2 -2
- package/dist/src/sync/v2/export/exportPage.js +1 -9
- package/dist/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/src/sync/v2/export/factory.d.ts +2 -1
- package/dist/src/sync/v2/export/factory.js.map +1 -1
- package/dist/src/sync/v2/export/manifest.d.ts +1 -1
- package/dist/src/sync/v2/export/manifest.js +2 -1
- package/dist/src/sync/v2/export/manifest.js.map +1 -1
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts +4 -4
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/export/pages/ListReport.d.ts +2 -2
- package/dist/src/sync/v2/export/pages/ListReport.js.map +1 -1
- package/dist/src/sync/v2/export/pages/ObjectPage.d.ts +3 -3
- package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +3 -2
- package/dist/src/sync/v2/export/pages/OverviewPage.js +38 -5
- package/dist/src/sync/v2/export/pages/OverviewPage.js.map +1 -1
- package/dist/src/sync/v2/export/view-controller-generator.d.ts +2 -2
- package/dist/src/sync/v2/export/view-controller-generator.js.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.d.ts +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.js +29 -35
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/generate.d.ts +2 -2
- package/dist/src/sync/v2/generate/generate.js +3 -0
- package/dist/src/sync/v2/generate/generate.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.d.ts +7 -4
- package/dist/src/sync/v2/generate/listReport.js +40 -34
- package/dist/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.d.ts +1 -1
- package/dist/src/sync/v2/generate/objectPage.js +81 -106
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/overviewPage.d.ts +1 -1
- package/dist/src/sync/v2/generate/overviewPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +12 -5
- package/dist/src/sync/v2/generate/utils.js +43 -0
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/app/appProvider.d.ts +4 -4
- package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.d.ts +3 -3
- package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
- package/dist/src/sync/v2/import/common/index.d.ts +6 -5
- package/dist/src/sync/v2/import/common/index.js +3 -16
- package/dist/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/src/sync/v2/import/controls/table.d.ts +1 -1
- package/dist/src/sync/v2/import/controls/table.js +1 -1
- package/dist/src/sync/v2/import/controls/table.js.map +1 -1
- package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +2 -2
- package/dist/src/sync/v2/import/pages/analyticalListPage.js +11 -10
- package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/listReport.d.ts +2 -2
- package/dist/src/sync/v2/import/pages/listReport.js +9 -0
- package/dist/src/sync/v2/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.d.ts +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +29 -14
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.d.ts +2 -2
- package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/src/sync/v2/import/utils.d.ts +3 -2
- package/dist/src/sync/v2/import/utils.js +28 -3
- package/dist/src/sync/v2/import/utils.js.map +1 -1
- package/dist/src/sync/v2/types.d.ts +7 -7
- package/dist/src/sync/v4/application.d.ts +9 -5
- package/dist/src/sync/v4/application.js +23 -2
- package/dist/src/sync/v4/application.js.map +1 -1
- package/dist/src/sync/v4/export/controls/FilterBar.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +2 -1
- package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js +3 -3
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageLayout.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTable.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/Table.d.ts +125 -9
- package/dist/src/sync/v4/export/controls/Table.js +431 -48
- package/dist/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v4/export/controls/TableColumn.d.ts +52 -1
- package/dist/src/sync/v4/export/controls/TableColumn.js +246 -0
- package/dist/src/sync/v4/export/controls/TableColumn.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ToolBar.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts +4 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.js +10 -0
- package/dist/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- package/dist/src/sync/v4/export/export.d.ts +2 -2
- package/dist/src/sync/v4/export/export.js +293 -59
- package/dist/src/sync/v4/export/export.js.map +1 -1
- package/dist/src/sync/v4/export/factory.d.ts +2 -1
- package/dist/src/sync/v4/export/factory.js.map +1 -1
- package/dist/src/sync/v4/export/flexibleColumnLayout.d.ts +1 -1
- package/dist/src/sync/v4/export/flexibleColumnLayout.js.map +1 -1
- package/dist/src/sync/v4/export/manifest.d.ts +2 -2
- package/dist/src/sync/v4/export/manifest.js +43 -31
- package/dist/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/src/sync/v4/export/pages/ListReport.d.ts +8 -3
- package/dist/src/sync/v4/export/pages/ListReport.js +42 -0
- package/dist/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +2 -2
- package/dist/src/sync/v4/export/pages/index.d.ts +0 -1
- package/dist/src/sync/v4/export/pages/index.js +0 -1
- package/dist/src/sync/v4/export/pages/index.js.map +1 -1
- package/dist/src/sync/v4/export/types.d.ts +7 -5
- package/dist/src/sync/v4/export/utils.d.ts +1 -1
- package/dist/src/sync/v4/generate/generate.d.ts +5 -4
- package/dist/src/sync/v4/generate/generate.js +6 -3
- package/dist/src/sync/v4/generate/generate.js.map +1 -1
- package/dist/src/sync/v4/generate/listReport.d.ts +2 -4
- package/dist/src/sync/v4/generate/listReport.js +333 -42
- package/dist/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.d.ts +1 -1
- package/dist/src/sync/v4/generate/objectPage.js +29 -6
- package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/app/appProvider.d.ts +6 -5
- package/dist/src/sync/v4/import/app/appProvider.js +55 -43
- package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v4/import/fragment.d.ts +2 -2
- package/dist/src/sync/v4/import/fragment.js.map +1 -1
- package/dist/src/sync/v4/import/index.d.ts +0 -1
- package/dist/src/sync/v4/import/index.js +0 -1
- package/dist/src/sync/v4/import/index.js.map +1 -1
- package/dist/src/sync/v4/import/pages/listReport.d.ts +8 -7
- package/dist/src/sync/v4/import/pages/listReport.js +103 -20
- package/dist/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v4/import/pages/objectPage.d.ts +2 -2
- package/dist/src/sync/v4/import/pages/objectPage.js +19 -19
- package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/utils.d.ts +2 -2
- package/dist/src/sync/v4/import/utils.js +2 -2
- package/dist/src/sync/v4/import/utils.js.map +1 -1
- package/dist/src/sync/v4/types.d.ts +2 -2
- package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/src/sync/v4/utils/utils.d.ts +13 -14
- package/dist/src/sync/v4/utils/utils.js +45 -48
- package/dist/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/test/test-data/flexChange/v2/stta.prod.man/index.d.ts +1 -1
- package/dist/test/test-projects/index.d.ts +1 -1
- package/dist/test/test-utils/utils.d.ts +5 -4
- package/package.json +11 -10
- package/dist/documentation/v4/v4-AnalyticalListPage.html +0 -49
- package/dist/schemas/v4/AnalyticalListPageConfig.json +0 -392
- package/dist/src/specification/v4/pages/AnalyticalListPageConfig.d.ts +0 -13
- package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js +0 -3
- package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js.map +0 -1
- package/dist/src/sync/v4/export/pages/AnalyticalListPage.d.ts +0 -8
- 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/import/pages/analyticalListPage.d.ts +0 -11
- package/dist/src/sync/v4/import/pages/analyticalListPage.js +0 -60
- package/dist/src/sync/v4/import/pages/analyticalListPage.js.map +0 -1
|
@@ -21,7 +21,7 @@ const factory_1 = require("../../export/factory");
|
|
|
21
21
|
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
22
22
|
* @param v4Page - page definition in V4 format
|
|
23
23
|
*/
|
|
24
|
-
function fillTableColumnsInConfig(importParameters, manifestSection, configPart, sectionId, manifestSectionId, factory
|
|
24
|
+
function fillTableColumnsInConfig(importParameters, manifestSection, configPart, sectionId, manifestSectionId, factory) {
|
|
25
25
|
if (manifestSection['columns']) {
|
|
26
26
|
configPart[sectionId].table.columns = {};
|
|
27
27
|
let tableDefinition;
|
|
@@ -36,7 +36,7 @@ function fillTableColumnsInConfig(importParameters, manifestSection, configPart,
|
|
|
36
36
|
tableDefinition = common_2.DefinitionName.ObjectPageTableColumn;
|
|
37
37
|
}
|
|
38
38
|
const columnInConfig = factory.createInstance(common_1.PageTypeV4.ObjectPage, tableDefinition);
|
|
39
|
-
utils_1.transferSettingsOfObject(columnInConfig, importParameters.manifest, importParameters.jsonSchema['definitions'][tableDefinition],
|
|
39
|
+
utils_1.transferSettingsOfObject(columnInConfig, importParameters.manifest, importParameters.jsonSchema['definitions'][tableDefinition], importParameters.routingId, [columnKey], manifestSectionId);
|
|
40
40
|
if (Object.keys(columnInConfig).length > 0) {
|
|
41
41
|
configPart[sectionId].table.columns[columnKey] = columnInConfig;
|
|
42
42
|
}
|
|
@@ -52,13 +52,13 @@ function fillTableColumnsInConfig(importParameters, manifestSection, configPart,
|
|
|
52
52
|
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
53
53
|
* @param v4Page - current (object) page
|
|
54
54
|
*/
|
|
55
|
-
function fillTableActionsInConfig(importParameters, sectionId, configPart, factory
|
|
55
|
+
function fillTableActionsInConfig(importParameters, sectionId, configPart, factory) {
|
|
56
56
|
if (importParameters.jsonSchema['definitions'][`Actions<${sectionId}>`]) {
|
|
57
57
|
const manifestSectionId = sectionId.replace(/::/g, '/');
|
|
58
58
|
for (const actionKey in importParameters.jsonSchema['definitions'][`Actions<${sectionId}>`].properties) {
|
|
59
59
|
configPart[sectionId].table.toolBar.actions[actionKey] = factory.createInstance(common_1.PageTypeV4.ObjectPage, 'ObjectPageToolBarAction');
|
|
60
60
|
const action = actionKey.split('DataFieldForAction::')[1];
|
|
61
|
-
utils_1.transferSettingsOfObject(configPart[sectionId].table.toolBar.actions[actionKey], importParameters.manifest, importParameters.jsonSchema['definitions'][`ObjectPageToolBarAction<${action}>`],
|
|
61
|
+
utils_1.transferSettingsOfObject(configPart[sectionId].table.toolBar.actions[actionKey], importParameters.manifest, importParameters.jsonSchema['definitions'][`ObjectPageToolBarAction<${action}>`], importParameters.routingId, [actionKey], manifestSectionId);
|
|
62
62
|
if (Object.keys(configPart[sectionId].table.toolBar.actions[actionKey]).length === 0) {
|
|
63
63
|
delete configPart[sectionId].table.toolBar.actions[actionKey];
|
|
64
64
|
}
|
|
@@ -74,7 +74,7 @@ function fillTableActionsInConfig(importParameters, sectionId, configPart, facto
|
|
|
74
74
|
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
75
75
|
* @param v4Page - current (object) page
|
|
76
76
|
*/
|
|
77
|
-
function fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory
|
|
77
|
+
function fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory) {
|
|
78
78
|
const manifestSectionId = sectionId.replace(/::/g, '/');
|
|
79
79
|
const manifestSection = manifestSettings.controlConfiguration[manifestSectionId];
|
|
80
80
|
if (manifestSection) {
|
|
@@ -82,12 +82,12 @@ function fillTableInConfig(importParameters, manifestSettings, configPart, secti
|
|
|
82
82
|
configPart[sectionId] = {};
|
|
83
83
|
configPart[sectionId].table = factory.createInstance(common_1.PageTypeV4.ObjectPage, 'ObjectPageTable');
|
|
84
84
|
const sectionDefinition = 'ObjectPageTable<' + sectionId + '>';
|
|
85
|
-
utils_1.transferSettingsOfObject(configPart[sectionId].table, importParameters.manifest, importParameters.jsonSchema['definitions'][sectionDefinition],
|
|
85
|
+
utils_1.transferSettingsOfObject(configPart[sectionId].table, importParameters.manifest, importParameters.jsonSchema['definitions'][sectionDefinition], importParameters.routingId, [], manifestSectionId);
|
|
86
86
|
configPart[sectionId].table.toolBar = factory.createInstance(common_1.PageTypeV4.ObjectPage, 'ToolBar', {
|
|
87
87
|
actions: {}
|
|
88
88
|
});
|
|
89
|
-
fillTableActionsInConfig(importParameters, sectionId, configPart, factory
|
|
90
|
-
fillTableColumnsInConfig(importParameters, manifestSection, configPart, sectionId, manifestSectionId, factory
|
|
89
|
+
fillTableActionsInConfig(importParameters, sectionId, configPart, factory);
|
|
90
|
+
fillTableColumnsInConfig(importParameters, manifestSection, configPart, sectionId, manifestSectionId, factory);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
@@ -99,19 +99,19 @@ function fillTableInConfig(importParameters, manifestSettings, configPart, secti
|
|
|
99
99
|
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
100
100
|
* @param v4Page - current (object) page
|
|
101
101
|
*/
|
|
102
|
-
function fillSectionsInConfig(importParameters, sectionProperties, manifestSettings, configPart, factory
|
|
102
|
+
function fillSectionsInConfig(importParameters, sectionProperties, manifestSettings, configPart, factory) {
|
|
103
103
|
for (const sectionId in sectionProperties) {
|
|
104
104
|
const schemaSection = sectionProperties[sectionId];
|
|
105
105
|
if (schemaSection['$ref'] &&
|
|
106
106
|
schemaSection['$ref'].startsWith(common_2.DEFINITION_LINK_PREFIX + 'ObjectPageSectionTableV4')) {
|
|
107
107
|
// Section without subsections
|
|
108
|
-
fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory
|
|
108
|
+
fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory);
|
|
109
109
|
}
|
|
110
110
|
else if (schemaSection['properties'] && schemaSection['properties']['subsections']) {
|
|
111
111
|
configPart[sectionId] = {
|
|
112
112
|
subsections: {}
|
|
113
113
|
};
|
|
114
|
-
fillSectionsInConfig(importParameters, schemaSection['properties']['subsections']['properties'], manifestSettings, configPart[sectionId]['subsections'], factory
|
|
114
|
+
fillSectionsInConfig(importParameters, schemaSection['properties']['subsections']['properties'], manifestSettings, configPart[sectionId]['subsections'], factory);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
}
|
|
@@ -123,7 +123,7 @@ function fillSectionsInConfig(importParameters, sectionProperties, manifestSetti
|
|
|
123
123
|
* @param manifest - manifest.json of the app
|
|
124
124
|
* @param v4Page - current (object) page
|
|
125
125
|
*/
|
|
126
|
-
function fillHeaderFacets(appSchema, objectPageConfig, factory, manifest,
|
|
126
|
+
function fillHeaderFacets(appSchema, objectPageConfig, factory, manifest, routingId) {
|
|
127
127
|
var _a, _b;
|
|
128
128
|
const headerSections = appSchema['definitions']['HeaderSections'];
|
|
129
129
|
if (headerSections && headerSections.properties) {
|
|
@@ -137,7 +137,7 @@ function fillHeaderFacets(appSchema, objectPageConfig, factory, manifest, v4Page
|
|
|
137
137
|
objectPageConfig.header.sections[sectionId] = factoryKey
|
|
138
138
|
? factory.createInstance(common_1.PageTypeV4.ObjectPage, factoryKey)
|
|
139
139
|
: {};
|
|
140
|
-
utils_1.transferSettingsOfObject(objectPageConfig.header.sections[sectionId], manifest, sectionDefinition,
|
|
140
|
+
utils_1.transferSettingsOfObject(objectPageConfig.header.sections[sectionId], manifest, sectionDefinition, routingId, [], (_b = sectionDefinition === null || sectionDefinition === void 0 ? void 0 : sectionDefinition.title) === null || _b === void 0 ? void 0 : _b.split(common_2.FacetTitlePrefix)[1]);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -154,11 +154,11 @@ function fillObjectPageConfig(importParameters, v4Page, factory) {
|
|
|
154
154
|
const manifestSettings = v4Page.options && v4Page.options.settings;
|
|
155
155
|
// Transfer header information
|
|
156
156
|
objectPageConfig.header = factory.createInstance(common_1.PageTypeV4.ObjectPage, 'ObjectPageHeader');
|
|
157
|
-
utils_1.transferSettingsOfObject(objectPageConfig.header, importParameters.manifest, importParameters.jsonSchema['definitions']['ObjectPageHeader'],
|
|
157
|
+
utils_1.transferSettingsOfObject(objectPageConfig.header, importParameters.manifest, importParameters.jsonSchema['definitions']['ObjectPageHeader'], importParameters.routingId, []);
|
|
158
158
|
// Transfer layout information
|
|
159
159
|
objectPageConfig.layout = factory.createInstance(common_1.PageTypeV4.ObjectPage, 'ObjectPageLayout');
|
|
160
|
-
utils_1.transferSettingsOfObject(objectPageConfig.layout, importParameters.manifest, importParameters.jsonSchema['definitions']['ObjectPageLayout'],
|
|
161
|
-
utils_1.transferSettingsOfObject(objectPageConfig, importParameters.manifest, importParameters.jsonSchema,
|
|
160
|
+
utils_1.transferSettingsOfObject(objectPageConfig.layout, importParameters.manifest, importParameters.jsonSchema['definitions']['ObjectPageLayout'], importParameters.routingId, []);
|
|
161
|
+
utils_1.transferSettingsOfObject(objectPageConfig, importParameters.manifest, importParameters.jsonSchema, importParameters.routingId, []);
|
|
162
162
|
if (!objectPageConfig.sections) {
|
|
163
163
|
objectPageConfig.sections = {};
|
|
164
164
|
}
|
|
@@ -166,7 +166,7 @@ function fillObjectPageConfig(importParameters, v4Page, factory) {
|
|
|
166
166
|
if (manifestSettings.controlConfiguration && importParameters.jsonSchema['definitions']['Sections']) {
|
|
167
167
|
// Fill sections and subsections
|
|
168
168
|
objectPageConfig.sections = {};
|
|
169
|
-
fillSectionsInConfig(importParameters, importParameters.jsonSchema['definitions']['Sections'].properties, manifestSettings, objectPageConfig.sections, factory
|
|
169
|
+
fillSectionsInConfig(importParameters, importParameters.jsonSchema['definitions']['Sections'].properties, manifestSettings, objectPageConfig.sections, factory);
|
|
170
170
|
}
|
|
171
171
|
// Fill Custom sections
|
|
172
172
|
const customSections = (_b = (_a = manifestSettings.content) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.sections;
|
|
@@ -174,12 +174,12 @@ function fillObjectPageConfig(importParameters, v4Page, factory) {
|
|
|
174
174
|
objectPageConfig.sections.custom = [];
|
|
175
175
|
for (const sectionId in customSections) {
|
|
176
176
|
const section = factory.createInstance(common_1.PageTypeV4.ObjectPage, 'ObjectPageCustomSectionFragment');
|
|
177
|
-
utils_1.transferSettingsOfObject(section, importParameters.manifest, importParameters.jsonSchema['definitions']['ObjectPageCustomSectionFragment'],
|
|
177
|
+
utils_1.transferSettingsOfObject(section, importParameters.manifest, importParameters.jsonSchema['definitions']['ObjectPageCustomSectionFragment'], importParameters.routingId, [], sectionId);
|
|
178
178
|
objectPageConfig.sections.custom.push(section);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
// Fill header facets
|
|
182
|
-
fillHeaderFacets(importParameters.jsonSchema, objectPageConfig, factory, importParameters.manifest,
|
|
182
|
+
fillHeaderFacets(importParameters.jsonSchema, objectPageConfig, factory, importParameters.manifest, importParameters.routingId);
|
|
183
183
|
}
|
|
184
184
|
return objectPageConfig;
|
|
185
185
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectPage.js","sourceRoot":"","sources":["../../../../../../src/sync/v4/import/pages/objectPage.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"objectPage.js","sourceRoot":"","sources":["../../../../../../src/sync/v4/import/pages/objectPage.ts"],"names":[],"mappings":";;;;;AAMA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AAQ,qBAAmB;YAC3B,OAAO,EAAE,iBAAO,CAAC,CAAC,CAAC,WAAW,CAAC;YAC/B,QAAQ,EAAE;gBACN,IAAI,EAAE,qBAAY;gBAClB,KAAK,EAAE,CAAC,oBAAe,CAAC,GAAG,EAAE,SAAS,CAAC;aAC1C;SACJ,CAAC,CAAC;QACH,OAAO;KACV;IACD,MAAM,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;IACnD,IAAI,CAAC,MAAM,EAAE;QACT,qBAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE;YACzB,QAAQ,qBAAmB;YAC3B,OAAO,EAAE,iBAAO,CAAC,CAAC,CAAC,aAAa,EAAE,EAAE,SAAS,EAAE,gBAAgB,CAAC,SAAS,EAAE,CAAC;YAC5E,QAAQ,EAAE;gBACN,IAAI,EAAE,qBAAY;gBAClB,KAAK,EAAE,CAAC,oBAAe,CAAC,GAAG,EAAE,SAAS,CAAC;aAC1C;SACJ,CAAC,CAAC;QACH,OAAO;KACV;IACD,MAAM,OAAO,GAAG,IAAI,mCAAO,EAAE,CAAC;IAE9B,kBAAkB;IAClB,OAAO,oBAAoB,CAAC,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACnE,CAAC;AA5CD,4DA4CC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Manifest } from '../../../specification/common/webapp/manifest/Manifest';
|
|
2
|
-
import { ExtensionLogger } from '../../..';
|
|
1
|
+
import type { Manifest } from '../../../specification/common/webapp/manifest/Manifest';
|
|
2
|
+
import type { ExtensionLogger } from '../../..';
|
|
3
3
|
/**
|
|
4
4
|
* Transfers settings from manifest to object page config
|
|
5
5
|
* @param configPart - part of the configuration to be filled
|
|
@@ -21,10 +21,10 @@ function transferSettingsOfObject(configPart, manifest, appSchema, pageKey, brea
|
|
|
21
21
|
for (const propertyKey in appSchema['properties']) {
|
|
22
22
|
const syncRule = decorators_1.getReflectMetadata(configPart, propertyKey);
|
|
23
23
|
if (syncRule === null || syncRule === void 0 ? void 0 : syncRule.manifest) {
|
|
24
|
-
const path = syncRule.manifest.path([pageKey], manifest, targetAnnotationEncoded, breadcrumbs
|
|
24
|
+
const path = syncRule.manifest.path([pageKey], manifest, targetAnnotationEncoded, ...breadcrumbs);
|
|
25
25
|
manifestSection = common_1.getManifestSectionByPathV4(manifest, path, sectionId, targetAnnotationEncoded, true);
|
|
26
26
|
if (manifestSection && Object.keys(manifestSection).length > 0) {
|
|
27
|
-
common_1.importProperty(syncRule, manifestSection, propertyKey, configPart, sectionId);
|
|
27
|
+
common_1.importProperty(syncRule, manifestSection, propertyKey, configPart, sectionId, breadcrumbs);
|
|
28
28
|
common_1.checkDeprecatedProperties(deprecatedProperties, manifestSection, path, logger);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/v4/import/utils.ts"],"names":[],"mappings":";;AACA,yCAAqG;AACrG,mEAAwE;AAGxE;;;;;;;;GAQG;AACH,SAAgB,wBAAwB,CACpC,UAAkC,EAClC,QAAkB,EAClB,SAAiB,EACjB,OAAe,EACf,WAAqB,EACrB,SAAkB,EAClB,MAAwB;IAExB,IAAI,CAAC,SAAS,EAAE;QACZ,OAAO;KACV;IACD,IAAI,eAAe,GAAG,EAAE,CAAC;IACzB,MAAM,oBAAoB,GAAG,UAAU,CAAC,aAAa,CAAC;IACtD,MAAM,uBAAuB,GAAG,SAAS,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAE1E,KAAK,MAAM,WAAW,IAAI,SAAS,CAAC,YAAY,CAAC,EAAE;QAC/C,MAAM,QAAQ,GAAG,+BAAkB,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QAE7D,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,EAAE;YACpB,MAAM,IAAI,GAAG,QAAQ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AoB,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;aAClF;SACJ;KACJ;AACL,CAAC;AA5BD,4DA4BC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as v4controls from './export/controls';
|
|
2
|
-
import * as v4pages from './export/pages';
|
|
1
|
+
import type * as v4controls from './export/controls';
|
|
2
|
+
import type * as v4pages from './export/pages';
|
|
3
3
|
export declare type V4Controls = typeof v4controls;
|
|
4
4
|
export declare type V4Pages = typeof v4pages;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StableIdHelper.js","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/StableIdHelper.ts"],"names":[],"mappings":";;AAEA;;GAEG;AAEH;;;;;GAKG;AACH,SAAS,OAAO,CAAC,MAAc;IAC3B,OAAO,+BAA+B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,mBAAmB,CAAC,GAAW;IAC3C,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QACzB,OAAO;KACV;IACD,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;QACvB,MAAM,GAAG,GAAG,wCAAwC,CAAC;KACxD;IACD,GAAG,GAAG,GAAG;SACJ,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,6DAA6D;SAC1F,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,uDAAuD;SACpF,OAAO,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC,CAAC,qCAAqC;IAE7E,sEAAsE;IACtE,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QAC7B,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;KACnC;IAED,kDAAkD;IAClD,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE;QACxB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,GAAG,sCAAsC,CAAC;QACjD,OAAO,IAAI,wBAAwB,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;QAC7D,OAAO,IAAI,kDAA0C,CAAC,UAAU,CAAC,CAAC;QAClE,OAAO,iBAAS,CAAC,OAAO,CAAC,CAAC;KAC7B;SAAM,IAAI,UAAU,CAAC,KAAK,IAAI,UAAU,CAAC,KAAK,+FAAkD,EAAE;QAC/F,OAAO,GAAG,+BAA+B,CAAC;QAC1C,OAAO,IAAI,wBAAwB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QACtD,IAAI,UAAU,CAAC,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,yBAAyB,CAAC,EAAE;YACnE,OAAO,IAAI,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;SAClE;QACD,OAAO,iBAAS,CAAC,OAAO,CAAC,CAAC;KAC7B;SAAM,IAAI,UAAU,CAAC,KAAK,IAAI,UAAU,CAAC,KAAK,yEAAuC,EAAE;QACpF,OAAO,GAAG,oBAAoB,CAAC;QAC/B,OAAO,IAAI,wBAAwB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QACtD,OAAO,iBAAS,CAAC,OAAO,CAAC,CAAC;KAC7B;SAAM;QACH,0CAA0C;QAC1C,8FAA8F;KACjG;IACD,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { AnnotationTerm, ConverterOutput, EntityType, LineItem, DataFieldForActionAbstractTypes
|
|
2
|
-
import { EntitySet } from '@sap-ux/annotation-converter';
|
|
3
|
-
import { ExtensionLogger } from '../../..';
|
|
4
|
-
import { SapUiAppPageV4 } from '../../../v4';
|
|
1
|
+
import type { AnnotationTerm, ConverterOutput, EntityType, LineItem, DataFieldForActionAbstractTypes } from '@sap-ux/vocabularies-types';
|
|
2
|
+
import type { EntitySet } from '@sap-ux/annotation-converter';
|
|
3
|
+
import type { ExtensionLogger } from '../../..';
|
|
4
|
+
import type { GenerateAppSchemaParameters, SapUiAppPageV4 } from '../../../v4';
|
|
5
|
+
import type { Definition } from 'typescript-json-schema';
|
|
5
6
|
/**
|
|
6
7
|
* Processes a LineItem record of type DataFieldForCation during app schema generation
|
|
7
8
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
@@ -12,13 +13,6 @@ import { SapUiAppPageV4 } from '../../../v4';
|
|
|
12
13
|
* @param recordIndex - record index in the collection
|
|
13
14
|
*/
|
|
14
15
|
export declare function handleActionRecord(appSchema: object, entityType: EntityType, actions: object, lineItemPath: string, lineItemRecord: DataFieldForActionAbstractTypes, lineItemId: string, recordIndex: number): void;
|
|
15
|
-
/**
|
|
16
|
-
* Adds the selection fields to the app schema, as properties of the Filterbar
|
|
17
|
-
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
18
|
-
* @param appSchema - the app specific schema that shall get enhanced
|
|
19
|
-
* @param selectionFieldsAnnotation - the UI.SelectionField annotation
|
|
20
|
-
*/
|
|
21
|
-
export declare function addSelectionFields(entityType: EntityType, appSchema: object, selectionFieldsAnnotation: AnnotationTerm<SelectionFields>): void;
|
|
22
16
|
/**
|
|
23
17
|
* Adds the line item definition, columns and actions to the app schema (for the list report or an object page section comprising a table)
|
|
24
18
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
@@ -26,18 +20,23 @@ export declare function addSelectionFields(entityType: EntityType, appSchema: ob
|
|
|
26
20
|
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
27
21
|
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by Annotation Vocabularies Tool
|
|
28
22
|
* @param columnDefinitionName - name of the column definition, i.e. TableColumn or ObjectPageTableColumn
|
|
29
|
-
* @param actionDefinitionName - indicates the prefix for the definition, dpending on the page type
|
|
30
23
|
* @param lineItemId - optional: in case of OP the paramter must be passed to distinguish the OP tables;
|
|
31
24
|
* in case of LR or ALP no ID is passed, 'LineItems' is taken then.
|
|
32
|
-
* @param customColumnRef - schema reference to custom column definition.
|
|
33
25
|
*/
|
|
34
26
|
export declare function addLineItemsType(appSchema: object, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, oDataServiceAVT: ConverterOutput, columnDefinitionName?: string, lineItemId?: string): void;
|
|
35
27
|
/**
|
|
36
28
|
* Find the relevant V4 page under the routing targets of manifest,json
|
|
37
29
|
* @param pages - list of all pages in manifest
|
|
38
30
|
* @param pageName - search criterion: page name
|
|
39
|
-
* @param entitySet - search criterion:
|
|
31
|
+
* @param entitySet - search criterion: entity set
|
|
40
32
|
* @param logger - logger for messages
|
|
41
33
|
* @returns the page definition in manifest (if found)
|
|
42
34
|
*/
|
|
43
35
|
export declare function findPageV4(pages: SapUiAppPageV4[], pageName: string, entitySet: EntitySet, logger: ExtensionLogger): SapUiAppPageV4 | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Depending on the template type, strip down the app schema so that only the relevant views are part of it
|
|
38
|
+
* @param {Definition} appSchema - app specific JSON schema, to be adjusted
|
|
39
|
+
* @param {GenerateAppSchemaParameters} generateParameters - object comprising all input parameters
|
|
40
|
+
* @returns the right definition name for the table in the schema
|
|
41
|
+
*/
|
|
42
|
+
export declare function alignSchemaWithTemplateType(appSchema: Definition, generateParameters: GenerateAppSchemaParameters): string;
|
|
@@ -9,6 +9,7 @@ const common_1 = require("../../common");
|
|
|
9
9
|
const i18next_1 = __importDefault(require("i18next"));
|
|
10
10
|
const __1 = require("../../..");
|
|
11
11
|
const v4_1 = require("../../../v4");
|
|
12
|
+
const v4_2 = require("../../../v4");
|
|
12
13
|
/**
|
|
13
14
|
* Processes a LineItem record of type DataFieldForCation during app schema generation
|
|
14
15
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
@@ -22,17 +23,26 @@ function handleActionRecord(appSchema, entityType, actions, lineItemPath, lineIt
|
|
|
22
23
|
// Action but not inline action
|
|
23
24
|
if (lineItemRecord.Determining !== true) {
|
|
24
25
|
//no footer bar -> toolbar action
|
|
25
|
-
|
|
26
|
+
let actionDefinitionName;
|
|
27
|
+
if (lineItemId.startsWith('LineItemsOfView')) {
|
|
28
|
+
actionDefinitionName = v4_1.DefinitionName.ViewToolBarAction;
|
|
29
|
+
}
|
|
30
|
+
else if (lineItemId.startsWith('LineItems')) {
|
|
31
|
+
actionDefinitionName = v4_1.DefinitionName.ToolBarAction;
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
actionDefinitionName = v4_1.DefinitionName.ObjectPageToolBarAction;
|
|
35
|
+
}
|
|
26
36
|
const actionDefinition = common_1.prepareRef(`${actionDefinitionName}<${lineItemRecord.Action}>`);
|
|
27
37
|
const description = utils_1.getDatafieldDescription(lineItemRecord, entityType);
|
|
28
|
-
|
|
38
|
+
const prefix = lineItemRecord.$Type.split(`${common_1.UIVOCABULARY}.`)[1];
|
|
39
|
+
actions['properties'][`${prefix}::${lineItemRecord.Action}`] = {
|
|
29
40
|
$ref: utils_1.DEFINITION_LINK_PREFIX + actionDefinition,
|
|
30
41
|
description,
|
|
31
42
|
propertyIndex: recordIndex,
|
|
32
43
|
annotationType: lineItemRecord.$Type
|
|
33
44
|
};
|
|
34
|
-
|
|
35
|
-
appSchema['definitions'][actionDefinition] = JSON.parse(JSON.stringify(appSchema['definitions'][actionId]));
|
|
45
|
+
appSchema['definitions'][actionDefinition] = JSON.parse(JSON.stringify(appSchema['definitions'][actionDefinitionName]));
|
|
36
46
|
appSchema['definitions'][actionDefinition].annotationPath = lineItemPath + '/' + recordIndex;
|
|
37
47
|
}
|
|
38
48
|
}
|
|
@@ -60,46 +70,6 @@ function handleLineItemRecord(lineItem, appSchema, columnDefinitionName, entityT
|
|
|
60
70
|
}
|
|
61
71
|
}
|
|
62
72
|
}
|
|
63
|
-
/**
|
|
64
|
-
* Adds the selection fields to the app schema, as properties of the Filterbar
|
|
65
|
-
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
66
|
-
* @param appSchema - the app specific schema that shall get enhanced
|
|
67
|
-
* @param selectionFieldsAnnotation - the UI.SelectionField annotation
|
|
68
|
-
*/
|
|
69
|
-
function addSelectionFields(entityType, appSchema, selectionFieldsAnnotation) {
|
|
70
|
-
const selectionFieldsDefinition = appSchema['definitions'].SelectionFields;
|
|
71
|
-
selectionFieldsDefinition.additionalProperties = false;
|
|
72
|
-
selectionFieldsDefinition.properties = {};
|
|
73
|
-
selectionFieldsDefinition.annotationPath = common_1.createAnnotationPath(entityType.fullyQualifiedName, "com.sap.vocabularies.UI.v1.SelectionFields" /* SelectionFields */);
|
|
74
|
-
if (!selectionFieldsAnnotation) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
let i = 0;
|
|
78
|
-
selectionFieldsAnnotation.forEach((selectionField) => {
|
|
79
|
-
var _a;
|
|
80
|
-
let description = selectionField.value;
|
|
81
|
-
const fieldDefinition = 'SelectionField::' + common_1.prepareRef(selectionField.value);
|
|
82
|
-
if (selectionField.type === 'PropertyPath') {
|
|
83
|
-
description = common_1.getLabelForPropertyPath(selectionField, entityType);
|
|
84
|
-
}
|
|
85
|
-
selectionFieldsDefinition['properties'][fieldDefinition] = {
|
|
86
|
-
$ref: utils_1.DEFINITION_LINK_PREFIX + fieldDefinition,
|
|
87
|
-
propertyIndex: i
|
|
88
|
-
};
|
|
89
|
-
appSchema['definitions'][fieldDefinition] = {
|
|
90
|
-
type: 'object',
|
|
91
|
-
properties: {},
|
|
92
|
-
description,
|
|
93
|
-
annotationPath: `${selectionFieldsDefinition.annotationPath}/${i}`,
|
|
94
|
-
isViewNode: true,
|
|
95
|
-
additionalProperties: false,
|
|
96
|
-
annotationType: selectionField === null || selectionField === void 0 ? void 0 : selectionField.type,
|
|
97
|
-
dataType: (_a = selectionField === null || selectionField === void 0 ? void 0 : selectionField.$target) === null || _a === void 0 ? void 0 : _a.type.replace('Edm.', '')
|
|
98
|
-
};
|
|
99
|
-
i++;
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
exports.addSelectionFields = addSelectionFields;
|
|
103
73
|
/**
|
|
104
74
|
* Adds the line item definition, columns and actions to the app schema (for the list report or an object page section comprising a table)
|
|
105
75
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
@@ -107,10 +77,8 @@ exports.addSelectionFields = addSelectionFields;
|
|
|
107
77
|
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
108
78
|
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by Annotation Vocabularies Tool
|
|
109
79
|
* @param columnDefinitionName - name of the column definition, i.e. TableColumn or ObjectPageTableColumn
|
|
110
|
-
* @param actionDefinitionName - indicates the prefix for the definition, dpending on the page type
|
|
111
80
|
* @param lineItemId - optional: in case of OP the paramter must be passed to distinguish the OP tables;
|
|
112
81
|
* in case of LR or ALP no ID is passed, 'LineItems' is taken then.
|
|
113
|
-
* @param customColumnRef - schema reference to custom column definition.
|
|
114
82
|
*/
|
|
115
83
|
function addLineItemsType(appSchema, lineItemAnnotation, entityType, oDataServiceAVT, columnDefinitionName = v4_1.DefinitionName.TableColumn, lineItemId) {
|
|
116
84
|
// Add the correct lineItem definition
|
|
@@ -141,7 +109,7 @@ exports.addLineItemsType = addLineItemsType;
|
|
|
141
109
|
* Find the relevant V4 page under the routing targets of manifest,json
|
|
142
110
|
* @param pages - list of all pages in manifest
|
|
143
111
|
* @param pageName - search criterion: page name
|
|
144
|
-
* @param entitySet - search criterion:
|
|
112
|
+
* @param entitySet - search criterion: entity set
|
|
145
113
|
* @param logger - logger for messages
|
|
146
114
|
* @returns the page definition in manifest (if found)
|
|
147
115
|
*/
|
|
@@ -149,7 +117,9 @@ function findPageV4(pages, pageName, entitySet, logger) {
|
|
|
149
117
|
var _a, _b;
|
|
150
118
|
let v4Page;
|
|
151
119
|
for (const i in pages) {
|
|
152
|
-
if (((_b = (_a = pages[i].options) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.entitySet) === entitySet.name &&
|
|
120
|
+
if (((_b = (_a = pages[i].options) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.entitySet) === entitySet.name &&
|
|
121
|
+
(pages[i].name === pageName ||
|
|
122
|
+
(pageName === v4_2.FE_TEMPLATE_V4_ALP && pages[i].name === v4_2.FE_TEMPLATE_V4_LIST_REPORT))) {
|
|
153
123
|
v4Page = pages[i];
|
|
154
124
|
break;
|
|
155
125
|
}
|
|
@@ -167,4 +137,31 @@ function findPageV4(pages, pageName, entitySet, logger) {
|
|
|
167
137
|
return v4Page;
|
|
168
138
|
}
|
|
169
139
|
exports.findPageV4 = findPageV4;
|
|
140
|
+
/**
|
|
141
|
+
* Depending on the template type, strip down the app schema so that only the relevant views are part of it
|
|
142
|
+
* @param {Definition} appSchema - app specific JSON schema, to be adjusted
|
|
143
|
+
* @param {GenerateAppSchemaParameters} generateParameters - object comprising all input parameters
|
|
144
|
+
* @returns the right definition name for the table in the schema
|
|
145
|
+
*/
|
|
146
|
+
function alignSchemaWithTemplateType(appSchema, generateParameters) {
|
|
147
|
+
let tableDefinitionName;
|
|
148
|
+
if (generateParameters.templateType === utils_1.TemplateType.AnalyticalListPageV4) {
|
|
149
|
+
delete appSchema.properties['table']['anyOf'];
|
|
150
|
+
appSchema.properties['table']['$ref'] = `${utils_1.DEFINITION_LINK_PREFIX}${v4_1.DefinitionName.ALPTableView}`;
|
|
151
|
+
tableDefinitionName = v4_1.DefinitionName.ALPTableView;
|
|
152
|
+
delete appSchema.definitions[v4_1.DefinitionName.Table];
|
|
153
|
+
delete appSchema.definitions[v4_1.DefinitionName.LRChartView];
|
|
154
|
+
delete appSchema.definitions[v4_1.DefinitionName.LRTableView];
|
|
155
|
+
delete appSchema.definitions['MultiTableModeV4'];
|
|
156
|
+
}
|
|
157
|
+
else if (generateParameters.templateType === utils_1.TemplateType.ListReportObjectPageV4) {
|
|
158
|
+
delete appSchema.properties['table']['anyOf'];
|
|
159
|
+
appSchema.properties['table']['$ref'] = `${utils_1.DEFINITION_LINK_PREFIX}${v4_1.DefinitionName.Table}`;
|
|
160
|
+
tableDefinitionName = v4_1.DefinitionName.Table;
|
|
161
|
+
delete appSchema.definitions[v4_1.DefinitionName.ALPTableView];
|
|
162
|
+
appSchema.properties['defaultPath']['hidden'] = true;
|
|
163
|
+
}
|
|
164
|
+
return tableDefinitionName;
|
|
165
|
+
}
|
|
166
|
+
exports.alignSchemaWithTemplateType = alignSchemaWithTemplateType;
|
|
170
167
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/utils.ts"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/utils.ts"],"names":[],"mappings":";;;;;AAAA,8CAA8G;AAC9G,qDAAgE;AAUhE,yCAAoG;AAEpG,sDAA8B;AAC9B,gCAA6D;AAE7D,oCAA6C;AAE7C,oCAA6E;AAG7E;;;;;;;;GAQG;AACH,SAAgB,kBAAkB,CAC9B,SAAiB,EACjB,UAAsB,EACtB,OAAe,EACf,YAAoB,EACpB,cAA+C,EAC/C,UAAkB,EAClB,WAAmB;IAEnB,+BAA+B;IAC/B,IAAI,cAAc,CAAC,WAAW,KAAK,IAAI,EAAE;QACrC,iCAAiC;QACjC,IAAI,oBAA4B,CAAC;QACjC,IAAI,UAAU,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE;YAC1C,oBAAoB,GAAG,mBAAc,CAAC,iBAAiB,CAAC;SAC3D;aAAM,IAAI,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE;YAC3C,oBAAoB,GAAG,mBAAc,CAAC,aAAa,CAAC;SACvD;aAAM;YACH,oBAAoB,GAAG,mBAAc,CAAC,uBAAuB,CAAC;SACjE;QACD,MAAM,gBAAgB,GAAG,mBAAU,CAAC,GAAG,oBAAoB,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC;QACzF,MAAM,WAAW,GAAG,+BAAuB,CAA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Y,CAAC,CAAC;QAC1D,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;KACxD;IACD,OAAO,mBAAmB,CAAC;AAC/B,CAAC;AArBD,kEAqBC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Project } from '../../src/project';
|
|
1
|
+
import type { Project } from '../../src/project';
|
|
2
2
|
export declare const getProjects: () => Promise<Project[]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FileData } from '../../src';
|
|
2
|
-
import { ExtensionLogger } from '../../src';
|
|
3
|
-
import { Location } from '../../src/extensionLogger';
|
|
4
|
-
import { ExportResults } from '../../src/sync/common';
|
|
1
|
+
import type { FileData } from '../../src';
|
|
2
|
+
import type { ExtensionLogger } from '../../src';
|
|
3
|
+
import type { Location } from '../../src/extensionLogger';
|
|
4
|
+
import type { ExportResults } from '../../src/sync/common';
|
|
5
5
|
export declare class Logger implements ExtensionLogger {
|
|
6
6
|
logInfo: string[];
|
|
7
7
|
logWarning: string[];
|
|
@@ -22,6 +22,7 @@ export declare function getSDV4Annotations(): FileData[];
|
|
|
22
22
|
export declare function getSTTAAnnotationsProdMan2(): FileData[];
|
|
23
23
|
export declare function getExtensionsProdMan2(): FileData[];
|
|
24
24
|
export declare function getSEPMRAAnnotations(): FileData[];
|
|
25
|
+
export declare function getExtensionsForS2pMmPurSrcgprojMaintains1(specificFiles?: string[]): FileData[];
|
|
25
26
|
export declare function findFlexChangeBySelector(exportResult: ExportResults, selectorId: string, property: string): object;
|
|
26
27
|
/**
|
|
27
28
|
* Function to find out the flexChange from a list. Uses global variable exportResult
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/ux-specification",
|
|
3
|
-
"version": "1.90.
|
|
3
|
+
"version": "1.90.24",
|
|
4
4
|
"displayName": "SAP Fiori tools - Specification",
|
|
5
5
|
"description": "SAP Fiori tools - Specification",
|
|
6
6
|
"files": [
|
|
@@ -28,11 +28,12 @@
|
|
|
28
28
|
"test": "jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
|
|
29
29
|
"test:ci": "jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
|
|
30
30
|
"update-snapshots": "jest --updateSnapshot",
|
|
31
|
+
"build:snap": "yarn build:dev && yarn update-snapshots",
|
|
31
32
|
"lint": "eslint . --ext .ts",
|
|
32
33
|
"lint:summary": "eslint . --ext .ts -f summary",
|
|
33
|
-
"lint:fix": "eslint . --
|
|
34
|
-
"lint:report": "eslint . --
|
|
35
|
-
"lint:report:jslint": "eslint . --
|
|
34
|
+
"lint:fix": "eslint . --ext .ts --fix",
|
|
35
|
+
"lint:report": "eslint . --ext .ts -f multiple",
|
|
36
|
+
"lint:report:jslint": "eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",
|
|
36
37
|
"docuV2": "node dist/scripts/extractDocu.js --version=v2 format=excel",
|
|
37
38
|
"docuV4": "node dist/scripts/extractDocu.js --version=v4 format=excel",
|
|
38
39
|
"iXiaSoftV2": "node dist/scripts/extractDocu.js --version=v2 --format=iXiaSoft",
|
|
@@ -53,19 +54,19 @@
|
|
|
53
54
|
"@types/jest": "26.0.23",
|
|
54
55
|
"@types/jquery": "3.5.6",
|
|
55
56
|
"@types/sax": "1.2.1",
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "
|
|
57
|
-
"@typescript-eslint/parser": "
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "5.12.1",
|
|
58
|
+
"@typescript-eslint/parser": "5.12.1",
|
|
58
59
|
"@ui5/flexibility-utils": "0.1.3",
|
|
59
60
|
"ajv": "6.12.6",
|
|
60
61
|
"cpy-cli": "3.1.1",
|
|
61
62
|
"d3": "7.1.1",
|
|
62
63
|
"deepmerge": "4.2.2",
|
|
63
64
|
"ejs": "3.1.6",
|
|
64
|
-
"eslint": "7.
|
|
65
|
+
"eslint": "7.32.0",
|
|
65
66
|
"eslint-formatter-multiple": "1.0.0",
|
|
66
|
-
"eslint-plugin-prettier": "3.
|
|
67
|
+
"eslint-plugin-prettier": "3.4.1",
|
|
68
|
+
"eslint-config-prettier": "8.3.0",
|
|
67
69
|
"excel4node": "1.7.2",
|
|
68
|
-
"http-server": "13.0.1",
|
|
69
70
|
"i18next": "20.3.1",
|
|
70
71
|
"jest": "26.6.3",
|
|
71
72
|
"jest-file-snapshot": "0.5.0",
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
"jquery": "3.6.0",
|
|
74
75
|
"lodash.unset": "4.5.2",
|
|
75
76
|
"path": "0.12.7",
|
|
76
|
-
"prettier": "
|
|
77
|
+
"prettier": "2.5.1",
|
|
77
78
|
"reflect-metadata": "0.1.13",
|
|
78
79
|
"rimraf": "3.0.2",
|
|
79
80
|
"sax": "1.2.4",
|