@sapui5/sap.fe.core 1.99.0 → 1.101.1
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 -4
- package/src/sap/fe/core/.library +2 -3
- package/src/sap/fe/core/AnnotationHelper.js +43 -92
- package/src/sap/fe/core/AnnotationHelper.ts +43 -107
- package/src/sap/fe/core/AppComponent.js +381 -399
- package/src/sap/fe/core/AppComponent.ts +397 -0
- package/src/sap/fe/core/AppStateHandler.js +131 -162
- package/src/sap/fe/core/AppStateHandler.ts +2 -2
- package/src/sap/fe/core/BaseController.js +82 -58
- package/src/sap/fe/core/BaseController.ts +67 -0
- package/src/sap/fe/core/CommonUtils.js +179 -31
- package/src/sap/fe/core/CommonUtils.ts +295 -125
- package/src/sap/fe/core/ExtensionAPI.js +279 -274
- package/src/sap/fe/core/ExtensionAPI.ts +242 -0
- package/src/sap/fe/core/PageController.js +158 -29
- package/src/sap/fe/core/PageController.ts +65 -37
- package/src/sap/fe/core/RouterProxy.js +700 -750
- package/src/sap/fe/core/RouterProxy.ts +47 -31
- package/src/sap/fe/core/Synchronization.js +21 -31
- package/src/sap/fe/core/TemplateComponent.js +193 -118
- package/src/sap/fe/core/TemplateComponent.ts +104 -109
- package/src/sap/fe/core/TemplateModel.js +24 -44
- package/src/sap/fe/core/TemplateModel.ts +3 -3
- package/src/sap/fe/core/TransactionHelper.js +1368 -1369
- package/src/sap/fe/core/TransactionHelper.ts +201 -171
- package/src/sap/fe/core/actions/collaboration/ActivitySync.js +406 -0
- package/src/sap/fe/core/actions/collaboration/ActivitySync.ts +362 -0
- package/src/sap/fe/core/actions/collaboration/CollaborationCommon.js +146 -0
- package/src/sap/fe/core/actions/collaboration/CollaborationCommon.ts +129 -0
- package/src/sap/fe/core/actions/collaboration/Manage.js +264 -0
- package/src/sap/fe/core/actions/collaboration/Manage.ts +246 -0
- package/src/sap/fe/core/actions/collaboration/ManageDialog.fragment.xml +100 -0
- package/src/sap/fe/core/actions/collaboration/UserDetails.fragment.xml +13 -0
- package/src/sap/fe/core/actions/draft.js +324 -220
- package/src/sap/fe/core/actions/draft.ts +209 -133
- package/src/sap/fe/core/actions/messageHandling.js +79 -48
- package/src/sap/fe/core/actions/messageHandling.ts +113 -83
- package/src/sap/fe/core/actions/operations.js +37 -18
- package/src/sap/fe/core/actions/operations.ts +51 -20
- package/src/sap/fe/core/actions/sticky.js +17 -4
- package/src/sap/fe/core/actions/sticky.ts +21 -4
- 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 +707 -0
- package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime.ts +628 -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/controllerextensions/EditFlow.js +1854 -1669
- package/src/sap/fe/core/controllerextensions/EditFlow.ts +1792 -0
- package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.js +79 -54
- package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.ts +60 -0
- package/src/sap/fe/core/controllerextensions/InternalEditFlow.js +716 -779
- package/src/sap/fe/core/controllerextensions/InternalEditFlow.ts +785 -0
- package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.js +796 -816
- package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.ts +810 -0
- package/src/sap/fe/core/controllerextensions/InternalRouting.js +1056 -1005
- package/src/sap/fe/core/controllerextensions/InternalRouting.ts +1001 -0
- package/src/sap/fe/core/controllerextensions/KPIManagement.js +498 -532
- package/src/sap/fe/core/controllerextensions/KPIManagement.ts +13 -12
- package/src/sap/fe/core/controllerextensions/MassEdit.js +141 -169
- package/src/sap/fe/core/controllerextensions/MassEdit.ts +155 -0
- package/src/sap/fe/core/controllerextensions/MessageHandler.js +221 -244
- package/src/sap/fe/core/controllerextensions/MessageHandler.ts +215 -0
- package/src/sap/fe/core/controllerextensions/PageReady.js +312 -345
- package/src/sap/fe/core/controllerextensions/PageReady.ts +57 -53
- package/src/sap/fe/core/controllerextensions/Paginator.js +188 -175
- package/src/sap/fe/core/controllerextensions/Paginator.ts +169 -0
- package/src/sap/fe/core/controllerextensions/Placeholder.js +157 -149
- package/src/sap/fe/core/controllerextensions/Placeholder.ts +149 -0
- package/src/sap/fe/core/controllerextensions/Routing.js +144 -125
- package/src/sap/fe/core/controllerextensions/Routing.ts +131 -0
- package/src/sap/fe/core/controllerextensions/RoutingListener.js +7 -6
- package/src/sap/fe/core/controllerextensions/RoutingListener.ts +3 -0
- package/src/sap/fe/core/controllerextensions/Share.js +230 -268
- package/src/sap/fe/core/controllerextensions/Share.ts +231 -0
- package/src/sap/fe/core/controllerextensions/SideEffects.js +603 -644
- package/src/sap/fe/core/controllerextensions/SideEffects.ts +68 -68
- package/src/sap/fe/core/controllerextensions/ViewState.js +774 -806
- package/src/sap/fe/core/controllerextensions/ViewState.ts +796 -0
- package/src/sap/fe/core/controls/ActionParameterDialog.fragment.xml +2 -2
- package/src/sap/fe/core/controls/ActionPartial.fragment.xml +2 -2
- 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 +92 -68
- package/src/sap/fe/core/controls/CommandExecution.ts +72 -0
- package/src/sap/fe/core/controls/ConditionalWrapper.js +165 -79
- package/src/sap/fe/core/controls/ConditionalWrapper.ts +74 -0
- package/src/sap/fe/core/controls/CustomFilterFieldContentWrapper.js +366 -0
- package/src/sap/fe/core/controls/CustomFilterFieldContentWrapper.ts +278 -0
- package/src/sap/fe/core/controls/CustomQuickViewPage.js +167 -125
- package/src/sap/fe/core/controls/CustomQuickViewPage.ts +116 -0
- package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossDraft.fragment.xml +44 -5
- package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.js +163 -122
- package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.ts +155 -0
- package/src/sap/fe/core/controls/FieldWrapper.js +212 -141
- package/src/sap/fe/core/controls/FieldWrapper.ts +104 -0
- package/src/sap/fe/core/controls/FileWrapper.js +313 -0
- package/src/sap/fe/core/controls/FileWrapper.ts +169 -0
- package/src/sap/fe/core/controls/FilterBar.js +197 -159
- package/src/sap/fe/core/controls/FilterBar.ts +148 -0
- package/src/sap/fe/core/controls/FormElementWrapper.js +100 -39
- package/src/sap/fe/core/controls/FormElementWrapper.ts +37 -0
- package/src/sap/fe/core/controls/MultiValueParameterDelegate.js +37 -42
- package/src/sap/fe/core/controls/MultiValueParameterDelegate.ts +31 -0
- package/src/sap/fe/core/controls/filterbar/FilterContainer.js +147 -115
- package/src/sap/fe/core/controls/filterbar/FilterContainer.ts +102 -0
- package/src/sap/fe/core/controls/filterbar/VisualFilter.js +300 -265
- package/src/sap/fe/core/controls/filterbar/VisualFilter.ts +252 -0
- package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.js +185 -140
- package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.ts +125 -0
- package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.js +335 -322
- package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.ts +337 -0
- package/src/sap/fe/core/controls/massEdit/MassEditDialog.fragment.xml +37 -42
- package/src/sap/fe/core/controls/massEdit/MassEditHandlers.js +75 -74
- package/src/sap/fe/core/controls/massEdit/MassEditHandlers.ts +71 -0
- package/src/sap/fe/core/converters/ConverterContext.js +348 -379
- package/src/sap/fe/core/converters/ConverterContext.ts +19 -16
- package/src/sap/fe/core/converters/ManifestSettings.js +13 -1
- package/src/sap/fe/core/converters/ManifestSettings.ts +17 -2
- package/src/sap/fe/core/converters/ManifestWrapper.js +354 -378
- package/src/sap/fe/core/converters/ManifestWrapper.ts +10 -0
- package/src/sap/fe/core/converters/MetaModelConverter.js +6 -4
- package/src/sap/fe/core/converters/MetaModelConverter.ts +5 -2
- package/src/sap/fe/core/converters/TemplateConverter.js +1 -1
- package/src/sap/fe/core/converters/TemplateConverter.ts +2 -1
- package/src/sap/fe/core/converters/annotations/DataField.js +26 -13
- package/src/sap/fe/core/converters/annotations/DataField.ts +40 -17
- package/src/sap/fe/core/converters/controls/Common/Action.js +10 -10
- package/src/sap/fe/core/converters/controls/Common/Action.ts +20 -19
- package/src/sap/fe/core/converters/controls/Common/Chart.js +8 -8
- package/src/sap/fe/core/converters/controls/Common/Chart.ts +12 -11
- package/src/sap/fe/core/converters/controls/Common/Form.js +6 -6
- package/src/sap/fe/core/converters/controls/Common/Form.ts +7 -3
- package/src/sap/fe/core/converters/controls/Common/KPI.js +1 -1
- package/src/sap/fe/core/converters/controls/Common/KPI.ts +2 -2
- package/src/sap/fe/core/converters/controls/Common/Table.js +326 -86
- package/src/sap/fe/core/converters/controls/Common/Table.ts +384 -167
- package/src/sap/fe/core/converters/controls/Common/table/StandardActions.js +120 -55
- package/src/sap/fe/core/converters/controls/Common/table/StandardActions.ts +158 -98
- package/src/sap/fe/core/converters/controls/ListReport/FilterBar.js +206 -223
- package/src/sap/fe/core/converters/controls/ListReport/FilterBar.ts +263 -287
- 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 +5 -2
- package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.ts +4 -1
- package/src/sap/fe/core/converters/helpers/Aggregation.js +115 -133
- package/src/sap/fe/core/converters/helpers/BindingHelper.js +20 -6
- package/src/sap/fe/core/converters/helpers/BindingHelper.ts +16 -4
- package/src/sap/fe/core/converters/helpers/ConfigurableObject.js +12 -1
- package/src/sap/fe/core/converters/helpers/ConfigurableObject.ts +11 -0
- package/src/sap/fe/core/converters/helpers/Key.js +42 -57
- package/src/sap/fe/core/converters/helpers/Key.ts +1 -1
- 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 +51 -27
- package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.ts +69 -43
- package/src/sap/fe/core/converters/templates/ListReportConverter.js +42 -25
- package/src/sap/fe/core/converters/templates/ListReportConverter.ts +91 -65
- package/src/sap/fe/core/converters/templates/ObjectPageConverter.js +11 -9
- package/src/sap/fe/core/converters/templates/ObjectPageConverter.ts +8 -8
- package/src/sap/fe/core/designtime/AppComponent.designtime.js +92 -98
- package/src/sap/fe/core/designtime/AppComponent.designtime.ts +91 -0
- package/src/sap/fe/core/formatters/CollaborationFormatter.js +104 -0
- package/src/sap/fe/core/formatters/CollaborationFormatter.ts +60 -0
- 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 +53 -2
- package/src/sap/fe/core/formatters/TableFormatter.ts +51 -0
- 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 +80 -55
- package/src/sap/fe/core/fpm/Component.ts +43 -0
- package/src/sap/fe/core/helpers/AppStartupHelper.js +323 -309
- package/src/sap/fe/core/helpers/AppStartupHelper.ts +363 -337
- package/src/sap/fe/core/helpers/BindingExpression.js +7 -7
- package/src/sap/fe/core/helpers/BindingExpression.ts +7 -7
- package/src/sap/fe/core/helpers/ClassSupport.js +307 -166
- package/src/sap/fe/core/helpers/ClassSupport.ts +348 -155
- package/src/sap/fe/core/helpers/DynamicAnnotationPathHelper.js +5 -4
- package/src/sap/fe/core/helpers/DynamicAnnotationPathHelper.ts +1 -5
- package/src/sap/fe/core/helpers/FPMHelper.js +1 -1
- package/src/sap/fe/core/helpers/FPMHelper.ts +1 -1
- package/src/sap/fe/core/helpers/MassEditHelper.js +735 -684
- package/src/sap/fe/core/helpers/MassEditHelper.ts +803 -0
- package/src/sap/fe/core/helpers/ModelHelper.js +53 -1
- package/src/sap/fe/core/helpers/ModelHelper.ts +46 -0
- 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 +7 -3
- package/src/sap/fe/core/helpers/SemanticDateOperators.ts +7 -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 +1 -7
- package/src/sap/fe/core/helpers/StableIdHelper.ts +0 -4
- 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 +425 -451
- package/src/sap/fe/core/library.support.js +22 -33
- package/src/sap/fe/core/library.support.ts +23 -0
- package/src/sap/fe/core/library.ts +420 -0
- package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.js +5 -3
- package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.ts +4 -4
- package/src/sap/fe/core/messagebundle.properties +45 -13
- package/src/sap/fe/core/messagebundle_ar.properties +29 -7
- package/src/sap/fe/core/messagebundle_bg.properties +29 -7
- package/src/sap/fe/core/messagebundle_ca.properties +29 -7
- package/src/sap/fe/core/messagebundle_cs.properties +29 -7
- package/src/sap/fe/core/messagebundle_cy.properties +29 -7
- package/src/sap/fe/core/messagebundle_da.properties +29 -7
- package/src/sap/fe/core/messagebundle_de.properties +29 -7
- package/src/sap/fe/core/messagebundle_el.properties +29 -7
- package/src/sap/fe/core/messagebundle_en.properties +29 -7
- package/src/sap/fe/core/messagebundle_en_GB.properties +29 -7
- package/src/sap/fe/core/messagebundle_en_US_sappsd.properties +29 -7
- package/src/sap/fe/core/messagebundle_en_US_saprigi.properties +29 -7
- package/src/sap/fe/core/messagebundle_en_US_saptrc.properties +29 -7
- package/src/sap/fe/core/messagebundle_es.properties +29 -7
- package/src/sap/fe/core/messagebundle_es_MX.properties +29 -7
- package/src/sap/fe/core/messagebundle_et.properties +29 -7
- package/src/sap/fe/core/messagebundle_fi.properties +30 -8
- package/src/sap/fe/core/messagebundle_fr.properties +31 -9
- package/src/sap/fe/core/messagebundle_fr_CA.properties +31 -9
- package/src/sap/fe/core/messagebundle_hi.properties +29 -7
- package/src/sap/fe/core/messagebundle_hr.properties +29 -7
- package/src/sap/fe/core/messagebundle_hu.properties +29 -7
- package/src/sap/fe/core/messagebundle_id.properties +29 -7
- package/src/sap/fe/core/messagebundle_it.properties +29 -7
- package/src/sap/fe/core/messagebundle_iw.properties +29 -7
- package/src/sap/fe/core/messagebundle_ja.properties +28 -6
- package/src/sap/fe/core/messagebundle_kk.properties +29 -7
- package/src/sap/fe/core/messagebundle_ko.properties +29 -7
- package/src/sap/fe/core/messagebundle_lt.properties +29 -7
- package/src/sap/fe/core/messagebundle_lv.properties +30 -8
- package/src/sap/fe/core/messagebundle_ms.properties +29 -7
- package/src/sap/fe/core/messagebundle_nl.properties +29 -7
- package/src/sap/fe/core/messagebundle_no.properties +29 -7
- package/src/sap/fe/core/messagebundle_pl.properties +29 -7
- package/src/sap/fe/core/messagebundle_pt.properties +30 -8
- package/src/sap/fe/core/messagebundle_pt_PT.properties +29 -7
- package/src/sap/fe/core/messagebundle_ro.properties +29 -7
- package/src/sap/fe/core/messagebundle_ru.properties +29 -7
- package/src/sap/fe/core/messagebundle_sh.properties +29 -7
- package/src/sap/fe/core/messagebundle_sk.properties +29 -7
- package/src/sap/fe/core/messagebundle_sl.properties +29 -7
- package/src/sap/fe/core/messagebundle_sv.properties +30 -8
- package/src/sap/fe/core/messagebundle_th.properties +28 -6
- package/src/sap/fe/core/messagebundle_tr.properties +32 -10
- package/src/sap/fe/core/messagebundle_uk.properties +29 -7
- package/src/sap/fe/core/messagebundle_vi.properties +29 -7
- package/src/sap/fe/core/messagebundle_zh_CN.properties +29 -7
- package/src/sap/fe/core/messagebundle_zh_TW.properties +29 -7
- package/src/sap/fe/core/services/AsyncComponentServiceFactory.js +47 -73
- package/src/sap/fe/core/services/AsyncComponentServiceFactory.ts +1 -1
- package/src/sap/fe/core/services/CacheHandlerServiceFactory.js +158 -196
- package/src/sap/fe/core/services/CacheHandlerServiceFactory.ts +5 -6
- package/src/sap/fe/core/services/EnvironmentServiceFactory.js +70 -96
- package/src/sap/fe/core/services/EnvironmentServiceFactory.ts +7 -6
- package/src/sap/fe/core/services/NavigationServiceFactory.js +287 -342
- package/src/sap/fe/core/services/NavigationServiceFactory.ts +11 -14
- package/src/sap/fe/core/services/ResourceModelServiceFactory.js +70 -105
- package/src/sap/fe/core/services/ResourceModelServiceFactory.ts +6 -3
- package/src/sap/fe/core/services/RoutingServiceFactory.js +796 -820
- package/src/sap/fe/core/services/RoutingServiceFactory.ts +62 -53
- package/src/sap/fe/core/services/ShellServicesFactory.js +694 -741
- package/src/sap/fe/core/services/ShellServicesFactory.ts +33 -33
- package/src/sap/fe/core/services/SideEffectsServiceFactory.js +570 -595
- package/src/sap/fe/core/services/SideEffectsServiceFactory.ts +23 -4
- package/src/sap/fe/core/services/TemplatedViewServiceFactory.js +357 -389
- package/src/sap/fe/core/services/TemplatedViewServiceFactory.ts +25 -29
- package/src/sap/fe/core/services/view/TemplatingErrorPage.controller.js +43 -5
- package/src/sap/fe/core/services/view/TemplatingErrorPage.controller.ts +7 -4
- package/src/sap/fe/core/support/CommonHelper.js +1 -1
- package/src/sap/fe/core/support/CommonHelper.ts +1 -4
- package/src/sap/fe/core/support/Diagnostics.js +36 -48
- package/src/sap/fe/core/templating/DataModelPathHelper.js +91 -90
- package/src/sap/fe/core/templating/DataModelPathHelper.ts +126 -123
- package/src/sap/fe/core/templating/DisplayModeFormatter.js +23 -3
- package/src/sap/fe/core/templating/DisplayModeFormatter.ts +26 -5
- package/src/sap/fe/core/templating/FilterHelper.js +25 -32
- package/src/sap/fe/core/templating/FilterHelper.ts +36 -35
- package/src/sap/fe/core/templating/PropertyHelper.js +16 -2
- package/src/sap/fe/core/templating/PropertyHelper.ts +31 -24
- package/src/sap/fe/core/templating/UIFormatters.js +150 -44
- package/src/sap/fe/core/templating/UIFormatters.ts +165 -67
- 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/controllerextensions/ControllerExtensionMetadata.js +0 -75
|
@@ -1,103 +1,95 @@
|
|
|
1
|
-
import
|
|
1
|
+
import AppComponent from "sap/fe/core/AppComponent";
|
|
2
2
|
import CommonUtils from "sap/fe/core/CommonUtils";
|
|
3
|
-
import
|
|
3
|
+
import { defineUI5Class, event, implementInterface, property } from "sap/fe/core/helpers/ClassSupport";
|
|
4
|
+
import PageController from "sap/fe/core/PageController";
|
|
4
5
|
import ComponentContainer from "sap/ui/core/ComponentContainer";
|
|
5
|
-
import {
|
|
6
|
+
import { IAsyncContentCreation } from "sap/ui/core/library";
|
|
6
7
|
import View from "sap/ui/core/mvc/View";
|
|
7
|
-
import
|
|
8
|
+
import UIComponent from "sap/ui/core/UIComponent";
|
|
9
|
+
import StateUtil from "sap/ui/mdc/p13n/StateUtil";
|
|
10
|
+
import ODataListBinding from "sap/ui/model/odata/v4/ODataListBinding";
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
/**
|
|
59
|
-
* Adjusts the template content
|
|
60
|
-
*/
|
|
61
|
-
content: {
|
|
62
|
-
type: "object"
|
|
63
|
-
},
|
|
64
|
-
/**
|
|
65
|
-
* Whether or not you can reach this page directly through semantic bookmarks
|
|
66
|
-
*/
|
|
67
|
-
allowDeepLinking: {
|
|
68
|
-
type: "boolean"
|
|
69
|
-
},
|
|
70
|
-
/**
|
|
71
|
-
* Defines the context path on the component that is refreshed when the app is restored using keep alive mode
|
|
72
|
-
*/
|
|
73
|
-
refreshStrategyOnAppRestore: {
|
|
74
|
-
type: "object"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
events: {
|
|
78
|
-
containerDefined: {
|
|
79
|
-
container: { type: "sap.ui.base.ManagedObject" }
|
|
80
|
-
},
|
|
81
|
-
heroesBatchReceived: {
|
|
82
|
-
element: { type: "sap.ui.base.ManagedObject" }
|
|
83
|
-
},
|
|
84
|
-
workersBatchReceived: {
|
|
85
|
-
element: { type: "sap.ui.base.ManagedObject" }
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
library: "sap.fe.core"
|
|
89
|
-
},
|
|
12
|
+
@defineUI5Class("sap.fe.core.TemplateComponent")
|
|
13
|
+
class TemplateComponent extends UIComponent implements IAsyncContentCreation {
|
|
14
|
+
@implementInterface("sap.ui.core.IAsyncContentCreation")
|
|
15
|
+
__implements__sap_ui_core_IAsyncContentCreation: boolean = true;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Name of the OData entity set
|
|
19
|
+
*/
|
|
20
|
+
@property({ type: "string", defaultValue: null })
|
|
21
|
+
entitySet: string | null = null;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Context Path for rendering the template
|
|
25
|
+
*/
|
|
26
|
+
@property({ type: "string", defaultValue: null })
|
|
27
|
+
contextPath: string | null = null;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The pattern for the binding context to be create based on the parameters from the navigation
|
|
31
|
+
* If not provided we'll default to what was passed in the URL
|
|
32
|
+
*/
|
|
33
|
+
@property({ type: "string" })
|
|
34
|
+
bindingContextPattern!: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Map of used OData navigations and its routing targets
|
|
38
|
+
*/
|
|
39
|
+
@property({ type: "object" })
|
|
40
|
+
navigation: any;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Enhance the i18n bundle used for this page with one or more app specific i18n resource bundles or resource models
|
|
44
|
+
* or a combination of both. The last resource bundle/model is given highest priority
|
|
45
|
+
*/
|
|
46
|
+
@property({ type: "string[]" })
|
|
47
|
+
enhanceI18n!: string[];
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Define control related configuration settings
|
|
51
|
+
*/
|
|
52
|
+
@property({ type: "object" })
|
|
53
|
+
controlConfiguration: any;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Adjusts the template content
|
|
57
|
+
*/
|
|
58
|
+
@property({ type: "object" })
|
|
59
|
+
content: any;
|
|
90
60
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
61
|
+
/**
|
|
62
|
+
* Whether or not you can reach this page directly through semantic bookmarks
|
|
63
|
+
*/
|
|
64
|
+
@property({ type: "boolean" })
|
|
65
|
+
allowDeepLinking!: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Defines the context path on the component that is refreshed when the app is restored using keep alive mode
|
|
68
|
+
*/
|
|
69
|
+
@property({ type: "object" })
|
|
70
|
+
refreshStrategyOnAppRestore: any;
|
|
96
71
|
|
|
97
|
-
|
|
72
|
+
@event()
|
|
73
|
+
containerDefined!: Function;
|
|
74
|
+
|
|
75
|
+
@event()
|
|
76
|
+
heroesBatchReceived!: Function;
|
|
77
|
+
|
|
78
|
+
@event()
|
|
79
|
+
workersBatchReceived!: Function;
|
|
80
|
+
|
|
81
|
+
protected oAppComponent!: AppComponent;
|
|
82
|
+
|
|
83
|
+
setContainer(oContainer: ComponentContainer): this {
|
|
84
|
+
super.setContainer(oContainer);
|
|
85
|
+
this.fireEvent("containerDefined", { container: oContainer });
|
|
86
|
+
return this;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
init() {
|
|
98
90
|
this.oAppComponent = CommonUtils.getAppComponent(this);
|
|
99
|
-
|
|
100
|
-
const oStateChangedHandler = function(oEvent: any) {
|
|
91
|
+
super.init();
|
|
92
|
+
const oStateChangedHandler = function (oEvent: any) {
|
|
101
93
|
const oControl = oEvent.getParameter("control");
|
|
102
94
|
if (oControl.isA("sap.ui.mdc.Table") || oControl.isA("sap.ui.mdc.FilterBar")) {
|
|
103
95
|
const oMacroAPI = oControl.getParent();
|
|
@@ -106,14 +98,14 @@ const TemplateComponent = UIComponent.extend("sap.fe.core.TemplateComponent", {
|
|
|
106
98
|
};
|
|
107
99
|
StateUtil.detachStateChange(oStateChangedHandler);
|
|
108
100
|
StateUtil.attachStateChange(oStateChangedHandler);
|
|
109
|
-
}
|
|
101
|
+
}
|
|
110
102
|
|
|
111
103
|
// This method is called by UI5 core to access to the component containing the customizing configuration.
|
|
112
104
|
// as controller extensions are defined in the manifest for the app component and not for the
|
|
113
105
|
// template component we return the app component.
|
|
114
|
-
getExtensionComponent
|
|
106
|
+
getExtensionComponent(): AppComponent {
|
|
115
107
|
return this.oAppComponent;
|
|
116
|
-
}
|
|
108
|
+
}
|
|
117
109
|
|
|
118
110
|
getRootController(): any | undefined {
|
|
119
111
|
const rootControl: View = this.getRootControl() as View;
|
|
@@ -122,21 +114,21 @@ const TemplateComponent = UIComponent.extend("sap.fe.core.TemplateComponent", {
|
|
|
122
114
|
rootController = rootControl.getController() as PageController;
|
|
123
115
|
}
|
|
124
116
|
return rootController;
|
|
125
|
-
}
|
|
117
|
+
}
|
|
126
118
|
|
|
127
|
-
onPageReady
|
|
119
|
+
onPageReady(mParameters: any) {
|
|
128
120
|
const rootController = this.getRootController();
|
|
129
121
|
if (rootController && rootController.onPageReady) {
|
|
130
122
|
rootController.onPageReady(mParameters);
|
|
131
123
|
}
|
|
132
|
-
}
|
|
124
|
+
}
|
|
133
125
|
|
|
134
|
-
getNavigationConfiguration
|
|
135
|
-
const mNavigation = this.
|
|
126
|
+
getNavigationConfiguration(sTargetPath: string): any {
|
|
127
|
+
const mNavigation = this.navigation;
|
|
136
128
|
return mNavigation[sTargetPath];
|
|
137
|
-
}
|
|
129
|
+
}
|
|
138
130
|
|
|
139
|
-
getViewData
|
|
131
|
+
getViewData() {
|
|
140
132
|
const mProperties = this.getMetadata().getAllProperties();
|
|
141
133
|
const oViewData = Object.keys(mProperties).reduce((mViewData: any, sPropertyName: any) => {
|
|
142
134
|
mViewData[sPropertyName] = (mProperties[sPropertyName] as any).get(this);
|
|
@@ -147,20 +139,23 @@ const TemplateComponent = UIComponent.extend("sap.fe.core.TemplateComponent", {
|
|
|
147
139
|
oViewData.fclEnabled = this.oAppComponent._isFclEnabled();
|
|
148
140
|
|
|
149
141
|
return oViewData;
|
|
150
|
-
}
|
|
142
|
+
}
|
|
151
143
|
|
|
152
|
-
_getPageTitleInformation
|
|
144
|
+
_getPageTitleInformation() {
|
|
153
145
|
const rootControl = this.getRootControl() as View;
|
|
154
146
|
if (rootControl && rootControl.getController() && (rootControl.getController() as any)._getPageTitleInformation) {
|
|
155
147
|
return (rootControl.getController() as any)._getPageTitleInformation();
|
|
156
148
|
} else {
|
|
157
149
|
return {};
|
|
158
150
|
}
|
|
159
|
-
}
|
|
151
|
+
}
|
|
160
152
|
|
|
161
|
-
getExtensionAPI
|
|
153
|
+
getExtensionAPI() {
|
|
162
154
|
return ((this.getRootControl() as View).getController() as any).getExtensionAPI();
|
|
163
155
|
}
|
|
164
|
-
}
|
|
165
|
-
|
|
156
|
+
}
|
|
157
|
+
interface TemplateComponent {
|
|
158
|
+
// TODO: this should be ideally be handled by the editflow/routing without the need to have this method in the object page - for now keep it here
|
|
159
|
+
createDeferredContext?(sPath: string, oListBinding: ODataListBinding, bActionCreate: boolean): void;
|
|
160
|
+
}
|
|
166
161
|
export default TemplateComponent;
|
|
@@ -7,39 +7,21 @@ sap.ui.define(["sap/ui/base/Object", "sap/ui/model/json/JSONModel", "sap/fe/core
|
|
|
7
7
|
|
|
8
8
|
var _dec, _class;
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
-
|
|
14
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
15
|
-
|
|
16
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
17
|
-
|
|
18
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
19
|
-
|
|
20
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
21
|
-
|
|
22
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
23
|
-
|
|
24
|
-
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
10
|
+
var defineUI5Class = ClassSupport.defineUI5Class;
|
|
25
11
|
|
|
26
12
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
27
13
|
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
14
|
+
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
31
15
|
|
|
32
|
-
|
|
33
|
-
_inherits(TemplateModel, _BaseObject);
|
|
16
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
34
17
|
|
|
35
|
-
|
|
18
|
+
var TemplateModel = (_dec = defineUI5Class("sap.fe.core.TemplateModel"), _dec(_class = /*#__PURE__*/function (_BaseObject) {
|
|
19
|
+
_inheritsLoose(TemplateModel, _BaseObject);
|
|
36
20
|
|
|
37
21
|
function TemplateModel(pageConfig, oMetaModel) {
|
|
38
22
|
var _this;
|
|
39
23
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
_this = _super.call(this);
|
|
24
|
+
_this = _BaseObject.call(this) || this;
|
|
43
25
|
_this.oMetaModel = oMetaModel;
|
|
44
26
|
_this.oConfigModel = new JSONModel(); // don't limit aggregation bindings
|
|
45
27
|
|
|
@@ -67,33 +49,31 @@ sap.ui.define(["sap/ui/base/Object", "sap/ui/model/json/JSONModel", "sap/fe/core
|
|
|
67
49
|
_this.fnCreateMetaBindingContext = _this.oMetaModel.createBindingContext.bind(_this.oMetaModel);
|
|
68
50
|
_this.fnCreateConfigBindingContext = _this.oConfigModel.createBindingContext.bind(_this.oConfigModel);
|
|
69
51
|
_this.oConfigModel.createBindingContext = _this.createBindingContext.bind(_assertThisInitialized(_this));
|
|
70
|
-
return
|
|
52
|
+
return _this.oConfigModel || _assertThisInitialized(_this);
|
|
71
53
|
}
|
|
72
54
|
|
|
73
|
-
|
|
74
|
-
key: "createBindingContext",
|
|
75
|
-
value: function createBindingContext(sPath, oContext, mParameters, fnCallBack) {
|
|
76
|
-
var oBindingContext;
|
|
77
|
-
var bNoResolve = mParameters && mParameters.noResolve;
|
|
78
|
-
oBindingContext = this.fnCreateConfigBindingContext(sPath, oContext, mParameters, fnCallBack);
|
|
79
|
-
var sResolvedPath = !bNoResolve && oBindingContext.getObject();
|
|
55
|
+
var _proto = TemplateModel.prototype;
|
|
80
56
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
57
|
+
_proto.createBindingContext = function createBindingContext(sPath, oContext, mParameters, fnCallBack) {
|
|
58
|
+
var oBindingContext;
|
|
59
|
+
var bNoResolve = mParameters && mParameters.noResolve;
|
|
60
|
+
oBindingContext = this.fnCreateConfigBindingContext(sPath, oContext, mParameters, fnCallBack);
|
|
61
|
+
var sResolvedPath = !bNoResolve && oBindingContext.getObject();
|
|
84
62
|
|
|
85
|
-
|
|
63
|
+
if (sResolvedPath && typeof sResolvedPath === "string") {
|
|
64
|
+
oBindingContext = this.fnCreateMetaBindingContext(sResolvedPath, oContext, mParameters, fnCallBack);
|
|
86
65
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
66
|
+
|
|
67
|
+
return oBindingContext;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
_proto.destroy = function destroy() {
|
|
71
|
+
this.oConfigModel.destroy();
|
|
72
|
+
JSONModel.prototype.destroy.apply(this);
|
|
73
|
+
};
|
|
94
74
|
|
|
95
75
|
return TemplateModel;
|
|
96
76
|
}(BaseObject)) || _class);
|
|
97
77
|
return TemplateModel;
|
|
98
78
|
}, false);
|
|
99
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
79
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRlbXBsYXRlTW9kZWwudHMiXSwibmFtZXMiOlsiVGVtcGxhdGVNb2RlbCIsImRlZmluZVVJNUNsYXNzIiwicGFnZUNvbmZpZyIsIm9NZXRhTW9kZWwiLCJvQ29uZmlnTW9kZWwiLCJKU09OTW9kZWwiLCJzZXRTaXplTGltaXQiLCJOdW1iZXIiLCJNQVhfVkFMVUUiLCJiQ29uZmlnTG9hZGVkIiwidGhhdCIsImZuR2V0T2JqZWN0IiwiX2dldE9iamVjdCIsImJpbmQiLCJzUGF0aCIsIm9Db250ZXh0Iiwic2V0RGF0YSIsImZuQ3JlYXRlTWV0YUJpbmRpbmdDb250ZXh0IiwiY3JlYXRlQmluZGluZ0NvbnRleHQiLCJmbkNyZWF0ZUNvbmZpZ0JpbmRpbmdDb250ZXh0IiwibVBhcmFtZXRlcnMiLCJmbkNhbGxCYWNrIiwib0JpbmRpbmdDb250ZXh0IiwiYk5vUmVzb2x2ZSIsIm5vUmVzb2x2ZSIsInNSZXNvbHZlZFBhdGgiLCJnZXRPYmplY3QiLCJkZXN0cm95IiwicHJvdG90eXBlIiwiYXBwbHkiLCJCYXNlT2JqZWN0Il0sIm1hcHBpbmdzIjoiO0FBQ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HRcdEpTT05Nb2RlbC5wcm90b3R5cGUuZGVzdHJveS5hcHBseSh0aGlzKTtcblx0fVxufVxuXG5leHBvcnQgZGVmYXVsdCBUZW1wbGF0ZU1vZGVsO1xuIl19
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import BaseObject from "sap/ui/base/Object";
|
|
2
2
|
import JSONModel from "sap/ui/model/json/JSONModel";
|
|
3
|
-
import {
|
|
3
|
+
import { defineUI5Class } from "sap/fe/core/helpers/ClassSupport";
|
|
4
4
|
import ODataMetaModel from "sap/ui/model/odata/v4/ODataMetaModel";
|
|
5
5
|
|
|
6
|
-
@
|
|
6
|
+
@defineUI5Class("sap.fe.core.TemplateModel")
|
|
7
7
|
class TemplateModel extends BaseObject {
|
|
8
8
|
public oMetaModel: ODataMetaModel;
|
|
9
9
|
public oConfigModel: any;
|
|
@@ -41,7 +41,7 @@ class TemplateModel extends BaseObject {
|
|
|
41
41
|
return this.oConfigModel;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
createBindingContext(sPath: any, oContext
|
|
44
|
+
createBindingContext(sPath: any, oContext?: any, mParameters?: any, fnCallBack?: any) {
|
|
45
45
|
let oBindingContext;
|
|
46
46
|
const bNoResolve = mParameters && mParameters.noResolve;
|
|
47
47
|
|