@sap/open.fe 1.97.0 → 1.98.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 +1 -1
- package/packages/sap.fe.common/src/sap/fe/common/.library +1 -1
- package/packages/sap.fe.common/src/sap/fe/common/.theming +1 -1
- package/packages/sap.fe.common/src/sap/fe/common/MessageButton-dbg.js +275 -62
- package/packages/sap.fe.common/src/sap/fe/common/MessageButton.js +1 -1
- package/packages/sap.fe.common/src/sap/fe/common/MessagePopover-dbg.js +1 -0
- package/packages/sap.fe.common/src/sap/fe/common/MessagePopover.js +1 -1
- package/packages/sap.fe.common/src/sap/fe/common/library-dbg.js +1 -1
- package/packages/sap.fe.common/src/sap/fe/common/library-h2-preload.js +3 -3
- package/packages/sap.fe.common/src/sap/fe/common/library-preload.js +51 -46
- package/packages/sap.fe.common/src/sap/fe/common/library-preload.js.map +3 -3
- package/packages/sap.fe.common/src/sap/fe/common/library.js +1 -1
- package/packages/sap.fe.common/src/sap/fe/common/manifest.json +3 -3
- package/packages/sap.fe.common/src/sap/fe/common/resources.json +16 -8
- package/packages/sap.fe.common/test/sap/fe/common/designtime/api.json +1 -1
- package/packages/sap.fe.common/test/sap/fe/common/designtime/apiref/api.json +1 -1
- package/packages/sap.fe.common/test/sap/fe/common/designtime/codeassistance/Library.xmlmeta.json +1 -1
- package/packages/sap.fe.common/test/sap/fe/common/relnotes/changes-1.98.json +18 -0
- package/packages/sap.fe.core/src/sap/fe/core/.library +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/.theming +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/AppComponent-dbg.js +3 -1
- package/packages/sap.fe.core/src/sap/fe/core/AppComponent.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/AppStateHandler-dbg.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/AppStateHandler.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/CommonUtils-dbg.js +35 -15
- package/packages/sap.fe.core/src/sap/fe/core/CommonUtils.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/ExtensionAPI-dbg.js +13 -5
- package/packages/sap.fe.core/src/sap/fe/core/ExtensionAPI.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/PageController-dbg.js +8 -2
- package/packages/sap.fe.core/src/sap/fe/core/PageController.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/RouterProxy-dbg.js +26 -10
- package/packages/sap.fe.core/src/sap/fe/core/RouterProxy.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/TemplateComponent-dbg.js +13 -4
- package/packages/sap.fe.core/src/sap/fe/core/TemplateComponent.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/TransactionHelper-dbg.js +124 -39
- package/packages/sap.fe.core/src/sap/fe/core/TransactionHelper.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/actions/draft-dbg.js +49 -22
- package/packages/sap.fe.core/src/sap/fe/core/actions/draft.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/actions/messageHandling-dbg.js +11 -8
- package/packages/sap.fe.core/src/sap/fe/core/actions/messageHandling.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/actions/operations-dbg.js +12 -8
- package/packages/sap.fe.core/src/sap/fe/core/actions/operations.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/EditFlow-dbg.js +196 -70
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/EditFlow.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/InternalEditFlow-dbg.js +9 -2
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/InternalEditFlow.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation-dbg.js +19 -17
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/InternalRouting-dbg.js +39 -8
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/InternalRouting.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/KPIManagement-dbg.js +114 -25
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/KPIManagement.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/KPIManagement.ts +112 -24
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/MassEdit-dbg.js +80 -0
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/MassEdit.js +6 -0
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/MessageHandler-dbg.js +5 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/MessageHandler.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/PageReady-dbg.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/PageReady.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/Paginator-dbg.js +34 -7
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/Paginator.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/Placeholder-dbg.js +5 -2
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/Placeholder.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/Routing-dbg.js +16 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/Routing.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/Share-dbg.js +19 -6
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/Share.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/SideEffects-dbg.js +7 -7
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/SideEffects.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controllerextensions/SideEffects.ts +6 -5
- package/packages/sap.fe.core/src/sap/fe/core/controls/ActionParameterDialog.fragment.xml +2 -1
- package/packages/sap.fe.core/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler-dbg.js +6 -3
- package/packages/sap.fe.core/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controls/FieldWrapper-dbg.js +9 -3
- package/packages/sap.fe.core/src/sap/fe/core/controls/FieldWrapper.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controls/FormElementWrapper-dbg.js +0 -5
- package/packages/sap.fe.core/src/sap/fe/core/controls/FormElementWrapper.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/controls/NonComputedVisibleKeyFieldsDialog.fragment.xml +1 -1
- package/packages/{sap.fe.macros/src/sap/fe/macros/massedit → sap.fe.core/src/sap/fe/core/controls/massEdit}/MassEditDialog.fragment.xml +6 -6
- package/packages/{sap.fe.macros/src/sap/fe/macros/massedit/MassEditRuntime-dbg.js → sap.fe.core/src/sap/fe/core/controls/massEdit/MassEditHandlers-dbg.js} +2 -2
- package/packages/{sap.fe.macros/src/sap/fe/macros/massedit/MassEditRuntime.js → sap.fe.core/src/sap/fe/core/controls/massEdit/MassEditHandlers.js} +0 -0
- package/packages/sap.fe.core/src/sap/fe/core/converters/ConverterContext-dbg.js +13 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/ConverterContext.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/ConverterContext.ts +10 -0
- package/packages/sap.fe.core/src/sap/fe/core/converters/ManifestSettings-dbg.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/ManifestSettings.ts +3 -0
- package/packages/sap.fe.core/src/sap/fe/core/converters/ManifestWrapper-dbg.js +18 -7
- package/packages/sap.fe.core/src/sap/fe/core/converters/ManifestWrapper.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/ManifestWrapper.ts +15 -6
- package/packages/sap.fe.core/src/sap/fe/core/converters/MetaModelConverter-dbg.js +62 -4
- package/packages/sap.fe.core/src/sap/fe/core/converters/MetaModelConverter.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/MetaModelConverter.ts +60 -4
- package/packages/sap.fe.core/src/sap/fe/core/converters/annotations/DataField-dbg.js +3 -3
- package/packages/sap.fe.core/src/sap/fe/core/converters/annotations/DataField.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/annotations/DataField.ts +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/common/AnnotationConverter-dbg.js +18 -10
- package/packages/sap.fe.core/src/sap/fe/core/converters/common/AnnotationConverter.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/Action-dbg.js +10 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/Action.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/Action.ts +6 -0
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/Form-dbg.js +17 -9
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/Form.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/Form.ts +9 -3
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/KPI-dbg.js +69 -4
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/KPI.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/KPI.ts +72 -0
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/Table-dbg.js +172 -284
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/Table.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/Table.ts +228 -348
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/table/StandardActions-dbg.js +468 -0
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/table/StandardActions.js +5 -0
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/Common/table/StandardActions.ts +609 -0
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/ListReport/FilterBar-dbg.js +30 -13
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/ListReport/FilterBar.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/ListReport/FilterBar.ts +31 -12
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/ListReport/VisualFilters-dbg.js +2 -2
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/ListReport/VisualFilters.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/ListReport/VisualFilters.ts +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/ObjectPage/SubSection-dbg.js +14 -6
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/ObjectPage/SubSection.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/controls/ObjectPage/SubSection.ts +26 -5
- package/packages/sap.fe.core/src/sap/fe/core/converters/helpers/Aggregation-dbg.js +8 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/helpers/Aggregation.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/helpers/Aggregation.ts +9 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/helpers/IssueManager-dbg.js +4 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/helpers/IssueManager.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/converters/helpers/IssueManager.ts +3 -0
- package/packages/sap.fe.core/src/sap/fe/core/designtime/AppComponent-dbg.designtime.js +8 -0
- package/packages/sap.fe.core/src/sap/fe/core/designtime/AppComponent.designtime.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/designtime/library-preload.designtime.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/designtime/library-preload.designtime.js.map +3 -3
- package/packages/sap.fe.core/src/sap/fe/core/formatters/ValueFormatter-dbg.js +30 -5
- package/packages/sap.fe.core/src/sap/fe/core/formatters/ValueFormatter.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/formatters/ValueFormatter.ts +25 -3
- package/packages/sap.fe.core/src/sap/fe/core/fpm/manifest.json +2 -2
- package/packages/sap.fe.core/src/sap/fe/core/helpers/AppStartupHelper-dbg.js +359 -0
- package/packages/sap.fe.core/src/sap/fe/core/helpers/AppStartupHelper.js +5 -0
- package/packages/sap.fe.core/src/sap/fe/core/helpers/AppStartupHelper.ts +388 -0
- package/packages/sap.fe.core/src/sap/fe/core/helpers/BindingExpression-dbg.js +199 -111
- package/packages/sap.fe.core/src/sap/fe/core/helpers/BindingExpression.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/helpers/BindingExpression.ts +193 -102
- package/packages/sap.fe.core/src/sap/fe/core/helpers/KeepAliveHelper-dbg.js +2 -2
- package/packages/sap.fe.core/src/sap/fe/core/helpers/KeepAliveHelper.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/helpers/KeepAliveHelper.ts +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/helpers/MassEditHelper-dbg.js +679 -0
- package/packages/sap.fe.core/src/sap/fe/core/helpers/MassEditHelper.js +6 -0
- package/packages/sap.fe.core/src/sap/fe/core/library-dbg.js +27 -1
- package/packages/sap.fe.core/src/sap/fe/core/library-h2-preload.js +23 -14
- package/packages/sap.fe.core/src/sap/fe/core/library-h2-preload.js.map +2 -2
- package/packages/sap.fe.core/src/sap/fe/core/library-preload.js +477 -411
- package/packages/sap.fe.core/src/sap/fe/core/library-preload.js.map +4 -4
- package/packages/sap.fe.core/src/sap/fe/core/library-preload.support.js +47 -3
- package/packages/sap.fe.core/src/sap/fe/core/library-preload.support.js.map +3 -3
- package/packages/sap.fe.core/src/sap/fe/core/library.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/library.support.js +9 -3
- package/packages/sap.fe.core/src/sap/fe/core/manifest.json +10 -10
- package/packages/sap.fe.core/src/sap/fe/core/manifestMerger/ChangePageConfiguration-dbg.js +62 -0
- package/packages/sap.fe.core/src/sap/fe/core/manifestMerger/ChangePageConfiguration.js +5 -0
- package/packages/sap.fe.core/src/sap/fe/core/manifestMerger/ChangePageConfiguration.ts +68 -0
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle.properties +40 -5
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_ar.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_bg.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_ca.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_cs.properties +25 -3
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_cy.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_da.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_de.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_el.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_en.properties +23 -1
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_en_GB.properties +23 -1
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_en_US_sappsd.properties +27 -1
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_en_US_saprigi.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_en_US_saptrc.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_es.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_es_MX.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_et.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_fi.properties +25 -3
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_fr.properties +25 -3
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_fr_CA.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_hi.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_hr.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_hu.properties +25 -3
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_id.properties +26 -4
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_it.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_iw.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_ja.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_kk.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_ko.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_lt.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_lv.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_ms.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_nl.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_no.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_pl.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_pt.properties +25 -3
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_pt_PT.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_ro.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_ru.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_sh.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_sk.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_sl.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_sv.properties +25 -3
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_th.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_tr.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_uk.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_vi.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_zh_CN.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/messagebundle_zh_TW.properties +24 -2
- package/packages/sap.fe.core/src/sap/fe/core/resources.json +483 -235
- package/packages/sap.fe.core/src/sap/fe/core/services/AsyncComponentServiceFactory-dbg.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/services/AsyncComponentServiceFactory.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/services/EnvironmentServiceFactory-dbg.js +4 -3
- package/packages/sap.fe.core/src/sap/fe/core/services/EnvironmentServiceFactory.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/services/EnvironmentServiceFactory.ts +3 -0
- package/packages/sap.fe.core/src/sap/fe/core/services/RoutingServiceFactory-dbg.js +93 -346
- package/packages/sap.fe.core/src/sap/fe/core/services/RoutingServiceFactory.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/services/ShellServicesFactory-dbg.js +31 -2
- package/packages/sap.fe.core/src/sap/fe/core/services/ShellServicesFactory.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/services/ShellServicesFactory.ts +30 -1
- package/packages/sap.fe.core/src/sap/fe/core/services/SideEffectsServiceFactory-dbg.js +8 -5
- package/packages/sap.fe.core/src/sap/fe/core/services/SideEffectsServiceFactory.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/services/SideEffectsServiceFactory.ts +11 -6
- package/packages/sap.fe.core/src/sap/fe/core/services/TemplatedViewServiceFactory-dbg.js +12 -3
- package/packages/sap.fe.core/src/sap/fe/core/services/TemplatedViewServiceFactory.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/support/InvalidAnnotationColumnKey.support.js +38 -0
- package/packages/sap.fe.core/src/sap/fe/core/support/InvalidAnnotationColumnKey.support.ts +18 -0
- package/packages/sap.fe.core/src/sap/fe/core/templating/DataModelPathHelper-dbg.js +10 -48
- package/packages/sap.fe.core/src/sap/fe/core/templating/DataModelPathHelper.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/templating/DataModelPathHelper.ts +14 -46
- package/packages/sap.fe.core/src/sap/fe/core/templating/DisplayModeFormatter-dbg.js +114 -0
- package/packages/sap.fe.core/src/sap/fe/core/templating/DisplayModeFormatter.js +5 -0
- package/packages/sap.fe.core/src/sap/fe/core/templating/DisplayModeFormatter.ts +86 -0
- package/packages/sap.fe.core/src/sap/fe/core/templating/FilterHelper-dbg.js +10 -7
- package/packages/sap.fe.core/src/sap/fe/core/templating/FilterHelper.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/templating/FilterHelper.ts +8 -6
- package/packages/sap.fe.core/src/sap/fe/core/templating/PropertyHelper-dbg.js +2 -2
- package/packages/sap.fe.core/src/sap/fe/core/templating/PropertyHelper.ts +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/templating/UIFormatters-dbg.js +15 -110
- package/packages/sap.fe.core/src/sap/fe/core/templating/UIFormatters.js +1 -1
- package/packages/sap.fe.core/src/sap/fe/core/templating/UIFormatters.ts +6 -73
- package/packages/sap.fe.core/test/sap/fe/core/designtime/api.json +1 -1
- package/packages/sap.fe.core/test/sap/fe/core/designtime/apiref/api.json +1 -1
- package/packages/sap.fe.core/test/sap/fe/core/designtime/codeassistance/Library.jsmeta.json +1 -1
- package/packages/sap.fe.core/test/sap/fe/core/designtime/codeassistance/Library.jstemplates.json +1 -1
- package/packages/sap.fe.core/test/sap/fe/core/designtime/codeassistance/Library.xmlmeta.json +1 -1
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/model/ControllerExtensionNavigationModel.js +5 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/model/CustomElementNavigationModel.js +105 -7
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/model/MacroNavigationModel.js +176 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/FCL/FclNavigationButtons/myViewTest.controller.js +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/chart/chartDefault/ChartDefault.controller.js +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/chart/chartDefault/ChartDefault.view.xml +0 -1
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/chart/chartQualifier/ChartQualifier.controller.js +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/chart/chartSelectionMode/ChartSelectionMode.controller.js +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/field/fieldEdit/FieldEdit.controller.js +3 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/field/fieldEvents/FieldEvents.controller.js +3 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/field/fieldFormatOptions/FieldFormatOptions.controller.js +3 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/field/fieldNavProp/FieldNavProp.controller.js +3 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarAnnotationDefaults/Component.js +36 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarAnnotationDefaults/FilterBarAnnotationDefaults.controller.js +35 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarAnnotationDefaults/FilterBarAnnotationDefaults.view.xml +58 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarAnnotationDefaults/localService/RootEntity.json +102 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarAnnotationDefaults/localService/ValueHelpEntity.js +11 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarAnnotationDefaults/localService/service.cds +97 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarAnnotationDefaults/manifest.json +72 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarCustoms/Component.js +36 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarCustoms/CustomFilter.js +36 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarCustoms/CustomRatingFilter.fragment.xml +8 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarCustoms/CustomRatingFilterOperator.fragment.xml +17 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarCustoms/CustomRatingRangeFilter.fragment.xml +8 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarCustoms/FilterBarCustoms.controller.js +42 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarCustoms/FilterBarCustoms.view.xml +70 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarCustoms/localService/RootEntity.json +107 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarCustoms/localService/ValueHelpEntity.js +11 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarCustoms/localService/service.cds +152 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarCustoms/manifest.json +72 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarDefault/FilterBarDefault.controller.js +13 -6
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarDefault/FilterBarDefault.view.xml +1 -1
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarDefault/localService/ChildEntity.json +15 -674
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarDefault/localService/MultiChildEntity.json +92 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarDefault/localService/RootEntity.json +10 -5
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarDefault/localService/service.cds +72 -19
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarSVandAnnotationDefaults/Component.js +36 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarSVandAnnotationDefaults/FilterBarSVandAnnotationDefaults.controller.js +35 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarSVandAnnotationDefaults/FilterBarSVandAnnotationDefaults.view.xml +58 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarSVandAnnotationDefaults/localService/RootEntity.json +102 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarSVandAnnotationDefaults/localService/ValueHelpEntity.js +11 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarSVandAnnotationDefaults/localService/service.cds +115 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarSVandAnnotationDefaults/manifest.json +72 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBarAnnotationDefaults.html +37 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBarCustoms.html +37 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBarSVandAnnotationDefaults.html +37 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidance/guidanceFreestyle/Component.js +35 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidance/guidanceFreestyle/DetailPage.controller.js +5 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidance/guidanceFreestyle/DetailPage.view.xml +15 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidance/guidanceFreestyle/EntryPage.controller.js +43 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidance/guidanceFreestyle/EntryPage.view.xml +79 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidance/guidanceFreestyle/localService/ChildEntity.json +23 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidance/guidanceFreestyle/localService/RootEntity.json +41 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidance/guidanceFreestyle/localService/ValueHelpCurrencyEntity.json +5 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidance/guidanceFreestyle/localService/ValueHelpEntity.js +11 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidance/guidanceFreestyle/localService/service.cds +144 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidance/guidanceFreestyle/manifest.json +96 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidance/guidanceFreestyle/template/Component.js +9 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidance/guidanceFreestyle/template/EntryPage.controller.js +5 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidance/guidanceFreestyle/template/EntryPage.view.xml +14 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/guidanceFreestyle.html +69 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/i18n/i18n.properties +3 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/microchart/microChartDefault/MicroChartDefault.controller.js +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/microchart/microChartDynamicSize/MicroChartDynamicSize.controller.js +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/microchart/microChartHideOnNoData/MicroChartHideOnNoData.controller.js +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/microchart/microChartShowOnlyChart/MicroChartShowOnlyChart.controller.js +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/table/tableCustoms/Page.controller.js +4 -3
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/table/tableCustoms/Page.view.xml +36 -30
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/table/tableDefault/TableDefault.controller.js +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/table/tableEdit/TableEdit.controller.js +3 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/table/tableEdit/TableEdit.view.xml +30 -24
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/controllerExtensions/basicExtensibility/Component.js +3 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/controllerExtensions/basicExtensibility/OPExtend.controller.js +17 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/controllerExtensions/basicExtensibility/localService/ChildEntity.json +9 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/controllerExtensions/basicExtensibility/localService/service.cds +46 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/controllerExtensions/basicExtensibility/manifest.json +24 -1
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/controllerExtensions/basicExtensibility.html +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customColumn/customColumnContent/CustomColumnAdaptation.fragment.xml +1 -1
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customColumn/customColumnContent/CustomColumnBuildingBlockField.fragment.xml +3 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customColumn/customColumnContent/CustomColumnButton.fragment.xml +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customColumn/customColumnContent/localService/service.cds +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customColumn/customColumnContent/manifest.json +7 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customElementsOverview.md +4 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customFormElement/customFormElementContent/Component.js +35 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customFormElement/customFormElementContent/CustomFormElement1.fragment.xml +3 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customFormElement/customFormElementContent/CustomFormElement2.fragment.xml +3 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customFormElement/customFormElementContent/localService/RootEntity.json +9 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customFormElement/customFormElementContent/localService/service.cds +136 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customFormElement/customFormElementContent/manifest.json +90 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customFormElementContent.html +36 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customHeaderFacet/customHeaderFacetContent/{CustomHeaderFacetFormElement.fragment.xml → CustomHeaderFacetBuildingBlockFormElement.fragment.xml} +0 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customHeaderFacet/customHeaderFacetContent/{CustomHeaderFacetFormElementEdit.fragment.xml → CustomHeaderFacetBuildingBlockFormElementEdit.fragment.xml} +1 -1
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customHeaderFacet/customHeaderFacetContent/CustomHeaderFacetBuildingBlockMicroChart.fragment.xml +10 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customHeaderFacet/customHeaderFacetContent/CustomHeaderFacetBuildingBlockMicroChartEdit.fragment.xml +5 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customHeaderFacet/customHeaderFacetContent/CustomHeaderFacetDataPointEdit.fragment.xml +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customHeaderFacet/customHeaderFacetContent/CustomHeaderFacetMicroChartEdit.fragment.xml +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customHeaderFacet/customHeaderFacetContent/localService/RootEntity.json +6 -1
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customHeaderFacet/customHeaderFacetContent/localService/service.cds +30 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customHeaderFacet/customHeaderFacetContent/manifest.json +13 -3
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customPage/customPageContent/CustomPage.view.xml +1 -2
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customSection/customSectionContent/CustomSection.fragment.xml +1 -7
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customSection/customSectionContent/CustomSectionFormElementAndTable.fragment.xml +0 -1
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customSection/customSectionContent/CustomSectionNavigation.fragment.xml +1 -7
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customSectionContent.html +60 -27
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customSubSection/customSubSectionContent/Component.js +35 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customSubSection/customSubSectionContent/CustomSubSection1.fragment.xml +3 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customSubSection/customSubSectionContent/CustomSubSection2.fragment.xml +3 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customSubSection/customSubSectionContent/CustomSubSection3.fragment.xml +11 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customSubSection/customSubSectionContent/localService/ChildEntity.json +42 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customSubSection/customSubSectionContent/localService/RootEntity.json +9 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customSubSection/customSubSectionContent/localService/service.cds +139 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customSubSection/customSubSectionContent/manifest.json +104 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/customSubSectionContent.html +36 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/customElements/i18n/i18n.properties +3 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/BindingExpression-AnnotationExpression.spec.js +20 -6
- package/packages/sap.fe.core/test/sap/fe/core/jest/BindingExpression-AnnotationExpression.spec.ts +22 -6
- package/packages/sap.fe.core/test/sap/fe/core/jest/BindingExpression.spec.js +71 -23
- package/packages/sap.fe.core/test/sap/fe/core/jest/BindingExpression.spec.ts +97 -24
- package/packages/sap.fe.core/test/sap/fe/core/jest/TransactionHelper.spec.js +624 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/__snapshots__/TemplateConverter.spec.ts.snap +449 -140
- package/packages/sap.fe.core/test/sap/fe/core/jest/controllerextensions/EditFlow.spec.js +435 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/controllerextensions/EditFlow.spec.ts +385 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/controllerextensions/KPIManagement.spec.js +229 -2
- package/packages/sap.fe.core/test/sap/fe/core/jest/controllerextensions/KPIManagement.spec.ts +227 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/controllerextensions/MessageHandler.spec.js +235 -63
- package/packages/sap.fe.core/test/sap/fe/core/jest/controllerextensions/MessageHandler.spec.ts +162 -40
- package/packages/sap.fe.core/test/sap/fe/core/jest/controllerextensions/MessageHandling.spec.js +115 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/controllerextensions/MessageHandling.spec.ts +95 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/controllerextensions/SideEffects.spec.js +1 -2
- package/packages/sap.fe.core/test/sap/fe/core/jest/controllerextensions/SideEffects.spec.ts +0 -1
- package/packages/sap.fe.core/test/sap/fe/core/jest/controllerextensions/ViewState.spec.js +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/jest/controllerextensions/ViewState.spec.ts +2 -2
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/ConverterContext.spec.js +11 -1
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/ConverterContext.spec.ts +9 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/HeaderFacet.spec.js +18 -1
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/HeaderFacet.spec.ts +25 -1
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/KPI.spec.js +64 -1
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/KPI.spec.ts +66 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/ListReportConverter.spec.js +261 -20
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/ListReportConverter.spec.ts +329 -19
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/MetaModelConverter.spec.js +79 -8
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/MetaModelConverter.spec.ts +128 -8
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/ObjectPageConverter.spec.js +7 -7
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/ObjectPageConverter.spec.ts +6 -6
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/SubSection.spec.js +22 -1
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/SubSection.spec.ts +26 -1
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/Table.spec.js +136 -244
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/Table.spec.ts +156 -376
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/TableStandardActions.spec.js +1267 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/TableStandardActions.spec.ts +2150 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/__snapshots__/KPI.spec.ts.snap +306 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/__snapshots__/MetaModelConverter.spec.ts.snap +57 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/converters/__snapshots__/Table.spec.ts.snap +1 -1
- package/packages/sap.fe.core/test/sap/fe/core/jest/data/AnalyticalService.cds +137 -5
- package/packages/sap.fe.core/test/sap/fe/core/jest/data/BindingExpression-AnnotationExpression.xml +13 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/data/HeaderFacets.cds +28 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/data/KPI.cds +191 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/data/MetaModelConverterContext.cds +20 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/data/ObjectPageConverter.cds +69 -1
- package/packages/sap.fe.core/test/sap/fe/core/jest/data/RoutingServiceFactory.cds +35 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/data/SideEffects.cds +26 -1
- package/packages/sap.fe.core/test/sap/fe/core/jest/data/Table.cds +98 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/data/TableNewActionOperationAvailableSticky.cds +22 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/data/TableTooltips.cds +43 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/formatters/ValueFormatters.spec.js +10 -1
- package/packages/sap.fe.core/test/sap/fe/core/jest/formatters/ValueFormatters.spec.ts +20 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/helpers/AppStartupHelper.spec.js +912 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/helpers/AppStartupHelper.spec.ts +981 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/helpers/__snapshots__/AppStartupHelper.spec.ts.snap +358 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/manifestmerger/ChangePageConfiguration.spec.js +242 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/manifestmerger/ChangePageConfiguration.spec.ts +297 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/manifestmerger/__snapshots__/ChangePageConfiguration.spec.ts.snap +289 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/services/RoutingServiceFactory.spec.js +292 -366
- package/packages/sap.fe.core/test/sap/fe/core/jest/services/RoutingServiceFactory.spec.ts +247 -0
- package/packages/sap.fe.core/test/sap/fe/core/jest/services/SideEffectsService.spec.js +14 -1
- package/packages/sap.fe.core/test/sap/fe/core/jest/services/SideEffectsService.spec.ts +19 -0
- package/packages/sap.fe.core/test/sap/fe/core/qunit/apps/generalTests.json +0 -12
- package/packages/sap.fe.core/test/sap/fe/core/relnotes/changes-1.98.json +363 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/.library +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/.theming +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/Chart.fragment.xml +5 -5
- package/packages/sap.fe.macros/src/sap/fe/macros/Chart.metadata-dbg.js +0 -2
- package/packages/sap.fe.macros/src/sap/fe/macros/Chart.metadata.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/ChartAPI-dbg.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/ChartAPI.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/ChartDelegate-dbg.js +4 -4
- package/packages/sap.fe.macros/src/sap/fe/macros/ChartDelegate.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/CommonHelper-dbg.js +26 -24
- package/packages/sap.fe.macros/src/sap/fe/macros/CommonHelper.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/FieldAPI-dbg.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/FieldAPI.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/FieldBaseDelegate-dbg.js +90 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/FieldBaseDelegate.js +6 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/FilterBar.fragment.xml +7 -6
- package/packages/sap.fe.macros/src/sap/fe/macros/FilterBar.metadata-dbg.js +63 -8
- package/packages/sap.fe.macros/src/sap/fe/macros/FilterBar.metadata.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/FilterBarAPI-dbg.js +42 -4
- package/packages/sap.fe.macros/src/sap/fe/macros/FilterBarAPI.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/FilterBarAPI.ts +76 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/FilterBarDelegate-dbg.js +49 -6
- package/packages/sap.fe.macros/src/sap/fe/macros/FilterBarDelegate.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/FilterField-dbg.designtime.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/Form.fragment.xml +21 -17
- package/packages/sap.fe.macros/src/sap/fe/macros/Form.metadata-dbg.js +8 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/Form.metadata.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/MacroAPI-dbg.js +2 -2
- package/packages/sap.fe.macros/src/sap/fe/macros/MacroAPI.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/MacroMetadata-dbg.js +2 -2
- package/packages/sap.fe.macros/src/sap/fe/macros/MacroMetadata.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/PhantomUtil-dbg.js +8 -3
- package/packages/sap.fe.macros/src/sap/fe/macros/PhantomUtil.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/QuickViewForm.metadata-dbg.js +2 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/QuickViewForm.metadata.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/Share.metadata-dbg.js +11 -8
- package/packages/sap.fe.macros/src/sap/fe/macros/Share.metadata.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/SizeHelper-dbg.js +168 -35
- package/packages/sap.fe.macros/src/sap/fe/macros/SizeHelper.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/Table.fragment.xml +107 -109
- package/packages/sap.fe.macros/src/sap/fe/macros/Table.metadata-dbg.js +51 -65
- package/packages/sap.fe.macros/src/sap/fe/macros/Table.metadata.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/TableAPI-dbg.js +9 -4
- package/packages/sap.fe.macros/src/sap/fe/macros/TableAPI.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/TableAPI.ts +5 -2
- package/packages/sap.fe.macros/src/sap/fe/macros/chart/ChartHelper-dbg.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/chart/ChartHelper.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/chart/ChartUtils-dbg.js +2 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/chart/ChartUtils.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/field/FieldHelper-dbg.js +101 -16
- package/packages/sap.fe.macros/src/sap/fe/macros/field/FieldHelper.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/field/FieldRuntime-dbg.js +273 -71
- package/packages/sap.fe.macros/src/sap/fe/macros/field/FieldRuntime.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/field/FieldTemplating-dbg.js +128 -32
- package/packages/sap.fe.macros/src/sap/fe/macros/field/FieldTemplating.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/field/FieldTemplating.ts +110 -16
- package/packages/sap.fe.macros/src/sap/fe/macros/field/QuickViewLinkContactContent.fragment.xml +11 -4
- package/packages/sap.fe.macros/src/sap/fe/macros/field/QuickViewLinkDelegate-dbg.js +65 -84
- package/packages/sap.fe.macros/src/sap/fe/macros/field/QuickViewLinkDelegate.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/filter/CustomFilter.fragment.xml +5 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/filter/FilterUtils-dbg.js +2 -2
- package/packages/sap.fe.macros/src/sap/fe/macros/filter/FilterUtils.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/form/DataFieldCollection.fragment.xml +2 -2
- package/packages/sap.fe.macros/src/sap/fe/macros/fpm/CustomFormElement.fragment.xml +5 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/CollectionField.metadata-dbg.js +72 -12
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/CollectionField.metadata.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/CollectionField.metadata.ts +43 -14
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/DataPoint.fragment.xml +13 -2
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/DataPoint.metadata-dbg.js +55 -8
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/DataPoint.metadata.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/Field.fragment.xml +1 -3
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/Field.metadata-dbg.js +38 -65
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/Field.metadata.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/{FilterField.fragment.xml → internal/FilterField.fragment.xml} +2 -2
- package/packages/sap.fe.macros/src/sap/fe/macros/{FilterField.metadata-dbg.js → internal/FilterField.metadata-dbg.js} +5 -5
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/FilterField.metadata.js +6 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/SituationsIndicator-dbg.js +96 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/SituationsIndicator.js +5 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/SituationsIndicator.ts +116 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/collectionField/MultiValueFieldDelegate-dbg.js +7 -15
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/collectionField/MultiValueFieldDelegate.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/FieldStructure.fragment.xml +4 -5
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/displayStyle/AmountWithCurrency.fragment.xml +5 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/displayStyle/DataPoint.fragment.xml +5 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/displayStyle/ExpandableText.fragment.xml +1 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/displayStyle/File.fragment.xml +2 -2
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/displayStyle/LabelSemanticKey.fragment.xml +5 -3
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/displayStyle/Link.fragment.xml +11 -3
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/displayStyle/LinkWithQuickViewForm.fragment.xml +1 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/displayStyle/LinkWrapper.fragment.xml +5 -4
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/displayStyle/MdcFieldWithValueHelp.fragment.xml +48 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/displayStyle/ObjectIdentifier.fragment.xml +140 -18
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/displayStyle/ObjectStatus.fragment.xml +1 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/displayStyle/SemanticKeyWithDraftIndicator.fragment.xml +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/displayStyle/Text.fragment.xml +6 -3
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/editStyle/CheckBox.fragment.xml +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/editStyle/DatePicker.fragment.xml +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/editStyle/DateTimePicker.fragment.xml +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/editStyle/File.fragment.xml +14 -4
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/editStyle/Input.fragment.xml +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/editStyle/InputWithUnit.fragment.xml +3 -3
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/editStyle/InputWithValueHelp.fragment.xml +2 -2
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/editStyle/TextArea.fragment.xml +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/field/editStyle/TimePicker.fragment.xml +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/helpers/DataPointTemplating-dbg.js +25 -9
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/helpers/DataPointTemplating.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/helpers/DataPointTemplating.ts +30 -16
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/situations/Formatter-dbg.js +154 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/situations/Formatter.js +5 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/situations/Formatter.ts +146 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/situations/Runtime-dbg.js +204 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/situations/Runtime.js +5 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/situations/Runtime.ts +215 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/valuehelp/TableDelegate-dbg.js +29 -8
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/valuehelp/TableDelegate.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/valuehelp/ValueHelp-dbg.designtime.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/valuehelp/ValueHelpContent.fragment.xml +0 -10
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/valuehelp/ValueListDialogTable.fragment.xml +2 -2
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/valuehelp/ValueListHelper-dbg.js +151 -131
- package/packages/sap.fe.macros/src/sap/fe/macros/internal/valuehelp/ValueListHelper.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/library-dbg.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/library-h2-preload.js +24 -23
- package/packages/sap.fe.macros/src/sap/fe/macros/library-h2-preload.js.map +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/library-preload.js +209 -188
- package/packages/sap.fe.macros/src/sap/fe/macros/library-preload.js.map +4 -4
- package/packages/sap.fe.macros/src/sap/fe/macros/library.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/macroLibrary-dbg.js +7 -4
- package/packages/sap.fe.macros/src/sap/fe/macros/macroLibrary.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/manifest.json +9 -9
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle.properties +36 -10
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_ar.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_bg.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_ca.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_cs.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_cy.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_da.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_de.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_el.properties +13 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_en.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_en_GB.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_en_US_sappsd.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_en_US_saprigi.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_en_US_saptrc.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_es.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_es_MX.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_et.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_fi.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_fr.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_fr_CA.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_hi.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_hr.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_hu.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_id.properties +14 -2
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_it.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_iw.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_ja.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_kk.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_ko.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_lt.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_lv.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_ms.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_nl.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_no.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_pl.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_pt.properties +13 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_pt_PT.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_ro.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_ru.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_sh.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_sk.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_sl.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_sv.properties +13 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_th.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_tr.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_uk.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_vi.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_zh_CN.properties +13 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/messagebundle_zh_TW.properties +12 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/resources.json +496 -354
- package/packages/sap.fe.macros/src/sap/fe/macros/table/Actions.fragment.xml +53 -57
- package/packages/sap.fe.macros/src/sap/fe/macros/table/Column.fragment.xml +1 -0
- package/packages/sap.fe.macros/src/sap/fe/macros/table/ColumnContent.fragment.xml +38 -32
- package/packages/sap.fe.macros/src/sap/fe/macros/table/QuickFilterContainer-dbg.js +12 -3
- package/packages/sap.fe.macros/src/sap/fe/macros/table/QuickFilterContainer.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/table/TableHelper-dbg.js +17 -91
- package/packages/sap.fe.macros/src/sap/fe/macros/table/TableHelper.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/table/TableRuntime-dbg.js +4 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/table/TableRuntime.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/table/Utils-dbg.js +9 -4
- package/packages/sap.fe.macros/src/sap/fe/macros/table/Utils.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/table/delegates/ALPTableDelegateBaseMixin-dbg.js +3 -3
- package/packages/sap.fe.macros/src/sap/fe/macros/table/delegates/ALPTableDelegateBaseMixin.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/table/delegates/TableDelegate-dbg.js +198 -71
- package/packages/sap.fe.macros/src/sap/fe/macros/table/delegates/TableDelegate.js +1 -1
- package/packages/sap.fe.macros/src/sap/fe/macros/valuehelp/ValueHelpFilterBar.fragment.xml +4 -4
- package/packages/sap.fe.macros/test/sap/fe/macros/designtime/api.json +58 -15
- package/packages/sap.fe.macros/test/sap/fe/macros/designtime/apiref/api.json +1 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/designtime/codeassistance/Library.jsmeta.json +1 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/designtime/codeassistance/Library.xmlmeta.json +1 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/ChartDelegate.spec.js +1 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/ChartDelegate.spec.ts +1 -2
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/ChartHelper.spec.js +1 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/ChartHelper.spec.ts +0 -2
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/ChartMacro.spec.js +1 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/ChartMacro.spec.ts +0 -2
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/ChartUtils.spec.js +1 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/ChartUtils.spec.ts +0 -2
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/CollectionField.spec.js +21 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/CollectionField.spec.ts +20 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/CommonUtils.spec.js +1 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/CommonUtils.spec.ts +1 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/DatapointMacro.spec.js +19 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/DatapointMacro.spec.ts +12 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/DelegateUtil.spec.js +2 -2
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/FieldBaseDelegate.spec.js +111 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/FieldMacroWithSemanticKey.spec.js +67 -3
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/FieldMacroWithSemanticKey.spec.ts +81 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/FilterBarDelegate.spec.js +4 -6
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/FilterBarMacro.spec.js +52 -6
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/FilterBarMacro.spec.ts +64 -7
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/FilterField.spec.js +34 -4
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/FilterField.spec.ts +46 -3
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/PhantomUtil.spec.js +43 -4
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/PhantomUtil.spec.ts +62 -3
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/QuickViewForm.spec.js +31 -5
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/QuickViewForm.spec.ts +25 -3
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/SimpleFieldMacro.spec.js +11 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/SimpleFieldMacro.spec.ts +9 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/TableMacro.spec.js +40 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/TableMacro.spec.ts +35 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/__snapshots__/ChartMacro.spec.ts.snap +42 -42
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/__snapshots__/CollectionField.spec.ts.snap +49 -7
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/__snapshots__/DatapointMacro.spec.ts.snap +27 -11
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/__snapshots__/FieldMacroDataFieldTypes.spec.ts.snap +50 -44
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/__snapshots__/FieldMacroWithSemanticKey.spec.ts.snap +146 -56
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/__snapshots__/FieldMacroWithValueHelp.spec.ts.snap +16 -16
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/__snapshots__/FilterBarMacro.spec.ts.snap +774 -11
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/__snapshots__/FilterField.spec.ts.snap +70 -2
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/__snapshots__/MicroChart.spec.ts.snap +1 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/__snapshots__/PhantomUtil.spec.ts.snap +70 -165
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/__snapshots__/QuickViewForm.spec.ts.snap +39 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/__snapshots__/SimpleFieldMacro.spec.ts.snap +287 -170
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/__snapshots__/TableFieldLabel.spec.ts.snap +369 -213
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/data/CollectionField.cds +11 -3
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/data/FieldMacroDataFieldTypes.cds +5 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/data/FieldMacroWithSemanticKey.cds +17 -12
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/data/FilterBarMacro.cds +18 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/data/FilterBarMacroWithDefaultAnnotation.cds +155 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/data/FilterBarMacroWithSVandAnnotation.cds +155 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/data/FilterFieldMacro.cds +13 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/data/QuickViewForm.cds +36 -11
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/data/TableFieldLabel.cds +22 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/data/simpleFieldMacro.cds +8 -3
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/field/FieldRuntime.spec.js +252 -61
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/field/FieldRuntime.spec.ts +277 -67
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/field/FieldTemplating.cds +93 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/field/FieldTemplating.spec.js +118 -16
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/field/FieldTemplating.spec.ts +143 -16
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/field/__snapshots__/FieldTemplating.spec.ts.snap +31 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/fragments/MyTestFragment.xml +3 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/fragments/MyTestSubFragment.xml +10 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/table/Actions.spec.js +14 -2
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/table/Actions.spec.ts +13 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/table/__snapshots__/columnWidth.spec.ts.snap +131 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/table/columnWidth.spec.js +264 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/table/columnWidth.spec.ts +244 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/table/data/columnWidth.cds +238 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/table/delegates/TableDelegate.spec.js +33 -6
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/table/delegates/TableDelegate.spec.ts +40 -2
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/table/delegates/ValueHelpTableDelegate.spec.js +61 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/table/delegates/ValueHelpTableDelegate.spec.ts +64 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/table/delegates/__snapshots__/TableDelegate.spec.ts.snap +1287 -32
- package/packages/sap.fe.macros/test/sap/fe/macros/jest/table/delegates/data/tabledelegate.cds +1 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/index.json +0 -5
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/CommonHelper.qunit.js +284 -159
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/FieldHelper.qunit.js +9 -9
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/FieldHelperTemplate.qunit.js +2 -2
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/FormContainerTemplating.qunit.js +1 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/FormElementTemplating.qunit.js +1 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/FormTemplating.qunit.js +10 -5
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/FormTemplatingTs.qunit.js +2 -2
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/MacroMetadata.qunit.js +5 -5
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/MicroChartContainer.qunit.js +29 -0
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/TableHelper.qunit.js +6 -26
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/TableHelperTemplate.qunit.js +3 -8
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/ValueListHelper.qunit.js +402 -18
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/fragments/FilterFieldMacro.fragment.xml +1 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/fragments/FilterFieldMacroMissingID.fragment.xml +1 -1
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/fragments/TableMacro.fragment.xml +0 -2
- package/packages/sap.fe.macros/test/sap/fe/macros/relnotes/changes-1.98.json +210 -0
- package/packages/sap.fe.navigation/src/sap/fe/navigation/.library +1 -1
- package/packages/sap.fe.navigation/src/sap/fe/navigation/.theming +1 -1
- package/packages/sap.fe.navigation/src/sap/fe/navigation/NavigationHandler-dbg.js +70 -29
- package/packages/sap.fe.navigation/src/sap/fe/navigation/NavigationHandler.js +1 -1
- package/packages/sap.fe.navigation/src/sap/fe/navigation/library-dbg.js +1 -1
- package/packages/sap.fe.navigation/src/sap/fe/navigation/library-h2-preload.js +2 -2
- package/packages/sap.fe.navigation/src/sap/fe/navigation/library-preload.js +6 -5
- package/packages/sap.fe.navigation/src/sap/fe/navigation/library-preload.js.map +3 -3
- package/packages/sap.fe.navigation/src/sap/fe/navigation/library.js +1 -1
- package/packages/sap.fe.navigation/src/sap/fe/navigation/manifest.json +3 -3
- package/packages/sap.fe.navigation/src/sap/fe/navigation/resources.json +5 -5
- package/packages/sap.fe.navigation/test/sap/fe/navigation/designtime/api.json +1 -1
- package/packages/sap.fe.navigation/test/sap/fe/navigation/designtime/apiref/api.json +1 -1
- package/packages/sap.fe.navigation/test/sap/fe/navigation/designtime/codeassistance/Library.xmlmeta.json +1 -1
- package/packages/sap.fe.navigation/test/sap/fe/navigation/qunit/navigation/NavigationHandlerTest.qunit.js +4 -12
- package/packages/sap.fe.placeholder/src/sap/fe/placeholder/.library +1 -1
- package/packages/sap.fe.placeholder/src/sap/fe/placeholder/.theming +1 -1
- package/packages/sap.fe.placeholder/src/sap/fe/placeholder/library-dbg.js +1 -1
- package/packages/sap.fe.placeholder/src/sap/fe/placeholder/library-h2-preload.js +2 -2
- package/packages/sap.fe.placeholder/src/sap/fe/placeholder/library-preload.js +2 -2
- package/packages/sap.fe.placeholder/src/sap/fe/placeholder/library.js +1 -1
- package/packages/sap.fe.placeholder/src/sap/fe/placeholder/manifest.json +3 -3
- package/packages/sap.fe.placeholder/test/sap/fe/placeholder/designtime/api.json +1 -1
- package/packages/sap.fe.placeholder/test/sap/fe/placeholder/designtime/apiref/api.json +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/.library +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/.theming +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate-dbg.js +2 -2
- package/packages/sap.fe.templates/src/sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/AnalyticalListPage/manifest.json +2 -2
- package/packages/sap.fe.templates/src/sap/fe/templates/AnalyticalListPage/resources.json +2 -2
- package/packages/sap.fe.templates/src/sap/fe/templates/ListComponent-dbg.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ListComponent.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/ExtensionAPI-dbg.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/ExtensionAPI.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/ListReport.view.xml +2 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/ListReportController-dbg.controller.js +85 -85
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/ListReportController.controller.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/manifest.json +2 -2
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation-dbg.js +6 -2
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/overrides/MassEdit-dbg.js +96 -0
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/overrides/MassEdit.js +6 -0
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/overrides/Share-dbg.js +36 -21
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/overrides/Share.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/overrides/ViewState-dbg.js +53 -31
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/overrides/ViewState.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ListReport/resources.json +20 -11
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/AnnotationHelper-dbg.js +20 -0
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/AnnotationHelper.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/Component-dbg.js +16 -14
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/Component.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/ExtensionAPI-dbg.js +15 -0
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/ExtensionAPI.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/ObjectPage.view.xml +103 -88
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/ObjectPageController-dbg.controller.js +99 -72
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/manifest.json +2 -2
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/overrides/Paginator-dbg.js +12 -0
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/overrides/Paginator.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/overrides/Share-dbg.js +47 -43
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/overrides/Share.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/overrides/ViewState-dbg.js +0 -20
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/overrides/ViewState.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/resources.json +24 -24
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/view/fragments/Actions.fragment.xml +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/view/fragments/Section.fragment.xml +24 -5
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/view/fragments/SectionContent.fragment.xml +1 -4
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/view/fragments/SectionContentLazyLoader.fragment.xml +181 -0
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/view/fragments/SectionFormContent.fragment.xml +1 -0
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/view/fragments/SectionMoreFormContent.fragment.xml +1 -0
- package/packages/sap.fe.templates/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController-dbg.js +133 -123
- package/packages/sap.fe.templates/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/controls/Table.fragment.xml +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/library-dbg.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/library-h2-preload.js +8 -7
- package/packages/sap.fe.templates/src/sap/fe/templates/library-h2-preload.js.map +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/library-preload.js +34 -32
- package/packages/sap.fe.templates/src/sap/fe/templates/library-preload.js.map +4 -4
- package/packages/sap.fe.templates/src/sap/fe/templates/library.js +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/manifest.json +13 -13
- package/packages/sap.fe.templates/src/sap/fe/templates/messagebundle.properties +24 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/messagebundle_en_US_sappsd.properties +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/messagebundle_en_US_saprigi.properties +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/messagebundle_en_US_saptrc.properties +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/messagebundle_es.properties +8 -8
- package/packages/sap.fe.templates/src/sap/fe/templates/messagebundle_fr.properties +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/messagebundle_ja.properties +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/messagebundle_tr.properties +1 -1
- package/packages/sap.fe.templates/src/sap/fe/templates/resources.json +126 -66
- package/packages/sap.fe.templates/test/sap/fe/templates/demokit/apps/itelo/webapp/manifest.json +1 -1
- package/packages/sap.fe.templates/test/sap/fe/templates/designtime/api.json +1 -1
- package/packages/sap.fe.templates/test/sap/fe/templates/designtime/apiref/api.json +1 -1
- package/packages/sap.fe.templates/test/sap/fe/templates/designtime/codeassistance/Library.jsmeta.json +1 -1
- package/packages/sap.fe.templates/test/sap/fe/templates/designtime/codeassistance/Library.xmlmeta.json +1 -1
- package/packages/sap.fe.templates/test/sap/fe/templates/jest/ListReport/overrides/ViewState.spec.js +262 -0
- package/packages/sap.fe.templates/test/sap/fe/templates/jest/ObjectPage/view/fragments/HeaderFacet.spec.js +2 -1
- package/packages/sap.fe.templates/test/sap/fe/templates/jest/ObjectPage/view/fragments/HeaderFacet.spec.ts +1 -0
- package/packages/sap.fe.templates/test/sap/fe/templates/jest/ObjectPage/view/fragments/Sections.spec.js +132 -0
- package/packages/sap.fe.templates/test/sap/fe/templates/jest/ObjectPage/view/fragments/Sections.spec.ts +131 -0
- package/packages/sap.fe.templates/test/sap/fe/templates/jest/ObjectPage/view/fragments/__snapshots__/HeaderFacet.spec.ts.snap +1 -0
- package/packages/sap.fe.templates/test/sap/fe/templates/jest/ObjectPage/view/fragments/__snapshots__/Sections.spec.ts.snap +52 -0
- package/packages/sap.fe.templates/test/sap/fe/templates/jest/RootContainer/RootContainerBaseController.spec.js +229 -0
- package/packages/sap.fe.templates/test/sap/fe/templates/jest/RootContainer/RootContainerBaseController.spec.ts +157 -0
- package/packages/sap.fe.templates/test/sap/fe/templates/jest/RootContainer/__snapshots__/RootContainerBaseController.spec.ts.snap +218 -0
- package/packages/sap.fe.templates/test/sap/fe/templates/jest/data/RootContainerBaseController.cds +64 -0
- package/packages/sap.fe.templates/test/sap/fe/templates/relnotes/changes-1.98.json +201 -0
- package/packages/sap.fe.test/src/sap/fe/test/.library +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/.theming +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/JourneyRunner-dbg.js +8 -3
- package/packages/sap.fe.test/src/sap/fe/test/JourneyRunner.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/ListReport-dbg.js +8 -3
- package/packages/sap.fe.test/src/sap/fe/test/ListReport.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/ObjectPage-dbg.js +19 -11
- package/packages/sap.fe.test/src/sap/fe/test/ObjectPage.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/TemplatingTestUtils-dbg.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/TemplatingTestUtils.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/UI5MockHelper-dbg.js +211 -45
- package/packages/sap.fe.test/src/sap/fe/test/UI5MockHelper.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/UI5MockHelper.ts +103 -8
- package/packages/sap.fe.test/src/sap/fe/test/Utils-dbg.js +0 -12
- package/packages/sap.fe.test/src/sap/fe/test/Utils.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/api/BaseAPI-dbg.js +1 -7
- package/packages/sap.fe.test/src/sap/fe/test/api/BaseAPI.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/api/ChartAssertions-dbg.js +4 -4
- package/packages/sap.fe.test/src/sap/fe/test/api/ChartAssertions.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/api/KPICardActions-dbg.js +43 -0
- package/packages/sap.fe.test/src/sap/fe/test/api/KPICardActions.js +6 -0
- package/packages/sap.fe.test/src/sap/fe/test/api/KPICardAssertions-dbg.js +19 -15
- package/packages/sap.fe.test/src/sap/fe/test/api/KPICardAssertions.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/api/TableAssertions-dbg.js +11 -0
- package/packages/sap.fe.test/src/sap/fe/test/api/TableAssertions.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/builder/KPIBuilder-dbg.js +11 -2
- package/packages/sap.fe.test/src/sap/fe/test/builder/KPIBuilder.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/builder/MdcTableBuilder-dbg.js +22 -0
- package/packages/sap.fe.test/src/sap/fe/test/builder/MdcTableBuilder.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/library-dbg.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/library-h2-preload.js +5 -4
- package/packages/sap.fe.test/src/sap/fe/test/library-h2-preload.js.map +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/library-preload.js +37 -23
- package/packages/sap.fe.test/src/sap/fe/test/library-preload.js.map +4 -4
- package/packages/sap.fe.test/src/sap/fe/test/library.js +1 -1
- package/packages/sap.fe.test/src/sap/fe/test/manifest.json +3 -3
- package/packages/sap.fe.test/src/sap/fe/test/resources.json +59 -34
- package/packages/sap.fe.test/test/sap/fe/test/designtime/api.json +1 -1
- package/packages/sap.fe.test/test/sap/fe/test/designtime/apiref/api.json +1 -1
- package/packages/sap.fe.test/test/sap/fe/test/designtime/codeassistance/Library.xmlmeta.json +1 -1
- package/packages/sap.fe.test/test/sap/fe/test/mockserver/MockServer.js +98965 -71474
- package/packages/sap.fe.core/src/sap/fe/core/controls/filterbar.d-dbg.js +0 -8
- package/packages/sap.fe.core/src/sap/fe/core/controls/filterbar.d.js +0 -5
- package/packages/sap.fe.core/src/sap/fe/core/controls/filterbar.d.ts +0 -0
- package/packages/sap.fe.core/test/sap/fe/core/fpmExplorer/topics/buildingBlocks/filterBar/filterBarDefault/localService/CreditLimitDetails.json +0 -154
- package/packages/sap.fe.core/test/sap/fe/core/qunit/TransactionHelper.qunit.js +0 -77
- package/packages/sap.fe.macros/src/sap/fe/macros/FilterBarHelper-dbg.js +0 -48
- package/packages/sap.fe.macros/src/sap/fe/macros/FilterBarHelper.js +0 -6
- package/packages/sap.fe.macros/src/sap/fe/macros/FilterField.metadata.js +0 -6
- package/packages/sap.fe.macros/src/sap/fe/macros/FormWrapper.fragment.xml +0 -26
- package/packages/sap.fe.macros/src/sap/fe/macros/massedit/MassEditHandler-dbg.js +0 -718
- package/packages/sap.fe.macros/src/sap/fe/macros/massedit/MassEditHandler.js +0 -6
- package/packages/sap.fe.macros/test/sap/fe/macros/qunit/macros/FilterBarHelper.qunit.js +0 -223
- package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/view/fragments/HeaderImage.fragment.xml +0 -24
|
@@ -79,93 +79,108 @@
|
|
|
79
79
|
/>
|
|
80
80
|
</uxap:dependents>
|
|
81
81
|
<template:if test="{converterContext>header/visible}">
|
|
82
|
-
<
|
|
83
|
-
<uxap:
|
|
84
|
-
<uxap:
|
|
85
|
-
<
|
|
86
|
-
<FlexBox
|
|
87
|
-
<
|
|
82
|
+
<template:with path="converterContext>header/avatar" var="avatar">
|
|
83
|
+
<uxap:headerTitle>
|
|
84
|
+
<uxap:ObjectPageDynamicHeaderTitle primaryArea="Begin">
|
|
85
|
+
<uxap:expandedHeading>
|
|
86
|
+
<FlexBox>
|
|
87
|
+
<FlexBox visible="{converterContext>header/title/expandedImageVisible}">
|
|
88
|
+
<Avatar
|
|
89
|
+
class="sapUiSmallMarginEnd"
|
|
90
|
+
src="{avatar>src}"
|
|
91
|
+
initials="{avatar>initials}"
|
|
92
|
+
fallbackIcon="{avatar>fallbackIcon}"
|
|
93
|
+
displayShape="{avatar>displayShape}"
|
|
94
|
+
displaySize="S"
|
|
95
|
+
/>
|
|
96
|
+
</FlexBox>
|
|
97
|
+
<template:with path="entityType>@com.sap.vocabularies.UI.v1.HeaderInfo" var="headerInfo">
|
|
98
|
+
<Title
|
|
99
|
+
text="{= OPTemplating.getExpressionForTitle(${headerInfo>@@UI.getConverterContext}, ${viewData>}, ${fullContextPath>@@UI.getDataModelObjectPath}, ${entitySet>@com.sap.vocabularies.Common.v1.DraftRoot})}"
|
|
100
|
+
wrapping="true"
|
|
101
|
+
/>
|
|
102
|
+
</template:with>
|
|
88
103
|
</FlexBox>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
104
|
+
</uxap:expandedHeading>
|
|
105
|
+
<uxap:snappedHeading>
|
|
106
|
+
<FlexBox>
|
|
107
|
+
<Avatar
|
|
108
|
+
class="sapUiSmallMarginEnd"
|
|
109
|
+
src="{avatar>src}"
|
|
110
|
+
initials="{avatar>initials}"
|
|
111
|
+
fallbackIcon="{avatar>fallbackIcon}"
|
|
112
|
+
displayShape="{avatar>displayShape}"
|
|
113
|
+
displaySize="S"
|
|
93
114
|
/>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
115
|
+
<template:with path="entityType>@com.sap.vocabularies.UI.v1.HeaderInfo" var="headerInfo">
|
|
116
|
+
<Title
|
|
117
|
+
text="{= OPTemplating.getExpressionForTitle(${headerInfo>@@UI.getConverterContext}, ${viewData>}, ${fullContextPath>@@UI.getDataModelObjectPath}, ${entitySet>@com.sap.vocabularies.Common.v1.DraftRoot})}"
|
|
118
|
+
wrapping="true"
|
|
119
|
+
/>
|
|
120
|
+
</template:with>
|
|
121
|
+
</FlexBox>
|
|
122
|
+
</uxap:snappedHeading>
|
|
123
|
+
<uxap:expandedContent>
|
|
98
124
|
<FlexBox>
|
|
99
|
-
<
|
|
100
|
-
<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
</template:with>
|
|
125
|
+
<template:if test="{entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Description}">
|
|
126
|
+
<Label
|
|
127
|
+
text="{= OPTemplating.getExpressionForDescription(${headerInfo>@@UI.getConverterContext}, ${fullContextPath>@@UI.getDataModelObjectPath})}"
|
|
128
|
+
wrapping="true"
|
|
129
|
+
/>
|
|
130
|
+
</template:if>
|
|
106
131
|
</FlexBox>
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
id="fe::
|
|
132
|
+
</uxap:expandedContent>
|
|
133
|
+
<uxap:snappedContent>
|
|
134
|
+
<FlexBox>
|
|
135
|
+
<template:if test="{entityType>@com.sap.vocabularies.UI.v1.HeaderInfo/Description}">
|
|
136
|
+
<Label
|
|
137
|
+
text="{= OPTemplating.getExpressionForDescription(${headerInfo>@@UI.getConverterContext}, ${fullContextPath>@@UI.getDataModelObjectPath})}"
|
|
138
|
+
wrapping="true"
|
|
139
|
+
/>
|
|
140
|
+
</template:if>
|
|
141
|
+
</FlexBox>
|
|
142
|
+
</uxap:snappedContent>
|
|
143
|
+
<uxap:content>
|
|
144
|
+
<template:if test="{entitySet>@com.sap.vocabularies.Common.v1.DraftRoot}">
|
|
145
|
+
<macro:DraftIndicator DraftIndicatorType="IconOnly" class="sapUiTinyMarginBegin sapMTB sapMTBNewFlex" entitySet="{entitySet>}" />
|
|
146
|
+
</template:if>
|
|
147
|
+
<internal:SituationsIndicator xmlns:internal="sap.fe.macros.internal" entitySet="{entitySet>}" />
|
|
148
|
+
</uxap:content>
|
|
149
|
+
<uxap:navigationActions>
|
|
150
|
+
<template:if test="{= ${viewData>/viewLevel} > 1}">
|
|
151
|
+
<macro:Paginator id="fe::Paginator" />
|
|
152
|
+
</template:if>
|
|
153
|
+
<!-- Flexible column layout menu-->
|
|
154
|
+
<template:if test="{= ${viewData>/fclEnabled} }">
|
|
155
|
+
<macro:FlexibleColumnLayoutActions />
|
|
156
|
+
</template:if>
|
|
157
|
+
</uxap:navigationActions>
|
|
158
|
+
<uxap:actions>
|
|
159
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.Actions" type="XML" />
|
|
160
|
+
</uxap:actions>
|
|
161
|
+
<uxap:breadcrumbs>
|
|
162
|
+
<Breadcrumbs
|
|
163
|
+
unittest:id="BreadcrumbsTest"
|
|
164
|
+
visible="{= OP.getVisibleExpressionForBreadcrumbs(${viewData>/}) }"
|
|
165
|
+
modelContextChange="._setBreadcrumbLinks(${$source>/})"
|
|
166
|
+
id="fe::Breadcrumbs"
|
|
167
|
+
>
|
|
168
|
+
</Breadcrumbs>
|
|
169
|
+
</uxap:breadcrumbs>
|
|
170
|
+
</uxap:ObjectPageDynamicHeaderTitle>
|
|
171
|
+
</uxap:headerTitle>
|
|
172
|
+
<template:if test="{converterContext>header/hasContent}">
|
|
173
|
+
<uxap:headerContent>
|
|
174
|
+
<FlexBox
|
|
175
|
+
id="fe::HeaderContentContainer"
|
|
176
|
+
unittest:id="FlexBoxTest"
|
|
177
|
+
dt:designtime="sap/fe/templates/ObjectPage/designtime/FlexBox.designtime"
|
|
178
|
+
wrap="Wrap"
|
|
179
|
+
fitContainer="true"
|
|
180
|
+
alignItems="Stretch"
|
|
151
181
|
>
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
</uxap:ObjectPageDynamicHeaderTitle>
|
|
155
|
-
</uxap:headerTitle>
|
|
156
|
-
<template:if test="{converterContext>header/hasContent}">
|
|
157
|
-
<uxap:headerContent>
|
|
158
|
-
<FlexBox
|
|
159
|
-
id="fe::HeaderContentContainer"
|
|
160
|
-
unittest:id="FlexBoxTest"
|
|
161
|
-
dt:designtime="sap/fe/templates/ObjectPage/designtime/FlexBox.designtime"
|
|
162
|
-
wrap="Wrap"
|
|
163
|
-
fitContainer="true"
|
|
164
|
-
alignItems="Stretch"
|
|
165
|
-
>
|
|
166
|
-
<template:if test="{converterContext>header/avatar}">
|
|
167
|
-
<template:with path="converterContext>header/avatar" var="avatar">
|
|
168
|
-
<Avatar
|
|
182
|
+
<template:if test="{converterContext>header/avatar}">
|
|
183
|
+
<Avatar
|
|
169
184
|
unittest:id="AvatarOPHeaderContent"
|
|
170
185
|
class="sapUiSmallMarginEnd sapUiSmallMarginBottom"
|
|
171
186
|
src="{avatar>src}"
|
|
@@ -174,12 +189,12 @@
|
|
|
174
189
|
displayShape="{avatar>displayShape}"
|
|
175
190
|
displaySize="XL"
|
|
176
191
|
/>
|
|
177
|
-
</template:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
</
|
|
181
|
-
</
|
|
182
|
-
</template:
|
|
192
|
+
</template:if>
|
|
193
|
+
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeaderContent" type="XML" />
|
|
194
|
+
</FlexBox>
|
|
195
|
+
</uxap:headerContent>
|
|
196
|
+
</template:if>
|
|
197
|
+
</template:with>
|
|
183
198
|
</template:if>
|
|
184
199
|
<uxap:sections>
|
|
185
200
|
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.Section" type="XML" />
|
|
@@ -8,7 +8,6 @@ sap.ui.define(
|
|
|
8
8
|
"sap/fe/core/PageController",
|
|
9
9
|
"sap/fe/core/controllerextensions/InternalRouting",
|
|
10
10
|
"./overrides/InternalRouting",
|
|
11
|
-
"sap/fe/core/controllerextensions/SideEffects",
|
|
12
11
|
"sap/fe/core/controllerextensions/EditFlow",
|
|
13
12
|
"sap/fe/core/controllerextensions/InternalEditFlow",
|
|
14
13
|
"sap/fe/core/controllerextensions/PageReady",
|
|
@@ -42,13 +41,14 @@ sap.ui.define(
|
|
|
42
41
|
"sap/ui/model/json/JSONModel",
|
|
43
42
|
"sap/fe/core/controllerextensions/Paginator",
|
|
44
43
|
"./overrides/Paginator",
|
|
45
|
-
"sap/fe/core/controllerextensions/Placeholder"
|
|
44
|
+
"sap/fe/core/controllerextensions/Placeholder",
|
|
45
|
+
"sap/base/util/UriParameters",
|
|
46
|
+
"sap/fe/core/controllerextensions/MassEdit"
|
|
46
47
|
],
|
|
47
48
|
function(
|
|
48
49
|
PageController,
|
|
49
50
|
InternalRouting,
|
|
50
51
|
InternalRoutingOverride,
|
|
51
|
-
SideEffects,
|
|
52
52
|
EditFlow,
|
|
53
53
|
InternalEditFlow,
|
|
54
54
|
PageReady,
|
|
@@ -82,7 +82,9 @@ sap.ui.define(
|
|
|
82
82
|
JSONModel,
|
|
83
83
|
Paginator,
|
|
84
84
|
PaginatorOverride,
|
|
85
|
-
Placeholder
|
|
85
|
+
Placeholder,
|
|
86
|
+
UriParameters,
|
|
87
|
+
MassEdit
|
|
86
88
|
) {
|
|
87
89
|
"use strict";
|
|
88
90
|
|
|
@@ -101,7 +103,6 @@ sap.ui.define(
|
|
|
101
103
|
}
|
|
102
104
|
},
|
|
103
105
|
placeholder: Placeholder,
|
|
104
|
-
sideEffects: SideEffects,
|
|
105
106
|
editFlow: EditFlow,
|
|
106
107
|
share: Share.override(ShareOverrides),
|
|
107
108
|
_editFlow: InternalEditFlow.override(EditFlowOverrides),
|
|
@@ -113,7 +114,7 @@ sap.ui.define(
|
|
|
113
114
|
getNavigationMode: function() {
|
|
114
115
|
var bIsStickyEditMode =
|
|
115
116
|
this._oView.getController().getStickyEditMode && this._oView.getController().getStickyEditMode();
|
|
116
|
-
return bIsStickyEditMode ? "explace" :
|
|
117
|
+
return bIsStickyEditMode ? "explace" : undefined;
|
|
117
118
|
}
|
|
118
119
|
}),
|
|
119
120
|
viewState: ViewState.override(ViewStateOverrides),
|
|
@@ -122,6 +123,7 @@ sap.ui.define(
|
|
|
122
123
|
return true;
|
|
123
124
|
}
|
|
124
125
|
}),
|
|
126
|
+
massEdit: MassEdit,
|
|
125
127
|
|
|
126
128
|
getExtensionAPI: function(sId) {
|
|
127
129
|
if (sId) {
|
|
@@ -153,7 +155,7 @@ sap.ui.define(
|
|
|
153
155
|
});
|
|
154
156
|
oInternalModelContext.setProperty("batchGroups", this._getBatchGroupsForView());
|
|
155
157
|
oInternalModelContext.setProperty("errorNavigationSectionFlag", false);
|
|
156
|
-
if (oObjectPage.getEnableLazyLoading()) {
|
|
158
|
+
if (!this.getView().getViewData().useNewLazyLoading && oObjectPage.getEnableLazyLoading()) {
|
|
157
159
|
//Attaching the event to make the subsection context binding active when it is visible.
|
|
158
160
|
oObjectPage.attachEvent("subSectionEnteredViewPort", this._handleSubSectionEnteredViewPort.bind(this));
|
|
159
161
|
}
|
|
@@ -204,8 +206,8 @@ sap.ui.define(
|
|
|
204
206
|
aTables = this._findTables(),
|
|
205
207
|
oFastCreationRow,
|
|
206
208
|
oObjectPage = this.byId("fe::ObjectPage"),
|
|
207
|
-
oBinding = mParameters.listBinding,
|
|
208
209
|
oInternalModelContext = that.getView().getBindingContext("internal"),
|
|
210
|
+
oInternalModel = that.getView().getModel("internal"),
|
|
209
211
|
aBatchGroups = oInternalModelContext.getProperty("batchGroups"),
|
|
210
212
|
iViewLevel = this.getView().getViewData().viewLevel;
|
|
211
213
|
|
|
@@ -261,29 +263,37 @@ sap.ui.define(
|
|
|
261
263
|
});
|
|
262
264
|
|
|
263
265
|
//Set the Binding for Paginators using ListBinding ID
|
|
264
|
-
if (
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
oBinding.
|
|
282
|
-
|
|
283
|
-
|
|
266
|
+
if (iViewLevel > 1) {
|
|
267
|
+
var oBinding = mParameters && mParameters.listBinding,
|
|
268
|
+
oPaginatorCurrentContext = oInternalModel.getProperty("/paginatorCurrentContext");
|
|
269
|
+
if (oPaginatorCurrentContext) {
|
|
270
|
+
var oBindingToUse = oPaginatorCurrentContext.getBinding();
|
|
271
|
+
this.paginator.initialize(oBindingToUse, oPaginatorCurrentContext);
|
|
272
|
+
oInternalModel.setProperty("/paginatorCurrentContext", null);
|
|
273
|
+
} else if (oBinding) {
|
|
274
|
+
if (oBinding.isA("sap.ui.model.odata.v4.ODataListBinding")) {
|
|
275
|
+
this.paginator.initialize(oBinding, oContext);
|
|
276
|
+
} else {
|
|
277
|
+
//if the binding type is not ODataListBinding because of a deeplink navigation or a refresh of the page
|
|
278
|
+
// we need to create it
|
|
279
|
+
var sContextPath = oBinding.getPath().replace(/\([^\)]*\)*$/, ""); //removing the last tuple
|
|
280
|
+
oBinding = new sap.ui.model.odata.v4.ODataListBinding(
|
|
281
|
+
oBinding.oModel,
|
|
282
|
+
"",
|
|
283
|
+
oBinding.oModel.createBindingContext(sContextPath)
|
|
284
|
+
);
|
|
285
|
+
|
|
286
|
+
oBinding.getContexts(0);
|
|
287
|
+
oBinding.attachEvent("change", function _setListBindingAsync() {
|
|
288
|
+
if (oBinding.getContexts().length > 0) {
|
|
289
|
+
that.paginator.initialize(oBinding, oContext);
|
|
290
|
+
oBinding.detachEvent("change", _setListBindingAsync);
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
}
|
|
284
294
|
}
|
|
285
295
|
}
|
|
286
|
-
if (oObjectPage.getEnableLazyLoading()) {
|
|
296
|
+
if (!this.getView().getViewData().useNewLazyLoading && oObjectPage.getEnableLazyLoading()) {
|
|
287
297
|
var aSections = oObjectPage.getSections(),
|
|
288
298
|
bUseIconTabBar = oObjectPage.getUseIconTabBar(),
|
|
289
299
|
iSkip = 2,
|
|
@@ -296,7 +306,9 @@ sap.ui.define(
|
|
|
296
306
|
// In IconTabBar mode keep the second section bound if there is an editable header and we are switching to display mode
|
|
297
307
|
if (iSkip < 1 || (bUseIconTabBar && (iSection > 1 || (iSection === 1 && !bEditableHeader && !bIsInEditMode)))) {
|
|
298
308
|
var oSubSection = aSubSections[iSubSection];
|
|
299
|
-
oSubSection.
|
|
309
|
+
if (oSubSection.data().isVisibilityDynamic !== "true") {
|
|
310
|
+
oSubSection.setBindingContext(null);
|
|
311
|
+
}
|
|
300
312
|
}
|
|
301
313
|
}
|
|
302
314
|
}
|
|
@@ -323,30 +335,37 @@ sap.ui.define(
|
|
|
323
335
|
},
|
|
324
336
|
|
|
325
337
|
_getFirstEmptyMandatoryFieldFromSubSection: function(aSubSections) {
|
|
326
|
-
|
|
327
|
-
var
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
var aFormElements = aFormContainers[formContainer].getFormElements();
|
|
344
|
-
|
|
345
|
-
for (var formElement = 0; aFormElements && formElement < aFormElements.length; formElement++) {
|
|
346
|
-
var aFields = aFormElements[formElement].getFields();
|
|
338
|
+
if (aSubSections) {
|
|
339
|
+
for (var subSection = 0; subSection < aSubSections.length; subSection++) {
|
|
340
|
+
var aBlocks = aSubSections[subSection].getBlocks();
|
|
341
|
+
|
|
342
|
+
if (aBlocks) {
|
|
343
|
+
for (var block = 0; block < aBlocks.length; block++) {
|
|
344
|
+
var aFormContainers;
|
|
345
|
+
|
|
346
|
+
if (aBlocks[block].isA("sap.ui.layout.form.Form")) {
|
|
347
|
+
aFormContainers = aBlocks[block].getFormContainers();
|
|
348
|
+
} else if (
|
|
349
|
+
aBlocks[block].getContent &&
|
|
350
|
+
aBlocks[block].getContent() &&
|
|
351
|
+
aBlocks[block].getContent().isA("sap.ui.layout.form.Form")
|
|
352
|
+
) {
|
|
353
|
+
aFormContainers = aBlocks[block].getContent().getFormContainers();
|
|
354
|
+
}
|
|
347
355
|
|
|
348
|
-
if (
|
|
349
|
-
|
|
356
|
+
if (aFormContainers) {
|
|
357
|
+
for (var formContainer = 0; formContainer < aFormContainers.length; formContainer++) {
|
|
358
|
+
var aFormElements = aFormContainers[formContainer].getFormElements();
|
|
359
|
+
if (aFormElements) {
|
|
360
|
+
for (var formElement = 0; formElement < aFormElements.length; formElement++) {
|
|
361
|
+
var aFields = aFormElements[formElement].getFields();
|
|
362
|
+
|
|
363
|
+
if (aFields[0].getRequired() && !aFields[0].getValue()) {
|
|
364
|
+
return aFields[0];
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
350
369
|
}
|
|
351
370
|
}
|
|
352
371
|
}
|
|
@@ -380,15 +399,24 @@ sap.ui.define(
|
|
|
380
399
|
},
|
|
381
400
|
|
|
382
401
|
_onBackNavigationInDraft: function(oContext) {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
402
|
+
if (
|
|
403
|
+
this.getAppComponent()
|
|
404
|
+
.getRouterProxy()
|
|
405
|
+
.checkIfBackHasSameContext()
|
|
406
|
+
) {
|
|
407
|
+
// Back nav will keep the same context --> no need to display the dialog
|
|
408
|
+
history.back();
|
|
409
|
+
} else {
|
|
410
|
+
CommonUtils.fnProcessDataLossOrDraftDiscardConfirmation(
|
|
411
|
+
function() {
|
|
412
|
+
history.back();
|
|
413
|
+
},
|
|
414
|
+
Function.prototype,
|
|
415
|
+
oContext,
|
|
416
|
+
this,
|
|
417
|
+
false
|
|
418
|
+
);
|
|
419
|
+
}
|
|
392
420
|
},
|
|
393
421
|
|
|
394
422
|
_onAfterBinding: function(oBindingContext, mParameters) {
|
|
@@ -397,7 +425,7 @@ sap.ui.define(
|
|
|
397
425
|
aTables = this._findTables(),
|
|
398
426
|
aFormContainers = this._findFormContainers();
|
|
399
427
|
|
|
400
|
-
this.
|
|
428
|
+
this._sideEffects.clearPropertiesStatus();
|
|
401
429
|
|
|
402
430
|
// TODO: this is only a temp solution as long as the model fix the cache issue and we use this additional
|
|
403
431
|
// binding with ownRequest
|
|
@@ -575,8 +603,10 @@ sap.ui.define(
|
|
|
575
603
|
});
|
|
576
604
|
});
|
|
577
605
|
|
|
578
|
-
|
|
579
|
-
|
|
606
|
+
if (!this.getView().getViewData().useNewLazyLoading) {
|
|
607
|
+
// should be called only after binding is ready hence calling it in onAfterBinding
|
|
608
|
+
oObjectPage._triggerVisibleSubSectionsEvents();
|
|
609
|
+
}
|
|
580
610
|
}
|
|
581
611
|
},
|
|
582
612
|
onPageReady: function(mParameters) {
|
|
@@ -667,7 +697,7 @@ sap.ui.define(
|
|
|
667
697
|
icon: ""
|
|
668
698
|
};
|
|
669
699
|
|
|
670
|
-
return
|
|
700
|
+
return oTitleInfo;
|
|
671
701
|
},
|
|
672
702
|
|
|
673
703
|
_executeHeaderShortcut: function(sId) {
|
|
@@ -1089,7 +1119,6 @@ sap.ui.define(
|
|
|
1089
1119
|
aPathParts.forEach(function(sPathPart, i) {
|
|
1090
1120
|
sPath += "/" + sPathPart;
|
|
1091
1121
|
var oRootViewController = oAppComponent.getRootViewController();
|
|
1092
|
-
var oTitleHierarchyCache = oRootViewController.getTitleHierarchyCache();
|
|
1093
1122
|
var pWaitForTitleHiearchyInfo;
|
|
1094
1123
|
var sParameterPath = oMetaModel.getMetaPath(sPath);
|
|
1095
1124
|
var bResultContext = oMetaModel.getObject(sParameterPath + "/@com.sap.vocabularies.Common.v1.ResultContext");
|
|
@@ -1098,11 +1127,9 @@ sap.ui.define(
|
|
|
1098
1127
|
iSkipParameterized = 1;
|
|
1099
1128
|
return;
|
|
1100
1129
|
}
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
pWaitForTitleHiearchyInfo = Promise.resolve(oTitleHierarchyCache[sPath]);
|
|
1105
|
-
}
|
|
1130
|
+
|
|
1131
|
+
pWaitForTitleHiearchyInfo = oRootViewController.getTitleInfoFromPath(sPath);
|
|
1132
|
+
|
|
1106
1133
|
pWaitForTitleHiearchyInfo
|
|
1107
1134
|
.then(function(oTitleHiearchyInfo) {
|
|
1108
1135
|
var idx = i - iSkipParameterized,
|
package/packages/sap.fe.templates/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
(c) Copyright 2009-2021 SAP SE. All rights reserved
|
|
4
4
|
|
|
5
5
|
*/
|
|
6
|
-
sap.ui.define(["sap/fe/core/PageController","sap/fe/core/controllerextensions/InternalRouting","./overrides/InternalRouting","sap/fe/core/controllerextensions/SideEffects","sap/fe/core/controllerextensions/EditFlow","sap/fe/core/controllerextensions/InternalEditFlow","sap/fe/core/controllerextensions/PageReady","sap/fe/core/controllerextensions/InternalIntentBasedNavigation","sap/fe/core/controllerextensions/IntentBasedNavigation","./overrides/IntentBasedNavigation","sap/base/Log","sap/base/util/merge","sap/fe/core/CommonUtils","sap/fe/navigation/SelectionVariant","sap/fe/macros/table/Utils","sap/m/MessageBox","sap/fe/core/BusyLocker","sap/m/Link","sap/fe/macros/chart/ChartRuntime","sap/fe/templates/ObjectPage/ExtensionAPI","sap/ui/core/mvc/OverrideExecution","sap/fe/core/controllerextensions/ViewState","./overrides/ViewState","sap/fe/templates/RootContainer/overrides/EditFlow","sap/fe/core/helpers/ModelHelper","sap/fe/core/controllerextensions/Routing","sap/m/InstanceManager","sap/fe/core/controllerextensions/MessageHandler","./overrides/MessageHandler","sap/fe/core/controllerextensions/Share","./overrides/Share","sap/fe/macros/DelegateUtil","sap/fe/macros/CommonHelper","sap/fe/templates/TableScroller","sap/ui/model/json/JSONModel","sap/fe/core/controllerextensions/Paginator","./overrides/Paginator","sap/fe/core/controllerextensions/Placeholder"],function(P,I,a,S,E,b,c,d,e,f,L,m,C,g,T,M,B,h,j,k,O,V,l,n,o,R,p,q,r,s,t,D,u,v,J,w,x,y){"use strict";return P.extend("sap.fe.templates.ObjectPage.ObjectPageController",{metadata:{methods:{getExtensionAPI:{"public":true,"final":true},onPageReady:{"public":true,"final":false,overrideExecution:O.After}}},placeholder:y,sideEffects:S,editFlow:E,share:s.override(t),_editFlow:b.override(n),_routing:I.override(a),paginator:w.override(x),messageHandler:q.override(r),intentBasedNavigation:e.override(f),_intentBasedNavigation:d.override({getNavigationMode:function(){var i=this._oView.getController().getStickyEditMode&&this._oView.getController().getStickyEditMode();return i?"explace":"inplace";}}),viewState:V.override(l),pageReady:c.override({isContextExpected:function(){return true;}}),getExtensionAPI:function(i){if(i){this.mCustomSectionExtensionAPIs=this.mCustomSectionExtensionAPIs||{};if(!this.mCustomSectionExtensionAPIs[i]){this.mCustomSectionExtensionAPIs[i]=new k(this,i);}return this.mCustomSectionExtensionAPIs[i];}else{if(!this.extensionAPI){this.extensionAPI=new k(this);}return this.extensionAPI;}},onInit:function(){P.prototype.onInit.apply(this);var i=this.byId("fe::ObjectPage");var z=this.getView().getBindingContext("internal");z.setProperty("externalNavigationContext",{"page":true});z.setProperty("relatedApps",{visibility:false,items:null});z.setProperty("batchGroups",this._getBatchGroupsForView());z.setProperty("errorNavigationSectionFlag",false);if(i.getEnableLazyLoading()){i.attachEvent("subSectionEnteredViewPort",this._handleSubSectionEnteredViewPort.bind(this));}},onExit:function(){var i=this;if(this.mCustomSectionExtensionAPIs){Object.keys(this.mCustomSectionExtensionAPIs).forEach(function(F){i.mCustomSectionExtensionAPIs[F]&&i.mCustomSectionExtensionAPIs[F].destroy();});delete this.mCustomSectionExtensionAPIs;}this.extensionAPI&&this.extensionAPI.destroy();delete this.extensionAPI;var z=this.getView().byId("fe::FooterBar::MessageButton"),A=z?z.oMessagePopover:null;if(A&&A.isOpen()){A.close();}},_getTableBinding:function(i){return i&&i.getRowBinding();},onBeforeRendering:function(){P.prototype.onBeforeRendering.apply(this);},onAfterRendering:function(i){var z=this;this.getView().getModel("sap.fe.i18n").getResourceBundle().then(function(A){z.oResourceBundle=A;}).catch(function(A){L.error("Error while retrieving the resource bundle",A);});},_onBeforeBinding:function(z,A){var F=this,G=this._findTables(),H,K=this.byId("fe::ObjectPage"),N=A.listBinding,Q=F.getView().getBindingContext("internal"),U=Q.getProperty("batchGroups"),W=this.getView().getViewData().viewLevel;U.push("$auto");if(A.bDraftNavigation!==true){this._closeSideContent();}if(K.getBindingContext()&&K.getBindingContext().hasPendingChanges()&&!U.some(K.getBindingContext().getModel().hasPendingChanges.bind(K.getBindingContext().getModel()))){K.getBindingContext().getBinding().resetChanges();}for(var i=0;i<G.length;i++){H=G[i].getCreationRow();if(H){H.setBindingContext(null);}}var X=function(k1){if(!K.isFirstRendering()&&!A.bPersistOPScroll){K.setSelectedSection(null);}};K.attachEventOnce("modelContextChange",X);var Y={onAfterRendering:X};K.addEventDelegate(Y,F);this.pageReady.attachEventOnce("pageReady",function(k1){K.removeEventDelegate(Y);});if(N&&W>1){if(N.isA("sap.ui.model.odata.v4.ODataListBinding")){this.paginator.initialize(N,z);}else{var Z=N.getPath().replace(/\([^\)]*\)*$/,"");var N=new sap.ui.model.odata.v4.ODataListBinding(N.oModel,"",N.oModel.createBindingContext(Z));N.getContexts(0);N.attachEvent("change",function k1(){if(N.getContexts().length>0){F.paginator.initialize(N,z);N.detachEvent("change",k1);}});}}if(K.getEnableLazyLoading()){var $=K.getSections(),_=K.getUseIconTabBar(),a1=2,b1=K.getModel("ui").getProperty("/editMode")==="Editable",c1=this.getView().getViewData().editableHeaderContent;for(var d1=0;d1<$.length;d1++){var e1=$[d1];var f1=e1.getSubSections();for(var g1=0;g1<f1.length;g1++,a1--){if(a1<1||(_&&(d1>1||(d1===1&&!c1&&!b1)))){var h1=f1[g1];h1.setBindingContext(null);}}}}if(this.placeholder.isPlaceholderEnabled()&&A.showPlaceholder){var i1=this.getView();var j1=i1.getParent().oContainer.getParent();if(j1){j1.showPlaceholder({});}}},_getFirstClickableElement:function(i){var F;var A=i.getHeaderTitle()&&i.getHeaderTitle().getActions();if(A&&A.length){F=A.find(function(z){return z.getVisible()&&z.getEnabled();});}return F;},_getFirstEmptyMandatoryFieldFromSubSection:function(i){for(var z=0;i&&z<i.length;z++){var A=i[z].getBlocks();for(var F=0;A&&F<A.length;F++){var G;if(A[F].isA("sap.ui.layout.form.Form")){G=A[F].getFormContainers();}else if(A[F].getContent&&A[F].getContent()&&A[F].getContent().isA("sap.ui.layout.form.Form")){G=A[F].getContent().getFormContainers();}for(var H=0;G&&H<G.length;H++){var K=G[H].getFormElements();for(var N=0;K&&N<K.length;N++){var Q=K[N].getFields();if(Q[0].getRequired()&&!Q[0].getValue()){return Q[0];}}}}}return undefined;},_updateFocusInEditMode:function(i){var z=this.byId("fe::ObjectPage");var A=this._getFirstEmptyMandatoryFieldFromSubSection(i);var F;if(A){F=A.content.getContentEdit()[0];}else{F=z._getFirstEditableInput()||this._getFirstClickableElement(z);}if(F){setTimeout(function(){F.focus();},0);}},_handleSubSectionEnteredViewPort:function(i){var z=i.getParameter("subSection");z.setBindingContext(undefined);},_onBackNavigationInDraft:function(i){C.fnProcessDataLossOrDraftDiscardConfirmation(function(){history.back();},Function.prototype,i,this.getView().getController(),false);},_onAfterBinding:function(i,z){var A=this.byId("fe::ObjectPage"),F=this,G=this._findTables(),H=this._findFormContainers();this.sideEffects.clearPropertiesStatus();i=A.getBindingContext();var K=[];A.getSections().forEach(function(_){_.getSubSections().forEach(function(a1){K=C.getIBNActions(a1,K);});});H.forEach(function(_){var a1,b1=A.getModel("internal"),c1="/pages/"+F.getView().getId(),d1="controls/"+F.getView().getLocalId(_.getId()),e1="showDetails";if(_.getModel("internal")===undefined){_.setModel(b1,"internal");_.setBindingContext(b1.createBindingContext(c1+"/"+d1),"internal");_.bindElement({path:"",model:"internal"});}else{_.bindElement({path:d1,model:"internal"});}a1=_.getBindingContext("internal");a1.setProperty(e1,false);});G.forEach(function(_){var a1=_.getBindingContext("internal");a1.setProperty("creationRowFieldValidity",{});a1.setProperty("creationRowCustomValidity",{});K=C.getIBNActions(_,K);var b1=_.getRowBinding();if(b1){if(o.isStickySessionSupported(b1.getModel().getMetaModel())){b1.removeCachesAndMessages("");}}var c1=JSON.parse(u.parseCustomData(D.getCustomData(_,"operationAvailableMap"))),d1=_.getSelectedContexts();C.setActionEnablement(a1,c1,d1);});C.getSemanticTargetsFromPageModel(F,"_pageModel");var N=A.getHeaderTitle();var Q=[];Q=C.getIBNActions(N,Q);K=K.concat(Q);C.updateDataFieldForIBNButtonsVisibility(K,this.getView());var U,W;function X(_,a1){var b1=_.getCreationRow(),c1,d1;if(b1){W.then(function(){if(b1.getModel("ui").getProperty("/isEditable")){c1=U.bindList(a1.getPath(),a1.getContext(),[],[],{$$updateGroupId:"doNotSubmit",$$groupId:"doNotSubmit"});c1.refreshInternal=function(){};d1=c1.create();b1.setBindingContext(d1);d1.created().catch(function(){L.trace("transient fast creation context deleted");});}}).catch(function(e1){L.error("Error while computing the final UI state",e1);});}}function Y(_){var $=F._getTableBinding(_),a1=function(){X(_,$);};if(!$){L.error("Expected binding missing for table: "+_.getId());return;}if($.oContext){a1();}else{var b1=function(){if($.oContext){a1();$.detachChange(b1);}};$.attachChange(b1);}}if(i){U=i.getModel();W=this._editFlow.computeEditMode(i);if(i.getBinding().oCache){F._updateRelatedApps();}else{var Z=function(){F._updateRelatedApps();i.getBinding().detachDataReceived(Z);};i.getBinding().attachDataReceived(Z);}var $=(i.getBinding&&i.getBinding())||i;$.attachEvent("patchSent",this.editFlow.handlePatchSent,this);$.attachEvent("patchCompleted",this.editFlow.handlePatchCompleted,this);G.forEach(function(_){T.whenBound(_).then(Y).catch(function(a1){L.error("Error while waiting for the table to be bound",a1);});});A._triggerVisibleSubSectionsEvents();}},onPageReady:function(i){var z=this;var A=this.getView();var F=A.getBindingContext("internal");var G=A.getBindingContext();if(G){var H=o.isStickySessionSupported(G.getModel().getMetaModel());if(!H){var K=C.getAppComponent(A);K.getShellServices().setBackNavigation(z._onBackNavigationInDraft.bind(z,G));}}this.getAppComponent().getAppStateHandler().applyAppState();if(i.forceFocus){var N=this.byId("fe::ObjectPage");var Q=N.getModel("ui").getProperty("/editMode")==="Display";var U=N.getSections().filter(function(Y){return Y.getVisible()===true;});N.setSelectedSection(U[0].getId());if(Q){var W=this._getFirstClickableElement(N);if(W){W.focus();}}else{var X;if(A.getViewData().sectionLayout==="Tabs"){X=U[0].getSubSections();}else{X=U.map(function(Y){return Y.getSubSections();}).flat();}this._updateFocusInEditMode(X);}}F.setProperty("errorNavigationSectionFlag",false);this._checkDataPointTitleForExternalNavigation();},getStickyEditMode:function(){var i=this.oView.getBindingContext&&this.oView.getBindingContext(),z=false;if(i){var A=o.isStickySessionSupported(i.getModel().getMetaModel());if(A){z=this.oView.getModel("ui").getProperty("/isEditable");}}return z;},_getObjectPageLayoutControl:function(){return this.byId("fe::ObjectPage");},_getPageTitleInformation:function(){var i=this.byId("fe::ObjectPage");var z=i.getCustomData().find(function(F){return F.getKey()==="ObjectPageSubtitle";});var A={title:i.data("ObjectPageTitle")||"",subtitle:z&&z.getValue(),intent:"",icon:""};return Promise.resolve(A);},_executeHeaderShortcut:function(i){var z=this.getView().getId()+"--"+i,A=this.byId("fe::ObjectPage").getHeaderTitle().getActions().find(function(F){return F.getId()===z;});C.fireButtonPress(A);},_executeFooterShortcut:function(i){var z=this.getView().getId()+"--"+i,A=this.byId("fe::ObjectPage").getFooter().getContent().find(function(F){return F.getMetadata().getName()==="sap.m.Button"&&F.getId()===z;});C.fireButtonPress(A);},_executeTabShortCut:function(i){var z=this.byId("fe::ObjectPage"),A=z.indexOfSection(this.byId(z.getSelectedSection())),F=z.getSections(),G=F.length-1,H=i.oSource.getCommand(),K;if(A!==-1&&G>0){if(H==="NextTab"){if(A<=G-1){K=F[++A];}}else{if(A!==0){K=F[--A];}}if(K){z.setSelectedSection(K);K.focus();}}},_getFooterVisibility:function(i){var z=this.getView().getBindingContext("internal");var A=this.getView().getId();z.setProperty("messageFooterContainsErrors",false);sap.ui.getCore().getMessageManager().getMessageModel().getData().forEach(function(F){if(F.validation&&F.type==="Error"&&F.target.indexOf(A)>-1){z.setProperty("messageFooterContainsErrors",true);}});},_showMessagePopover:function(i,z){if(i){L.error(i);}var A=this;var F=A.getView().byId("fe::FooterBar::MessageButton"),G=F.oMessagePopover,H=G.getBinding("items");if(H.getLength()>0&&!G.isOpen()){F.setVisible(true);setTimeout(function(){G.openBy(F);},0);}return z;},_editDocument:function(i){var z=this.getView().getModel("ui"),A={prepareOnEdit:this.getView().getViewData().prepareOnEdit};B.lock(z);return this.editFlow.editDocument.apply(this.editFlow,[i,A]).finally(function(){B.unlock(z);});},_saveDocument:function(i){var z=this,A=this.getView().getModel("ui"),W=[];var F=false;B.lock(A);this._findTables().forEach(function(G){var H=z._getTableBinding(G);var K={creationMode:G.data("creationMode"),creationRow:G.getCreationRow(),createAtEnd:G.data("createAtEnd")==="true"};var N=K.creationRow&&K.creationRow.getBindingContext()&&Object.keys(K.creationRow.getBindingContext().getObject()).length>1;if(N){K.bSkipSideEffects=true;F=true;W.push(z.editFlow.createDocument(H,K).then(function(){return H;}));}});return Promise.all(W).then(function(G){var H={bExecuteSideEffectsOnError:F,bindings:G};return z.editFlow.saveDocument(i,H).catch(z._showMessagePopover.bind(z)).finally(function(){if(B.isLocked(A)){B.unlock(A);}});});},_cancelDocument:function(i,z){z.cancelButton=this.getView().byId(z.cancelButton);return this.editFlow.cancelDocument(i,z);},_applyDocument:function(i){var z=this;return this.editFlow.applyDocument(i).catch(z._showMessagePopover.bind(z));},_updateRelatedApps:function(){var i=this.byId("fe::ObjectPage");if(C.resolveStringtoBoolean(i.data("showRelatedApps"))){C.updateRelatedAppsDetails(i);}},_findTableInSubSection:function(i,z,A){var F=[];for(var G=0;G<i.length;G++){var H=i[G].getContent instanceof Function&&i[G].getContent();if(H&&H.isA&&H.isA("sap.ui.layout.DynamicSideContent")){H=H.getMainContent instanceof Function&&H.getMainContent();if(H&&H.length>0){H=H[0];}}if(H&&H.isA&&H.isA("sap.fe.macros.TableAPI")){H=H.getContent instanceof Function&&H.getContent();if(H&&H.length>0){H=H[0];}}if(H&&H.isA&&H.isA("sap.ui.mdc.Table")){A.push(H);F.push({"table":H,"gridTable":H.getType().isA("sap.ui.mdc.table.GridTableType")});}}if(F.length===1&&i.length===1&&F[0].gridTable&&!z.hasStyleClass("sapUxAPObjectPageSubSectionFitContainer")){z.addStyleClass("sapUxAPObjectPageSubSectionFitContainer");}else{if(F&&!z.hasStyleClass("sapUxAPObjectPageSubSectionFitContainer")){F.forEach(function(K){if(K.gridTable){K.table.getType().setRowCount(null);}});}}},_getAllSubSections:function(){var i=this.byId("fe::ObjectPage"),z=[];i.getSections().forEach(function(A){z=z.concat(A.getSubSections());});return z;},_getAllBlocks:function(){var i=[];this._getAllSubSections().forEach(function(z){i=i.concat(z.getBlocks());});return i;},_findFormContainers:function(){var z=this._getAllSubSections(),F=[];function _(A){for(var i=0;i<A.length;i++){var G=A[i].getContent instanceof Function&&A[i].getContent();if(G&&G.isA&&G.isA("sap.ui.layout.DynamicSideContent")){G=G.getMainContent instanceof Function&&G.getMainContent();if(G&&G.length>0){G=G[0];}}if(G&&G.isA&&G.isA("sap.ui.layout.form.Form")&&G.getFormContainers instanceof Function){F=F.concat(G.getFormContainers());}}}for(var i=0;i<z.length;i++){_(z[i].getBlocks());_(z[i].getMoreBlocks());}return F;},_findTables:function(){var i=this._getAllSubSections(),z=[];for(var A=0;A<i.length;A++){this._findTableInSubSection(i[A].getBlocks(),i[A],z);this._findTableInSubSection(i[A].getMoreBlocks(),i[A],z);}return z;},_closeSideContent:function(){this._getAllBlocks().forEach(function(i){var z=i.getContent instanceof Function&&i.getContent();if(z&&z.isA&&z.isA("sap.ui.layout.DynamicSideContent")){if(z.setShowSideContent instanceof Function){z.setShowSideContent(false);}}});},_getChartContextData:function(i,z){var A=i.getObject(),F=[A];if(i&&z){if(A[z]){F=A[z];delete A[z];F.push(A);}}return F;},_scrollTablesToRow:function(z){if(this._findTables&&this._findTables().length>0){var A=this._findTables();for(var i=0;i<A.length;i++){v.scrollTableToRow(A[i],z);}}},_mergeMultipleContexts:function(i,z,A){var F=this;var G=[],H=[],K,N,Q,U,W,X,Y;Y=i.getPath();K=i&&i.getModel()&&i.getModel().getMetaModel();U=K&&K.getMetaPath(Y).replace(/^\/*/,"");if(z&&z.length){N=z[0];W=N.getPath();Q=K&&K.getMetaPath(W).replace(/^\/*/,"");z.map(function(Z){if(A){var $=F._getChartContextData(Z,A);if($){G=$.map(function($){return{contextData:$,entitySet:U+"/"+A};});}}else{G.push({contextData:Z.getObject(),entitySet:Q});}});}H.push({contextData:i.getObject(),entitySet:U});H=C.removeSensitiveData(H,K);X=C.addPageContextToSelectionVariant(new g(),H,F.getView());G=C.removeSensitiveData(G,K);return{selectionVariant:X,attributes:G};},_getBatchGroupsForView:function(){var i=this,z=i.getView().getViewData(),A=z.controlConfiguration,F=A&&Object.keys(A),G=["$auto.Heroes","$auto.Decoration","$auto.Workers"];if(F&&F.length>0){F.forEach(function(K){var H=A[K];if(H.requestGroupId==="LongRunners"){G.push("$auto.LongRunners");}});}return G;},_setBreadcrumbLinks:function(z){var A=z.getBindingContext();var F=this.getAppComponent();if(A){var N=A.getPath(),G=N.split("/"),H="",K=F.getMetaModel(),Q=0;G.shift();G.splice(-1,1);G.forEach(function(U,i){H+="/"+U;var W=F.getRootViewController();var X=W.getTitleHierarchyCache();var Y;var Z=K.getMetaPath(H);var $=K.getObject(Z+"/@com.sap.vocabularies.Common.v1.ResultContext");if($){Q=1;return;}if(!X[H]){Y=W.addNewEntryInCacheTitle(H,F);}else{Y=Promise.resolve(X[H]);}Y.then(function(_){var a1=i-Q,b1=z.getLinks()[a1]?z.getLinks()[a1]:new h();b1.setText(_.subtitle||_.title);b1.setHref(_.intent);if(!z.getLinks()[a1]){z.addLink(b1);}}).catch(function(_){L.error("Error while computing the title hierarchy",_);});});}},_checkDataPointTitleForExternalNavigation:function(){var i=this.getView();var z=i.getBindingContext("internal");var A=C.getHeaderFacetItemConfigForExternalNavigation(i.getViewData(),this.getAppComponent().getRoutingService().getOutbounds());var F=this.getAppComponent().getShellServices();var G=i&&i.getBindingContext();z.setProperty("isHeaderDPLinkVisible",{});if(G){G.requestObject().then(function(Q){N(A,Q);}).catch(function(Q){L.error("Cannot retrieve the links from the shell service",Q);});}function H(Q){L.error(Q);}function K(Q){var U=this.id;if(Q&&Q.length===1&&Q[0].supported){z.setProperty("isHeaderDPLinkVisible/"+U,true);}}function N(A,Q){for(var U in A){var W=A[U];var X={};var Y=i.byId(U);if(!Y){continue;}var Z=Y.getBindingContext();var $=Z&&Z.getObject();var _=m({},Q,$);if(W.semanticObjectMapping){var a1=W.semanticObjectMapping;for(var b1 in a1){var c1=a1[b1];var d1=c1["LocalProperty"]["$PropertyPath"];var e1=c1["SemanticObjectProperty"];if(d1!==e1){if(_.hasOwnProperty(d1)){var f1={};f1[e1]=_[d1];_=m({},_,f1);delete _[d1];}}}}if(_){for(var g1 in _){if(g1.indexOf("_")!==0&&g1.indexOf("odata.context")===-1){X[g1]=_[g1];}}}F.isNavigationSupported([{target:{semanticObject:W.semanticObject,action:W.action},params:X}]).then(K.bind({id:U})).catch(H);}}},handlers:{onTableContextChange:function(z){var A=this;var F=z.getSource();var G;this._findTables().some(function(_){if(_.getRowBinding()===F){G=_;return true;}return false;});var H=this._editFlow.getCurrentActionPromise();if(H){var K;if(G.getType().getMetadata().isA("sap.ui.mdc.table.GridTableType")){K=F.getContexts(0);}else{K=F.getCurrentContexts();}if(!K[0]){return;}H.then(function(Q){if(!Q||Q.controlId!==G.sId){return;}var U=Q.oData;var W=Q.keys;var X=-1;K.find(function($,i){var _=$.getObject();var a1=W.every(function(b1){return _[b1]===U[b1];});if(a1){X=i;}return a1;});if(X!==-1){var Y=p.getOpenDialogs();var Z=Y.length>0?Y[0]:null;if(Z){Z.attachEventOnce("afterClose",function(){G.focusRow(X,true);});}else{G.focusRow(X,true);}A._editFlow.deleteCurrentActionPromise();}}).catch(function(i){L.error("An error occurs while scrolling to the newly created Item: "+i);});}var N=A.getView().byId("fe::FooterBar::MessageButton");N.fireModelContextChange();},onCallAction:function(i,A,z){var F=i.getController();var G=F;return F.editFlow.invokeAction(A,z).then(G._showMessagePopover.bind(G,undefined)).catch(G._showMessagePopover.bind(G));},onDataPointTitlePressed:function(i,z,A,F,G){A=typeof A==="string"?JSON.parse(A):A;var H=A[F],K=C.getSemanticObjectMapping(H),N=z.getBindingContext(),Q=N.getModel().getMetaModel().getMetaPath(N.getPath()),U=i._getChartContextData(N,G),W;U=U.map(function(Y){return{data:Y,metaPath:Q+(G?"/"+G:"")};});if(H&&H.parameters){var X=H.parameters&&i._intentBasedNavigation.getOutboundParams(H.parameters);if(Object.keys(X).length>0){W=X;}}if(H&&H.semanticObject&&H.action){i._intentBasedNavigation.navigate(H.semanticObject,H.action,{navigationContexts:U,semanticObjectMapping:K,additionalNavigationParameters:W});}},onChevronPressNavigateOutBound:function(i,z,A,F){return i._intentBasedNavigation.onChevronPressNavigateOutBound(i,z,A,F);},onNavigateChange:function(i){this.getExtensionAPI().updateAppState();this.bSectionNavigated=true;var z=this.getView().getBindingContext("internal");var A=this.byId("fe::ObjectPage");if(A.getModel("ui").getProperty("/editMode")!=="Display"&&this.getView().getViewData().sectionLayout==="Tabs"&&z.getProperty("errorNavigationSectionFlag")===false){var F=i.getParameter("subSection");this._updateFocusInEditMode([F]);}},onVariantSelected:function(i){this.getExtensionAPI().updateAppState();},onVariantSaved:function(i){var z=this;setTimeout(function(){z.getExtensionAPI().updateAppState();},500);},navigateToSubSection:function(i,z){var A=typeof z==="string"?JSON.parse(z):z,F=i.getView().byId("fe::ObjectPage"),G,H;if(A.sectionId){G=i.getView().byId(A.sectionId);H=A.subSectionId?i.getView().byId(A.subSectionId):G&&G.getSubSections()&&G.getSubSections()[0];}else if(A.subSectionId){H=i.getView().byId(A.subSectionId);G=H&&H.getParent();}if(!G||!H||!G.getVisible()||!H.getVisible()){i.getView().getModel("sap.fe.i18n").getResourceBundle().then(function(K){var N=C.getTranslatedText("C_ROUTING_NAVIGATION_DISABLED_TITLE",K,null,i.getView().getViewData().entitySet);L.error(N);M.error(N);}).catch(function(K){L.error(K);});}else{F.scrollToSection(H.getId());F.fireNavigate({section:G,subSection:H});}},onChartSelectionChanged:function(i){j.fnUpdateChart(i);}}});});
|
|
6
|
+
sap.ui.define(["sap/fe/core/PageController","sap/fe/core/controllerextensions/InternalRouting","./overrides/InternalRouting","sap/fe/core/controllerextensions/EditFlow","sap/fe/core/controllerextensions/InternalEditFlow","sap/fe/core/controllerextensions/PageReady","sap/fe/core/controllerextensions/InternalIntentBasedNavigation","sap/fe/core/controllerextensions/IntentBasedNavigation","./overrides/IntentBasedNavigation","sap/base/Log","sap/base/util/merge","sap/fe/core/CommonUtils","sap/fe/navigation/SelectionVariant","sap/fe/macros/table/Utils","sap/m/MessageBox","sap/fe/core/BusyLocker","sap/m/Link","sap/fe/macros/chart/ChartRuntime","sap/fe/templates/ObjectPage/ExtensionAPI","sap/ui/core/mvc/OverrideExecution","sap/fe/core/controllerextensions/ViewState","./overrides/ViewState","sap/fe/templates/RootContainer/overrides/EditFlow","sap/fe/core/helpers/ModelHelper","sap/fe/core/controllerextensions/Routing","sap/m/InstanceManager","sap/fe/core/controllerextensions/MessageHandler","./overrides/MessageHandler","sap/fe/core/controllerextensions/Share","./overrides/Share","sap/fe/macros/DelegateUtil","sap/fe/macros/CommonHelper","sap/fe/templates/TableScroller","sap/ui/model/json/JSONModel","sap/fe/core/controllerextensions/Paginator","./overrides/Paginator","sap/fe/core/controllerextensions/Placeholder","sap/base/util/UriParameters","sap/fe/core/controllerextensions/MassEdit"],function(P,I,a,E,b,c,d,e,f,L,m,C,S,T,M,B,g,h,j,O,V,k,l,n,R,o,p,q,r,s,D,t,u,J,v,w,x,U,y){"use strict";return P.extend("sap.fe.templates.ObjectPage.ObjectPageController",{metadata:{methods:{getExtensionAPI:{"public":true,"final":true},onPageReady:{"public":true,"final":false,overrideExecution:O.After}}},placeholder:x,editFlow:E,share:r.override(s),_editFlow:b.override(l),_routing:I.override(a),paginator:v.override(w),messageHandler:p.override(q),intentBasedNavigation:e.override(f),_intentBasedNavigation:d.override({getNavigationMode:function(){var i=this._oView.getController().getStickyEditMode&&this._oView.getController().getStickyEditMode();return i?"explace":undefined;}}),viewState:V.override(k),pageReady:c.override({isContextExpected:function(){return true;}}),massEdit:y,getExtensionAPI:function(i){if(i){this.mCustomSectionExtensionAPIs=this.mCustomSectionExtensionAPIs||{};if(!this.mCustomSectionExtensionAPIs[i]){this.mCustomSectionExtensionAPIs[i]=new j(this,i);}return this.mCustomSectionExtensionAPIs[i];}else{if(!this.extensionAPI){this.extensionAPI=new j(this);}return this.extensionAPI;}},onInit:function(){P.prototype.onInit.apply(this);var i=this.byId("fe::ObjectPage");var z=this.getView().getBindingContext("internal");z.setProperty("externalNavigationContext",{"page":true});z.setProperty("relatedApps",{visibility:false,items:null});z.setProperty("batchGroups",this._getBatchGroupsForView());z.setProperty("errorNavigationSectionFlag",false);if(!this.getView().getViewData().useNewLazyLoading&&i.getEnableLazyLoading()){i.attachEvent("subSectionEnteredViewPort",this._handleSubSectionEnteredViewPort.bind(this));}},onExit:function(){var i=this;if(this.mCustomSectionExtensionAPIs){Object.keys(this.mCustomSectionExtensionAPIs).forEach(function(F){i.mCustomSectionExtensionAPIs[F]&&i.mCustomSectionExtensionAPIs[F].destroy();});delete this.mCustomSectionExtensionAPIs;}this.extensionAPI&&this.extensionAPI.destroy();delete this.extensionAPI;var z=this.getView().byId("fe::FooterBar::MessageButton"),A=z?z.oMessagePopover:null;if(A&&A.isOpen()){A.close();}},_getTableBinding:function(i){return i&&i.getRowBinding();},onBeforeRendering:function(){P.prototype.onBeforeRendering.apply(this);},onAfterRendering:function(i){var z=this;this.getView().getModel("sap.fe.i18n").getResourceBundle().then(function(A){z.oResourceBundle=A;}).catch(function(A){L.error("Error while retrieving the resource bundle",A);});},_onBeforeBinding:function(z,A){var F=this,G=this._findTables(),H,K=this.byId("fe::ObjectPage"),N=F.getView().getBindingContext("internal"),Q=F.getView().getModel("internal"),W=N.getProperty("batchGroups"),X=this.getView().getViewData().viewLevel;W.push("$auto");if(A.bDraftNavigation!==true){this._closeSideContent();}if(K.getBindingContext()&&K.getBindingContext().hasPendingChanges()&&!W.some(K.getBindingContext().getModel().hasPendingChanges.bind(K.getBindingContext().getModel()))){K.getBindingContext().getBinding().resetChanges();}for(var i=0;i<G.length;i++){H=G[i].getCreationRow();if(H){H.setBindingContext(null);}}var Y=function(o1){if(!K.isFirstRendering()&&!A.bPersistOPScroll){K.setSelectedSection(null);}};K.attachEventOnce("modelContextChange",Y);var Z={onAfterRendering:Y};K.addEventDelegate(Z,F);this.pageReady.attachEventOnce("pageReady",function(o1){K.removeEventDelegate(Z);});if(X>1){var $=A&&A.listBinding,_=Q.getProperty("/paginatorCurrentContext");if(_){var a1=_.getBinding();this.paginator.initialize(a1,_);Q.setProperty("/paginatorCurrentContext",null);}else if($){if($.isA("sap.ui.model.odata.v4.ODataListBinding")){this.paginator.initialize($,z);}else{var b1=$.getPath().replace(/\([^\)]*\)*$/,"");$=new sap.ui.model.odata.v4.ODataListBinding($.oModel,"",$.oModel.createBindingContext(b1));$.getContexts(0);$.attachEvent("change",function o1(){if($.getContexts().length>0){F.paginator.initialize($,z);$.detachEvent("change",o1);}});}}}if(!this.getView().getViewData().useNewLazyLoading&&K.getEnableLazyLoading()){var c1=K.getSections(),d1=K.getUseIconTabBar(),e1=2,f1=K.getModel("ui").getProperty("/editMode")==="Editable",g1=this.getView().getViewData().editableHeaderContent;for(var h1=0;h1<c1.length;h1++){var i1=c1[h1];var j1=i1.getSubSections();for(var k1=0;k1<j1.length;k1++,e1--){if(e1<1||(d1&&(h1>1||(h1===1&&!g1&&!f1)))){var l1=j1[k1];if(l1.data().isVisibilityDynamic!=="true"){l1.setBindingContext(null);}}}}}if(this.placeholder.isPlaceholderEnabled()&&A.showPlaceholder){var m1=this.getView();var n1=m1.getParent().oContainer.getParent();if(n1){n1.showPlaceholder({});}}},_getFirstClickableElement:function(i){var F;var A=i.getHeaderTitle()&&i.getHeaderTitle().getActions();if(A&&A.length){F=A.find(function(z){return z.getVisible()&&z.getEnabled();});}return F;},_getFirstEmptyMandatoryFieldFromSubSection:function(i){if(i){for(var z=0;z<i.length;z++){var A=i[z].getBlocks();if(A){for(var F=0;F<A.length;F++){var G;if(A[F].isA("sap.ui.layout.form.Form")){G=A[F].getFormContainers();}else if(A[F].getContent&&A[F].getContent()&&A[F].getContent().isA("sap.ui.layout.form.Form")){G=A[F].getContent().getFormContainers();}if(G){for(var H=0;H<G.length;H++){var K=G[H].getFormElements();if(K){for(var N=0;N<K.length;N++){var Q=K[N].getFields();if(Q[0].getRequired()&&!Q[0].getValue()){return Q[0];}}}}}}}}}return undefined;},_updateFocusInEditMode:function(i){var z=this.byId("fe::ObjectPage");var A=this._getFirstEmptyMandatoryFieldFromSubSection(i);var F;if(A){F=A.content.getContentEdit()[0];}else{F=z._getFirstEditableInput()||this._getFirstClickableElement(z);}if(F){setTimeout(function(){F.focus();},0);}},_handleSubSectionEnteredViewPort:function(i){var z=i.getParameter("subSection");z.setBindingContext(undefined);},_onBackNavigationInDraft:function(i){if(this.getAppComponent().getRouterProxy().checkIfBackHasSameContext()){history.back();}else{C.fnProcessDataLossOrDraftDiscardConfirmation(function(){history.back();},Function.prototype,i,this,false);}},_onAfterBinding:function(i,z){var A=this.byId("fe::ObjectPage"),F=this,G=this._findTables(),H=this._findFormContainers();this._sideEffects.clearPropertiesStatus();i=A.getBindingContext();var K=[];A.getSections().forEach(function(a1){a1.getSubSections().forEach(function(b1){K=C.getIBNActions(b1,K);});});H.forEach(function(a1){var b1,c1=A.getModel("internal"),d1="/pages/"+F.getView().getId(),e1="controls/"+F.getView().getLocalId(a1.getId()),f1="showDetails";if(a1.getModel("internal")===undefined){a1.setModel(c1,"internal");a1.setBindingContext(c1.createBindingContext(d1+"/"+e1),"internal");a1.bindElement({path:"",model:"internal"});}else{a1.bindElement({path:e1,model:"internal"});}b1=a1.getBindingContext("internal");b1.setProperty(f1,false);});G.forEach(function(a1){var b1=a1.getBindingContext("internal");b1.setProperty("creationRowFieldValidity",{});b1.setProperty("creationRowCustomValidity",{});K=C.getIBNActions(a1,K);var c1=a1.getRowBinding();if(c1){if(n.isStickySessionSupported(c1.getModel().getMetaModel())){c1.removeCachesAndMessages("");}}var d1=JSON.parse(t.parseCustomData(D.getCustomData(a1,"operationAvailableMap"))),e1=a1.getSelectedContexts();C.setActionEnablement(b1,d1,e1);});C.getSemanticTargetsFromPageModel(F,"_pageModel");var N=A.getHeaderTitle();var Q=[];Q=C.getIBNActions(N,Q);K=K.concat(Q);C.updateDataFieldForIBNButtonsVisibility(K,this.getView());var W,X;function Y(a1,b1){var c1=a1.getCreationRow(),d1,e1;if(c1){X.then(function(){if(c1.getModel("ui").getProperty("/isEditable")){d1=W.bindList(b1.getPath(),b1.getContext(),[],[],{$$updateGroupId:"doNotSubmit",$$groupId:"doNotSubmit"});d1.refreshInternal=function(){};e1=d1.create();c1.setBindingContext(e1);e1.created().catch(function(){L.trace("transient fast creation context deleted");});}}).catch(function(f1){L.error("Error while computing the final UI state",f1);});}}function Z(a1){var _=F._getTableBinding(a1),b1=function(){Y(a1,_);};if(!_){L.error("Expected binding missing for table: "+a1.getId());return;}if(_.oContext){b1();}else{var c1=function(){if(_.oContext){b1();_.detachChange(c1);}};_.attachChange(c1);}}if(i){W=i.getModel();X=this._editFlow.computeEditMode(i);if(i.getBinding().oCache){F._updateRelatedApps();}else{var $=function(){F._updateRelatedApps();i.getBinding().detachDataReceived($);};i.getBinding().attachDataReceived($);}var _=(i.getBinding&&i.getBinding())||i;_.attachEvent("patchSent",this.editFlow.handlePatchSent,this);_.attachEvent("patchCompleted",this.editFlow.handlePatchCompleted,this);G.forEach(function(a1){T.whenBound(a1).then(Z).catch(function(b1){L.error("Error while waiting for the table to be bound",b1);});});if(!this.getView().getViewData().useNewLazyLoading){A._triggerVisibleSubSectionsEvents();}}},onPageReady:function(i){var z=this;var A=this.getView();var F=A.getBindingContext("internal");var G=A.getBindingContext();if(G){var H=n.isStickySessionSupported(G.getModel().getMetaModel());if(!H){var K=C.getAppComponent(A);K.getShellServices().setBackNavigation(z._onBackNavigationInDraft.bind(z,G));}}this.getAppComponent().getAppStateHandler().applyAppState();if(i.forceFocus){var N=this.byId("fe::ObjectPage");var Q=N.getModel("ui").getProperty("/editMode")==="Display";var W=N.getSections().filter(function(Z){return Z.getVisible()===true;});N.setSelectedSection(W[0].getId());if(Q){var X=this._getFirstClickableElement(N);if(X){X.focus();}}else{var Y;if(A.getViewData().sectionLayout==="Tabs"){Y=W[0].getSubSections();}else{Y=W.map(function(Z){return Z.getSubSections();}).flat();}this._updateFocusInEditMode(Y);}}F.setProperty("errorNavigationSectionFlag",false);this._checkDataPointTitleForExternalNavigation();},getStickyEditMode:function(){var i=this.oView.getBindingContext&&this.oView.getBindingContext(),z=false;if(i){var A=n.isStickySessionSupported(i.getModel().getMetaModel());if(A){z=this.oView.getModel("ui").getProperty("/isEditable");}}return z;},_getObjectPageLayoutControl:function(){return this.byId("fe::ObjectPage");},_getPageTitleInformation:function(){var i=this.byId("fe::ObjectPage");var z=i.getCustomData().find(function(F){return F.getKey()==="ObjectPageSubtitle";});var A={title:i.data("ObjectPageTitle")||"",subtitle:z&&z.getValue(),intent:"",icon:""};return A;},_executeHeaderShortcut:function(i){var z=this.getView().getId()+"--"+i,A=this.byId("fe::ObjectPage").getHeaderTitle().getActions().find(function(F){return F.getId()===z;});C.fireButtonPress(A);},_executeFooterShortcut:function(i){var z=this.getView().getId()+"--"+i,A=this.byId("fe::ObjectPage").getFooter().getContent().find(function(F){return F.getMetadata().getName()==="sap.m.Button"&&F.getId()===z;});C.fireButtonPress(A);},_executeTabShortCut:function(i){var z=this.byId("fe::ObjectPage"),A=z.indexOfSection(this.byId(z.getSelectedSection())),F=z.getSections(),G=F.length-1,H=i.oSource.getCommand(),K;if(A!==-1&&G>0){if(H==="NextTab"){if(A<=G-1){K=F[++A];}}else{if(A!==0){K=F[--A];}}if(K){z.setSelectedSection(K);K.focus();}}},_getFooterVisibility:function(i){var z=this.getView().getBindingContext("internal");var A=this.getView().getId();z.setProperty("messageFooterContainsErrors",false);sap.ui.getCore().getMessageManager().getMessageModel().getData().forEach(function(F){if(F.validation&&F.type==="Error"&&F.target.indexOf(A)>-1){z.setProperty("messageFooterContainsErrors",true);}});},_showMessagePopover:function(i,z){if(i){L.error(i);}var A=this;var F=A.getView().byId("fe::FooterBar::MessageButton"),G=F.oMessagePopover,H=G.getBinding("items");if(H.getLength()>0&&!G.isOpen()){F.setVisible(true);setTimeout(function(){G.openBy(F);},0);}return z;},_editDocument:function(i){var z=this.getView().getModel("ui"),A={prepareOnEdit:this.getView().getViewData().prepareOnEdit};B.lock(z);return this.editFlow.editDocument.apply(this.editFlow,[i,A]).finally(function(){B.unlock(z);});},_saveDocument:function(i){var z=this,A=this.getView().getModel("ui"),W=[];var F=false;B.lock(A);this._findTables().forEach(function(G){var H=z._getTableBinding(G);var K={creationMode:G.data("creationMode"),creationRow:G.getCreationRow(),createAtEnd:G.data("createAtEnd")==="true"};var N=K.creationRow&&K.creationRow.getBindingContext()&&Object.keys(K.creationRow.getBindingContext().getObject()).length>1;if(N){K.bSkipSideEffects=true;F=true;W.push(z.editFlow.createDocument(H,K).then(function(){return H;}));}});return Promise.all(W).then(function(G){var H={bExecuteSideEffectsOnError:F,bindings:G};return z.editFlow.saveDocument(i,H).catch(z._showMessagePopover.bind(z)).finally(function(){if(B.isLocked(A)){B.unlock(A);}});});},_cancelDocument:function(i,z){z.cancelButton=this.getView().byId(z.cancelButton);return this.editFlow.cancelDocument(i,z);},_applyDocument:function(i){var z=this;return this.editFlow.applyDocument(i).catch(z._showMessagePopover.bind(z));},_updateRelatedApps:function(){var i=this.byId("fe::ObjectPage");if(C.resolveStringtoBoolean(i.data("showRelatedApps"))){C.updateRelatedAppsDetails(i);}},_findTableInSubSection:function(i,z,A){var F=[];for(var G=0;G<i.length;G++){var H=i[G].getContent instanceof Function&&i[G].getContent();if(H&&H.isA&&H.isA("sap.ui.layout.DynamicSideContent")){H=H.getMainContent instanceof Function&&H.getMainContent();if(H&&H.length>0){H=H[0];}}if(H&&H.isA&&H.isA("sap.fe.macros.TableAPI")){H=H.getContent instanceof Function&&H.getContent();if(H&&H.length>0){H=H[0];}}if(H&&H.isA&&H.isA("sap.ui.mdc.Table")){A.push(H);F.push({"table":H,"gridTable":H.getType().isA("sap.ui.mdc.table.GridTableType")});}}if(F.length===1&&i.length===1&&F[0].gridTable&&!z.hasStyleClass("sapUxAPObjectPageSubSectionFitContainer")){z.addStyleClass("sapUxAPObjectPageSubSectionFitContainer");}else{if(F&&!z.hasStyleClass("sapUxAPObjectPageSubSectionFitContainer")){F.forEach(function(K){if(K.gridTable){K.table.getType().setRowCount(null);}});}}},_getAllSubSections:function(){var i=this.byId("fe::ObjectPage"),z=[];i.getSections().forEach(function(A){z=z.concat(A.getSubSections());});return z;},_getAllBlocks:function(){var i=[];this._getAllSubSections().forEach(function(z){i=i.concat(z.getBlocks());});return i;},_findFormContainers:function(){var z=this._getAllSubSections(),F=[];function _(A){for(var i=0;i<A.length;i++){var G=A[i].getContent instanceof Function&&A[i].getContent();if(G&&G.isA&&G.isA("sap.ui.layout.DynamicSideContent")){G=G.getMainContent instanceof Function&&G.getMainContent();if(G&&G.length>0){G=G[0];}}if(G&&G.isA&&G.isA("sap.ui.layout.form.Form")&&G.getFormContainers instanceof Function){F=F.concat(G.getFormContainers());}}}for(var i=0;i<z.length;i++){_(z[i].getBlocks());_(z[i].getMoreBlocks());}return F;},_findTables:function(){var i=this._getAllSubSections(),z=[];for(var A=0;A<i.length;A++){this._findTableInSubSection(i[A].getBlocks(),i[A],z);this._findTableInSubSection(i[A].getMoreBlocks(),i[A],z);}return z;},_closeSideContent:function(){this._getAllBlocks().forEach(function(i){var z=i.getContent instanceof Function&&i.getContent();if(z&&z.isA&&z.isA("sap.ui.layout.DynamicSideContent")){if(z.setShowSideContent instanceof Function){z.setShowSideContent(false);}}});},_getChartContextData:function(i,z){var A=i.getObject(),F=[A];if(i&&z){if(A[z]){F=A[z];delete A[z];F.push(A);}}return F;},_scrollTablesToRow:function(z){if(this._findTables&&this._findTables().length>0){var A=this._findTables();for(var i=0;i<A.length;i++){u.scrollTableToRow(A[i],z);}}},_mergeMultipleContexts:function(i,z,A){var F=this;var G=[],H=[],K,N,Q,W,X,Y,Z;Z=i.getPath();K=i&&i.getModel()&&i.getModel().getMetaModel();W=K&&K.getMetaPath(Z).replace(/^\/*/,"");if(z&&z.length){N=z[0];X=N.getPath();Q=K&&K.getMetaPath(X).replace(/^\/*/,"");z.map(function($){if(A){var _=F._getChartContextData($,A);if(_){G=_.map(function(_){return{contextData:_,entitySet:W+"/"+A};});}}else{G.push({contextData:$.getObject(),entitySet:Q});}});}H.push({contextData:i.getObject(),entitySet:W});H=C.removeSensitiveData(H,K);Y=C.addPageContextToSelectionVariant(new S(),H,F.getView());G=C.removeSensitiveData(G,K);return{selectionVariant:Y,attributes:G};},_getBatchGroupsForView:function(){var i=this,z=i.getView().getViewData(),A=z.controlConfiguration,F=A&&Object.keys(A),G=["$auto.Heroes","$auto.Decoration","$auto.Workers"];if(F&&F.length>0){F.forEach(function(K){var H=A[K];if(H.requestGroupId==="LongRunners"){G.push("$auto.LongRunners");}});}return G;},_setBreadcrumbLinks:function(z){var A=z.getBindingContext();var F=this.getAppComponent();if(A){var N=A.getPath(),G=N.split("/"),H="",K=F.getMetaModel(),Q=0;G.shift();G.splice(-1,1);G.forEach(function(W,i){H+="/"+W;var X=F.getRootViewController();var Y;var Z=K.getMetaPath(H);var $=K.getObject(Z+"/@com.sap.vocabularies.Common.v1.ResultContext");if($){Q=1;return;}Y=X.getTitleInfoFromPath(H);Y.then(function(_){var a1=i-Q,b1=z.getLinks()[a1]?z.getLinks()[a1]:new g();b1.setText(_.subtitle||_.title);b1.setHref(_.intent);if(!z.getLinks()[a1]){z.addLink(b1);}}).catch(function(_){L.error("Error while computing the title hierarchy",_);});});}},_checkDataPointTitleForExternalNavigation:function(){var i=this.getView();var z=i.getBindingContext("internal");var A=C.getHeaderFacetItemConfigForExternalNavigation(i.getViewData(),this.getAppComponent().getRoutingService().getOutbounds());var F=this.getAppComponent().getShellServices();var G=i&&i.getBindingContext();z.setProperty("isHeaderDPLinkVisible",{});if(G){G.requestObject().then(function(Q){N(A,Q);}).catch(function(Q){L.error("Cannot retrieve the links from the shell service",Q);});}function H(Q){L.error(Q);}function K(Q){var W=this.id;if(Q&&Q.length===1&&Q[0].supported){z.setProperty("isHeaderDPLinkVisible/"+W,true);}}function N(A,Q){for(var W in A){var X=A[W];var Y={};var Z=i.byId(W);if(!Z){continue;}var $=Z.getBindingContext();var _=$&&$.getObject();var a1=m({},Q,_);if(X.semanticObjectMapping){var b1=X.semanticObjectMapping;for(var c1 in b1){var d1=b1[c1];var e1=d1["LocalProperty"]["$PropertyPath"];var f1=d1["SemanticObjectProperty"];if(e1!==f1){if(a1.hasOwnProperty(e1)){var g1={};g1[f1]=a1[e1];a1=m({},a1,g1);delete a1[e1];}}}}if(a1){for(var h1 in a1){if(h1.indexOf("_")!==0&&h1.indexOf("odata.context")===-1){Y[h1]=a1[h1];}}}F.isNavigationSupported([{target:{semanticObject:X.semanticObject,action:X.action},params:Y}]).then(K.bind({id:W})).catch(H);}}},handlers:{onTableContextChange:function(z){var A=this;var F=z.getSource();var G;this._findTables().some(function(_){if(_.getRowBinding()===F){G=_;return true;}return false;});var H=this._editFlow.getCurrentActionPromise();if(H){var K;if(G.getType().getMetadata().isA("sap.ui.mdc.table.GridTableType")){K=F.getContexts(0);}else{K=F.getCurrentContexts();}if(!K[0]){return;}H.then(function(Q){if(!Q||Q.controlId!==G.sId){return;}var W=Q.oData;var X=Q.keys;var Y=-1;K.find(function(_,i){var a1=_.getObject();var b1=X.every(function(c1){return a1[c1]===W[c1];});if(b1){Y=i;}return b1;});if(Y!==-1){var Z=o.getOpenDialogs();var $=Z.length>0?Z[0]:null;if($){$.attachEventOnce("afterClose",function(){G.focusRow(Y,true);});}else{G.focusRow(Y,true);}A._editFlow.deleteCurrentActionPromise();}}).catch(function(i){L.error("An error occurs while scrolling to the newly created Item: "+i);});}var N=A.getView().byId("fe::FooterBar::MessageButton");N.fireModelContextChange();},onCallAction:function(i,A,z){var F=i.getController();var G=F;return F.editFlow.invokeAction(A,z).then(G._showMessagePopover.bind(G,undefined)).catch(G._showMessagePopover.bind(G));},onDataPointTitlePressed:function(i,z,A,F,G){A=typeof A==="string"?JSON.parse(A):A;var H=A[F],K=C.getSemanticObjectMapping(H),N=z.getBindingContext(),Q=N.getModel().getMetaModel().getMetaPath(N.getPath()),W=i._getChartContextData(N,G),X;W=W.map(function(Z){return{data:Z,metaPath:Q+(G?"/"+G:"")};});if(H&&H.parameters){var Y=H.parameters&&i._intentBasedNavigation.getOutboundParams(H.parameters);if(Object.keys(Y).length>0){X=Y;}}if(H&&H.semanticObject&&H.action){i._intentBasedNavigation.navigate(H.semanticObject,H.action,{navigationContexts:W,semanticObjectMapping:K,additionalNavigationParameters:X});}},onChevronPressNavigateOutBound:function(i,z,A,F){return i._intentBasedNavigation.onChevronPressNavigateOutBound(i,z,A,F);},onNavigateChange:function(i){this.getExtensionAPI().updateAppState();this.bSectionNavigated=true;var z=this.getView().getBindingContext("internal");var A=this.byId("fe::ObjectPage");if(A.getModel("ui").getProperty("/editMode")!=="Display"&&this.getView().getViewData().sectionLayout==="Tabs"&&z.getProperty("errorNavigationSectionFlag")===false){var F=i.getParameter("subSection");this._updateFocusInEditMode([F]);}},onVariantSelected:function(i){this.getExtensionAPI().updateAppState();},onVariantSaved:function(i){var z=this;setTimeout(function(){z.getExtensionAPI().updateAppState();},500);},navigateToSubSection:function(i,z){var A=typeof z==="string"?JSON.parse(z):z,F=i.getView().byId("fe::ObjectPage"),G,H;if(A.sectionId){G=i.getView().byId(A.sectionId);H=A.subSectionId?i.getView().byId(A.subSectionId):G&&G.getSubSections()&&G.getSubSections()[0];}else if(A.subSectionId){H=i.getView().byId(A.subSectionId);G=H&&H.getParent();}if(!G||!H||!G.getVisible()||!H.getVisible()){i.getView().getModel("sap.fe.i18n").getResourceBundle().then(function(K){var N=C.getTranslatedText("C_ROUTING_NAVIGATION_DISABLED_TITLE",K,null,i.getView().getViewData().entitySet);L.error(N);M.error(N);}).catch(function(K){L.error(K);});}else{F.scrollToSection(H.getId());F.fireNavigate({section:G,subSection:H});}},onChartSelectionChanged:function(i){h.fnUpdateChart(i);}}});});
|