@sap/ux-specification 1.96.88 → 1.96.90
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 +52 -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-ListReportNew.html +73 -0
- 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 +110 -110
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ApplicationV2.json +2 -1
- package/dist/schemas/v2/ListReportNewConfig.json +16 -0
- package/dist/schemas/v4/ApplicationV4.json +6 -1
- package/dist/schemas/v4/ListReportConfig.json +18 -0
- package/dist/schemas/v4/ObjectPageConfig.json +27 -0
- package/dist/specification/package.json +7 -7
- 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 +49 -5
- 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 +13 -5
- package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +57 -6
- 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 +24 -15
- 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/DataFieldStrategy.d.ts +63 -0
- package/dist/specification/src/sync/common/DataFieldStrategy.d.ts.map +1 -0
- package/dist/specification/src/sync/common/DataFieldStrategy.js +357 -0
- package/dist/specification/src/sync/common/DataFieldStrategy.js.map +1 -0
- 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 +89 -19
- package/dist/specification/src/sync/common/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/objectPage.js +223 -89
- package/dist/specification/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.d.ts +81 -36
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +109 -35
- package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/common/i18n.json +2 -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/index.d.ts +1 -0
- package/dist/specification/src/sync/common/index.d.ts.map +1 -1
- package/dist/specification/src/sync/common/index.js +1 -0
- package/dist/specification/src/sync/common/index.js.map +1 -1
- package/dist/specification/src/sync/common/utils.d.ts +152 -56
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +262 -149
- 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 +28 -11
- package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.js +43 -22
- 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 +6 -0
- 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 +14 -14
- package/dist/specification/src/sync/v2/generate/generate.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/index.d.ts +1 -1
- package/dist/specification/src/sync/v2/generate/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/index.js +5 -2
- package/dist/specification/src/sync/v2/generate/index.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.d.ts +5 -3
- package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.js +25 -8
- package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
- 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 +5 -2
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +4 -4
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.d.ts +47 -22
- package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.js +92 -33
- package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts +27 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js +60 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.d.ts +84 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js +262 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js.map +1 -0
- 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 +26 -6
- 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 +27 -2
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +46 -0
- 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/ObjectPageForm.d.ts +4 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.js +4 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.d.ts +2 -2
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts +3 -0
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.js +4 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.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/ObjectPageToolBarAction.d.ts +6 -0
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.js +7 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.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/controls/ToolBar.d.ts +2 -2
- package/dist/specification/src/sync/v4/export/controls/ToolBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts +6 -0
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js +7 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.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 +147 -59
- 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 +6 -1
- 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 +22 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +247 -187
- 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 +82 -51
- 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 +82 -71
- 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 +33 -0
- package/dist/specification/src/sync/v4/utils/StableIdHelper.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/StableIdHelper.js +42 -53
- 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 +109 -22
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +372 -159
- package/dist/specification/src/sync/v4/utils/utils.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 +56 -2
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js +7 -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 +5 -1
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts +6 -1
- 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 +8 -1
- 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 +17 -2
- 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 +8 -8
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @file This file hosts the entry point for generating the schema of a v2 List Report Page.
|
|
4
|
+
* The schema is yet incomplete and is normally ignored by the runtime.
|
|
5
|
+
* For manual tests it can be made active by switching useGenericSchemaHandling in pageAccess.ts to true.
|
|
6
|
+
*/
|
|
7
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
8
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ListReportNew = void 0;
|
|
15
|
+
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
16
|
+
const decorators_1 = require("../../../common/decoration/decorators");
|
|
17
|
+
const v2_1 = require("@sap/ux-specification-types/src/v2");
|
|
18
|
+
const utils_1 = require("../../generate/utils");
|
|
19
|
+
const utils_2 = require("../../utils");
|
|
20
|
+
// ListReportNew
|
|
21
|
+
let ListReportNew = class ListReportNew {
|
|
22
|
+
};
|
|
23
|
+
exports.ListReportNew = ListReportNew;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, decorators_1.syncRule)({
|
|
26
|
+
flex: {
|
|
27
|
+
controlType: () => ux_specification_types_1.ControlType.DynamicPage
|
|
28
|
+
},
|
|
29
|
+
elementAdapter() {
|
|
30
|
+
return {
|
|
31
|
+
controlId: 'page'
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
})
|
|
35
|
+
], ListReportNew.prototype, "fitContent", void 0);
|
|
36
|
+
exports.ListReportNew = ListReportNew = __decorate([
|
|
37
|
+
(0, decorators_1.pageLayoutInformation)({
|
|
38
|
+
id: v2_1.SAPUI5_VIEW_EXTENSION_LIST_REPORT,
|
|
39
|
+
pageId: v2_1.FE_TEMPLATE_V2_LIST_REPORT
|
|
40
|
+
}),
|
|
41
|
+
(0, decorators_1.syncRule)({
|
|
42
|
+
elementAdapter(element, schemaHandlingParams, generateParameters) {
|
|
43
|
+
const manifestPathToPage = (0, utils_2.getManifestPathFromPagePath)(schemaHandlingParams.pageInfo.pagePath);
|
|
44
|
+
const { entityType, uIAnnotations } = (0, utils_1.getUIAnnotationForEntitySet)(generateParameters); // would log an error in case these entities are missing
|
|
45
|
+
const { value: settings } = (0, utils_2.getManifestPropertyByPath)(generateParameters.manifest, manifestPathToPage);
|
|
46
|
+
const specificParams = {
|
|
47
|
+
settings: settings,
|
|
48
|
+
entityType,
|
|
49
|
+
uIAnnotations
|
|
50
|
+
};
|
|
51
|
+
// Further processing will be done on level of properties of this class
|
|
52
|
+
return {
|
|
53
|
+
referenceAdaptation: {
|
|
54
|
+
specificParams
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
], ListReportNew);
|
|
60
|
+
//# sourceMappingURL=ListReportNew.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListReportNew.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/pages/ListReportNew.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;AAEH,wEAA0D;AAW1D,sEAAwF;AACxF,2DAAmH;AACnH,gDAAmE;AACnE,uCAAqF;AAiBrF,gBAAgB;AA2BT,IAAM,aAAa,GAAnB,MAAM,aAAa;CAazB,CAAA;AAbY,sCAAa;AAYtB;IAVC,IAAA,qBAAQ,EAAC;QACN,IAAI,EAAE;YACF,WAAW,EAAE,GAAgB,EAAE,CAAC,oCAAW,CAAC,WAAW;SAC1D;QACD,cAAc;YACV,OAAO;gBACH,SAAS,EAAE,MAAM;aACpB,CAAC;QACN,CAAC;KACJ,CAAC;iDACmB;wBAZZ,aAAa;IA1BzB,IAAA,kCAAqB,EAAC;QACnB,EAAE,EAAE,sCAAiC;QACrC,MAAM,EAAE,+BAA0B;KACrC,CAAC;IACD,IAAA,qBAAQ,EAAC;QACN,cAAc,CACV,OAAmB,EACnB,oBAA0C,EAC1C,kBAA+C;YAE/C,MAAM,kBAAkB,GAAG,IAAA,mCAA2B,EAAC,oBAAoB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAC/F,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,IAAA,mCAA2B,EAAC,kBAAkB,CAAC,CAAC,CAAC,wDAAwD;YAC/I,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAA,iCAAyB,EAAC,kBAAkB,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;YACvG,MAAM,cAAc,GAA2B;gBAC3C,QAAQ,EAAE,QAAuC;gBACjD,UAAU;gBACV,aAAa;aAChB,CAAC;YACF,uEAAuE;YACvE,OAAO;gBACH,mBAAmB,EAAE;oBACjB,cAAc;iBACjB;aACJ,CAAC;QACN,CAAC;KACJ,CAAC;GACW,aAAa,CAazB"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file This file is used for manual tests and will only be used temporarily.
|
|
3
|
+
* It is needed while the generic schema handling solution for v2 List Report is still in development but
|
|
4
|
+
* the previous logic is actually used at runtime.
|
|
5
|
+
* For this purpose the file exposes a handler class that is capable to perform the three important tasks provided to the PageMap by specification
|
|
6
|
+
* (generation of page specific schema, import, and export).
|
|
7
|
+
* The implementation of these three tasks is forwarded to the corresponding 'classical' implementation files.
|
|
8
|
+
* For manual tests you can set useGenericSchemaHandling to true. Then these three tasks will be executed based on the schema class ListReportNew
|
|
9
|
+
* and the generic schema handling logic.
|
|
10
|
+
* Do not forget to set the variable back to false, before submitting any changes!
|
|
11
|
+
*
|
|
12
|
+
* Note: This file also exposes some of its helper functions so that they can also be used by the unit tests that test the new schema generation logic for v2 LR as well.
|
|
13
|
+
*/
|
|
14
|
+
import { type AccessorPath, type Manifest, type ExportListReportV2Parameters, type ExportListReportWithPathV2Parameters, type ExportResults, type GenerateAppSchemaParameters, type ImportListReportV2Parameters, type PageConfig, type UI5Version } from '@sap/ux-specification-types';
|
|
15
|
+
import type { Definition } from 'typescript-json-schema';
|
|
16
|
+
import { type GenericSchemaInfoProvider } from '../../generate/schemaAdaptation';
|
|
17
|
+
import { type ImportConfigInfo } from '../../import/importPage';
|
|
18
|
+
import { type FlexInfo } from '../../export/exportPageGeneric';
|
|
19
|
+
/**
|
|
20
|
+
* Gives access to the new version of the generic schema for a v2 List Report Page as it has been persisted by the build process.
|
|
21
|
+
*
|
|
22
|
+
* @returns the schema definition of the v2 List Report Page
|
|
23
|
+
*/
|
|
24
|
+
export declare function getPersistentListReportNewSchema(): Definition;
|
|
25
|
+
/**
|
|
26
|
+
* Creates a GenericSchemaInfoProvider that can be used to access the required schema information for a v2 List Report Page when the generic schema handling logic is used.
|
|
27
|
+
* Note that this function is called in two scenarios:
|
|
28
|
+
* 1. In runtime case it is called when useGenericSchemaHandling has been set to true and the Page Editor for a v2 List Report page is opened.
|
|
29
|
+
* 2. Unit tests for the generic schema handling logic of v2 List Report call this via function getGenericPageInfoProvider4NewPages.
|
|
30
|
+
* Depending on the scenario the current directory (__dirname) will either point to the dist folder or to the source folder of this file.
|
|
31
|
+
*
|
|
32
|
+
* @returns a GenericSchemaInfoProvider that gives access to the schema information for the new v2 list report page.
|
|
33
|
+
*/
|
|
34
|
+
export declare function createGenericSchemaInfoProvider(): GenericSchemaInfoProvider;
|
|
35
|
+
/**
|
|
36
|
+
* This function provides the configuration information for a v2 List Report Page.
|
|
37
|
+
* All other page types are currently not handled by this function.
|
|
38
|
+
*
|
|
39
|
+
* @param componentName - name of the template component describing the page. Should identify the v2 list report page.
|
|
40
|
+
* @returns the instance provider needed to create instances of the types for the v2 List Report Page, resp. undefined when another page is specified
|
|
41
|
+
*/
|
|
42
|
+
export declare function getConfigInfo(componentName: string): ImportConfigInfo | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Provides the page path to the root page (either LR or ALP) the manifest of a FE v2 app.
|
|
45
|
+
|
|
46
|
+
* @param manifest the manifest of the FE v2 app
|
|
47
|
+
* @returns the page path to the root page resp. undefined if no root page is defined in the manifest
|
|
48
|
+
*/
|
|
49
|
+
export declare function getPagePathForRootPage(manifest: Manifest): AccessorPath | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Conversion form the FlexInfo representation of a flex change into its string representation.
|
|
52
|
+
*
|
|
53
|
+
* @param ui5Version - specifies the ui5 version the change is written for
|
|
54
|
+
* @param manifest - manifest of the app the change is created for
|
|
55
|
+
* @param flexInfo - description of the change to be converted
|
|
56
|
+
* @returns - string representation of the flex change
|
|
57
|
+
*/
|
|
58
|
+
export declare function flexInfoToChangeString(ui5Version: UI5Version, manifest: Manifest, flexInfo: FlexInfo): string;
|
|
59
|
+
/**
|
|
60
|
+
* Generates an app specific schema for the FE V2 ListReport from the generic schema.
|
|
61
|
+
* Generic types are replaced by information from the app specific annotations.
|
|
62
|
+
*
|
|
63
|
+
* @param {GenerateAppSchemaParameters} generateParameters - list of API input parameters
|
|
64
|
+
* @param {object} genericSchema - generic JSON schema of a list report
|
|
65
|
+
* @returns appSchema - the application specific JSON schema
|
|
66
|
+
*/
|
|
67
|
+
export declare function generateListReportSchemaV2(generateParameters: GenerateAppSchemaParameters, genericSchema: Definition): object;
|
|
68
|
+
/**
|
|
69
|
+
* Creates the configuration file content for a list report V2.
|
|
70
|
+
*
|
|
71
|
+
* @param importParameters - object comprising all input data
|
|
72
|
+
* @returns {v2.ListReportConfigV2 | undefined} - the configuration (JSON) for the list report
|
|
73
|
+
*/
|
|
74
|
+
export declare function createListReportConfig(importParameters: ImportListReportV2Parameters): PageConfig | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Run through the given ListReport config and return respective manifest entry and flex changes.
|
|
77
|
+
*
|
|
78
|
+
* @param {ExportListReportV2Parameters} exportParameters - all API parameters needed for the export
|
|
79
|
+
* @param ui5Version - SAP UI5 version
|
|
80
|
+
* @param deletionRequest - if set to true, any manifest setting specified by entityPath gets deleted even if it comprises any unknown property
|
|
81
|
+
* @returns ExportResults - The export result comprises the enhanced manifest as well as a list of flex changes.
|
|
82
|
+
*/
|
|
83
|
+
export declare function exportListReportPage(exportParameters: ExportListReportV2Parameters | ExportListReportWithPathV2Parameters, ui5Version: UI5Version, deletionRequest?: boolean): ExportResults;
|
|
84
|
+
//# sourceMappingURL=pageAccess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageAccess.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/pages/pageAccess.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EACH,KAAK,YAAY,EAIjB,KAAK,QAAQ,EAEb,KAAK,4BAA4B,EACjC,KAAK,oCAAoC,EACzC,KAAK,aAAa,EAClB,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,UAAU,EACf,KAAK,UAAU,EAClB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAKzD,OAAO,EACH,KAAK,yBAAyB,EAGjC,MAAM,iCAAiC,CAAC;AAKzC,OAAO,EAAoB,KAAK,gBAAgB,EAAyB,MAAM,yBAAyB,CAAC;AACzG,OAAO,EAAsC,KAAK,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAyCnG;;;;GAIG;AACH,wBAAgB,gCAAgC,IAAI,UAAU,CAe7D;AAED;;;;;;;;GAQG;AACH,wBAAgB,+BAA+B,IAAI,yBAAyB,CAU3E;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CASjF;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,GAAG,YAAY,GAAG,SAAS,CAMnF;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAmB7G;AA4FD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACtC,kBAAkB,EAAE,2BAA2B,EAC/C,aAAa,EAAE,UAAU,GAC1B,MAAM,CAER;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,gBAAgB,EAAE,4BAA4B,GAAG,UAAU,GAAG,SAAS,CAE7G;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAChC,gBAAgB,EAAE,4BAA4B,GAAG,oCAAoC,EACrF,UAAU,EAAE,UAAU,EACtB,eAAe,GAAE,OAAe,GACjC,aAAa,CAEf"}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @file This file is used for manual tests and will only be used temporarily.
|
|
4
|
+
* It is needed while the generic schema handling solution for v2 List Report is still in development but
|
|
5
|
+
* the previous logic is actually used at runtime.
|
|
6
|
+
* For this purpose the file exposes a handler class that is capable to perform the three important tasks provided to the PageMap by specification
|
|
7
|
+
* (generation of page specific schema, import, and export).
|
|
8
|
+
* The implementation of these three tasks is forwarded to the corresponding 'classical' implementation files.
|
|
9
|
+
* For manual tests you can set useGenericSchemaHandling to true. Then these three tasks will be executed based on the schema class ListReportNew
|
|
10
|
+
* and the generic schema handling logic.
|
|
11
|
+
* Do not forget to set the variable back to false, before submitting any changes!
|
|
12
|
+
*
|
|
13
|
+
* Note: This file also exposes some of its helper functions so that they can also be used by the unit tests that test the new schema generation logic for v2 LR as well.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.getPersistentListReportNewSchema = getPersistentListReportNewSchema;
|
|
17
|
+
exports.createGenericSchemaInfoProvider = createGenericSchemaInfoProvider;
|
|
18
|
+
exports.getConfigInfo = getConfigInfo;
|
|
19
|
+
exports.getPagePathForRootPage = getPagePathForRootPage;
|
|
20
|
+
exports.flexInfoToChangeString = flexInfoToChangeString;
|
|
21
|
+
exports.generateListReportSchemaV2 = generateListReportSchemaV2;
|
|
22
|
+
exports.createListReportConfig = createListReportConfig;
|
|
23
|
+
exports.exportListReportPage = exportListReportPage;
|
|
24
|
+
const useGenericSchemaHandling = false; // Set this to true temporarily for manual tests to use the generic schema handling logic.
|
|
25
|
+
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
26
|
+
const v2_1 = require("@sap/ux-specification-types/src/v2");
|
|
27
|
+
// Importing the 'classic' implementation of the three tasks:
|
|
28
|
+
const listReport_1 = require("../../generate/listReport");
|
|
29
|
+
const listReport_2 = require("../../import/pages/listReport");
|
|
30
|
+
const exportPage_1 = require("../../export/exportPage");
|
|
31
|
+
const schemaAdaptation_1 = require("../../generate/schemaAdaptation");
|
|
32
|
+
const ListReportNew_1 = require("./ListReportNew");
|
|
33
|
+
const path_1 = require("path");
|
|
34
|
+
const fs_1 = require("fs");
|
|
35
|
+
const utils_1 = require("../../utils");
|
|
36
|
+
const importPage_1 = require("../../import/importPage");
|
|
37
|
+
const exportPageGeneric_1 = require("../../export/exportPageGeneric");
|
|
38
|
+
const common_1 = require("../../../common");
|
|
39
|
+
/**
|
|
40
|
+
* The instance of type PageHandlerLR to be used in productive environment (until generic logic has been completely implemented).
|
|
41
|
+
*/
|
|
42
|
+
const pageHandlerLRClassic = {
|
|
43
|
+
generateListReportSchemaV2(generateParameters, genericSchema) {
|
|
44
|
+
return (0, listReport_1.generateListReportSchemaV2)(generateParameters, genericSchema);
|
|
45
|
+
},
|
|
46
|
+
createListReportConfig(importParameters) {
|
|
47
|
+
return (0, listReport_2.createListReportConfig)(importParameters);
|
|
48
|
+
},
|
|
49
|
+
exportListReportPage(exportParameters, ui5Version, deletionRequest) {
|
|
50
|
+
return (0, exportPage_1.exportListReportPage)(exportParameters, ui5Version, deletionRequest);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
let pageHandlerLRGeneric; // Cached instance of the PageHandler using generic schema handling logic. Created on demand only.
|
|
54
|
+
/**
|
|
55
|
+
* Gives access to the new version of the generic schema for a v2 List Report Page as it has been persisted by the build process.
|
|
56
|
+
*
|
|
57
|
+
* @returns the schema definition of the v2 List Report Page
|
|
58
|
+
*/
|
|
59
|
+
function getPersistentListReportNewSchema() {
|
|
60
|
+
// Access the generic schema for ListReportNew from the file system.
|
|
61
|
+
let pathToDist; // path to the dist folder
|
|
62
|
+
if (__dirname.endsWith('dist')) {
|
|
63
|
+
//runtime case -> we have the dist folder already
|
|
64
|
+
pathToDist = __dirname;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
// unit test case -> need to navigate from the source older to the dist folder
|
|
68
|
+
const endPosition = __dirname.lastIndexOf('specification');
|
|
69
|
+
pathToDist = (0, path_1.join)(__dirname.substring(0, endPosition + 'specification'.length), 'dist');
|
|
70
|
+
}
|
|
71
|
+
const schemaPath = (0, path_1.join)(pathToDist, 'schemas', 'v2', 'ListReportNewConfig.json');
|
|
72
|
+
const ListReportNewSchema = JSON.parse((0, fs_1.readFileSync)(schemaPath, 'utf8'));
|
|
73
|
+
return ListReportNewSchema;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Creates a GenericSchemaInfoProvider that can be used to access the required schema information for a v2 List Report Page when the generic schema handling logic is used.
|
|
77
|
+
* Note that this function is called in two scenarios:
|
|
78
|
+
* 1. In runtime case it is called when useGenericSchemaHandling has been set to true and the Page Editor for a v2 List Report page is opened.
|
|
79
|
+
* 2. Unit tests for the generic schema handling logic of v2 List Report call this via function getGenericPageInfoProvider4NewPages.
|
|
80
|
+
* Depending on the scenario the current directory (__dirname) will either point to the dist folder or to the source folder of this file.
|
|
81
|
+
*
|
|
82
|
+
* @returns a GenericSchemaInfoProvider that gives access to the schema information for the new v2 list report page.
|
|
83
|
+
*/
|
|
84
|
+
function createGenericSchemaInfoProvider() {
|
|
85
|
+
const ListReportNewSchema = getPersistentListReportNewSchema();
|
|
86
|
+
return function (componentName) {
|
|
87
|
+
return componentName === v2_1.FE_TEMPLATE_V2_LIST_REPORT
|
|
88
|
+
? {
|
|
89
|
+
genericSchema: ListReportNewSchema,
|
|
90
|
+
syncRuleProvider: ListReportNew_1.ListReportNew
|
|
91
|
+
}
|
|
92
|
+
: undefined; // this instance is currently only working for v2 List Report
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* This function provides the configuration information for a v2 List Report Page.
|
|
97
|
+
* All other page types are currently not handled by this function.
|
|
98
|
+
*
|
|
99
|
+
* @param componentName - name of the template component describing the page. Should identify the v2 list report page.
|
|
100
|
+
* @returns the instance provider needed to create instances of the types for the v2 List Report Page, resp. undefined when another page is specified
|
|
101
|
+
*/
|
|
102
|
+
function getConfigInfo(componentName) {
|
|
103
|
+
return componentName === v2_1.FE_TEMPLATE_V2_LIST_REPORT
|
|
104
|
+
? {
|
|
105
|
+
// Up to now we do not need any conversion exit
|
|
106
|
+
propertyInstanceProvider: function (propertyTypePath) {
|
|
107
|
+
return new ListReportNew_1.ListReportNew(); // up to now no helper classes have been modelled for the v2 List Report Page
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
: undefined;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Provides the page path to the root page (either LR or ALP) the manifest of a FE v2 app.
|
|
114
|
+
|
|
115
|
+
* @param manifest the manifest of the FE v2 app
|
|
116
|
+
* @returns the page path to the root page resp. undefined if no root page is defined in the manifest
|
|
117
|
+
*/
|
|
118
|
+
function getPagePathForRootPage(manifest) {
|
|
119
|
+
const { value: pagesSection } = (0, utils_1.getManifestPropertyByPath)(manifest, [ux_specification_types_1.ManifestSection.generic], 'pages');
|
|
120
|
+
if (Array.isArray(pagesSection)) {
|
|
121
|
+
return [0];
|
|
122
|
+
}
|
|
123
|
+
return pagesSection && typeof pagesSection === 'object' ? [Object.keys(pagesSection)[0]] : undefined;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Conversion form the FlexInfo representation of a flex change into its string representation.
|
|
127
|
+
*
|
|
128
|
+
* @param ui5Version - specifies the ui5 version the change is written for
|
|
129
|
+
* @param manifest - manifest of the app the change is created for
|
|
130
|
+
* @param flexInfo - description of the change to be converted
|
|
131
|
+
* @returns - string representation of the flex change
|
|
132
|
+
*/
|
|
133
|
+
function flexInfoToChangeString(ui5Version, manifest, flexInfo) {
|
|
134
|
+
const isCustomer = !ui5Version.layer || ui5Version.layer === "CUSTOMER_BASE" /* FlexChangeLayer.Customer */;
|
|
135
|
+
const flexChange = {
|
|
136
|
+
controlId: flexInfo.controlId,
|
|
137
|
+
controlType: flexInfo.controlType,
|
|
138
|
+
content: {
|
|
139
|
+
property: flexInfo.propertyName
|
|
140
|
+
},
|
|
141
|
+
sapui5Version: ui5Version.ui5Version,
|
|
142
|
+
isCustomer
|
|
143
|
+
};
|
|
144
|
+
if (flexInfo.isBinding) {
|
|
145
|
+
flexChange.content.newBinding = flexInfo.newValue;
|
|
146
|
+
flexChange.type = 'propertyBindingChange';
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
flexChange.content.newValue = flexInfo.newValue;
|
|
150
|
+
}
|
|
151
|
+
return (0, common_1.exportToFlexChange)(flexChange, manifest);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* This function is called on demand. It creates an instance of type PageHandlerLR that uses the generic schema handling logic.
|
|
155
|
+
*
|
|
156
|
+
* @returns the created instance of type PageHandlerLR
|
|
157
|
+
*/
|
|
158
|
+
function createPageHandlerLRGeneric() {
|
|
159
|
+
// As the signatures of the functions provided by generic schema handling do not exactly fit to the signatures defined in type PageHandlerLR
|
|
160
|
+
// (they are very similar to the classical ones) we need to build some adapters.
|
|
161
|
+
const genericSchemaInfoProvider = createGenericSchemaInfoProvider();
|
|
162
|
+
/* Translate the logical flex changes contained in exportPageResults into the string representation of the corresponding flex changes */
|
|
163
|
+
const getFlexChangesAsStrings = function (appId, exportPageResults, ui5Version) {
|
|
164
|
+
const localManifest = structuredClone(exportPageResults.manifest);
|
|
165
|
+
localManifest[ux_specification_types_1.ManifestSection.app].id = appId;
|
|
166
|
+
return exportPageResults.flexList.map(flexInfoToChangeString.bind(null, ui5Version, localManifest));
|
|
167
|
+
};
|
|
168
|
+
// Provide an instance that implements the PageHandlerLR interface using the generic schema handling logic:
|
|
169
|
+
return {
|
|
170
|
+
generateListReportSchemaV2(generateParameters) {
|
|
171
|
+
const manifest = generateParameters.manifest;
|
|
172
|
+
const pagePath = getPagePathForRootPage(manifest);
|
|
173
|
+
if (!pagePath) {
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
const pageSpec = {
|
|
177
|
+
appId: manifest[ux_specification_types_1.ManifestSection.app]?.id || '', // todo: do we need to care for variable appIds in the manifest (e.g. '${project.artifactId})?
|
|
178
|
+
manifest,
|
|
179
|
+
pagePath,
|
|
180
|
+
annotations: [],
|
|
181
|
+
parsedAnnotations: generateParameters.serviceAVT,
|
|
182
|
+
fragments: generateParameters.fragments
|
|
183
|
+
};
|
|
184
|
+
return (0, schemaAdaptation_1.getAdaptedSchema)(pageSpec, genericSchemaInfoProvider, generateParameters.logger);
|
|
185
|
+
},
|
|
186
|
+
createListReportConfig(importParameters) {
|
|
187
|
+
const pagePath = getPagePathForRootPage(importParameters.manifest);
|
|
188
|
+
return (0, importPage_1.getConfigForPage)(importParameters, pagePath, getConfigInfo);
|
|
189
|
+
},
|
|
190
|
+
exportListReportPage(exportParameters, ui5Version, deletionRequest) {
|
|
191
|
+
const fragmentResults = exportParameters.fragments
|
|
192
|
+
? exportParameters.fragments.map(function (fragment) {
|
|
193
|
+
return {
|
|
194
|
+
...fragment,
|
|
195
|
+
changeIndicator: ux_specification_types_1.ChangeIndicator.NoChange
|
|
196
|
+
};
|
|
197
|
+
})
|
|
198
|
+
: [];
|
|
199
|
+
const inParameters = {
|
|
200
|
+
appId: exportParameters.appId,
|
|
201
|
+
config: exportParameters.page.config,
|
|
202
|
+
manifest: exportParameters.manifest,
|
|
203
|
+
jsonSchema: exportParameters.jsonSchema,
|
|
204
|
+
// conversionExitProvider: // not needed, yet
|
|
205
|
+
fragments: fragmentResults,
|
|
206
|
+
logger: exportParameters.logger
|
|
207
|
+
};
|
|
208
|
+
const exportPageResults = (0, exportPageGeneric_1.exportPage)(inParameters);
|
|
209
|
+
const flexChanges = getFlexChangesAsStrings(exportParameters.appId, exportPageResults, ui5Version);
|
|
210
|
+
return {
|
|
211
|
+
manifest: exportPageResults.manifest,
|
|
212
|
+
fragments: exportPageResults.fragments,
|
|
213
|
+
flexChanges,
|
|
214
|
+
manifestChangeIndicator: exportPageResults.manifestChangeIndicator
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* This function provides then instance of type PageHandlerLR that is to be used in productive environment.
|
|
221
|
+
*
|
|
222
|
+
* @returns the instance to be used
|
|
223
|
+
*/
|
|
224
|
+
function getPageHandlerLR() {
|
|
225
|
+
if (useGenericSchemaHandling) {
|
|
226
|
+
pageHandlerLRGeneric = pageHandlerLRGeneric || createPageHandlerLRGeneric();
|
|
227
|
+
return pageHandlerLRGeneric;
|
|
228
|
+
}
|
|
229
|
+
return pageHandlerLRClassic;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Generates an app specific schema for the FE V2 ListReport from the generic schema.
|
|
233
|
+
* Generic types are replaced by information from the app specific annotations.
|
|
234
|
+
*
|
|
235
|
+
* @param {GenerateAppSchemaParameters} generateParameters - list of API input parameters
|
|
236
|
+
* @param {object} genericSchema - generic JSON schema of a list report
|
|
237
|
+
* @returns appSchema - the application specific JSON schema
|
|
238
|
+
*/
|
|
239
|
+
function generateListReportSchemaV2(generateParameters, genericSchema) {
|
|
240
|
+
return getPageHandlerLR().generateListReportSchemaV2(generateParameters, genericSchema);
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Creates the configuration file content for a list report V2.
|
|
244
|
+
*
|
|
245
|
+
* @param importParameters - object comprising all input data
|
|
246
|
+
* @returns {v2.ListReportConfigV2 | undefined} - the configuration (JSON) for the list report
|
|
247
|
+
*/
|
|
248
|
+
function createListReportConfig(importParameters) {
|
|
249
|
+
return getPageHandlerLR().createListReportConfig(importParameters);
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Run through the given ListReport config and return respective manifest entry and flex changes.
|
|
253
|
+
*
|
|
254
|
+
* @param {ExportListReportV2Parameters} exportParameters - all API parameters needed for the export
|
|
255
|
+
* @param ui5Version - SAP UI5 version
|
|
256
|
+
* @param deletionRequest - if set to true, any manifest setting specified by entityPath gets deleted even if it comprises any unknown property
|
|
257
|
+
* @returns ExportResults - The export result comprises the enhanced manifest as well as a list of flex changes.
|
|
258
|
+
*/
|
|
259
|
+
function exportListReportPage(exportParameters, ui5Version, deletionRequest = false) {
|
|
260
|
+
return getPageHandlerLR().exportListReportPage(exportParameters, ui5Version, deletionRequest);
|
|
261
|
+
}
|
|
262
|
+
//# sourceMappingURL=pageAccess.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageAccess.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/pages/pageAccess.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;AAiFH,4EAeC;AAWD,0EAUC;AASD,sCASC;AAQD,wDAMC;AAUD,wDAmBC;AAoGD,gEAKC;AAQD,wDAEC;AAUD,oDAMC;AAnTD,MAAM,wBAAwB,GAAY,KAAK,CAAC,CAAC,0FAA0F;AAE3I,wEAcqC;AACrC,2DAAgF;AAEhF,6DAA6D;AAC7D,0DA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AM;aAClC,CAAC;YACF,MAAM,iBAAiB,GAAG,IAAA,8BAAU,EAAC,YAAY,CAAC,CAAC;YACnD,MAAM,WAAW,GAAG,uBAAuB,CAAC,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,EAAE,UAAU,CAAC,CAAC;YACnG,OAAO;gBACH,QAAQ,EAAE,iBAAiB,CAAC,QAAQ;gBACpC,SAAS,EAAE,iBAAiB,CAAC,SAAS;gBACtC,WAAW;gBACX,uBAAuB,EAAE,iBAAiB,CAAC,uBAAuB;aACrE,CAAC;QACN,CAAC;KACJ,CAAC;AACN,CAAC;AAED;;;;GAIG;AACH,SAAS,gBAAgB;IACrB,IAAI,wBAAwB,EAAE,CAAC;QAC3B,oBAAoB,GAAG,oBAAoB,IAAI,0BAA0B,EAAE,CAAC;QAC5E,OAAO,oBAAoB,CAAC;IAChC,CAAC;IACD,OAAO,oBAAoB,CAAC;AAChC,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,0BAA0B,CACtC,kBAA+C,EAC/C,aAAyB;IAEzB,OAAO,gBAAgB,EAAE,CAAC,0BAA0B,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAC;AAC5F,CAAC;AAED;;;;;GAKG;AACH,SAAgB,sBAAsB,CAAC,gBAA8C;IACjF,OAAO,gBAAgB,EAAE,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;AACvE,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,oBAAoB,CAChC,gBAAqF,EACrF,UAAsB,EACtB,kBAA2B,KAAK;IAEhC,OAAO,gBAAgB,EAAE,CAAC,oBAAoB,CAAC,gBAAgB,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC;AAClG,CAAC"}
|
|
@@ -3,15 +3,22 @@ import { v2 } from '@sap/ux-specification-types';
|
|
|
3
3
|
import { AppProvider } from '../../../common/appProvider';
|
|
4
4
|
/**
|
|
5
5
|
* The V2AppProvider collects all the app information for a Fiori Elements V2 app
|
|
6
|
+
*
|
|
6
7
|
* @param {ImportAllConfigsParameters} importParameters
|
|
7
8
|
*/
|
|
8
9
|
export declare class V2AppProvider extends AppProvider {
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @param importParameters - Parameters required for importing all configurations.
|
|
13
|
+
*/
|
|
9
14
|
constructor(importParameters: ImportAllConfigsParameters);
|
|
10
15
|
}
|
|
11
16
|
/**
|
|
12
17
|
* Collects all pages of a V2 app from the manifest, by traversing the V2 page hierarchy.
|
|
18
|
+
*
|
|
13
19
|
* @param v2Pages - entry point = complex page definition in manifest
|
|
14
20
|
* @param componentName - Component name
|
|
21
|
+
* @param logger - Logger instance used for logging errors or information.
|
|
15
22
|
* @returns index table of pages
|
|
16
23
|
*/
|
|
17
24
|
export declare function getPages(v2Pages: v2.SapUiAppPagesV2, componentName: string, logger?: ExtensionLogger): v2.Pages;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appProvider.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/import/app/appProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,eAAe,EAIf,0BAA0B,EAC7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAA0D,EAAE,EAAc,MAAM,6BAA6B,CAAC;AACrH,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"appProvider.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/import/app/appProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,eAAe,EAIf,0BAA0B,EAC7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAA0D,EAAE,EAAc,MAAM,6BAA6B,CAAC;AACrH,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAqI1D;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC1C;;;OAGG;gBACgB,gBAAgB,EAAE,0BAA0B;CAwClE;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,eAAe,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,eAAe,GAAG,EAAE,CAAC,KAAK,CAyB/G"}
|
|
@@ -8,7 +8,11 @@ exports.getPages = getPages;
|
|
|
8
8
|
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
9
9
|
const appProvider_1 = require("../../../common/appProvider");
|
|
10
10
|
const common_1 = require("../common");
|
|
11
|
-
|
|
11
|
+
// Temporary solution:
|
|
12
|
+
// pageAccess.ts will reroute function createListReportConfig to pages/listReport.ts.
|
|
13
|
+
// For manual tests this can be changed by switching useGenericSchemaHandling in pageAccess.ts to true.
|
|
14
|
+
// In this case generic schema handling an the schema for ListReportNew will be used.
|
|
15
|
+
const pageAccess_1 = require("../../genericSchemaHandling/pages/pageAccess");
|
|
12
16
|
const analyticalListPage_1 = require("../pages/analyticalListPage");
|
|
13
17
|
const objectPage_1 = require("../pages/objectPage");
|
|
14
18
|
const application_1 = require("../../application");
|
|
@@ -17,7 +21,8 @@ const i18next_1 = __importDefault(require("i18next"));
|
|
|
17
21
|
const i18n_1 = require("../../../../i18n/i18n");
|
|
18
22
|
const extensionLogger_1 = require("../../../../extensionLogger");
|
|
19
23
|
/**
|
|
20
|
-
* Method which generates id for passed page
|
|
24
|
+
* Method which generates id for passed page.
|
|
25
|
+
*
|
|
21
26
|
* @param page - Generic Page object.
|
|
22
27
|
* @param pageName - Page name in manifest. Used if entitySet is empty
|
|
23
28
|
* @returns {string} Generated page id
|
|
@@ -30,6 +35,13 @@ function generateId(page, pageName) {
|
|
|
30
35
|
return pageName;
|
|
31
36
|
}
|
|
32
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Sets up page configurations and navigations for a page.
|
|
40
|
+
*
|
|
41
|
+
* @param page - The page object to configure navigations for.
|
|
42
|
+
* @param v2Page - The V2 page definition from the manifest.
|
|
43
|
+
* @param importParameters - Parameters required for importing configurations.
|
|
44
|
+
*/
|
|
33
45
|
function getPageConfigsAndNavigations(page, v2Page, importParameters, pages) {
|
|
34
46
|
page.navigation = {};
|
|
35
47
|
const targets = getPagesAndConfigs(v2Page.pages, importParameters);
|
|
@@ -50,9 +62,10 @@ function getPageConfigsAndNavigations(page, v2Page, importParameters, pages) {
|
|
|
50
62
|
}
|
|
51
63
|
}
|
|
52
64
|
/**
|
|
53
|
-
* Sets up page definitions, including the configurations for them
|
|
54
|
-
*
|
|
55
|
-
* @param
|
|
65
|
+
* Sets up page definitions, including the configurations for them.
|
|
66
|
+
*
|
|
67
|
+
* @param v2Pages - list of all pages
|
|
68
|
+
* @param importParameters - Parameters required for importing all configurations.
|
|
56
69
|
* @returns an index table of page definitions
|
|
57
70
|
*/
|
|
58
71
|
function getPagesAndConfigs(v2Pages, importParameters) {
|
|
@@ -84,7 +97,7 @@ function getPagesAndConfigs(v2Pages, importParameters) {
|
|
|
84
97
|
fragments: importParameters.fragments,
|
|
85
98
|
logger: importParameters.logger
|
|
86
99
|
};
|
|
87
|
-
page.config = (0,
|
|
100
|
+
page.config = (0, pageAccess_1.createListReportConfig)(importLRParameters);
|
|
88
101
|
}
|
|
89
102
|
else if (page.pageType === ux_specification_types_1.PageTypeV2.AnalyticalListPage) {
|
|
90
103
|
const importALPParameters = {
|
|
@@ -116,9 +129,14 @@ function getPagesAndConfigs(v2Pages, importParameters) {
|
|
|
116
129
|
}
|
|
117
130
|
/**
|
|
118
131
|
* The V2AppProvider collects all the app information for a Fiori Elements V2 app
|
|
132
|
+
*
|
|
119
133
|
* @param {ImportAllConfigsParameters} importParameters
|
|
120
134
|
*/
|
|
121
135
|
class V2AppProvider extends appProvider_1.AppProvider {
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @param importParameters - Parameters required for importing all configurations.
|
|
139
|
+
*/
|
|
122
140
|
constructor(importParameters) {
|
|
123
141
|
(0, i18n_1.initI18n)();
|
|
124
142
|
let v2Pages;
|
|
@@ -159,8 +177,10 @@ class V2AppProvider extends appProvider_1.AppProvider {
|
|
|
159
177
|
exports.V2AppProvider = V2AppProvider;
|
|
160
178
|
/**
|
|
161
179
|
* Collects all pages of a V2 app from the manifest, by traversing the V2 page hierarchy.
|
|
180
|
+
*
|
|
162
181
|
* @param v2Pages - entry point = complex page definition in manifest
|
|
163
182
|
* @param componentName - Component name
|
|
183
|
+
* @param logger - Logger instance used for logging errors or information.
|
|
164
184
|
* @returns index table of pages
|
|
165
185
|
*/
|
|
166
186
|
function getPages(v2Pages, componentName, logger) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appProvider.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/import/app/appProvider.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"appProvider.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/import/app/appProvider.ts"],"names":[],"mappings":";;;;;;AAyMA,4BAyBC;AA3ND,wEAAqH;AACrH,6DAA0D;AAC1D,sCAAqD;AACrD,sBAAsB;AACtB,qFAAqF;AACrF,uGAAuG;AACvG,qFAAqF;AACrF,6EAAsF;AACtF,oEAA6E;AAC7E,oDAA+D;AAC/D,mDAAgD;AAChD,4CAAmF;AACnF,sDAA8B;AAC9B,gDAAiD;AACjD,iEAAkD;AAElD;;;;;;GAMG;AACH,SAAS,UAAU,CAAC,IAAuB,EAAE,QAAgB;IACzD,IAAI,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC;QACvB,OAAO,IAAA,uBAAc,EAAC,IAAA,sBAAa,EAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACpG,CAAC;SAAM,CAAC;QACJ,OAAO,QAAQ,CAAC;IACpB,CAAC;AACL,CAAC;AAED;;;;;;GAMG;AACH,SAAS,4BAA4B,CACjC,IAAa,EACb,MAAyB,EACzB,gBAA4C,EAC5C,KAAiC;IAEjC,IAAI,CAAC,UAAU,GAAG,EAAE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MAAM,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;YAC/D,KAAK,MAAM,SAAS,IAAI,QAAQ,EAAE,CAAC;gBAC/B,KAAK,CAAC,SAAS,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;YAC3C,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { ImportAllConfigsParameters } from '@sap/ux-specification-types';
|
|
2
2
|
import { AppProvider } from '../../../common/appProvider';
|
|
3
3
|
export declare class V2OvpProvider extends AppProvider {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param importParameters - Parameters required for importing configurations, including manifest, schemas, and logger.
|
|
7
|
+
*/
|
|
4
8
|
constructor(importParameters: ImportAllConfigsParameters);
|
|
5
9
|
}
|
|
6
10
|
//# sourceMappingURL=ovpProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ovpProvider.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/import/app/ovpProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAM,0BAA0B,EAAkC,MAAM,6BAA6B,CAAC;AAElH,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAM1D,qBAAa,aAAc,SAAQ,WAAW;
|
|
1
|
+
{"version":3,"file":"ovpProvider.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/import/app/ovpProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAM,0BAA0B,EAAkC,MAAM,6BAA6B,CAAC;AAElH,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAM1D,qBAAa,aAAc,SAAQ,WAAW;IAC1C;;;OAGG;gBACgB,gBAAgB,EAAE,0BAA0B;CA4BlE"}
|
|
@@ -8,6 +8,10 @@ const overviewPage_1 = require("../pages/overviewPage");
|
|
|
8
8
|
const application_1 = require("../../application");
|
|
9
9
|
const common_2 = require("../../../common");
|
|
10
10
|
class V2OvpProvider extends appProvider_1.AppProvider {
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @param importParameters - Parameters required for importing configurations, including manifest, schemas, and logger.
|
|
14
|
+
*/
|
|
11
15
|
constructor(importParameters) {
|
|
12
16
|
const pages = {};
|
|
13
17
|
const sapOvp = importParameters.manifest[ux_specification_types_1.ManifestSection.ovp];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ovpProvider.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/import/app/ovpProvider.ts"],"names":[],"mappings":";;;AACA,wEAAsF;AACtF,6DAA0D;AAC1D,sCAAqD;AACrD,wDAAiE;AACjE,mDAAgD;AAChD,4CAAoE;AAEpE,MAAa,aAAc,SAAQ,yBAAW;IAC1C,YAAmB,gBAA4C;QAC3D,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,wCAAe,CAAC,GAAG,CAAC,CAAC;QAC9D,MAAM,WAAW,GAAG,IAAI,yBAAW,EAAE,CAAC;QACtC,MAAM,UAAU,GAAG,IAAA,0BAAiB,EAAC,mCAAU,CAAC,WAAW,CAAC,CAAC;QAC7D,IAAA,iCAAwB,EACpB,WAAW,EACX,gBAAgB,CAAC,QAAQ,EACzB,gBAAgB,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,EAC9E,SAAS,CACZ,CAAC;QACF,MAAM,UAAU,GAAW,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CACjF,OAAO,CAAC,QAAQ,CAAC,mCAAU,CAAC,YAAY,CAAC,CAC5C,CAAC;QACF,MAAM,UAAU,GAAmC;YAC/C,QAAQ,EAAE,gBAAgB,CAAC,QAA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