@sap/ux-specification 1.144.0 → 1.144.2
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 +73 -0
- 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 +340 -330
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ListReportNewConfig.json +208 -7
- package/dist/schemas/v4/ApplicationV4.json +14 -0
- package/dist/schemas/v4/BuildingBlocksConfig.json +384 -43
- package/dist/schemas/v4/ObjectPageConfig.json +112 -728
- package/dist/specification/package.json +11 -10
- package/dist/specification/scripts/generate-validity-report.js +1 -1
- package/dist/specification/scripts/generate-validity-report.js.map +1 -1
- package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
- package/dist/specification/scripts/macros/corrections.js +48 -1
- 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 +23 -10
- package/dist/specification/scripts/macros/schema.js.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
- package/dist/specification/src/api.d.ts.map +1 -1
- package/dist/specification/src/api.js +39 -3
- package/dist/specification/src/api.js.map +1 -1
- package/dist/specification/src/ftfs/ftfs.d.ts +8 -0
- package/dist/specification/src/ftfs/ftfs.d.ts.map +1 -1
- package/dist/specification/src/ftfs/ftfs.js +1 -0
- package/dist/specification/src/ftfs/ftfs.js.map +1 -1
- package/dist/specification/src/ftfs/index.d.ts +1 -1
- package/dist/specification/src/ftfs/index.d.ts.map +1 -1
- package/dist/specification/src/ftfs/index.js +2 -1
- package/dist/specification/src/ftfs/index.js.map +1 -1
- package/dist/specification/src/ftfs/parser/model/TreeModel.d.ts.map +1 -1
- package/dist/specification/src/ftfs/parser/model/TreeModel.js +3 -1
- package/dist/specification/src/ftfs/parser/model/TreeModel.js.map +1 -1
- package/dist/specification/src/i18n/i18n.d.ts.map +1 -1
- package/dist/specification/src/i18n/i18n.js +2 -1
- package/dist/specification/src/i18n/i18n.js.map +1 -1
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts +8 -1
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts.map +1 -1
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js +10 -7
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/Decorator.d.ts +91 -0
- package/dist/specification/src/sync/common/decoration/Decorator.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/Decorator.js +139 -0
- package/dist/specification/src/sync/common/decoration/Decorator.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/condition-evaluator.d.ts +95 -0
- package/dist/specification/src/sync/common/decoration/condition-evaluator.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/condition-evaluator.js +210 -0
- package/dist/specification/src/sync/common/decoration/condition-evaluator.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts +58 -22
- package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorator-paths.js +23 -1
- package/dist/specification/src/sync/common/decoration/decorator-paths.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.d.ts +6 -48
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.js +26 -106
- package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/index.d.ts +4 -0
- package/dist/specification/src/sync/common/decoration/index.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/index.js +4 -0
- package/dist/specification/src/sync/common/decoration/index.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/interfaces.d.ts +38 -0
- package/dist/specification/src/sync/common/decoration/interfaces.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/interfaces.js +3 -0
- package/dist/specification/src/sync/common/decoration/interfaces.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Enums.d.ts +18 -0
- package/dist/specification/src/sync/common/decoration/steps/Enums.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Enums.js +50 -0
- package/dist/specification/src/sync/common/decoration/steps/Enums.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Hide.d.ts +18 -0
- package/dist/specification/src/sync/common/decoration/steps/Hide.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Hide.js +46 -0
- package/dist/specification/src/sync/common/decoration/steps/Hide.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Message.d.ts +26 -0
- package/dist/specification/src/sync/common/decoration/steps/Message.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Message.js +77 -0
- package/dist/specification/src/sync/common/decoration/steps/Message.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Readonly.d.ts +18 -0
- package/dist/specification/src/sync/common/decoration/steps/Readonly.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Readonly.js +43 -0
- package/dist/specification/src/sync/common/decoration/steps/Readonly.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Validity.d.ts +18 -0
- package/dist/specification/src/sync/common/decoration/steps/Validity.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Validity.js +68 -0
- package/dist/specification/src/sync/common/decoration/steps/Validity.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/enum-utils.d.ts +19 -0
- package/dist/specification/src/sync/common/decoration/steps/enum-utils.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/enum-utils.js +48 -0
- package/dist/specification/src/sync/common/decoration/steps/enum-utils.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/index.d.ts +6 -0
- package/dist/specification/src/sync/common/decoration/steps/index.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/index.js +14 -0
- package/dist/specification/src/sync/common/decoration/steps/index.js.map +1 -0
- package/dist/specification/src/sync/common/i18n.json +25 -1
- package/dist/specification/src/sync/common/importProject.d.ts.map +1 -1
- package/dist/specification/src/sync/common/importProject.js +2 -0
- package/dist/specification/src/sync/common/importProject.js.map +1 -1
- package/dist/specification/src/sync/common/rules.d.ts +25 -0
- package/dist/specification/src/sync/common/rules.d.ts.map +1 -1
- package/dist/specification/src/sync/common/rules.js +27 -2
- package/dist/specification/src/sync/common/rules.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts +4 -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 +29 -20
- package/dist/specification/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/specification/src/sync/v2/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/export.js +3 -2
- package/dist/specification/src/sync/v2/export/export.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.js +48 -19
- package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts +2 -0
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +17 -6
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts +54 -6
- 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 +106 -12
- package/dist/specification/src/sync/v2/export/view-controller-generator.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js +7 -7
- package/dist/specification/src/sync/v2/generate/analyticalListReport.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 +56 -2
- package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +2 -0
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +3 -2
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.d.ts +16 -1
- package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.js +30 -18
- package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js +4 -4
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.d.ts +12 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.js +167 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js +3 -3
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +60 -2
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +626 -11
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js +30 -6
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js.map +1 -1
- package/dist/specification/src/sync/v2/types.d.ts +2 -0
- package/dist/specification/src/sync/v2/types.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/types.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +25 -0
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +28 -4
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/application.d.ts +12 -0
- 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/controls/FilterBar.d.ts +1 -2
- package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.js +1 -2
- package/dist/specification/src/sync/v4/export/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts +3 -5
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.js +2 -7
- package/dist/specification/src/sync/v4/export/controls/Header.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts +9 -3
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js +10 -6
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +1 -2
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js +1 -2
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts +11 -51
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js +95 -246
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts +6 -21
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js +46 -37
- package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts +1 -2
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js +3 -4
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/factory.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/factory.js +2 -4
- package/dist/specification/src/sync/v4/export/factory.js.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts +1 -0
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js +212 -46
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/app.d.ts +11 -0
- package/dist/specification/src/sync/v4/generate/app.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/app.js +31 -0
- package/dist/specification/src/sync/v4/generate/app.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts +13 -0
- 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 +93 -13
- 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.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js +4 -3
- 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 +29 -27
- 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 +12 -3
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts +32 -13
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js +103 -78
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/list-report/listReport.d.ts +13 -6
- package/dist/specification/src/sync/v4/generate/list-report/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/list-report/listReport.js +107 -108
- package/dist/specification/src/sync/v4/generate/list-report/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts +1 -2
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +162 -118
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js +20 -0
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.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 +11 -50
- package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts +2 -4
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.js +2 -1
- 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 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js +3 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts +1 -302
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +0 -753
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts +2 -4
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/Page.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/StableIdHelper.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/StableIdHelper.js +10 -4
- package/dist/specification/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/macros.d.ts +19 -0
- package/dist/specification/src/sync/v4/utils/macros.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/macros.js +34 -0
- package/dist/specification/src/sync/v4/utils/macros.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.d.ts +22 -2
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +238 -41
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/specification/test/test-utils/utils.d.ts +1 -0
- package/dist/specification/test/test-utils/utils.d.ts.map +1 -1
- package/dist/specification/test/test-utils/utils.js +11 -0
- package/dist/specification/test/test-utils/utils.js.map +1 -1
- package/dist/specification/test/unit/decorators/validity-test-utils.d.ts +2 -2
- package/dist/specification/test/unit/decorators/validity-test-utils.d.ts.map +1 -1
- package/dist/specification/test/unit/decorators/validity-test-utils.js +6 -6
- package/dist/specification/test/unit/decorators/validity-test-utils.js.map +1 -1
- package/dist/templates/AnalyticalTableColumnsExtension.xml +3 -3
- package/dist/templates/GridTableColumnsExtension.xml +3 -3
- package/dist/templates/ResponsiveTableColumnsExtension.xml +2 -2
- package/dist/templates/TreeTableColumnsExtension.xml +4 -4
- package/dist/templates/fragment.xml +3 -3
- package/dist/templates/view.xml +3 -3
- package/dist/types/src/apiTypes.d.ts +15 -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 +11 -6
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js +12 -7
- package/dist/types/src/common/types.js.map +1 -1
- package/dist/types/src/v4/application.d.ts +15 -0
- package/dist/types/src/v4/application.d.ts.map +1 -1
- package/dist/types/src/v4/application.js +10 -0
- package/dist/types/src/v4/application.js.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts +86 -252
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.js.map +1 -1
- package/package.json +12 -11
|
@@ -67,6 +67,7 @@ exports.importManifestBasedActionMenuSettingsOfReference = importManifestBasedAc
|
|
|
67
67
|
exports.importActionSettingsOfReference = importActionSettingsOfReference;
|
|
68
68
|
exports.addCustomFieldDefinition = addCustomFieldDefinition;
|
|
69
69
|
exports.addManifestPathsToProperties = addManifestPathsToProperties;
|
|
70
|
+
exports.getInsertableForEntitySet = getInsertableForEntitySet;
|
|
70
71
|
exports.getPageManifestPath = getPageManifestPath;
|
|
71
72
|
const utils_1 = require("../../common/utils");
|
|
72
73
|
const StableIdHelper_1 = require("./StableIdHelper");
|
|
@@ -78,7 +79,6 @@ const path_1 = require("path");
|
|
|
78
79
|
const DataFieldStrategy_1 = require("../../common/DataFieldStrategy");
|
|
79
80
|
const utils_2 = require("../import/utils");
|
|
80
81
|
const src_1 = require("@sap/ux-specification-types/src");
|
|
81
|
-
const objectPage_1 = require("../generate/objectPage");
|
|
82
82
|
const v4controls = __importStar(require("../export/controls"));
|
|
83
83
|
const pages = __importStar(require("../export/pages"));
|
|
84
84
|
const application_1 = require("../application");
|
|
@@ -86,6 +86,12 @@ exports.DATA_FIELD_FOR_ACTION_GROUP = 'DataFieldForActionGroup';
|
|
|
86
86
|
const UI_ANNOTATION_KEY = 'UI';
|
|
87
87
|
exports.FIELD_SEPARATOR = '::';
|
|
88
88
|
exports.QUALIFIER_SEPARATOR = '#';
|
|
89
|
+
/**
|
|
90
|
+
* List of annotation-based action prefixes that should be included in the schema
|
|
91
|
+
* even if they lack custom action properties (press, menu), so they can be validated
|
|
92
|
+
* and removed during export if they don't match the config.
|
|
93
|
+
*/
|
|
94
|
+
const ANNOTATION_BASED_ACTION_PREFIXES = [`${ux_specification_types_1.DataFieldActionType.DataFieldForIntentBasedNavigation}${exports.FIELD_SEPARATOR}`];
|
|
89
95
|
const ACTION_TYPE = 'actionType';
|
|
90
96
|
const strategyTypeMap = new Map([
|
|
91
97
|
['', "com.sap.vocabularies.UI.v1.DataFieldForAction" /* UIAnnotationTypes.DataFieldForAction */],
|
|
@@ -95,19 +101,23 @@ const strategyTypeMap = new Map([
|
|
|
95
101
|
]);
|
|
96
102
|
const OP_ACTION_MENU_DEFINITION = {
|
|
97
103
|
actionMenuDefinitionName: ux_specification_types_1.DefinitionName.ObjectPageCustomActionMenu,
|
|
98
|
-
actionMenuActionsDefinitionName: ux_specification_types_1.DefinitionName.ObjectPageCustomActionMenuActions
|
|
104
|
+
actionMenuActionsDefinitionName: ux_specification_types_1.DefinitionName.ObjectPageCustomActionMenuActions,
|
|
105
|
+
actionName: ux_specification_types_1.DefinitionName.ObjectPageToolBarAction
|
|
99
106
|
};
|
|
100
107
|
const OP_HEADER_ACTION_MENU_DEFINITION = {
|
|
101
108
|
actionMenuDefinitionName: ux_specification_types_1.DefinitionName.ObjectPageHeaderCustomActionMenu,
|
|
102
|
-
actionMenuActionsDefinitionName: ux_specification_types_1.DefinitionName.ObjectPageHeaderCustomActionMenuActions
|
|
109
|
+
actionMenuActionsDefinitionName: ux_specification_types_1.DefinitionName.ObjectPageHeaderCustomActionMenuActions,
|
|
110
|
+
actionName: ux_specification_types_1.DefinitionName.ObjectPageHeaderAction
|
|
103
111
|
};
|
|
104
112
|
const LR_ACTION_MENU_DEFINITION = {
|
|
105
113
|
actionMenuDefinitionName: ux_specification_types_1.DefinitionName.CustomActionMenu,
|
|
106
|
-
actionMenuActionsDefinitionName: ux_specification_types_1.DefinitionName.CustomActionMenuActions
|
|
114
|
+
actionMenuActionsDefinitionName: ux_specification_types_1.DefinitionName.CustomActionMenuActions,
|
|
115
|
+
actionName: ux_specification_types_1.DefinitionName.ToolBarAction
|
|
107
116
|
};
|
|
108
117
|
const LR_ACTION_VIEW_MENU_DEFINITION = {
|
|
109
118
|
actionMenuDefinitionName: ux_specification_types_1.DefinitionName.ViewCustomActionMenu,
|
|
110
|
-
actionMenuActionsDefinitionName: ux_specification_types_1.DefinitionName.ViewCustomActionMenuActions
|
|
119
|
+
actionMenuActionsDefinitionName: ux_specification_types_1.DefinitionName.ViewCustomActionMenuActions,
|
|
120
|
+
actionName: ux_specification_types_1.DefinitionName.ViewToolBarAction
|
|
111
121
|
};
|
|
112
122
|
const actionMenuDefinitionNameMap = new Map([
|
|
113
123
|
[ux_specification_types_1.DefinitionName.CustomTableActionOP, OP_ACTION_MENU_DEFINITION],
|
|
@@ -234,7 +244,7 @@ function getExtensionDetails(extension, extensionDefinitionName, extId, actionTy
|
|
|
234
244
|
* @param {string} extensionDefinitionName - The name of the extension definition to refer to.
|
|
235
245
|
* @param {[string, unknown][]} sortedExtArray - A sorted array of existing extensions represented as key-value pairs.
|
|
236
246
|
* @param {ExtensionLogger} logger - The logger used for logging errors and warnings during the adjustment process.
|
|
237
|
-
* @param {boolean} [forceAdd
|
|
247
|
+
* @param {boolean} [forceAdd] - Flag indicating whether to force adding extensions even if proper anchor/placement is not found.
|
|
238
248
|
*/
|
|
239
249
|
function adjustCustomExtReferringToCustomExt(remainingExtensions, extensionDefinitionName, sortedExtArray, logger, forceAdd = false) {
|
|
240
250
|
const initialRemaining = Object.entries(remainingExtensions).length;
|
|
@@ -406,6 +416,110 @@ function handleInvalidExtension(logger, extensionId, sortedExtensionsArray, newE
|
|
|
406
416
|
sortedExtensionsArray.push([extensionId, newExtensionReference]);
|
|
407
417
|
delete localExtensions[extensionId];
|
|
408
418
|
}
|
|
419
|
+
/**
|
|
420
|
+
* Checks if an extension ID represents an annotation-based action.
|
|
421
|
+
* Annotation-based actions should be included in the schema even if they lack custom action
|
|
422
|
+
* properties (press, menu), so they can be validated and removed during export if they don't match the config.
|
|
423
|
+
*
|
|
424
|
+
* @param {string} extensionId - The extension ID to check.
|
|
425
|
+
* @returns {boolean} True if the extension is an annotation-based action, false otherwise.
|
|
426
|
+
*/
|
|
427
|
+
function isAnnotationBasedAction(extensionId) {
|
|
428
|
+
return ANNOTATION_BASED_ACTION_PREFIXES.some((prefix) => extensionId.startsWith(prefix));
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Handles orphaned annotation-based actions that exist in manifest but not in annotations.
|
|
432
|
+
* These actions must be added to the schema to enable cleanup during export.
|
|
433
|
+
*
|
|
434
|
+
* @param {string} extensionId - The extension ID.
|
|
435
|
+
* @param {any} extension - The extension object.
|
|
436
|
+
* @param {string} extensionDefinitionName - The definition name associated with the extensions.
|
|
437
|
+
* @param {Definition} [appSchema] - Optional application schema for creating specific definitions.
|
|
438
|
+
* @param {ActionDetails[]} sortedExtensionsArray - The array to add the action to.
|
|
439
|
+
*/
|
|
440
|
+
function handleOrphanedAnnotationAction(extensionId, extension, extensionDefinitionName, appSchema, sortedExtensionsArray) {
|
|
441
|
+
// This is an annotation-based action from manifest that doesn't exist in annotations.
|
|
442
|
+
// IMPORTANT: We must add these orphaned actions to the schema to enable cleanup.
|
|
443
|
+
//
|
|
444
|
+
// When an action is renamed (e.g., IBN action's semantic object changes), the old
|
|
445
|
+
// action key remains in the manifest but disappears from the config (annotations).
|
|
446
|
+
// By adding it to the schema, the export process can detect this mismatch and remove
|
|
447
|
+
// the orphaned entry from the manifest. If we don't add it to the schema, it will be
|
|
448
|
+
// ignored and remain as garbage in the manifest forever.
|
|
449
|
+
//
|
|
450
|
+
// Process:
|
|
451
|
+
// 1. Add orphaned action to schema with Standard action type
|
|
452
|
+
// 2. During export: compare schema with config
|
|
453
|
+
// 3. Action in schema but NOT in config → remove from manifest
|
|
454
|
+
// 4. Action in schema AND in config → keep in manifest
|
|
455
|
+
if (appSchema) {
|
|
456
|
+
// Create specific definition name and schema like "ToolBarActionGroup<DataFieldForActionGroup::AnnoActionMenu>"
|
|
457
|
+
const { actionName } = determineActionDefinitionNames(extensionDefinitionName);
|
|
458
|
+
const preparedRef = (0, common_1.prepareRef)(extensionId);
|
|
459
|
+
const specificDefinitionName = (0, common_1.getFacetDefinitionKey)(actionName, preparedRef);
|
|
460
|
+
// Create the schema definition for this action
|
|
461
|
+
(0, common_1.parseSchemaDefinition)(actionName, preparedRef, appSchema);
|
|
462
|
+
const correctedExtensionReference = getExtensionDetails(extension, specificDefinitionName, extensionId, ux_specification_types_1.ActionType.Standard);
|
|
463
|
+
sortedExtensionsArray.push([extensionId, correctedExtensionReference]);
|
|
464
|
+
}
|
|
465
|
+
else {
|
|
466
|
+
// Fallback if no appSchema provided
|
|
467
|
+
const correctedExtensionReference = getExtensionDetails(extension, extensionDefinitionName, extensionId, ux_specification_types_1.ActionType.Standard);
|
|
468
|
+
sortedExtensionsArray.push([extensionId, correctedExtensionReference]);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Recursively checks if an action exists in annotation entries, including nested actions within action groups.
|
|
473
|
+
*
|
|
474
|
+
* @param {string} extensionId - The unique identifier for the extension to search for.
|
|
475
|
+
* @param {ActionDetails[]} annotationEntries - Array of actions to search through.
|
|
476
|
+
* @param {Definition | undefined} appSchema - Optional application schema to look up action group definitions.
|
|
477
|
+
* @returns {boolean} True if the action exists at any level (top-level or nested in groups).
|
|
478
|
+
*/
|
|
479
|
+
function actionExistsInAnnotations(extensionId, annotationEntries, appSchema) {
|
|
480
|
+
for (const [id, actionDef] of annotationEntries) {
|
|
481
|
+
// Check top-level match
|
|
482
|
+
if (id === extensionId) {
|
|
483
|
+
return true;
|
|
484
|
+
}
|
|
485
|
+
// Check if this is an action group with nested actions
|
|
486
|
+
const actionDefinition = actionDef;
|
|
487
|
+
if (appSchema && actionDefinition.$ref) {
|
|
488
|
+
const defKey = actionDefinition.$ref.replace('#/definitions/', '');
|
|
489
|
+
const definition = appSchema.definitions?.[defKey];
|
|
490
|
+
// If it's an action group, check its nested actions (properties)
|
|
491
|
+
if (definition && definition.properties) {
|
|
492
|
+
const nestedActions = Object.entries(definition.properties).map(([nestedId, nestedDef]) => [nestedId, nestedDef]);
|
|
493
|
+
// Recursively search nested actions
|
|
494
|
+
if (actionExistsInAnnotations(extensionId, nestedActions, appSchema)) {
|
|
495
|
+
return true;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
return false;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Processes annotation-based actions with unsupported extension types.
|
|
504
|
+
* Either skips duplicates or handles orphaned actions.
|
|
505
|
+
*
|
|
506
|
+
* @param {string} extensionId - The extension ID.
|
|
507
|
+
* @param {any} extension - The extension object.
|
|
508
|
+
* @param {string} extensionDefinitionName - The definition name.
|
|
509
|
+
* @param {Definition} [appSchema] - Optional application schema.
|
|
510
|
+
* @param {ActionDetails[]} annotationEntries - Array of annotation entries.
|
|
511
|
+
* @param {ActionDetails[]} sortedExtensionsArray - The sorted extensions array.
|
|
512
|
+
*/
|
|
513
|
+
function processAnnotationBasedAction(extensionId, extension, extensionDefinitionName, appSchema, annotationEntries, sortedExtensionsArray) {
|
|
514
|
+
// Check if this annotation-based action exists in annotationEntries (including nested in action groups)
|
|
515
|
+
const existsInAnnotations = actionExistsInAnnotations(extensionId, annotationEntries, appSchema);
|
|
516
|
+
if (existsInAnnotations) {
|
|
517
|
+
// Action already exists from annotations - skip it to avoid duplicates
|
|
518
|
+
return;
|
|
519
|
+
}
|
|
520
|
+
// Handle orphaned annotation-based action
|
|
521
|
+
handleOrphanedAnnotationAction(extensionId, extension, extensionDefinitionName, appSchema, sortedExtensionsArray);
|
|
522
|
+
}
|
|
409
523
|
/**
|
|
410
524
|
* Adds extension entries to a sorted array of extensions based on specific rules,
|
|
411
525
|
* including using anchors, callbacks, and custom templates.
|
|
@@ -413,13 +527,14 @@ function handleInvalidExtension(logger, extensionId, sortedExtensionsArray, newE
|
|
|
413
527
|
* @param {CustomExtensions} extensions - The object containing custom extensions to be added to the array.
|
|
414
528
|
* @param {ActionDetails[]} sortedExtensionsArray - The array of sorted extensions to which new extensions will be added.
|
|
415
529
|
* @param {string} extensionDefinitionName - The definition name associated with the extensions being added.
|
|
416
|
-
* @param {TemplatePropertyName | TemplatePropertyName[]} [templatePropertyName
|
|
530
|
+
* @param {TemplatePropertyName | TemplatePropertyName[]} [templatePropertyName] -
|
|
417
531
|
* The property name(s) to check for existence in an extension; used to determine compatibility.
|
|
418
532
|
* @param {ExtensionLogger} [logger] - An optional logger to handle logging of invalid extensions or other events.
|
|
419
533
|
* @param {boolean} [ignoreAnnotationAnchors=false] - A flag to indicate whether extension anchors should be ignored.
|
|
534
|
+
* @param {Definition} [appSchema] - Optional application schema for creating specific definitions for annotation-based actions.
|
|
420
535
|
* @returns {ActionDetails[]} The updated sorted extensions array, including newly added and valid extensions.
|
|
421
536
|
*/
|
|
422
|
-
function addExtensionToArray(extensions, sortedExtensionsArray, extensionDefinitionName, templatePropertyName = ux_specification_types_1.TemplatePropertyName.Template, logger, ignoreAnnotationAnchors = false) {
|
|
537
|
+
function addExtensionToArray(extensions, sortedExtensionsArray, extensionDefinitionName, templatePropertyName = ux_specification_types_1.TemplatePropertyName.Template, logger, ignoreAnnotationAnchors = false, appSchema) {
|
|
423
538
|
templatePropertyName = Array.isArray(templatePropertyName) ? templatePropertyName : [templatePropertyName];
|
|
424
539
|
const annotationEntries = [...sortedExtensionsArray];
|
|
425
540
|
const localExtensions = { ...extensions };
|
|
@@ -439,9 +554,17 @@ function addExtensionToArray(extensions, sortedExtensionsArray, extensionDefinit
|
|
|
439
554
|
}
|
|
440
555
|
const hasUnsupportedExtensionType = templatePropertyName.every((propertyName) => !(propertyName in extension));
|
|
441
556
|
if (hasUnsupportedExtensionType) {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
557
|
+
const isAnnotationBased = isAnnotationBasedAction(extensionId);
|
|
558
|
+
if (isAnnotationBased) {
|
|
559
|
+
processAnnotationBasedAction(extensionId, extension, extensionDefinitionName, appSchema, annotationEntries, sortedExtensionsArray);
|
|
560
|
+
delete localExtensions[extensionId];
|
|
561
|
+
continue;
|
|
562
|
+
}
|
|
563
|
+
else {
|
|
564
|
+
// Skip regular entries (columns, actions, etc.) that don't have required properties
|
|
565
|
+
delete localExtensions[extensionId];
|
|
566
|
+
continue;
|
|
567
|
+
}
|
|
445
568
|
}
|
|
446
569
|
const anchor = getExtensionAnchor(extension, annotationEntries);
|
|
447
570
|
if (anchor) {
|
|
@@ -664,14 +787,28 @@ function addActionRecordToSchema(lineItemDefinitionParams, createRef = true, isI
|
|
|
664
787
|
//no footer bar -> toolbar action
|
|
665
788
|
const actionDefinitionName = determineActionDefinitionName(data, lineItemRecord, isInnerAction);
|
|
666
789
|
const description = (0, common_1.getDataFieldDescription)(lineItemRecord, data.entityType);
|
|
667
|
-
|
|
790
|
+
// Generate stable ID using strategy pattern to ensure correct key format for all action types.
|
|
791
|
+
// This is crucial for IBN actions, which need the full key including SemanticObject and RequiresContext
|
|
792
|
+
// (e.g., "DataFieldForIntentBasedNavigation::v4Freestyle::Inbound::RequiresContext")
|
|
793
|
+
// to be properly matched when referenced in manifest-based action menus.
|
|
794
|
+
const strategy = DataFieldStrategy_1.dataFieldStrategyContext.getStrategy(lineItemRecord.$Type);
|
|
795
|
+
const stableId = strategy.generateStableId(lineItemRecord);
|
|
796
|
+
// Extract Action property for keys generation (used by addTargetAndKeysOfAction).
|
|
797
|
+
// For IBN actions, this is just the action name (e.g., "Inbound").
|
|
798
|
+
// For bound actions, this may include namespace (e.g., "com.sap.Action/MyAction").
|
|
668
799
|
const actionId = typeof lineItemRecord.Action === 'string' ? lineItemRecord.Action : lineItemRecord.Action['path'];
|
|
669
|
-
|
|
670
|
-
|
|
800
|
+
// Remove type prefix from stable ID for use in $ref generation.
|
|
801
|
+
// This ensures getUniqueFacetDefinitionLink can properly detect duplicates based on full action identity,
|
|
802
|
+
// not just the Action property. For example, two IBN actions with different SemanticObjects but same Action
|
|
803
|
+
// should be treated as different actions, not duplicates.
|
|
804
|
+
const stableIdWithoutPrefix = stableId.split('::').slice(1).join('::');
|
|
805
|
+
// Create action definition with full stable ID as property key.
|
|
806
|
+
// This allows manifest-based menus to correctly reference actions by their complete identity.
|
|
807
|
+
const actionDefinition = (actionsDefinition.properties[stableId] = {
|
|
671
808
|
description
|
|
672
809
|
});
|
|
673
810
|
if (createRef) {
|
|
674
|
-
actionDefinition.$ref = (0, common_1.getUniqueFacetDefinitionLink)(actionDefinitionName, (0, common_1.prepareRef)(
|
|
811
|
+
actionDefinition.$ref = (0, common_1.getUniqueFacetDefinitionLink)(actionDefinitionName, (0, common_1.prepareRef)(stableIdWithoutPrefix), data.appSchema, lineItemPath);
|
|
675
812
|
}
|
|
676
813
|
else {
|
|
677
814
|
actionDefinition.properties = {};
|
|
@@ -979,20 +1116,12 @@ function initializeCreationModeSchema(appSchema, lineItemId, entityType, definit
|
|
|
979
1116
|
*/
|
|
980
1117
|
function addOneOfForCreationFields(appSchema, entityType, definitionName, lineItemId) {
|
|
981
1118
|
const creationModeDefinitionName = initializeCreationModeSchema(appSchema, lineItemId, entityType, definitionName);
|
|
982
|
-
//
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
// replace generic creation mode definition with specific one
|
|
989
|
-
// I don't check that $ref contains the definition name, the replacement should not work for other definitions
|
|
990
|
-
const updatedRef = $ref.replace(definitionName, creationModeDefinitionName);
|
|
991
|
-
return { ...definition, $ref: updatedRef };
|
|
992
|
-
});
|
|
993
|
-
appSchema.definitions[`${type}<${lineItemId}>`].properties.creationMode.anyOf = updatedCreationModeAnyOf;
|
|
994
|
-
}
|
|
995
|
-
});
|
|
1119
|
+
// Replace the generic creationMode definition reference with the facet-specific one
|
|
1120
|
+
const tableDefinition = appSchema.definitions[`${ux_specification_types_1.DefinitionName.ObjectPageTable}<${lineItemId}>`];
|
|
1121
|
+
const creationModeProperty = tableDefinition?.properties?.creationMode;
|
|
1122
|
+
if (creationModeProperty?.$ref) {
|
|
1123
|
+
creationModeProperty.$ref = creationModeProperty.$ref.replace(definitionName, creationModeDefinitionName);
|
|
1124
|
+
}
|
|
996
1125
|
}
|
|
997
1126
|
/**
|
|
998
1127
|
* Find the relevant V4 page under the routing targets of manifest,json.
|
|
@@ -1169,7 +1298,7 @@ function addHeaderFooterCustomActionDefinition(appSchema, v4Page, logger, custom
|
|
|
1169
1298
|
function addActionsToArray(params) {
|
|
1170
1299
|
const { extensions, initialActionDetailsList, customActionDefinitionName, logger } = params;
|
|
1171
1300
|
// Add custom actions
|
|
1172
|
-
let actionDetailsList = addExtensionToArray(extensions, initialActionDetailsList, customActionDefinitionName, [ux_specification_types_1.TemplatePropertyName.Press, ux_specification_types_1.TemplatePropertyName.Menu], logger);
|
|
1301
|
+
let actionDetailsList = addExtensionToArray(extensions, initialActionDetailsList, customActionDefinitionName, [ux_specification_types_1.TemplatePropertyName.Press, ux_specification_types_1.TemplatePropertyName.Menu], logger, false, params.appSchema);
|
|
1173
1302
|
const processActionMenusParams = {
|
|
1174
1303
|
...params,
|
|
1175
1304
|
initialActionDetailsList: actionDetailsList
|
|
@@ -1229,20 +1358,31 @@ function getMenuEntryDefinitionLink($ref, actionMenuDefinitionName, appSchema) {
|
|
|
1229
1358
|
menuEntryDefinition[originalDefinitionKey] = originalDefinition[originalDefinitionKey];
|
|
1230
1359
|
}
|
|
1231
1360
|
}
|
|
1232
|
-
// some properties doesn't make sense for menu entries
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1361
|
+
// some properties doesn't make sense for menu entries - hide them instead of deleting
|
|
1362
|
+
// NOTE: This is a necessary trade-off. When moving IBN actions in and out of menus,
|
|
1363
|
+
// we keep these properties visible in the manifest but hidden in the UI.
|
|
1364
|
+
// Unfortunately, this is required - otherwise, when renaming actions, we end up with
|
|
1365
|
+
// orphaned entries in the manifest.
|
|
1366
|
+
if (menuEntryDefinition.properties[ux_specification_types_1.PropertyName.position]) {
|
|
1367
|
+
menuEntryDefinition.properties[ux_specification_types_1.PropertyName.position][ux_specification_types_1.SchemaTag.hidden] = true;
|
|
1368
|
+
}
|
|
1369
|
+
if (menuEntryDefinition.properties[ux_specification_types_1.PropertyName.overflowGroup]) {
|
|
1370
|
+
menuEntryDefinition.properties[ux_specification_types_1.PropertyName.overflowGroup][ux_specification_types_1.SchemaTag.hidden] = true;
|
|
1371
|
+
}
|
|
1372
|
+
if (menuEntryDefinition.properties[ux_specification_types_1.PropertyName.priority]) {
|
|
1373
|
+
menuEntryDefinition.properties[ux_specification_types_1.PropertyName.priority][ux_specification_types_1.SchemaTag.hidden] = true;
|
|
1374
|
+
}
|
|
1236
1375
|
}
|
|
1237
1376
|
return menuEntryDefinitionLink;
|
|
1238
1377
|
}
|
|
1239
1378
|
/**
|
|
1240
|
-
* Determines the appropriate action
|
|
1379
|
+
* Determines the appropriate action definition names based on a custom action definition name.
|
|
1380
|
+
* Returns menu definition names and the action name for menu entries.
|
|
1241
1381
|
*
|
|
1242
1382
|
* @param {string} customActionDefinitionName - The custom action definition name to be parsed and matched.
|
|
1243
|
-
* @returns {ActionMenuDefinitionName} The corresponding action
|
|
1383
|
+
* @returns {ActionMenuDefinitionName} The corresponding action definition names, or a default value if not found.
|
|
1244
1384
|
*/
|
|
1245
|
-
function
|
|
1385
|
+
function determineActionDefinitionNames(customActionDefinitionName) {
|
|
1246
1386
|
const { baseDefinitionName } = parseDefinitionName(customActionDefinitionName);
|
|
1247
1387
|
return actionMenuDefinitionNameMap.get(baseDefinitionName) ?? LR_ACTION_MENU_DEFINITION;
|
|
1248
1388
|
}
|
|
@@ -1268,7 +1408,7 @@ function parseDefinitionName(definitionName = '') {
|
|
|
1268
1408
|
* Updates the custom menu's default action to include a list of valid options based on the provided menu schema.
|
|
1269
1409
|
*
|
|
1270
1410
|
* @param {Definition} customMenuDefinition - The definition object for the custom menu, where the default action will be updated.
|
|
1271
|
-
* @param {Record<string, SchemaDefinition>} [menu
|
|
1411
|
+
* @param {Record<string, SchemaDefinition>} [menu] - A mapping of menu items to their schema definitions, used to generate valid options for the default action.
|
|
1272
1412
|
*/
|
|
1273
1413
|
function setCustomMenuDefaultAction(customMenuDefinition, menu = {}) {
|
|
1274
1414
|
if (customMenuDefinition.properties[ux_specification_types_1.PropertyName.defaultAction]) {
|
|
@@ -1308,7 +1448,7 @@ function processActionMenu(params, extension, actionDefinition, initialDetailsLi
|
|
|
1308
1448
|
}
|
|
1309
1449
|
const { customActionDefinitionName, appSchema, lineItemId } = params;
|
|
1310
1450
|
const detailsList = [...initialDetailsList];
|
|
1311
|
-
const { actionMenuDefinitionName, actionMenuActionsDefinitionName } =
|
|
1451
|
+
const { actionMenuDefinitionName, actionMenuActionsDefinitionName } = determineActionDefinitionNames(customActionDefinitionName);
|
|
1312
1452
|
// Prepare submenu entries to be processed
|
|
1313
1453
|
const menu = extension[ux_specification_types_1.TemplatePropertyName.Menu] ?? [];
|
|
1314
1454
|
const properties = {};
|
|
@@ -1641,8 +1781,8 @@ function importManifestBasedActionMenuSettingsOfReference(importActionParams, de
|
|
|
1641
1781
|
/**
|
|
1642
1782
|
* Determines the strategy type for action settings based on the provided data type and action type.
|
|
1643
1783
|
*
|
|
1644
|
-
* @param {string} [dataType
|
|
1645
|
-
* @param {string} [actionType
|
|
1784
|
+
* @param {string} [dataType] - The data type associated with the action settings. Defaults to an empty string.
|
|
1785
|
+
* @param {string} [actionType] - The action type within the context of the action settings. Defaults to an empty string.
|
|
1646
1786
|
* @returns {DataFieldStrategyTypes} The corresponding strategy type for the given data type and action type.
|
|
1647
1787
|
*/
|
|
1648
1788
|
function determineActionStrategyType(dataType = '', actionType = '') {
|
|
@@ -1711,6 +1851,63 @@ function addCustomFieldDefinition(appSchema, v4Page, fieldGroupInManifest, logge
|
|
|
1711
1851
|
function addManifestPathsToProperties(appSchema, definitionName, definition, pathParams, handleRelative = false) {
|
|
1712
1852
|
(0, utils_1.addManifestPathsToProperties)([v4controls, pages], appSchema, definitionName, definition, pathParams, undefined, handleRelative);
|
|
1713
1853
|
}
|
|
1854
|
+
/**
|
|
1855
|
+
* Determines whether an entity set or navigation target is insertable based on its annotations.
|
|
1856
|
+
*
|
|
1857
|
+
* When navigationPath is provided:
|
|
1858
|
+
* 1. Checks NavigationRestrictions.RestrictedProperties on the source EntitySet
|
|
1859
|
+
* 2. Resolves the target EntitySet via navigationPropertyBinding
|
|
1860
|
+
* 3. Checks InsertRestrictions on the target EntitySet
|
|
1861
|
+
* 4. Both must allow insertion for the function to return true
|
|
1862
|
+
*
|
|
1863
|
+
* When navigationPath is not provided:
|
|
1864
|
+
* 1. Checks InsertRestrictions on the given EntitySet
|
|
1865
|
+
*
|
|
1866
|
+
* For Path-based (dynamic) Insertable values, always returns true (shows creationMode).
|
|
1867
|
+
*
|
|
1868
|
+
* @param entitySet - The source entity set (where navigation starts from, or the entity set being checked)
|
|
1869
|
+
* @param navigationPath - Optional navigation property path (e.g., "_Booking", "to_Items")
|
|
1870
|
+
* @returns A boolean indicating whether insertion is allowed. Returns true if the insertability is Path-based (dynamic) or undefined.
|
|
1871
|
+
*/
|
|
1872
|
+
function getInsertableForEntitySet(entitySet, navigationPath) {
|
|
1873
|
+
// Check NavigationRestrictions if navigation path provided
|
|
1874
|
+
// Default: allow if not specified (Path-based values are also treated as true)
|
|
1875
|
+
let navigationInsertable = true;
|
|
1876
|
+
if (navigationPath) {
|
|
1877
|
+
const navRestrictions = entitySet?.annotations?.Capabilities?.NavigationRestrictions;
|
|
1878
|
+
if (navRestrictions?.RestrictedProperties) {
|
|
1879
|
+
const restriction = navRestrictions.RestrictedProperties.find((prop) => prop.NavigationProperty?.value === navigationPath);
|
|
1880
|
+
if (restriction?.InsertRestrictions?.Insertable !== undefined) {
|
|
1881
|
+
const navInsertable = restriction.InsertRestrictions.Insertable;
|
|
1882
|
+
if (typeof navInsertable === 'boolean') {
|
|
1883
|
+
navigationInsertable = navInsertable;
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
// Resolve target EntitySet via navigationPropertyBinding
|
|
1888
|
+
const targetEntitySet = entitySet?.navigationPropertyBinding?.[navigationPath];
|
|
1889
|
+
if (targetEntitySet && '_type' in targetEntitySet && targetEntitySet._type === 'EntitySet') {
|
|
1890
|
+
// Default: allow if not specified (Path-based values are also treated as true)
|
|
1891
|
+
let targetEntitySetInsertable = true;
|
|
1892
|
+
const targetRestriction = targetEntitySet.annotations?.Capabilities?.InsertRestrictions?.Insertable;
|
|
1893
|
+
if (typeof targetRestriction === 'boolean') {
|
|
1894
|
+
targetEntitySetInsertable = targetRestriction;
|
|
1895
|
+
}
|
|
1896
|
+
// Both Navigation and Target EntitySet must allow insertion
|
|
1897
|
+
return navigationInsertable && targetEntitySetInsertable;
|
|
1898
|
+
}
|
|
1899
|
+
// If no targetEntitySet found, only check navigation restrictions
|
|
1900
|
+
return navigationInsertable;
|
|
1901
|
+
}
|
|
1902
|
+
// No navigation path: check EntitySet-level InsertRestrictions
|
|
1903
|
+
// Default: allow if not specified (Path-based values are also treated as true)
|
|
1904
|
+
let entitySetInsertable = true;
|
|
1905
|
+
const entitySetRestriction = entitySet?.annotations?.Capabilities?.InsertRestrictions?.Insertable;
|
|
1906
|
+
if (typeof entitySetRestriction === 'boolean') {
|
|
1907
|
+
entitySetInsertable = entitySetRestriction;
|
|
1908
|
+
}
|
|
1909
|
+
return entitySetInsertable;
|
|
1910
|
+
}
|
|
1714
1911
|
/**
|
|
1715
1912
|
* Returns the manifest path for a given page based on the provided path parameters.
|
|
1716
1913
|
*
|