@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,11 +1,11 @@
|
|
|
1
|
-
import Component from "sap/ui/core/Component";
|
|
1
|
+
import type Component from "sap/ui/core/Component";
|
|
2
2
|
import Service from "sap/ui/core/service/Service";
|
|
3
3
|
import ServiceFactory from "sap/ui/core/service/ServiceFactory";
|
|
4
|
-
import Container from "sap/ushell/services/Container";
|
|
5
|
-
import CrossApplicationNavigation from "sap/ushell/services/CrossApplicationNavigation";
|
|
6
|
-
import ShellNavigation from "sap/ushell/services/ShellNavigation";
|
|
7
|
-
import URLParsing from "sap/ushell/services/URLParsing";
|
|
8
|
-
import { ServiceContext } from "types/extension_types";
|
|
4
|
+
import type Container from "sap/ushell/services/Container";
|
|
5
|
+
import type CrossApplicationNavigation from "sap/ushell/services/CrossApplicationNavigation";
|
|
6
|
+
import type ShellNavigation from "sap/ushell/services/ShellNavigation";
|
|
7
|
+
import type URLParsing from "sap/ushell/services/URLParsing";
|
|
8
|
+
import type { ServiceContext } from "types/extension_types";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @interface IShellServices
|
|
@@ -33,6 +33,8 @@ export interface IShellServices {
|
|
|
33
33
|
|
|
34
34
|
createEmptyAppState(oComponent: Component): object;
|
|
35
35
|
|
|
36
|
+
createEmptyAppState(oComponent: Component): Promise<any>;
|
|
37
|
+
|
|
36
38
|
isNavigationSupported(oNavArgumentsArr: Array<object>, oComponent?: object): Promise<any>;
|
|
37
39
|
|
|
38
40
|
isInitialNavigation(): boolean;
|
|
@@ -98,7 +100,7 @@ class ShellServiceMock extends Service<ShellServicesSettings> implements IShellS
|
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
toExternal(/*oNavArgumentsArr: Array<object>, oComponent: object*/) {
|
|
101
|
-
|
|
103
|
+
/* Do Nothing */
|
|
102
104
|
}
|
|
103
105
|
|
|
104
106
|
getStartupAppState(/*oArgs: object*/) {
|
|
@@ -106,14 +108,14 @@ class ShellServiceMock extends Service<ShellServicesSettings> implements IShellS
|
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
backToPreviousApp() {
|
|
109
|
-
|
|
111
|
+
/* Do Nothing */
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
hrefForExternal(/*oArgs?: object, oComponent?: object, bAsync?: boolean*/) {
|
|
113
115
|
return "";
|
|
114
116
|
}
|
|
115
117
|
|
|
116
|
-
hrefForExternalAsync(oArgs?: object, oComponent?: object) {
|
|
118
|
+
hrefForExternalAsync(/*oArgs?: object, oComponent?: object*/) {
|
|
117
119
|
return Promise.resolve({});
|
|
118
120
|
}
|
|
119
121
|
|
|
@@ -125,6 +127,10 @@ class ShellServiceMock extends Service<ShellServicesSettings> implements IShellS
|
|
|
125
127
|
return Promise.resolve({});
|
|
126
128
|
}
|
|
127
129
|
|
|
130
|
+
createEmptyAppStateAsync(/*oComponent: object*/) {
|
|
131
|
+
return Promise.resolve({});
|
|
132
|
+
}
|
|
133
|
+
|
|
128
134
|
isNavigationSupported(/*oNavArgumentsArr: Array<object>, oComponent: object*/) {
|
|
129
135
|
return Promise.resolve({});
|
|
130
136
|
}
|
|
@@ -154,15 +160,15 @@ class ShellServiceMock extends Service<ShellServicesSettings> implements IShellS
|
|
|
154
160
|
}
|
|
155
161
|
|
|
156
162
|
setDirtyFlag(/*bDirty: boolean*/) {
|
|
157
|
-
|
|
163
|
+
/* Do Nothing */
|
|
158
164
|
}
|
|
159
165
|
|
|
160
166
|
registerDirtyStateProvider(/*fnDirtyStateProvider: Function*/) {
|
|
161
|
-
|
|
167
|
+
/* Do Nothing */
|
|
162
168
|
}
|
|
163
169
|
|
|
164
170
|
deregisterDirtyStateProvider(/*fnDirtyStateProvider: Function*/) {
|
|
165
|
-
|
|
171
|
+
/* Do Nothing */
|
|
166
172
|
}
|
|
167
173
|
|
|
168
174
|
createRenderer() {
|
|
@@ -178,23 +184,23 @@ class ShellServiceMock extends Service<ShellServicesSettings> implements IShellS
|
|
|
178
184
|
}
|
|
179
185
|
|
|
180
186
|
registerNavigationFilter(/*fnNavFilter: Function*/): void {
|
|
181
|
-
|
|
187
|
+
/* Do Nothing */
|
|
182
188
|
}
|
|
183
189
|
|
|
184
190
|
unregisterNavigationFilter(/*fnNavFilter: Function*/): void {
|
|
185
|
-
|
|
191
|
+
/* Do Nothing */
|
|
186
192
|
}
|
|
187
193
|
|
|
188
194
|
setBackNavigation(/*fnCallBack?: Function*/): void {
|
|
189
|
-
|
|
195
|
+
/* Do Nothing */
|
|
190
196
|
}
|
|
191
197
|
|
|
192
198
|
setHierarchy(/*aHierarchyLevels: Array<object>*/): void {
|
|
193
|
-
|
|
199
|
+
/* Do Nothing */
|
|
194
200
|
}
|
|
195
201
|
|
|
196
202
|
setTitle(/*sTitle: string*/): void {
|
|
197
|
-
|
|
203
|
+
/* Do Nothing */
|
|
198
204
|
}
|
|
199
205
|
|
|
200
206
|
getContentDensity(): string {
|
|
@@ -225,8 +231,8 @@ export type ShellServicesSettings = {
|
|
|
225
231
|
* Wrap a JQuery Promise within a native {Promise}.
|
|
226
232
|
*
|
|
227
233
|
* @template {object} T
|
|
228
|
-
* @param
|
|
229
|
-
* @returns
|
|
234
|
+
* @param jqueryPromise The original jquery promise
|
|
235
|
+
* @returns A native promise wrapping the same object
|
|
230
236
|
* @private
|
|
231
237
|
*/
|
|
232
238
|
function wrapJQueryPromise<T>(jqueryPromise: jQuery.Promise): Promise<T> {
|
|
@@ -307,9 +313,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
307
313
|
*
|
|
308
314
|
* @private
|
|
309
315
|
* @ui5-restricted
|
|
310
|
-
* @param
|
|
316
|
+
* @param oArgs Check the definition of
|
|
311
317
|
* sap.ushell.services.CrossApplicationNavigation=>getLinks arguments
|
|
312
|
-
* @returns
|
|
318
|
+
* @returns Promise which will be resolved to target links array
|
|
313
319
|
*/
|
|
314
320
|
getLinks(oArgs: object) {
|
|
315
321
|
return new Promise((resolve, reject) => {
|
|
@@ -317,7 +323,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
317
323
|
this.crossAppNavService
|
|
318
324
|
.getLinks(oArgs)
|
|
319
325
|
.fail((oError: any) => {
|
|
320
|
-
reject(new Error(oError
|
|
326
|
+
reject(new Error(`${oError} sap.fe.core.services.NavigationServiceFactory.getLinks`));
|
|
321
327
|
})
|
|
322
328
|
.then(resolve);
|
|
323
329
|
});
|
|
@@ -331,9 +337,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
331
337
|
*
|
|
332
338
|
* @private
|
|
333
339
|
* @ui5-restricted
|
|
334
|
-
* @param
|
|
340
|
+
* @param oArgs Check the definition of
|
|
335
341
|
* sap.ushell.services.CrossApplicationNavigation=>getLinks arguments
|
|
336
|
-
* @returns
|
|
342
|
+
* @returns Promise which will be resolved to target links array
|
|
337
343
|
*/
|
|
338
344
|
getLinksWithCache(oArgs: object): Promise<any[]> {
|
|
339
345
|
return new Promise((resolve, reject) => {
|
|
@@ -350,7 +356,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
350
356
|
this.crossAppNavService
|
|
351
357
|
.getLinks(oCacheResults.newArgs)
|
|
352
358
|
.fail((oError: any) => {
|
|
353
|
-
reject(new Error(oError
|
|
359
|
+
reject(new Error(`${oError} sap.fe.core.services.NavigationServiceFactory.getLinksWithCache`));
|
|
354
360
|
})
|
|
355
361
|
.then((aLinks: any) => {
|
|
356
362
|
if (aLinks.length !== 0) {
|
|
@@ -401,7 +407,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
401
407
|
* @private
|
|
402
408
|
* @ui5-restricted
|
|
403
409
|
* sap.ushell.container
|
|
404
|
-
* @returns
|
|
410
|
+
* @returns Object with predefined shellContainer methods
|
|
405
411
|
*/
|
|
406
412
|
getShellContainer() {
|
|
407
413
|
return this.oShellContainer;
|
|
@@ -412,10 +418,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
412
418
|
*
|
|
413
419
|
* @private
|
|
414
420
|
* @ui5-restricted
|
|
415
|
-
* @param
|
|
416
|
-
* @param
|
|
421
|
+
* @param oNavArgumentsArr And
|
|
422
|
+
* @param oComponent Check the definition of
|
|
417
423
|
* sap.ushell.services.CrossApplicationNavigation=>toExternal arguments
|
|
418
|
-
* @returns {void}
|
|
419
424
|
*/
|
|
420
425
|
toExternal(oNavArgumentsArr: Array<object>, oComponent: object): void {
|
|
421
426
|
this.crossAppNavService.toExternal(oNavArgumentsArr, oComponent);
|
|
@@ -429,9 +434,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
429
434
|
*
|
|
430
435
|
* @private
|
|
431
436
|
* @ui5-restricted
|
|
432
|
-
* @param
|
|
437
|
+
* @param oArgs Check the definition of
|
|
433
438
|
* sap.ushell.services.CrossApplicationNavigation=>getStartupAppState arguments
|
|
434
|
-
* @returns
|
|
439
|
+
* @returns Promise which will be resolved to Object
|
|
435
440
|
*/
|
|
436
441
|
getStartupAppState(oArgs: Component) {
|
|
437
442
|
return new Promise((resolve, reject) => {
|
|
@@ -440,7 +445,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
440
445
|
(this.crossAppNavService as any)
|
|
441
446
|
.getStartupAppState(oArgs)
|
|
442
447
|
.fail((oError: any) => {
|
|
443
|
-
reject(new Error(oError
|
|
448
|
+
reject(new Error(`${oError} sap.fe.core.services.NavigationServiceFactory.getStartupAppState`));
|
|
444
449
|
})
|
|
445
450
|
.then(resolve);
|
|
446
451
|
});
|
|
@@ -449,7 +454,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
449
454
|
/**
|
|
450
455
|
* Will call backToPreviousApp method of CrossApplicationNavigation service.
|
|
451
456
|
*
|
|
452
|
-
* @returns
|
|
457
|
+
* @returns Something that indicate we've navigated
|
|
453
458
|
* @private
|
|
454
459
|
* @ui5-restricted
|
|
455
460
|
*/
|
|
@@ -462,11 +467,11 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
462
467
|
*
|
|
463
468
|
* @private
|
|
464
469
|
* @ui5-restricted
|
|
465
|
-
* @param
|
|
466
|
-
* @param
|
|
467
|
-
* @param
|
|
470
|
+
* @param oArgs Check the definition of
|
|
471
|
+
* @param oComponent The appComponent
|
|
472
|
+
* @param bAsync Whether this call should be async or not
|
|
468
473
|
* sap.ushell.services.CrossApplicationNavigation=>hrefForExternal arguments
|
|
469
|
-
* @returns
|
|
474
|
+
* @returns Promise which will be resolved to string
|
|
470
475
|
*/
|
|
471
476
|
hrefForExternal(oArgs: object, oComponent?: object, bAsync?: boolean) {
|
|
472
477
|
return this.crossAppNavService.hrefForExternal(oArgs, oComponent as object, !!bAsync);
|
|
@@ -477,10 +482,10 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
477
482
|
*
|
|
478
483
|
* @private
|
|
479
484
|
* @ui5-restricted
|
|
480
|
-
* @param
|
|
481
|
-
* @param
|
|
485
|
+
* @param oArgs Check the definition of
|
|
486
|
+
* @param oComponent The appComponent
|
|
482
487
|
* sap.ushell.services.CrossApplicationNavigation=>hrefForExternalAsync arguments
|
|
483
|
-
* @returns
|
|
488
|
+
* @returns Promise which will be resolved to string
|
|
484
489
|
*/
|
|
485
490
|
hrefForExternalAsync(oArgs: object, oComponent?: object) {
|
|
486
491
|
return this.crossAppNavService.hrefForExternalAsync(oArgs, oComponent as object);
|
|
@@ -491,10 +496,10 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
491
496
|
*
|
|
492
497
|
* @private
|
|
493
498
|
* @ui5-restricted
|
|
494
|
-
* @param
|
|
495
|
-
* @param
|
|
499
|
+
* @param oComponent
|
|
500
|
+
* @param sAppStateKey Check the definition of
|
|
496
501
|
* sap.ushell.services.CrossApplicationNavigation=>getAppState arguments
|
|
497
|
-
* @returns
|
|
502
|
+
* @returns Promise which will be resolved to object
|
|
498
503
|
*/
|
|
499
504
|
getAppState(oComponent: Component, sAppStateKey: string) {
|
|
500
505
|
return wrapJQueryPromise((this.crossAppNavService as any).getAppState(oComponent, sAppStateKey));
|
|
@@ -505,23 +510,36 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
505
510
|
*
|
|
506
511
|
* @private
|
|
507
512
|
* @ui5-restricted
|
|
508
|
-
* @param
|
|
513
|
+
* @param oComponent Check the definition of
|
|
509
514
|
* sap.ushell.services.CrossApplicationNavigation=>createEmptyAppState arguments
|
|
510
|
-
* @returns
|
|
515
|
+
* @returns Promise which will be resolved to object
|
|
511
516
|
*/
|
|
512
517
|
createEmptyAppState(oComponent: Component) {
|
|
513
518
|
return (this.crossAppNavService as any).createEmptyAppState(oComponent);
|
|
514
519
|
}
|
|
515
520
|
|
|
521
|
+
/**
|
|
522
|
+
* Will call createEmptyAppStateAsync method of CrossApplicationNavigation service with oComponent.
|
|
523
|
+
*
|
|
524
|
+
* @private
|
|
525
|
+
* @ui5-restricted
|
|
526
|
+
* @param oComponent Check the definition of
|
|
527
|
+
* sap.ushell.services.CrossApplicationNavigation=>createEmptyAppStateAsync arguments
|
|
528
|
+
* @returns Promise which will be resolved to object
|
|
529
|
+
*/
|
|
530
|
+
createEmptyAppStateAsync(oComponent: Component) {
|
|
531
|
+
return (this.crossAppNavService as any).createEmptyAppStateAsync(oComponent);
|
|
532
|
+
}
|
|
533
|
+
|
|
516
534
|
/**
|
|
517
535
|
* Will call isNavigationSupported method of CrossApplicationNavigation service with Navigation Arguments and oComponent.
|
|
518
536
|
*
|
|
519
537
|
* @private
|
|
520
538
|
* @ui5-restricted
|
|
521
|
-
* @param
|
|
522
|
-
* @param
|
|
539
|
+
* @param oNavArgumentsArr
|
|
540
|
+
* @param oComponent Check the definition of
|
|
523
541
|
* sap.ushell.services.CrossApplicationNavigation=>isNavigationSupported arguments
|
|
524
|
-
* @returns
|
|
542
|
+
* @returns Promise which will be resolved to object
|
|
525
543
|
*/
|
|
526
544
|
isNavigationSupported(oNavArgumentsArr: Array<object>, oComponent: object) {
|
|
527
545
|
return wrapJQueryPromise(this.crossAppNavService.isNavigationSupported(oNavArgumentsArr, oComponent));
|
|
@@ -532,7 +550,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
532
550
|
*
|
|
533
551
|
* @private
|
|
534
552
|
* @ui5-restricted
|
|
535
|
-
* @returns
|
|
553
|
+
* @returns Promise which will be resolved to boolean
|
|
536
554
|
*/
|
|
537
555
|
isInitialNavigation() {
|
|
538
556
|
return this.crossAppNavService.isInitialNavigation();
|
|
@@ -543,7 +561,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
543
561
|
*
|
|
544
562
|
* @private
|
|
545
563
|
* @ui5-restricted
|
|
546
|
-
* @returns
|
|
564
|
+
* @returns Promise which will be resolved to boolean
|
|
547
565
|
*/
|
|
548
566
|
isInitialNavigationAsync() {
|
|
549
567
|
return this.crossAppNavService.isInitialNavigationAsync();
|
|
@@ -552,8 +570,8 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
552
570
|
/**
|
|
553
571
|
* Will call expandCompactHash method of CrossApplicationNavigation service.
|
|
554
572
|
*
|
|
555
|
-
* @param
|
|
556
|
-
* @returns
|
|
573
|
+
* @param sHashFragment An (internal format) shell hash
|
|
574
|
+
* @returns A promise the success handler of the resolve promise get an expanded shell hash as first argument
|
|
557
575
|
* @private
|
|
558
576
|
* @ui5-restricted
|
|
559
577
|
*/
|
|
@@ -566,9 +584,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
566
584
|
*
|
|
567
585
|
* @private
|
|
568
586
|
* @ui5-restricted
|
|
569
|
-
* @param
|
|
587
|
+
* @param sHash Check the definition of
|
|
570
588
|
* sap.ushell.services.URLParsing=>parseShellHash arguments
|
|
571
|
-
* @returns
|
|
589
|
+
* @returns The parsed url
|
|
572
590
|
*/
|
|
573
591
|
parseShellHash(sHash: string) {
|
|
574
592
|
return this.urlParsingService.parseShellHash(sHash);
|
|
@@ -579,9 +597,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
579
597
|
*
|
|
580
598
|
* @private
|
|
581
599
|
* @ui5-restricted
|
|
582
|
-
* @param
|
|
600
|
+
* @param sHash Check the definition of
|
|
583
601
|
* sap.ushell.services.URLParsing=>splitHash arguments
|
|
584
|
-
* @returns
|
|
602
|
+
* @returns Promise which will be resolved to object
|
|
585
603
|
*/
|
|
586
604
|
splitHash(sHash: string) {
|
|
587
605
|
return this.urlParsingService.splitHash(sHash);
|
|
@@ -592,9 +610,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
592
610
|
*
|
|
593
611
|
* @private
|
|
594
612
|
* @ui5-restricted
|
|
595
|
-
* @param
|
|
613
|
+
* @param oNewShellHash Check the definition of
|
|
596
614
|
* sap.ushell.services.URLParsing=>constructShellHash arguments
|
|
597
|
-
* @returns
|
|
615
|
+
* @returns Shell Hash string
|
|
598
616
|
*/
|
|
599
617
|
constructShellHash(oNewShellHash: object) {
|
|
600
618
|
return this.urlParsingService.constructShellHash(oNewShellHash);
|
|
@@ -605,7 +623,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
605
623
|
*
|
|
606
624
|
* @private
|
|
607
625
|
* @ui5-restricted
|
|
608
|
-
* @param
|
|
626
|
+
* @param bDirty Check the definition of sap.ushell.Container.setDirtyFlag arguments
|
|
609
627
|
*/
|
|
610
628
|
setDirtyFlag(bDirty: boolean) {
|
|
611
629
|
this.oShellContainer.setDirtyFlag(bDirty);
|
|
@@ -616,7 +634,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
616
634
|
*
|
|
617
635
|
* @private
|
|
618
636
|
* @ui5-restricted
|
|
619
|
-
* @param
|
|
637
|
+
* @param fnDirtyStateProvider Check the definition of sap.ushell.Container.registerDirtyStateProvider arguments
|
|
620
638
|
*/
|
|
621
639
|
registerDirtyStateProvider(fnDirtyStateProvider: Function) {
|
|
622
640
|
this.oShellContainer.registerDirtyStateProvider(fnDirtyStateProvider);
|
|
@@ -627,7 +645,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
627
645
|
*
|
|
628
646
|
* @private
|
|
629
647
|
* @ui5-restricted
|
|
630
|
-
* @param
|
|
648
|
+
* @param fnDirtyStateProvider Check the definition of sap.ushell.Container.deregisterDirtyStateProvider arguments
|
|
631
649
|
*/
|
|
632
650
|
deregisterDirtyStateProvider(fnDirtyStateProvider: Function) {
|
|
633
651
|
this.oShellContainer.deregisterDirtyStateProvider(fnDirtyStateProvider);
|
|
@@ -638,7 +656,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
638
656
|
*
|
|
639
657
|
* @private
|
|
640
658
|
* @ui5-restricted
|
|
641
|
-
* @returns
|
|
659
|
+
* @returns Returns renderer object
|
|
642
660
|
*/
|
|
643
661
|
createRenderer() {
|
|
644
662
|
return this.oShellContainer.createRenderer();
|
|
@@ -649,7 +667,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
649
667
|
*
|
|
650
668
|
* @private
|
|
651
669
|
* @ui5-restricted
|
|
652
|
-
* @returns
|
|
670
|
+
* @returns Returns User object
|
|
653
671
|
*/
|
|
654
672
|
getUser() {
|
|
655
673
|
return (this.oShellContainer as any).getUser();
|
|
@@ -660,7 +678,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
660
678
|
*
|
|
661
679
|
* @private
|
|
662
680
|
* @ui5-restricted
|
|
663
|
-
* @returns
|
|
681
|
+
* @returns Returns true
|
|
664
682
|
*/
|
|
665
683
|
hasUShell() {
|
|
666
684
|
return true;
|
|
@@ -669,8 +687,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
669
687
|
/**
|
|
670
688
|
* Will call registerNavigationFilter method of shellNavigation.
|
|
671
689
|
*
|
|
672
|
-
* @param
|
|
673
|
-
* @returns {void}
|
|
690
|
+
* @param fnNavFilter The filter function to register
|
|
674
691
|
* @private
|
|
675
692
|
* @ui5-restricted
|
|
676
693
|
*/
|
|
@@ -681,8 +698,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
681
698
|
/**
|
|
682
699
|
* Will call unregisterNavigationFilter method of shellNavigation.
|
|
683
700
|
*
|
|
684
|
-
* @param
|
|
685
|
-
* @returns {void}
|
|
701
|
+
* @param fnNavFilter The filter function to unregister
|
|
686
702
|
* @private
|
|
687
703
|
* @ui5-restricted
|
|
688
704
|
*/
|
|
@@ -694,8 +710,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
694
710
|
* Will call setBackNavigation method of ShellUIService
|
|
695
711
|
* that displays the back button in the shell header.
|
|
696
712
|
*
|
|
697
|
-
* @param
|
|
698
|
-
* @returns {void}
|
|
713
|
+
* @param [fnCallBack] A callback function called when the button is clicked in the UI.
|
|
699
714
|
* @private
|
|
700
715
|
* @ui5-restricted
|
|
701
716
|
*/
|
|
@@ -707,8 +722,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
707
722
|
* Will call setHierarchy method of ShellUIService
|
|
708
723
|
* that displays the given hierarchy in the shell header.
|
|
709
724
|
*
|
|
710
|
-
* @param
|
|
711
|
-
* @returns {void}
|
|
725
|
+
* @param [aHierarchyLevels] An array representing hierarchies of the currently displayed app.
|
|
712
726
|
* @private
|
|
713
727
|
* @ui5-restricted
|
|
714
728
|
*/
|
|
@@ -720,8 +734,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
720
734
|
* Will call setTitle method of ShellUIService
|
|
721
735
|
* that displays the given title in the shell header.
|
|
722
736
|
*
|
|
723
|
-
* @param
|
|
724
|
-
* @returns {void}
|
|
737
|
+
* @param [sTitle] The new title. The default title is set if this argument is not given.
|
|
725
738
|
* @private
|
|
726
739
|
* @ui5-restricted
|
|
727
740
|
*/
|
|
@@ -732,10 +745,10 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
732
745
|
/**
|
|
733
746
|
* Retrieves the currently defined content density.
|
|
734
747
|
*
|
|
735
|
-
* @returns
|
|
748
|
+
* @returns The content density value
|
|
736
749
|
*/
|
|
737
750
|
getContentDensity(): string {
|
|
738
|
-
return (
|
|
751
|
+
return (this.oShellContainer as any).getUser().getContentDensity();
|
|
739
752
|
}
|
|
740
753
|
|
|
741
754
|
/**
|
|
@@ -745,9 +758,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
745
758
|
*
|
|
746
759
|
* @private
|
|
747
760
|
* @ui5-restricted
|
|
748
|
-
* @param
|
|
749
|
-
* @param
|
|
750
|
-
* @returns
|
|
761
|
+
* @param sSemanticObject Semantic object.
|
|
762
|
+
* @param mParameters See #CrossApplicationNavigation#getLinks for description.
|
|
763
|
+
* @returns Promise which will be resolved with an object containing the intent if it exists.
|
|
751
764
|
*/
|
|
752
765
|
getPrimaryIntent(sSemanticObject: string, mParameters?: object): Promise<any> {
|
|
753
766
|
return new Promise((resolve, reject) => {
|
|
@@ -755,7 +768,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
755
768
|
this.crossAppNavService
|
|
756
769
|
.getPrimaryIntent(sSemanticObject, mParameters)
|
|
757
770
|
.fail((oError: any) => {
|
|
758
|
-
reject(new Error(oError
|
|
771
|
+
reject(new Error(`${oError} sap.fe.core.services.NavigationServiceFactory.getPrimaryIntent`));
|
|
759
772
|
})
|
|
760
773
|
.then(resolve);
|
|
761
774
|
});
|
|
@@ -771,8 +784,8 @@ class ShellServicesFactory extends ServiceFactory<ShellServicesSettings> {
|
|
|
771
784
|
/**
|
|
772
785
|
* Creates either a standard or a mock Shell service depending on the configuration.
|
|
773
786
|
*
|
|
774
|
-
* @param
|
|
775
|
-
* @returns
|
|
787
|
+
* @param oServiceContext The shellservice context
|
|
788
|
+
* @returns A promise for a shell service implementation
|
|
776
789
|
* @see ServiceFactory#createInstance
|
|
777
790
|
*/
|
|
778
791
|
createInstance(oServiceContext: ServiceContext<ShellServicesSettings>): Promise<IShellServices> {
|