@sap/ux-specification 1.96.87 → 1.96.89
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 +44 -1
- package/dist/documentation/runDocu-min.js +1 -1
- package/dist/documentation/runDocu-min.js.map +2 -2
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
- package/dist/documentation/v4/v4-FreestylePage.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +83 -83
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ApplicationV2.json +2 -1
- package/dist/schemas/v4/ApplicationV4.json +6 -1
- package/dist/specification/package.json +6 -6
- package/dist/specification/scripts/documentation/components/TreeDiagram.d.ts +21 -0
- package/dist/specification/scripts/documentation/components/TreeDiagram.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/TreeDiagram.js +21 -0
- package/dist/specification/scripts/documentation/components/TreeDiagram.js.map +1 -1
- package/dist/specification/scripts/documentation/components/filter.d.ts +7 -0
- package/dist/specification/scripts/documentation/components/filter.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/filter.js +30 -0
- package/dist/specification/scripts/documentation/components/filter.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/TreeUI.d.ts +70 -0
- package/dist/specification/scripts/documentation/components/ui/TreeUI.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/TreeUI.js +70 -3
- package/dist/specification/scripts/documentation/components/ui/TreeUI.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.d.ts +17 -0
- package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.js +23 -0
- package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/search.d.ts +12 -0
- package/dist/specification/scripts/documentation/components/ui/search.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/search.js +78 -8
- package/dist/specification/scripts/documentation/components/ui/search.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/toggle.d.ts +21 -0
- package/dist/specification/scripts/documentation/components/ui/toggle.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/toggle.js +23 -6
- package/dist/specification/scripts/documentation/components/ui/toggle.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/tooltip.d.ts +24 -0
- package/dist/specification/scripts/documentation/components/ui/tooltip.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/tooltip.js +24 -3
- package/dist/specification/scripts/documentation/components/ui/tooltip.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/utils.d.ts +36 -0
- package/dist/specification/scripts/documentation/components/ui/utils.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/utils.js +36 -4
- package/dist/specification/scripts/documentation/components/ui/utils.js.map +1 -1
- package/dist/specification/scripts/extractDocu.js +51 -7
- package/dist/specification/scripts/extractDocu.js.map +1 -1
- package/dist/specification/scripts/macros/api.d.ts +4 -1
- package/dist/specification/scripts/macros/api.d.ts.map +1 -1
- package/dist/specification/scripts/macros/api.js +9 -1
- package/dist/specification/scripts/macros/api.js.map +1 -1
- package/dist/specification/scripts/macros/cmd.d.ts +1 -0
- package/dist/specification/scripts/macros/cmd.d.ts.map +1 -1
- package/dist/specification/scripts/macros/cmd.js +1 -0
- package/dist/specification/scripts/macros/cmd.js.map +1 -1
- package/dist/specification/scripts/macros/corrections.d.ts +1 -0
- package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
- package/dist/specification/scripts/macros/corrections.js +4 -0
- package/dist/specification/scripts/macros/corrections.js.map +1 -1
- package/dist/specification/scripts/macros/i18n.d.ts +1 -0
- package/dist/specification/scripts/macros/i18n.d.ts.map +1 -1
- package/dist/specification/scripts/macros/i18n.js +1 -0
- package/dist/specification/scripts/macros/i18n.js.map +1 -1
- package/dist/specification/scripts/macros/schema.d.ts +1 -0
- package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
- package/dist/specification/scripts/macros/schema.js +18 -5
- package/dist/specification/scripts/macros/schema.js.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.d.ts +9 -5
- package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +32 -5
- package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
- package/dist/specification/scripts/spec.js +19 -9
- package/dist/specification/scripts/spec.js.map +1 -1
- package/dist/specification/src/api.d.ts +20 -12
- package/dist/specification/src/api.d.ts.map +1 -1
- package/dist/specification/src/api.js +22 -14
- package/dist/specification/src/api.js.map +1 -1
- package/dist/specification/src/extensionLogger.d.ts +3 -2
- package/dist/specification/src/extensionLogger.d.ts.map +1 -1
- package/dist/specification/src/extensionLogger.js +3 -2
- package/dist/specification/src/extensionLogger.js.map +1 -1
- package/dist/specification/src/i18n/i18n.d.ts +5 -0
- package/dist/specification/src/i18n/i18n.d.ts.map +1 -1
- package/dist/specification/src/i18n/i18n.js +5 -0
- package/dist/specification/src/i18n/i18n.js.map +1 -1
- package/dist/specification/src/project.d.ts +3 -1
- package/dist/specification/src/project.d.ts.map +1 -1
- package/dist/specification/src/project.js +3 -1
- package/dist/specification/src/project.js.map +1 -1
- package/dist/specification/src/specification/schemaAccess.d.ts +6 -2
- package/dist/specification/src/specification/schemaAccess.d.ts.map +1 -1
- package/dist/specification/src/specification/schemaAccess.js +10 -4
- package/dist/specification/src/specification/schemaAccess.js.map +1 -1
- package/dist/specification/src/sync/common/appProvider.d.ts +17 -6
- package/dist/specification/src/sync/common/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/common/appProvider.js +33 -17
- package/dist/specification/src/sync/common/appProvider.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/control.d.ts +26 -10
- package/dist/specification/src/sync/common/decoration/control.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/control.js +32 -13
- package/dist/specification/src/sync/common/decoration/control.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.d.ts +14 -0
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.js +14 -0
- package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/factory.d.ts +12 -3
- package/dist/specification/src/sync/common/decoration/factory.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/factory.js +6 -3
- package/dist/specification/src/sync/common/decoration/factory.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/flex.d.ts +7 -0
- package/dist/specification/src/sync/common/decoration/flex.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/flex.js +7 -0
- package/dist/specification/src/sync/common/decoration/flex.js.map +1 -1
- package/dist/specification/src/sync/common/distTagEvaluator.d.ts +6 -3
- package/dist/specification/src/sync/common/distTagEvaluator.d.ts.map +1 -1
- package/dist/specification/src/sync/common/distTagEvaluator.js +6 -3
- package/dist/specification/src/sync/common/distTagEvaluator.js.map +1 -1
- package/dist/specification/src/sync/common/flexUtils.d.ts +11 -10
- package/dist/specification/src/sync/common/flexUtils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/flexUtils.js +11 -10
- package/dist/specification/src/sync/common/flexUtils.js.map +1 -1
- package/dist/specification/src/sync/common/generate/objectPage.d.ts +27 -18
- package/dist/specification/src/sync/common/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/objectPage.js +54 -33
- package/dist/specification/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.d.ts +62 -35
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +64 -35
- package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/common/import/utils.d.ts +9 -3
- package/dist/specification/src/sync/common/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/import/utils.js +9 -3
- package/dist/specification/src/sync/common/import/utils.js.map +1 -1
- package/dist/specification/src/sync/common/importProject.d.ts +17 -6
- package/dist/specification/src/sync/common/importProject.d.ts.map +1 -1
- package/dist/specification/src/sync/common/importProject.js +60 -30
- package/dist/specification/src/sync/common/importProject.js.map +1 -1
- package/dist/specification/src/sync/common/utils.d.ts +129 -53
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +237 -88
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/i18n.d.ts +5 -0
- package/dist/specification/src/sync/i18n.d.ts.map +1 -1
- package/dist/specification/src/sync/i18n.js +5 -0
- package/dist/specification/src/sync/i18n.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Action.d.ts +3 -3
- package/dist/specification/src/sync/v2/export/controls/Action.js +15 -15
- package/dist/specification/src/sync/v2/export/controls/Card.d.ts +14 -0
- package/dist/specification/src/sync/v2/export/controls/Card.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Card.js +20 -0
- package/dist/specification/src/sync/v2/export/controls/Card.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Field.js +5 -5
- package/dist/specification/src/sync/v2/export/controls/FilterBar.d.ts +20 -0
- package/dist/specification/src/sync/v2/export/controls/FilterBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/FilterBar.js +28 -0
- package/dist/specification/src/sync/v2/export/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/FormAction.js +4 -4
- package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts +10 -5
- package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Fragment.js +62 -25
- package/dist/specification/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageFooterAction.js +6 -6
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderAction.js +6 -6
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.js +20 -16
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageSection.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageSection.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageToolBarAction.js +6 -6
- package/dist/specification/src/sync/v2/export/controls/Table.d.ts +24 -0
- package/dist/specification/src/sync/v2/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Table.js +42 -3
- package/dist/specification/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/TableColumn.js +10 -10
- package/dist/specification/src/sync/v2/export/export.d.ts +7 -3
- package/dist/specification/src/sync/v2/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/export.js +133 -44
- package/dist/specification/src/sync/v2/export/export.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.d.ts +18 -10
- package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.js +34 -20
- package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts +6 -3
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +27 -17
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/export/manifest.d.ts +5 -2
- package/dist/specification/src/sync/v2/export/manifest.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/manifest.js +30 -6
- package/dist/specification/src/sync/v2/export/manifest.js.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/OverviewPage.d.ts +21 -0
- package/dist/specification/src/sync/v2/export/pages/OverviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/OverviewPage.js +36 -2
- package/dist/specification/src/sync/v2/export/pages/OverviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts +25 -15
- package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/view-controller-generator.js +27 -16
- package/dist/specification/src/sync/v2/export/view-controller-generator.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts +2 -0
- package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js +8 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/generate.d.ts +5 -9
- package/dist/specification/src/sync/v2/generate/generate.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/generate.js +9 -12
- package/dist/specification/src/sync/v2/generate/generate.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.d.ts +4 -2
- package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.js +26 -8
- package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts +118 -0
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.js +151 -0
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.js.map +1 -0
- package/dist/specification/src/sync/v2/generate/objectPage.d.ts +2 -2
- package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.js +75 -43
- package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/overviewPage.d.ts +2 -2
- package/dist/specification/src/sync/v2/generate/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/overviewPage.js +2 -2
- package/dist/specification/src/sync/v2/generate/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +8 -8
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.d.ts +47 -36
- package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.js +92 -71
- package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/import/app/appProvider.d.ts +7 -0
- package/dist/specification/src/sync/v2/import/app/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/app/appProvider.js +20 -4
- package/dist/specification/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/specification/src/sync/v2/import/app/ovpProvider.d.ts +4 -0
- package/dist/specification/src/sync/v2/import/app/ovpProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/app/ovpProvider.js +4 -0
- package/dist/specification/src/sync/v2/import/app/ovpProvider.js.map +1 -1
- package/dist/specification/src/sync/v2/import/common/index.d.ts +28 -15
- package/dist/specification/src/sync/v2/import/common/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/common/index.js +91 -35
- package/dist/specification/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/specification/src/sync/v2/import/controls/table.d.ts +6 -2
- package/dist/specification/src/sync/v2/import/controls/table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/controls/table.js +6 -2
- package/dist/specification/src/sync/v2/import/controls/table.js.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.d.ts +3 -2
- package/dist/specification/src/sync/v2/import/importPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.js +4 -5
- package/dist/specification/src/sync/v2/import/importPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts +3 -3
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js +9 -10
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.d.ts +8 -7
- package/dist/specification/src/sync/v2/import/pages/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.js +28 -24
- package/dist/specification/src/sync/v2/import/pages/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.d.ts +3 -3
- package/dist/specification/src/sync/v2/import/pages/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.js +107 -76
- package/dist/specification/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts +2 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js +27 -12
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/utils.d.ts +18 -9
- package/dist/specification/src/sync/v2/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/utils.js +27 -15
- package/dist/specification/src/sync/v2/import/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +26 -1
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +47 -1
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/application.d.ts +7 -5
- package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/application.js +7 -5
- package/dist/specification/src/sync/v4/application.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.js +8 -0
- package/dist/specification/src/sync/v4/export/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFooter.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFooter.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts +18 -10
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js +48 -18
- package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/TableColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/export.d.ts +6 -4
- package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/export.js +136 -58
- package/dist/specification/src/sync/v4/export/export.js.map +1 -1
- package/dist/specification/src/sync/v4/export/exportCustomColumn.d.ts +6 -4
- package/dist/specification/src/sync/v4/export/exportCustomColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/exportCustomColumn.js +6 -4
- package/dist/specification/src/sync/v4/export/exportCustomColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/flexibleColumnLayout.d.ts +3 -2
- package/dist/specification/src/sync/v4/export/flexibleColumnLayout.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/flexibleColumnLayout.js +13 -9
- package/dist/specification/src/sync/v4/export/flexibleColumnLayout.js.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts +6 -4
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js +9 -4
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js.map +1 -1
- package/dist/specification/src/sync/v4/export/manifest.d.ts +6 -2
- package/dist/specification/src/sync/v4/export/manifest.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/manifest.js +46 -17
- package/dist/specification/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js +4 -3
- package/dist/specification/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/specification/src/sync/v4/export/utils.d.ts +6 -4
- package/dist/specification/src/sync/v4/export/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/utils.js +6 -4
- package/dist/specification/src/sync/v4/export/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js +4 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.d.ts +5 -3
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js +14 -5
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts +1 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +18 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.d.ts +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.js +2 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.d.ts +2 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js +2 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/freestylePage.d.ts +2 -2
- package/dist/specification/src/sync/v4/generate/freestylePage.js +2 -2
- package/dist/specification/src/sync/v4/generate/generate.d.ts +13 -11
- package/dist/specification/src/sync/v4/generate/generate.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/generate.js +13 -11
- package/dist/specification/src/sync/v4/generate/generate.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.d.ts +10 -7
- package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.js +122 -73
- package/dist/specification/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +206 -154
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/app/appProvider.d.ts +18 -4
- package/dist/specification/src/sync/v4/import/app/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/app/appProvider.js +56 -24
- package/dist/specification/src/sync/v4/import/app/appProvider.js.map +1 -1
- package/dist/specification/src/sync/v4/import/fragment.d.ts +29 -4
- package/dist/specification/src/sync/v4/import/fragment.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/fragment.js +46 -7
- package/dist/specification/src/sync/v4/import/fragment.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.d.ts +3 -2
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js +7 -2
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.d.ts +12 -10
- package/dist/specification/src/sync/v4/import/pages/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.js +69 -46
- package/dist/specification/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts +7 -6
- package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/objectPage.js +49 -36
- package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/utils.d.ts +4 -2
- package/dist/specification/src/sync/v4/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/utils.js +4 -2
- package/dist/specification/src/sync/v4/import/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.js +5 -2
- package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/StableIdHelper.d.ts +12 -0
- package/dist/specification/src/sync/v4/utils/StableIdHelper.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/StableIdHelper.js +18 -0
- package/dist/specification/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/macros.d.ts +4 -0
- package/dist/specification/src/sync/v4/utils/macros.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/macros.js +17 -1
- package/dist/specification/src/sync/v4/utils/macros.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.d.ts +38 -20
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +99 -52
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/types/src/apiTypes.d.ts +13 -0
- package/dist/types/src/apiTypes.d.ts.map +1 -1
- package/dist/types/src/apiTypes.js +18 -1
- package/dist/types/src/apiTypes.js.map +1 -1
- package/dist/types/src/common/Application.d.ts +6 -0
- package/dist/types/src/common/Application.d.ts.map +1 -1
- package/dist/types/src/common/Application.js +4 -0
- package/dist/types/src/common/Application.js.map +1 -1
- package/dist/types/src/common/types.d.ts +51 -2
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js +2 -1
- package/dist/types/src/common/types.js.map +1 -1
- package/dist/types/src/common/webapp/manifest/sapUi5.d.ts +3 -2
- package/dist/types/src/common/webapp/manifest/sapUi5.d.ts.map +1 -1
- package/dist/types/src/common/webapp/manifest/sapUi5.js +3 -2
- package/dist/types/src/common/webapp/manifest/sapUi5.js.map +1 -1
- package/dist/types/src/v2/application.d.ts +1 -1
- package/dist/types/src/v2/controls/Action.d.ts +12 -0
- package/dist/types/src/v2/controls/Action.d.ts.map +1 -1
- package/dist/types/src/v2/controls/AnalyticalListPageChart.d.ts +1 -0
- package/dist/types/src/v2/controls/AnalyticalListPageChart.d.ts.map +1 -1
- package/dist/types/src/v2/controls/AnalyticalListPageKPI.d.ts +1 -0
- package/dist/types/src/v2/controls/AnalyticalListPageKPI.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Card.d.ts +13 -0
- package/dist/types/src/v2/controls/Card.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Card.js.map +1 -1
- package/dist/types/src/v2/controls/Field.d.ts +1 -0
- package/dist/types/src/v2/controls/Field.d.ts.map +1 -1
- package/dist/types/src/v2/controls/FilterBar.d.ts +6 -0
- package/dist/types/src/v2/controls/FilterBar.d.ts.map +1 -1
- package/dist/types/src/v2/controls/FilterBar.js.map +1 -1
- package/dist/types/src/v2/controls/Header.d.ts +1 -0
- package/dist/types/src/v2/controls/Header.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageChart.d.ts +1 -0
- package/dist/types/src/v2/controls/ObjectPageChart.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageFooter.d.ts +2 -0
- package/dist/types/src/v2/controls/ObjectPageFooter.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageForm.d.ts +1 -0
- package/dist/types/src/v2/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageHeader.d.ts +1 -0
- package/dist/types/src/v2/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts +3 -0
- package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageLayout.d.ts +1 -0
- package/dist/types/src/v2/controls/ObjectPageLayout.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageSection.d.ts +13 -0
- package/dist/types/src/v2/controls/ObjectPageSection.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageSection.js.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts +6 -0
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageToolBar.d.ts +2 -0
- package/dist/types/src/v2/controls/ObjectPageToolBar.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.d.ts +28 -0
- package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.js.map +1 -1
- package/dist/types/src/v2/controls/ToolBar.d.ts +1 -0
- package/dist/types/src/v2/controls/ToolBar.d.ts.map +1 -1
- package/dist/types/src/v2/pages/AnalyticalListPageConfigV2.d.ts +1 -0
- package/dist/types/src/v2/pages/AnalyticalListPageConfigV2.d.ts.map +1 -1
- package/dist/types/src/v2/pages/OverviewPageConfigV2.d.ts +4 -0
- package/dist/types/src/v2/pages/OverviewPageConfigV2.d.ts.map +1 -1
- package/dist/types/src/v4/application.d.ts +1 -1
- package/dist/types/src/v4/controls/CustomAction.d.ts +10 -0
- package/dist/types/src/v4/controls/CustomAction.d.ts.map +1 -1
- package/dist/types/src/v4/controls/FilterBar.d.ts +10 -0
- package/dist/types/src/v4/controls/FilterBar.d.ts.map +1 -1
- package/dist/types/src/v4/controls/FilterBar.js.map +1 -1
- package/dist/types/src/v4/controls/Header.d.ts +1 -0
- package/dist/types/src/v4/controls/Header.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageFooter.d.ts +1 -0
- package/dist/types/src/v4/controls/ObjectPageFooter.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts +1 -0
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts +2 -0
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts +6 -0
- package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageLayout.d.ts +1 -0
- package/dist/types/src/v4/controls/ObjectPageLayout.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageSection.d.ts +17 -0
- package/dist/types/src/v4/controls/ObjectPageSection.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageSection.js.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts +5 -0
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.js.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts +4 -0
- package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts.map +1 -1
- package/dist/types/src/v4/controls/Table.d.ts +15 -0
- package/dist/types/src/v4/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ToolBar.d.ts +9 -0
- package/dist/types/src/v4/controls/ToolBar.d.ts.map +1 -1
- package/dist/types/src/v4/page.d.ts +4 -0
- package/dist/types/src/v4/page.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts +22 -0
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/sapUi5.d.ts +3 -0
- package/dist/types/src/v4/webapp/manifest/sapUi5.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/sapUi5.js.map +1 -1
- package/dist/types/src/v4/webapp/manifest/sapUiPageV4.d.ts +1 -1
- package/dist/types/src/v4/webapp/manifest/sapUiPageV4.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/sapUiPageV4.js +2 -2
- package/dist/types/src/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
- package/package.json +7 -7
|
@@ -21,13 +21,15 @@ const CRITICAL_ACTION_TYPES = [
|
|
|
21
21
|
];
|
|
22
22
|
const CUSTOM_ACTION_DEFINITION_DESCRIPTION = 'Custom Action';
|
|
23
23
|
/**
|
|
24
|
-
* V4 callback - adds a single header action to schema
|
|
25
|
-
*
|
|
26
|
-
* @param
|
|
27
|
-
* @param
|
|
28
|
-
* @param
|
|
29
|
-
* @param
|
|
30
|
-
* @param
|
|
24
|
+
* V4 callback - adds a single header action to schema.
|
|
25
|
+
*
|
|
26
|
+
* @param oDataServiceAVT - Complete service information, as returned by annotation vocabularies tool.
|
|
27
|
+
* @param action - Item of the Ui.Identification collection and its original index.
|
|
28
|
+
* @param actionType - Action classification for grouping.
|
|
29
|
+
* @param appSchema - Schema of the app.
|
|
30
|
+
* @param entityType - Current entity type.
|
|
31
|
+
* @param headerActions - List of header actions, to be enhanced.
|
|
32
|
+
* @param index - The index of the action in the header actions list.
|
|
31
33
|
*/
|
|
32
34
|
function addSingleHeaderActionV4(oDataServiceAVT, action, actionType, appSchema, entityType, headerActions, index) {
|
|
33
35
|
const { actionName, namespace } = (0, common_1.getActionNameAndId)(action.item, oDataServiceAVT);
|
|
@@ -64,13 +66,13 @@ function addSingleHeaderActionV4(oDataServiceAVT, action, actionType, appSchema,
|
|
|
64
66
|
headerActions.properties[stableId][ux_specification_types_1.SchemaTag.propertyIndex] = index;
|
|
65
67
|
}
|
|
66
68
|
/**
|
|
67
|
-
* Adds a given standard action to the app schema of the object page
|
|
68
|
-
* @param {string} actionName - name of the action
|
|
69
|
-
* @param {Definition} appSchema - schema of the object page
|
|
70
|
-
* @param {Definition} headerActions - list of header actions, to be enhanced
|
|
71
|
-
* @param {number} index - index for propertyIndex
|
|
69
|
+
* Adds a given standard action to the app schema of the object page.
|
|
72
70
|
*
|
|
73
|
-
* @
|
|
71
|
+
* @param actionName - Name of the action.
|
|
72
|
+
* @param appSchema - Schema of the object page.
|
|
73
|
+
* @param headerActions - List of header actions, to be enhanced.
|
|
74
|
+
* @param index - Index for propertyIndex.
|
|
75
|
+
* @returns The new header action definition.
|
|
74
76
|
*/
|
|
75
77
|
function addStandardHeaderAction(actionName, appSchema, headerActions, index) {
|
|
76
78
|
const referenceKey = `${actionName}Action`;
|
|
@@ -94,12 +96,14 @@ function addStandardHeaderAction(actionName, appSchema, headerActions, index) {
|
|
|
94
96
|
return headerAction;
|
|
95
97
|
}
|
|
96
98
|
/**
|
|
97
|
-
* V4 callback - adds a single footer action to schema
|
|
98
|
-
*
|
|
99
|
-
* @param
|
|
100
|
-
* @param
|
|
101
|
-
* @param
|
|
102
|
-
* @param
|
|
99
|
+
* V4 callback - adds a single footer action to schema.
|
|
100
|
+
*
|
|
101
|
+
* @param action - Item of the Ui.Identification collection and its original index.
|
|
102
|
+
* @param actionType - Action classification for grouping.
|
|
103
|
+
* @param entityType - Current entity type.
|
|
104
|
+
* @param appSchema - Schema of the object page.
|
|
105
|
+
* @param footerActions - List of footer actions, to be enhanced.
|
|
106
|
+
* @param index - The index of the action in the footer actions list.
|
|
103
107
|
*/
|
|
104
108
|
function addSingleFooterAction(action, actionType, entityType, appSchema, footerActions, index) {
|
|
105
109
|
const actionId = (0, StableIdHelper_1.getStableIdPartFromDataField)(action.item);
|
|
@@ -120,9 +124,10 @@ function addSingleFooterAction(action, actionType, entityType, appSchema, footer
|
|
|
120
124
|
};
|
|
121
125
|
}
|
|
122
126
|
/**
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
* @
|
|
127
|
+
* Distinguishes critical actions and others and returns two separate groups.
|
|
128
|
+
*
|
|
129
|
+
* @param identification - UI.Identification annotation as present in AVT ConvertedMetadata.
|
|
130
|
+
* @returns Two separate groups of items.
|
|
126
131
|
*/
|
|
127
132
|
function groupByCriticality(identification) {
|
|
128
133
|
const criticalActions = [];
|
|
@@ -141,7 +146,8 @@ function groupByCriticality(identification) {
|
|
|
141
146
|
return { criticalActions, unCriticalActions };
|
|
142
147
|
}
|
|
143
148
|
/**
|
|
144
|
-
* Adds the critical header actions to schema
|
|
149
|
+
* Adds the critical header actions to schema.
|
|
150
|
+
*
|
|
145
151
|
* @param {ActionListType[]} criticalActions - list of critical actions
|
|
146
152
|
* @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
147
153
|
* @param {Definition} appSchema - schema of the object page
|
|
@@ -156,6 +162,7 @@ function addCriticalActions(criticalActions, oDataServiceAVT, appSchema, entityT
|
|
|
156
162
|
/**
|
|
157
163
|
* Checks if one of the uncritical actions is marked by isCopyAction.
|
|
158
164
|
* If so, adds this first to the schema and deletes it from the list.
|
|
165
|
+
*
|
|
159
166
|
* @param {ActionListType[]} unCriticalActions - list of uncritical actions
|
|
160
167
|
* @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
161
168
|
* @param {Definition} appSchema - schema of the object page
|
|
@@ -174,7 +181,8 @@ function addCopyAction(unCriticalActions, oDataServiceAVT, appSchema, entityType
|
|
|
174
181
|
}
|
|
175
182
|
}
|
|
176
183
|
/**
|
|
177
|
-
* Adds the critical header actions to schema
|
|
184
|
+
* Adds the critical header actions to schema.
|
|
185
|
+
*
|
|
178
186
|
* @param {ActionListType[]} unCriticalActions - list of uncritical actions
|
|
179
187
|
* @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
180
188
|
* @param {Definition} appSchema - schema of the object page
|
|
@@ -189,7 +197,8 @@ function addUncriticalActions(unCriticalActions, oDataServiceAVT, appSchema, ent
|
|
|
189
197
|
}
|
|
190
198
|
}
|
|
191
199
|
/**
|
|
192
|
-
* Adds the critical header actions to schema
|
|
200
|
+
* Adds the critical header actions to schema.
|
|
201
|
+
*
|
|
193
202
|
* @param {Definition} headerActions - list of all header actions
|
|
194
203
|
*/
|
|
195
204
|
function addRelatedAppsButton(headerActions) {
|
|
@@ -207,6 +216,7 @@ function addRelatedAppsButton(headerActions) {
|
|
|
207
216
|
}
|
|
208
217
|
/**
|
|
209
218
|
* Fills the annotationPath of the given schema definition, by checking first the EntitySet annotation, then the EntityType annotation.
|
|
219
|
+
*
|
|
210
220
|
* @param {Definition} schemaDefinition - current definition in the schema
|
|
211
221
|
* @param {EntitySet} entitySet - current entity set
|
|
212
222
|
* @param {EntityType} entityType - current entity type
|
|
@@ -223,13 +233,14 @@ function setAnnotationPathFromEntitySetOrEntityType(schemaDefinition, entitySet,
|
|
|
223
233
|
}
|
|
224
234
|
}
|
|
225
235
|
/**
|
|
226
|
-
* Callback for adding a single action to headerActions of V4
|
|
227
|
-
*
|
|
228
|
-
* @param
|
|
229
|
-
* @param
|
|
230
|
-
* @param
|
|
231
|
-
* @param
|
|
232
|
-
* @param
|
|
236
|
+
* Callback for adding a single action to headerActions of V4.
|
|
237
|
+
*
|
|
238
|
+
* @param entityType - current entity type
|
|
239
|
+
* @param appSchema - schema of the object page
|
|
240
|
+
* @param identification - UI.Identification annotation as present in AVT ConvertedMetadata
|
|
241
|
+
* @param headerActions - list of header actions, to be enhanced
|
|
242
|
+
* @param generateParameters - list of API input parameters
|
|
243
|
+
* @param pageInManifest - current page in manifest
|
|
233
244
|
*/
|
|
234
245
|
function addHeaderActionCallBackV4(entityType, appSchema, identification, headerActions, generateParameters, pageInManifest) {
|
|
235
246
|
//Build groups of action types
|
|
@@ -259,7 +270,8 @@ function addHeaderActionCallBackV4(entityType, appSchema, identification, header
|
|
|
259
270
|
addRelatedAppsButton(headerActions);
|
|
260
271
|
}
|
|
261
272
|
/**
|
|
262
|
-
* Callback for adding a single action to footerActions of V4
|
|
273
|
+
* Callback for adding a single action to footerActions of V4.
|
|
274
|
+
*
|
|
263
275
|
* @param {EntityType} entityType - current entity type
|
|
264
276
|
* @param {Definition} appSchema - schema of the object page
|
|
265
277
|
* @param {Definition} footerActions - list of footer actions, to be enhanced
|
|
@@ -288,12 +300,13 @@ function addFooterActionCallBackV4(entityType, appSchema, footerActions, identif
|
|
|
288
300
|
}
|
|
289
301
|
}
|
|
290
302
|
/**
|
|
291
|
-
* Object Page specific enhancements to addCustomColumnDefinition
|
|
292
|
-
*
|
|
293
|
-
* @param
|
|
294
|
-
* @param
|
|
295
|
-
* @param
|
|
296
|
-
* @param
|
|
303
|
+
* Object Page specific enhancements to addCustomColumnDefinition.
|
|
304
|
+
*
|
|
305
|
+
* @param appSchema - app schema of the object page
|
|
306
|
+
* @param v4Page Current page in manifest
|
|
307
|
+
* @param lineItemId - identifier of the current table in schema
|
|
308
|
+
* @param facetIdInManifest - identifier of the current object page section in manifest
|
|
309
|
+
* @param logger - logger for exceptions
|
|
297
310
|
*/
|
|
298
311
|
function addCustomColumnsOP(appSchema, v4Page, lineItemId, facetIdInManifest, logger) {
|
|
299
312
|
// Create type specific copy of 'TableCustomColumnOP'
|
|
@@ -321,12 +334,13 @@ function addCustomColumnsOP(appSchema, v4Page, lineItemId, facetIdInManifest, lo
|
|
|
321
334
|
}
|
|
322
335
|
}
|
|
323
336
|
/**
|
|
324
|
-
* Object Page specific enhancements to addCustomColumnDefinition
|
|
325
|
-
*
|
|
326
|
-
* @param
|
|
327
|
-
* @param
|
|
328
|
-
* @param
|
|
329
|
-
* @param
|
|
337
|
+
* Object Page specific enhancements to addCustomColumnDefinition.
|
|
338
|
+
*
|
|
339
|
+
* @param appSchema - app schema of the object page
|
|
340
|
+
* @param v4Page Current page in manifest
|
|
341
|
+
* @param lineItemId - identifier of the current table in schema
|
|
342
|
+
* @param facetIdInManifest - identifier of the current object page section in manifest
|
|
343
|
+
* @param logger - logger for exceptions
|
|
330
344
|
*/
|
|
331
345
|
function addTableCustomActionsOP(appSchema, v4Page, lineItemId, facetIdInManifest, logger) {
|
|
332
346
|
// Create type specific copy of 'TableCustomActionOP'
|
|
@@ -353,11 +367,12 @@ function addTableCustomActionsOP(appSchema, v4Page, lineItemId, facetIdInManifes
|
|
|
353
367
|
(0, utils_1.addEnumForActionAnchor)(appSchema, schemaIdForActions, positionId);
|
|
354
368
|
}
|
|
355
369
|
/**
|
|
356
|
-
* Object Page specific custom action enhancements to header and footer
|
|
357
|
-
*
|
|
358
|
-
* @param
|
|
359
|
-
* @param
|
|
360
|
-
* @param
|
|
370
|
+
* Object Page specific custom action enhancements to header and footer.
|
|
371
|
+
*
|
|
372
|
+
* @param appSchema - app schema of the object page
|
|
373
|
+
* @param v4Page - current page in manifest
|
|
374
|
+
* @param customActionDefinitionKey - custom action key used in definitions
|
|
375
|
+
* @param logger - logger for exceptions
|
|
361
376
|
*/
|
|
362
377
|
function addHeaderFooterCustomActionsOP(appSchema, v4Page, customActionDefinitionKey, logger) {
|
|
363
378
|
const customActionDefinition = appSchema.definitions[customActionDefinitionKey];
|
|
@@ -381,12 +396,13 @@ function addHeaderFooterCustomActionsOP(appSchema, v4Page, customActionDefinitio
|
|
|
381
396
|
}
|
|
382
397
|
}
|
|
383
398
|
/**
|
|
384
|
-
* Object Page specific enhancements to handleFormIdentification
|
|
385
|
-
*
|
|
386
|
-
* @param
|
|
387
|
-
* @param
|
|
388
|
-
* @param
|
|
389
|
-
* @param
|
|
399
|
+
* Object Page specific enhancements to handleFormIdentification.
|
|
400
|
+
*
|
|
401
|
+
* @param appSchema - app schema of the object page
|
|
402
|
+
* @param v4Page - current page in manifest
|
|
403
|
+
* @param formItemId - identifier of the current form in schema
|
|
404
|
+
* @param facetIdInManifest - identifier of the current object page section in manifest
|
|
405
|
+
* @param logger - logger for exceptions
|
|
390
406
|
*/
|
|
391
407
|
function addFormCustomActionsOP(appSchema, v4Page, formItemId, facetIdInManifest, logger) {
|
|
392
408
|
const customActionDefinitionKey = `${ux_specification_types_1.DefinitionName.CustomFormActionOP}<${formItemId}>`;
|
|
@@ -408,14 +424,16 @@ function addFormCustomActionsOP(appSchema, v4Page, formItemId, facetIdInManifest
|
|
|
408
424
|
}
|
|
409
425
|
}
|
|
410
426
|
/**
|
|
411
|
-
* Adds definitions for line items in object page sections to the app schema
|
|
412
|
-
*
|
|
413
|
-
* @param
|
|
414
|
-
* @param
|
|
415
|
-
* @param
|
|
416
|
-
* @param
|
|
417
|
-
* @param
|
|
418
|
-
* @param
|
|
427
|
+
* Adds definitions for line items in object page sections to the app schema.
|
|
428
|
+
*
|
|
429
|
+
* @param facet - the given facet from the UI annotations
|
|
430
|
+
* @param facetKey - key of the facet, as used in annotation
|
|
431
|
+
* @param appSchema - app schema of the object page
|
|
432
|
+
* @param lineItemFacet - current lineItem facet
|
|
433
|
+
* @param oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
434
|
+
* @param v4Page Current page in manifest
|
|
435
|
+
* @param logger - logger for exceptions
|
|
436
|
+
* @returns the definition of the line item table, as used in the object page
|
|
419
437
|
*/
|
|
420
438
|
function handleLineItem(facet, facetKey, appSchema, lineItemFacet, oDataServiceAVT, v4Page, logger) {
|
|
421
439
|
const lineItemId = (0, common_1.getFacetKeyInSchema)(facetKey);
|
|
@@ -449,15 +467,16 @@ function handleLineItem(facet, facetKey, appSchema, lineItemFacet, oDataServiceA
|
|
|
449
467
|
return tableDefinition;
|
|
450
468
|
}
|
|
451
469
|
/**
|
|
452
|
-
*
|
|
453
|
-
*
|
|
454
|
-
* @param
|
|
455
|
-
* @param
|
|
456
|
-
* @param
|
|
457
|
-
* @param
|
|
458
|
-
* @param
|
|
459
|
-
* @param
|
|
460
|
-
* @
|
|
470
|
+
* Handles the creation and modification of a section table within the application schema.
|
|
471
|
+
*
|
|
472
|
+
* @param facet - The facet configuration object containing details for the section.
|
|
473
|
+
* @param facetKey - The unique key for identifying the facet in the schema.
|
|
474
|
+
* @param appSchema - The overall application schema where the section table is defined.
|
|
475
|
+
* @param lineItemFacet - The facet configuration specific to line item processing.
|
|
476
|
+
* @param generateParameters - Parameters required for generating the application schema.
|
|
477
|
+
* @param v4Page - The OData V4 page object containing details about the target application page.
|
|
478
|
+
* @param [sections] - The sections definition object where the section table might be added as a reference.
|
|
479
|
+
* @returns The updated definition of the section table included or modified in the application schema.
|
|
461
480
|
*/
|
|
462
481
|
function handleSectionTable(facet, facetKey, appSchema, lineItemFacet, generateParameters, v4Page, sections) {
|
|
463
482
|
if (sections) {
|
|
@@ -473,7 +492,8 @@ function handleSectionTable(facet, facetKey, appSchema, lineItemFacet, generateP
|
|
|
473
492
|
return { sectionTable, table };
|
|
474
493
|
}
|
|
475
494
|
/**
|
|
476
|
-
* Adds definitions for Identification and Form facet items in object page sections to the app schema
|
|
495
|
+
* Adds definitions for Identification and Form facet items in object page sections to the app schema.
|
|
496
|
+
*
|
|
477
497
|
* @param {FacetConfig} facet - current facet
|
|
478
498
|
* @param {v4.SapUiAppPageV4} v4Page Current page in manifest
|
|
479
499
|
* @param {string} facetKey - facet key
|
|
@@ -510,7 +530,8 @@ function handleFormIdentification(facet, v4Page, facetKey, sections, appSchema,
|
|
|
510
530
|
}
|
|
511
531
|
}
|
|
512
532
|
/**
|
|
513
|
-
* Adds definitions for header sections (DataPoint, Chart) in object page sections to the app schema
|
|
533
|
+
* Adds definitions for header sections (DataPoint, Chart) in object page sections to the app schema.
|
|
534
|
+
*
|
|
514
535
|
* @param {FacetConfig} facet - current facet
|
|
515
536
|
* @param {string} facetKey - facet key
|
|
516
537
|
* @param {object} sections - schema of current sections definition
|
|
@@ -529,11 +550,13 @@ function handleHeaderFacet(facet, facetKey, sections, appSchema, facetDefinition
|
|
|
529
550
|
sectionFacet[ux_specification_types_1.SchemaTag.isViewNode] = true;
|
|
530
551
|
}
|
|
531
552
|
/**
|
|
532
|
-
* Adds definitions for Chart items in object page sections to the app schema
|
|
553
|
+
* Adds definitions for Chart items in object page sections to the app schema.
|
|
554
|
+
*
|
|
533
555
|
* @param {FacetConfig | Chart | object} facet - current facet.
|
|
534
556
|
* @param {string} facetKey - facet key.
|
|
535
557
|
* @param {object} appSchema - app specific schema of the object page that gets enhanced.
|
|
536
558
|
* @param {EntityType} entityType - current entity type
|
|
559
|
+
* @returns {Definition} - the new chart definition
|
|
537
560
|
*/
|
|
538
561
|
function handleChartActions(facet, facetKey, appSchema, entityType) {
|
|
539
562
|
const actions = (0, common_1.parseSchemaDefinition)(ux_specification_types_1.DefinitionName.ObjectPageToolBarActions, facetKey, appSchema);
|
|
@@ -562,11 +585,13 @@ function handleChartActions(facet, facetKey, appSchema, entityType) {
|
|
|
562
585
|
return actions;
|
|
563
586
|
}
|
|
564
587
|
/**
|
|
565
|
-
* Adds definitions for Chart items in object page sections to the app schema
|
|
566
|
-
*
|
|
567
|
-
* @param
|
|
568
|
-
* @param
|
|
569
|
-
* @param
|
|
588
|
+
* Adds definitions for Chart items in object page sections to the app schema.
|
|
589
|
+
*
|
|
590
|
+
* @param facet - current facet.
|
|
591
|
+
* @param facetKey - facet key.
|
|
592
|
+
* @param appSchema - app specific schema of the object page that gets enhanced.
|
|
593
|
+
* @param entityType - current entity type
|
|
594
|
+
* @returns - the new chart definition
|
|
570
595
|
*/
|
|
571
596
|
function handleChart(facet, facetKey, appSchema, entityType) {
|
|
572
597
|
const chart = (0, common_1.parseSchemaDefinition)(ux_specification_types_1.DefinitionName.ObjectPageChart, facetKey, appSchema);
|
|
@@ -583,13 +608,16 @@ function handleChart(facet, facetKey, appSchema, entityType) {
|
|
|
583
608
|
return { chart, chartActions };
|
|
584
609
|
}
|
|
585
610
|
/**
|
|
586
|
-
* Adds definitions for Chart section in object page sections to the app schema
|
|
611
|
+
* Adds definitions for Chart section in object page sections to the app schema.
|
|
612
|
+
*
|
|
587
613
|
* @param {FacetConfig} facet - current facet.
|
|
588
614
|
* @param {string} facetKey - facet key.
|
|
589
615
|
* @param {object} appSchema - app specific schema of the object page that gets enhanced.
|
|
590
616
|
* @param {object} sections - schema of current sections definition.
|
|
591
617
|
* @param {EntityType} entityType - current entity type
|
|
592
618
|
* @param {boolean} isPVHeaderFacet - whether the facet is a Presentation Variant header facet
|
|
619
|
+
* @param namespace - the namespace of the facet
|
|
620
|
+
* @returns - the new chart definition
|
|
593
621
|
*/
|
|
594
622
|
function handleSectionChart(facet, facetKey, appSchema, sections, entityType = facet.entityType, isPVHeaderFacet = false, namespace) {
|
|
595
623
|
const definition = isPVHeaderFacet
|
|
@@ -616,11 +644,12 @@ function handleSectionChart(facet, facetKey, appSchema, sections, entityType = f
|
|
|
616
644
|
return { parentChartRef, chart, chartActions };
|
|
617
645
|
}
|
|
618
646
|
/**
|
|
619
|
-
* Extracts the key and type of the visualization
|
|
620
|
-
*
|
|
621
|
-
* @param
|
|
622
|
-
* @param
|
|
623
|
-
* @
|
|
647
|
+
* Extracts the key and type of the visualization.
|
|
648
|
+
*
|
|
649
|
+
* @param hasTarget - whether the facet has a target
|
|
650
|
+
* @param facetTarget - target of the facet
|
|
651
|
+
* @param generateParameters - list of API input parameters
|
|
652
|
+
* @returns - key and type of the visualization
|
|
624
653
|
*/
|
|
625
654
|
function getVisualizationKeyAndType(hasTarget, facetTarget, generateParameters) {
|
|
626
655
|
const alias = hasTarget ? facetTarget.fullyQualifiedName : facetTarget.targetString;
|
|
@@ -631,21 +660,23 @@ function getVisualizationKeyAndType(hasTarget, facetTarget, generateParameters)
|
|
|
631
660
|
return { key, type };
|
|
632
661
|
}
|
|
633
662
|
/**
|
|
634
|
-
* Returns the target of the visualization
|
|
635
|
-
*
|
|
663
|
+
* Returns the target of the visualization.
|
|
664
|
+
*
|
|
665
|
+
* @param generateParameters - list of API input parameters
|
|
636
666
|
* @param navigationPath - navigation path of the target
|
|
637
667
|
* @param visualizationType - type of the visualization
|
|
638
|
-
* @returns
|
|
668
|
+
* @returns - target of the visualization
|
|
639
669
|
*/
|
|
640
670
|
function getTargetFromNavigation(generateParameters, navigationPath, visualizationType) {
|
|
641
671
|
const navigationProp = generateParameters.entityType.navigationProperties.find((prop) => prop.name === navigationPath);
|
|
642
672
|
return navigationProp.targetType?.annotations?.UI[visualizationType];
|
|
643
673
|
}
|
|
644
674
|
/**
|
|
645
|
-
* Returns the properties of the visualization
|
|
646
|
-
*
|
|
647
|
-
* @param
|
|
648
|
-
* @param
|
|
675
|
+
* Returns the properties of the visualization.
|
|
676
|
+
*
|
|
677
|
+
* @param facet - the given facet from the UI annotations
|
|
678
|
+
* @param facetKey - key of the facet, as used in annotation
|
|
679
|
+
* @param generateParameters - list of API input parameters
|
|
649
680
|
* @returns {VisualizationProps | undefined} - properties of the visualization
|
|
650
681
|
*/
|
|
651
682
|
function getVisualizationProps(facet, facetKey, generateParameters) {
|
|
@@ -664,7 +695,8 @@ function getVisualizationProps(facet, facetKey, generateParameters) {
|
|
|
664
695
|
return { key, type, target, namespace, navigationPath };
|
|
665
696
|
}
|
|
666
697
|
/**
|
|
667
|
-
* Helper function to add property reference to the sections
|
|
698
|
+
* Helper function to add property reference to the sections.
|
|
699
|
+
*
|
|
668
700
|
* @param {Definition} sections Definition to add property reference
|
|
669
701
|
* @param {string} propertyName Property name to be added
|
|
670
702
|
* @param {DefinitionName} definition - Key of the visualization
|
|
@@ -675,20 +707,28 @@ function addPropertyRef(sections, propertyName, definition, link) {
|
|
|
675
707
|
$ref: (0, common_1.getFacetDefinitionLink)(definition, link || propertyName)
|
|
676
708
|
};
|
|
677
709
|
}
|
|
710
|
+
/**
|
|
711
|
+
* Generates the property and navigation keys for a section based on the facet key and visualization properties.
|
|
712
|
+
*
|
|
713
|
+
* @param facetKey - The key of the facet.
|
|
714
|
+
* @param props - The visualization properties containing key, type, target, namespace, and navigationPath.
|
|
715
|
+
* @returns An object containing the navigationKey and propertyKey for the section.
|
|
716
|
+
*/
|
|
678
717
|
function getSectionPropertyRef(facetKey, props) {
|
|
679
718
|
const propertyKey = `${facetKey}<${props.key}>`;
|
|
680
719
|
const navigationKey = props.navigationPath ? `${props.navigationPath}::${props.key}` : props.key;
|
|
681
720
|
return { propertyKey, navigationKey };
|
|
682
721
|
}
|
|
683
722
|
/**
|
|
684
|
-
* Adds LineItem definition of object page section to the app schema
|
|
685
|
-
*
|
|
686
|
-
* @param
|
|
687
|
-
* @param
|
|
688
|
-
* @param
|
|
689
|
-
* @param
|
|
690
|
-
* @param
|
|
691
|
-
* @param
|
|
723
|
+
* Adds LineItem definition of object page section to the app schema.
|
|
724
|
+
*
|
|
725
|
+
* @param facet - the given facet from the UI annotations
|
|
726
|
+
* @param facetKey - key of the facet, as used in annotation
|
|
727
|
+
* @param appSchema - app schema of the object page
|
|
728
|
+
* @param sections - schema of current sections definition.
|
|
729
|
+
* @param props - visualization properties
|
|
730
|
+
* @param generateParameters - list of API input parameters
|
|
731
|
+
* @param v4Page Current page in manifest
|
|
692
732
|
*/
|
|
693
733
|
function addPVLineItemSection(facet, facetKey, appSchema, sections, props, generateParameters, v4Page) {
|
|
694
734
|
const { propertyKey, navigationKey } = getSectionPropertyRef(facetKey, props);
|
|
@@ -701,7 +741,8 @@ function addPVLineItemSection(facet, facetKey, appSchema, sections, props, gener
|
|
|
701
741
|
table[ux_specification_types_1.SchemaTag.target] = props.namespace;
|
|
702
742
|
}
|
|
703
743
|
/**
|
|
704
|
-
* Adds Chart definition of object page (header) section to the app schema
|
|
744
|
+
* Adds Chart definition of object page (header) section to the app schema.
|
|
745
|
+
*
|
|
705
746
|
* @param {FacetConfig} facet - the given facet from the UI annotations
|
|
706
747
|
* @param {string} facetKey - key of the facet, as used in annotation
|
|
707
748
|
* @param {Definition} appSchema - app schema of the object page
|
|
@@ -731,14 +772,15 @@ function addPVChartSection(facet, facetKey, appSchema, sections, props, isPVHead
|
|
|
731
772
|
}
|
|
732
773
|
}
|
|
733
774
|
/**
|
|
734
|
-
* Adds definitions for (selection) presentation variants in object page sections to the app schema
|
|
735
|
-
*
|
|
736
|
-
* @param
|
|
737
|
-
* @param
|
|
738
|
-
* @param
|
|
739
|
-
* @param
|
|
740
|
-
* @param
|
|
741
|
-
* @param
|
|
775
|
+
* Adds definitions for (selection) presentation variants in object page sections to the app schema.
|
|
776
|
+
*
|
|
777
|
+
* @param facet - the given facet from the UI annotations
|
|
778
|
+
* @param facetKey - key of the facet, as used in annotation
|
|
779
|
+
* @param appSchema - app schema of the object page
|
|
780
|
+
* @param sections - schema of current sections definition.
|
|
781
|
+
* @param sectionPrefix - prefix to distinguish Section and HeaderSection
|
|
782
|
+
* @param generateParameters - list of API input parameters
|
|
783
|
+
* @param v4Page Current page in manifest
|
|
742
784
|
*/
|
|
743
785
|
function handleSectionPresentationVariant(facet, facetKey, appSchema, sections, sectionPrefix, generateParameters, v4Page) {
|
|
744
786
|
if (!facet?.target) {
|
|
@@ -763,6 +805,7 @@ function handleSectionPresentationVariant(facet, facetKey, appSchema, sections,
|
|
|
763
805
|
}
|
|
764
806
|
/**
|
|
765
807
|
* Method checks if passed facet contains any collection facet.
|
|
808
|
+
*
|
|
766
809
|
* @param {FacetConfig} facet - facet to check
|
|
767
810
|
* @returns {boolean} Passed facet contains at least one collection facet
|
|
768
811
|
*/
|
|
@@ -777,7 +820,8 @@ function containsCollectionFacet(facet) {
|
|
|
777
820
|
return false;
|
|
778
821
|
}
|
|
779
822
|
/**
|
|
780
|
-
* Object Page specific enhancements to addCustomColumnDefinition
|
|
823
|
+
* Object Page specific enhancements to addCustomColumnDefinition.
|
|
824
|
+
*
|
|
781
825
|
* @param {object} appSchema - app schema of the object page
|
|
782
826
|
* @param {string} id - identifier of the current section facet
|
|
783
827
|
* @param {string[]} featureToggles - supported features
|
|
@@ -812,10 +856,11 @@ function createCustomSubSectionReference(appSchema, id, featureToggles) {
|
|
|
812
856
|
}
|
|
813
857
|
/**
|
|
814
858
|
* Method applies custom action definitions to custom sections.
|
|
815
|
-
*
|
|
816
|
-
* @param
|
|
817
|
-
* @param
|
|
818
|
-
* @param
|
|
859
|
+
*
|
|
860
|
+
* @param appSchema - app schema of the object page
|
|
861
|
+
* @param v4Page Current page in manifest
|
|
862
|
+
* @param customSectionRef - reference to custom section definition
|
|
863
|
+
* @param logger - logger for exceptions
|
|
819
864
|
*/
|
|
820
865
|
function applyCustomActionsToCustomSections(appSchema, v4Page, customSectionRef, logger) {
|
|
821
866
|
// add specific definitions for custom sections and custom actions from manifest
|
|
@@ -853,12 +898,14 @@ function applyCustomActionsToCustomSections(appSchema, v4Page, customSectionRef,
|
|
|
853
898
|
}
|
|
854
899
|
/**
|
|
855
900
|
* Common method updates schema for custom sections or custom subsections.
|
|
856
|
-
*
|
|
857
|
-
* @param
|
|
858
|
-
* @param
|
|
859
|
-
* @param
|
|
860
|
-
* @param
|
|
861
|
-
* @param
|
|
901
|
+
*
|
|
902
|
+
* @param sections - sections definition
|
|
903
|
+
* @param appSchema - app schema of the object page
|
|
904
|
+
* @param generateParameters - list of API input parameters
|
|
905
|
+
* @param v4Page Current page in manifest
|
|
906
|
+
* @param customSectionDefinitionName - The name of the custom section definition to be applied.
|
|
907
|
+
* @param facet - the given facet from the UI annotations
|
|
908
|
+
* @param facetKey - key of the facet, as used in annotation
|
|
862
909
|
*/
|
|
863
910
|
function applyCustomSections(sections, appSchema, generateParameters, v4Page, customSectionDefinitionName, facet, facetKey) {
|
|
864
911
|
let isMergedSections = false;
|
|
@@ -910,15 +957,16 @@ function applyCustomSections(sections, appSchema, generateParameters, v4Page, cu
|
|
|
910
957
|
}
|
|
911
958
|
}
|
|
912
959
|
/**
|
|
913
|
-
* Adds definitions for collections in object page sections to the app schema
|
|
914
|
-
*
|
|
915
|
-
* @param
|
|
916
|
-
* @param
|
|
917
|
-
* @param
|
|
918
|
-
* @param
|
|
919
|
-
* @param
|
|
920
|
-
* @param
|
|
921
|
-
* @param
|
|
960
|
+
* Adds definitions for collections in object page sections to the app schema.
|
|
961
|
+
*
|
|
962
|
+
* @param facet - the given facet from the UI annotations
|
|
963
|
+
* @param facetKey - key of the facet, as used in annotation
|
|
964
|
+
* @param appSchema - app schema of the object page
|
|
965
|
+
* @param sections - schema of current sections definition.
|
|
966
|
+
* @param sectionPrefix - prefix to distinguish Section and HeaderSection
|
|
967
|
+
* @param generateParameters - list of API input parameters
|
|
968
|
+
* @param v4Page Current page in manifest
|
|
969
|
+
* @param level Collection level in tree
|
|
922
970
|
*/
|
|
923
971
|
function handleCollection(facet, facetKey, appSchema, sections, sectionPrefix, generateParameters, v4Page, level) {
|
|
924
972
|
const isCustomSubSectionsSupported = level === 0;
|
|
@@ -952,14 +1000,15 @@ function handleCollection(facet, facetKey, appSchema, sections, sectionPrefix, g
|
|
|
952
1000
|
}
|
|
953
1001
|
/**
|
|
954
1002
|
* Creates a section definition in app schema.
|
|
955
|
-
*
|
|
956
|
-
* @param
|
|
957
|
-
* @param
|
|
958
|
-
* @param
|
|
959
|
-
* @param
|
|
960
|
-
* @param
|
|
961
|
-
* @param
|
|
962
|
-
* @param
|
|
1003
|
+
*
|
|
1004
|
+
* @param generateParameters - list of API input parameters
|
|
1005
|
+
* @param facets - list of all facets
|
|
1006
|
+
* @param facetKey - facet key
|
|
1007
|
+
* @param sections - schema of current sections definition
|
|
1008
|
+
* @param appSchema - app specific schema of the object page that gets enhanced.
|
|
1009
|
+
* @param sectionPrefix - prefix to distinguish Section and HeaderSection
|
|
1010
|
+
* @param v4Page Current page in manifest
|
|
1011
|
+
* @param [level] Section level in tree
|
|
963
1012
|
*/
|
|
964
1013
|
function addSection(generateParameters, facets, facetKey, sections, appSchema, sectionPrefix, v4Page, level = 0) {
|
|
965
1014
|
const facet = facets[facetKey];
|
|
@@ -1010,10 +1059,11 @@ function addSection(generateParameters, facets, facetKey, sections, appSchema, s
|
|
|
1010
1059
|
}
|
|
1011
1060
|
}
|
|
1012
1061
|
/**
|
|
1013
|
-
* Derives the sections from the UI.Facets annotation and adds them to the schema
|
|
1014
|
-
*
|
|
1015
|
-
* @param
|
|
1016
|
-
* @param
|
|
1062
|
+
* Derives the sections from the UI.Facets annotation and adds them to the schema.
|
|
1063
|
+
*
|
|
1064
|
+
* @param generateParameters - list of API input parameters
|
|
1065
|
+
* @param appSchema - application specific JSON schema of the object page
|
|
1066
|
+
* @param v4Page - current page
|
|
1017
1067
|
*/
|
|
1018
1068
|
function addSections(generateParameters, appSchema, v4Page) {
|
|
1019
1069
|
// Get facet annotations
|
|
@@ -1030,11 +1080,12 @@ function addSections(generateParameters, appSchema, v4Page) {
|
|
|
1030
1080
|
applyCustomSections(sections, appSchema, generateParameters, v4Page, ux_specification_types_1.DefinitionName.ObjectPageCustomSectionFragment);
|
|
1031
1081
|
}
|
|
1032
1082
|
/**
|
|
1033
|
-
* Derives the header sections from the UI.HeaderFacets annotation and adds them to the schema
|
|
1034
|
-
*
|
|
1035
|
-
* @param
|
|
1036
|
-
* @param
|
|
1037
|
-
* @param
|
|
1083
|
+
* Derives the header sections from the UI.HeaderFacets annotation and adds them to the schema.
|
|
1084
|
+
*
|
|
1085
|
+
* @param generateParameters - list of API input parameters
|
|
1086
|
+
* @param appSchema - application specific JSON schema of the object page
|
|
1087
|
+
* @param entityType - current entity type
|
|
1088
|
+
* @param v4Page - current page in manifest
|
|
1038
1089
|
*/
|
|
1039
1090
|
function addHeaderSections(generateParameters, appSchema, entityType, v4Page) {
|
|
1040
1091
|
// Get facet annotations
|
|
@@ -1059,10 +1110,11 @@ function addHeaderSections(generateParameters, appSchema, entityType, v4Page) {
|
|
|
1059
1110
|
delete appSchema.definitions[ux_specification_types_1.DefinitionName.ObjectPageHeaderSectionAddress];
|
|
1060
1111
|
}
|
|
1061
1112
|
/**
|
|
1062
|
-
* Add Object Page Header to app-specific schema
|
|
1063
|
-
*
|
|
1064
|
-
* @param
|
|
1065
|
-
* @param
|
|
1113
|
+
* Add Object Page Header to app-specific schema.
|
|
1114
|
+
*
|
|
1115
|
+
* @param generateParameters - list of API input parameters
|
|
1116
|
+
* @param appSchema Schema of the object page
|
|
1117
|
+
* @param v4Page - current page in manifest
|
|
1066
1118
|
*/
|
|
1067
1119
|
function addHeader(generateParameters, appSchema, v4Page) {
|
|
1068
1120
|
const entityType = generateParameters.entityType;
|
|
@@ -1079,11 +1131,11 @@ function addHeader(generateParameters, appSchema, v4Page) {
|
|
|
1079
1131
|
/**
|
|
1080
1132
|
* Generates an app specific schema out of the generic schema.
|
|
1081
1133
|
* Generic types are replaced by information from the app specific annotations.
|
|
1134
|
+
*
|
|
1082
1135
|
* @param {GenerateAppSchemaParameters} generateParameters - list of API input parameters
|
|
1083
1136
|
* @param {object} genericSchema - generic JSON schema of an object page
|
|
1084
1137
|
* @param {string} contextPath - contextPath of the given page
|
|
1085
1138
|
* @param {object} genericMacrosSchema - generic JSON schema of custom page
|
|
1086
|
-
*
|
|
1087
1139
|
* @returns the app specific JSON schema
|
|
1088
1140
|
*/
|
|
1089
1141
|
function generateObjectPageSchemaV4(generateParameters, genericSchema, contextPath, genericMacrosSchema) {
|