@sapui5/sap.fe.core 1.102.3 → 1.105.0
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/package.json +6 -6
- package/src/sap/fe/core/.library +1 -1
- package/src/sap/fe/core/ActionRuntime.js +120 -0
- package/src/sap/fe/core/ActionRuntime.ts +108 -0
- package/src/sap/fe/core/AppComponent.js +81 -35
- package/src/sap/fe/core/AppComponent.ts +68 -44
- package/src/sap/fe/core/AppStateHandler.js +82 -70
- package/src/sap/fe/core/AppStateHandler.ts +32 -37
- package/src/sap/fe/core/BaseController.js +12 -10
- package/src/sap/fe/core/BaseController.ts +15 -13
- package/src/sap/fe/core/CommonUtils.js +291 -218
- package/src/sap/fe/core/CommonUtils.ts +315 -251
- package/src/sap/fe/core/ExtensionAPI.js +25 -28
- package/src/sap/fe/core/ExtensionAPI.ts +36 -38
- package/src/sap/fe/core/PageController.js +5 -5
- package/src/sap/fe/core/PageController.ts +4 -5
- package/src/sap/fe/core/TemplateComponent.js +21 -10
- package/src/sap/fe/core/TemplateComponent.ts +9 -6
- package/src/sap/fe/core/TemplateModel.js +2 -2
- package/src/sap/fe/core/TemplateModel.ts +1 -1
- package/src/sap/fe/core/buildingBlocks/AttributeModel.js +11 -3
- package/src/sap/fe/core/buildingBlocks/AttributeModel.ts +8 -2
- package/src/sap/fe/core/buildingBlocks/BuildingBlock.js +197 -43
- package/src/sap/fe/core/buildingBlocks/BuildingBlock.ts +164 -24
- package/src/sap/fe/core/buildingBlocks/BuildingBlockFormatter.js +14 -0
- package/src/sap/fe/core/buildingBlocks/BuildingBlockFormatter.ts +5 -0
- package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime.js +609 -230
- package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime.ts +275 -128
- package/src/sap/fe/core/buildingBlocks/TraceInfo.js +30 -30
- package/src/sap/fe/core/buildingBlocks/TraceInfo.ts +32 -29
- package/src/sap/fe/core/controllerextensions/BusyLocker.js +1 -1
- package/src/sap/fe/core/controllerextensions/EditFlow.js +761 -700
- package/src/sap/fe/core/controllerextensions/EditFlow.ts +478 -514
- package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.js +10 -10
- package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.ts +10 -10
- package/src/sap/fe/core/controllerextensions/InternalEditFlow.js +104 -75
- package/src/sap/fe/core/controllerextensions/InternalEditFlow.ts +71 -79
- package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.js +68 -68
- package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.ts +76 -76
- package/src/sap/fe/core/controllerextensions/InternalRouting.js +162 -102
- package/src/sap/fe/core/controllerextensions/InternalRouting.ts +177 -121
- package/src/sap/fe/core/controllerextensions/KPIManagement.js +67 -69
- package/src/sap/fe/core/controllerextensions/KPIManagement.ts +106 -123
- package/src/sap/fe/core/controllerextensions/MassEdit.js +10 -10
- package/src/sap/fe/core/controllerextensions/MassEdit.ts +20 -27
- package/src/sap/fe/core/controllerextensions/MessageHandler.js +21 -13
- package/src/sap/fe/core/controllerextensions/MessageHandler.ts +21 -14
- package/src/sap/fe/core/controllerextensions/PageReady.js +98 -26
- package/src/sap/fe/core/controllerextensions/PageReady.ts +98 -34
- package/src/sap/fe/core/controllerextensions/Paginator.js +31 -32
- package/src/sap/fe/core/controllerextensions/Paginator.ts +33 -34
- package/src/sap/fe/core/controllerextensions/Placeholder.js +5 -7
- package/src/sap/fe/core/controllerextensions/Placeholder.ts +12 -14
- package/src/sap/fe/core/controllerextensions/Routing.js +11 -12
- package/src/sap/fe/core/controllerextensions/Routing.ts +12 -13
- package/src/sap/fe/core/controllerextensions/RoutingListener.js +1 -1
- package/src/sap/fe/core/controllerextensions/Share.js +171 -140
- package/src/sap/fe/core/controllerextensions/Share.ts +117 -118
- package/src/sap/fe/core/controllerextensions/SideEffects.js +47 -51
- package/src/sap/fe/core/controllerextensions/SideEffects.ts +56 -60
- package/src/sap/fe/core/controllerextensions/ViewState.js +201 -132
- package/src/sap/fe/core/controllerextensions/ViewState.ts +141 -148
- package/src/sap/fe/core/controllerextensions/collaboration/ActivityBase.js +5 -5
- package/src/sap/fe/core/controllerextensions/collaboration/ActivityBase.ts +8 -7
- package/src/sap/fe/core/controllerextensions/collaboration/ActivitySync.js +13 -12
- package/src/sap/fe/core/controllerextensions/collaboration/ActivitySync.ts +17 -20
- package/src/sap/fe/core/controllerextensions/collaboration/CollaborationCommon.js +13 -12
- package/src/sap/fe/core/controllerextensions/collaboration/CollaborationCommon.ts +15 -15
- package/src/sap/fe/core/controllerextensions/collaboration/Manage.js +57 -18
- package/src/sap/fe/core/controllerextensions/collaboration/Manage.ts +60 -28
- package/src/sap/fe/core/controllerextensions/collaboration/ManageDialog.fragment.xml +29 -21
- package/src/sap/fe/core/controllerextensions/editFlow/TransactionHelper.js +1424 -940
- package/src/sap/fe/core/controllerextensions/editFlow/TransactionHelper.ts +799 -836
- package/src/sap/fe/core/controllerextensions/editFlow/draft.js +410 -377
- package/src/sap/fe/core/controllerextensions/editFlow/draft.ts +275 -358
- package/src/sap/fe/core/controllerextensions/editFlow/draftDataLossPopup.js +309 -0
- package/src/sap/fe/core/controllerextensions/editFlow/draftDataLossPopup.ts +320 -0
- package/src/sap/fe/core/controllerextensions/editFlow/operations.js +752 -579
- package/src/sap/fe/core/controllerextensions/editFlow/operations.ts +631 -599
- package/src/sap/fe/core/controllerextensions/editFlow/sticky.js +92 -74
- package/src/sap/fe/core/controllerextensions/editFlow/sticky.ts +49 -52
- package/src/sap/fe/core/controllerextensions/messageHandler/messageHandling.js +78 -41
- package/src/sap/fe/core/controllerextensions/messageHandler/messageHandling.ts +110 -84
- package/src/sap/fe/core/controllerextensions/routing/RouterProxy.js +69 -81
- package/src/sap/fe/core/controllerextensions/routing/RouterProxy.ts +64 -73
- package/src/sap/fe/core/controls/ActionParameterDialog.fragment.xml +18 -2
- package/src/sap/fe/core/controls/ActionParameterDialogFieldValueHelp.fragment.xml +35 -0
- package/src/sap/fe/core/controls/ActionParameterDialogValueHelp.fragment.xml +25 -24
- package/src/sap/fe/core/controls/Any.js +9 -5
- package/src/sap/fe/core/controls/Any.ts +10 -4
- package/src/sap/fe/core/controls/CommandExecution.js +12 -26
- package/src/sap/fe/core/controls/CommandExecution.ts +11 -25
- package/src/sap/fe/core/controls/ConditionalWrapper.js +3 -3
- package/src/sap/fe/core/controls/ConditionalWrapper.ts +3 -3
- package/src/sap/fe/core/controls/CustomFilterFieldContentWrapper.js +26 -26
- package/src/sap/fe/core/controls/CustomFilterFieldContentWrapper.ts +25 -24
- package/src/sap/fe/core/controls/CustomQuickViewPage.js +3 -3
- package/src/sap/fe/core/controls/CustomQuickViewPage.ts +2 -2
- package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.js +3 -3
- package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.ts +5 -5
- package/src/sap/fe/core/controls/FieldWrapper.js +3 -3
- package/src/sap/fe/core/controls/FieldWrapper.ts +3 -3
- package/src/sap/fe/core/controls/FileWrapper.js +9 -4
- package/src/sap/fe/core/controls/FileWrapper.ts +16 -12
- package/src/sap/fe/core/controls/FilterBar.js +7 -3
- package/src/sap/fe/core/controls/FilterBar.ts +13 -9
- package/src/sap/fe/core/controls/FormElementWrapper.js +2 -2
- package/src/sap/fe/core/controls/FormElementWrapper.ts +2 -2
- package/src/sap/fe/core/controls/MassEditSelect.js +1 -1
- package/src/sap/fe/core/controls/MassEditSelect.ts +0 -4
- package/src/sap/fe/core/controls/MultiValueParameterDelegate.js +1 -1
- package/src/sap/fe/core/controls/NonComputedVisibleKeyFieldsDialog.fragment.xml +44 -19
- package/src/sap/fe/core/controls/filterbar/FilterContainer.js +2 -2
- package/src/sap/fe/core/controls/filterbar/VisualFilter.js +17 -13
- package/src/sap/fe/core/controls/filterbar/VisualFilter.ts +20 -22
- package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.js +4 -4
- package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.ts +8 -8
- package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.js +49 -49
- package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.ts +54 -54
- package/src/sap/fe/core/controls/massEdit/MassEditDialog.fragment.xml +8 -2
- package/src/sap/fe/core/controls/massEdit/MassEditField.fragment.xml +22 -35
- package/src/sap/fe/core/controls/massEdit/MassEditHandlers.js +89 -88
- package/src/sap/fe/core/controls/massEdit/MassEditHandlers.ts +107 -106
- package/src/sap/fe/core/converters/ConverterContext.js +48 -34
- package/src/sap/fe/core/converters/ConverterContext.ts +81 -67
- package/src/sap/fe/core/converters/ManifestSettings.js +1 -1
- package/src/sap/fe/core/converters/ManifestSettings.ts +18 -15
- package/src/sap/fe/core/converters/ManifestWrapper.js +59 -45
- package/src/sap/fe/core/converters/ManifestWrapper.ts +55 -45
- package/src/sap/fe/core/converters/MetaModelConverter.js +74 -40
- package/src/sap/fe/core/converters/MetaModelConverter.ts +176 -140
- package/src/sap/fe/core/converters/TemplateConverter.js +21 -20
- package/src/sap/fe/core/converters/TemplateConverter.ts +27 -24
- package/src/sap/fe/core/converters/annotations/DataField.js +58 -35
- package/src/sap/fe/core/converters/annotations/DataField.ts +102 -76
- package/src/sap/fe/core/converters/common/AnnotationConverter.js +1956 -1494
- package/src/sap/fe/core/converters/controls/Common/Action.js +78 -51
- package/src/sap/fe/core/converters/controls/Common/Action.ts +87 -52
- package/src/sap/fe/core/converters/controls/Common/Chart.js +22 -16
- package/src/sap/fe/core/converters/controls/Common/Chart.ts +42 -43
- package/src/sap/fe/core/converters/controls/Common/Criticality.js +3 -3
- package/src/sap/fe/core/converters/controls/Common/Criticality.ts +4 -4
- package/src/sap/fe/core/converters/controls/Common/DataVisualization.js +65 -29
- package/src/sap/fe/core/converters/controls/Common/DataVisualization.ts +93 -62
- package/src/sap/fe/core/converters/controls/Common/Form.js +31 -31
- package/src/sap/fe/core/converters/controls/Common/Form.ts +46 -57
- package/src/sap/fe/core/converters/controls/Common/KPI.js +11 -11
- package/src/sap/fe/core/converters/controls/Common/KPI.ts +49 -52
- package/src/sap/fe/core/converters/controls/Common/Table.js +251 -264
- package/src/sap/fe/core/converters/controls/Common/Table.ts +344 -370
- package/src/sap/fe/core/converters/controls/Common/table/StandardActions.js +119 -119
- package/src/sap/fe/core/converters/controls/Common/table/StandardActions.ts +147 -144
- package/src/sap/fe/core/converters/controls/ListReport/FilterBar.js +89 -59
- package/src/sap/fe/core/converters/controls/ListReport/FilterBar.ts +118 -71
- package/src/sap/fe/core/converters/controls/ListReport/VisualFilters.js +28 -26
- package/src/sap/fe/core/converters/controls/ListReport/VisualFilters.ts +46 -43
- package/src/sap/fe/core/converters/controls/ObjectPage/Avatar.js +9 -9
- package/src/sap/fe/core/converters/controls/ObjectPage/Avatar.ts +14 -13
- package/src/sap/fe/core/converters/controls/ObjectPage/HeaderFacet.js +131 -95
- package/src/sap/fe/core/converters/controls/ObjectPage/HeaderFacet.ts +123 -87
- package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.js +98 -87
- package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.ts +121 -117
- package/src/sap/fe/core/converters/helpers/Aggregation.js +2 -4
- package/src/sap/fe/core/converters/helpers/Aggregation.ts +12 -15
- package/src/sap/fe/core/converters/helpers/BindingHelper.js +31 -31
- package/src/sap/fe/core/converters/helpers/BindingHelper.ts +30 -29
- package/src/sap/fe/core/converters/helpers/ConfigurableObject.js +8 -6
- package/src/sap/fe/core/converters/helpers/ConfigurableObject.ts +18 -10
- package/src/sap/fe/core/converters/helpers/DataFieldHelper.js +136 -0
- package/src/sap/fe/core/converters/helpers/DataFieldHelper.ts +139 -0
- package/src/sap/fe/core/converters/helpers/ID.js +48 -46
- package/src/sap/fe/core/converters/helpers/ID.ts +26 -25
- package/src/sap/fe/core/converters/helpers/IssueManager.js +1 -1
- package/src/sap/fe/core/converters/helpers/Key.js +7 -7
- package/src/sap/fe/core/converters/helpers/Key.ts +7 -7
- package/src/sap/fe/core/converters/helpers/SelectionVariantHelper.js +1 -1
- package/src/sap/fe/core/converters/helpers/SelectionVariantHelper.ts +4 -5
- package/src/sap/fe/core/converters/objectPage/FormMenuActions.js +6 -6
- package/src/sap/fe/core/converters/objectPage/FormMenuActions.ts +10 -10
- package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.js +53 -75
- package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.ts +59 -90
- package/src/sap/fe/core/converters/templates/ListReportConverter.js +58 -57
- package/src/sap/fe/core/converters/templates/ListReportConverter.ts +93 -86
- package/src/sap/fe/core/converters/templates/ObjectPageConverter.js +58 -44
- package/src/sap/fe/core/converters/templates/ObjectPageConverter.ts +87 -80
- package/src/sap/fe/core/designtime/AppComponent.designtime.js +4 -4
- package/src/sap/fe/core/designtime/AppComponent.designtime.ts +4 -4
- package/src/sap/fe/core/formatters/CollaborationFormatter.js +2 -2
- package/src/sap/fe/core/formatters/CollaborationFormatter.ts +3 -3
- package/src/sap/fe/core/formatters/FPMFormatter.js +5 -5
- package/src/sap/fe/core/formatters/FPMFormatter.ts +10 -10
- package/src/sap/fe/core/formatters/KPIFormatter.js +7 -7
- package/src/sap/fe/core/formatters/KPIFormatter.ts +10 -10
- package/src/sap/fe/core/formatters/StandardFormatter.js +96 -0
- package/src/sap/fe/core/formatters/StandardFormatter.ts +70 -0
- package/src/sap/fe/core/formatters/TableFormatter.js +11 -11
- package/src/sap/fe/core/formatters/TableFormatter.ts +12 -12
- package/src/sap/fe/core/formatters/TableFormatterTypes.js +1 -1
- package/src/sap/fe/core/formatters/ValueFormatter.js +8 -8
- package/src/sap/fe/core/formatters/ValueFormatter.ts +9 -9
- package/src/sap/fe/core/fpm/Component.js +33 -7
- package/src/sap/fe/core/fpm/Component.ts +14 -0
- package/src/sap/fe/core/helpers/AnnotationEnum.js +1 -1
- package/src/sap/fe/core/helpers/AppStartupHelper.js +19 -18
- package/src/sap/fe/core/helpers/AppStartupHelper.ts +41 -43
- package/src/sap/fe/core/helpers/BindingToolkit.js +1836 -0
- package/src/sap/fe/core/helpers/{BindingExpression.ts → BindingToolkit.ts} +397 -270
- package/src/sap/fe/core/helpers/ClassSupport.js +49 -12
- package/src/sap/fe/core/helpers/ClassSupport.ts +37 -10
- package/src/sap/fe/core/helpers/DynamicAnnotationPathHelper.js +2 -2
- package/src/sap/fe/core/helpers/DynamicAnnotationPathHelper.ts +1 -1
- package/src/sap/fe/core/helpers/EditState.js +1 -6
- package/src/sap/fe/core/helpers/EditState.ts +5 -10
- package/src/sap/fe/core/helpers/ExcelFormatHelper.js +2 -2
- package/src/sap/fe/core/helpers/ExcelFormatHelper.ts +4 -4
- package/src/sap/fe/core/helpers/FPMHelper.js +1 -1
- package/src/sap/fe/core/helpers/FPMHelper.ts +2 -2
- package/src/sap/fe/core/helpers/KeepAliveHelper.js +31 -31
- package/src/sap/fe/core/helpers/KeepAliveHelper.ts +52 -56
- package/src/sap/fe/core/helpers/KeepAliveRefreshTypes.js +1 -1
- package/src/sap/fe/core/helpers/MassEditHelper.js +306 -280
- package/src/sap/fe/core/helpers/MassEditHelper.ts +380 -360
- package/src/sap/fe/core/helpers/MessageStrip.js +81 -0
- package/src/sap/fe/core/helpers/MessageStrip.ts +79 -0
- package/src/sap/fe/core/helpers/ModelHelper.js +25 -25
- package/src/sap/fe/core/helpers/ModelHelper.ts +34 -32
- package/src/sap/fe/core/helpers/PasteHelper.js +3 -10
- package/src/sap/fe/core/helpers/PasteHelper.ts +20 -25
- package/src/sap/fe/core/helpers/SemanticDateOperators.js +1 -1
- package/src/sap/fe/core/helpers/SemanticDateOperators.ts +11 -11
- package/src/sap/fe/core/helpers/SemanticKeyHelper.js +3 -3
- package/src/sap/fe/core/helpers/SemanticKeyHelper.ts +8 -8
- package/src/sap/fe/core/helpers/StableIdHelper.js +12 -12
- package/src/sap/fe/core/helpers/StableIdHelper.ts +12 -12
- package/src/sap/fe/core/helpers/Synchronization.js +1 -1
- package/src/sap/fe/core/helpers/ToES6Promise.js +32 -0
- package/src/sap/fe/core/helpers/ToES6Promise.ts +19 -0
- package/src/sap/fe/core/jsx-runtime/Fragment.js +16 -0
- package/src/sap/fe/core/jsx-runtime/Fragment.ts +3 -0
- package/src/sap/fe/core/jsx-runtime/ViewLoader.js +109 -0
- package/src/sap/fe/core/jsx-runtime/ViewLoader.tsx +47 -0
- package/src/sap/fe/core/jsx-runtime/jsx-control.js +110 -0
- package/src/sap/fe/core/jsx-runtime/jsx-control.ts +92 -0
- package/src/sap/fe/core/jsx-runtime/jsx-xml.js +105 -0
- package/src/sap/fe/core/jsx-runtime/jsx-xml.ts +89 -0
- package/src/sap/fe/core/jsx-runtime/jsx.js +12 -90
- package/src/sap/fe/core/jsx-runtime/jsx.ts +24 -85
- package/src/sap/fe/core/jsx-runtime/jsxs.js +1 -1
- package/src/sap/fe/core/jsx-runtime/useMDXComponents.js +179 -0
- package/src/sap/fe/core/jsx-runtime/useMDXComponents.tsx +150 -0
- package/src/sap/fe/core/library.js +42 -3
- package/src/sap/fe/core/library.support.js +1 -1
- package/src/sap/fe/core/library.ts +38 -0
- package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.js +3 -3
- package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.ts +2 -2
- package/src/sap/fe/core/messagebundle.properties +39 -67
- package/src/sap/fe/core/messagebundle_ar.properties +27 -44
- package/src/sap/fe/core/messagebundle_bg.properties +27 -44
- package/src/sap/fe/core/messagebundle_ca.properties +27 -44
- package/src/sap/fe/core/messagebundle_cs.properties +27 -44
- package/src/sap/fe/core/messagebundle_cy.properties +26 -43
- package/src/sap/fe/core/messagebundle_da.properties +27 -44
- package/src/sap/fe/core/messagebundle_de.properties +25 -42
- package/src/sap/fe/core/messagebundle_el.properties +28 -45
- package/src/sap/fe/core/messagebundle_en.properties +27 -44
- package/src/sap/fe/core/messagebundle_en_GB.properties +27 -44
- package/src/sap/fe/core/messagebundle_en_US_sappsd.properties +25 -42
- package/src/sap/fe/core/messagebundle_en_US_saprigi.properties +26 -40
- package/src/sap/fe/core/messagebundle_en_US_saptrc.properties +25 -42
- package/src/sap/fe/core/messagebundle_es.properties +27 -44
- package/src/sap/fe/core/messagebundle_es_MX.properties +27 -44
- package/src/sap/fe/core/messagebundle_et.properties +27 -44
- package/src/sap/fe/core/messagebundle_fi.properties +27 -44
- package/src/sap/fe/core/messagebundle_fr.properties +26 -43
- package/src/sap/fe/core/messagebundle_fr_CA.properties +25 -42
- package/src/sap/fe/core/messagebundle_hi.properties +27 -44
- package/src/sap/fe/core/messagebundle_hr.properties +27 -44
- package/src/sap/fe/core/messagebundle_hu.properties +27 -44
- package/src/sap/fe/core/messagebundle_id.properties +27 -44
- package/src/sap/fe/core/messagebundle_it.properties +43 -60
- package/src/sap/fe/core/messagebundle_iw.properties +27 -44
- package/src/sap/fe/core/messagebundle_ja.properties +27 -44
- package/src/sap/fe/core/messagebundle_kk.properties +27 -44
- package/src/sap/fe/core/messagebundle_ko.properties +30 -47
- package/src/sap/fe/core/messagebundle_lt.properties +27 -44
- package/src/sap/fe/core/messagebundle_lv.properties +27 -44
- package/src/sap/fe/core/messagebundle_ms.properties +27 -44
- package/src/sap/fe/core/messagebundle_nl.properties +29 -46
- package/src/sap/fe/core/messagebundle_no.properties +27 -44
- package/src/sap/fe/core/messagebundle_pl.properties +28 -45
- package/src/sap/fe/core/messagebundle_pt.properties +28 -45
- package/src/sap/fe/core/messagebundle_pt_PT.properties +27 -44
- package/src/sap/fe/core/messagebundle_ro.properties +27 -44
- package/src/sap/fe/core/messagebundle_ru.properties +27 -44
- package/src/sap/fe/core/messagebundle_sh.properties +27 -44
- package/src/sap/fe/core/messagebundle_sk.properties +27 -44
- package/src/sap/fe/core/messagebundle_sl.properties +27 -44
- package/src/sap/fe/core/messagebundle_sv.properties +27 -44
- package/src/sap/fe/core/messagebundle_th.properties +25 -42
- package/src/sap/fe/core/messagebundle_tr.properties +27 -44
- package/src/sap/fe/core/messagebundle_uk.properties +27 -44
- package/src/sap/fe/core/messagebundle_vi.properties +27 -44
- package/src/sap/fe/core/messagebundle_zh_CN.properties +27 -44
- package/src/sap/fe/core/messagebundle_zh_TW.properties +27 -44
- package/src/sap/fe/core/services/AsyncComponentServiceFactory.js +3 -3
- package/src/sap/fe/core/services/AsyncComponentServiceFactory.ts +5 -5
- package/src/sap/fe/core/services/CacheHandlerServiceFactory.js +103 -75
- package/src/sap/fe/core/services/CacheHandlerServiceFactory.ts +72 -73
- package/src/sap/fe/core/services/EnvironmentServiceFactory.js +2 -2
- package/src/sap/fe/core/services/EnvironmentServiceFactory.ts +3 -2
- package/src/sap/fe/core/services/NavigationServiceFactory.js +62 -50
- package/src/sap/fe/core/services/NavigationServiceFactory.ts +63 -52
- package/src/sap/fe/core/services/ResourceModelServiceFactory.js +3 -3
- package/src/sap/fe/core/services/ResourceModelServiceFactory.ts +4 -4
- package/src/sap/fe/core/services/RoutingServiceFactory.js +56 -56
- package/src/sap/fe/core/services/RoutingServiceFactory.ts +67 -65
- package/src/sap/fe/core/services/ShellServicesFactory.js +93 -77
- package/src/sap/fe/core/services/ShellServicesFactory.ts +95 -82
- package/src/sap/fe/core/services/SideEffectsServiceFactory.js +64 -64
- package/src/sap/fe/core/services/SideEffectsServiceFactory.ts +102 -92
- package/src/sap/fe/core/services/TemplatedViewServiceFactory.js +232 -200
- package/src/sap/fe/core/services/TemplatedViewServiceFactory.ts +145 -142
- package/src/sap/fe/core/services/view/TemplatingErrorPage.controller.js +2 -2
- package/src/sap/fe/core/support/AnnotationIssue.support.js +1 -1
- package/src/sap/fe/core/support/CollectionFacetMissingID.support.js +1 -1
- package/src/sap/fe/core/support/CollectionFacetUnsupportedLevel.support.js +1 -1
- package/src/sap/fe/core/support/CommonHelper.js +3 -2
- package/src/sap/fe/core/support/CommonHelper.ts +9 -13
- package/src/sap/fe/core/support/Diagnostics.js +1 -1
- package/src/sap/fe/core/support/Diagnostics.ts +5 -5
- package/src/sap/fe/core/support/InvalidAnnotationColumnKey.support.js +1 -1
- package/src/sap/fe/core/templating/CommonFormatters.js +85 -0
- package/src/sap/fe/core/templating/CommonFormatters.ts +90 -0
- package/src/sap/fe/core/templating/CriticalityFormatters.js +31 -31
- package/src/sap/fe/core/templating/CriticalityFormatters.ts +42 -40
- package/src/sap/fe/core/templating/DataFieldFormatters.js +8 -8
- package/src/sap/fe/core/templating/DataFieldFormatters.ts +13 -10
- package/src/sap/fe/core/templating/DataModelPathHelper.js +23 -15
- package/src/sap/fe/core/templating/DataModelPathHelper.ts +47 -34
- package/src/sap/fe/core/templating/DisplayModeFormatter.js +1 -1
- package/src/sap/fe/core/templating/DisplayModeFormatter.ts +2 -3
- package/src/sap/fe/core/templating/EntitySetHelper.js +7 -7
- package/src/sap/fe/core/templating/EntitySetHelper.ts +6 -8
- package/src/sap/fe/core/templating/FieldControlHelper.js +35 -34
- package/src/sap/fe/core/templating/FieldControlHelper.ts +29 -46
- package/src/sap/fe/core/templating/FilterHelper.js +18 -17
- package/src/sap/fe/core/templating/FilterHelper.ts +18 -18
- package/src/sap/fe/core/templating/FilterTemplating.js +1 -1
- package/src/sap/fe/core/templating/FilterTemplating.ts +3 -3
- package/src/sap/fe/core/templating/PropertyFormatters.js +7 -7
- package/src/sap/fe/core/templating/PropertyFormatters.ts +21 -19
- package/src/sap/fe/core/templating/PropertyHelper.js +25 -25
- package/src/sap/fe/core/templating/PropertyHelper.ts +25 -26
- package/src/sap/fe/core/templating/UIFormatters.js +152 -95
- package/src/sap/fe/core/templating/UIFormatters.ts +202 -128
- package/src/sap/fe/core/type/DateTimeWithTimezone.js +2 -2
- package/src/sap/fe/core/type/Email.js +3 -3
- package/src/sap/fe/core/type/Email.ts +2 -2
- package/src/sap/fe/core/helpers/BindingExpression.js +0 -1732
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Log from "sap/base/Log";
|
|
2
2
|
import mergeObjects from "sap/base/util/merge";
|
|
3
|
-
import AppComponent from "sap/fe/core/AppComponent";
|
|
3
|
+
import type AppComponent from "sap/fe/core/AppComponent";
|
|
4
4
|
import draft from "sap/fe/core/controllerextensions/editFlow/draft";
|
|
5
5
|
import {
|
|
6
6
|
defineUI5Class,
|
|
@@ -12,28 +12,27 @@ import {
|
|
|
12
12
|
} from "sap/fe/core/helpers/ClassSupport";
|
|
13
13
|
import KeepAliveHelper from "sap/fe/core/helpers/KeepAliveHelper";
|
|
14
14
|
import ModelHelper from "sap/fe/core/helpers/ModelHelper";
|
|
15
|
-
import PageController from "sap/fe/core/PageController";
|
|
16
|
-
import { NavigationService } from "sap/fe/core/services/NavigationServiceFactory";
|
|
15
|
+
import type PageController from "sap/fe/core/PageController";
|
|
16
|
+
import type { NavigationService } from "sap/fe/core/services/NavigationServiceFactory";
|
|
17
17
|
import SelectionVariant from "sap/fe/navigation/SelectionVariant";
|
|
18
|
-
import Dialog from "sap/m/Dialog";
|
|
18
|
+
import type Dialog from "sap/m/Dialog";
|
|
19
19
|
import Core from "sap/ui/core/Core";
|
|
20
20
|
import Fragment from "sap/ui/core/Fragment";
|
|
21
21
|
import ControllerExtension from "sap/ui/core/mvc/ControllerExtension";
|
|
22
22
|
import OverrideExecution from "sap/ui/core/mvc/OverrideExecution";
|
|
23
|
-
import View from "sap/ui/core/mvc/View";
|
|
23
|
+
import type View from "sap/ui/core/mvc/View";
|
|
24
24
|
import XMLPreprocessor from "sap/ui/core/util/XMLPreprocessor";
|
|
25
25
|
import XMLTemplateProcessor from "sap/ui/core/XMLTemplateProcessor";
|
|
26
|
-
import Context from "sap/ui/model/Context";
|
|
26
|
+
import type Context from "sap/ui/model/Context";
|
|
27
27
|
import JSONModel from "sap/ui/model/json/JSONModel";
|
|
28
|
-
import ODataMetaModel from "sap/ui/model/odata/v4/ODataMetaModel";
|
|
29
|
-
import { CoreEx } from "types/extension_types";
|
|
28
|
+
import type ODataMetaModel from "sap/ui/model/odata/v4/ODataMetaModel";
|
|
29
|
+
import type { CoreEx } from "types/extension_types";
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* {@link sap.ui.core.mvc.ControllerExtension Controller extension}
|
|
33
33
|
*
|
|
34
34
|
* @namespace
|
|
35
35
|
* @alias sap.fe.core.controllerextensions.InternalInternalBasedNavigation
|
|
36
|
-
*
|
|
37
36
|
* @private
|
|
38
37
|
* @since 1.84.0
|
|
39
38
|
*/
|
|
@@ -57,10 +56,10 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
57
56
|
* If semantic object mapping is provided, this is also applied to the selection variant after the adaptation by a consumer.
|
|
58
57
|
* This takes care of removing any technical parameters and determines if an explace or inplace navigation should take place.
|
|
59
58
|
*
|
|
60
|
-
* @param
|
|
61
|
-
* @param
|
|
62
|
-
* @param
|
|
63
|
-
* @param
|
|
59
|
+
* @param sSemanticObject Semantic object for the target app
|
|
60
|
+
* @param sAction Action for the target app
|
|
61
|
+
* @param [mNavigationParameters] Optional parameters to be passed to the external navigation
|
|
62
|
+
* @param [mNavigationParameters.navigationContexts] Uses one of the following to be passed to the intent:
|
|
64
63
|
* a single instance of {@link sap.ui.model.odata.v4.Context}
|
|
65
64
|
* multiple instances of {@link sap.ui.model.odata.v4.Context}
|
|
66
65
|
* an object or an array of objects
|
|
@@ -73,11 +72,11 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
73
72
|
* },
|
|
74
73
|
* metaPath: "/SalesOrderManage"
|
|
75
74
|
* }
|
|
76
|
-
* @param
|
|
77
|
-
* @param
|
|
78
|
-
* @param
|
|
79
|
-
* @param
|
|
80
|
-
|
|
75
|
+
* @param [mNavigationParameters.semanticObjectMapping] String representation of the SemanticObjectMapping or SemanticObjectMapping that applies to this navigation
|
|
76
|
+
* @param [mNavigationParameters.defaultRefreshStrategy] Default refresh strategy to be used in case no refresh strategy is specified for the intent in the view.
|
|
77
|
+
* @param [mNavigationParameters.refreshStrategies]
|
|
78
|
+
* @param [mNavigationParameters.additionalNavigationParameters] Additional navigation parameters configured in the crossAppNavigation outbound parameters.
|
|
79
|
+
*/
|
|
81
80
|
@publicExtension()
|
|
82
81
|
@finalExtension()
|
|
83
82
|
navigate(
|
|
@@ -112,7 +111,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
112
111
|
|
|
113
112
|
if (sSemanticObject && sAction) {
|
|
114
113
|
let aSemanticAttributes: any[] = [],
|
|
115
|
-
oSelectionVariant = new SelectionVariant();
|
|
114
|
+
oSelectionVariant: any = new SelectionVariant();
|
|
116
115
|
// 1. get SemanticAttributes for navigation
|
|
117
116
|
if (aNavigationContexts && aNavigationContexts.length) {
|
|
118
117
|
aNavigationContexts.forEach((oNavigationContext: any) => {
|
|
@@ -193,15 +192,15 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
193
192
|
const onError = function () {
|
|
194
193
|
sap.ui.require(["sap/m/MessageBox"], function (MessageBox: any) {
|
|
195
194
|
const oResourceBundle = (Core as CoreEx).getLibraryResourceBundle("sap.fe.core");
|
|
196
|
-
MessageBox.
|
|
197
|
-
title: oResourceBundle.getText("
|
|
195
|
+
MessageBox.error(oResourceBundle.getText("C_COMMON_HELPER_NAVIGATION_ERROR_MESSAGE"), {
|
|
196
|
+
title: oResourceBundle.getText("C_COMMON_SAPFE_ERROR")
|
|
198
197
|
});
|
|
199
198
|
});
|
|
200
199
|
};
|
|
201
200
|
this._oNavigationService.navigate(
|
|
202
201
|
sSemanticObject,
|
|
203
202
|
sAction,
|
|
204
|
-
|
|
203
|
+
oSelectionVariant.toJSONString(),
|
|
205
204
|
undefined,
|
|
206
205
|
onError,
|
|
207
206
|
undefined,
|
|
@@ -233,9 +232,10 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
233
232
|
|
|
234
233
|
/**
|
|
235
234
|
* Prepare attributes to be passed to external navigation.
|
|
236
|
-
*
|
|
237
|
-
* @param
|
|
238
|
-
* @
|
|
235
|
+
*
|
|
236
|
+
* @param oSemanticAttributes Context data after removing all sensitive information.
|
|
237
|
+
* @param oContext Actual context from which the semanticAttributes were derived.
|
|
238
|
+
* @returns Object of prepared attributes for external navigation and no conflict properties.
|
|
239
239
|
*/
|
|
240
240
|
@publicExtension()
|
|
241
241
|
@finalExtension()
|
|
@@ -261,7 +261,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
261
261
|
} else {
|
|
262
262
|
// if a nested object is found
|
|
263
263
|
const oNewLookUpObject = LookUpObject[sKey];
|
|
264
|
-
_findDistinctKeysInObject(oNewLookUpObject, sLookUpObjectMetaPath
|
|
264
|
+
_findDistinctKeysInObject(oNewLookUpObject, `${sLookUpObjectMetaPath}/${sKey}`);
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
}
|
|
@@ -270,7 +270,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
270
270
|
|
|
271
271
|
// 2. Determine distinct key value and add conflicted paths to semantic attributes
|
|
272
272
|
const sMainEntitySetName = aMetaPathParts[0],
|
|
273
|
-
sMainEntityTypeName = oMetaModel.getObject(
|
|
273
|
+
sMainEntityTypeName = oMetaModel.getObject(`/${sMainEntitySetName}/@sapui.name`),
|
|
274
274
|
oPropertiesWithoutConflict: any = {};
|
|
275
275
|
let sMainEntityValuePath, sCurrentValuePath, sLastValuePath;
|
|
276
276
|
for (const sDistinctKey in oDistinctKeys) {
|
|
@@ -285,9 +285,9 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
285
285
|
// conflict
|
|
286
286
|
for (let i = 0; i <= aConflictingPaths.length - 1; i++) {
|
|
287
287
|
const sPath = aConflictingPaths[i];
|
|
288
|
-
let sPathInContext = sPath.replace(sPath === sMetaPath ? sMetaPath : sMetaPath
|
|
289
|
-
sPathInContext = (sPathInContext === "" ? sPathInContext : sPathInContext
|
|
290
|
-
const sEntityTypeName = oMetaModel.getObject(sPath
|
|
288
|
+
let sPathInContext = sPath.replace(sPath === sMetaPath ? sMetaPath : `${sMetaPath}/`, "");
|
|
289
|
+
sPathInContext = (sPathInContext === "" ? sPathInContext : `${sPathInContext}/`) + sDistinctKey;
|
|
290
|
+
const sEntityTypeName = oMetaModel.getObject(`${sPath}/@sapui.name`);
|
|
291
291
|
// rule A
|
|
292
292
|
|
|
293
293
|
// rule A
|
|
@@ -306,7 +306,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
306
306
|
// add conflicted path to semantic attributes
|
|
307
307
|
// check if the current path points to main entity and prefix attribute names accordingly
|
|
308
308
|
oSemanticAttributes[
|
|
309
|
-
|
|
309
|
+
`${sMetaPath}/${sPathInContext}`
|
|
310
310
|
.split("/")
|
|
311
311
|
.filter(function (sValue: string) {
|
|
312
312
|
return sValue != "";
|
|
@@ -323,10 +323,10 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
323
323
|
} else {
|
|
324
324
|
// no conflict, add distinct key without adding paths
|
|
325
325
|
const sPath = aConflictingPaths[0]; // because there is only one and hence no conflict
|
|
326
|
-
let sPathInContext = sPath.replace(sPath === sMetaPath ? sMetaPath : sMetaPath
|
|
327
|
-
sPathInContext = (sPathInContext === "" ? sPathInContext : sPathInContext
|
|
326
|
+
let sPathInContext = sPath.replace(sPath === sMetaPath ? sMetaPath : `${sMetaPath}/`, "");
|
|
327
|
+
sPathInContext = (sPathInContext === "" ? sPathInContext : `${sPathInContext}/`) + sDistinctKey;
|
|
328
328
|
oSemanticAttributes[sDistinctKey] = oContext.getProperty(sPathInContext);
|
|
329
|
-
oPropertiesWithoutConflict[sDistinctKey] =
|
|
329
|
+
oPropertiesWithoutConflict[sDistinctKey] = `${sMetaPath}/${sPathInContext}`
|
|
330
330
|
.split("/")
|
|
331
331
|
.filter(function (sValue: string) {
|
|
332
332
|
return sValue != "";
|
|
@@ -347,10 +347,11 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
347
347
|
}
|
|
348
348
|
/**
|
|
349
349
|
* Prepare filter conditions to be passed to external navigation.
|
|
350
|
-
*
|
|
351
|
-
* @param
|
|
352
|
-
* @param
|
|
353
|
-
* @
|
|
350
|
+
*
|
|
351
|
+
* @param oFilterBarConditions Filter conditions.
|
|
352
|
+
* @param sRootPath Root path of the application.
|
|
353
|
+
* @param aParameters Names of parameters to be considered.
|
|
354
|
+
* @returns Object of prepared filter conditions for external navigation and no conflict filters.
|
|
354
355
|
*/
|
|
355
356
|
@publicExtension()
|
|
356
357
|
@finalExtension()
|
|
@@ -391,15 +392,15 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
391
392
|
for (let i = 0; i <= aConflictingPaths.length - 1; i++) {
|
|
392
393
|
sPath = aConflictingPaths[i];
|
|
393
394
|
if (sPath === sRootPath) {
|
|
394
|
-
sFullContextPath = sRootPath
|
|
395
|
+
sFullContextPath = `${sRootPath}/${sDistinctKey}`;
|
|
395
396
|
sPathInContext = sDistinctKey;
|
|
396
397
|
sMainEntityValuePath = sDistinctKey;
|
|
397
398
|
if (aParameters && aParameters.includes(sDistinctKey)) {
|
|
398
|
-
oFilterBarConditions[
|
|
399
|
+
oFilterBarConditions[`$Parameter.${sDistinctKey}`] = oFilterBarConditions[sDistinctKey];
|
|
399
400
|
}
|
|
400
401
|
} else {
|
|
401
402
|
sPathInContext = sPath;
|
|
402
|
-
sFullContextPath = (
|
|
403
|
+
sFullContextPath = (`${sRootPath}/${sPath}` as any).replaceAll(/\*/g, "");
|
|
403
404
|
sCurrentValuePath = sPath;
|
|
404
405
|
}
|
|
405
406
|
oFilterBarConditions[
|
|
@@ -419,7 +420,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
419
420
|
// no conflict, add distinct key without adding paths
|
|
420
421
|
sPath = aConflictingPaths[0];
|
|
421
422
|
sFullContextPath =
|
|
422
|
-
sPath === sRootPath ? sRootPath
|
|
423
|
+
sPath === sRootPath ? `${sRootPath}/${sDistinctKey}` : (`${sRootPath}/${sPath}` as any).replaceAll("*", "");
|
|
423
424
|
oFilterConditionsWithoutConflict[sDistinctKey] = sFullContextPath
|
|
424
425
|
.split("/")
|
|
425
426
|
.filter(function (sValue: any) {
|
|
@@ -427,7 +428,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
427
428
|
})
|
|
428
429
|
.join(".");
|
|
429
430
|
if (aParameters && aParameters.includes(sDistinctKey)) {
|
|
430
|
-
oFilterBarConditions[
|
|
431
|
+
oFilterBarConditions[`$Parameter.${sDistinctKey}`] = oFilterBarConditions[sDistinctKey];
|
|
431
432
|
}
|
|
432
433
|
}
|
|
433
434
|
}
|
|
@@ -441,7 +442,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
441
442
|
/**
|
|
442
443
|
* Get Navigation mode.
|
|
443
444
|
*
|
|
444
|
-
* @returns
|
|
445
|
+
* @returns The navigation mode
|
|
445
446
|
*/
|
|
446
447
|
@publicExtension()
|
|
447
448
|
@extensible(OverrideExecution.Instead)
|
|
@@ -453,13 +454,13 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
453
454
|
* If semantic object mapping is provided, this setting is also applied to the selection variant after adaptation by a consumer.
|
|
454
455
|
* This setting also removes any technical parameters and determines if an inplace or explace navigation should take place.
|
|
455
456
|
*
|
|
456
|
-
* @param
|
|
457
|
-
* @param
|
|
458
|
-
* @param
|
|
459
|
-
* @param
|
|
460
|
-
* @param
|
|
461
|
-
* @param
|
|
462
|
-
* @param
|
|
457
|
+
* @param sSemanticObject Semantic object for the target app
|
|
458
|
+
* @param sAction Action for the target app
|
|
459
|
+
* @param [mNavigationParameters] Optional parameters to be passed to the external navigation
|
|
460
|
+
* @param [mNavigationParameters.label]
|
|
461
|
+
* @param [mNavigationParameters.navigationContexts] Single instance or multiple instances of {@link sap.ui.model.odata.v4.Context}, or alternatively an object or array of objects, to be passed to the intent.
|
|
462
|
+
* @param [mNavigationParameters.applicableContexts] Single instance or multiple instances of {@link sap.ui.model.odata.v4.Context}, or alternatively an object or array of objects, to be passed to the intent and for which the IBN button is enabled
|
|
463
|
+
* @param [mNavigationParameters.notApplicableContexts] Single instance or multiple instances of {@link sap.ui.model.odata.v4.Context}, or alternatively an object or array of objects, which cannot be passed to the intent.
|
|
463
464
|
* if an array of contexts is passed the context is used to determine the meta path and accordingly remove the sensitive data
|
|
464
465
|
* If an array of objects is passed, the following format is expected:
|
|
465
466
|
* {
|
|
@@ -470,8 +471,8 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
470
471
|
* metaPath: "/SalesOrderManage"
|
|
471
472
|
* }
|
|
472
473
|
* The metaPath is used to remove any sensitive data.
|
|
473
|
-
* @param
|
|
474
|
-
|
|
474
|
+
* @param [mNavigationParameters.semanticObjectMapping] String representation of SemanticObjectMapping or SemanticObjectMapping that applies to this navigation
|
|
475
|
+
*/
|
|
475
476
|
@publicExtension()
|
|
476
477
|
@finalExtension()
|
|
477
478
|
navigateWithConfirmationDialog(
|
|
@@ -519,7 +520,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
519
520
|
const oModel = this._oView.getModel();
|
|
520
521
|
const oMetaModel = oModel.getMetaModel();
|
|
521
522
|
const sCanonicalPath = mNavigationParameters.notApplicableContexts[0].getCanonicalPath();
|
|
522
|
-
const sEntitySet = sCanonicalPath.substr(0, sCanonicalPath.indexOf("("))
|
|
523
|
+
const sEntitySet = `${sCanonicalPath.substr(0, sCanonicalPath.indexOf("("))}/`;
|
|
523
524
|
Promise.resolve(
|
|
524
525
|
XMLPreprocessor.process(
|
|
525
526
|
oDialogFragment,
|
|
@@ -558,9 +559,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
558
559
|
/**
|
|
559
560
|
* Get targeted Entity set.
|
|
560
561
|
*
|
|
561
|
-
* @returns
|
|
562
|
-
*
|
|
563
|
-
*
|
|
562
|
+
* @returns Entity set name
|
|
564
563
|
*/
|
|
565
564
|
@privateExtension()
|
|
566
565
|
getEntitySet() {
|
|
@@ -573,7 +572,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
573
572
|
* @param sMetaPath Meta path to reach the entitySet in the MetaModel
|
|
574
573
|
* @returns Array of semantic Attributes
|
|
575
574
|
* @private
|
|
576
|
-
|
|
575
|
+
*/
|
|
577
576
|
// TO-DO add unit tests for this function in the controller extension qunit.
|
|
578
577
|
@publicExtension()
|
|
579
578
|
@finalExtension()
|
|
@@ -618,10 +617,9 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
618
617
|
/**
|
|
619
618
|
* Check if path-based FieldControl evaluates to inapplicable.
|
|
620
619
|
*
|
|
621
|
-
* @param
|
|
622
|
-
* @param
|
|
623
|
-
* @returns
|
|
624
|
-
*
|
|
620
|
+
* @param sFieldControlPath Field control path
|
|
621
|
+
* @param oAttribute SemanticAttributes
|
|
622
|
+
* @returns `true` if inapplicable
|
|
625
623
|
*/
|
|
626
624
|
_isFieldControlPathInapplicable(sFieldControlPath: string, oAttribute: any) {
|
|
627
625
|
let bInapplicable = false;
|
|
@@ -638,9 +636,9 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
638
636
|
/**
|
|
639
637
|
* Method to replace Local Properties with Semantic Object mappings.
|
|
640
638
|
*
|
|
641
|
-
* @param
|
|
642
|
-
* @param
|
|
643
|
-
* @returns
|
|
639
|
+
* @param oSelectionVariant SelectionVariant consisting of filterbar, Table and Page Context
|
|
640
|
+
* @param vMappings A string representation of semantic object mapping
|
|
641
|
+
* @returns - Modified SelectionVariant with LocalProperty replaced with SemanticObjectProperties.
|
|
644
642
|
*/
|
|
645
643
|
_applySemanticObjectMappings(oSelectionVariant: SelectionVariant, vMappings: object | string) {
|
|
646
644
|
const oMappings = typeof vMappings === "string" ? JSON.parse(vMappings) : vMappings;
|
|
@@ -663,12 +661,13 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
663
661
|
}
|
|
664
662
|
/**
|
|
665
663
|
* Navigates to an Outbound provided in the manifest.
|
|
664
|
+
*
|
|
666
665
|
* @function
|
|
667
|
-
* @param
|
|
668
|
-
* @param
|
|
666
|
+
* @param sOutbound Identifier to location the outbound in the manifest
|
|
667
|
+
* @param mNavigationParameters Optional map containing key/value pairs to be passed to the intent
|
|
669
668
|
* @alias sap.fe.core.controllerextensions.IntentBasedNavigation#navigateOutbound
|
|
670
669
|
* @since 1.86.0
|
|
671
|
-
|
|
670
|
+
*/
|
|
672
671
|
@publicExtension()
|
|
673
672
|
@finalExtension()
|
|
674
673
|
navigateOutbound(sOutbound: string, mNavigationParameters: any) {
|
|
@@ -713,9 +712,10 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
713
712
|
|
|
714
713
|
/**
|
|
715
714
|
* Method to apply outbound parameters defined in the manifest.
|
|
716
|
-
*
|
|
717
|
-
* @param
|
|
718
|
-
* @
|
|
715
|
+
*
|
|
716
|
+
* @param oSelectionVariant SelectionVariant consisting of a filter bar, a table, and a page context
|
|
717
|
+
* @param vOutboundParams Outbound Properties defined in the manifest
|
|
718
|
+
* @returns - The modified SelectionVariant with outbound parameters.
|
|
719
719
|
*/
|
|
720
720
|
_applyOutboundParams(oSelectionVariant: SelectionVariant, vOutboundParams: any) {
|
|
721
721
|
const aParameters = Object.keys(vOutboundParams);
|
|
@@ -731,9 +731,9 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
731
731
|
* Method to get the outbound parameters defined in the manifest.
|
|
732
732
|
*
|
|
733
733
|
* @function
|
|
734
|
-
* @param
|
|
735
|
-
* @returns
|
|
736
|
-
|
|
734
|
+
* @param oOutboundParams Parameters defined in the outbounds. Only "plain" is supported
|
|
735
|
+
* @returns Parameters with the key-Value pair
|
|
736
|
+
*/
|
|
737
737
|
@publicExtension()
|
|
738
738
|
@finalExtension()
|
|
739
739
|
getOutboundParams(oOutboundParams: any) {
|
|
@@ -789,7 +789,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
789
789
|
}
|
|
790
790
|
|
|
791
791
|
if (sCreatePath) {
|
|
792
|
-
const sKey = oDisplayOutbound.semanticObject
|
|
792
|
+
const sKey = `${oDisplayOutbound.semanticObject}-${oDisplayOutbound.action}`;
|
|
793
793
|
oRefreshStrategies.intents[sKey] = {};
|
|
794
794
|
oRefreshStrategies.intents[sKey][sCreatePath] = "self";
|
|
795
795
|
}
|
|
@@ -809,7 +809,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
809
809
|
//TODO: check why returning a promise is required
|
|
810
810
|
return Promise.resolve();
|
|
811
811
|
} else {
|
|
812
|
-
throw new Error(
|
|
812
|
+
throw new Error(`outbound target ${sOutboundTarget} not found in cross navigation definition of manifest`);
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
}
|