@sapui5/sap.fe.core 1.102.0 → 1.103.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 +5 -5
- package/src/sap/fe/core/.library +1 -1
- package/src/sap/fe/core/AppComponent.js +62 -26
- package/src/sap/fe/core/AppComponent.ts +56 -40
- package/src/sap/fe/core/AppStateHandler.js +10 -10
- package/src/sap/fe/core/AppStateHandler.ts +9 -9
- package/src/sap/fe/core/BaseController.js +11 -9
- package/src/sap/fe/core/BaseController.ts +15 -13
- package/src/sap/fe/core/CommonUtils.js +236 -109
- package/src/sap/fe/core/CommonUtils.ts +252 -136
- package/src/sap/fe/core/ExtensionAPI.js +24 -27
- package/src/sap/fe/core/ExtensionAPI.ts +36 -38
- package/src/sap/fe/core/PageController.js +4 -4
- package/src/sap/fe/core/PageController.ts +4 -5
- package/src/sap/fe/core/TemplateComponent.js +1 -1
- package/src/sap/fe/core/TemplateComponent.ts +6 -6
- package/src/sap/fe/core/TemplateModel.js +1 -1
- package/src/sap/fe/core/TemplateModel.ts +1 -1
- package/src/sap/fe/core/buildingBlocks/AttributeModel.js +1 -1
- package/src/sap/fe/core/buildingBlocks/AttributeModel.ts +1 -1
- package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime.js +8 -8
- package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime.ts +11 -10
- package/src/sap/fe/core/buildingBlocks/TraceInfo.js +27 -27
- package/src/sap/fe/core/buildingBlocks/TraceInfo.ts +28 -26
- package/src/sap/fe/core/controllerextensions/EditFlow.js +129 -118
- package/src/sap/fe/core/controllerextensions/EditFlow.ts +154 -141
- package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.js +9 -9
- package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.ts +10 -10
- package/src/sap/fe/core/controllerextensions/InternalEditFlow.js +31 -26
- package/src/sap/fe/core/controllerextensions/InternalEditFlow.ts +34 -35
- package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.js +70 -70
- package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.ts +77 -77
- package/src/sap/fe/core/controllerextensions/InternalRouting.js +84 -78
- package/src/sap/fe/core/controllerextensions/InternalRouting.ts +105 -101
- package/src/sap/fe/core/controllerextensions/KPIManagement.js +66 -68
- package/src/sap/fe/core/controllerextensions/KPIManagement.ts +106 -123
- package/src/sap/fe/core/controllerextensions/MassEdit.js +8 -8
- package/src/sap/fe/core/controllerextensions/MassEdit.ts +19 -26
- package/src/sap/fe/core/controllerextensions/MessageHandler.js +20 -12
- package/src/sap/fe/core/controllerextensions/MessageHandler.ts +29 -14
- package/src/sap/fe/core/controllerextensions/PageReady.js +97 -25
- package/src/sap/fe/core/controllerextensions/PageReady.ts +94 -34
- package/src/sap/fe/core/controllerextensions/Paginator.js +21 -22
- package/src/sap/fe/core/controllerextensions/Paginator.ts +24 -25
- package/src/sap/fe/core/controllerextensions/Placeholder.js +4 -6
- package/src/sap/fe/core/controllerextensions/Placeholder.ts +12 -14
- package/src/sap/fe/core/controllerextensions/Routing.js +10 -11
- package/src/sap/fe/core/controllerextensions/Routing.ts +12 -13
- package/src/sap/fe/core/controllerextensions/Share.js +22 -22
- package/src/sap/fe/core/controllerextensions/Share.ts +30 -29
- package/src/sap/fe/core/controllerextensions/SideEffects.js +46 -50
- package/src/sap/fe/core/controllerextensions/SideEffects.ts +56 -60
- package/src/sap/fe/core/controllerextensions/ViewState.js +65 -62
- package/src/sap/fe/core/controllerextensions/ViewState.ts +68 -63
- 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 +6 -6
- package/src/sap/fe/core/controllerextensions/collaboration/ActivitySync.ts +12 -17
- package/src/sap/fe/core/controllerextensions/collaboration/CollaborationCommon.js +2 -2
- package/src/sap/fe/core/controllerextensions/collaboration/CollaborationCommon.ts +4 -4
- package/src/sap/fe/core/controllerextensions/collaboration/Manage.js +7 -9
- package/src/sap/fe/core/controllerextensions/collaboration/Manage.ts +18 -19
- package/src/sap/fe/core/controllerextensions/editFlow/TransactionHelper.js +184 -137
- package/src/sap/fe/core/controllerextensions/editFlow/TransactionHelper.ts +253 -206
- package/src/sap/fe/core/controllerextensions/editFlow/draft.js +113 -121
- package/src/sap/fe/core/controllerextensions/editFlow/draft.ts +148 -158
- package/src/sap/fe/core/controllerextensions/editFlow/operations.js +198 -148
- package/src/sap/fe/core/controllerextensions/editFlow/operations.ts +223 -159
- package/src/sap/fe/core/controllerextensions/editFlow/sticky.js +24 -26
- package/src/sap/fe/core/controllerextensions/editFlow/sticky.ts +35 -33
- package/src/sap/fe/core/controllerextensions/messageHandler/messageHandling.js +78 -44
- package/src/sap/fe/core/controllerextensions/messageHandler/messageHandling.ts +90 -60
- package/src/sap/fe/core/controllerextensions/routing/RouterProxy.js +52 -55
- package/src/sap/fe/core/controllerextensions/routing/RouterProxy.ts +55 -58
- 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 +11 -25
- package/src/sap/fe/core/controls/CommandExecution.ts +11 -25
- package/src/sap/fe/core/controls/ConditionalWrapper.js +2 -2
- package/src/sap/fe/core/controls/ConditionalWrapper.ts +3 -3
- package/src/sap/fe/core/controls/CustomFilterFieldContentWrapper.js +22 -22
- package/src/sap/fe/core/controls/CustomFilterFieldContentWrapper.ts +25 -24
- package/src/sap/fe/core/controls/CustomQuickViewPage.js +2 -2
- 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 +2 -2
- package/src/sap/fe/core/controls/FieldWrapper.ts +3 -3
- package/src/sap/fe/core/controls/FileWrapper.js +2 -2
- package/src/sap/fe/core/controls/FileWrapper.ts +11 -11
- package/src/sap/fe/core/controls/FilterBar.js +6 -2
- package/src/sap/fe/core/controls/FilterBar.ts +13 -9
- package/src/sap/fe/core/controls/FormElementWrapper.js +1 -1
- 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/NonComputedVisibleKeyFieldsDialog.fragment.xml +3 -3
- package/src/sap/fe/core/controls/filterbar/VisualFilter.js +16 -12
- package/src/sap/fe/core/controls/filterbar/VisualFilter.ts +20 -22
- package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.js +3 -3
- package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.ts +8 -8
- package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.js +47 -47
- package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.ts +52 -52
- package/src/sap/fe/core/controls/massEdit/MassEditDialog.fragment.xml +8 -2
- 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 +26 -33
- package/src/sap/fe/core/converters/ConverterContext.ts +51 -60
- package/src/sap/fe/core/converters/ManifestSettings.js +1 -1
- package/src/sap/fe/core/converters/ManifestSettings.ts +14 -14
- 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 +50 -32
- package/src/sap/fe/core/converters/MetaModelConverter.ts +145 -127
- 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 +54 -34
- package/src/sap/fe/core/converters/annotations/DataField.ts +97 -75
- package/src/sap/fe/core/converters/common/AnnotationConverter.js +1911 -1495
- package/src/sap/fe/core/converters/controls/Common/Action.js +50 -41
- package/src/sap/fe/core/converters/controls/Common/Action.ts +56 -46
- package/src/sap/fe/core/converters/controls/Common/Chart.js +14 -14
- package/src/sap/fe/core/converters/controls/Common/Chart.ts +23 -26
- 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 +28 -28
- package/src/sap/fe/core/converters/controls/Common/DataVisualization.ts +40 -36
- package/src/sap/fe/core/converters/controls/Common/Form.js +25 -27
- package/src/sap/fe/core/converters/controls/Common/Form.ts +37 -45
- package/src/sap/fe/core/converters/controls/Common/KPI.js +11 -11
- package/src/sap/fe/core/converters/controls/Common/KPI.ts +35 -39
- package/src/sap/fe/core/converters/controls/Common/Table.js +174 -183
- package/src/sap/fe/core/converters/controls/Common/Table.ts +237 -250
- package/src/sap/fe/core/converters/controls/Common/table/StandardActions.js +119 -119
- package/src/sap/fe/core/converters/controls/Common/table/StandardActions.ts +144 -141
- package/src/sap/fe/core/converters/controls/ListReport/FilterBar.js +45 -41
- package/src/sap/fe/core/converters/controls/ListReport/FilterBar.ts +64 -57
- 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 +67 -64
- package/src/sap/fe/core/converters/controls/ObjectPage/HeaderFacet.ts +69 -66
- package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.js +73 -72
- package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.ts +98 -96
- package/src/sap/fe/core/converters/helpers/Aggregation.js +2 -4
- package/src/sap/fe/core/converters/helpers/Aggregation.ts +10 -13
- 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 +4 -4
- package/src/sap/fe/core/converters/helpers/ConfigurableObject.ts +9 -9
- package/src/sap/fe/core/converters/helpers/ID.js +46 -46
- package/src/sap/fe/core/converters/helpers/ID.ts +25 -25
- 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 -4
- 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 +46 -62
- package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.ts +54 -82
- package/src/sap/fe/core/converters/templates/ListReportConverter.js +30 -29
- package/src/sap/fe/core/converters/templates/ListReportConverter.ts +40 -40
- package/src/sap/fe/core/converters/templates/ObjectPageConverter.js +39 -38
- package/src/sap/fe/core/converters/templates/ObjectPageConverter.ts +52 -61
- 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 +89 -0
- package/src/sap/fe/core/formatters/StandardFormatter.ts +64 -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/ValueFormatter.js +8 -8
- package/src/sap/fe/core/formatters/ValueFormatter.ts +9 -9
- package/src/sap/fe/core/helpers/AppStartupHelper.js +15 -15
- package/src/sap/fe/core/helpers/AppStartupHelper.ts +37 -40
- package/src/sap/fe/core/helpers/BindingToolkit.js +1809 -0
- package/src/sap/fe/core/helpers/{BindingExpression.ts → BindingToolkit.ts} +365 -264
- package/src/sap/fe/core/helpers/ClassSupport.js +20 -11
- package/src/sap/fe/core/helpers/ClassSupport.ts +14 -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/MassEditHelper.js +281 -254
- package/src/sap/fe/core/helpers/MassEditHelper.ts +337 -289
- 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/jsx-runtime/jsx.js +1 -1
- package/src/sap/fe/core/jsx-runtime/jsx.ts +8 -8
- package/src/sap/fe/core/library.js +42 -3
- 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 +49 -35
- package/src/sap/fe/core/messagebundle_ar.properties +13 -5
- package/src/sap/fe/core/messagebundle_bg.properties +13 -5
- package/src/sap/fe/core/messagebundle_ca.properties +13 -5
- package/src/sap/fe/core/messagebundle_cs.properties +13 -5
- package/src/sap/fe/core/messagebundle_cy.properties +14 -6
- package/src/sap/fe/core/messagebundle_da.properties +13 -5
- package/src/sap/fe/core/messagebundle_de.properties +15 -7
- package/src/sap/fe/core/messagebundle_el.properties +14 -6
- package/src/sap/fe/core/messagebundle_en.properties +9 -1
- package/src/sap/fe/core/messagebundle_en_GB.properties +11 -3
- package/src/sap/fe/core/messagebundle_en_US_sappsd.properties +7 -1
- package/src/sap/fe/core/messagebundle_en_US_saprigi.properties +9 -1
- package/src/sap/fe/core/messagebundle_en_US_saptrc.properties +44 -85
- package/src/sap/fe/core/messagebundle_es.properties +13 -5
- package/src/sap/fe/core/messagebundle_es_MX.properties +13 -5
- package/src/sap/fe/core/messagebundle_et.properties +13 -5
- package/src/sap/fe/core/messagebundle_fi.properties +14 -6
- package/src/sap/fe/core/messagebundle_fr.properties +14 -6
- package/src/sap/fe/core/messagebundle_fr_CA.properties +14 -6
- package/src/sap/fe/core/messagebundle_hi.properties +14 -6
- package/src/sap/fe/core/messagebundle_hr.properties +14 -6
- package/src/sap/fe/core/messagebundle_hu.properties +13 -5
- package/src/sap/fe/core/messagebundle_id.properties +13 -5
- package/src/sap/fe/core/messagebundle_it.properties +33 -25
- package/src/sap/fe/core/messagebundle_iw.properties +13 -5
- package/src/sap/fe/core/messagebundle_ja.properties +14 -6
- package/src/sap/fe/core/messagebundle_kk.properties +13 -5
- package/src/sap/fe/core/messagebundle_ko.properties +13 -5
- package/src/sap/fe/core/messagebundle_lt.properties +13 -5
- package/src/sap/fe/core/messagebundle_lv.properties +14 -6
- package/src/sap/fe/core/messagebundle_ms.properties +13 -5
- package/src/sap/fe/core/messagebundle_nl.properties +13 -5
- package/src/sap/fe/core/messagebundle_no.properties +13 -5
- package/src/sap/fe/core/messagebundle_pl.properties +13 -5
- package/src/sap/fe/core/messagebundle_pt.properties +13 -5
- package/src/sap/fe/core/messagebundle_pt_PT.properties +14 -6
- package/src/sap/fe/core/messagebundle_ro.properties +13 -5
- package/src/sap/fe/core/messagebundle_ru.properties +13 -5
- package/src/sap/fe/core/messagebundle_sh.properties +13 -5
- package/src/sap/fe/core/messagebundle_sk.properties +13 -5
- package/src/sap/fe/core/messagebundle_sl.properties +17 -9
- package/src/sap/fe/core/messagebundle_sv.properties +14 -6
- package/src/sap/fe/core/messagebundle_th.properties +13 -5
- package/src/sap/fe/core/messagebundle_tr.properties +13 -5
- package/src/sap/fe/core/messagebundle_uk.properties +13 -5
- package/src/sap/fe/core/messagebundle_vi.properties +13 -5
- package/src/sap/fe/core/messagebundle_zh_CN.properties +14 -6
- package/src/sap/fe/core/messagebundle_zh_TW.properties +13 -5
- package/src/sap/fe/core/services/AsyncComponentServiceFactory.js +2 -2
- package/src/sap/fe/core/services/AsyncComponentServiceFactory.ts +5 -5
- package/src/sap/fe/core/services/CacheHandlerServiceFactory.js +2 -2
- package/src/sap/fe/core/services/CacheHandlerServiceFactory.ts +14 -14
- package/src/sap/fe/core/services/EnvironmentServiceFactory.js +1 -1
- package/src/sap/fe/core/services/EnvironmentServiceFactory.ts +3 -2
- package/src/sap/fe/core/services/NavigationServiceFactory.js +53 -44
- package/src/sap/fe/core/services/NavigationServiceFactory.ts +54 -46
- package/src/sap/fe/core/services/ResourceModelServiceFactory.js +2 -2
- package/src/sap/fe/core/services/ResourceModelServiceFactory.ts +4 -4
- package/src/sap/fe/core/services/RoutingServiceFactory.js +55 -55
- package/src/sap/fe/core/services/RoutingServiceFactory.ts +67 -65
- package/src/sap/fe/core/services/ShellServicesFactory.js +72 -76
- package/src/sap/fe/core/services/ShellServicesFactory.ts +76 -82
- package/src/sap/fe/core/services/SideEffectsServiceFactory.js +61 -61
- package/src/sap/fe/core/services/SideEffectsServiceFactory.ts +102 -92
- package/src/sap/fe/core/services/TemplatedViewServiceFactory.js +20 -15
- package/src/sap/fe/core/services/TemplatedViewServiceFactory.ts +26 -21
- 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/templating/CommonFormatters.js +84 -0
- package/src/sap/fe/core/templating/CommonFormatters.ts +86 -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 +16 -15
- package/src/sap/fe/core/templating/DataModelPathHelper.ts +42 -32
- 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 +10 -9
- package/src/sap/fe/core/templating/FilterHelper.ts +13 -13
- 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 +148 -93
- package/src/sap/fe/core/templating/UIFormatters.ts +196 -124
- package/src/sap/fe/core/type/Email.js +2 -2
- 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
|
|
@@ -98,7 +98,7 @@ class ShellServiceMock extends Service<ShellServicesSettings> implements IShellS
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
toExternal(/*oNavArgumentsArr: Array<object>, oComponent: object*/) {
|
|
101
|
-
|
|
101
|
+
/* Do Nothing */
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
getStartupAppState(/*oArgs: object*/) {
|
|
@@ -106,14 +106,14 @@ class ShellServiceMock extends Service<ShellServicesSettings> implements IShellS
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
backToPreviousApp() {
|
|
109
|
-
|
|
109
|
+
/* Do Nothing */
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
hrefForExternal(/*oArgs?: object, oComponent?: object, bAsync?: boolean*/) {
|
|
113
113
|
return "";
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
hrefForExternalAsync(oArgs?: object, oComponent?: object) {
|
|
116
|
+
hrefForExternalAsync(/*oArgs?: object, oComponent?: object*/) {
|
|
117
117
|
return Promise.resolve({});
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -154,15 +154,15 @@ class ShellServiceMock extends Service<ShellServicesSettings> implements IShellS
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
setDirtyFlag(/*bDirty: boolean*/) {
|
|
157
|
-
|
|
157
|
+
/* Do Nothing */
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
registerDirtyStateProvider(/*fnDirtyStateProvider: Function*/) {
|
|
161
|
-
|
|
161
|
+
/* Do Nothing */
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
deregisterDirtyStateProvider(/*fnDirtyStateProvider: Function*/) {
|
|
165
|
-
|
|
165
|
+
/* Do Nothing */
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
createRenderer() {
|
|
@@ -178,23 +178,23 @@ class ShellServiceMock extends Service<ShellServicesSettings> implements IShellS
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
registerNavigationFilter(/*fnNavFilter: Function*/): void {
|
|
181
|
-
|
|
181
|
+
/* Do Nothing */
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
unregisterNavigationFilter(/*fnNavFilter: Function*/): void {
|
|
185
|
-
|
|
185
|
+
/* Do Nothing */
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
setBackNavigation(/*fnCallBack?: Function*/): void {
|
|
189
|
-
|
|
189
|
+
/* Do Nothing */
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
setHierarchy(/*aHierarchyLevels: Array<object>*/): void {
|
|
193
|
-
|
|
193
|
+
/* Do Nothing */
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
setTitle(/*sTitle: string*/): void {
|
|
197
|
-
|
|
197
|
+
/* Do Nothing */
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
getContentDensity(): string {
|
|
@@ -225,8 +225,8 @@ export type ShellServicesSettings = {
|
|
|
225
225
|
* Wrap a JQuery Promise within a native {Promise}.
|
|
226
226
|
*
|
|
227
227
|
* @template {object} T
|
|
228
|
-
* @param
|
|
229
|
-
* @returns
|
|
228
|
+
* @param jqueryPromise The original jquery promise
|
|
229
|
+
* @returns A native promise wrapping the same object
|
|
230
230
|
* @private
|
|
231
231
|
*/
|
|
232
232
|
function wrapJQueryPromise<T>(jqueryPromise: jQuery.Promise): Promise<T> {
|
|
@@ -307,9 +307,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
307
307
|
*
|
|
308
308
|
* @private
|
|
309
309
|
* @ui5-restricted
|
|
310
|
-
* @param
|
|
310
|
+
* @param oArgs Check the definition of
|
|
311
311
|
* sap.ushell.services.CrossApplicationNavigation=>getLinks arguments
|
|
312
|
-
* @returns
|
|
312
|
+
* @returns Promise which will be resolved to target links array
|
|
313
313
|
*/
|
|
314
314
|
getLinks(oArgs: object) {
|
|
315
315
|
return new Promise((resolve, reject) => {
|
|
@@ -317,7 +317,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
317
317
|
this.crossAppNavService
|
|
318
318
|
.getLinks(oArgs)
|
|
319
319
|
.fail((oError: any) => {
|
|
320
|
-
reject(new Error(oError
|
|
320
|
+
reject(new Error(`${oError} sap.fe.core.services.NavigationServiceFactory.getLinks`));
|
|
321
321
|
})
|
|
322
322
|
.then(resolve);
|
|
323
323
|
});
|
|
@@ -331,9 +331,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
331
331
|
*
|
|
332
332
|
* @private
|
|
333
333
|
* @ui5-restricted
|
|
334
|
-
* @param
|
|
334
|
+
* @param oArgs Check the definition of
|
|
335
335
|
* sap.ushell.services.CrossApplicationNavigation=>getLinks arguments
|
|
336
|
-
* @returns
|
|
336
|
+
* @returns Promise which will be resolved to target links array
|
|
337
337
|
*/
|
|
338
338
|
getLinksWithCache(oArgs: object): Promise<any[]> {
|
|
339
339
|
return new Promise((resolve, reject) => {
|
|
@@ -350,7 +350,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
350
350
|
this.crossAppNavService
|
|
351
351
|
.getLinks(oCacheResults.newArgs)
|
|
352
352
|
.fail((oError: any) => {
|
|
353
|
-
reject(new Error(oError
|
|
353
|
+
reject(new Error(`${oError} sap.fe.core.services.NavigationServiceFactory.getLinksWithCache`));
|
|
354
354
|
})
|
|
355
355
|
.then((aLinks: any) => {
|
|
356
356
|
if (aLinks.length !== 0) {
|
|
@@ -401,7 +401,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
401
401
|
* @private
|
|
402
402
|
* @ui5-restricted
|
|
403
403
|
* sap.ushell.container
|
|
404
|
-
* @returns
|
|
404
|
+
* @returns Object with predefined shellContainer methods
|
|
405
405
|
*/
|
|
406
406
|
getShellContainer() {
|
|
407
407
|
return this.oShellContainer;
|
|
@@ -412,10 +412,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
412
412
|
*
|
|
413
413
|
* @private
|
|
414
414
|
* @ui5-restricted
|
|
415
|
-
* @param
|
|
416
|
-
* @param
|
|
415
|
+
* @param oNavArgumentsArr And
|
|
416
|
+
* @param oComponent Check the definition of
|
|
417
417
|
* sap.ushell.services.CrossApplicationNavigation=>toExternal arguments
|
|
418
|
-
* @returns {void}
|
|
419
418
|
*/
|
|
420
419
|
toExternal(oNavArgumentsArr: Array<object>, oComponent: object): void {
|
|
421
420
|
this.crossAppNavService.toExternal(oNavArgumentsArr, oComponent);
|
|
@@ -429,9 +428,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
429
428
|
*
|
|
430
429
|
* @private
|
|
431
430
|
* @ui5-restricted
|
|
432
|
-
* @param
|
|
431
|
+
* @param oArgs Check the definition of
|
|
433
432
|
* sap.ushell.services.CrossApplicationNavigation=>getStartupAppState arguments
|
|
434
|
-
* @returns
|
|
433
|
+
* @returns Promise which will be resolved to Object
|
|
435
434
|
*/
|
|
436
435
|
getStartupAppState(oArgs: Component) {
|
|
437
436
|
return new Promise((resolve, reject) => {
|
|
@@ -440,7 +439,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
440
439
|
(this.crossAppNavService as any)
|
|
441
440
|
.getStartupAppState(oArgs)
|
|
442
441
|
.fail((oError: any) => {
|
|
443
|
-
reject(new Error(oError
|
|
442
|
+
reject(new Error(`${oError} sap.fe.core.services.NavigationServiceFactory.getStartupAppState`));
|
|
444
443
|
})
|
|
445
444
|
.then(resolve);
|
|
446
445
|
});
|
|
@@ -449,7 +448,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
449
448
|
/**
|
|
450
449
|
* Will call backToPreviousApp method of CrossApplicationNavigation service.
|
|
451
450
|
*
|
|
452
|
-
* @returns
|
|
451
|
+
* @returns Something that indicate we've navigated
|
|
453
452
|
* @private
|
|
454
453
|
* @ui5-restricted
|
|
455
454
|
*/
|
|
@@ -462,11 +461,11 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
462
461
|
*
|
|
463
462
|
* @private
|
|
464
463
|
* @ui5-restricted
|
|
465
|
-
* @param
|
|
466
|
-
* @param
|
|
467
|
-
* @param
|
|
464
|
+
* @param oArgs Check the definition of
|
|
465
|
+
* @param oComponent The appComponent
|
|
466
|
+
* @param bAsync Whether this call should be async or not
|
|
468
467
|
* sap.ushell.services.CrossApplicationNavigation=>hrefForExternal arguments
|
|
469
|
-
* @returns
|
|
468
|
+
* @returns Promise which will be resolved to string
|
|
470
469
|
*/
|
|
471
470
|
hrefForExternal(oArgs: object, oComponent?: object, bAsync?: boolean) {
|
|
472
471
|
return this.crossAppNavService.hrefForExternal(oArgs, oComponent as object, !!bAsync);
|
|
@@ -477,10 +476,10 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
477
476
|
*
|
|
478
477
|
* @private
|
|
479
478
|
* @ui5-restricted
|
|
480
|
-
* @param
|
|
481
|
-
* @param
|
|
479
|
+
* @param oArgs Check the definition of
|
|
480
|
+
* @param oComponent The appComponent
|
|
482
481
|
* sap.ushell.services.CrossApplicationNavigation=>hrefForExternalAsync arguments
|
|
483
|
-
* @returns
|
|
482
|
+
* @returns Promise which will be resolved to string
|
|
484
483
|
*/
|
|
485
484
|
hrefForExternalAsync(oArgs: object, oComponent?: object) {
|
|
486
485
|
return this.crossAppNavService.hrefForExternalAsync(oArgs, oComponent as object);
|
|
@@ -491,10 +490,10 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
491
490
|
*
|
|
492
491
|
* @private
|
|
493
492
|
* @ui5-restricted
|
|
494
|
-
* @param
|
|
495
|
-
* @param
|
|
493
|
+
* @param oComponent
|
|
494
|
+
* @param sAppStateKey Check the definition of
|
|
496
495
|
* sap.ushell.services.CrossApplicationNavigation=>getAppState arguments
|
|
497
|
-
* @returns
|
|
496
|
+
* @returns Promise which will be resolved to object
|
|
498
497
|
*/
|
|
499
498
|
getAppState(oComponent: Component, sAppStateKey: string) {
|
|
500
499
|
return wrapJQueryPromise((this.crossAppNavService as any).getAppState(oComponent, sAppStateKey));
|
|
@@ -505,9 +504,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
505
504
|
*
|
|
506
505
|
* @private
|
|
507
506
|
* @ui5-restricted
|
|
508
|
-
* @param
|
|
507
|
+
* @param oComponent Check the definition of
|
|
509
508
|
* sap.ushell.services.CrossApplicationNavigation=>createEmptyAppState arguments
|
|
510
|
-
* @returns
|
|
509
|
+
* @returns Promise which will be resolved to object
|
|
511
510
|
*/
|
|
512
511
|
createEmptyAppState(oComponent: Component) {
|
|
513
512
|
return (this.crossAppNavService as any).createEmptyAppState(oComponent);
|
|
@@ -518,10 +517,10 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
518
517
|
*
|
|
519
518
|
* @private
|
|
520
519
|
* @ui5-restricted
|
|
521
|
-
* @param
|
|
522
|
-
* @param
|
|
520
|
+
* @param oNavArgumentsArr
|
|
521
|
+
* @param oComponent Check the definition of
|
|
523
522
|
* sap.ushell.services.CrossApplicationNavigation=>isNavigationSupported arguments
|
|
524
|
-
* @returns
|
|
523
|
+
* @returns Promise which will be resolved to object
|
|
525
524
|
*/
|
|
526
525
|
isNavigationSupported(oNavArgumentsArr: Array<object>, oComponent: object) {
|
|
527
526
|
return wrapJQueryPromise(this.crossAppNavService.isNavigationSupported(oNavArgumentsArr, oComponent));
|
|
@@ -532,7 +531,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
532
531
|
*
|
|
533
532
|
* @private
|
|
534
533
|
* @ui5-restricted
|
|
535
|
-
* @returns
|
|
534
|
+
* @returns Promise which will be resolved to boolean
|
|
536
535
|
*/
|
|
537
536
|
isInitialNavigation() {
|
|
538
537
|
return this.crossAppNavService.isInitialNavigation();
|
|
@@ -543,7 +542,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
543
542
|
*
|
|
544
543
|
* @private
|
|
545
544
|
* @ui5-restricted
|
|
546
|
-
* @returns
|
|
545
|
+
* @returns Promise which will be resolved to boolean
|
|
547
546
|
*/
|
|
548
547
|
isInitialNavigationAsync() {
|
|
549
548
|
return this.crossAppNavService.isInitialNavigationAsync();
|
|
@@ -552,8 +551,8 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
552
551
|
/**
|
|
553
552
|
* Will call expandCompactHash method of CrossApplicationNavigation service.
|
|
554
553
|
*
|
|
555
|
-
* @param
|
|
556
|
-
* @returns
|
|
554
|
+
* @param sHashFragment An (internal format) shell hash
|
|
555
|
+
* @returns A promise the success handler of the resolve promise get an expanded shell hash as first argument
|
|
557
556
|
* @private
|
|
558
557
|
* @ui5-restricted
|
|
559
558
|
*/
|
|
@@ -566,9 +565,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
566
565
|
*
|
|
567
566
|
* @private
|
|
568
567
|
* @ui5-restricted
|
|
569
|
-
* @param
|
|
568
|
+
* @param sHash Check the definition of
|
|
570
569
|
* sap.ushell.services.URLParsing=>parseShellHash arguments
|
|
571
|
-
* @returns
|
|
570
|
+
* @returns The parsed url
|
|
572
571
|
*/
|
|
573
572
|
parseShellHash(sHash: string) {
|
|
574
573
|
return this.urlParsingService.parseShellHash(sHash);
|
|
@@ -579,9 +578,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
579
578
|
*
|
|
580
579
|
* @private
|
|
581
580
|
* @ui5-restricted
|
|
582
|
-
* @param
|
|
581
|
+
* @param sHash Check the definition of
|
|
583
582
|
* sap.ushell.services.URLParsing=>splitHash arguments
|
|
584
|
-
* @returns
|
|
583
|
+
* @returns Promise which will be resolved to object
|
|
585
584
|
*/
|
|
586
585
|
splitHash(sHash: string) {
|
|
587
586
|
return this.urlParsingService.splitHash(sHash);
|
|
@@ -592,9 +591,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
592
591
|
*
|
|
593
592
|
* @private
|
|
594
593
|
* @ui5-restricted
|
|
595
|
-
* @param
|
|
594
|
+
* @param oNewShellHash Check the definition of
|
|
596
595
|
* sap.ushell.services.URLParsing=>constructShellHash arguments
|
|
597
|
-
* @returns
|
|
596
|
+
* @returns Shell Hash string
|
|
598
597
|
*/
|
|
599
598
|
constructShellHash(oNewShellHash: object) {
|
|
600
599
|
return this.urlParsingService.constructShellHash(oNewShellHash);
|
|
@@ -605,7 +604,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
605
604
|
*
|
|
606
605
|
* @private
|
|
607
606
|
* @ui5-restricted
|
|
608
|
-
* @param
|
|
607
|
+
* @param bDirty Check the definition of sap.ushell.Container.setDirtyFlag arguments
|
|
609
608
|
*/
|
|
610
609
|
setDirtyFlag(bDirty: boolean) {
|
|
611
610
|
this.oShellContainer.setDirtyFlag(bDirty);
|
|
@@ -616,7 +615,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
616
615
|
*
|
|
617
616
|
* @private
|
|
618
617
|
* @ui5-restricted
|
|
619
|
-
* @param
|
|
618
|
+
* @param fnDirtyStateProvider Check the definition of sap.ushell.Container.registerDirtyStateProvider arguments
|
|
620
619
|
*/
|
|
621
620
|
registerDirtyStateProvider(fnDirtyStateProvider: Function) {
|
|
622
621
|
this.oShellContainer.registerDirtyStateProvider(fnDirtyStateProvider);
|
|
@@ -627,7 +626,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
627
626
|
*
|
|
628
627
|
* @private
|
|
629
628
|
* @ui5-restricted
|
|
630
|
-
* @param
|
|
629
|
+
* @param fnDirtyStateProvider Check the definition of sap.ushell.Container.deregisterDirtyStateProvider arguments
|
|
631
630
|
*/
|
|
632
631
|
deregisterDirtyStateProvider(fnDirtyStateProvider: Function) {
|
|
633
632
|
this.oShellContainer.deregisterDirtyStateProvider(fnDirtyStateProvider);
|
|
@@ -638,7 +637,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
638
637
|
*
|
|
639
638
|
* @private
|
|
640
639
|
* @ui5-restricted
|
|
641
|
-
* @returns
|
|
640
|
+
* @returns Returns renderer object
|
|
642
641
|
*/
|
|
643
642
|
createRenderer() {
|
|
644
643
|
return this.oShellContainer.createRenderer();
|
|
@@ -649,7 +648,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
649
648
|
*
|
|
650
649
|
* @private
|
|
651
650
|
* @ui5-restricted
|
|
652
|
-
* @returns
|
|
651
|
+
* @returns Returns User object
|
|
653
652
|
*/
|
|
654
653
|
getUser() {
|
|
655
654
|
return (this.oShellContainer as any).getUser();
|
|
@@ -660,7 +659,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
660
659
|
*
|
|
661
660
|
* @private
|
|
662
661
|
* @ui5-restricted
|
|
663
|
-
* @returns
|
|
662
|
+
* @returns Returns true
|
|
664
663
|
*/
|
|
665
664
|
hasUShell() {
|
|
666
665
|
return true;
|
|
@@ -669,8 +668,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
669
668
|
/**
|
|
670
669
|
* Will call registerNavigationFilter method of shellNavigation.
|
|
671
670
|
*
|
|
672
|
-
* @param
|
|
673
|
-
* @returns {void}
|
|
671
|
+
* @param fnNavFilter The filter function to register
|
|
674
672
|
* @private
|
|
675
673
|
* @ui5-restricted
|
|
676
674
|
*/
|
|
@@ -681,8 +679,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
681
679
|
/**
|
|
682
680
|
* Will call unregisterNavigationFilter method of shellNavigation.
|
|
683
681
|
*
|
|
684
|
-
* @param
|
|
685
|
-
* @returns {void}
|
|
682
|
+
* @param fnNavFilter The filter function to unregister
|
|
686
683
|
* @private
|
|
687
684
|
* @ui5-restricted
|
|
688
685
|
*/
|
|
@@ -694,8 +691,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
694
691
|
* Will call setBackNavigation method of ShellUIService
|
|
695
692
|
* that displays the back button in the shell header.
|
|
696
693
|
*
|
|
697
|
-
* @param
|
|
698
|
-
* @returns {void}
|
|
694
|
+
* @param [fnCallBack] A callback function called when the button is clicked in the UI.
|
|
699
695
|
* @private
|
|
700
696
|
* @ui5-restricted
|
|
701
697
|
*/
|
|
@@ -707,8 +703,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
707
703
|
* Will call setHierarchy method of ShellUIService
|
|
708
704
|
* that displays the given hierarchy in the shell header.
|
|
709
705
|
*
|
|
710
|
-
* @param
|
|
711
|
-
* @returns {void}
|
|
706
|
+
* @param [aHierarchyLevels] An array representing hierarchies of the currently displayed app.
|
|
712
707
|
* @private
|
|
713
708
|
* @ui5-restricted
|
|
714
709
|
*/
|
|
@@ -720,8 +715,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
720
715
|
* Will call setTitle method of ShellUIService
|
|
721
716
|
* that displays the given title in the shell header.
|
|
722
717
|
*
|
|
723
|
-
* @param
|
|
724
|
-
* @returns {void}
|
|
718
|
+
* @param [sTitle] The new title. The default title is set if this argument is not given.
|
|
725
719
|
* @private
|
|
726
720
|
* @ui5-restricted
|
|
727
721
|
*/
|
|
@@ -732,10 +726,10 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
732
726
|
/**
|
|
733
727
|
* Retrieves the currently defined content density.
|
|
734
728
|
*
|
|
735
|
-
* @returns
|
|
729
|
+
* @returns The content density value
|
|
736
730
|
*/
|
|
737
731
|
getContentDensity(): string {
|
|
738
|
-
return (
|
|
732
|
+
return (this.oShellContainer as any).getUser().getContentDensity();
|
|
739
733
|
}
|
|
740
734
|
|
|
741
735
|
/**
|
|
@@ -745,9 +739,9 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
745
739
|
*
|
|
746
740
|
* @private
|
|
747
741
|
* @ui5-restricted
|
|
748
|
-
* @param
|
|
749
|
-
* @param
|
|
750
|
-
* @returns
|
|
742
|
+
* @param sSemanticObject Semantic object.
|
|
743
|
+
* @param mParameters See #CrossApplicationNavigation#getLinks for description.
|
|
744
|
+
* @returns Promise which will be resolved with an object containing the intent if it exists.
|
|
751
745
|
*/
|
|
752
746
|
getPrimaryIntent(sSemanticObject: string, mParameters?: object): Promise<any> {
|
|
753
747
|
return new Promise((resolve, reject) => {
|
|
@@ -755,7 +749,7 @@ class ShellServices extends Service<Required<ShellServicesSettings>> implements
|
|
|
755
749
|
this.crossAppNavService
|
|
756
750
|
.getPrimaryIntent(sSemanticObject, mParameters)
|
|
757
751
|
.fail((oError: any) => {
|
|
758
|
-
reject(new Error(oError
|
|
752
|
+
reject(new Error(`${oError} sap.fe.core.services.NavigationServiceFactory.getPrimaryIntent`));
|
|
759
753
|
})
|
|
760
754
|
.then(resolve);
|
|
761
755
|
});
|
|
@@ -771,8 +765,8 @@ class ShellServicesFactory extends ServiceFactory<ShellServicesSettings> {
|
|
|
771
765
|
/**
|
|
772
766
|
* Creates either a standard or a mock Shell service depending on the configuration.
|
|
773
767
|
*
|
|
774
|
-
* @param
|
|
775
|
-
* @returns
|
|
768
|
+
* @param oServiceContext The shellservice context
|
|
769
|
+
* @returns A promise for a shell service implementation
|
|
776
770
|
* @see ServiceFactory#createInstance
|
|
777
771
|
*/
|
|
778
772
|
createInstance(oServiceContext: ServiceContext<ShellServicesSettings>): Promise<IShellServices> {
|