@sap/ux-specification 1.120.35 → 1.120.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 +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 +86 -86
- 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 +5 -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 +13 -3
- package/dist/specification/src/sync/common/distTagEvaluator.d.ts.map +1 -1
- package/dist/specification/src/sync/common/distTagEvaluator.js +13 -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 +65 -37
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +67 -37
- 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 +235 -94
- 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 +13 -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 +21 -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 +48 -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 +14 -9
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js +44 -17
- 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 +124 -78
- 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 +210 -162
- 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 +70 -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 +52 -39
- 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 +11 -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 +9 -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 +16 -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
|
@@ -7,13 +7,16 @@ import type * as Edm from '@sap-ux/vocabularies-types/Edm';
|
|
|
7
7
|
import type { EntityTypeAnnotations_UI } from '@sap-ux/vocabularies-types/vocabularies/UI_Edm';
|
|
8
8
|
import { ActionTypeV2 } from '../types';
|
|
9
9
|
import type { FacetBase } from '../../../../../types/src/common/types';
|
|
10
|
-
import type { ExtensionLogger } from '../../..';
|
|
11
10
|
/**
|
|
12
|
-
* Processes a LineItem record of type DataFieldForAction and DataFieldForIntentBasedNavigation during app schema generation
|
|
11
|
+
* Processes a LineItem record of type DataFieldForAction and DataFieldForIntentBasedNavigation during app schema generation.
|
|
12
|
+
*
|
|
13
13
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
14
|
-
* @param entityType - the entity type as part of the AVT ConvertedMetadata
|
|
15
14
|
* @param actions - actions definition in schema, parent object
|
|
16
|
-
* @param
|
|
15
|
+
* @param lineItemProps - properties of the line item collection: lineItemPath, lineItemRecord, lineItemId
|
|
16
|
+
* @param lineItemProps.lineItemPath - The path to the line item in the schema.
|
|
17
|
+
* @param lineItemProps.lineItemRecord - The record of the line item in the collection.
|
|
18
|
+
* @param lineItemProps.lineItemId - The identifier of the line item.
|
|
19
|
+
* @param lineItemProps.entityType - the entity type as part of the AVT ConvertedMetadata
|
|
17
20
|
* @param actionType - type of action
|
|
18
21
|
* @param recordIndex - record index in the collection
|
|
19
22
|
*/
|
|
@@ -31,7 +34,8 @@ export declare function handleActionRecord(appSchema: Definition, actions: Defin
|
|
|
31
34
|
*/
|
|
32
35
|
export declare function retrieveNameWithoutVocabularyFromVisualization(annotationTerm: FacetBase, visualization: Edm.AnnotationPath<Chart | DataPoint | LineItem>): string;
|
|
33
36
|
/**
|
|
34
|
-
* Adds the line item records to the app schema (for the list report or an object page section comprising a table)
|
|
37
|
+
* Adds the line item records to the app schema (for the list report or an object page section comprising a table).
|
|
38
|
+
*
|
|
35
39
|
* @param isObjectPage - indicates that the page is an object page
|
|
36
40
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
37
41
|
* @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
|
|
@@ -43,6 +47,7 @@ export declare function retrieveNameWithoutVocabularyFromVisualization(annotatio
|
|
|
43
47
|
export declare function addLineItemsType(isObjectPage: boolean, appSchema: Definition, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, lineItemId?: string, customColumnRef?: string): void;
|
|
44
48
|
/**
|
|
45
49
|
* Adds enum entries of possible leading properties for 'leadingProperty' property in TableCustomColumn properties.
|
|
50
|
+
*
|
|
46
51
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
47
52
|
* @param entityType - the entity type as part of the AVT ConvertedMetadata
|
|
48
53
|
* @param definitionName - definition name of CustomColumn definition
|
|
@@ -50,14 +55,16 @@ export declare function addLineItemsType(isObjectPage: boolean, appSchema: Defin
|
|
|
50
55
|
export declare function addListReportLeadingProperties(appSchema: Definition, entityType: EntityType, definitionName: string): void;
|
|
51
56
|
/**
|
|
52
57
|
* Adds enum entries of posible tabKey properties for 'leadingProperty' property in TableCustomColumn properties.
|
|
58
|
+
*
|
|
53
59
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
54
60
|
* @param definitionName - definition name of CustomColumn definition
|
|
55
61
|
* @param page - sapui5 page object
|
|
56
|
-
* @param
|
|
62
|
+
* @param facetID - The facet ID
|
|
57
63
|
*/
|
|
58
64
|
export declare function addTabkeyEnum(appSchema: Definition, definitionName: string, page?: v2.SapUiAppPageV2, facetID?: string): void;
|
|
59
65
|
/**
|
|
60
66
|
* Adds enum entries of posible fragment entries.
|
|
67
|
+
*
|
|
61
68
|
* @param {object} appSchema The app specific schema that shall get enhanced.
|
|
62
69
|
* @param {FileData[]} fragments Array of fragments.
|
|
63
70
|
* @param {string[]} appId Application id.
|
|
@@ -67,20 +74,23 @@ export declare function addTabkeyEnum(appSchema: Definition, definitionName: str
|
|
|
67
74
|
export declare function addFragmentEnum(appSchema: Definition, fragments: FileData[], appId: string, property: string, definitionName: string): void;
|
|
68
75
|
/**
|
|
69
76
|
* Adds the custom columns to the line item records of the app schema (for the list report comprising a table).
|
|
70
|
-
*
|
|
71
|
-
* @param
|
|
72
|
-
* @param
|
|
73
|
-
* @param
|
|
74
|
-
* @param
|
|
75
|
-
* @param
|
|
76
|
-
* @param
|
|
77
|
-
* @param
|
|
77
|
+
*
|
|
78
|
+
* @param appSchema The app specific schema that shall get enhanced.
|
|
79
|
+
* @param entityType The entity type as part of the AVT ConvertedMetadata.
|
|
80
|
+
* @param page Sapui5 page object.
|
|
81
|
+
* @param manifest Application manifest.
|
|
82
|
+
* @param [fragments] Array of fragments.
|
|
83
|
+
* @param [customColumnsDefinitionName] Definition name of Custom Columns definition.
|
|
84
|
+
* @param [customColumnDefinitionName] Definition name of Custom Column definition.
|
|
85
|
+
* @param facetID - Facet ID
|
|
78
86
|
*/
|
|
79
87
|
export declare function addTableColumnExtensions(appSchema: object, entityType: EntityType, page: v2.SapUiAppPageV2, manifest: object, fragments?: FileData[], customColumnsDefinitionName?: string, customColumnDefinitionName?: string, facetID?: string): void;
|
|
80
88
|
/**
|
|
81
|
-
* Apply post-processing rules as specified in form of "generate" at the syncRule
|
|
89
|
+
* Apply post-processing rules as specified in form of "generate" at the syncRule.
|
|
90
|
+
*
|
|
82
91
|
* @param schema - given app schema, to be adapted
|
|
83
92
|
* @param schemaDefinition - the current entry point or definition in the app schema
|
|
93
|
+
* @param metaDataDefinition - the current entry point or definition in the metadata
|
|
84
94
|
* @param pageType - page type
|
|
85
95
|
* @param factory - factory for creating metadata instances
|
|
86
96
|
* @param processedRefs - array of already processed refs which used to avoid cycling recursion
|
|
@@ -91,57 +101,71 @@ export declare function processMetadata(schema: object, schemaDefinition: object
|
|
|
91
101
|
}, pageType: PageTypeV2 | PageTypeV4, factory: MetadataInstanceInterface, processedRefs: string[], ref?: string): void;
|
|
92
102
|
/**
|
|
93
103
|
* Method updates passed 'enum' array by removing passed matching entries.
|
|
104
|
+
*
|
|
94
105
|
* @param {Array<unknown>} values Array of values.
|
|
95
106
|
* @param {Array<unknown>} valuesToRemove Array of values to remove.
|
|
96
107
|
*/
|
|
97
108
|
export declare function removeElementsFromEnum(values: Array<unknown>, valuesToRemove: Array<unknown>): void;
|
|
98
109
|
/**
|
|
99
|
-
* Adds the selection fields to the app schema, as properties of the Filterbar
|
|
100
|
-
*
|
|
110
|
+
* Adds the selection fields to the app schema, as properties of the Filterbar.
|
|
111
|
+
*
|
|
101
112
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
102
113
|
* @param selectionFieldsAnnotation - the UI.SelectionField annotation
|
|
114
|
+
* @param entityType - the entity type as part of the AVT ConvertedMetadata
|
|
103
115
|
*/
|
|
104
116
|
export declare function addSelectionFields(appSchema: Definition, selectionFieldsAnnotation: AnnotationTerm<SelectionFields>, entityType: EntityType): void;
|
|
105
117
|
/**
|
|
106
|
-
* Add entityProperties to passed a passed enum entry
|
|
118
|
+
* Add entityProperties to passed a passed enum entry.
|
|
119
|
+
*
|
|
107
120
|
* @param {string[]} appSchemaEnum - Enum to be enhanced
|
|
108
121
|
* @param {EntityType} entityType - Given entity type for which entries shall get generated
|
|
109
122
|
*/
|
|
110
123
|
export declare function addEntityPropertiesToEnum(appSchemaEnum: string[], entityType: EntityType): void;
|
|
111
124
|
/**
|
|
112
|
-
* Checks if an entity supports draft capabilities
|
|
125
|
+
* Checks if an entity supports draft capabilities.
|
|
126
|
+
*
|
|
113
127
|
* @param {EntitySet} entitySet Entity Set
|
|
114
128
|
* @returns true if the entity supports draft
|
|
115
129
|
*/
|
|
116
130
|
export declare function isDraftEnabled(entitySet: EntitySet): boolean;
|
|
117
131
|
/**
|
|
118
132
|
* Function to determine if the entity is deletable.
|
|
133
|
+
*
|
|
119
134
|
* @param {EntitySet} entitySet - current entity set
|
|
120
135
|
* returns {boolean} return true if the Entity is deletable
|
|
121
136
|
*/
|
|
137
|
+
/**
|
|
138
|
+
* Checks if an entity supports draft capabilities.
|
|
139
|
+
*
|
|
140
|
+
* @param entitySet - The entity set to check for draft capabilities.
|
|
141
|
+
* @returns {boolean} True if the entity supports draft capabilities, otherwise false.
|
|
142
|
+
*/
|
|
122
143
|
export declare function isEntityDeletable(entitySet: EntitySet): boolean;
|
|
123
144
|
/**
|
|
124
145
|
* Function to determine if the entity is updatable.
|
|
146
|
+
*
|
|
125
147
|
* @param {EntitySet} entitySet - current entity set
|
|
126
148
|
* @returns returns true if the Entity is updatable
|
|
127
149
|
*/
|
|
128
150
|
export declare function isEntityUpdatable(entitySet: EntitySet): boolean;
|
|
129
151
|
/**
|
|
130
|
-
* Adds standard header actions to schema (LR, ALP or OP)
|
|
152
|
+
* Adds standard header actions to schema (LR, ALP or OP).
|
|
153
|
+
*
|
|
131
154
|
* @param {Definition} appSchema - app-specific JSON schema
|
|
132
155
|
* @param {boolean} isOP - flag to add to either LR/ALP or OP definition
|
|
133
156
|
* @param {Definition} actions - optional standard actions definition
|
|
134
157
|
*/
|
|
135
158
|
export declare function addStandardHeaderActions(appSchema: Definition, isOP?: boolean, actions?: Definition): void;
|
|
136
159
|
/**
|
|
137
|
-
* Adds standard footer actions to schema of Object Page
|
|
160
|
+
* Adds standard footer actions to schema of Object Page.
|
|
161
|
+
*
|
|
138
162
|
* @param {Definition} appSchema - app-specific JSON schema
|
|
139
|
-
* @param {EntityType} entityType Entity Type of the page
|
|
140
163
|
* @param {Definition} actions - optional standard actions definition
|
|
141
164
|
*/
|
|
142
165
|
export declare function addStandardFooterActionsOP(appSchema: Definition, actions: Definition): void;
|
|
143
166
|
/**
|
|
144
|
-
* Extract entity type and ui annotations for a entity set and log an error in case that either of these objects does not exist
|
|
167
|
+
* Extract entity type and ui annotations for a entity set and log an error in case that either of these objects does not exist.
|
|
168
|
+
*
|
|
145
169
|
* @param {GenerateAppSchemaParameters} generateParameters list of API input parameters
|
|
146
170
|
* @returns the entity type and the ui annotations for the given entity set
|
|
147
171
|
*/
|
|
@@ -149,17 +173,4 @@ export declare function getUIAnnotationForEntitySet(generateParameters: Generate
|
|
|
149
173
|
entityType?: Edm.EntityType;
|
|
150
174
|
uIAnnotations?: EntityTypeAnnotations_UI;
|
|
151
175
|
};
|
|
152
|
-
/**
|
|
153
|
-
* Type check for properties coming from the manifest.
|
|
154
|
-
*
|
|
155
|
-
* @param parent - the parent object in manifest which may contain the property.
|
|
156
|
-
* @param propertyName - name of the property name to be checked
|
|
157
|
-
* @param logger - a logger which may receive the error message in case a type error is detected
|
|
158
|
-
* @param expectedType - the expected type of the value of the property (if it is not undefined)
|
|
159
|
-
* @param mandatory - specifies handling handling of null and undefined: If parent is null this is always considered an error.
|
|
160
|
-
* undefined value for parent or its specified property is considered an error when parameter mandatory is true.
|
|
161
|
-
* null value for the specified property is considered an error when mandatory is true or the expected type is not 'object'.
|
|
162
|
-
* @returns the information whether a type error was detected.
|
|
163
|
-
*/
|
|
164
|
-
export declare function hasPropertyTypeError(parent: unknown, propertyName: string, logger?: ExtensionLogger, expectedType?: string, mandatory?: boolean): boolean;
|
|
165
176
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v2/generate/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,KAAK,EACR,EAAE,EACF,UAAU,EACV,UAAU,EACV,QAAQ,EAER,2BAA2B,EAC9B,MAAM,6BAA6B,CAAC;AAUrC,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,KAAK,EACR,KAAK,EACL,SAAS,EAET,QAAQ,EACR,eAAe,EAClB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,KAAK,GAAG,MAAM,gCAAgC,CAAC;AAC3D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAoB/F,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v2/generate/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,KAAK,EACR,EAAE,EACF,UAAU,EACV,UAAU,EACV,QAAQ,EAER,2BAA2B,EAC9B,MAAM,6BAA6B,CAAC;AAUrC,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,KAAK,EACR,KAAK,EACL,SAAS,EAET,QAAQ,EACR,eAAe,EAClB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,KAAK,GAAG,MAAM,gCAAgC,CAAC;AAC3D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAoB/F,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAwEvE;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAC9B,SAAS,EAAE,UAAU,EACrB,OAAO,EAAE,UAAU,EACnB,aAAa,EAAE;IAAE,YAAY,MAAC;IAAC,cAAc,MAAC;IAAC,UAAU,MAAC;IAAC,UAAU,EAAE,UAAU,CAAA;CAAE,EACnF,UAAU,EAAE,YAAY,EACxB,WAAW,EAAE,MAAM,GACpB,IAAI,CAiDN;AAmJD;;;;;GAKG;AACH,wBAAgB,8CAA8C,CAC1D,cAAc,EAAE,SAAS,EACzB,aAAa,EAAE,GAAG,CAAC,cAAc,CAAC,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAC,GAChE,MAAM,CAMR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC5B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAE,UAAU,EACrB,kBAAkB,EAAE,cAAc,CAAC,QAAQ,CAAC,EAC5C,UAAU,EAAE,UAAU,EACtB,UAAU,CAAC,EAAE,MAAM,EACnB,eAAe,CAAC,EAAE,MAAM,GACzB,IAAI,CAwCN;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC1C,SAAS,EAAE,UAAU,EACrB,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,MAAM,GACvB,IAAI,CAmBN;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CACzB,SAAS,EAAE,UAAU,EACrB,cAAc,EAAE,MAAM,EACtB,IAAI,CAAC,EAAE,EAAE,CAAC,cAAc,EACxB,OAAO,CAAC,EAAE,MAAM,GACjB,IAAI,CAqBN;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,UAAU,EACrB,SAAS,EAAE,QAAQ,EAAE,EACrB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,GACvB,IAAI,CA+BN;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CACpC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,EAAE,CAAC,cAAc,EACvB,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,QAAQ,EAAE,EACtB,2BAA2B,GAAE,MAAqC,EAClE,0BAA0B,GAAE,MAAoC,EAChE,OAAO,CAAC,EAAE,MAAM,GACjB,IAAI,CAcN;AAqMD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC3B,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,MAAM,EACxB,kBAAkB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC1C,QAAQ,EAAE,UAAU,GAAG,UAAU,EACjC,OAAO,EAAE,yBAAyB,EAClC,aAAa,EAAE,MAAM,EAAE,EACvB,GAAG,CAAC,EAAE,MAAM,GACb,IAAI,CA0BN;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAQnG;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAC9B,SAAS,EAAE,UAAU,EACrB,yBAAyB,EAAE,cAAc,CAAC,eAAe,CAAC,EAC1D,UAAU,EAAE,UAAU,GACvB,IAAI,CAgDN;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI,CAI/F;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAE5D;AAED;;;;;GAKG;AAEH;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAE/D;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAE/D;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,UAAU,EAAE,IAAI,UAAQ,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,CAmBxG;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,GAAG,IAAI,CAS3F;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,kBAAkB,EAAE,2BAA2B,GAAG;IAC1F,UAAU,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC;IAC5B,aAAa,CAAC,EAAE,wBAAwB,CAAC;CAC5C,CAaA"}
|
|
@@ -20,7 +20,6 @@ exports.isEntityUpdatable = isEntityUpdatable;
|
|
|
20
20
|
exports.addStandardHeaderActions = addStandardHeaderActions;
|
|
21
21
|
exports.addStandardFooterActionsOP = addStandardFooterActionsOP;
|
|
22
22
|
exports.getUIAnnotationForEntitySet = getUIAnnotationForEntitySet;
|
|
23
|
-
exports.hasPropertyTypeError = hasPropertyTypeError;
|
|
24
23
|
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
25
24
|
const common_1 = require("../../common");
|
|
26
25
|
const decorators_1 = require("../../common/decoration/decorators");
|
|
@@ -30,7 +29,8 @@ const types_1 = require("../types");
|
|
|
30
29
|
const extensionLogger_1 = require("../../../extensionLogger");
|
|
31
30
|
const i18next_1 = __importDefault(require("i18next"));
|
|
32
31
|
/**
|
|
33
|
-
* Common function for enhancing the LineItems
|
|
32
|
+
* Common function for enhancing the LineItems definition of app schema by custom columns.
|
|
33
|
+
*
|
|
34
34
|
* @param appSchema - app-specific JSON schema
|
|
35
35
|
* @param customColumnsDefinitionName - custom column definition name (plural)
|
|
36
36
|
* @param customColumnDefinitionName - custom column definition name (singular)
|
|
@@ -55,9 +55,14 @@ function addCustomColumnDefinition(appSchema, customColumnsDefinitionName, custo
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Prepares and returns id of action for further use and reference
|
|
58
|
+
* Prepares and returns id of action for further use and reference.
|
|
59
|
+
*
|
|
59
60
|
* @param actionType - type of action
|
|
60
61
|
* @param lineItemProperties - properties of the line item collection: lineItemPath, lineItemRecord, lineItemId
|
|
62
|
+
* @param lineItemProperties.lineItemPath - The path to the line item in the schema.
|
|
63
|
+
* @param lineItemProperties.lineItemRecord - The record of the line item in the collection.
|
|
64
|
+
* @param lineItemProperties.lineItemId - The identifier of the line item.
|
|
65
|
+
* @param lineItemProperties.entityType - The entity type as part of the AVT ConvertedMetadata.
|
|
61
66
|
* @returns {string} actionId
|
|
62
67
|
*/
|
|
63
68
|
function getActionId(actionType, lineItemProperties) {
|
|
@@ -83,11 +88,15 @@ function getActionId(actionType, lineItemProperties) {
|
|
|
83
88
|
}
|
|
84
89
|
}
|
|
85
90
|
/**
|
|
86
|
-
* Processes a LineItem record of type DataFieldForAction and DataFieldForIntentBasedNavigation during app schema generation
|
|
91
|
+
* Processes a LineItem record of type DataFieldForAction and DataFieldForIntentBasedNavigation during app schema generation.
|
|
92
|
+
*
|
|
87
93
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
88
|
-
* @param entityType - the entity type as part of the AVT ConvertedMetadata
|
|
89
94
|
* @param actions - actions definition in schema, parent object
|
|
90
|
-
* @param
|
|
95
|
+
* @param lineItemProps - properties of the line item collection: lineItemPath, lineItemRecord, lineItemId
|
|
96
|
+
* @param lineItemProps.lineItemPath - The path to the line item in the schema.
|
|
97
|
+
* @param lineItemProps.lineItemRecord - The record of the line item in the collection.
|
|
98
|
+
* @param lineItemProps.lineItemId - The identifier of the line item.
|
|
99
|
+
* @param lineItemProps.entityType - the entity type as part of the AVT ConvertedMetadata
|
|
91
100
|
* @param actionType - type of action
|
|
92
101
|
* @param recordIndex - record index in the collection
|
|
93
102
|
*/
|
|
@@ -141,7 +150,8 @@ function handleActionRecord(appSchema, actions, lineItemProps, actionType, recor
|
|
|
141
150
|
}
|
|
142
151
|
}
|
|
143
152
|
/**
|
|
144
|
-
* Returns the type of a column lineItem action
|
|
153
|
+
* Returns the type of a column lineItem action.
|
|
154
|
+
*
|
|
145
155
|
* @param lineItemId - optional: in case of OP the parameter must be passed to distinguish the OP tables;
|
|
146
156
|
* @param {object} lineItemRecord - actual record of the line item collection
|
|
147
157
|
* @param actionTypes - array of action types to be filled
|
|
@@ -162,8 +172,10 @@ function getColumnActionType(lineItemId, lineItemRecord, actionTypes) {
|
|
|
162
172
|
}
|
|
163
173
|
}
|
|
164
174
|
/**
|
|
165
|
-
* Returns the type of a lineItem action
|
|
175
|
+
* Returns the type of a lineItem action.
|
|
176
|
+
*
|
|
166
177
|
* @param {object} lineItemRecord - actual record of the line item collection
|
|
178
|
+
* @param lineItemId - The identifier of the line item, used to distinguish between different line item collections.
|
|
167
179
|
* @returns {string[] | undefined } ActionTypeV2[] - action type(s) of the lineItem
|
|
168
180
|
*/
|
|
169
181
|
function getActionType(lineItemRecord, lineItemId) {
|
|
@@ -192,6 +204,13 @@ function getActionType(lineItemRecord, lineItemId) {
|
|
|
192
204
|
getColumnActionType(lineItemId, lineItemRecord, actionTypes);
|
|
193
205
|
return actionTypes;
|
|
194
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* Generates a generic column for the line item collection.
|
|
209
|
+
*
|
|
210
|
+
* @param lineItemProperties - Properties of the line item collection, including path, record, ID, and entity type.
|
|
211
|
+
* @param appSchema - The app-specific JSON schema to be enhanced.
|
|
212
|
+
* @param recordIndex - The index of the current record in the line item collection.
|
|
213
|
+
*/
|
|
195
214
|
function generateGenericColumn(lineItemProperties, appSchema, recordIndex) {
|
|
196
215
|
const schemaKey = (0, common_1.getSchemaKeyOfLineItemRecord)(lineItemProperties.lineItemRecord);
|
|
197
216
|
if (schemaKey) {
|
|
@@ -208,6 +227,17 @@ function generateGenericColumn(lineItemProperties, appSchema, recordIndex) {
|
|
|
208
227
|
(0, common_1.addKeyToDefinition)(lineItemProperties.lineItemRecord, lineItemDefinition.properties, schemaKey);
|
|
209
228
|
}
|
|
210
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* Handles any action type of a line item record.
|
|
232
|
+
*
|
|
233
|
+
* @param actionType - The type of action being processed.
|
|
234
|
+
* @param appSchema - The app-specific JSON schema to be enhanced.
|
|
235
|
+
* @param actions - The actions definition in the schema, parent object.
|
|
236
|
+
* @param lineItemProperties - Properties of the line item collection, including path, record, ID, and entity type.
|
|
237
|
+
* @param recordIndex - The index of the current record in the line item collection.
|
|
238
|
+
* @param footerActions - The footer actions definition in the schema, if applicable.
|
|
239
|
+
* @param lineItemId - The identifier of the line item, used to distinguish between different line item collections.
|
|
240
|
+
*/
|
|
211
241
|
function handleAnyAction(actionType, appSchema, actions, lineItemProperties, recordIndex, footerActions, lineItemId) {
|
|
212
242
|
switch (actionType) {
|
|
213
243
|
case types_1.ActionTypeV2.ToolBar:
|
|
@@ -246,7 +276,8 @@ function retrieveNameWithoutVocabularyFromVisualization(annotationTerm, visualiz
|
|
|
246
276
|
: '';
|
|
247
277
|
}
|
|
248
278
|
/**
|
|
249
|
-
* Adds the line item records to the app schema (for the list report or an object page section comprising a table)
|
|
279
|
+
* Adds the line item records to the app schema (for the list report or an object page section comprising a table).
|
|
280
|
+
*
|
|
250
281
|
* @param isObjectPage - indicates that the page is an object page
|
|
251
282
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
252
283
|
* @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
|
|
@@ -283,6 +314,7 @@ function addLineItemsType(isObjectPage, appSchema, lineItemAnnotation, entityTyp
|
|
|
283
314
|
}
|
|
284
315
|
/**
|
|
285
316
|
* Adds enum entries of possible leading properties for 'leadingProperty' property in TableCustomColumn properties.
|
|
317
|
+
*
|
|
286
318
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
287
319
|
* @param entityType - the entity type as part of the AVT ConvertedMetadata
|
|
288
320
|
* @param definitionName - definition name of CustomColumn definition
|
|
@@ -307,10 +339,11 @@ function addListReportLeadingProperties(appSchema, entityType, definitionName) {
|
|
|
307
339
|
}
|
|
308
340
|
/**
|
|
309
341
|
* Adds enum entries of posible tabKey properties for 'leadingProperty' property in TableCustomColumn properties.
|
|
342
|
+
*
|
|
310
343
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
311
344
|
* @param definitionName - definition name of CustomColumn definition
|
|
312
345
|
* @param page - sapui5 page object
|
|
313
|
-
* @param
|
|
346
|
+
* @param facetID - The facet ID
|
|
314
347
|
*/
|
|
315
348
|
function addTabkeyEnum(appSchema, definitionName, page, facetID) {
|
|
316
349
|
const tabkeyPropertySchema = appSchema.definitions[definitionName]?.['properties']?.['tabKey'];
|
|
@@ -336,6 +369,7 @@ function addTabkeyEnum(appSchema, definitionName, page, facetID) {
|
|
|
336
369
|
}
|
|
337
370
|
/**
|
|
338
371
|
* Adds enum entries of posible fragment entries.
|
|
372
|
+
*
|
|
339
373
|
* @param {object} appSchema The app specific schema that shall get enhanced.
|
|
340
374
|
* @param {FileData[]} fragments Array of fragments.
|
|
341
375
|
* @param {string[]} appId Application id.
|
|
@@ -372,14 +406,15 @@ function addFragmentEnum(appSchema, fragments, appId, property, definitionName)
|
|
|
372
406
|
}
|
|
373
407
|
/**
|
|
374
408
|
* Adds the custom columns to the line item records of the app schema (for the list report comprising a table).
|
|
375
|
-
*
|
|
376
|
-
* @param
|
|
377
|
-
* @param
|
|
378
|
-
* @param
|
|
379
|
-
* @param
|
|
380
|
-
* @param
|
|
381
|
-
* @param
|
|
382
|
-
* @param
|
|
409
|
+
*
|
|
410
|
+
* @param appSchema The app specific schema that shall get enhanced.
|
|
411
|
+
* @param entityType The entity type as part of the AVT ConvertedMetadata.
|
|
412
|
+
* @param page Sapui5 page object.
|
|
413
|
+
* @param manifest Application manifest.
|
|
414
|
+
* @param [fragments] Array of fragments.
|
|
415
|
+
* @param [customColumnsDefinitionName] Definition name of Custom Columns definition.
|
|
416
|
+
* @param [customColumnDefinitionName] Definition name of Custom Column definition.
|
|
417
|
+
* @param facetID - Facet ID
|
|
383
418
|
*/
|
|
384
419
|
function addTableColumnExtensions(appSchema, entityType, page, manifest, fragments, customColumnsDefinitionName = ux_specification_types_1.DefinitionName.CustomColumns, customColumnDefinitionName = ux_specification_types_1.DefinitionName.CustomColumn, facetID) {
|
|
385
420
|
addCustomColumnDefinition(appSchema, customColumnsDefinitionName, customColumnDefinitionName);
|
|
@@ -396,7 +431,8 @@ function addTableColumnExtensions(appSchema, entityType, page, manifest, fragmen
|
|
|
396
431
|
addFragmentEnum(appSchema, fragments, appId, 'cellsFragmentName', ux_specification_types_1.DefinitionName.CustomColumn);
|
|
397
432
|
}
|
|
398
433
|
/**
|
|
399
|
-
* Processes an anyOf definition of the generic schema
|
|
434
|
+
* Processes an anyOf definition of the generic schema.
|
|
435
|
+
*
|
|
400
436
|
* @param propertyDefinition - current definition in the generic schema
|
|
401
437
|
* @param schema - the app-specific schema
|
|
402
438
|
* @param propertyKey - key of the single property
|
|
@@ -413,8 +449,9 @@ function processAnyOf(propertyDefinition, schema, propertyKey, factory, pageType
|
|
|
413
449
|
});
|
|
414
450
|
}
|
|
415
451
|
/**
|
|
416
|
-
* Processes an object reference of the generic schema
|
|
417
|
-
*
|
|
452
|
+
* Processes an object reference of the generic schema.
|
|
453
|
+
*
|
|
454
|
+
* @param schema - The JSON schema to be processed.
|
|
418
455
|
* @param propertyDefinition - current definition in the generic schema
|
|
419
456
|
* @param propertyKey - key of the single property
|
|
420
457
|
* @param factory - factory for creating metadata instances
|
|
@@ -428,7 +465,8 @@ function processObject(schema, propertyDefinition, propertyKey, factory, pageTyp
|
|
|
428
465
|
}
|
|
429
466
|
}
|
|
430
467
|
/**
|
|
431
|
-
* Determines the artifact type of a property and adds it to the property definition in schema
|
|
468
|
+
* Determines the artifact type of a property and adds it to the property definition in schema.
|
|
469
|
+
*
|
|
432
470
|
* @param syncRule - sync rule of the current property
|
|
433
471
|
* @param propertyDefinition - current definition in the generic schema
|
|
434
472
|
*/
|
|
@@ -449,8 +487,9 @@ function addArtifactType(syncRule, propertyDefinition) {
|
|
|
449
487
|
}
|
|
450
488
|
}
|
|
451
489
|
/**
|
|
452
|
-
* After the generation of a generic schema, apply post-generation rule to a single property
|
|
453
|
-
*
|
|
490
|
+
* After the generation of a generic schema, apply post-generation rule to a single property.
|
|
491
|
+
*
|
|
492
|
+
* @param metaDataDefinition - The metadata definition object containing property configurations and rules.
|
|
454
493
|
* @param schema - given app schema, to be adapted
|
|
455
494
|
* @param pageType - page type
|
|
456
495
|
* @param factory - factory for creating metadata instances
|
|
@@ -485,9 +524,12 @@ function processSingleProperty(metaDataDefinition, schema, pageType, factory, pr
|
|
|
485
524
|
}
|
|
486
525
|
}
|
|
487
526
|
/**
|
|
488
|
-
* After the generation of a generic schema, apply rules to a list of properties of the given schema section
|
|
527
|
+
* After the generation of a generic schema, apply rules to a list of properties of the given schema section.
|
|
528
|
+
*
|
|
489
529
|
* @param schema - given app schema, to be adapted
|
|
490
530
|
* @param schemaDefinition - the current entry point or definition in the app schema
|
|
531
|
+
* @param metaDataDefinition - the current entry point or definition in the metadata
|
|
532
|
+
* @param propertiesSection - the section of the schema containing properties to process (e.g., 'properties', 'additionalProperties', or 'patternProperties')
|
|
491
533
|
* @param pageType - page type
|
|
492
534
|
* @param factory - factory for creating metadata instances
|
|
493
535
|
* @param processedRefs - array of already processed refs which used to avoid cycling recursion
|
|
@@ -514,9 +556,11 @@ function processProperties(schema, schemaDefinition, metaDataDefinition, propert
|
|
|
514
556
|
}
|
|
515
557
|
}
|
|
516
558
|
/**
|
|
517
|
-
* Apply post-processing rules as specified in form of "generate" at the syncRule
|
|
559
|
+
* Apply post-processing rules as specified in form of "generate" at the syncRule.
|
|
560
|
+
*
|
|
518
561
|
* @param schema - given app schema, to be adapted
|
|
519
562
|
* @param schemaDefinition - the current entry point or definition in the app schema
|
|
563
|
+
* @param metaDataDefinition - the current entry point or definition in the metadata
|
|
520
564
|
* @param pageType - page type
|
|
521
565
|
* @param factory - factory for creating metadata instances
|
|
522
566
|
* @param processedRefs - array of already processed refs which used to avoid cycling recursion
|
|
@@ -535,6 +579,7 @@ function processMetadata(schema, schemaDefinition, metaDataDefinition, pageType,
|
|
|
535
579
|
}
|
|
536
580
|
/**
|
|
537
581
|
* Method updates passed 'enum' array by removing passed matching entries.
|
|
582
|
+
*
|
|
538
583
|
* @param {Array<unknown>} values Array of values.
|
|
539
584
|
* @param {Array<unknown>} valuesToRemove Array of values to remove.
|
|
540
585
|
*/
|
|
@@ -548,10 +593,11 @@ function removeElementsFromEnum(values, valuesToRemove) {
|
|
|
548
593
|
}
|
|
549
594
|
}
|
|
550
595
|
/**
|
|
551
|
-
* Adds the selection fields to the app schema, as properties of the Filterbar
|
|
552
|
-
*
|
|
596
|
+
* Adds the selection fields to the app schema, as properties of the Filterbar.
|
|
597
|
+
*
|
|
553
598
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
554
599
|
* @param selectionFieldsAnnotation - the UI.SelectionField annotation
|
|
600
|
+
* @param entityType - the entity type as part of the AVT ConvertedMetadata
|
|
555
601
|
*/
|
|
556
602
|
function addSelectionFields(appSchema, selectionFieldsAnnotation, entityType) {
|
|
557
603
|
appSchema.definitions.SelectionFields = {
|
|
@@ -601,7 +647,8 @@ function addSelectionFields(appSchema, selectionFieldsAnnotation, entityType) {
|
|
|
601
647
|
});
|
|
602
648
|
}
|
|
603
649
|
/**
|
|
604
|
-
* Add entityProperties to passed a passed enum entry
|
|
650
|
+
* Add entityProperties to passed a passed enum entry.
|
|
651
|
+
*
|
|
605
652
|
* @param {string[]} appSchemaEnum - Enum to be enhanced
|
|
606
653
|
* @param {EntityType} entityType - Given entity type for which entries shall get generated
|
|
607
654
|
*/
|
|
@@ -611,7 +658,8 @@ function addEntityPropertiesToEnum(appSchemaEnum, entityType) {
|
|
|
611
658
|
}
|
|
612
659
|
}
|
|
613
660
|
/**
|
|
614
|
-
* Checks if an entity supports draft capabilities
|
|
661
|
+
* Checks if an entity supports draft capabilities.
|
|
662
|
+
*
|
|
615
663
|
* @param {EntitySet} entitySet Entity Set
|
|
616
664
|
* @returns true if the entity supports draft
|
|
617
665
|
*/
|
|
@@ -620,14 +668,22 @@ function isDraftEnabled(entitySet) {
|
|
|
620
668
|
}
|
|
621
669
|
/**
|
|
622
670
|
* Function to determine if the entity is deletable.
|
|
671
|
+
*
|
|
623
672
|
* @param {EntitySet} entitySet - current entity set
|
|
624
673
|
* returns {boolean} return true if the Entity is deletable
|
|
625
674
|
*/
|
|
675
|
+
/**
|
|
676
|
+
* Checks if an entity supports draft capabilities.
|
|
677
|
+
*
|
|
678
|
+
* @param entitySet - The entity set to check for draft capabilities.
|
|
679
|
+
* @returns {boolean} True if the entity supports draft capabilities, otherwise false.
|
|
680
|
+
*/
|
|
626
681
|
function isEntityDeletable(entitySet) {
|
|
627
682
|
return entitySet.annotations?.Capabilities?.DeleteRestrictions?.Deletable !== false;
|
|
628
683
|
}
|
|
629
684
|
/**
|
|
630
685
|
* Function to determine if the entity is updatable.
|
|
686
|
+
*
|
|
631
687
|
* @param {EntitySet} entitySet - current entity set
|
|
632
688
|
* @returns returns true if the Entity is updatable
|
|
633
689
|
*/
|
|
@@ -635,7 +691,8 @@ function isEntityUpdatable(entitySet) {
|
|
|
635
691
|
return entitySet.annotations?.Capabilities?.UpdateRestrictions?.Updatable !== false;
|
|
636
692
|
}
|
|
637
693
|
/**
|
|
638
|
-
* Adds standard header actions to schema (LR, ALP or OP)
|
|
694
|
+
* Adds standard header actions to schema (LR, ALP or OP).
|
|
695
|
+
*
|
|
639
696
|
* @param {Definition} appSchema - app-specific JSON schema
|
|
640
697
|
* @param {boolean} isOP - flag to add to either LR/ALP or OP definition
|
|
641
698
|
* @param {Definition} actions - optional standard actions definition
|
|
@@ -661,9 +718,9 @@ function addStandardHeaderActions(appSchema, isOP = false, actions) {
|
|
|
661
718
|
});
|
|
662
719
|
}
|
|
663
720
|
/**
|
|
664
|
-
* Adds standard footer actions to schema of Object Page
|
|
721
|
+
* Adds standard footer actions to schema of Object Page.
|
|
722
|
+
*
|
|
665
723
|
* @param {Definition} appSchema - app-specific JSON schema
|
|
666
|
-
* @param {EntityType} entityType Entity Type of the page
|
|
667
724
|
* @param {Definition} actions - optional standard actions definition
|
|
668
725
|
*/
|
|
669
726
|
function addStandardFooterActionsOP(appSchema, actions) {
|
|
@@ -677,7 +734,8 @@ function addStandardFooterActionsOP(appSchema, actions) {
|
|
|
677
734
|
}
|
|
678
735
|
}
|
|
679
736
|
/**
|
|
680
|
-
* Extract entity type and ui annotations for a entity set and log an error in case that either of these objects does not exist
|
|
737
|
+
* Extract entity type and ui annotations for a entity set and log an error in case that either of these objects does not exist.
|
|
738
|
+
*
|
|
681
739
|
* @param {GenerateAppSchemaParameters} generateParameters list of API input parameters
|
|
682
740
|
* @returns the entity type and the ui annotations for the given entity set
|
|
683
741
|
*/
|
|
@@ -695,41 +753,4 @@ function getUIAnnotationForEntitySet(generateParameters) {
|
|
|
695
753
|
}
|
|
696
754
|
return { entityType, uIAnnotations };
|
|
697
755
|
}
|
|
698
|
-
/**
|
|
699
|
-
* Type check for properties coming from the manifest.
|
|
700
|
-
*
|
|
701
|
-
* @param parent - the parent object in manifest which may contain the property.
|
|
702
|
-
* @param propertyName - name of the property name to be checked
|
|
703
|
-
* @param logger - a logger which may receive the error message in case a type error is detected
|
|
704
|
-
* @param expectedType - the expected type of the value of the property (if it is not undefined)
|
|
705
|
-
* @param mandatory - specifies handling handling of null and undefined: If parent is null this is always considered an error.
|
|
706
|
-
* undefined value for parent or its specified property is considered an error when parameter mandatory is true.
|
|
707
|
-
* null value for the specified property is considered an error when mandatory is true or the expected type is not 'object'.
|
|
708
|
-
* @returns the information whether a type error was detected.
|
|
709
|
-
*/
|
|
710
|
-
function hasPropertyTypeError(parent, propertyName, logger, expectedType = 'string', mandatory = false) {
|
|
711
|
-
let hasTypeError;
|
|
712
|
-
if (parent === undefined) {
|
|
713
|
-
hasTypeError = mandatory;
|
|
714
|
-
}
|
|
715
|
-
else if (parent === null || typeof parent !== 'object') {
|
|
716
|
-
hasTypeError = true;
|
|
717
|
-
}
|
|
718
|
-
else {
|
|
719
|
-
const propValue = parent[propertyName];
|
|
720
|
-
if (propValue === undefined) {
|
|
721
|
-
hasTypeError = mandatory;
|
|
722
|
-
}
|
|
723
|
-
else {
|
|
724
|
-
hasTypeError = typeof propValue !== expectedType || (propValue === null && mandatory);
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
if (hasTypeError) {
|
|
728
|
-
(0, extensionLogger_1.log)(logger, {
|
|
729
|
-
severity: "error" /* LogSeverity.Error */,
|
|
730
|
-
message: i18next_1.default.t('TYPEERROR', { propertyName: propertyName, expectedType: expectedType })
|
|
731
|
-
});
|
|
732
|
-
}
|
|
733
|
-
return hasTypeError;
|
|
734
|
-
}
|
|
735
756
|
//# sourceMappingURL=utils.js.map
|