@sap/ux-specification 1.120.36 → 1.120.38
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 +112 -112
- 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 +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 +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 +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 +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 +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 +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 +84 -38
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +112 -37
- 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 +260 -155
- 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 +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 +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/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 +124 -78
- 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 +251 -195
- 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 +83 -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 +85 -74
- 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 +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 +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 +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 +8 -1
- 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 +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 +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../../scripts/macros/i18n.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../../scripts/macros/i18n.ts"],"names":[],"mappings":";;AAiEA,0DAsBC;AAhFD,MAAM,mBAAmB,GAAuC;IAC5D,KAAK,EAAE;QACH,UAAU,EAAE,CAAC,eAAe,CAAC;QAC7B,UAAU,EAAE;YACR,MAAM,EAAE,0BAA0B;SACrC;KACJ;IACD,IAAI,EAAE;QACF,UAAU,EAAE,CAAC,eAAe,CAAC;QAC7B,UAAU,EAAE;YACR,KAAK,EAAE,wBAAwB;SAClC;KACJ;IACD,WAAW,EAAE;QACT,UAAU,EAAE,CAAC,eAAe,CAAC;QAC7B,UAAU,EAAE;YACR,KAAK,EAAE,gCAAgC;SAC1C;KACJ;IACD,MAAM,EAAE;QACJ,UAAU,EAAE,CAAC,eAAe,CAAC;QAC7B,UAAU,EAAE;YACR,IAAI,EAAE,yBAAyB;YAC/B,OAAO,EAAE,4BAA4B;SACxC;KACJ;IACD,KAAK,EAAE;QACH,UAAU,EAAE,CAAC,eAAe,CAAC;QAC7B,UAAU,EAAE;YACR,MAAM,EAAE,0BAA0B;SACrC;KACJ;IACD,WAAW,EAAE;QACT,UAAU,EAAE,CAAC,eAAe,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;QAC3E,UAAU,EAAE;YACR,IAAI,EAAE,sCAAsC;SAC/C;KACJ;IACD,MAAM,EAAE;QACJ,UAAU,EAAE,CAAC,eAAe,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;QAC3E,UAAU,EAAE;YACR,IAAI,EAAE,gCAAgC;SACzC;KACJ;IACD,MAAM,EAAE;QACJ,UAAU,EAAE,CAAC,eAAe,EAAE,qBAAqB,CAAC;QACpD,UAAU,EAAE;YACR,MAAM,EAAE,2BAA2B;SACtC;KACJ;CACJ,CAAC;AAEF;;;;;GAKG;AACH,SAAgB,uBAAuB,CAAC,MAAwB;IAC5D,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IACvC,IAAI,CAAC,WAAW,EAAE,CAAC;QACf,OAAO;IACX,CAAC;IACD,KAAK,MAAM,SAAS,IAAI,mBAAmB,EAAE,CAAC;QAC1C,MAAM,OAAO,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;QAC/C,KAAK,MAAM,SAAS,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;YACzC,MAAM,WAAW,GAAG,GAAG,SAAS,IAAI,SAAS,EAAE,CAAC;YAChD,MAAM,aAAa,GAAG,WAAW,CAAC,WAAW,CAAC,CAAC;YAC/C,IAAI,CAAC,aAAa,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;gBACtD,SAAS;YACb,CAAC;YACD,KAAK,MAAM,QAAQ,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;gBACxC,MAAM,cAAc,GAAG,aAAa,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,CAAC;gBAC5D,IAAI,CAAC,cAAc,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE,CAAC;oBACxD,SAAS;gBACb,CAAC;gBACD,cAAc,CAAC,oBAAoB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YACxE,CAAC;QACL,CAAC;IACL,CAAC;AACL,CAAC"}
|
|
@@ -2,6 +2,7 @@ import type { SchemaDefinition } from '@sap/ux-specification-types';
|
|
|
2
2
|
import type { MacrosAPI } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Method generates generic schema for passed "sap.fe.macros" api.
|
|
5
|
+
*
|
|
5
6
|
* @param {MacrosAPI} api SAPUI5 "sap.fe.macros" api.
|
|
6
7
|
* @returns {SchemaDefinition} JSON schema for "sap.fe.macros" api.
|
|
7
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../scripts/macros/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAGpE,OAAO,KAAK,EAAE,SAAS,EAA8E,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../scripts/macros/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAGpE,OAAO,KAAK,EAAE,SAAS,EAA8E,MAAM,SAAS,CAAC;AAgPrH;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,SAAS,GAAG,gBAAgB,CA+C/D"}
|
|
@@ -8,6 +8,7 @@ const corrections_1 = require("./corrections");
|
|
|
8
8
|
const common_1 = require("../../src/sync/common");
|
|
9
9
|
/**
|
|
10
10
|
* Method checks if passed type is atomic type like 'boolean', 'string', 'number', etc.
|
|
11
|
+
*
|
|
11
12
|
* @param {string} type Type to check.
|
|
12
13
|
* @returns {boolean} Is atomic type.
|
|
13
14
|
*/
|
|
@@ -16,6 +17,7 @@ function isAtomicType(type) {
|
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
19
|
* Method returns base/skeleton schema.
|
|
20
|
+
*
|
|
19
21
|
* @returns {SchemaDefinition} JSON schema.
|
|
20
22
|
*/
|
|
21
23
|
function getRootSchema() {
|
|
@@ -37,6 +39,7 @@ function getRootSchema() {
|
|
|
37
39
|
/**
|
|
38
40
|
* Method formats description text before storing it into schema.
|
|
39
41
|
* Currently method removes HTML markup from text.
|
|
42
|
+
*
|
|
40
43
|
* @param {string} [description] Description to format.
|
|
41
44
|
* @returns {string} Formatted description.
|
|
42
45
|
*/
|
|
@@ -53,6 +56,7 @@ function formatDescription(description) {
|
|
|
53
56
|
}
|
|
54
57
|
/**
|
|
55
58
|
* Method prepares schema definition object.
|
|
59
|
+
*
|
|
56
60
|
* @param {MacrosPropertyType} metadataType Metadata property type.
|
|
57
61
|
* @param {string} [description] Description of definition.
|
|
58
62
|
* @param {string} defaultAggreation Default aggregation.
|
|
@@ -81,6 +85,7 @@ function prepareDefinition(metadataType, description, defaultAggreation) {
|
|
|
81
85
|
}
|
|
82
86
|
/**
|
|
83
87
|
* Method prepares schema object for passed type.
|
|
88
|
+
*
|
|
84
89
|
* @param {string} type Type of target property or object.
|
|
85
90
|
* @returns {SchemaDefinition} JSON schema.
|
|
86
91
|
*/
|
|
@@ -96,9 +101,10 @@ function getSchemaForType(type) {
|
|
|
96
101
|
}
|
|
97
102
|
/**
|
|
98
103
|
* Method prepares schema object for passed types.
|
|
99
|
-
*
|
|
100
|
-
* @param
|
|
101
|
-
* @
|
|
104
|
+
*
|
|
105
|
+
* @param [type] Type(s) of target property or object.
|
|
106
|
+
* @param [propertyTypes] Types of target property or object.
|
|
107
|
+
* @returns JSON schema.
|
|
102
108
|
*/
|
|
103
109
|
function getTypes(type, propertyTypes) {
|
|
104
110
|
let result = [];
|
|
@@ -114,6 +120,7 @@ function getTypes(type, propertyTypes) {
|
|
|
114
120
|
}
|
|
115
121
|
/**
|
|
116
122
|
* Method prepares schema property object for passed generic property.
|
|
123
|
+
*
|
|
117
124
|
* @param {UI5Property} property SAPUI5 property.
|
|
118
125
|
* @param {MacrosPropertyType} metadataType Metadata property type.
|
|
119
126
|
* @param {string} [type] Type of target property or object.
|
|
@@ -149,6 +156,7 @@ function prepareSchemaProperty(property, metadataType, type, types) {
|
|
|
149
156
|
}
|
|
150
157
|
/**
|
|
151
158
|
* Method returns allowed values for passed ui5 property.
|
|
159
|
+
*
|
|
152
160
|
* @param {UI5Property} property SAPUI5 property.
|
|
153
161
|
* @returns {string[] | undefined} Array of allowed values.
|
|
154
162
|
*/
|
|
@@ -160,6 +168,7 @@ function getAllowedValues(property) {
|
|
|
160
168
|
}
|
|
161
169
|
/**
|
|
162
170
|
* Method prepares schema object for passed SAPUI5 property.
|
|
171
|
+
*
|
|
163
172
|
* @param {UI5Property} property SAPUI5 property.
|
|
164
173
|
* @returns {SchemaDefinition} JSON schema.
|
|
165
174
|
*/
|
|
@@ -173,6 +182,7 @@ function prepareProperty(property) {
|
|
|
173
182
|
}
|
|
174
183
|
/**
|
|
175
184
|
* Method prepares schema object for passed SAPUI5 event.
|
|
185
|
+
*
|
|
176
186
|
* @param {UI5Property} property SAPUI5 event.
|
|
177
187
|
* @returns {SchemaDefinition} JSON schema.
|
|
178
188
|
*/
|
|
@@ -181,8 +191,9 @@ function prepareEvent(property) {
|
|
|
181
191
|
}
|
|
182
192
|
/**
|
|
183
193
|
* Method prepares schema object for passed SAPUI5 aggregation.
|
|
184
|
-
*
|
|
185
|
-
* @
|
|
194
|
+
*
|
|
195
|
+
* @param aggregation SAPUI5 aggregation.
|
|
196
|
+
* @returns JSON schema.
|
|
186
197
|
*/
|
|
187
198
|
function prepareAggregations(aggregation) {
|
|
188
199
|
const schemaTypes = getTypes(aggregation.type);
|
|
@@ -198,6 +209,7 @@ function prepareAggregations(aggregation) {
|
|
|
198
209
|
}
|
|
199
210
|
/**
|
|
200
211
|
* Method applies available macros namespaces for storing inside root schema metadata.
|
|
212
|
+
*
|
|
201
213
|
* @param {MacrosAPI} api SAPUI5 "sap.fe.macros" api.
|
|
202
214
|
* @param {SchemaDefinition} schema JSON schema for "sap.fe.macros" api.
|
|
203
215
|
*/
|
|
@@ -210,6 +222,7 @@ function applyNamespaces(api, schema) {
|
|
|
210
222
|
}
|
|
211
223
|
/**
|
|
212
224
|
* Method generates generic schema for passed "sap.fe.macros" api.
|
|
225
|
+
*
|
|
213
226
|
* @param {MacrosAPI} api SAPUI5 "sap.fe.macros" api.
|
|
214
227
|
* @returns {SchemaDefinition} JSON schema for "sap.fe.macros" api.
|
|
215
228
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../scripts/macros/schema.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"schema.js","s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,sBAAsB;QACtB,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;YACrC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;QAC/E,CAAC;QACD,gBAAgB;QAChB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YACzB,UAAU,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;QAC5D,CAAC;IACL,CAAC;IACD,oBAAoB;IACpB,eAAe,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC7B,kBAAkB;IAClB,MAAM,cAAc,GAAG,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,2BAAmB,CAAC,CAAC;IAC3F,KAAK,MAAM,MAAM,IAAI,cAAc,EAAE,CAAC;QAClC,MAAM,UAAU,GAAG,iBAAiB,CAChC,2CAAkB,CAAC,OAAO,EAC1B,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,sCAA8B,CAAC,EAAE,kBAAkB,CAC7D,CAAC;QACF,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC;QACtC,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;QAC3C,KAAK,MAAM,QAAQ,IAAI,UAAU,EAAE,CAAC;YAChC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;QACrE,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC"}
|
|
@@ -11,14 +11,22 @@ export type Schema = {
|
|
|
11
11
|
*/
|
|
12
12
|
export declare function setStaticMetadataInstanceInterface(factory?: MetadataInstanceInterface): void;
|
|
13
13
|
/**
|
|
14
|
-
* Convert interfaces to json schema
|
|
15
|
-
*
|
|
16
|
-
* @param
|
|
14
|
+
* Convert interfaces to json schema.
|
|
15
|
+
*
|
|
16
|
+
* @param path - Path to interfaces.
|
|
17
|
+
* @param files - File names, filename must match the main symbol (interface) in the content of the file.
|
|
18
|
+
* @param version - The version of the schema to generate.
|
|
19
|
+
* @returns Array of generated JSON schemas.
|
|
17
20
|
*/
|
|
18
21
|
export declare function convertInterfaces(path: string, files: string[], version: FioriElementsVersion): Schema[];
|
|
19
22
|
/**
|
|
20
|
-
*
|
|
21
|
-
|
|
23
|
+
* Factory giving access to the metadata of the new v2 ListReport page.
|
|
24
|
+
*/
|
|
25
|
+
export declare const FACTORY_FOR_LIST_REPORT_NEW: MetadataInstanceInterface;
|
|
26
|
+
/**
|
|
27
|
+
* Converts all application and page definitions to JSON schema.
|
|
28
|
+
*
|
|
29
|
+
* @param outputPath - The path to write the generated schemas to.
|
|
22
30
|
*/
|
|
23
31
|
export declare function toJsonSchema(outputPath: string): void;
|
|
24
32
|
//# sourceMappingURL=to-json-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-json-schema.d.ts","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"to-json-schema.d.ts","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAI1F,MAAM,MAAM,MAAM,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AA8BhD;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAAC,OAAO,CAAC,EAAE,yBAAyB,QAErF;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,GAAG,MAAM,EAAE,CA4BxG;AA8ED;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,yBAQzC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAwBrD"}
|
|
@@ -33,6 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.FACTORY_FOR_LIST_REPORT_NEW = void 0;
|
|
36
37
|
exports.setStaticMetadataInstanceInterface = setStaticMetadataInstanceInterface;
|
|
37
38
|
exports.convertInterfaces = convertInterfaces;
|
|
38
39
|
exports.toJsonSchema = toJsonSchema;
|
|
@@ -43,6 +44,7 @@ const utils_1 = require("../../src/sync/v2/generate/utils");
|
|
|
43
44
|
const factory_1 = require("../../src/sync/v2/export/factory");
|
|
44
45
|
const factory_2 = require("../../src/sync/v4/export/factory");
|
|
45
46
|
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
47
|
+
const ListReportNew_1 = require("../../src/sync/v2/genericSchemaHandling/pages/ListReportNew");
|
|
46
48
|
//TS compiler options, compare with tsconfig
|
|
47
49
|
const compilerOptions = {
|
|
48
50
|
skipLibCheck: true,
|
|
@@ -79,9 +81,12 @@ function setStaticMetadataInstanceInterface(factory) {
|
|
|
79
81
|
staticFactory = factory;
|
|
80
82
|
}
|
|
81
83
|
/**
|
|
82
|
-
* Convert interfaces to json schema
|
|
83
|
-
*
|
|
84
|
-
* @param
|
|
84
|
+
* Convert interfaces to json schema.
|
|
85
|
+
*
|
|
86
|
+
* @param path - Path to interfaces.
|
|
87
|
+
* @param files - File names, filename must match the main symbol (interface) in the content of the file.
|
|
88
|
+
* @param version - The version of the schema to generate.
|
|
89
|
+
* @returns Array of generated JSON schemas.
|
|
85
90
|
*/
|
|
86
91
|
function convertInterfaces(path, files, version) {
|
|
87
92
|
const schemas = [];
|
|
@@ -111,6 +116,14 @@ function convertInterfaces(path, files, version) {
|
|
|
111
116
|
});
|
|
112
117
|
return schemas;
|
|
113
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* Writes the generated schemas to files.
|
|
121
|
+
*
|
|
122
|
+
* @param path - The base path to write the schemas to.
|
|
123
|
+
* @param schemas - The schemas to write.
|
|
124
|
+
* @param version - The version of the schemas.
|
|
125
|
+
* @param eliminateVersion - Whether to remove version from filenames.
|
|
126
|
+
*/
|
|
114
127
|
function writeSchemasToFile(path, schemas, version, eliminateVersion = false) {
|
|
115
128
|
const dirToWrite = (0, path_1.join)(path, version);
|
|
116
129
|
if (!fs.existsSync(dirToWrite)) {
|
|
@@ -127,7 +140,15 @@ function writeSchemasToFile(path, schemas, version, eliminateVersion = false) {
|
|
|
127
140
|
});
|
|
128
141
|
}
|
|
129
142
|
}
|
|
130
|
-
|
|
143
|
+
/**
|
|
144
|
+
* Converts pages for a specific Fiori Elements version.
|
|
145
|
+
*
|
|
146
|
+
* @param paths - Array of paths to process.
|
|
147
|
+
* @param version - The Fiori Elements version to process.
|
|
148
|
+
* @param outputPath - The path to write the output to.
|
|
149
|
+
* @param factory - If provided this metadata factory will be used for the schema generation instead of the default one.
|
|
150
|
+
*/
|
|
151
|
+
function convertPagesOfFEVersion(paths, version, outputPath, factory) {
|
|
131
152
|
let fileNames = [];
|
|
132
153
|
for (let index = 0; index < paths.length; index++) {
|
|
133
154
|
fs.readdir(paths[index], function (err, files) {
|
|
@@ -143,18 +164,42 @@ function convertPagesOfFEVersion(paths, version, outputPath) {
|
|
|
143
164
|
fileNames.push(fileName);
|
|
144
165
|
}
|
|
145
166
|
});
|
|
167
|
+
const currentStaticFactory = staticFactory;
|
|
168
|
+
staticFactory = factory;
|
|
146
169
|
const schemas = convertInterfaces(paths[index], fileNames, version);
|
|
170
|
+
staticFactory = currentStaticFactory;
|
|
147
171
|
fileNames = [];
|
|
148
172
|
writeSchemasToFile(outputPath, schemas, version, true);
|
|
149
173
|
});
|
|
150
174
|
}
|
|
151
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Gets the position of a substring in a string at a specific occurrence.
|
|
178
|
+
*
|
|
179
|
+
* @param string - The string to search in.
|
|
180
|
+
* @param subString - The substring to search for.
|
|
181
|
+
* @param index - The occurrence index to find.
|
|
182
|
+
* @returns The position of the substring at the specified occurrence.
|
|
183
|
+
*/
|
|
152
184
|
function getPosition(string, subString, index) {
|
|
153
185
|
return string.split(subString, index).join(subString).length;
|
|
154
186
|
}
|
|
155
187
|
/**
|
|
156
|
-
*
|
|
157
|
-
|
|
188
|
+
* Factory giving access to the metadata of the new v2 ListReport page.
|
|
189
|
+
*/
|
|
190
|
+
exports.FACTORY_FOR_LIST_REPORT_NEW = {
|
|
191
|
+
createInstance(pageType, schemaPropertyName) {
|
|
192
|
+
throw new Error(`(${pageType}, ${schemaPropertyName}) not expected yet`);
|
|
193
|
+
// function should yet not be called, since ListReportNew does not refer any additional classes yet
|
|
194
|
+
},
|
|
195
|
+
createPageInstance(pageType) {
|
|
196
|
+
return new ListReportNew_1.ListReportNew();
|
|
197
|
+
}
|
|
198
|
+
}; // factory that gives access to the metadata of the ListReportNew page
|
|
199
|
+
/**
|
|
200
|
+
* Converts all application and page definitions to JSON schema.
|
|
201
|
+
*
|
|
202
|
+
* @param outputPath - The path to write the generated schemas to.
|
|
158
203
|
*/
|
|
159
204
|
function toJsonSchema(outputPath) {
|
|
160
205
|
let schemas = [];
|
|
@@ -164,6 +209,12 @@ function toJsonSchema(outputPath) {
|
|
|
164
209
|
let paths = [];
|
|
165
210
|
paths.push((0, path_1.join)(typesPath, 'v2', 'pages'));
|
|
166
211
|
convertPagesOfFEVersion(paths, ux_specification_types_1.FioriElementsVersion.v2, outputPath);
|
|
212
|
+
// Temporarily we also create the ListReportNew schema so that it can be used for manual testing after switching the value of
|
|
213
|
+
// constant useGenericSchemaHandling in packages/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.ts from false to true.
|
|
214
|
+
paths = [];
|
|
215
|
+
paths.push((0, path_1.join)(typesPath, 'v2', 'genericSchemaHandling', 'pages'));
|
|
216
|
+
convertPagesOfFEVersion(paths, ux_specification_types_1.FioriElementsVersion.v2, outputPath, exports.FACTORY_FOR_LIST_REPORT_NEW);
|
|
217
|
+
// End of temporary injection
|
|
167
218
|
//Pages V4
|
|
168
219
|
paths = [];
|
|
169
220
|
paths.push((0, path_1.join)(typesPath, 'v4', 'pages'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-json-schema.js","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"to-json-schema.js","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,gFAEC;AAUD,8CA4BC;AAgGD,oCAwBC;AAjND,+BAAsC;AACtC,uCAAyB;AAEzB,mEAA6E;AAC7E,4DAAmE;AACnE,8DAA0F;AAC1F,8DAA0F;AAE1F,wEAAmE;AAGnE,+FAA4F;AAI5F,4CAA4C;AAC5C,MAAM,eAAe,GAAG;IACpB,YAAY,EAAE,IAAI;IAClB,KAAK,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,CAAC;IACxC,eAAe,EAAE,IAAI;IACrB,iBAAiB,EAAE,IAAI;IACvB,kBAAkB,EAAE,IAAI;CAC3B,CAAC;AAEF,MAAM,iBAAiB,GAAG;IACtB,YAAY,EAAE,IAAI,EAAE,uDAAuD;IAC3E,QAAQ,EAAE,IAAI,EAAE,qDAAqD;IACrE,kBAAkB,EAAE;QAChB,oBAAoB;QACpB,YAAY;QACZ,aAAa;QACb,wBAAwB;QACxB,iBAAiB;QACjB,QAAQ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,EAAE,OAAO,CAAC,CAAC,CAAC;IACpE,uBAAuB,CAAC,KAAK,EAAE,6CAAoB,CAAC,EAAE,EAAE,UAAU,EAAE,mCAA2B,CAAC,CAAC;IACjG,6BAA6B;IAC7B,UAAU;IACV,KAAK,GAAG,EAAE,CAAC;IACX,KAAK,CAAC,IAAI,CAAC,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3C,uBAAuB,CAAC,KAAK,EAAE,6CAAoB,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;IACpE,QAAQ;IACR,OAAO,GAAG,iBAAiB,CAAC,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAE,6CAAoB,CAAC,EAAE,CAAC,CAAC;IAClG,kBAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IAC9C,QAAQ;IACR,OAAO,GAAG,iBAAiB,CAAC,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAE,6CAAoB,CAAC,EAAE,CAAC,CAAC;IAClG,kBAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -9,7 +9,8 @@ var ExecutionMode;
|
|
|
9
9
|
ExecutionMode["Import"] = "import";
|
|
10
10
|
})(ExecutionMode || (ExecutionMode = {}));
|
|
11
11
|
/**
|
|
12
|
-
* Write a single file
|
|
12
|
+
* Write a single file.
|
|
13
|
+
*
|
|
13
14
|
* @param path - file path
|
|
14
15
|
* @param content - file content
|
|
15
16
|
*/
|
|
@@ -26,7 +27,8 @@ async function write(path, content) {
|
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
29
|
-
* Write files, create target directory if not exists
|
|
30
|
+
* Write files, create target directory if not exists.
|
|
31
|
+
*
|
|
30
32
|
* @param directory - target directory
|
|
31
33
|
* @param files - list of files with name and content
|
|
32
34
|
*/
|
|
@@ -41,13 +43,18 @@ async function writeFiles(directory, files) {
|
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
45
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
+
* Formats the resulting files into a single string.
|
|
47
|
+
*
|
|
48
|
+
* @param files - List of files as objects containing dataSourceUri and fileContent.
|
|
49
|
+
* @returns A formatted string representing the files and their content.
|
|
46
50
|
*/
|
|
47
51
|
const formatterFileContent = (files) => files.reduce((result, file) => result + `\nFile: '${file.dataSourceUri}':\n${file.fileContent}`, '');
|
|
48
52
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
53
|
+
* Retrieves configuration and schemas from the specified project and optionally writes them to an output path.
|
|
54
|
+
*
|
|
55
|
+
* @param projectRoot - The root directory of the project where the package.json file is located.
|
|
56
|
+
* @param outputPath - The directory where the files should be written. If not provided, the files are returned as a formatted string.
|
|
57
|
+
* @returns A promise that resolves to a string indicating the result of the operation.
|
|
51
58
|
*/
|
|
52
59
|
async function importFiles(projectRoot, outputPath) {
|
|
53
60
|
const { annotations, manifest, changes: flex } = await (0, project_1.getProject)(projectRoot);
|
|
@@ -67,8 +74,10 @@ async function importFiles(projectRoot, outputPath) {
|
|
|
67
74
|
return resultString;
|
|
68
75
|
}
|
|
69
76
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
77
|
+
* Parses the command line parameters and validates them.
|
|
78
|
+
*
|
|
79
|
+
* @param args - Content of process.argv.
|
|
80
|
+
* @returns A promise that resolves to the parsed command line parameters.
|
|
72
81
|
*/
|
|
73
82
|
async function getParameters(args) {
|
|
74
83
|
if (process.argv.length > 3) {
|
|
@@ -89,7 +98,8 @@ async function getParameters(args) {
|
|
|
89
98
|
throw Error(`Usage: ${(0, path_1.basename)(args[0])} ${(0, path_1.basename)(args[1])} import <PROJECT_ROOT_PATH> [--output=<PATH>]`);
|
|
90
99
|
}
|
|
91
100
|
/**
|
|
92
|
-
* Run the required execution mode, e.g. import a project
|
|
101
|
+
* Run the required execution mode, e.g. import a project.
|
|
102
|
+
*
|
|
93
103
|
* @param argv - command line arguments as string array
|
|
94
104
|
*/
|
|
95
105
|
async function run(argv) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec.js","sourceRoot":"","sources":["../../../scripts/spec.ts"],"names":[],"mappings":";;AAAA,2BAA0C;AAC1C,+BAA+C;AAC/C,4CAAyD;AAEzD,gCAAuC;AAOvC,IAAW,aAEV;AAFD,WAAW,aAAa;IACpB,kCAAiB,CAAA;AACrB,CAAC,EAFU,aAAa,KAAb,aAAa,QAEvB;AAED
|
|
1
|
+
{"version":3,"file":"spec.js","sourceRoot":"","sources":["../../../scripts/spec.ts"],"names":[],"mappings":";;AAAA,2BAA0C;AAC1C,+BAA+C;AAC/C,4CAAyD;AAEzD,gCAAuC;AAOvC,IAAW,aAEV;AAFD,WAAW,aAAa;IACpB,kCAAiB,CAAA;AACrB,CAAC,EAFU,aAAa,KAAb,aAAa,QAEvB;AAED;;;;;GAKG;AACH,KAAK,UAAU,KAAK,CAAC,IAAY,EAAE,OAAe;IAC9C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAQ,EAAE;QACzC,IAAA,cAAS,EAAC,IAAI,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,EAAQ,EAAE;YACzD,IAAI,GAAG,EAAE,CAAC;gBACN,MAAM,CAAC,GAAG,CAAC,CAAC;YAChB,CAAC;iBAAM,CAAC;gBACJ,OAAO,EAAE,CAAC;YACd,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,UAAU,CAAC,SAAiB,EAAE,KAAa;IACtD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACvB,MAAM,IAAI,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,I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QACD,OAAO,CAAC,CAAC,CAAC;YACN,MAAM;QACV,CAAC;IACL,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -2,7 +2,8 @@ import type { ExportResults, File, GenerateSchemaParameters, ExportConfigParamet
|
|
|
2
2
|
import type { Editor } from 'mem-fs-editor';
|
|
3
3
|
import { PromptsAPI, PromptsType } from '@sap-ux/fe-fpm-writer';
|
|
4
4
|
/**
|
|
5
|
-
* Return the generic (project independent) JSON schema
|
|
5
|
+
* Return the generic (project independent) JSON schema.
|
|
6
|
+
*
|
|
6
7
|
* @param specification - reference to spec
|
|
7
8
|
* @param version - Fiori elements version (v2 or v4)
|
|
8
9
|
* @param schemaType - type of the schema, e.g. ListReport, ObjectPage
|
|
@@ -17,58 +18,65 @@ export declare const prompts: {
|
|
|
17
18
|
types: typeof PromptsType;
|
|
18
19
|
};
|
|
19
20
|
/**
|
|
20
|
-
* Generate JSON schema for a given Fiori elements version and page type
|
|
21
|
-
*
|
|
21
|
+
* Generate JSON schema for a given Fiori elements version and page type.
|
|
22
|
+
*
|
|
23
|
+
* @param generateParameters the input structure that contains the version, schema type, and parameters
|
|
22
24
|
* @returns the app-specific schema for the given schema type and page
|
|
23
25
|
*/
|
|
24
26
|
export declare function generateSchema(generateParameters: GenerateSchemaParameters): object;
|
|
25
27
|
/**
|
|
26
|
-
* Exports the whole config (src/*.json, src/pages/*.json) to flex changes and/or manifest settings
|
|
28
|
+
* Exports the whole config (src/*.json, src/pages/*.json) to flex changes and/or manifest settings.
|
|
29
|
+
*
|
|
27
30
|
* @param exportParameters - parameters to control the export
|
|
28
31
|
* @returns a bundle of all actual objects of any artifact type
|
|
29
32
|
*/
|
|
30
33
|
export declare function exportConfig(exportParameters: ExportConfigParameters): ExportResults;
|
|
31
34
|
/**
|
|
32
|
-
* Exports a part of the config,
|
|
35
|
+
* Exports a part of the config, specified by a propertyPath, to flex changes and/or manifest settings.
|
|
36
|
+
*
|
|
33
37
|
* @param exportParameters - parameters to control the export
|
|
34
38
|
* @returns a bundle of all changed objects of any artifact type
|
|
35
39
|
*/
|
|
36
40
|
export declare function exportConfigEntityByPath(exportParameters: ExportConfigWithPath): ExportResults;
|
|
37
41
|
/**
|
|
38
|
-
* Exports a part of the config,
|
|
42
|
+
* Exports a part of the config, specified by a propertyPath, to flex changes and/or manifest settings.
|
|
43
|
+
*
|
|
39
44
|
* @param exportParameters - parameters to control the export
|
|
40
45
|
* @returns a bundle of all changed objects of any artifact type
|
|
41
|
-
*
|
|
42
46
|
*/
|
|
43
47
|
export declare function deleteConfigEntityByPath(exportParameters: ExportConfigWithPath): ExportResults;
|
|
44
48
|
/**
|
|
45
|
-
* Imports manifest settings and flex changes to a config (src/*.json, src/pages/*.json)
|
|
49
|
+
* Imports manifest settings and flex changes to a config (src/*.json, src/pages/*.json).
|
|
50
|
+
*
|
|
46
51
|
* @param importParameters - parameters to control the import
|
|
47
52
|
* @returns the generated config json file
|
|
48
53
|
*/
|
|
49
54
|
export declare function importConfig(importParameters: ImportConfigParameters): object | undefined;
|
|
50
55
|
/**
|
|
51
|
-
* Evaluates all project files and generates app schemas and configs out of it
|
|
56
|
+
* Evaluates all project files and generates app schemas and configs out of it.
|
|
57
|
+
*
|
|
52
58
|
* @param importParameters - parameters to control the import; here: all relevant project files
|
|
53
59
|
* @returns a list of files, comprising app schemas and configs
|
|
54
60
|
*/
|
|
55
61
|
export declare function importProject(importParameters: ImportProjectParameters): Promise<File[]>;
|
|
56
62
|
/**
|
|
57
|
-
* Evaluates all project files and generates app schemas out of it, but no configs
|
|
63
|
+
* Evaluates all project files and generates app schemas out of it, but no configs.
|
|
64
|
+
*
|
|
58
65
|
* @param importParameters - parameters to control the import; here: all relevant project files
|
|
59
66
|
* @returns a list of files, comprising all app schemas
|
|
60
67
|
*/
|
|
61
68
|
export declare function importProjectSchema(importParameters: ImportProjectParameters): Promise<File[]>;
|
|
62
69
|
/**
|
|
63
70
|
* Returns specification API version.
|
|
71
|
+
*
|
|
64
72
|
* @returns {ApiVersion} Object of API version.
|
|
65
73
|
*/
|
|
66
74
|
export declare function getApiVersion(): ApiVersion;
|
|
67
75
|
/**
|
|
68
|
-
* Calls the FPM Writer for generating a custom extension
|
|
76
|
+
* Calls the FPM Writer for generating a custom extension.
|
|
69
77
|
*
|
|
70
78
|
* @param customExtensionParams parameters for generating the custom extension
|
|
71
|
-
* @returns
|
|
79
|
+
* @returns Instance of mem-fs-editor
|
|
72
80
|
*/
|
|
73
81
|
export declare function generateCustomExtension(customExtensionParams: GenerateCustomExtensionParams): Promise<Editor | undefined>;
|
|
74
82
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/api.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAER,aAAa,EACb,IAAI,EACJ,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,UAAU,EAEV,6BAA6B,EAC7B,oBAAoB,EACvB,MAAM,6BAA6B,CAAC;AA2BrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAaH,UAAU,EACV,WAAW,EACd,MAAM,uBAAuB,CAAC;AAoB/B
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/api.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAER,aAAa,EACb,IAAI,EACJ,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,UAAU,EAEV,6BAA6B,EAC7B,oBAAoB,EACvB,MAAM,6BAA6B,CAAC;AA2BrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,E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