@sap/ux-specification 1.84.32 → 1.84.37
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 +81 -16
- 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 +9 -5
- package/dist/schemas/v2/ApplicationV2.json +11 -11
- package/dist/schemas/v2/ListReportConfig.json +11 -7
- package/dist/schemas/v2/ObjectPageConfig.json +11 -7
- package/dist/schemas/v4/ApplicationV4.json +9 -5
- package/dist/schemas/v4/ListReportConfig.json +590 -165
- package/dist/schemas/v4/ObjectPageConfig.json +36 -0
- package/dist/scripts/extractDocu.js.map +1 -1
- package/dist/scripts/runDocu.js +10 -40
- 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 +16 -19
- 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/project.js +11 -3
- package/dist/src/project.js.map +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/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 +3 -4
- package/dist/src/specification/v2/controls/ObjectPageToolBar.d.ts +1 -1
- package/dist/src/specification/v2/controls/Table.d.ts +8 -5
- package/dist/src/specification/v2/controls/Table.js +5 -0
- package/dist/src/specification/v2/controls/Table.js.map +1 -1
- 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 +3 -3
- 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/ObjectPageSection.d.ts +24 -3
- package/dist/src/specification/v4/controls/ObjectPageSection.js.map +1 -1
- package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +3 -17
- package/dist/src/specification/v4/controls/ObjectPageToolBar.d.ts +1 -1
- package/dist/src/specification/v4/controls/Table.d.ts +148 -33
- 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 +22 -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 +21 -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 +27 -22
- 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 +9 -7
- package/dist/src/sync/common/generate/objectPage.js +69 -73
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +51 -18
- package/dist/src/sync/common/generate/utils.js +126 -68
- 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 +33 -41
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/types.d.ts +110 -13
- package/dist/src/sync/common/types.js +107 -7
- package/dist/src/sync/common/types.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +23 -15
- package/dist/src/sync/common/utils.js +138 -72
- 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 +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 +2 -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 +110 -34
- 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 +2 -2
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +4 -5
- 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/ObjectPageToolBarAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Table.d.ts +5 -4
- package/dist/src/sync/v2/export/controls/Table.js +89 -47
- 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/TableColumn.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ToolBar.d.ts +1 -1
- package/dist/src/sync/v2/export/export.d.ts +3 -4
- package/dist/src/sync/v2/export/export.js +222 -160
- 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 +4 -11
- 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 +23 -1
- package/dist/src/sync/v2/export/manifest.js +77 -35
- 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 -3
- package/dist/src/sync/v2/export/pages/OverviewPage.js +20 -15
- 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 +27 -36
- 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 +38 -36
- 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 +98 -96
- 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 +8 -7
- package/dist/src/sync/v2/generate/utils.js +73 -69
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/app/appProvider.d.ts +13 -4
- package/dist/src/sync/v2/import/app/appProvider.js +36 -13
- 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 +1 -1
- 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 +9 -22
- 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 +1 -9
- 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/objectPage.d.ts +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +36 -44
- 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 +1 -1
- 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 +16 -2
- 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 +28 -12
- package/dist/src/sync/v4/application.js +85 -15
- 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.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 +109 -8
- package/dist/src/sync/v4/export/controls/Table.js +406 -44
- 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 +248 -2
- 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 +465 -96
- 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 +1 -1
- package/dist/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/src/sync/v4/export/pages/ListReport.d.ts +9 -3
- package/dist/src/sync/v4/export/pages/ListReport.js +49 -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/ObjectPage.js +3 -2
- package/dist/src/sync/v4/export/pages/ObjectPage.js.map +1 -1
- 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 +8 -6
- 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 +450 -36
- 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 +302 -146
- 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 +38 -32
- 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 +120 -29
- package/dist/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v4/import/pages/objectPage.d.ts +15 -2
- package/dist/src/sync/v4/import/pages/objectPage.js +69 -40
- package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/utils.d.ts +4 -3
- 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 +4 -2
- package/dist/src/sync/v4/utils/StableIdHelper.js +13 -10
- package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/src/sync/v4/utils/utils.d.ts +18 -12
- package/dist/src/sync/v4/utils/utils.js +77 -30
- 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/dist/test/unit/export/manifest.test.d.ts +1 -0
- package/package.json +17 -14
- package/dist/documentation/v4/v4-AnalyticalListPage.html +0 -49
- package/dist/schemas/v4/AnalyticalListPageConfig.json +0 -362
- 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
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
import { ObjectPageConfig as ObjectPageConfigV4 } from '../../../../specification/v4/';
|
|
2
|
-
import { ImportObjectPageV4Parameters } from '../../../../apiTypes';
|
|
1
|
+
import type { ObjectPageConfig as ObjectPageConfigV4 } from '../../../../specification/v4/';
|
|
2
|
+
import type { ImportObjectPageV4Parameters } from '../../../../apiTypes';
|
|
3
|
+
/**
|
|
4
|
+
* Converts section ID to manifest ID (replaces '::' with ['/', '#'])
|
|
5
|
+
* @param sectionId - converted ID of the given object page section
|
|
6
|
+
* @param splitOnLt - split ID and get only part in <...>
|
|
7
|
+
* @returns manifest ID
|
|
8
|
+
*/
|
|
9
|
+
export declare function getManifestId(sectionId: string, splitOnLt?: boolean): string;
|
|
10
|
+
/**
|
|
11
|
+
* Converts manifest ID to definition ID (replaces ['#', '/'] with '::')
|
|
12
|
+
* @param manifestId - ID of the given object page section in manifest
|
|
13
|
+
* @returns definition ID
|
|
14
|
+
*/
|
|
15
|
+
export declare function getDefinitionId(manifestId: string): string;
|
|
3
16
|
/**
|
|
4
17
|
* External API: Create configuration (file content) for a V4 object page
|
|
5
18
|
* @param {ImportObjectPageV4Parameters} importParameters - object comprising all input data
|
|
@@ -11,6 +11,28 @@ const i18next_1 = __importDefault(require("i18next"));
|
|
|
11
11
|
const extensionLogger_1 = require("../../../../extensionLogger");
|
|
12
12
|
const i18n_1 = require("../../../../i18n/i18n");
|
|
13
13
|
const factory_1 = require("../../export/factory");
|
|
14
|
+
/**
|
|
15
|
+
* Converts section ID to manifest ID (replaces '::' with ['/', '#'])
|
|
16
|
+
* @param sectionId - converted ID of the given object page section
|
|
17
|
+
* @param splitOnLt - split ID and get only part in <...>
|
|
18
|
+
* @returns manifest ID
|
|
19
|
+
*/
|
|
20
|
+
function getManifestId(sectionId, splitOnLt = false) {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
const tableId = splitOnLt ? (_a = sectionId.split('<')[1]) === null || _a === void 0 ? void 0 : _a.slice(0, -1) : sectionId;
|
|
23
|
+
const pathParts = tableId.split(`@${"com.sap.vocabularies.UI.v1.LineItem" /* LineItem */}`);
|
|
24
|
+
return `${(_b = pathParts[0]) === null || _b === void 0 ? void 0 : _b.replace(/::/g, '/')}@${"com.sap.vocabularies.UI.v1.LineItem" /* LineItem */}${pathParts[1].replace(/::/g, '#')}`;
|
|
25
|
+
}
|
|
26
|
+
exports.getManifestId = getManifestId;
|
|
27
|
+
/**
|
|
28
|
+
* Converts manifest ID to definition ID (replaces ['#', '/'] with '::')
|
|
29
|
+
* @param manifestId - ID of the given object page section in manifest
|
|
30
|
+
* @returns definition ID
|
|
31
|
+
*/
|
|
32
|
+
function getDefinitionId(manifestId) {
|
|
33
|
+
return manifestId.replace(/#/g, '::').replace(/\//g, '::');
|
|
34
|
+
}
|
|
35
|
+
exports.getDefinitionId = getDefinitionId;
|
|
14
36
|
/**
|
|
15
37
|
* Fills the section table columns in a V4 config
|
|
16
38
|
* @param {ImportObjectPageV4Parameters} importParameters - object comprising all input data
|
|
@@ -21,11 +43,11 @@ const factory_1 = require("../../export/factory");
|
|
|
21
43
|
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
22
44
|
* @param v4Page - page definition in V4 format
|
|
23
45
|
*/
|
|
24
|
-
function fillTableColumnsInConfig(importParameters, manifestSection, configPart, sectionId,
|
|
46
|
+
function fillTableColumnsInConfig(importParameters, manifestSection, configPart, sectionId, factory, manifestSectionId) {
|
|
25
47
|
if (manifestSection['columns']) {
|
|
26
48
|
configPart[sectionId].table.columns = {};
|
|
27
49
|
let tableDefinition;
|
|
28
|
-
const lineItems = importParameters.jsonSchema
|
|
50
|
+
const lineItems = importParameters.jsonSchema.definitions[getDefinitionId(manifestSectionId)];
|
|
29
51
|
if (lineItems) {
|
|
30
52
|
for (const columnKey in lineItems.properties) {
|
|
31
53
|
const columnInSchema = lineItems.properties[columnKey];
|
|
@@ -36,7 +58,7 @@ function fillTableColumnsInConfig(importParameters, manifestSection, configPart,
|
|
|
36
58
|
tableDefinition = common_2.DefinitionName.ObjectPageTableColumn;
|
|
37
59
|
}
|
|
38
60
|
const columnInConfig = factory.createInstance(common_1.PageTypeV4.ObjectPage, tableDefinition);
|
|
39
|
-
utils_1.transferSettingsOfObject(columnInConfig, importParameters.manifest, importParameters.jsonSchema
|
|
61
|
+
utils_1.transferSettingsOfObject(columnInConfig, importParameters.manifest, importParameters.jsonSchema.definitions[tableDefinition], importParameters.routingId, [columnKey], manifestSectionId);
|
|
40
62
|
if (Object.keys(columnInConfig).length > 0) {
|
|
41
63
|
configPart[sectionId].table.columns[columnKey] = columnInConfig;
|
|
42
64
|
}
|
|
@@ -46,19 +68,20 @@ function fillTableColumnsInConfig(importParameters, manifestSection, configPart,
|
|
|
46
68
|
}
|
|
47
69
|
/**
|
|
48
70
|
* Fills the table actions in config.json
|
|
49
|
-
* @param {ImportObjectPageV4Parameters} importParameters
|
|
71
|
+
* @param {ImportObjectPageV4Parameters} importParameters - object comprising all input data
|
|
50
72
|
* @param sectionId - ID of the current section
|
|
51
73
|
* @param configPart - the given part of the object page config
|
|
52
74
|
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
53
75
|
* @param v4Page - current (object) page
|
|
54
76
|
*/
|
|
55
|
-
function fillTableActionsInConfig(importParameters, sectionId, configPart, factory,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
77
|
+
function fillTableActionsInConfig(importParameters, sectionId, configPart, factory, manifestSectionId = sectionId) {
|
|
78
|
+
var _a;
|
|
79
|
+
const actionsDefinition = importParameters.jsonSchema.definitions[`${common_2.DefinitionName.Actions}<${getDefinitionId(manifestSectionId)}>`];
|
|
80
|
+
if (actionsDefinition) {
|
|
81
|
+
for (const actionKey in actionsDefinition['properties']) {
|
|
82
|
+
configPart[sectionId].table.toolBar.actions[actionKey] = factory.createInstance(common_1.PageTypeV4.ObjectPage, common_2.DefinitionName.ObjectPageToolBarAction);
|
|
83
|
+
const action = (_a = actionKey.split('DataFieldForAction::')[1]) === null || _a === void 0 ? void 0 : _a.replace('/', '??');
|
|
84
|
+
utils_1.transferSettingsOfObject(configPart[sectionId].table.toolBar.actions[actionKey], importParameters.manifest, importParameters.jsonSchema.definitions[`${common_2.DefinitionName.ObjectPageToolBarAction}<${action}>`], importParameters.routingId, [actionKey.replace('/', '??')], manifestSectionId);
|
|
62
85
|
if (Object.keys(configPart[sectionId].table.toolBar.actions[actionKey]).length === 0) {
|
|
63
86
|
delete configPart[sectionId].table.toolBar.actions[actionKey];
|
|
64
87
|
}
|
|
@@ -74,20 +97,20 @@ function fillTableActionsInConfig(importParameters, sectionId, configPart, facto
|
|
|
74
97
|
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
75
98
|
* @param v4Page - current (object) page
|
|
76
99
|
*/
|
|
77
|
-
function fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory,
|
|
78
|
-
const manifestSectionId = sectionId
|
|
100
|
+
function fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory, tableId) {
|
|
101
|
+
const manifestSectionId = tableId ? tableId : getManifestId(sectionId);
|
|
79
102
|
const manifestSection = manifestSettings.controlConfiguration[manifestSectionId];
|
|
80
103
|
if (manifestSection) {
|
|
81
104
|
// Data needs to be transferred
|
|
82
105
|
configPart[sectionId] = {};
|
|
83
|
-
configPart[sectionId].table = factory.createInstance(common_1.PageTypeV4.ObjectPage,
|
|
84
|
-
const sectionDefinition =
|
|
85
|
-
utils_1.transferSettingsOfObject(configPart[sectionId].table, importParameters.manifest, importParameters.jsonSchema
|
|
86
|
-
configPart[sectionId].table.toolBar = factory.createInstance(common_1.PageTypeV4.ObjectPage,
|
|
106
|
+
configPart[sectionId].table = factory.createInstance(common_1.PageTypeV4.ObjectPage, common_2.DefinitionName.ObjectPageTable);
|
|
107
|
+
const sectionDefinition = `${common_2.DefinitionName.ObjectPageTable}<${tableId ? getDefinitionId(tableId) : sectionId}>`;
|
|
108
|
+
utils_1.transferSettingsOfObject(configPart[sectionId].table, importParameters.manifest, importParameters.jsonSchema.definitions[sectionDefinition], importParameters.routingId, [], manifestSectionId);
|
|
109
|
+
configPart[sectionId].table.toolBar = factory.createInstance(common_1.PageTypeV4.ObjectPage, common_2.DefinitionName.ToolBar, {
|
|
87
110
|
actions: {}
|
|
88
111
|
});
|
|
89
|
-
fillTableActionsInConfig(importParameters, sectionId, configPart, factory,
|
|
90
|
-
fillTableColumnsInConfig(importParameters, manifestSection, configPart, sectionId,
|
|
112
|
+
fillTableActionsInConfig(importParameters, sectionId, configPart, factory, manifestSectionId);
|
|
113
|
+
fillTableColumnsInConfig(importParameters, manifestSection, configPart, sectionId, factory, manifestSectionId);
|
|
91
114
|
}
|
|
92
115
|
}
|
|
93
116
|
/**
|
|
@@ -99,19 +122,25 @@ function fillTableInConfig(importParameters, manifestSettings, configPart, secti
|
|
|
99
122
|
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
100
123
|
* @param v4Page - current (object) page
|
|
101
124
|
*/
|
|
102
|
-
function fillSectionsInConfig(importParameters, sectionProperties, manifestSettings, configPart, factory
|
|
125
|
+
function fillSectionsInConfig(importParameters, sectionProperties, manifestSettings, configPart, factory) {
|
|
126
|
+
var _a, _b, _c;
|
|
103
127
|
for (const sectionId in sectionProperties) {
|
|
104
128
|
const schemaSection = sectionProperties[sectionId];
|
|
105
|
-
|
|
106
|
-
|
|
129
|
+
let tableManifestId = sectionId;
|
|
130
|
+
if (((_a = schemaSection.$ref) === null || _a === void 0 ? void 0 : _a.includes("com.sap.vocabularies.UI.v1.LineItem" /* LineItem */)) && ((_b = schemaSection.$ref) === null || _b === void 0 ? void 0 : _b.startsWith(common_2.DEFINITION_LINK_PREFIX + common_2.DefinitionName.ObjectPageSectionPresentationVariant))) {
|
|
131
|
+
const sectionIdRef = schemaSection['$ref'].split(common_2.DEFINITION_LINK_PREFIX)[1];
|
|
132
|
+
tableManifestId = sectionIdRef ? getManifestId(sectionIdRef, true) : sectionId;
|
|
133
|
+
fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory, tableManifestId);
|
|
134
|
+
}
|
|
135
|
+
else if ((_c = schemaSection.$ref) === null || _c === void 0 ? void 0 : _c.startsWith(common_2.DEFINITION_LINK_PREFIX + common_2.DefinitionName.ObjectPageSectionTableV4)) {
|
|
107
136
|
// Section without subsections
|
|
108
|
-
fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory
|
|
137
|
+
fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory);
|
|
109
138
|
}
|
|
110
|
-
else if (schemaSection
|
|
139
|
+
else if (schemaSection.properties && schemaSection.properties.subsections) {
|
|
111
140
|
configPart[sectionId] = {
|
|
112
141
|
subsections: {}
|
|
113
142
|
};
|
|
114
|
-
fillSectionsInConfig(importParameters, schemaSection
|
|
143
|
+
fillSectionsInConfig(importParameters, schemaSection.properties.subsections['properties'], manifestSettings, configPart[sectionId].subsections, factory);
|
|
115
144
|
}
|
|
116
145
|
}
|
|
117
146
|
}
|
|
@@ -123,21 +152,21 @@ function fillSectionsInConfig(importParameters, sectionProperties, manifestSetti
|
|
|
123
152
|
* @param manifest - manifest.json of the app
|
|
124
153
|
* @param v4Page - current (object) page
|
|
125
154
|
*/
|
|
126
|
-
function fillHeaderFacets(appSchema, objectPageConfig, factory, manifest,
|
|
127
|
-
var _a, _b;
|
|
128
|
-
const headerSections = appSchema
|
|
155
|
+
function fillHeaderFacets(appSchema, objectPageConfig, factory, manifest, routingId) {
|
|
156
|
+
var _a, _b, _c;
|
|
157
|
+
const headerSections = appSchema.definitions[common_2.DefinitionName.HeaderSections];
|
|
129
158
|
if (headerSections && headerSections.properties) {
|
|
130
159
|
objectPageConfig.header.sections = {};
|
|
131
160
|
for (const sectionId in headerSections.properties) {
|
|
132
161
|
const sectionDefinitionKey = (_a = headerSections.properties[sectionId]['$ref']) === null || _a === void 0 ? void 0 : _a.split(common_2.DEFINITION_LINK_PREFIX)[1];
|
|
133
162
|
const sectionDefinition = sectionDefinitionKey
|
|
134
|
-
? appSchema
|
|
163
|
+
? appSchema.definitions[sectionDefinitionKey]
|
|
135
164
|
: headerSections.properties[sectionId];
|
|
136
165
|
const factoryKey = sectionDefinitionKey ? sectionDefinitionKey.split('<')[0] : undefined;
|
|
137
166
|
objectPageConfig.header.sections[sectionId] = factoryKey
|
|
138
167
|
? factory.createInstance(common_1.PageTypeV4.ObjectPage, factoryKey)
|
|
139
168
|
: {};
|
|
140
|
-
utils_1.transferSettingsOfObject(objectPageConfig.header.sections[sectionId], manifest, sectionDefinition,
|
|
169
|
+
utils_1.transferSettingsOfObject(objectPageConfig.header.sections[sectionId], manifest, sectionDefinition, routingId, [], (_c = (_b = sectionDefinition) === null || _b === void 0 ? void 0 : _b.title) === null || _c === void 0 ? void 0 : _c.split(common_2.FacetTitlePrefix)[1]);
|
|
141
170
|
}
|
|
142
171
|
}
|
|
143
172
|
}
|
|
@@ -153,33 +182,33 @@ function fillObjectPageConfig(importParameters, v4Page, factory) {
|
|
|
153
182
|
const objectPageConfig = factory.createPageInstance(common_1.PageTypeV4.ObjectPage);
|
|
154
183
|
const manifestSettings = v4Page.options && v4Page.options.settings;
|
|
155
184
|
// Transfer header information
|
|
156
|
-
objectPageConfig.header = factory.createInstance(common_1.PageTypeV4.ObjectPage,
|
|
157
|
-
utils_1.transferSettingsOfObject(objectPageConfig.header, importParameters.manifest, importParameters.jsonSchema
|
|
185
|
+
objectPageConfig.header = factory.createInstance(common_1.PageTypeV4.ObjectPage, common_2.DefinitionName.ObjectPageHeader);
|
|
186
|
+
utils_1.transferSettingsOfObject(objectPageConfig.header, importParameters.manifest, importParameters.jsonSchema.definitions[common_2.DefinitionName.ObjectPageHeader], importParameters.routingId, []);
|
|
158
187
|
// Transfer layout information
|
|
159
|
-
objectPageConfig.layout = factory.createInstance(common_1.PageTypeV4.ObjectPage,
|
|
160
|
-
utils_1.transferSettingsOfObject(objectPageConfig.layout, importParameters.manifest, importParameters.jsonSchema
|
|
161
|
-
utils_1.transferSettingsOfObject(objectPageConfig, importParameters.manifest, importParameters.jsonSchema,
|
|
188
|
+
objectPageConfig.layout = factory.createInstance(common_1.PageTypeV4.ObjectPage, common_2.DefinitionName.ObjectPageLayout);
|
|
189
|
+
utils_1.transferSettingsOfObject(objectPageConfig.layout, importParameters.manifest, importParameters.jsonSchema.definitions[common_2.DefinitionName.ObjectPageLayout], importParameters.routingId, []);
|
|
190
|
+
utils_1.transferSettingsOfObject(objectPageConfig, importParameters.manifest, importParameters.jsonSchema, importParameters.routingId, []);
|
|
162
191
|
if (!objectPageConfig.sections) {
|
|
163
192
|
objectPageConfig.sections = {};
|
|
164
193
|
}
|
|
165
194
|
if (manifestSettings) {
|
|
166
|
-
if (manifestSettings.controlConfiguration && importParameters.jsonSchema
|
|
195
|
+
if (manifestSettings.controlConfiguration && importParameters.jsonSchema.definitions[common_2.DefinitionName.Sections]) {
|
|
167
196
|
// Fill sections and subsections
|
|
168
197
|
objectPageConfig.sections = {};
|
|
169
|
-
fillSectionsInConfig(importParameters, importParameters.jsonSchema[
|
|
198
|
+
fillSectionsInConfig(importParameters, importParameters.jsonSchema.definitions[common_2.DefinitionName.Sections]['properties'], manifestSettings, objectPageConfig.sections, factory);
|
|
170
199
|
}
|
|
171
200
|
// Fill Custom sections
|
|
172
201
|
const customSections = (_b = (_a = manifestSettings.content) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.sections;
|
|
173
202
|
if (customSections) {
|
|
174
203
|
objectPageConfig.sections.custom = [];
|
|
175
204
|
for (const sectionId in customSections) {
|
|
176
|
-
const section = factory.createInstance(common_1.PageTypeV4.ObjectPage,
|
|
177
|
-
utils_1.transferSettingsOfObject(section, importParameters.manifest, importParameters.jsonSchema
|
|
205
|
+
const section = factory.createInstance(common_1.PageTypeV4.ObjectPage, common_2.DefinitionName.ObjectPageCustomSectionFragment);
|
|
206
|
+
utils_1.transferSettingsOfObject(section, importParameters.manifest, importParameters.jsonSchema.definitions[common_2.DefinitionName.ObjectPageCustomSectionFragment], importParameters.routingId, [], sectionId);
|
|
178
207
|
objectPageConfig.sections.custom.push(section);
|
|
179
208
|
}
|
|
180
209
|
}
|
|
181
210
|
// Fill header facets
|
|
182
|
-
fillHeaderFacets(importParameters.jsonSchema, objectPageConfig, factory, importParameters.manifest,
|
|
211
|
+
fillHeaderFacets(importParameters.jsonSchema, objectPageConfig, factory, importParameters.manifest, importParameters.routingId);
|
|
183
212
|
}
|
|
184
213
|
return objectPageConfig;
|
|
185
214
|
}
|
|
@@ -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":";;;;;AAQA,sDAAgE;AAChE,6DAA8D;AAC9D,oCAAoD;AACp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AAe,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,CAAqB,CAAC;IACzG,IAAI,CAAC,OAAO,EAAE;QACV,qBAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE;YACzB,QAAQ,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,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Definition, DefinitionOrBoolean } from 'typescript-json-schema';
|
|
2
|
+
import type { Manifest } from '../../../specification/common/webapp/manifest/Manifest';
|
|
3
|
+
import type { ExtensionLogger } from '../../..';
|
|
3
4
|
/**
|
|
4
5
|
* Transfers settings from manifest to object page config
|
|
5
6
|
* @param configPart - part of the configuration to be filled
|
|
@@ -11,4 +12,4 @@ import { ExtensionLogger } from '../../..';
|
|
|
11
12
|
*/
|
|
12
13
|
export declare function transferSettingsOfObject(configPart: {
|
|
13
14
|
[key: string]: any;
|
|
14
|
-
}, manifest: Manifest, appSchema:
|
|
15
|
+
}, manifest: Manifest, appSchema: Definition | DefinitionOrBoolean, pageKey: string, breadcrumbs: string[], sectionId?: string, logger?: ExtensionLogger): void;
|
|
@@ -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":";;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/v4/import/utils.ts"],"names":[],"mappings":";;AAEA,yCAAqG;AACrG,mEAAwE;AAGxE;;;;;;;;GAQG;AACH,SAAgB,wBAAwB,CACpC,UAAkC,EAClC,QAAkB,EAClB,SAA2C,EAC3C,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,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,uBAAuB,EAAE,GAAG,WAAW,CAAC,CAAC;YAClG,eAAe,GAAG,mCAA0B,CAAC,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,uBAAuB,EAAE,IAAI,CAAC,CAAC;YACvG,IAAI,eAAe,IAAI,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC5D,uBAAc,CAAC,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;gBAC3F,kCAAyB,CAAC,oBAAoB,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;aAClF;SACJ;KACJ;AACL,CAAC;AA5BD,4DA4BC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
1
|
+
import type { Chart, LineItem } from '@sap-ux/vocabularies-types';
|
|
2
|
+
import type * as v4controls from './export/controls';
|
|
3
|
+
import type * as v4pages from './export/pages';
|
|
3
4
|
export declare type V4Controls = typeof v4controls;
|
|
4
5
|
export declare type V4Pages = typeof v4pages;
|
|
6
|
+
export declare type PresentationVariantV4 = Chart | LineItem;
|
|
@@ -48,22 +48,25 @@ exports.prepareId = function (sId) {
|
|
|
48
48
|
throw sId + ' - Stable Id could not be generated due to insufficient information.';
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
+
function evaluateConcat(oValue) {
|
|
52
|
+
let sPathConcat = '';
|
|
53
|
+
for (const applyValue of oValue.$Apply) {
|
|
54
|
+
if (applyValue.$Path) {
|
|
55
|
+
if (sPathConcat) {
|
|
56
|
+
sPathConcat += '::';
|
|
57
|
+
}
|
|
58
|
+
sPathConcat += applyValue.$Path;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return sPathConcat;
|
|
62
|
+
}
|
|
51
63
|
function getStableIdPartFromValue(oValue) {
|
|
52
64
|
var _a, _b;
|
|
53
65
|
if ((oValue === null || oValue === void 0 ? void 0 : oValue.$Path) || (oValue === null || oValue === void 0 ? void 0 : oValue.path)) {
|
|
54
66
|
return oValue.$Path || oValue.path;
|
|
55
67
|
}
|
|
56
68
|
if ((oValue === null || oValue === void 0 ? void 0 : oValue.$Apply) && oValue.$Function === 'odata.concat') {
|
|
57
|
-
|
|
58
|
-
for (let i = 0; i < oValue.$Apply.length; i++) {
|
|
59
|
-
if (oValue.$Apply[i].$Path) {
|
|
60
|
-
if (sPathConcat) {
|
|
61
|
-
sPathConcat += '::';
|
|
62
|
-
}
|
|
63
|
-
sPathConcat += oValue.$Apply[i].$Path;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return sPathConcat;
|
|
69
|
+
return evaluateConcat(oValue);
|
|
67
70
|
}
|
|
68
71
|
if (oValue) {
|
|
69
72
|
if (typeof oValue === 'string') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StableIdHelper.js","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/StableIdHelper.ts"],"names":[],"mappings":";;AAEA;;GAEG;AAEH;;;;;GAKG;A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,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,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ExtensionLogger } from '../../..';
|
|
4
|
-
import {
|
|
1
|
+
import type { EntitySet } from '@sap-ux/annotation-converter';
|
|
2
|
+
import type { GenerateAppSchemaParameters, SapUiAppPageV4 } from '../../../v4';
|
|
3
|
+
import type { ExtensionLogger } from '../../..';
|
|
4
|
+
import type { AnnotationTerm, ConverterOutput, EntityType, LineItem, DataFieldForActionAbstractTypes } from '@sap-ux/vocabularies-types';
|
|
5
|
+
import type { Definition } from 'typescript-json-schema';
|
|
5
6
|
/**
|
|
6
|
-
* Processes a LineItem record of type
|
|
7
|
+
* Processes a LineItem record of type DataFieldForAction during app schema generation
|
|
7
8
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
8
9
|
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
9
10
|
* @param actions - actions definition in schema, parent object
|
|
@@ -11,26 +12,31 @@ import { SapUiAppPageV4 } from '../../../v4';
|
|
|
11
12
|
* @param lineItemRecord - actual record of the line item collection
|
|
12
13
|
* @param recordIndex - record index in the collection
|
|
13
14
|
*/
|
|
14
|
-
export declare function handleActionRecord(appSchema:
|
|
15
|
+
export declare function handleActionRecord(appSchema: Definition, entityType: EntityType, actionsDefinition: Definition, lineItemPath: string, lineItemRecord: DataFieldForActionAbstractTypes, lineItemId: string, recordIndex: number): void;
|
|
15
16
|
/**
|
|
16
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)
|
|
17
18
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
18
19
|
* @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
|
|
19
20
|
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
20
21
|
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by Annotation Vocabularies Tool
|
|
22
|
+
* @param lineItemId - in case of OP the paramter must be passed to distinguish the OP tables;
|
|
23
|
+
* in case of LR or ALP 'LineItems' is passed.
|
|
21
24
|
* @param columnDefinitionName - name of the column definition, i.e. TableColumn or ObjectPageTableColumn
|
|
22
|
-
* @param actionDefinitionName - indicates the prefix for the definition, dpending on the page type
|
|
23
|
-
* @param lineItemId - optional: in case of OP the paramter must be passed to distinguish the OP tables;
|
|
24
|
-
* in case of LR or ALP no ID is passed, 'LineItems' is taken then.
|
|
25
|
-
* @param customColumnRef - schema reference to custom column definition.
|
|
26
25
|
*/
|
|
27
|
-
export declare function addLineItemsType(appSchema:
|
|
26
|
+
export declare function addLineItemsType(appSchema: Definition, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, oDataServiceAVT: ConverterOutput, lineItemId: string, columnDefinitionName?: string): void;
|
|
28
27
|
/**
|
|
29
28
|
* Find the relevant V4 page under the routing targets of manifest,json
|
|
30
29
|
* @param pages - list of all pages in manifest
|
|
31
30
|
* @param pageName - search criterion: page name
|
|
32
|
-
* @param entitySet - search criterion:
|
|
31
|
+
* @param entitySet - search criterion: entity set
|
|
33
32
|
* @param logger - logger for messages
|
|
34
33
|
* @returns the page definition in manifest (if found)
|
|
35
34
|
*/
|
|
36
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;
|