@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
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ${copyright}
|
|
3
|
+
*/
|
|
4
|
+
import { aggregation, defineUI5Class, event, implementInterface, property } from "sap/fe/core/helpers/ClassSupport";
|
|
5
|
+
import SemanticDateOperators from "sap/fe/core/helpers/SemanticDateOperators";
|
|
6
|
+
import ManagedObjectObserver from "sap/ui/base/ManagedObjectObserver";
|
|
7
|
+
import Control from "sap/ui/core/Control";
|
|
8
|
+
import { IFormContent } from "sap/ui/core/library";
|
|
9
|
+
import RenderManager from "sap/ui/core/RenderManager";
|
|
10
|
+
import Condition, { ConditionObject } from "sap/ui/mdc/condition/Condition";
|
|
11
|
+
import ConditionValidated from "sap/ui/mdc/enum/ConditionValidated";
|
|
12
|
+
import ConditionsType from "sap/ui/mdc/field/ConditionsType";
|
|
13
|
+
import JSONModel from "sap/ui/model/json/JSONModel";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Type used for format options
|
|
17
|
+
*
|
|
18
|
+
* @typedef FormatOptionsType
|
|
19
|
+
*/
|
|
20
|
+
type FormatOptionsType = {
|
|
21
|
+
operators: string[];
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @class
|
|
26
|
+
* Creates an <code>sap.fe.core.controls.CustomFilterFieldContentWrapper</code> object.
|
|
27
|
+
* This is used in the {@link sap.ui.mdc.FilterField FilterField} as a filter content.
|
|
28
|
+
* @extends sap.ui.core.Control
|
|
29
|
+
* @private
|
|
30
|
+
* @alias sap.fe.core.controls.CustomFilterFieldContentWrapper
|
|
31
|
+
*/
|
|
32
|
+
@defineUI5Class("sap.fe.core.controls.CustomFilterFieldContentWrapper")
|
|
33
|
+
export default class CustomFilterFieldContentWrapper extends Control implements IFormContent {
|
|
34
|
+
@implementInterface("sap.ui.core.IFormContent")
|
|
35
|
+
// eslint-disable-next-line camelcase
|
|
36
|
+
__implements__sap_ui_core_IFormContent = true;
|
|
37
|
+
|
|
38
|
+
@property({ type: "sap.ui.core.CSSSize", defaultValue: null })
|
|
39
|
+
width!: string;
|
|
40
|
+
|
|
41
|
+
@property({ type: "boolean", defaultValue: false })
|
|
42
|
+
formDoNotAdjustWidth!: boolean;
|
|
43
|
+
|
|
44
|
+
@property({ type: "object[]", defaultValue: [] })
|
|
45
|
+
conditions!: ConditionObject[];
|
|
46
|
+
|
|
47
|
+
@aggregation({ type: "sap.ui.core.Control", multiple: false, isDefault: true })
|
|
48
|
+
content!: Control;
|
|
49
|
+
|
|
50
|
+
@event()
|
|
51
|
+
conditionsChange!: Function;
|
|
52
|
+
|
|
53
|
+
// TODO: Consider using FieldBase as base control (instead of Control)
|
|
54
|
+
// TODO: If FieldBase is used, add 'change' event & corresponding handler to bubble it
|
|
55
|
+
|
|
56
|
+
private _filterModel: any;
|
|
57
|
+
private _conditionsObserver: any;
|
|
58
|
+
private static readonly FILTER_MODEL_ALIAS = "filterValues";
|
|
59
|
+
|
|
60
|
+
static render(renderManager: RenderManager, control: CustomFilterFieldContentWrapper): void {
|
|
61
|
+
renderManager.openStart("div", control);
|
|
62
|
+
renderManager.style("min-height", "1rem");
|
|
63
|
+
renderManager.style("width", control.width);
|
|
64
|
+
renderManager.openEnd();
|
|
65
|
+
renderManager.renderControl(control.getContent()); // render the child Control
|
|
66
|
+
renderManager.close("div"); // end of the complete Control
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Maps an array of filter values to an array of conditions.
|
|
71
|
+
*
|
|
72
|
+
* @param {Array | string} filterValues Array of filter value bindings or a filter value string
|
|
73
|
+
* @param {string} [operator] The operator to be used (optional) - if not set, the default operator (EQ) will be used
|
|
74
|
+
* @private
|
|
75
|
+
* @returns {Array} Array of filter conditions
|
|
76
|
+
*/
|
|
77
|
+
static _filterValuesToConditions(filterValues: any | any[], operator?: string): ConditionObject[] {
|
|
78
|
+
let formatOptions: FormatOptionsType = { operators: [] },
|
|
79
|
+
conditions = [];
|
|
80
|
+
|
|
81
|
+
if (operator) {
|
|
82
|
+
formatOptions = { operators: [operator] };
|
|
83
|
+
}
|
|
84
|
+
if (filterValues === "") {
|
|
85
|
+
filterValues = [];
|
|
86
|
+
} else if (typeof filterValues === "object" && filterValues.hasOwnProperty("operator") && filterValues.hasOwnProperty("values")) {
|
|
87
|
+
formatOptions = { operators: [filterValues.operator] };
|
|
88
|
+
filterValues = filterValues.values;
|
|
89
|
+
} else if (filterValues !== undefined && typeof filterValues !== "object" && typeof filterValues !== "string") {
|
|
90
|
+
throw new Error("FilterUtils.js#_filterValuesToConditions: Unexpected type of input parameter vValues: " + typeof filterValues);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const conditionsType: any = new ConditionsType(formatOptions);
|
|
94
|
+
const conditionValues = Array.isArray(filterValues) ? filterValues : [filterValues];
|
|
95
|
+
|
|
96
|
+
// Shortcut for operator without values and semantic date operations
|
|
97
|
+
if (
|
|
98
|
+
typeof operator === "string" &&
|
|
99
|
+
(conditionValues.length === 0 || SemanticDateOperators.getSemanticDateOperations().includes(operator))
|
|
100
|
+
) {
|
|
101
|
+
conditions = [Condition.createCondition(operator, conditionValues, null, null, ConditionValidated.NotValidated)];
|
|
102
|
+
} else {
|
|
103
|
+
conditions = conditionValues
|
|
104
|
+
.map((conditionValue) => {
|
|
105
|
+
const stringValue = conditionValue?.toString(),
|
|
106
|
+
parsedConditions = conditionsType.parseValue(stringValue, "any");
|
|
107
|
+
return parsedConditions?.[0];
|
|
108
|
+
})
|
|
109
|
+
.filter((conditionValue) => conditionValue !== undefined);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return conditions;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Maps an array of conditions to a comma separated list of filter values.
|
|
117
|
+
*
|
|
118
|
+
* @param {object[]} conditions Array of filter conditions
|
|
119
|
+
* @param {object} formatOptions Format options that specifies a condition type
|
|
120
|
+
* @private
|
|
121
|
+
* @returns {string} Concatenated string of filter values
|
|
122
|
+
*/
|
|
123
|
+
static _conditionsToFilterModelString(conditions: object[], formatOptions: FormatOptionsType): string {
|
|
124
|
+
const conditionsType = new ConditionsType(formatOptions);
|
|
125
|
+
|
|
126
|
+
return conditions
|
|
127
|
+
.map((condition) => {
|
|
128
|
+
return conditionsType.formatValue([condition], "any") || "";
|
|
129
|
+
})
|
|
130
|
+
.filter((stringValue) => {
|
|
131
|
+
return stringValue !== "";
|
|
132
|
+
})
|
|
133
|
+
.join(",");
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Listens to filter model changes and updates wrapper property "conditions".
|
|
138
|
+
*
|
|
139
|
+
* @param {object} changeEvent Event triggered by a filter model change
|
|
140
|
+
* @private
|
|
141
|
+
*/
|
|
142
|
+
_handleFilterModelChange(changeEvent: any): void {
|
|
143
|
+
const propertyPath = this.getObjectBinding("filterValues").getPath(),
|
|
144
|
+
values = changeEvent.getSource().getProperty(propertyPath);
|
|
145
|
+
this.updateConditionsByFilterValues(values, "");
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Listens to "conditions" changes and updates the filter model.
|
|
150
|
+
*
|
|
151
|
+
* @param {object} conditions Event triggered by a "conditions" change
|
|
152
|
+
* @private
|
|
153
|
+
*/
|
|
154
|
+
_handleConditionsChange(conditions: any): void {
|
|
155
|
+
this.updateFilterModelByConditions(conditions);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Initialize CustomFilterFieldContentWrapper control and register observer.
|
|
160
|
+
*/
|
|
161
|
+
init(): void {
|
|
162
|
+
super.init();
|
|
163
|
+
this._conditionsObserver = new ManagedObjectObserver(this._observeChanges.bind(this));
|
|
164
|
+
this._conditionsObserver.observe(this, {
|
|
165
|
+
properties: ["conditions"]
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Listens to property changes.
|
|
171
|
+
*
|
|
172
|
+
* @param {any} changes Property changes
|
|
173
|
+
* @private
|
|
174
|
+
*/
|
|
175
|
+
_observeChanges(changes: any): void {
|
|
176
|
+
if (changes.name === "conditions") {
|
|
177
|
+
this._handleConditionsChange(changes.current);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Registers the internal filter model (alias 'filterValues').
|
|
183
|
+
*
|
|
184
|
+
* @private
|
|
185
|
+
*/
|
|
186
|
+
_registerFilterModel(): void {
|
|
187
|
+
if (!this._filterModel) {
|
|
188
|
+
this._filterModel = new JSONModel();
|
|
189
|
+
this._filterModel.attachPropertyChange(this._handleFilterModelChange, this);
|
|
190
|
+
this.setModel(this._filterModel, CustomFilterFieldContentWrapper.FILTER_MODEL_ALIAS);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Gets the content of this wrapper control.
|
|
196
|
+
*
|
|
197
|
+
* @returns {sap.ui.core.Control} The wrapper content
|
|
198
|
+
* @private
|
|
199
|
+
*/
|
|
200
|
+
getContent(): Control {
|
|
201
|
+
this._registerFilterModel();
|
|
202
|
+
return this.getAggregation("content") as Control;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Gets the value for control property 'conditions'.
|
|
207
|
+
*
|
|
208
|
+
* @returns {object[]} Array of filter conditions
|
|
209
|
+
* @private
|
|
210
|
+
*/
|
|
211
|
+
getConditions(): object[] {
|
|
212
|
+
return this.getProperty("conditions");
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Sets the value for control property 'conditions'.
|
|
217
|
+
*
|
|
218
|
+
* @param {Array} conditions Array of filter conditions
|
|
219
|
+
* @private
|
|
220
|
+
*/
|
|
221
|
+
setConditions(conditions: object[]): void {
|
|
222
|
+
this.setProperty("conditions", conditions);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Gets the filter model alias 'filterValues'.
|
|
227
|
+
*
|
|
228
|
+
* @returns {string} The filter model
|
|
229
|
+
* @private
|
|
230
|
+
*/
|
|
231
|
+
getFilterModelAlias(): string {
|
|
232
|
+
return CustomFilterFieldContentWrapper.FILTER_MODEL_ALIAS;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Updates the property "conditions" with filter values
|
|
237
|
+
* sent by ExtensionAPI#setFilterValues().
|
|
238
|
+
*
|
|
239
|
+
* @param {any} values The filter values
|
|
240
|
+
* @param {string} operator The operator name
|
|
241
|
+
* @private
|
|
242
|
+
*/
|
|
243
|
+
updateConditionsByFilterValues(values: any, operator: string): void {
|
|
244
|
+
const conditions = CustomFilterFieldContentWrapper._filterValuesToConditions(values, operator);
|
|
245
|
+
this.setConditions(conditions);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Updates filter model with conditions
|
|
250
|
+
* sent by the {@link sap.ui.mdc.FilterField FilterField}.
|
|
251
|
+
*
|
|
252
|
+
* @param {Array} conditions Array of filter conditions
|
|
253
|
+
* @private
|
|
254
|
+
*/
|
|
255
|
+
updateFilterModelByConditions(conditions: any[]): void {
|
|
256
|
+
// When the filter field is created via "Adapt Filter"
|
|
257
|
+
// this handler is fired before the filter model is created
|
|
258
|
+
// -> in general, create it, if needed!
|
|
259
|
+
// TODO: Consider using method Control#clone() to register filter model
|
|
260
|
+
this._registerFilterModel();
|
|
261
|
+
const operator = conditions[0]?.operator || "";
|
|
262
|
+
const formatOptions: FormatOptionsType = operator !== "" ? { operators: [operator] } : { operators: [] };
|
|
263
|
+
if (this.getBindingContext(CustomFilterFieldContentWrapper.FILTER_MODEL_ALIAS)) {
|
|
264
|
+
const stringValue = CustomFilterFieldContentWrapper._conditionsToFilterModelString(conditions, formatOptions);
|
|
265
|
+
this._filterModel.setProperty(
|
|
266
|
+
this.getBindingContext(CustomFilterFieldContentWrapper.FILTER_MODEL_ALIAS)?.getPath(),
|
|
267
|
+
stringValue
|
|
268
|
+
);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// TODO: Check, if implementation of _setAriaLabelledBy() is needed ?
|
|
273
|
+
|
|
274
|
+
getAccessibilityInfo(): any {
|
|
275
|
+
const content = this.getContent();
|
|
276
|
+
return content?.getAccessibilityInfo?.() || {};
|
|
277
|
+
}
|
|
278
|
+
}
|
|
@@ -1,128 +1,170 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved
|
|
5
4
|
*/
|
|
6
|
-
sap.ui.define(
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
);
|
|
5
|
+
sap.ui.define(["sap/fe/core/CommonUtils", "sap/fe/core/helpers/ClassSupport", "sap/fe/core/helpers/KeepAliveHelper", "sap/fe/macros/DelegateUtil", "sap/m/QuickViewPage"], function (CommonUtils, ClassSupport, KeepAliveHelper, DelegateUtil, QuickViewPage) {
|
|
6
|
+
"use strict";
|
|
7
|
+
|
|
8
|
+
var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
|
|
9
|
+
|
|
10
|
+
var defineUI5Class = ClassSupport.defineUI5Class;
|
|
11
|
+
var aggregation = ClassSupport.aggregation;
|
|
12
|
+
|
|
13
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
14
|
+
|
|
15
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
16
|
+
|
|
17
|
+
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
18
|
+
|
|
19
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
20
|
+
|
|
21
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
22
|
+
|
|
23
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
24
|
+
|
|
25
|
+
var CustomQuickViewPage = (_dec = defineUI5Class("sap.fe.core.controls.CustomQuickViewPage"), _dec2 = aggregation({
|
|
26
|
+
type: "sap.ui.core.Control",
|
|
27
|
+
multiple: true
|
|
28
|
+
}), _dec3 = aggregation({
|
|
29
|
+
type: "sap.m.QuickViewGroup",
|
|
30
|
+
multiple: true,
|
|
31
|
+
singularName: "group",
|
|
32
|
+
isDefault: true
|
|
33
|
+
}), _dec(_class = (_class2 = /*#__PURE__*/function (_QuickViewPage) {
|
|
34
|
+
_inheritsLoose(CustomQuickViewPage, _QuickViewPage);
|
|
35
|
+
|
|
36
|
+
function CustomQuickViewPage() {
|
|
37
|
+
var _this;
|
|
38
|
+
|
|
39
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
40
|
+
args[_key] = arguments[_key];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
_this = _QuickViewPage.call.apply(_QuickViewPage, [this].concat(args)) || this;
|
|
44
|
+
|
|
45
|
+
_initializerDefineProperty(_this, "customContent", _descriptor, _assertThisInitialized(_this));
|
|
46
|
+
|
|
47
|
+
_initializerDefineProperty(_this, "groups", _descriptor2, _assertThisInitialized(_this));
|
|
48
|
+
|
|
49
|
+
return _this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
var _proto = CustomQuickViewPage.prototype;
|
|
53
|
+
|
|
54
|
+
_proto.onBeforeRendering = function onBeforeRendering(oEvent) {
|
|
55
|
+
var _this2 = this;
|
|
56
|
+
|
|
57
|
+
if (this.getParent() && this.getParent().isA("sap.fe.core.controls.ConditionalWrapper") && this.getParent().getProperty("condition") === true) {
|
|
58
|
+
this.setCrossAppNavCallback(function () {
|
|
59
|
+
var sQuickViewPageTitleLinkHref = DelegateUtil.getCustomData(_this2, "titleLink");
|
|
60
|
+
var oView = CommonUtils.getTargetView(_this2);
|
|
61
|
+
var oAppComponent = CommonUtils.getAppComponent(oView);
|
|
62
|
+
var oShellServiceHelper = oAppComponent.getShellServices();
|
|
63
|
+
var oShellHash = oShellServiceHelper.parseShellHash(sQuickViewPageTitleLinkHref);
|
|
64
|
+
var oNavArgs = {
|
|
65
|
+
target: {
|
|
66
|
+
semanticObject: oShellHash.semanticObject,
|
|
67
|
+
action: oShellHash.action
|
|
68
|
+
},
|
|
69
|
+
params: oShellHash.params
|
|
70
|
+
};
|
|
71
|
+
var sQuickViewPageTitleLinkIntent = oNavArgs.target.semanticObject + "-" + oNavArgs.target.action;
|
|
72
|
+
|
|
73
|
+
if (sQuickViewPageTitleLinkIntent && _this2.oCrossAppNavigator && _this2.oCrossAppNavigator.isNavigationSupported([sQuickViewPageTitleLinkIntent])) {
|
|
74
|
+
if (sQuickViewPageTitleLinkIntent && sQuickViewPageTitleLinkIntent !== "") {
|
|
75
|
+
if (typeof sQuickViewPageTitleLinkIntent === "string" && sQuickViewPageTitleLinkIntent !== "") {
|
|
76
|
+
var sTargetHref;
|
|
77
|
+
|
|
78
|
+
var oLinkControl = _this2.getParent();
|
|
79
|
+
|
|
80
|
+
while (oLinkControl && !oLinkControl.isA("sap.ui.mdc.Link")) {
|
|
81
|
+
oLinkControl = oLinkControl.getParent();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
var _aLinks = oLinkControl.getModel("$sapuimdcLink").getProperty("/linkItems");
|
|
85
|
+
|
|
86
|
+
if (_aLinks) {
|
|
87
|
+
if (_aLinks.length > 0) {
|
|
88
|
+
for (var i = 0; i < _aLinks.length; i++) {
|
|
89
|
+
if (_aLinks[i].key === sQuickViewPageTitleLinkIntent) {
|
|
90
|
+
sTargetHref = _aLinks[i].href;
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (sTargetHref) {
|
|
96
|
+
oShellHash = oShellServiceHelper.parseShellHash(sTargetHref);
|
|
97
|
+
} else {
|
|
98
|
+
oShellHash = oShellServiceHelper.parseShellHash(sQuickViewPageTitleLinkIntent);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
} else {
|
|
102
|
+
oShellHash = oShellServiceHelper.parseShellHash(sQuickViewPageTitleLinkIntent);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
KeepAliveHelper.storeControlRefreshStrategyForHash(oView, oShellHash);
|
|
106
|
+
return {
|
|
107
|
+
target: {
|
|
108
|
+
semanticObject: oShellHash.semanticObject,
|
|
109
|
+
action: oShellHash.action
|
|
110
|
+
},
|
|
111
|
+
params: oShellHash.params
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
} else {
|
|
116
|
+
var oCurrentShellHash = oShellServiceHelper.parseShellHash(window.location.hash);
|
|
117
|
+
KeepAliveHelper.storeControlRefreshStrategyForHash(oView, oCurrentShellHash);
|
|
118
|
+
return {
|
|
119
|
+
target: {
|
|
120
|
+
semanticObject: oCurrentShellHash.semanticObject,
|
|
121
|
+
action: oCurrentShellHash.action,
|
|
122
|
+
appSpecificRoute: oCurrentShellHash.appSpecificRoute
|
|
123
|
+
},
|
|
124
|
+
params: oCurrentShellHash.params
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
_QuickViewPage.prototype.onBeforeRendering.call(this, oEvent);
|
|
131
|
+
|
|
132
|
+
var oPageContent = this.getPageContent();
|
|
133
|
+
var oForm = oPageContent.form;
|
|
134
|
+
|
|
135
|
+
if (oForm) {
|
|
136
|
+
var _aContent = this.customContent;
|
|
137
|
+
|
|
138
|
+
if (_aContent && _aContent.length > 0) {
|
|
139
|
+
_aContent.forEach(function (_oContent) {
|
|
140
|
+
var _oContentClone = _oContent.clone();
|
|
141
|
+
|
|
142
|
+
_oContentClone.setModel(_this2.getModel());
|
|
143
|
+
|
|
144
|
+
_oContentClone.setBindingContext(_this2.getBindingContext());
|
|
145
|
+
|
|
146
|
+
oForm.addContent(_oContentClone);
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
setTimeout(function () {
|
|
150
|
+
oForm.rerender();
|
|
151
|
+
}, 0);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
return CustomQuickViewPage;
|
|
157
|
+
}(QuickViewPage), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "customContent", [_dec2], {
|
|
158
|
+
configurable: true,
|
|
159
|
+
enumerable: true,
|
|
160
|
+
writable: true,
|
|
161
|
+
initializer: null
|
|
162
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "groups", [_dec3], {
|
|
163
|
+
configurable: true,
|
|
164
|
+
enumerable: true,
|
|
165
|
+
writable: true,
|
|
166
|
+
initializer: null
|
|
167
|
+
})), _class2)) || _class);
|
|
168
|
+
return CustomQuickViewPage;
|
|
169
|
+
}, false);
|
|
170
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkN1c3RvbVF1aWNrVmlld1BhZ2UudHMiXSwibmFtZXMiOlsiQ3VzdG9tUXVpY2tWaWV3UGFnZSIsImRlZmluZVVJNUNsYXNzIiwiYWdncmVnYXRpb24iLCJ0eXBlIiwibXVsdGlwbGUiLCJzaW5ndWxhck5hbWUiLCJpc0RlZmF1bHQiLCJvbkJlZm9yZVJlbmRlcmluZyIsIm9FdmVudCIsImdldFBhcmVudCIsImlzQSIsImdldFByb3BlcnR5Iiwic2V0Q3Jvc3NBcHBOYXZDYWxsYmFjayIsInNRdWlja1ZpZXdQYWdlVGl0bGVMaW5rSHJlZiIsIkRlbGVnYXRlVXRpbCIsImdldEN1c3RvbURhdGEiLCJvVmlldyIsIkNvbW1vblV0aWxzIiwiZ2V0VGFyZ2V0VmlldyIsIm9BcHBDb21wb25lbnQiLCJnZXRBcHBDb21wb25lbnQiLCJvU2hlbGxTZXJ2aWNlSGVscGVyIiwiZ2V0U2hlbGxTZXJ2aWNlcyIsIm9TaGVsbEhhc2giLCJwYXJzZVNoZWxsSGFzaCIsIm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