@sap/ux-specification 1.139.6 → 1.139.8
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 +158 -68
- 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 +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
- package/dist/documentation/v4/v4-FreestylePage.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +259 -256
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/AnalyticalListPageConfig.json +3 -3
- package/dist/schemas/v2/ListReportConfig.json +5 -5
- package/dist/schemas/v2/ListReportNewConfig.json +1 -1
- package/dist/schemas/v2/ObjectPageConfig.json +5 -5
- package/dist/schemas/v4/ApplicationV4.json +1 -1
- package/dist/schemas/v4/BuildingBlocksConfig.json +116 -37
- package/dist/schemas/v4/ListReportConfig.json +298 -34
- package/dist/schemas/v4/ObjectPageConfig.json +465 -162
- package/dist/specification/package.json +13 -11
- package/dist/specification/scripts/extractDocu.js +18 -1
- package/dist/specification/scripts/extractDocu.js.map +1 -1
- package/dist/specification/scripts/generate-validity-report.d.ts +15 -0
- package/dist/specification/scripts/generate-validity-report.d.ts.map +1 -0
- package/dist/specification/scripts/generate-validity-report.js +367 -0
- package/dist/specification/scripts/generate-validity-report.js.map +1 -0
- package/dist/specification/scripts/macros/corrections.d.ts +40 -0
- package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
- package/dist/specification/scripts/macros/corrections.js +98 -7
- package/dist/specification/scripts/macros/corrections.js.map +1 -1
- package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
- package/dist/specification/scripts/macros/schema.js +11 -2
- package/dist/specification/scripts/macros/schema.js.map +1 -1
- package/dist/specification/scripts/macros/types.d.ts +2 -0
- package/dist/specification/scripts/macros/types.d.ts.map +1 -1
- package/dist/specification/src/api.d.ts.map +1 -1
- package/dist/specification/src/api.js +2 -1
- package/dist/specification/src/api.js.map +1 -1
- package/dist/specification/src/sync/common/DataFieldStrategy.d.ts +38 -8
- package/dist/specification/src/sync/common/DataFieldStrategy.d.ts.map +1 -1
- package/dist/specification/src/sync/common/DataFieldStrategy.js +64 -11
- package/dist/specification/src/sync/common/DataFieldStrategy.js.map +1 -1
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts +0 -4
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts.map +1 -1
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js +0 -3
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js.map +1 -1
- package/dist/specification/src/sync/common/appProvider.d.ts +0 -1
- package/dist/specification/src/sync/common/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/common/appProvider.js +0 -1
- package/dist/specification/src/sync/common/appProvider.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts +503 -0
- package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/decorator-paths.js +497 -0
- package/dist/specification/src/sync/common/decoration/decorator-paths.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/decorators.d.ts +149 -23
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.js +369 -74
- package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/index.d.ts +1 -0
- package/dist/specification/src/sync/common/decoration/index.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/index.js +1 -0
- package/dist/specification/src/sync/common/decoration/index.js.map +1 -1
- package/dist/specification/src/sync/common/dist_tag.json +8 -3
- package/dist/specification/src/sync/common/generate/objectPage.d.ts +0 -1
- package/dist/specification/src/sync/common/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/objectPage.js +3 -4
- package/dist/specification/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.d.ts +3 -3
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +6 -3
- 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 +0 -1
- package/dist/specification/src/sync/common/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/import/utils.js +0 -1
- package/dist/specification/src/sync/common/import/utils.js.map +1 -1
- package/dist/specification/src/sync/common/rules.js +0 -1
- package/dist/specification/src/sync/common/rules.js.map +1 -1
- package/dist/specification/src/sync/common/utils.d.ts +35 -8
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +206 -22
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +3 -13
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js +48 -0
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.js +3 -1
- package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.js +2 -0
- package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/overviewPage.d.ts +1 -9
- package/dist/specification/src/sync/v2/generate/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/overviewPage.js +30 -1
- package/dist/specification/src/sync/v2/generate/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +28 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/import/app/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/app/appProvider.js +2 -0
- package/dist/specification/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.js +5 -6
- package/dist/specification/src/sync/v2/import/importPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts +2 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js +5 -0
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.d.ts +2 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.js +5 -0
- package/dist/specification/src/sync/v2/import/pages/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.js +2 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/utils.d.ts +28 -1
- package/dist/specification/src/sync/v2/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/utils.js +37 -0
- package/dist/specification/src/sync/v2/import/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +12 -2
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +19 -2
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/application.d.ts +21 -3
- package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/application.js +28 -3
- package/dist/specification/src/sync/v4/application.js.map +1 -1
- package/dist/specification/src/sync/v4/export/actions.d.ts +39 -0
- package/dist/specification/src/sync/v4/export/actions.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/export/actions.js +99 -0
- package/dist/specification/src/sync/v4/export/actions.js.map +1 -0
- package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts +2 -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 +2 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts +4 -3
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.js +7 -3
- package/dist/specification/src/sync/v4/export/controls/Header.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts +2 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js +7 -0
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +2 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js +2 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.d.ts +2 -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.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.d.ts +2 -6
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.js +2 -44
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.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 +14 -3
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.js +53 -10
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js +0 -13
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +15 -3
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.js +54 -11
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts +24 -18
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js +40 -49
- 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 +2 -2
- package/dist/specification/src/sync/v4/export/controls/TableColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBar.d.ts +9 -2
- package/dist/specification/src/sync/v4/export/controls/ToolBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBar.js +39 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBar.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts +19 -5
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js +80 -22
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/export.d.ts +7 -0
- package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/export.js +125 -14
- package/dist/specification/src/sync/v4/export/export.js.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/specification/src/sync/v4/export/types.d.ts +2 -0
- package/dist/specification/src/sync/v4/export/types.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/actions.d.ts +35 -0
- package/dist/specification/src/sync/v4/generate/actions.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/actions.js +112 -0
- package/dist/specification/src/sync/v4/generate/actions.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts +3 -3
- 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 +11 -3
- 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 +1 -1
- 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 +3 -2
- 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.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +25 -3
- 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/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js +11 -2
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/index.d.ts +1 -1
- package/dist/specification/src/sync/v4/generate/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/index.js +1 -1
- package/dist/specification/src/sync/v4/generate/index.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts +73 -0
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js +354 -0
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/{listReport.d.ts → list-report/listReport.d.ts} +46 -19
- package/dist/specification/src/sync/v4/generate/list-report/listReport.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/{listReport.js → list-report/listReport.js} +185 -317
- package/dist/specification/src/sync/v4/generate/list-report/listReport.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts +0 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +148 -56
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.js +2 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/objectPage.js +16 -3
- package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/utils.d.ts +0 -1
- package/dist/specification/src/sync/v4/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/utils.js +5 -4
- package/dist/specification/src/sync/v4/import/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts +9 -7
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.js +4 -8
- package/dist/specification/src/sync/v4/sync-rules/App.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts +2 -9
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js +2 -11
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts +177 -46
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +498 -152
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts +17 -22
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/Page.js +15 -22
- package/dist/specification/src/sync/v4/sync-rules/Page.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.d.ts +1 -0
- package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.js +17 -9
- package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/index.d.ts +5 -0
- package/dist/specification/src/sync/v4/sync-rules/index.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/index.js +21 -0
- package/dist/specification/src/sync/v4/sync-rules/index.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/utils.js +4 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/index.d.ts +2 -0
- package/dist/specification/src/sync/v4/utils/index.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/utils/index.js +18 -0
- package/dist/specification/src/sync/v4/utils/index.js.map +1 -0
- package/dist/specification/src/sync/v4/utils/utils.d.ts +112 -27
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +367 -66
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/specification/test/test-projects/v2sttaProdMan2/webapp/manifest.json +550 -0
- package/dist/specification/test/test-projects/v4new/webapp/manifest.json +147 -0
- package/dist/specification/test/test-utils/utils.d.ts +71 -0
- package/dist/specification/test/test-utils/utils.d.ts.map +1 -0
- package/dist/specification/test/test-utils/utils.js +400 -0
- package/dist/specification/test/test-utils/utils.js.map +1 -0
- package/dist/specification/test/unit/decorators/validity-test-utils.d.ts +131 -0
- package/dist/specification/test/unit/decorators/validity-test-utils.d.ts.map +1 -0
- package/dist/specification/test/unit/decorators/validity-test-utils.js +661 -0
- package/dist/specification/test/unit/decorators/validity-test-utils.js.map +1 -0
- package/dist/types/src/apiTypes.d.ts +5 -5
- package/dist/types/src/apiTypes.d.ts.map +1 -1
- package/dist/types/src/apiTypes.js +1 -0
- package/dist/types/src/apiTypes.js.map +1 -1
- package/dist/types/src/common/types.d.ts +160 -14
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js +39 -1
- package/dist/types/src/common/types.js.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts +1 -1
- package/dist/types/src/v2/controls/Table.d.ts +1 -1
- package/dist/types/src/v4/controls/CustomAction.d.ts +133 -19
- package/dist/types/src/v4/controls/CustomAction.d.ts.map +1 -1
- package/dist/types/src/v4/controls/CustomAction.js.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts +2 -2
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts +22 -3
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts +2 -2
- package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts.map +1 -1
- package/dist/types/src/v4/controls/Table.d.ts +3 -3
- package/dist/types/src/v4/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ToolBar.d.ts +10 -3
- package/dist/types/src/v4/controls/ToolBar.d.ts.map +1 -1
- package/package.json +14 -12
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts +0 -107
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts.map +0 -1
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js +0 -392
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js.map +0 -1
- package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +0 -1
- package/dist/specification/src/sync/v4/generate/listReport.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { v4 } from '@sap/ux-specification-types';
|
|
2
|
+
import { Decorator } from '../../sync-rules';
|
|
2
3
|
export declare class ActionAfterExecutionConfigurationToolBarLR implements v4.ActionAfterExecutionConfiguration {
|
|
3
4
|
navigateToInstance?: boolean;
|
|
4
5
|
enableAutoScroll?: boolean;
|
|
@@ -18,7 +19,7 @@ export declare class ViewToolBarActionGroup implements v4.ViewToolBarActionGroup
|
|
|
18
19
|
[key: string]: ViewToolBarActionBase | number | v4.ActionPriority;
|
|
19
20
|
priority?: v4.ActionPriority;
|
|
20
21
|
}
|
|
21
|
-
export declare class ViewToolBarActionBase implements v4.ViewToolBarActionBase {
|
|
22
|
+
export declare class ViewToolBarActionBase extends Decorator implements v4.ViewToolBarActionBase {
|
|
22
23
|
enableOnSelect?: v4.SelectType;
|
|
23
24
|
afterExecution?: ActionAfterExecutionConfigurationToolBarLR;
|
|
24
25
|
}
|
|
@@ -32,15 +33,18 @@ export declare class CustomActionPosition implements v4.CustomActionPosition {
|
|
|
32
33
|
anchor?: string;
|
|
33
34
|
placement: v4.ActionPlacement;
|
|
34
35
|
}
|
|
35
|
-
export declare class
|
|
36
|
+
export declare class CustomTableActionBase implements v4.CustomActionElement {
|
|
37
|
+
menu: string[];
|
|
36
38
|
text: string;
|
|
37
39
|
position: CustomActionPosition;
|
|
38
|
-
press: string;
|
|
39
40
|
requiresSelection?: boolean;
|
|
40
41
|
visible?: boolean;
|
|
41
42
|
enabled?: boolean;
|
|
42
43
|
priority?: v4.ActionPriority;
|
|
43
44
|
}
|
|
45
|
+
export declare class CustomTableAction extends CustomTableActionBase implements v4.CustomTableAction {
|
|
46
|
+
press: string;
|
|
47
|
+
}
|
|
44
48
|
/**
|
|
45
49
|
* Sync class for Position
|
|
46
50
|
*/
|
|
@@ -48,13 +52,23 @@ export declare class ViewCustomActionPosition implements v4.ViewCustomActionPosi
|
|
|
48
52
|
anchor?: string;
|
|
49
53
|
placement: v4.ActionPlacement;
|
|
50
54
|
}
|
|
51
|
-
export declare class
|
|
55
|
+
export declare class ViewTableCustomActionBase implements v4.CustomActionElement {
|
|
56
|
+
menu: string[];
|
|
52
57
|
text: string;
|
|
53
58
|
position: CustomActionPosition;
|
|
54
|
-
press: string;
|
|
55
59
|
requiresSelection?: boolean;
|
|
56
60
|
visible?: boolean;
|
|
57
61
|
enabled?: boolean;
|
|
58
62
|
priority?: v4.ActionPriority;
|
|
59
63
|
}
|
|
64
|
+
export declare class ViewTableCustomAction extends ViewTableCustomActionBase implements v4.ViewTableCustomAction {
|
|
65
|
+
press: string;
|
|
66
|
+
}
|
|
67
|
+
export declare class ViewCustomActionMenu extends ViewTableCustomActionBase implements v4.ViewCustomActionMenu {
|
|
68
|
+
actions?: ViewCustomActionMenuActions;
|
|
69
|
+
defaultAction?: string;
|
|
70
|
+
}
|
|
71
|
+
export declare class ViewCustomActionMenuActions implements v4.ViewCustomActionMenuActions {
|
|
72
|
+
[id: string]: ToolBarAction | CustomTableAction | ToolBarActionGroup;
|
|
73
|
+
}
|
|
60
74
|
//# sourceMappingURL=ToolBarAction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolBarAction.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v4/export/controls/ToolBarAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAY,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolBarAction.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v4/export/controls/ToolBarAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAY,MAAM,6BAA6B,CAAC;AAKhE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBAAa,0CAA2C,YAAW,EAAE,CAAC,iCAAiC;IAcnG,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAa7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,qBAAa,iBAAkB,YAAW,EAAE,CAAC,iBAAiB;IAM1D,cAAc,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC;IAO/B,cAAc,CAAC,EAAE,0CAA0C,CAAC;CAC/D;AAED,qBAAa,aAAc,SAAQ,iBAAkB,YAAW,EAAE,CAAC,aAAa;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AiB;IASxF,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,qBAAa,wBAAyB,YAAW,EAAE,CAAC,wBAAwB;IAexE,MAAM,CAAC,EAAE,MAAM,CAAC;IAehB,SAAS,EAAE,EAAE,CAAC,eAAe,CAAC;CACjC;AAED,qBAAa,yBAA0B,YAAW,EAAE,CAAC,mBAAmB;IAUpE,IAAI,EAAE,MAAM,EAAE,CAAC;IAUf,IAAI,EAAE,MAAM,CAAC;IAUb,QAAQ,EAAE,oBAAoB,CAAC;IAU/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAW5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAWlB,OAAO,CAAC,EAAE,OAAO,CAAC;IASlB,QAAQ,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC;CAChC;AAED,qBAAa,qBAAsB,SAAQ,yBAA0B,YAAW,EAAE,CAAC,qBAAqB;IASpG,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,oBAAqB,SAAQ,yBAA0B,YAAW,EAAE,CAAC,oBAAoB;IAUlG,OAAO,CAAC,EAAE,2BAA2B,CAAC;IAWtC,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,2BAA4B,YAAW,EAAE,CAAC,2BAA2B;IAC9E,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,iBAAiB,GAAG,kBAAkB,CAAC;CACxE"}
|
|
@@ -6,10 +6,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.ViewTableCustomAction = exports.ViewCustomActionPosition = exports.CustomTableAction = exports.CustomActionPosition = exports.ViewToolBarAction = exports.ViewToolBarActionBase = exports.ViewToolBarActionGroup = exports.ToolBarActionGroup = exports.ToolBarAction = exports.ToolBarActionBase = exports.ActionAfterExecutionConfigurationToolBarLR = void 0;
|
|
9
|
+
exports.ViewCustomActionMenuActions = exports.ViewCustomActionMenu = exports.ViewTableCustomAction = exports.ViewTableCustomActionBase = exports.ViewCustomActionPosition = exports.CustomTableAction = exports.CustomTableActionBase = exports.CustomActionPosition = exports.ViewToolBarAction = exports.ViewToolBarActionBase = exports.ViewToolBarActionGroup = exports.ToolBarActionGroup = exports.ToolBarAction = exports.ToolBarActionBase = exports.ActionAfterExecutionConfigurationToolBarLR = void 0;
|
|
10
10
|
const decorators_1 = require("../../../common/decoration/decorators");
|
|
11
11
|
const application_1 = require("../../application");
|
|
12
12
|
const control_1 = require("../../../common/decoration/control");
|
|
13
|
+
const actions_1 = require("../actions");
|
|
14
|
+
const sync_rules_1 = require("../../sync-rules");
|
|
13
15
|
class ActionAfterExecutionConfigurationToolBarLR {
|
|
14
16
|
}
|
|
15
17
|
exports.ActionAfterExecutionConfigurationToolBarLR = ActionAfterExecutionConfigurationToolBarLR;
|
|
@@ -84,7 +86,7 @@ __decorate([
|
|
|
84
86
|
since: '1.139.0'
|
|
85
87
|
})
|
|
86
88
|
], ViewToolBarActionGroup.prototype, "priority", void 0);
|
|
87
|
-
class ViewToolBarActionBase {
|
|
89
|
+
class ViewToolBarActionBase extends sync_rules_1.Decorator {
|
|
88
90
|
}
|
|
89
91
|
exports.ViewToolBarActionBase = ViewToolBarActionBase;
|
|
90
92
|
__decorate([
|
|
@@ -140,19 +142,20 @@ __decorate([
|
|
|
140
142
|
since: '1.84.0'
|
|
141
143
|
})
|
|
142
144
|
], CustomActionPosition.prototype, "placement", void 0);
|
|
143
|
-
class
|
|
145
|
+
class CustomTableActionBase {
|
|
144
146
|
}
|
|
145
|
-
exports.
|
|
147
|
+
exports.CustomTableActionBase = CustomTableActionBase;
|
|
146
148
|
__decorate([
|
|
147
149
|
(0, decorators_1.syncRule)({
|
|
148
150
|
manifest: {
|
|
149
|
-
path: application_1.getActionsPathForLR
|
|
151
|
+
path: application_1.getActionsPathForLR,
|
|
152
|
+
export: actions_1.exportActionMenuMenu
|
|
150
153
|
}
|
|
151
154
|
}),
|
|
152
155
|
(0, decorators_1.validity)({
|
|
153
156
|
since: '1.84.0'
|
|
154
157
|
})
|
|
155
|
-
],
|
|
158
|
+
], CustomTableActionBase.prototype, "menu", void 0);
|
|
156
159
|
__decorate([
|
|
157
160
|
(0, decorators_1.syncRule)({
|
|
158
161
|
manifest: {
|
|
@@ -162,7 +165,7 @@ __decorate([
|
|
|
162
165
|
(0, decorators_1.validity)({
|
|
163
166
|
since: '1.84.0'
|
|
164
167
|
})
|
|
165
|
-
],
|
|
168
|
+
], CustomTableActionBase.prototype, "text", void 0);
|
|
166
169
|
__decorate([
|
|
167
170
|
(0, decorators_1.syncRule)({
|
|
168
171
|
manifest: {
|
|
@@ -172,7 +175,7 @@ __decorate([
|
|
|
172
175
|
(0, decorators_1.validity)({
|
|
173
176
|
since: '1.84.0'
|
|
174
177
|
})
|
|
175
|
-
],
|
|
178
|
+
], CustomTableActionBase.prototype, "position", void 0);
|
|
176
179
|
__decorate([
|
|
177
180
|
(0, decorators_1.syncRule)({
|
|
178
181
|
manifest: {
|
|
@@ -182,7 +185,7 @@ __decorate([
|
|
|
182
185
|
(0, decorators_1.validity)({
|
|
183
186
|
since: '1.84.0'
|
|
184
187
|
})
|
|
185
|
-
],
|
|
188
|
+
], CustomTableActionBase.prototype, "requiresSelection", void 0);
|
|
186
189
|
__decorate([
|
|
187
190
|
(0, decorators_1.syncRule)({
|
|
188
191
|
manifest: {
|
|
@@ -193,7 +196,7 @@ __decorate([
|
|
|
193
196
|
(0, decorators_1.validity)({
|
|
194
197
|
since: '1.84.0'
|
|
195
198
|
})
|
|
196
|
-
],
|
|
199
|
+
], CustomTableActionBase.prototype, "visible", void 0);
|
|
197
200
|
__decorate([
|
|
198
201
|
(0, decorators_1.syncRule)({
|
|
199
202
|
manifest: {
|
|
@@ -204,7 +207,7 @@ __decorate([
|
|
|
204
207
|
(0, decorators_1.validity)({
|
|
205
208
|
since: '1.84.0'
|
|
206
209
|
})
|
|
207
|
-
],
|
|
210
|
+
], CustomTableActionBase.prototype, "enabled", void 0);
|
|
208
211
|
__decorate([
|
|
209
212
|
(0, decorators_1.syncRule)({
|
|
210
213
|
manifest: {
|
|
@@ -214,7 +217,20 @@ __decorate([
|
|
|
214
217
|
(0, decorators_1.validity)({
|
|
215
218
|
since: '1.139.0'
|
|
216
219
|
})
|
|
217
|
-
],
|
|
220
|
+
], CustomTableActionBase.prototype, "priority", void 0);
|
|
221
|
+
class CustomTableAction extends CustomTableActionBase {
|
|
222
|
+
}
|
|
223
|
+
exports.CustomTableAction = CustomTableAction;
|
|
224
|
+
__decorate([
|
|
225
|
+
(0, decorators_1.syncRule)({
|
|
226
|
+
manifest: {
|
|
227
|
+
path: application_1.getActionsPathForLR
|
|
228
|
+
}
|
|
229
|
+
}),
|
|
230
|
+
(0, decorators_1.validity)({
|
|
231
|
+
since: '1.84.0'
|
|
232
|
+
})
|
|
233
|
+
], CustomTableAction.prototype, "press", void 0);
|
|
218
234
|
/**
|
|
219
235
|
* Sync class for Position
|
|
220
236
|
*/
|
|
@@ -241,19 +257,20 @@ __decorate([
|
|
|
241
257
|
since: '1.84.0'
|
|
242
258
|
})
|
|
243
259
|
], ViewCustomActionPosition.prototype, "placement", void 0);
|
|
244
|
-
class
|
|
260
|
+
class ViewTableCustomActionBase {
|
|
245
261
|
}
|
|
246
|
-
exports.
|
|
262
|
+
exports.ViewTableCustomActionBase = ViewTableCustomActionBase;
|
|
247
263
|
__decorate([
|
|
248
264
|
(0, decorators_1.syncRule)({
|
|
249
265
|
manifest: {
|
|
250
|
-
path: application_1.getActionsPathForView
|
|
266
|
+
path: application_1.getActionsPathForView,
|
|
267
|
+
export: actions_1.exportActionMenuMenu
|
|
251
268
|
}
|
|
252
269
|
}),
|
|
253
270
|
(0, decorators_1.validity)({
|
|
254
271
|
since: '1.84.0'
|
|
255
272
|
})
|
|
256
|
-
],
|
|
273
|
+
], ViewTableCustomActionBase.prototype, "menu", void 0);
|
|
257
274
|
__decorate([
|
|
258
275
|
(0, decorators_1.syncRule)({
|
|
259
276
|
manifest: {
|
|
@@ -263,7 +280,7 @@ __decorate([
|
|
|
263
280
|
(0, decorators_1.validity)({
|
|
264
281
|
since: '1.84.0'
|
|
265
282
|
})
|
|
266
|
-
],
|
|
283
|
+
], ViewTableCustomActionBase.prototype, "text", void 0);
|
|
267
284
|
__decorate([
|
|
268
285
|
(0, decorators_1.syncRule)({
|
|
269
286
|
manifest: {
|
|
@@ -273,7 +290,7 @@ __decorate([
|
|
|
273
290
|
(0, decorators_1.validity)({
|
|
274
291
|
since: '1.84.0'
|
|
275
292
|
})
|
|
276
|
-
],
|
|
293
|
+
], ViewTableCustomActionBase.prototype, "position", void 0);
|
|
277
294
|
__decorate([
|
|
278
295
|
(0, decorators_1.syncRule)({
|
|
279
296
|
manifest: {
|
|
@@ -283,7 +300,7 @@ __decorate([
|
|
|
283
300
|
(0, decorators_1.validity)({
|
|
284
301
|
since: '1.84.0'
|
|
285
302
|
})
|
|
286
|
-
],
|
|
303
|
+
], ViewTableCustomActionBase.prototype, "requiresSelection", void 0);
|
|
287
304
|
__decorate([
|
|
288
305
|
(0, decorators_1.syncRule)({
|
|
289
306
|
manifest: {
|
|
@@ -294,7 +311,7 @@ __decorate([
|
|
|
294
311
|
(0, decorators_1.validity)({
|
|
295
312
|
since: '1.84.0'
|
|
296
313
|
})
|
|
297
|
-
],
|
|
314
|
+
], ViewTableCustomActionBase.prototype, "visible", void 0);
|
|
298
315
|
__decorate([
|
|
299
316
|
(0, decorators_1.syncRule)({
|
|
300
317
|
manifest: {
|
|
@@ -305,7 +322,7 @@ __decorate([
|
|
|
305
322
|
(0, decorators_1.validity)({
|
|
306
323
|
since: '1.84.0'
|
|
307
324
|
})
|
|
308
|
-
],
|
|
325
|
+
], ViewTableCustomActionBase.prototype, "enabled", void 0);
|
|
309
326
|
__decorate([
|
|
310
327
|
(0, decorators_1.syncRule)({
|
|
311
328
|
manifest: {
|
|
@@ -315,5 +332,46 @@ __decorate([
|
|
|
315
332
|
(0, decorators_1.validity)({
|
|
316
333
|
since: '1.139.0'
|
|
317
334
|
})
|
|
318
|
-
],
|
|
335
|
+
], ViewTableCustomActionBase.prototype, "priority", void 0);
|
|
336
|
+
class ViewTableCustomAction extends ViewTableCustomActionBase {
|
|
337
|
+
}
|
|
338
|
+
exports.ViewTableCustomAction = ViewTableCustomAction;
|
|
339
|
+
__decorate([
|
|
340
|
+
(0, decorators_1.syncRule)({
|
|
341
|
+
manifest: {
|
|
342
|
+
path: application_1.getActionsPathForView
|
|
343
|
+
}
|
|
344
|
+
}),
|
|
345
|
+
(0, decorators_1.validity)({
|
|
346
|
+
since: '1.84.0'
|
|
347
|
+
})
|
|
348
|
+
], ViewTableCustomAction.prototype, "press", void 0);
|
|
349
|
+
class ViewCustomActionMenu extends ViewTableCustomActionBase {
|
|
350
|
+
}
|
|
351
|
+
exports.ViewCustomActionMenu = ViewCustomActionMenu;
|
|
352
|
+
__decorate([
|
|
353
|
+
(0, decorators_1.syncRule)({
|
|
354
|
+
manifest: {
|
|
355
|
+
path: application_1.getActionsPathForView,
|
|
356
|
+
export: actions_1.exportActionMenuAction
|
|
357
|
+
}
|
|
358
|
+
}),
|
|
359
|
+
(0, decorators_1.validity)({
|
|
360
|
+
since: '1.84.0'
|
|
361
|
+
})
|
|
362
|
+
], ViewCustomActionMenu.prototype, "actions", void 0);
|
|
363
|
+
__decorate([
|
|
364
|
+
(0, decorators_1.syncRule)({
|
|
365
|
+
manifest: {
|
|
366
|
+
path: application_1.getActionsPathForView,
|
|
367
|
+
export: actions_1.exportActionMenuDefaultAction
|
|
368
|
+
}
|
|
369
|
+
}),
|
|
370
|
+
(0, decorators_1.validity)({
|
|
371
|
+
since: '1.84.0'
|
|
372
|
+
})
|
|
373
|
+
], ViewCustomActionMenu.prototype, "defaultAction", void 0);
|
|
374
|
+
class ViewCustomActionMenuActions {
|
|
375
|
+
}
|
|
376
|
+
exports.ViewCustomActionMenuActions = ViewCustomActionMenuActions;
|
|
319
377
|
//# sourceMappingURL=ToolBarAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolBarAction.js","sourceRoot":"","sources":["../../../../../../../src/sync/v4/export/controls/ToolBarAction.ts"],"names":[],"mappings":";;;;;;;;;AACA,sEAA8F;AAC9F,
|
|
1
|
+
{"version":3,"file":"ToolBarAction.js","sourceRoot":"","sources":["../../../../../../../src/sync/v4/export/controls/ToolBarAction.ts"],"names":[],"mappings":";;;;;;;;;AACA,sEAA8F;AAC9F,mDAA2G;AAC3G,gEAAwF;AACxF,wCAAyG;AACzG,iDAA6C;AAE7C,MAAa,0CAA0C;CA4BtD;AA5BD,gGA4BC;AAdG;IAbC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,CACF,QAAkB,EAClB,QAAkB,EAClB,SAAiB,EACjB,SAAiB,EACjB,gBAAwB,EAClB,EAAE,CACR,IAAA,iCAAmB,EAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,CAAC,GAAG,iBAAiB;SAC1G;KACJ,CAAC;IACD,IAAA,8BAAiB,EAAC,8DAA8D,CAAC;sFACrD;AAa7B;IAZC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,CACF,QAAkB,EAClB,QAAkB,EAClB,SAAiB,EACjB,SAAiB,EACjB,gBAAwB,EAClB,EAAE,CACR,IAAA,iCAAmB,EAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,CAAC,GAAG,iBAAiB;SAC1G;KACJ,CAAC;oFACyB;AAG/B,MAAa,iBAAiB;CAc7B;AAdD,8CAcC;AARG;IALC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,iCAAmB;SAC5B;KACJ,CAAC;yDAC6B;AAO/B;IALC,IAAA,qBAAQ,EAAC;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ExportV4WithPath, ExportResults, UI5Version } from '@sap/ux-specification-types';
|
|
2
|
+
export type ExportSessionState = {
|
|
3
|
+
/**
|
|
4
|
+
* Manifest JSON paths (sync-rule based) that were written/created during the current export run.
|
|
5
|
+
* Used to prevent later rules from deleting a property that was re-created earlier in the same session.
|
|
6
|
+
*/
|
|
7
|
+
writtenManifestPaths: Set<string>;
|
|
8
|
+
};
|
|
2
9
|
/**
|
|
3
10
|
* General API for the export of a V4 config page.
|
|
4
11
|
* Export means the transfer of the properties and values of the given config to manifest entries or flex changes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v4/export/export.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EACR,oBAAoB,EAKpB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EAEb,UAAU,EAIb,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v4/export/export.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EACR,oBAAoB,EAKpB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EAEb,UAAU,EAIb,MAAM,6BAA6B,CAAC;AAgBrC,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;;OAGG;IACH,oBAAoB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACrC,CAAC;AA2iDF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GACrB,oBAAoB,kBAAkB,CAAC,oBAAoB,CAAC,EAAE,CAAC,EAC/D,YAAY,UAAU,KACvB,aAAa,GAAG,SAiBlB,CAAC;AAsBF;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,GACnC,oBAAoB,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,CAAC,EAC7D,aAAa,UAAU,EACvB,yBAAuB,KACxB,aAAa,GAAG,SAelB,CAAC"}
|
|
@@ -14,6 +14,7 @@ const fpmCustomPage_1 = require("./fpmCustomPage");
|
|
|
14
14
|
const utils_3 = require("../utils/utils");
|
|
15
15
|
const viewProperties = ['key', 'index', 'label', 'visible', 'showCounts', 'entitySet', 'keepPreviousPersonalization'];
|
|
16
16
|
const doTransfer = [...viewProperties, 'views', 'initialLoad', 'template'];
|
|
17
|
+
const SKIPPED_TRACKED_PROPERTIES = new Set(['index']);
|
|
17
18
|
/**
|
|
18
19
|
* Returns a fresh export results object with default values.
|
|
19
20
|
*
|
|
@@ -245,14 +246,18 @@ function determineKeyForSyncRule(ids) {
|
|
|
245
246
|
let idIndex = 0;
|
|
246
247
|
for (let index = ids.length - 1; index > -1; index--) {
|
|
247
248
|
const element = ids[index];
|
|
248
|
-
|
|
249
|
+
// The check responds to the fact that the last element of the array may refer to a sub-action set
|
|
250
|
+
// we should not include it in the key
|
|
251
|
+
const isMenuActionSubActionElement = index === ids.length - 1 && element === ux_specification_types_1.PropertyName.actions;
|
|
252
|
+
if (([
|
|
249
253
|
ux_specification_types_1.PropertyName.actions,
|
|
250
254
|
ux_specification_types_1.PropertyName.columns,
|
|
251
255
|
ux_specification_types_1.PropertyName.views,
|
|
252
256
|
ux_specification_types_1.PropertyName.visualFilters,
|
|
253
257
|
ux_specification_types_1.PropertyName.selectionFields,
|
|
254
258
|
ux_specification_types_1.PropertyName.fields
|
|
255
|
-
].includes(ux_specification_types_1.PropertyName[element])
|
|
259
|
+
].includes(ux_specification_types_1.PropertyName[element]) &&
|
|
260
|
+
!isMenuActionSubActionElement) ||
|
|
256
261
|
isGroupingElement(element)) {
|
|
257
262
|
idIndex = index + 1;
|
|
258
263
|
break;
|
|
@@ -294,7 +299,10 @@ function transferPropertyToManifest(params, propertyDefinition, nextDefinition)
|
|
|
294
299
|
!params.configObject[params.configPropertyKey].length) ||
|
|
295
300
|
(!Array.isArray(params.configObject[params.configPropertyKey]) &&
|
|
296
301
|
params.configObject[params.configPropertyKey] === undefined)) {
|
|
297
|
-
delete
|
|
302
|
+
// we can delete the property only if it has not been added to the manifest during this export session by another export rule
|
|
303
|
+
if (!params.hasPropertyAddedThisExport) {
|
|
304
|
+
delete params.manifestSection[params.manifestKey];
|
|
305
|
+
}
|
|
298
306
|
}
|
|
299
307
|
else {
|
|
300
308
|
params.manifestSection[params.manifestKey] = params.configObject[params.configPropertyKey];
|
|
@@ -324,11 +332,13 @@ function deleteFromManifest(ids, params, transferParameters, manifestSection, pa
|
|
|
324
332
|
let changed = false;
|
|
325
333
|
//special condition to prevent table export overwriting views' export and vice versa
|
|
326
334
|
//(but deletion must be possible for the non-remaining table configuration)
|
|
327
|
-
const
|
|
335
|
+
const multiViewDefinitions = transferParameters.appSchema.definitions.MultiTableModeV4;
|
|
336
|
+
const parentDefinition = multiViewDefinitions?.properties[ids[2]];
|
|
337
|
+
const isViewsDefined = isMultiViewsEnabled(transferParameters.config);
|
|
328
338
|
if (ids[0] !== 'table' ||
|
|
329
|
-
(ids[1] !== 'views' && !
|
|
339
|
+
(ids[1] !== 'views' && !isViewsDefined) ||
|
|
330
340
|
(ids[1] === 'views' &&
|
|
331
|
-
(
|
|
341
|
+
(isViewsDefined ||
|
|
332
342
|
(!transferParameters.config['defaultTemplateAnnotationPath'] &&
|
|
333
343
|
ids.length === 4 &&
|
|
334
344
|
viewProperties.indexOf(params.configPropertyKey) > -1) ||
|
|
@@ -351,6 +361,32 @@ function deleteFromManifest(ids, params, transferParameters, manifestSection, pa
|
|
|
351
361
|
(0, utils_1.deleteEmptyStructure)(transferParameters.exportResults.manifest, path, transferParameters.deletionRequest, transferParameters.entityPathArray, targetAnnotation, targetAnnotationEncoded);
|
|
352
362
|
return changed;
|
|
353
363
|
}
|
|
364
|
+
/**
|
|
365
|
+
* Records a manifest property path as "processed during this export session".
|
|
366
|
+
*
|
|
367
|
+
* The export logic can both create/update and delete manifest entries. Some export rules may (re-)create
|
|
368
|
+
* the same manifest property for a different structure during the same run (e.g. action/menu-related settings).
|
|
369
|
+
* To prevent a later rule from deleting a property that has been (re-)added earlier in the same session,
|
|
370
|
+
* the export process keeps a session-scoped set of manifest paths (`writtenManifestPaths`) that were written.
|
|
371
|
+
*
|
|
372
|
+
* This helper adds the given `fullPath` to that set, except for meta/config-only keys that must not be tracked.
|
|
373
|
+
*
|
|
374
|
+
* Notes on exclusions:
|
|
375
|
+
* - Certain config keys are used only for ordering or internal bookkeeping and should not be treated as actual
|
|
376
|
+
* manifest settings. Currently `index` is such a key and is excluded.
|
|
377
|
+
* - Exclusions are centralized in `SKIPPED_TRACKED_PROPERTIES` to make the rule explicit and extensible.
|
|
378
|
+
*
|
|
379
|
+
* @param fullPath - Fully qualified manifest path of the exported property
|
|
380
|
+
* (typically: `syncRule.manifest.path(...) + '/' + (syncRule.manifest.key ?? configKey)`).
|
|
381
|
+
* @param writtenManifestPaths - Session-scoped set used to track manifest paths written during the current export run.
|
|
382
|
+
* @param key - Current config property key (used to skip meta keys like `index`).
|
|
383
|
+
*/
|
|
384
|
+
function storeProcessedPropertyToMap(fullPath, writtenManifestPaths, key) {
|
|
385
|
+
if (SKIPPED_TRACKED_PROPERTIES.has(key)) {
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
writtenManifestPaths.add(fullPath);
|
|
389
|
+
}
|
|
354
390
|
/**
|
|
355
391
|
* Transfers a change in config.json to manifest.
|
|
356
392
|
*
|
|
@@ -361,6 +397,7 @@ function deleteFromManifest(ids, params, transferParameters, manifestSection, pa
|
|
|
361
397
|
* @returns a boolean indicator if any change happened to the manifest
|
|
362
398
|
*/
|
|
363
399
|
function exportManifestChange(ids, syncRule, parameters, nextDefinition) {
|
|
400
|
+
const writtenManifestPaths = parameters.transferParameters.exportSession.writtenManifestPaths;
|
|
364
401
|
let changed = false;
|
|
365
402
|
const originalIds = [...ids];
|
|
366
403
|
//eliminate subsections' hierarchy
|
|
@@ -372,25 +409,37 @@ function exportManifestChange(ids, syncRule, parameters, nextDefinition) {
|
|
|
372
409
|
const { targetAnnotationEncoded, targetAnnotation, custom } = determineTargetAnnotation(ids, parameters.transferParameters, parameters.configObject);
|
|
373
410
|
const syncRuleKey = determineKeyForSyncRule(ids);
|
|
374
411
|
const path = syncRule.manifest.path(parameters.transferParameters.pageNameArray, parameters.transferParameters.exportResults.manifest, targetAnnotationEncoded, syncRuleKey, targetAnnotation, parameters.configObject, originalIds);
|
|
412
|
+
const fullPath = `${path}/${syncRule.manifest.key ?? parameters.key}`;
|
|
375
413
|
const manifestSection = path
|
|
376
414
|
? (0, common_1.getManifestSectionByPathV4)(parameters.transferParameters.exportResults.manifest, path, targetAnnotation, custom ? undefined : targetAnnotationEncoded)
|
|
377
415
|
: undefined;
|
|
378
416
|
if (manifestSection) {
|
|
417
|
+
// If the property has already been added to the manifest during this export session,
|
|
418
|
+
// we must not delete it again. Due to non-deterministic processing order,
|
|
419
|
+
// another object (e.g. a manifest-based action menu) may have already moved or reattached
|
|
420
|
+
// this property. Deleting it here would lead to an incorrect final manifest state.
|
|
421
|
+
const isAddedDuringExportSession = writtenManifestPaths?.has(fullPath);
|
|
379
422
|
const exportParams = {
|
|
380
423
|
syncRule,
|
|
381
424
|
manifestSection,
|
|
382
425
|
configObject: parameters.configObject,
|
|
383
426
|
configPropertyKey: parameters.key,
|
|
384
427
|
manifestKey: syncRule.manifest.key || parameters.key,
|
|
385
|
-
syncRuleKey
|
|
428
|
+
syncRuleKey,
|
|
429
|
+
hasPropertyAddedThisExport: isAddedDuringExportSession
|
|
386
430
|
};
|
|
387
|
-
if (parameters.configObject[parameters.key] === undefined ||
|
|
431
|
+
if ((parameters.configObject[parameters.key] === undefined && !isAddedDuringExportSession) ||
|
|
388
432
|
(parameters.transferParameters.deletionRequest &&
|
|
389
433
|
(0, common_1.arrayIncludes)([...parameters.breadcrumbs, parameters.key], parameters.transferParameters.entityPathArray))) {
|
|
390
434
|
changed = deleteFromManifest(ids, exportParams, parameters.transferParameters, manifestSection, path, targetAnnotation, targetAnnotationEncoded);
|
|
391
435
|
}
|
|
392
436
|
else {
|
|
393
437
|
changed = transferPropertyToManifest(exportParams, parameters.propertyDefinition, nextDefinition);
|
|
438
|
+
// we need to store all properties that are added to the manifest during this export session
|
|
439
|
+
// to be able to avoid unnecessary deletion of them
|
|
440
|
+
if (changed && writtenManifestPaths) {
|
|
441
|
+
storeProcessedPropertyToMap(fullPath, writtenManifestPaths, parameters.key);
|
|
442
|
+
}
|
|
394
443
|
}
|
|
395
444
|
}
|
|
396
445
|
return changed;
|
|
@@ -744,6 +793,25 @@ function transferConfigEntriesWithAnyOfDefinitions(transferEntryParameters, anyO
|
|
|
744
793
|
}
|
|
745
794
|
return preprocessed;
|
|
746
795
|
}
|
|
796
|
+
/**
|
|
797
|
+
* Merges additional properties into a provided list according to specified conditions.
|
|
798
|
+
* Handles properties with `$ref` or `anyOf` by utilizing corresponding helper functions for integration.
|
|
799
|
+
*
|
|
800
|
+
* @param transferParameters The transfer parameters which guide the merging process.
|
|
801
|
+
* @param additionalProperties The additional properties to be merged, potentially containing `$ref` or `anyOf`.
|
|
802
|
+
* @param list The list into which additional properties will be inserted.
|
|
803
|
+
* @param configObject A configuration object containing relevant settings or data for the merging process.
|
|
804
|
+
*/
|
|
805
|
+
function mergeAdditionalProperties(transferParameters, additionalProperties, list, configObject) {
|
|
806
|
+
if (additionalProperties?.$ref) {
|
|
807
|
+
// Merge new entries for creation into list
|
|
808
|
+
mergeEntriesForInsert(transferParameters, additionalProperties, list, configObject);
|
|
809
|
+
}
|
|
810
|
+
if (Array.isArray(additionalProperties?.anyOf)) {
|
|
811
|
+
// Merge new entries for creation into list according to all definitions in anyOf
|
|
812
|
+
mergeAnyOfEntriesForInsert(transferParameters, additionalProperties, list, configObject);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
747
815
|
/**
|
|
748
816
|
* Method updates list of definition entries from schema with entries for insertion based on `additionalProperties` entry.
|
|
749
817
|
*
|
|
@@ -767,6 +835,21 @@ function mergeEntriesForInsert(transferParameters, additionalProperties, list, c
|
|
|
767
835
|
}
|
|
768
836
|
}
|
|
769
837
|
}
|
|
838
|
+
/**
|
|
839
|
+
* Merges new entries according to all schemas in the `anyOf` property of the provided `additionalProperties`.
|
|
840
|
+
*
|
|
841
|
+
* @param {TransferParameterTypeV4} transferParameters - Contains parameters to manage the transfer process.
|
|
842
|
+
* @param {Definition} additionalProperties - The schema containing the `anyOf` property to iterate over.
|
|
843
|
+
* @param {[string, DefinitionOrBoolean][]} list - A list of key-value pairs to be processed.
|
|
844
|
+
* @param {{ [key: string]: unknown }} configObject - An object containing additional configuration parameters for the merge operation.
|
|
845
|
+
*/
|
|
846
|
+
function mergeAnyOfEntriesForInsert(transferParameters, additionalProperties, list, configObject) {
|
|
847
|
+
const { anyOf } = additionalProperties;
|
|
848
|
+
// Merge new entries according to all schemas in anyOf
|
|
849
|
+
anyOf.forEach((anyOfDefinition) => {
|
|
850
|
+
mergeEntriesForInsert(transferParameters, anyOfDefinition, list, configObject);
|
|
851
|
+
});
|
|
852
|
+
}
|
|
770
853
|
/**
|
|
771
854
|
* Sorts the properties of a schema definition, considering the propertyIndex.
|
|
772
855
|
*
|
|
@@ -804,6 +887,26 @@ function checkIfAnyOfDefinition(additionalProperties, transferParameters, transf
|
|
|
804
887
|
}
|
|
805
888
|
return preprocessed;
|
|
806
889
|
}
|
|
890
|
+
/**
|
|
891
|
+
* Determines whether multi-view support is enabled based on the page table config.
|
|
892
|
+
*
|
|
893
|
+
* @param config Page configuration object.
|
|
894
|
+
* @returns Returns true if multi-view is enabled, otherwise false.
|
|
895
|
+
*/
|
|
896
|
+
function isMultiViewsEnabled(config) {
|
|
897
|
+
if (!config['table']?.views) {
|
|
898
|
+
return false;
|
|
899
|
+
}
|
|
900
|
+
// Make sure views are populated - there could be setup without real views, but with atomic properties on views level
|
|
901
|
+
const viewsProperties = config['table']?.views ?? {};
|
|
902
|
+
for (const key in viewsProperties) {
|
|
903
|
+
// Treat as multi-view if at least one property in viewsProperties is an object
|
|
904
|
+
// Currently, the only possible object property is `view`
|
|
905
|
+
if (typeof viewsProperties[key] === 'object') {
|
|
906
|
+
return true;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
807
910
|
/**
|
|
808
911
|
* Recursive function that traverses the content of the current object. It reads decorators and fills exportResultManifest entries and flex changes.
|
|
809
912
|
*
|
|
@@ -832,10 +935,7 @@ function transferManifestEntriesAndFlexChange(transferParameters, configObject,
|
|
|
832
935
|
const preprocessed = checkIfAnyOfDefinition(additionalProperties, transferParameters, transferEntryParameters, schemaDefinition, parentIds, stableIdParts);
|
|
833
936
|
//Sort if there is a propertyIndex, so that the exported list ends up in manifest in the right order
|
|
834
937
|
const sortedList = sortProperties(schemaDefinition.properties);
|
|
835
|
-
|
|
836
|
-
// Merge new entries for creation into list
|
|
837
|
-
mergeEntriesForInsert(transferParameters, additionalProperties, sortedList, configObject);
|
|
838
|
-
}
|
|
938
|
+
mergeAdditionalProperties(transferParameters, additionalProperties, sortedList, configObject);
|
|
839
939
|
index = 0;
|
|
840
940
|
if (sortedList) {
|
|
841
941
|
sortedList.forEach((element) => {
|
|
@@ -927,6 +1027,9 @@ const exportObjectPage = (exportParameters, ui5Version, deletionRequest = false)
|
|
|
927
1027
|
}
|
|
928
1028
|
const transferParameters = {
|
|
929
1029
|
exportResults,
|
|
1030
|
+
exportSession: {
|
|
1031
|
+
writtenManifestPaths: new Set()
|
|
1032
|
+
},
|
|
930
1033
|
appId: exportParameters.appId,
|
|
931
1034
|
appRootPath: exportParameters.appRootPath,
|
|
932
1035
|
baseId: calculateBaseId(pageInstance, exportParameters),
|
|
@@ -982,6 +1085,9 @@ const exportListPage = (exportParameters, factory, config, pageType, ui5Version,
|
|
|
982
1085
|
}
|
|
983
1086
|
const transferParameters = {
|
|
984
1087
|
exportResults,
|
|
1088
|
+
exportSession: {
|
|
1089
|
+
writtenManifestPaths: new Set()
|
|
1090
|
+
},
|
|
985
1091
|
appId: exportParameters.appId,
|
|
986
1092
|
appRootPath: exportParameters.appRootPath,
|
|
987
1093
|
baseId: calculateBaseId(config, exportParameters),
|
|
@@ -1084,14 +1190,19 @@ const exportApplicationV4 = (application, manifest, appSchema) => {
|
|
|
1084
1190
|
applyExportRule(syncRule, path, key, application, exportResults.manifest, appSchema);
|
|
1085
1191
|
}
|
|
1086
1192
|
else {
|
|
1087
|
-
|
|
1193
|
+
// Read section/segment with 'readOnly=true'
|
|
1194
|
+
let manifestSection = (0, common_1.getManifestSectionByPathV4)(exportResults.manifest, path, undefined, undefined, true);
|
|
1088
1195
|
const settingProperty = application.settings?.[key];
|
|
1089
1196
|
// Property could be empty object or undefined, check for both
|
|
1090
1197
|
if (settingProperty !== undefined &&
|
|
1091
1198
|
(typeof settingProperty !== 'object' || Object.keys(settingProperty).length !== 0)) {
|
|
1199
|
+
// Read section/segment with 'readOnly=false'(create object/array if existing value not found by given path)
|
|
1200
|
+
manifestSection =
|
|
1201
|
+
manifestSection ??
|
|
1202
|
+
(0, common_1.getManifestSectionByPathV4)(exportResults.manifest, path, undefined, undefined, false);
|
|
1092
1203
|
manifestSection[key] = application.settings[key];
|
|
1093
1204
|
}
|
|
1094
|
-
else if (key in manifestSection) {
|
|
1205
|
+
else if (manifestSection && key in manifestSection) {
|
|
1095
1206
|
delete manifestSection[key];
|
|
1096
1207
|
(0, utils_1.deleteEmptyStructure)(exportResults.manifest, path, false);
|
|
1097
1208
|
}
|