@sapui5/sap.fe.core 1.100.0 → 1.102.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 +4 -4
- package/src/sap/fe/core/.library +2 -3
- package/src/sap/fe/core/AppComponent.js +23 -30
- package/src/sap/fe/core/AppComponent.ts +35 -40
- package/src/sap/fe/core/AppStateHandler.js +8 -8
- package/src/sap/fe/core/AppStateHandler.ts +11 -11
- package/src/sap/fe/core/BaseController.js +9 -9
- package/src/sap/fe/core/BaseController.ts +3 -4
- package/src/sap/fe/core/CommonUtils.js +122 -101
- package/src/sap/fe/core/CommonUtils.ts +239 -193
- package/src/sap/fe/core/ExtensionAPI.js +12 -13
- package/src/sap/fe/core/ExtensionAPI.ts +21 -31
- package/src/sap/fe/core/PageController.js +19 -13
- package/src/sap/fe/core/PageController.ts +40 -34
- package/src/sap/fe/core/TemplateComponent.js +198 -123
- package/src/sap/fe/core/TemplateComponent.ts +109 -121
- package/src/sap/fe/core/TemplateModel.js +7 -9
- package/src/sap/fe/core/TemplateModel.ts +3 -3
- package/src/sap/fe/core/buildingBlocks/AttributeModel.js +60 -0
- package/src/sap/fe/core/buildingBlocks/AttributeModel.ts +37 -0
- package/src/sap/fe/core/buildingBlocks/BuildingBlock.js +165 -0
- package/src/sap/fe/core/buildingBlocks/BuildingBlock.ts +178 -0
- package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime.js +935 -0
- package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime.ts +837 -0
- package/src/sap/fe/core/buildingBlocks/TraceInfo.js +436 -0
- package/src/sap/fe/core/buildingBlocks/TraceInfo.ts +431 -0
- package/src/sap/fe/core/{BusyLocker.js → controllerextensions/BusyLocker.js} +1 -1
- package/src/sap/fe/core/{BusyLocker.ts → controllerextensions/BusyLocker.ts} +7 -7
- package/src/sap/fe/core/controllerextensions/EditFlow.js +660 -288
- package/src/sap/fe/core/controllerextensions/EditFlow.ts +513 -331
- package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.js +11 -11
- package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.ts +6 -7
- package/src/sap/fe/core/controllerextensions/InternalEditFlow.js +43 -25
- package/src/sap/fe/core/controllerextensions/InternalEditFlow.ts +132 -103
- package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.js +16 -16
- package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.ts +64 -55
- package/src/sap/fe/core/controllerextensions/InternalRouting.js +166 -99
- package/src/sap/fe/core/controllerextensions/InternalRouting.ts +187 -149
- package/src/sap/fe/core/controllerextensions/KPIManagement.js +14 -14
- package/src/sap/fe/core/controllerextensions/KPIManagement.ts +12 -11
- package/src/sap/fe/core/controllerextensions/MassEdit.js +13 -12
- package/src/sap/fe/core/controllerextensions/MassEdit.ts +22 -22
- package/src/sap/fe/core/controllerextensions/MessageHandler.js +14 -26
- package/src/sap/fe/core/controllerextensions/MessageHandler.ts +20 -30
- package/src/sap/fe/core/controllerextensions/PageReady.js +25 -23
- package/src/sap/fe/core/controllerextensions/PageReady.ts +49 -47
- package/src/sap/fe/core/controllerextensions/Paginator.js +24 -15
- package/src/sap/fe/core/controllerextensions/Paginator.ts +35 -20
- package/src/sap/fe/core/controllerextensions/Placeholder.js +10 -10
- package/src/sap/fe/core/controllerextensions/Placeholder.ts +12 -14
- package/src/sap/fe/core/controllerextensions/Routing.js +11 -11
- package/src/sap/fe/core/controllerextensions/Routing.ts +12 -13
- package/src/sap/fe/core/controllerextensions/Share.js +34 -16
- package/src/sap/fe/core/controllerextensions/Share.ts +50 -32
- package/src/sap/fe/core/controllerextensions/SideEffects.js +15 -15
- package/src/sap/fe/core/controllerextensions/SideEffects.ts +64 -65
- package/src/sap/fe/core/controllerextensions/ViewState.js +27 -31
- package/src/sap/fe/core/controllerextensions/ViewState.ts +103 -102
- package/src/sap/fe/core/controllerextensions/collaboration/ActivityBase.js +105 -0
- package/src/sap/fe/core/controllerextensions/collaboration/ActivityBase.ts +98 -0
- package/src/sap/fe/core/controllerextensions/collaboration/ActivitySync.js +360 -0
- package/src/sap/fe/core/{actions → controllerextensions}/collaboration/ActivitySync.ts +90 -132
- package/src/sap/fe/core/controllerextensions/collaboration/CollaborationCommon.js +146 -0
- package/src/sap/fe/core/{actions → controllerextensions}/collaboration/CollaborationCommon.ts +18 -8
- package/src/sap/fe/core/controllerextensions/collaboration/Manage.js +264 -0
- package/src/sap/fe/core/{actions → controllerextensions}/collaboration/Manage.ts +35 -33
- package/src/sap/fe/core/controllerextensions/collaboration/ManageDialog.fragment.xml +100 -0
- package/src/sap/fe/core/{actions → controllerextensions}/collaboration/UserDetails.fragment.xml +5 -7
- package/src/sap/fe/core/controllerextensions/editFlow/TransactionHelper.js +1584 -0
- package/src/sap/fe/core/{TransactionHelper.ts → controllerextensions/editFlow/TransactionHelper.ts} +190 -159
- package/src/sap/fe/core/controllerextensions/editFlow/draft.js +780 -0
- package/src/sap/fe/core/{actions → controllerextensions/editFlow}/draft.ts +329 -76
- package/src/sap/fe/core/controllerextensions/editFlow/operations.js +1149 -0
- package/src/sap/fe/core/{actions → controllerextensions/editFlow}/operations.ts +169 -97
- package/src/sap/fe/core/controllerextensions/editFlow/sticky.js +190 -0
- package/src/sap/fe/core/{actions → controllerextensions/editFlow}/sticky.ts +76 -12
- package/src/sap/fe/core/controllerextensions/messageHandler/messageHandling.js +592 -0
- package/src/sap/fe/core/{actions → controllerextensions/messageHandler}/messageHandling.ts +83 -60
- package/src/sap/fe/core/controllerextensions/routing/RouterProxy.js +940 -0
- package/src/sap/fe/core/{RouterProxy.ts → controllerextensions/routing/RouterProxy.ts} +52 -36
- package/src/sap/fe/core/controls/ActionParameterDialog.fragment.xml +21 -18
- package/src/sap/fe/core/controls/Any.js +28 -0
- package/src/sap/fe/core/controls/Any.ts +30 -0
- package/src/sap/fe/core/controls/CommandExecution.js +50 -16
- package/src/sap/fe/core/controls/CommandExecution.ts +31 -22
- package/src/sap/fe/core/controls/ConditionalWrapper.js +136 -65
- package/src/sap/fe/core/controls/ConditionalWrapper.ts +49 -58
- package/src/sap/fe/core/controls/CustomFilterFieldContentWrapper.js +371 -0
- package/src/sap/fe/core/controls/CustomFilterFieldContentWrapper.ts +282 -0
- package/src/sap/fe/core/controls/CustomQuickViewPage.js +74 -36
- package/src/sap/fe/core/controls/CustomQuickViewPage.ts +23 -32
- package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossDraft.fragment.xml +52 -5
- package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.js +127 -67
- package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.ts +127 -67
- package/src/sap/fe/core/controls/FieldWrapper.js +171 -87
- package/src/sap/fe/core/controls/FieldWrapper.ts +69 -80
- package/src/sap/fe/core/controls/FileWrapper.js +360 -0
- package/src/sap/fe/core/controls/FileWrapper.ts +202 -0
- package/src/sap/fe/core/controls/FilterBar.js +154 -119
- package/src/sap/fe/core/controls/FilterBar.ts +128 -123
- package/src/sap/fe/core/controls/FormElementWrapper.js +102 -37
- package/src/sap/fe/core/controls/FormElementWrapper.ts +43 -35
- package/src/sap/fe/core/controls/MassEditSelect.js +33 -0
- package/src/sap/fe/core/controls/MassEditSelect.ts +45 -0
- package/src/sap/fe/core/controls/filterbar/FilterContainer.js +111 -89
- package/src/sap/fe/core/controls/filterbar/FilterContainer.ts +86 -82
- package/src/sap/fe/core/controls/filterbar/VisualFilter.js +242 -193
- package/src/sap/fe/core/controls/filterbar/VisualFilter.ts +211 -204
- package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.js +152 -116
- package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.ts +105 -105
- package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.js +2 -2
- package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.ts +23 -28
- package/src/sap/fe/core/controls/massEdit/MassEditDialog.fragment.xml +41 -81
- package/src/sap/fe/core/controls/massEdit/MassEditField.fragment.xml +107 -0
- package/src/sap/fe/core/controls/massEdit/MassEditHandlers.js +550 -35
- package/src/sap/fe/core/controls/massEdit/MassEditHandlers.ts +604 -35
- package/src/sap/fe/core/converters/ManifestSettings.js +3 -1
- package/src/sap/fe/core/converters/ManifestSettings.ts +9 -2
- package/src/sap/fe/core/converters/MetaModelConverter.js +11 -40
- package/src/sap/fe/core/converters/MetaModelConverter.ts +56 -84
- package/src/sap/fe/core/converters/annotations/DataField.js +20 -5
- package/src/sap/fe/core/converters/annotations/DataField.ts +27 -6
- package/src/sap/fe/core/converters/controls/Common/Action.js +14 -21
- package/src/sap/fe/core/converters/controls/Common/Action.ts +23 -28
- package/src/sap/fe/core/converters/controls/Common/Chart.js +17 -10
- package/src/sap/fe/core/converters/controls/Common/Chart.ts +20 -14
- package/src/sap/fe/core/converters/controls/Common/Form.js +16 -18
- package/src/sap/fe/core/converters/controls/Common/Form.ts +20 -20
- package/src/sap/fe/core/converters/controls/Common/KPI.js +1 -1
- package/src/sap/fe/core/converters/controls/Common/KPI.ts +2 -3
- package/src/sap/fe/core/converters/controls/Common/Table.js +389 -173
- package/src/sap/fe/core/converters/controls/Common/Table.ts +440 -244
- package/src/sap/fe/core/converters/controls/Common/table/StandardActions.js +26 -16
- package/src/sap/fe/core/converters/controls/Common/table/StandardActions.ts +27 -19
- package/src/sap/fe/core/converters/controls/ListReport/FilterBar.js +78 -47
- package/src/sap/fe/core/converters/controls/ListReport/FilterBar.ts +146 -107
- package/src/sap/fe/core/converters/controls/ObjectPage/HeaderFacet.js +6 -6
- package/src/sap/fe/core/converters/controls/ObjectPage/HeaderFacet.ts +20 -18
- package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.js +30 -25
- package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.ts +39 -34
- package/src/sap/fe/core/converters/helpers/Aggregation.js +10 -2
- package/src/sap/fe/core/converters/helpers/Aggregation.ts +18 -13
- package/src/sap/fe/core/converters/helpers/BindingHelper.js +3 -2
- package/src/sap/fe/core/converters/helpers/BindingHelper.ts +6 -5
- package/src/sap/fe/core/converters/objectPage/FormMenuActions.js +1 -1
- package/src/sap/fe/core/converters/objectPage/FormMenuActions.ts +0 -4
- package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.js +27 -24
- package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.ts +49 -40
- package/src/sap/fe/core/converters/templates/ListReportConverter.js +33 -22
- package/src/sap/fe/core/converters/templates/ListReportConverter.ts +77 -62
- package/src/sap/fe/core/converters/templates/ObjectPageConverter.js +28 -28
- package/src/sap/fe/core/converters/templates/ObjectPageConverter.ts +38 -45
- package/src/sap/fe/core/designtime/AppComponent.designtime.js +3 -3
- package/src/sap/fe/core/designtime/AppComponent.designtime.ts +8 -6
- package/src/sap/fe/core/formatters/KPIFormatter.js +3 -12
- package/src/sap/fe/core/formatters/KPIFormatter.ts +3 -2
- package/src/sap/fe/core/formatters/TableFormatter.js +74 -13
- package/src/sap/fe/core/formatters/TableFormatter.ts +71 -16
- package/src/sap/fe/core/formatters/ValueFormatter.js +4 -4
- package/src/sap/fe/core/formatters/ValueFormatter.ts +4 -7
- package/src/sap/fe/core/fpm/Component.js +46 -17
- package/src/sap/fe/core/fpm/Component.ts +11 -16
- package/src/sap/fe/core/helpers/AppStartupHelper.js +4 -4
- package/src/sap/fe/core/helpers/AppStartupHelper.ts +3 -3
- package/src/sap/fe/core/helpers/BindingExpression.js +10 -7
- package/src/sap/fe/core/helpers/BindingExpression.ts +37 -35
- package/src/sap/fe/core/helpers/ClassSupport.js +273 -256
- package/src/sap/fe/core/helpers/ClassSupport.ts +315 -237
- package/src/sap/fe/core/helpers/FPMHelper.js +3 -2
- package/src/sap/fe/core/helpers/FPMHelper.ts +9 -8
- package/src/sap/fe/core/helpers/MassEditHelper.js +522 -147
- package/src/sap/fe/core/helpers/MassEditHelper.ts +563 -236
- package/src/sap/fe/core/helpers/ModelHelper.js +29 -1
- package/src/sap/fe/core/helpers/ModelHelper.ts +39 -26
- package/src/sap/fe/core/helpers/PasteHelper.js +4 -4
- package/src/sap/fe/core/helpers/PasteHelper.ts +4 -3
- package/src/sap/fe/core/helpers/SemanticDateOperators.js +3 -3
- package/src/sap/fe/core/helpers/SemanticDateOperators.ts +3 -1
- package/src/sap/fe/core/helpers/SemanticKeyHelper.js +1 -1
- package/src/sap/fe/core/helpers/SemanticKeyHelper.ts +1 -1
- package/src/sap/fe/core/helpers/StableIdHelper.js +5 -7
- package/src/sap/fe/core/helpers/StableIdHelper.ts +8 -8
- package/src/sap/fe/core/{Synchronization.js → helpers/Synchronization.js} +1 -1
- package/src/sap/fe/core/{Synchronization.ts → helpers/Synchronization.ts} +1 -1
- package/src/sap/fe/core/jsx-runtime/jsx.js +35 -5
- package/src/sap/fe/core/jsx-runtime/jsx.ts +22 -8
- package/src/sap/fe/core/library.js +13 -5
- package/src/sap/fe/core/library.ts +26 -17
- package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.js +1 -1
- package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.ts +0 -3
- package/src/sap/fe/core/messagebundle.properties +135 -180
- package/src/sap/fe/core/messagebundle_ar.properties +31 -64
- package/src/sap/fe/core/messagebundle_bg.properties +31 -64
- package/src/sap/fe/core/messagebundle_ca.properties +31 -64
- package/src/sap/fe/core/messagebundle_cs.properties +31 -64
- package/src/sap/fe/core/messagebundle_cy.properties +32 -65
- package/src/sap/fe/core/messagebundle_da.properties +31 -64
- package/src/sap/fe/core/messagebundle_de.properties +29 -62
- package/src/sap/fe/core/messagebundle_el.properties +32 -65
- package/src/sap/fe/core/messagebundle_en.properties +32 -65
- package/src/sap/fe/core/messagebundle_en_GB.properties +29 -62
- package/src/sap/fe/core/messagebundle_en_US_sappsd.properties +41 -74
- package/src/sap/fe/core/messagebundle_en_US_saprigi.properties +32 -65
- package/src/sap/fe/core/messagebundle_en_US_saptrc.properties +20 -6
- package/src/sap/fe/core/messagebundle_es.properties +31 -64
- package/src/sap/fe/core/messagebundle_es_MX.properties +31 -64
- package/src/sap/fe/core/messagebundle_et.properties +31 -64
- package/src/sap/fe/core/messagebundle_fi.properties +29 -62
- package/src/sap/fe/core/messagebundle_fr.properties +36 -69
- package/src/sap/fe/core/messagebundle_fr_CA.properties +33 -66
- package/src/sap/fe/core/messagebundle_hi.properties +29 -62
- package/src/sap/fe/core/messagebundle_hr.properties +32 -65
- package/src/sap/fe/core/messagebundle_hu.properties +30 -63
- package/src/sap/fe/core/messagebundle_id.properties +32 -65
- package/src/sap/fe/core/messagebundle_it.properties +31 -64
- package/src/sap/fe/core/messagebundle_iw.properties +31 -64
- package/src/sap/fe/core/messagebundle_ja.properties +29 -62
- package/src/sap/fe/core/messagebundle_kk.properties +31 -64
- package/src/sap/fe/core/messagebundle_ko.properties +31 -64
- package/src/sap/fe/core/messagebundle_lt.properties +31 -64
- package/src/sap/fe/core/messagebundle_lv.properties +32 -65
- package/src/sap/fe/core/messagebundle_ms.properties +31 -64
- package/src/sap/fe/core/messagebundle_nl.properties +31 -64
- package/src/sap/fe/core/messagebundle_no.properties +31 -64
- package/src/sap/fe/core/messagebundle_pl.properties +34 -67
- package/src/sap/fe/core/messagebundle_pt.properties +32 -65
- package/src/sap/fe/core/messagebundle_pt_PT.properties +31 -64
- package/src/sap/fe/core/messagebundle_ro.properties +33 -66
- package/src/sap/fe/core/messagebundle_ru.properties +33 -66
- package/src/sap/fe/core/messagebundle_sh.properties +31 -64
- package/src/sap/fe/core/messagebundle_sk.properties +31 -64
- package/src/sap/fe/core/messagebundle_sl.properties +29 -62
- package/src/sap/fe/core/messagebundle_sv.properties +30 -63
- package/src/sap/fe/core/messagebundle_th.properties +31 -64
- package/src/sap/fe/core/messagebundle_tr.properties +31 -64
- package/src/sap/fe/core/messagebundle_uk.properties +32 -65
- package/src/sap/fe/core/messagebundle_vi.properties +31 -64
- package/src/sap/fe/core/messagebundle_zh_CN.properties +32 -65
- package/src/sap/fe/core/messagebundle_zh_TW.properties +34 -67
- package/src/sap/fe/core/services/AsyncComponentServiceFactory.js +4 -4
- package/src/sap/fe/core/services/AsyncComponentServiceFactory.ts +1 -1
- package/src/sap/fe/core/services/CacheHandlerServiceFactory.js +5 -5
- package/src/sap/fe/core/services/CacheHandlerServiceFactory.ts +1 -2
- package/src/sap/fe/core/services/EnvironmentServiceFactory.js +11 -8
- package/src/sap/fe/core/services/EnvironmentServiceFactory.ts +15 -13
- package/src/sap/fe/core/services/NavigationServiceFactory.js +5 -5
- package/src/sap/fe/core/services/NavigationServiceFactory.ts +9 -5
- package/src/sap/fe/core/services/ResourceModelServiceFactory.js +4 -4
- package/src/sap/fe/core/services/ResourceModelServiceFactory.ts +1 -1
- package/src/sap/fe/core/services/RoutingServiceFactory.js +105 -66
- package/src/sap/fe/core/services/RoutingServiceFactory.ts +59 -49
- package/src/sap/fe/core/services/ShellServicesFactory.js +104 -29
- package/src/sap/fe/core/services/ShellServicesFactory.ts +64 -30
- package/src/sap/fe/core/services/SideEffectsServiceFactory.js +4 -4
- package/src/sap/fe/core/services/SideEffectsServiceFactory.ts +1 -1
- package/src/sap/fe/core/services/TemplatedViewServiceFactory.js +11 -10
- package/src/sap/fe/core/services/TemplatedViewServiceFactory.ts +38 -51
- package/src/sap/fe/core/services/view/TemplatingErrorPage.controller.js +43 -5
- package/src/sap/fe/core/services/view/TemplatingErrorPage.controller.ts +6 -3
- package/src/sap/fe/core/support/CommonHelper.js +1 -1
- package/src/sap/fe/core/support/CommonHelper.ts +0 -3
- package/src/sap/fe/core/templating/DataModelPathHelper.js +2 -9
- package/src/sap/fe/core/templating/DataModelPathHelper.ts +32 -38
- package/src/sap/fe/core/templating/DisplayModeFormatter.js +23 -3
- package/src/sap/fe/core/templating/DisplayModeFormatter.ts +27 -6
- package/src/sap/fe/core/templating/EntitySetHelper.js +1 -9
- package/src/sap/fe/core/templating/EntitySetHelper.ts +11 -13
- package/src/sap/fe/core/templating/FilterHelper.js +4 -4
- package/src/sap/fe/core/templating/FilterHelper.ts +6 -5
- package/src/sap/fe/core/templating/PropertyHelper.js +70 -33
- package/src/sap/fe/core/templating/PropertyHelper.ts +49 -27
- package/src/sap/fe/core/templating/UIFormatters.js +133 -22
- package/src/sap/fe/core/templating/UIFormatters.ts +144 -50
- package/src/sap/fe/core/type/DateTimeWithTimezone.js +47 -0
- package/src/sap/fe/core/type/DateTimeWithTimezone.ts +23 -0
- package/src/sap/fe/core/type/Email.js +26 -8
- package/src/sap/fe/core/type/Email.ts +8 -7
- package/src/sap/fe/core/AnnotationHelper.js +0 -312
- package/src/sap/fe/core/AnnotationHelper.ts +0 -315
- package/src/sap/fe/core/RouterProxy.js +0 -926
- package/src/sap/fe/core/TransactionHelper.js +0 -1562
- package/src/sap/fe/core/actions/collaboration/ActivitySync.js +0 -392
- package/src/sap/fe/core/actions/collaboration/CollaborationCommon.js +0 -136
- package/src/sap/fe/core/actions/collaboration/Manage.js +0 -262
- package/src/sap/fe/core/actions/collaboration/ManageDialog.fragment.xml +0 -103
- package/src/sap/fe/core/actions/draft.js +0 -523
- package/src/sap/fe/core/actions/messageHandling.js +0 -567
- package/src/sap/fe/core/actions/nonDraft.js +0 -20
- package/src/sap/fe/core/actions/nonDraft.ts +0 -12
- package/src/sap/fe/core/actions/operations.js +0 -1096
- package/src/sap/fe/core/actions/sticky.js +0 -130
- package/src/sap/fe/core/controllerextensions/ControllerExtensionMetadata.js +0 -78
- package/src/sap/fe/core/controllerextensions/ControllerExtensionMetadata.ts +0 -65
- package/src/sap/fe/core/formatters/CriticalityFormatter.js +0 -77
- package/src/sap/fe/core/formatters/CriticalityFormatter.ts +0 -58
|
@@ -1,25 +1,32 @@
|
|
|
1
|
-
import ControllerExtension from "sap/ui/core/mvc/ControllerExtension";
|
|
2
|
-
import OverrideExecution from "sap/ui/core/mvc/OverrideExecution";
|
|
3
|
-
import SelectionVariant from "sap/fe/navigation/SelectionVariant";
|
|
4
|
-
import ModelHelper from "sap/fe/core/helpers/ModelHelper";
|
|
5
|
-
import XMLPreprocessor from "sap/ui/core/util/XMLPreprocessor";
|
|
6
|
-
import XMLTemplateProcessor from "sap/ui/core/XMLTemplateProcessor";
|
|
7
|
-
import Fragment from "sap/ui/core/Fragment";
|
|
8
|
-
import JSONModel from "sap/ui/model/json/JSONModel";
|
|
9
1
|
import Log from "sap/base/Log";
|
|
10
|
-
import CommonUtils from "sap/fe/core/CommonUtils";
|
|
11
|
-
import KeepAliveHelper from "sap/fe/core/helpers/KeepAliveHelper";
|
|
12
2
|
import mergeObjects from "sap/base/util/merge";
|
|
13
|
-
import { Extensible, Final, Override, Private, Public, UI5Class } from "sap/fe/core/helpers/ClassSupport";
|
|
14
|
-
import ControllerExtensionMetadata from "sap/fe/core/controllerextensions/ControllerExtensionMetadata";
|
|
15
3
|
import AppComponent from "sap/fe/core/AppComponent";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
4
|
+
import draft from "sap/fe/core/controllerextensions/editFlow/draft";
|
|
5
|
+
import {
|
|
6
|
+
defineUI5Class,
|
|
7
|
+
extensible,
|
|
8
|
+
finalExtension,
|
|
9
|
+
methodOverride,
|
|
10
|
+
privateExtension,
|
|
11
|
+
publicExtension
|
|
12
|
+
} from "sap/fe/core/helpers/ClassSupport";
|
|
13
|
+
import KeepAliveHelper from "sap/fe/core/helpers/KeepAliveHelper";
|
|
14
|
+
import ModelHelper from "sap/fe/core/helpers/ModelHelper";
|
|
18
15
|
import PageController from "sap/fe/core/PageController";
|
|
19
16
|
import { NavigationService } from "sap/fe/core/services/NavigationServiceFactory";
|
|
20
|
-
import
|
|
17
|
+
import SelectionVariant from "sap/fe/navigation/SelectionVariant";
|
|
21
18
|
import Dialog from "sap/m/Dialog";
|
|
22
|
-
import
|
|
19
|
+
import Core from "sap/ui/core/Core";
|
|
20
|
+
import Fragment from "sap/ui/core/Fragment";
|
|
21
|
+
import ControllerExtension from "sap/ui/core/mvc/ControllerExtension";
|
|
22
|
+
import OverrideExecution from "sap/ui/core/mvc/OverrideExecution";
|
|
23
|
+
import View from "sap/ui/core/mvc/View";
|
|
24
|
+
import XMLPreprocessor from "sap/ui/core/util/XMLPreprocessor";
|
|
25
|
+
import XMLTemplateProcessor from "sap/ui/core/XMLTemplateProcessor";
|
|
26
|
+
import Context from "sap/ui/model/Context";
|
|
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";
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
* {@link sap.ui.core.mvc.ControllerExtension Controller extension}
|
|
@@ -30,14 +37,14 @@ import ResourceBundle from "sap/base/i18n/ResourceBundle";
|
|
|
30
37
|
* @private
|
|
31
38
|
* @since 1.84.0
|
|
32
39
|
*/
|
|
33
|
-
@
|
|
40
|
+
@defineUI5Class("sap.fe.core.controllerextensions.InternalInternalBasedNavigation")
|
|
34
41
|
class InternalIntentBasedNavigation extends ControllerExtension {
|
|
35
|
-
|
|
42
|
+
protected base!: PageController;
|
|
36
43
|
private _oAppComponent!: AppComponent;
|
|
37
44
|
private _oMetaModel!: ODataMetaModel;
|
|
38
45
|
private _oNavigationService!: NavigationService;
|
|
39
46
|
private _oView!: View;
|
|
40
|
-
@
|
|
47
|
+
@methodOverride()
|
|
41
48
|
onInit() {
|
|
42
49
|
this._oAppComponent = this.base.getAppComponent();
|
|
43
50
|
this._oMetaModel = this._oAppComponent.getModel().getMetaModel() as ODataMetaModel;
|
|
@@ -71,8 +78,8 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
71
78
|
* @param {object} [mNavigationParameters.refreshStrategies]
|
|
72
79
|
* @param {object} [mNavigationParameters.additionalNavigationParameters] Additional navigation parameters configured in the crossAppNavigation outbound parameters.
|
|
73
80
|
**/
|
|
74
|
-
@
|
|
75
|
-
@
|
|
81
|
+
@publicExtension()
|
|
82
|
+
@finalExtension()
|
|
76
83
|
navigate(
|
|
77
84
|
sSemanticObject: string,
|
|
78
85
|
sAction: string,
|
|
@@ -108,7 +115,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
108
115
|
oSelectionVariant = new SelectionVariant();
|
|
109
116
|
// 1. get SemanticAttributes for navigation
|
|
110
117
|
if (aNavigationContexts && aNavigationContexts.length) {
|
|
111
|
-
aNavigationContexts.
|
|
118
|
+
aNavigationContexts.forEach((oNavigationContext: any) => {
|
|
112
119
|
// 1.1.a if navigation context is instance of sap.ui.mode.odata.v4.Context
|
|
113
120
|
// else check if navigation context is of type object
|
|
114
121
|
if (oNavigationContext.isA && oNavigationContext.isA("sap.ui.model.odata.v4.Context")) {
|
|
@@ -183,9 +190,9 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
183
190
|
}
|
|
184
191
|
|
|
185
192
|
// 9. Navigate via NavigationHandler
|
|
186
|
-
const onError = function() {
|
|
187
|
-
sap.ui.require(["sap/m/MessageBox"], function(MessageBox: any) {
|
|
188
|
-
const oResourceBundle =
|
|
193
|
+
const onError = function () {
|
|
194
|
+
sap.ui.require(["sap/m/MessageBox"], function (MessageBox: any) {
|
|
195
|
+
const oResourceBundle = (Core as CoreEx).getLibraryResourceBundle("sap.fe.core");
|
|
189
196
|
MessageBox.show(oResourceBundle.getText("C_COMMON_HELPER_NAVIGATION_ERROR_MESSAGE"), {
|
|
190
197
|
title: oResourceBundle.getText("C_COMMON_NAVIGATION_ERROR_TITLE")
|
|
191
198
|
});
|
|
@@ -211,11 +218,13 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
211
218
|
oMetaModel &&
|
|
212
219
|
!ModelHelper.isStickySessionSupported(oMetaModel)
|
|
213
220
|
) {
|
|
214
|
-
|
|
221
|
+
draft.processDataLossOrDraftDiscardConfirmation(
|
|
215
222
|
_doNavigate.bind(this),
|
|
216
223
|
Function.prototype,
|
|
217
224
|
this.base.getView().getBindingContext(),
|
|
218
|
-
this.base.getView().getController()
|
|
225
|
+
this.base.getView().getController(),
|
|
226
|
+
true,
|
|
227
|
+
draft.NavigationType.ForwardNavigation
|
|
219
228
|
);
|
|
220
229
|
} else {
|
|
221
230
|
_doNavigate();
|
|
@@ -228,8 +237,8 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
228
237
|
* @param {object} oContext Actual context from which the semanticAttributes were derived.
|
|
229
238
|
* @returns {object} Object of prepared attributes for external navigation and no conflict properties.
|
|
230
239
|
*/
|
|
231
|
-
@
|
|
232
|
-
@
|
|
240
|
+
@publicExtension()
|
|
241
|
+
@finalExtension()
|
|
233
242
|
prepareContextForExternalNavigation(oSemanticAttributes: any, oContext: Context) {
|
|
234
243
|
// 1. Find all distinct keys in the object SemanticAttributes
|
|
235
244
|
// Store meta path for each occurence of the key
|
|
@@ -299,7 +308,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
299
308
|
oSemanticAttributes[
|
|
300
309
|
(sMetaPath + "/" + sPathInContext)
|
|
301
310
|
.split("/")
|
|
302
|
-
.filter(function(sValue: string) {
|
|
311
|
+
.filter(function (sValue: string) {
|
|
303
312
|
return sValue != "";
|
|
304
313
|
})
|
|
305
314
|
.join(".")
|
|
@@ -319,7 +328,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
319
328
|
oSemanticAttributes[sDistinctKey] = oContext.getProperty(sPathInContext);
|
|
320
329
|
oPropertiesWithoutConflict[sDistinctKey] = (sMetaPath + "/" + sPathInContext)
|
|
321
330
|
.split("/")
|
|
322
|
-
.filter(function(sValue: string) {
|
|
331
|
+
.filter(function (sValue: string) {
|
|
323
332
|
return sValue != "";
|
|
324
333
|
})
|
|
325
334
|
.join(".");
|
|
@@ -343,8 +352,8 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
343
352
|
* @param {Array} aParameters Names of parameters to be considered.
|
|
344
353
|
* @returns {object} Object of prepared filter conditions for external navigation and no conflict filters.
|
|
345
354
|
*/
|
|
346
|
-
@
|
|
347
|
-
@
|
|
355
|
+
@publicExtension()
|
|
356
|
+
@finalExtension()
|
|
348
357
|
prepareFiltersForExternalNavigation(oFilterBarConditions: any, sRootPath: string, aParameters?: any[]) {
|
|
349
358
|
let sPath;
|
|
350
359
|
const oDistinctKeys: any = {};
|
|
@@ -396,7 +405,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
396
405
|
oFilterBarConditions[
|
|
397
406
|
sFullContextPath
|
|
398
407
|
.split("/")
|
|
399
|
-
.filter(function(sValue: any) {
|
|
408
|
+
.filter(function (sValue: any) {
|
|
400
409
|
return sValue != "";
|
|
401
410
|
})
|
|
402
411
|
.join(".")
|
|
@@ -413,7 +422,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
413
422
|
sPath === sRootPath ? sRootPath + "/" + sDistinctKey : ((sRootPath + "/" + sPath) as any).replaceAll("*", "");
|
|
414
423
|
oFilterConditionsWithoutConflict[sDistinctKey] = sFullContextPath
|
|
415
424
|
.split("/")
|
|
416
|
-
.filter(function(sValue: any) {
|
|
425
|
+
.filter(function (sValue: any) {
|
|
417
426
|
return sValue != "";
|
|
418
427
|
})
|
|
419
428
|
.join(".");
|
|
@@ -434,8 +443,8 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
434
443
|
*
|
|
435
444
|
* @returns {string}
|
|
436
445
|
*/
|
|
437
|
-
@
|
|
438
|
-
@
|
|
446
|
+
@publicExtension()
|
|
447
|
+
@extensible(OverrideExecution.Instead)
|
|
439
448
|
getNavigationMode() {
|
|
440
449
|
return undefined;
|
|
441
450
|
}
|
|
@@ -463,8 +472,8 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
463
472
|
* The metaPath is used to remove any sensitive data.
|
|
464
473
|
* @param {string | object} [mNavigationParameters.semanticObjectMapping] String representation of SemanticObjectMapping or SemanticObjectMapping that applies to this navigation
|
|
465
474
|
**/
|
|
466
|
-
@
|
|
467
|
-
@
|
|
475
|
+
@publicExtension()
|
|
476
|
+
@finalExtension()
|
|
468
477
|
navigateWithConfirmationDialog(
|
|
469
478
|
sSemanticObject: string,
|
|
470
479
|
sAction: string,
|
|
@@ -479,7 +488,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
479
488
|
if (mNavigationParameters?.notApplicableContexts && mNavigationParameters.notApplicableContexts?.length >= 1) {
|
|
480
489
|
let oApplicableContextDialog: Dialog;
|
|
481
490
|
const oController = {
|
|
482
|
-
onClose: function() {
|
|
491
|
+
onClose: function () {
|
|
483
492
|
// User cancels action
|
|
484
493
|
oApplicableContextDialog.close();
|
|
485
494
|
},
|
|
@@ -490,7 +499,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
490
499
|
this.navigate(sSemanticObject, sAction, mNavigationParameters);
|
|
491
500
|
}
|
|
492
501
|
};
|
|
493
|
-
const fnOpenAndFillDialog = function() {
|
|
502
|
+
const fnOpenAndFillDialog = function () {
|
|
494
503
|
let oDialogContent;
|
|
495
504
|
const nNotApplicable = mNavigationParameters.notApplicableContexts.length,
|
|
496
505
|
aNotApplicableItems = [];
|
|
@@ -526,7 +535,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
526
535
|
}
|
|
527
536
|
)
|
|
528
537
|
)
|
|
529
|
-
.then(function(oFragment: any) {
|
|
538
|
+
.then(function (oFragment: any) {
|
|
530
539
|
return Fragment.load({ definition: oFragment, controller: oController });
|
|
531
540
|
})
|
|
532
541
|
.then((oPopover: any) => {
|
|
@@ -534,7 +543,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
534
543
|
this.getView().addDependent(oPopover);
|
|
535
544
|
fnOpenAndFillDialog();
|
|
536
545
|
})
|
|
537
|
-
.catch(function() {
|
|
546
|
+
.catch(function () {
|
|
538
547
|
Log.error("Error");
|
|
539
548
|
});
|
|
540
549
|
} else {
|
|
@@ -553,7 +562,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
553
562
|
*
|
|
554
563
|
*
|
|
555
564
|
*/
|
|
556
|
-
@
|
|
565
|
+
@privateExtension()
|
|
557
566
|
getEntitySet() {
|
|
558
567
|
return (this._oView.getViewData() as any).entitySet;
|
|
559
568
|
}
|
|
@@ -566,8 +575,8 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
566
575
|
* @private
|
|
567
576
|
**/
|
|
568
577
|
// TO-DO add unit tests for this function in the controller extension qunit.
|
|
569
|
-
@
|
|
570
|
-
@
|
|
578
|
+
@publicExtension()
|
|
579
|
+
@finalExtension()
|
|
571
580
|
removeSensitiveData(oAttributes: any, sMetaPath: string) {
|
|
572
581
|
const aProperties = Object.keys(oAttributes);
|
|
573
582
|
if (aProperties.length) {
|
|
@@ -655,8 +664,8 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
655
664
|
* @alias sap.fe.core.controllerextensions.IntentBasedNavigation#navigateOutbound
|
|
656
665
|
* @since 1.86.0
|
|
657
666
|
**/
|
|
658
|
-
@
|
|
659
|
-
@
|
|
667
|
+
@publicExtension()
|
|
668
|
+
@finalExtension()
|
|
660
669
|
navigateOutbound(sOutbound: string, mNavigationParameters: any) {
|
|
661
670
|
let aNavParams: any[] | undefined;
|
|
662
671
|
const oManifestEntry = this.base.getAppComponent().getManifestEntry("sap.app"),
|
|
@@ -671,7 +680,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
671
680
|
|
|
672
681
|
if (mNavigationParameters) {
|
|
673
682
|
aNavParams = [];
|
|
674
|
-
Object.keys(mNavigationParameters).forEach(function(key: string) {
|
|
683
|
+
Object.keys(mNavigationParameters).forEach(function (key: string) {
|
|
675
684
|
let oParams: any;
|
|
676
685
|
if (Array.isArray(mNavigationParameters[key])) {
|
|
677
686
|
const aValues = mNavigationParameters[key];
|
|
@@ -706,7 +715,7 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
706
715
|
_applyOutboundParams(oSelectionVariant: SelectionVariant, vOutboundParams: any) {
|
|
707
716
|
const aParameters = Object.keys(vOutboundParams);
|
|
708
717
|
const aSelectProperties = oSelectionVariant.getSelectOptionsPropertyNames();
|
|
709
|
-
aParameters.forEach(function(key: string) {
|
|
718
|
+
aParameters.forEach(function (key: string) {
|
|
710
719
|
if (!aSelectProperties.includes(key)) {
|
|
711
720
|
oSelectionVariant.addSelectOption(key, "I", "EQ", vOutboundParams[key]);
|
|
712
721
|
}
|
|
@@ -720,14 +729,14 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
720
729
|
* @param {object} oOutboundParams Parameters defined in the outbounds. Only "plain" is supported
|
|
721
730
|
* @returns {Array} Parameters with the key-Value pair
|
|
722
731
|
**/
|
|
723
|
-
@
|
|
724
|
-
@
|
|
732
|
+
@publicExtension()
|
|
733
|
+
@finalExtension()
|
|
725
734
|
getOutboundParams(oOutboundParams: any) {
|
|
726
735
|
const oParamsMapping: any = {};
|
|
727
736
|
if (oOutboundParams) {
|
|
728
737
|
const aParameters = Object.keys(oOutboundParams) || [];
|
|
729
738
|
if (aParameters.length > 0) {
|
|
730
|
-
aParameters.forEach(function(key: string) {
|
|
739
|
+
aParameters.forEach(function (key: string) {
|
|
731
740
|
const oMapping = oOutboundParams[key];
|
|
732
741
|
if (oMapping.value && oMapping.value.value && oMapping.value.format === "plain") {
|
|
733
742
|
if (!oParamsMapping[key]) {
|
|
@@ -750,8 +759,8 @@ class InternalIntentBasedNavigation extends ControllerExtension {
|
|
|
750
759
|
* @returns {Promise} Promise which is resolved once the navigation is triggered
|
|
751
760
|
*/
|
|
752
761
|
|
|
753
|
-
@
|
|
754
|
-
@
|
|
762
|
+
@publicExtension()
|
|
763
|
+
@finalExtension()
|
|
755
764
|
onChevronPressNavigateOutBound(oController: PageController, sOutboundTarget: string, oContext: any, sCreatePath: string) {
|
|
756
765
|
const oOutbounds = (oController.getAppComponent() as any).getRoutingService().getOutbounds();
|
|
757
766
|
const oDisplayOutbound = oOutbounds[sOutboundTarget];
|