@sapui5/sap.fe.core 1.97.0 → 1.100.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 +7 -4
- package/src/sap/fe/core/.library +1 -1
- package/src/sap/fe/core/AnnotationHelper.js +309 -405
- package/src/sap/fe/core/AnnotationHelper.ts +315 -0
- package/src/sap/fe/core/AppComponent.js +389 -397
- package/src/sap/fe/core/AppComponent.ts +403 -0
- package/src/sap/fe/core/AppStateHandler.js +198 -181
- package/src/sap/fe/core/AppStateHandler.ts +171 -0
- package/src/sap/fe/core/BaseController.js +83 -58
- package/src/sap/fe/core/BaseController.ts +68 -0
- package/src/sap/fe/core/BusyLocker.js +105 -121
- package/src/sap/fe/core/BusyLocker.ts +98 -0
- package/src/sap/fe/core/CommonUtils.js +2164 -2379
- package/src/sap/fe/core/CommonUtils.ts +2177 -0
- package/src/sap/fe/core/ExtensionAPI.js +279 -266
- package/src/sap/fe/core/ExtensionAPI.ts +250 -0
- package/src/sap/fe/core/PageController.js +218 -125
- package/src/sap/fe/core/PageController.ts +129 -0
- package/src/sap/fe/core/RouterProxy.js +924 -807
- package/src/sap/fe/core/RouterProxy.ts +840 -0
- package/src/sap/fe/core/Synchronization.js +41 -35
- package/src/sap/fe/core/Synchronization.ts +29 -0
- package/src/sap/fe/core/TemplateComponent.js +173 -155
- package/src/sap/fe/core/TemplateComponent.ts +173 -0
- package/src/sap/fe/core/TemplateModel.js +79 -54
- package/src/sap/fe/core/TemplateModel.ts +63 -0
- package/src/sap/fe/core/TransactionHelper.js +1560 -1579
- package/src/sap/fe/core/TransactionHelper.ts +1717 -0
- package/src/sap/fe/core/actions/collaboration/ActivitySync.js +392 -0
- package/src/sap/fe/core/actions/collaboration/ActivitySync.ts +355 -0
- package/src/sap/fe/core/actions/collaboration/CollaborationCommon.js +136 -0
- package/src/sap/fe/core/actions/collaboration/CollaborationCommon.ts +119 -0
- package/src/sap/fe/core/actions/collaboration/Manage.js +262 -0
- package/src/sap/fe/core/actions/collaboration/Manage.ts +244 -0
- package/src/sap/fe/core/actions/collaboration/ManageDialog.fragment.xml +103 -0
- package/src/sap/fe/core/actions/collaboration/UserDetails.fragment.xml +13 -0
- package/src/sap/fe/core/actions/draft.js +521 -581
- package/src/sap/fe/core/actions/draft.ts +566 -0
- package/src/sap/fe/core/actions/messageHandling.js +564 -511
- package/src/sap/fe/core/actions/messageHandling.ts +552 -0
- package/src/sap/fe/core/actions/nonDraft.js +17 -19
- package/src/sap/fe/core/actions/nonDraft.ts +12 -0
- package/src/sap/fe/core/actions/operations.js +1093 -1211
- package/src/sap/fe/core/actions/operations.ts +1192 -0
- package/src/sap/fe/core/actions/sticky.js +114 -104
- package/src/sap/fe/core/actions/sticky.ts +119 -0
- package/src/sap/fe/core/controllerextensions/ControllerExtensionMetadata.js +70 -66
- package/src/sap/fe/core/controllerextensions/ControllerExtensionMetadata.ts +65 -0
- package/src/sap/fe/core/controllerextensions/EditFlow.js +1594 -1701
- package/src/sap/fe/core/controllerextensions/EditFlow.ts +1672 -0
- package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.js +80 -54
- package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.ts +61 -0
- package/src/sap/fe/core/controllerextensions/InternalEditFlow.js +719 -505
- package/src/sap/fe/core/controllerextensions/InternalEditFlow.ts +783 -0
- package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.js +797 -813
- package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.ts +803 -0
- package/src/sap/fe/core/controllerextensions/InternalRouting.js +1005 -973
- package/src/sap/fe/core/controllerextensions/InternalRouting.ts +978 -0
- package/src/sap/fe/core/controllerextensions/KPIManagement.js +530 -476
- package/src/sap/fe/core/controllerextensions/KPIManagement.ts +137 -46
- package/src/sap/fe/core/controllerextensions/MassEdit.js +144 -0
- package/src/sap/fe/core/controllerextensions/MassEdit.ts +156 -0
- package/src/sap/fe/core/controllerextensions/MessageHandler.js +234 -232
- package/src/sap/fe/core/controllerextensions/MessageHandler.ts +225 -0
- package/src/sap/fe/core/controllerextensions/PageReady.js +302 -337
- package/src/sap/fe/core/controllerextensions/PageReady.ts +23 -17
- package/src/sap/fe/core/controllerextensions/Paginator.js +189 -148
- package/src/sap/fe/core/controllerextensions/Paginator.ts +163 -0
- package/src/sap/fe/core/controllerextensions/Placeholder.js +158 -146
- package/src/sap/fe/core/controllerextensions/Placeholder.ts +151 -0
- package/src/sap/fe/core/controllerextensions/Routing.js +145 -106
- package/src/sap/fe/core/controllerextensions/Routing.ts +132 -0
- package/src/sap/fe/core/controllerextensions/RoutingListener.js +8 -6
- package/src/sap/fe/core/controllerextensions/RoutingListener.ts +3 -0
- package/src/sap/fe/core/controllerextensions/Share.js +220 -244
- package/src/sap/fe/core/controllerextensions/Share.ts +231 -0
- package/src/sap/fe/core/controllerextensions/SideEffects.js +593 -634
- package/src/sap/fe/core/controllerextensions/SideEffects.ts +29 -27
- package/src/sap/fe/core/controllerextensions/ViewState.js +789 -806
- package/src/sap/fe/core/controllerextensions/ViewState.ts +805 -0
- package/src/sap/fe/core/controls/ActionParameterDialog.fragment.xml +4 -3
- package/src/sap/fe/core/controls/ActionPartial.fragment.xml +2 -2
- package/src/sap/fe/core/controls/CommandExecution.js +68 -66
- package/src/sap/fe/core/controls/CommandExecution.ts +72 -0
- package/src/sap/fe/core/controls/ConditionalWrapper.js +91 -75
- package/src/sap/fe/core/controls/ConditionalWrapper.ts +83 -0
- package/src/sap/fe/core/controls/CustomQuickViewPage.js +131 -125
- package/src/sap/fe/core/controls/CustomQuickViewPage.ts +126 -0
- package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.js +105 -110
- package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.ts +101 -0
- package/src/sap/fe/core/controls/FieldWrapper.js +122 -140
- package/src/sap/fe/core/controls/FieldWrapper.ts +115 -0
- package/src/sap/fe/core/controls/FilterBar.js +163 -159
- package/src/sap/fe/core/controls/FilterBar.ts +143 -0
- package/src/sap/fe/core/controls/FormElementWrapper.js +46 -44
- package/src/sap/fe/core/controls/FormElementWrapper.ts +40 -0
- package/src/sap/fe/core/controls/MultiValueParameterDelegate.js +38 -42
- package/src/sap/fe/core/controls/MultiValueParameterDelegate.ts +31 -0
- package/src/sap/fe/core/controls/NonComputedVisibleKeyFieldsDialog.fragment.xml +2 -1
- package/src/sap/fe/core/controls/filterbar/FilterContainer.js +127 -116
- package/src/sap/fe/core/controls/filterbar/FilterContainer.ts +98 -0
- package/src/sap/fe/core/controls/filterbar/VisualFilter.js +242 -255
- package/src/sap/fe/core/controls/filterbar/VisualFilter.ts +245 -0
- package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.js +151 -141
- package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.ts +125 -0
- package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.js +336 -322
- package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.ts +337 -0
- package/src/sap/fe/core/controls/massEdit/MassEditDialog.fragment.xml +106 -0
- package/src/sap/fe/core/controls/massEdit/MassEditHandlers.js +79 -0
- package/src/sap/fe/core/controls/massEdit/MassEditHandlers.ts +70 -0
- package/src/sap/fe/core/converters/ConverterContext.js +348 -367
- package/src/sap/fe/core/converters/ConverterContext.ts +33 -19
- package/src/sap/fe/core/converters/ManifestSettings.js +12 -1
- package/src/sap/fe/core/converters/ManifestSettings.ts +16 -1
- package/src/sap/fe/core/converters/ManifestWrapper.js +354 -354
- package/src/sap/fe/core/converters/ManifestWrapper.ts +34 -6
- package/src/sap/fe/core/converters/MetaModelConverter.js +72 -9
- package/src/sap/fe/core/converters/MetaModelConverter.ts +75 -16
- package/src/sap/fe/core/converters/TemplateConverter.js +1 -1
- package/src/sap/fe/core/converters/TemplateConverter.ts +4 -3
- package/src/sap/fe/core/converters/annotations/DataField.js +28 -14
- package/src/sap/fe/core/converters/annotations/DataField.ts +38 -14
- package/src/sap/fe/core/converters/common/AnnotationConverter.js +33 -21
- package/src/sap/fe/core/converters/controls/Common/Action.js +11 -2
- package/src/sap/fe/core/converters/controls/Common/Action.ts +8 -2
- package/src/sap/fe/core/converters/controls/Common/Chart.js +5 -3
- package/src/sap/fe/core/converters/controls/Common/Chart.ts +11 -3
- package/src/sap/fe/core/converters/controls/Common/DataVisualization.js +3 -3
- package/src/sap/fe/core/converters/controls/Common/DataVisualization.ts +2 -2
- package/src/sap/fe/core/converters/controls/Common/Form.js +21 -11
- package/src/sap/fe/core/converters/controls/Common/Form.ts +28 -6
- package/src/sap/fe/core/converters/controls/Common/KPI.js +69 -4
- package/src/sap/fe/core/converters/controls/Common/KPI.ts +75 -2
- package/src/sap/fe/core/converters/controls/Common/Table.js +507 -408
- package/src/sap/fe/core/converters/controls/Common/Table.ts +618 -500
- package/src/sap/fe/core/converters/controls/Common/table/StandardActions.js +592 -0
- package/src/sap/fe/core/converters/controls/Common/table/StandardActions.ts +718 -0
- package/src/sap/fe/core/converters/controls/ListReport/FilterBar.js +465 -59
- package/src/sap/fe/core/converters/controls/ListReport/FilterBar.ts +462 -72
- package/src/sap/fe/core/converters/controls/ListReport/VisualFilters.js +2 -2
- package/src/sap/fe/core/converters/controls/ListReport/VisualFilters.ts +1 -1
- package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.js +17 -9
- package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.ts +24 -9
- package/src/sap/fe/core/converters/helpers/Aggregation.js +118 -121
- package/src/sap/fe/core/converters/helpers/Aggregation.ts +28 -5
- package/src/sap/fe/core/converters/helpers/BindingHelper.js +20 -6
- package/src/sap/fe/core/converters/helpers/BindingHelper.ts +16 -4
- package/src/sap/fe/core/converters/helpers/ConfigurableObject.js +12 -1
- package/src/sap/fe/core/converters/helpers/ConfigurableObject.ts +11 -0
- package/src/sap/fe/core/converters/helpers/IssueManager.js +7 -1
- package/src/sap/fe/core/converters/helpers/IssueManager.ts +6 -0
- package/src/sap/fe/core/converters/helpers/Key.js +42 -57
- package/src/sap/fe/core/converters/helpers/Key.ts +1 -1
- package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.js +28 -7
- package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.ts +23 -6
- package/src/sap/fe/core/converters/templates/ListReportConverter.js +20 -7
- package/src/sap/fe/core/converters/templates/ListReportConverter.ts +36 -14
- package/src/sap/fe/core/converters/templates/ObjectPageConverter.js +7 -5
- package/src/sap/fe/core/converters/templates/ObjectPageConverter.ts +5 -1
- package/src/sap/fe/core/designtime/AppComponent.designtime.js +93 -90
- package/src/sap/fe/core/designtime/AppComponent.designtime.ts +91 -0
- package/src/sap/fe/core/formatters/CollaborationFormatter.js +104 -0
- package/src/sap/fe/core/formatters/CollaborationFormatter.ts +60 -0
- package/src/sap/fe/core/formatters/CriticalityFormatter.js +1 -1
- package/src/sap/fe/core/formatters/CriticalityFormatter.ts +1 -1
- package/src/sap/fe/core/formatters/FPMFormatter.js +1 -1
- package/src/sap/fe/core/formatters/FPMFormatter.ts +4 -10
- package/src/sap/fe/core/formatters/KPIFormatter.js +1 -1
- package/src/sap/fe/core/formatters/KPIFormatter.ts +3 -1
- package/src/sap/fe/core/formatters/TableFormatter.js +91 -29
- package/src/sap/fe/core/formatters/TableFormatter.ts +94 -28
- package/src/sap/fe/core/formatters/ValueFormatter.js +30 -5
- package/src/sap/fe/core/formatters/ValueFormatter.ts +30 -7
- package/src/sap/fe/core/fpm/Component.js +51 -54
- package/src/sap/fe/core/fpm/Component.ts +48 -0
- package/src/sap/fe/core/helpers/AppStartupHelper.js +373 -0
- package/src/sap/fe/core/helpers/AppStartupHelper.ts +417 -0
- package/src/sap/fe/core/helpers/BindingExpression.js +489 -442
- package/src/sap/fe/core/helpers/BindingExpression.ts +486 -469
- package/src/sap/fe/core/helpers/ClassSupport.js +212 -76
- package/src/sap/fe/core/helpers/ClassSupport.ts +198 -71
- package/src/sap/fe/core/helpers/DynamicAnnotationPathHelper.js +64 -59
- package/src/sap/fe/core/helpers/DynamicAnnotationPathHelper.ts +52 -0
- package/src/sap/fe/core/helpers/EditState.js +81 -84
- package/src/sap/fe/core/helpers/EditState.ts +81 -0
- package/src/sap/fe/core/helpers/ExcelFormatHelper.js +62 -48
- package/src/sap/fe/core/helpers/ExcelFormatHelper.ts +49 -0
- package/src/sap/fe/core/helpers/FPMHelper.js +52 -56
- package/src/sap/fe/core/helpers/FPMHelper.ts +62 -0
- package/src/sap/fe/core/helpers/KeepAliveHelper.js +4 -5
- package/src/sap/fe/core/helpers/KeepAliveHelper.ts +10 -10
- package/src/sap/fe/core/helpers/MassEditHelper.js +604 -0
- package/src/sap/fe/core/helpers/MassEditHelper.ts +699 -0
- package/src/sap/fe/core/helpers/ModelHelper.js +253 -225
- package/src/sap/fe/core/helpers/ModelHelper.ts +250 -0
- package/src/sap/fe/core/helpers/PasteHelper.js +210 -132
- package/src/sap/fe/core/helpers/PasteHelper.ts +196 -0
- package/src/sap/fe/core/helpers/SemanticDateOperators.js +336 -313
- package/src/sap/fe/core/helpers/SemanticDateOperators.ts +334 -0
- package/src/sap/fe/core/helpers/SemanticKeyHelper.js +66 -67
- package/src/sap/fe/core/helpers/SemanticKeyHelper.ts +73 -0
- package/src/sap/fe/core/helpers/StableIdHelper.js +4 -7
- package/src/sap/fe/core/helpers/StableIdHelper.ts +2 -6
- package/src/sap/fe/core/jsx-runtime/jsx.js +1 -1
- package/src/sap/fe/core/jsx-runtime/jsx.ts +1 -1
- package/src/sap/fe/core/library.js +427 -425
- package/src/sap/fe/core/library.support.js +23 -27
- package/src/sap/fe/core/library.support.ts +23 -0
- package/src/sap/fe/core/library.ts +420 -0
- package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.js +64 -0
- package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.ts +69 -0
- package/src/sap/fe/core/messagebundle.properties +78 -13
- package/src/sap/fe/core/messagebundle_ar.properties +58 -7
- package/src/sap/fe/core/messagebundle_bg.properties +58 -7
- package/src/sap/fe/core/messagebundle_ca.properties +58 -7
- package/src/sap/fe/core/messagebundle_cs.properties +59 -8
- package/src/sap/fe/core/messagebundle_cy.properties +58 -7
- package/src/sap/fe/core/messagebundle_da.properties +58 -7
- package/src/sap/fe/core/messagebundle_de.properties +58 -7
- package/src/sap/fe/core/messagebundle_el.properties +58 -7
- package/src/sap/fe/core/messagebundle_en.properties +57 -6
- package/src/sap/fe/core/messagebundle_en_GB.properties +57 -6
- package/src/sap/fe/core/messagebundle_en_US_sappsd.properties +61 -6
- package/src/sap/fe/core/messagebundle_en_US_saprigi.properties +58 -7
- package/src/sap/fe/core/messagebundle_en_US_saptrc.properties +58 -7
- package/src/sap/fe/core/messagebundle_es.properties +58 -7
- package/src/sap/fe/core/messagebundle_es_MX.properties +58 -7
- package/src/sap/fe/core/messagebundle_et.properties +58 -7
- package/src/sap/fe/core/messagebundle_fi.properties +60 -9
- package/src/sap/fe/core/messagebundle_fr.properties +64 -13
- package/src/sap/fe/core/messagebundle_fr_CA.properties +59 -8
- package/src/sap/fe/core/messagebundle_hi.properties +58 -7
- package/src/sap/fe/core/messagebundle_hr.properties +58 -7
- package/src/sap/fe/core/messagebundle_hu.properties +59 -8
- package/src/sap/fe/core/messagebundle_id.properties +61 -10
- package/src/sap/fe/core/messagebundle_it.properties +58 -7
- package/src/sap/fe/core/messagebundle_iw.properties +58 -7
- package/src/sap/fe/core/messagebundle_ja.properties +58 -7
- package/src/sap/fe/core/messagebundle_kk.properties +58 -7
- package/src/sap/fe/core/messagebundle_ko.properties +58 -7
- package/src/sap/fe/core/messagebundle_lt.properties +58 -7
- package/src/sap/fe/core/messagebundle_lv.properties +59 -8
- package/src/sap/fe/core/messagebundle_ms.properties +58 -7
- package/src/sap/fe/core/messagebundle_nl.properties +58 -7
- package/src/sap/fe/core/messagebundle_no.properties +58 -7
- package/src/sap/fe/core/messagebundle_pl.properties +58 -7
- package/src/sap/fe/core/messagebundle_pt.properties +59 -8
- package/src/sap/fe/core/messagebundle_pt_PT.properties +58 -7
- package/src/sap/fe/core/messagebundle_ro.properties +58 -7
- package/src/sap/fe/core/messagebundle_ru.properties +58 -7
- package/src/sap/fe/core/messagebundle_sh.properties +58 -7
- package/src/sap/fe/core/messagebundle_sk.properties +58 -7
- package/src/sap/fe/core/messagebundle_sl.properties +58 -7
- package/src/sap/fe/core/messagebundle_sv.properties +59 -8
- package/src/sap/fe/core/messagebundle_th.properties +58 -7
- package/src/sap/fe/core/messagebundle_tr.properties +60 -9
- package/src/sap/fe/core/messagebundle_uk.properties +58 -7
- package/src/sap/fe/core/messagebundle_vi.properties +58 -7
- package/src/sap/fe/core/messagebundle_zh_CN.properties +58 -7
- package/src/sap/fe/core/messagebundle_zh_TW.properties +58 -7
- package/src/sap/fe/core/services/AsyncComponentServiceFactory.js +45 -71
- package/src/sap/fe/core/services/AsyncComponentServiceFactory.ts +3 -1
- package/src/sap/fe/core/services/CacheHandlerServiceFactory.js +231 -202
- package/src/sap/fe/core/services/CacheHandlerServiceFactory.ts +212 -0
- package/src/sap/fe/core/services/EnvironmentServiceFactory.js +67 -92
- package/src/sap/fe/core/services/EnvironmentServiceFactory.ts +10 -6
- package/src/sap/fe/core/services/NavigationServiceFactory.js +351 -300
- package/src/sap/fe/core/services/NavigationServiceFactory.ts +313 -0
- package/src/sap/fe/core/services/ResourceModelServiceFactory.js +114 -81
- package/src/sap/fe/core/services/ResourceModelServiceFactory.ts +83 -0
- package/src/sap/fe/core/services/RoutingServiceFactory.js +927 -1152
- package/src/sap/fe/core/services/RoutingServiceFactory.ts +898 -0
- package/src/sap/fe/core/services/ShellServicesFactory.js +649 -707
- package/src/sap/fe/core/services/ShellServicesFactory.ts +52 -15
- package/src/sap/fe/core/services/SideEffectsServiceFactory.js +569 -637
- package/src/sap/fe/core/services/SideEffectsServiceFactory.ts +78 -102
- package/src/sap/fe/core/services/TemplatedViewServiceFactory.js +429 -478
- package/src/sap/fe/core/services/TemplatedViewServiceFactory.ts +460 -0
- package/src/sap/fe/core/services/view/TemplatingErrorPage.controller.js +10 -8
- package/src/sap/fe/core/services/view/TemplatingErrorPage.controller.ts +8 -0
- package/src/sap/fe/core/support/AnnotationIssue.support.js +15 -3
- package/src/sap/fe/core/support/AnnotationIssue.support.ts +16 -2
- package/src/sap/fe/core/support/CollectionFacetUnsupportedLevel.support.js +2 -2
- package/src/sap/fe/core/support/CollectionFacetUnsupportedLevel.support.ts +1 -1
- package/src/sap/fe/core/support/CommonHelper.js +1 -1
- package/src/sap/fe/core/support/CommonHelper.ts +1 -1
- package/src/sap/fe/core/support/Diagnostics.js +36 -48
- package/src/sap/fe/core/support/InvalidAnnotationColumnKey.support.js +38 -0
- package/src/sap/fe/core/support/InvalidAnnotationColumnKey.support.ts +18 -0
- package/src/sap/fe/core/templating/DataModelPathHelper.js +97 -127
- package/src/sap/fe/core/templating/DataModelPathHelper.ts +112 -135
- package/src/sap/fe/core/templating/DisplayModeFormatter.js +114 -0
- package/src/sap/fe/core/templating/DisplayModeFormatter.ts +86 -0
- package/src/sap/fe/core/templating/FieldControlHelper.js +8 -8
- package/src/sap/fe/core/templating/FieldControlHelper.ts +25 -7
- package/src/sap/fe/core/templating/FilterHelper.js +140 -78
- package/src/sap/fe/core/templating/FilterHelper.ts +149 -78
- package/src/sap/fe/core/templating/PropertyHelper.js +3 -3
- package/src/sap/fe/core/templating/PropertyHelper.ts +2 -2
- package/src/sap/fe/core/templating/UIFormatters.js +76 -135
- package/src/sap/fe/core/templating/UIFormatters.ts +76 -99
- package/src/sap/fe/core/type/Email.js +1 -1
- package/src/sap/fe/core/type/Email.ts +4 -6
- package/ui5.yaml +0 -3
- package/src/sap/fe/core/controls/filterbar.d.js +0 -8
- package/src/sap/fe/core/controls/filterbar.d.ts +0 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import BaseObject from "sap/ui/base/Object";
|
|
2
|
+
import CommonUtils from "sap/fe/core/CommonUtils";
|
|
3
|
+
import Log from "sap/base/Log";
|
|
4
|
+
import Element from "sap/ui/core/Element";
|
|
5
|
+
import Component from "sap/ui/core/Component";
|
|
6
|
+
import JSONModel from "sap/ui/model/json/JSONModel";
|
|
7
|
+
import Metadata from "sap/ui/base/Metadata";
|
|
8
|
+
import { Property, UI5Class } from "./helpers/ClassSupport";
|
|
9
|
+
import EditFlow from "sap/fe/core/controllerextensions/EditFlow";
|
|
10
|
+
import Routing from "sap/fe/core/controllerextensions/Routing";
|
|
11
|
+
import View from "sap/ui/core/mvc/View";
|
|
12
|
+
import PageController from "sap/fe/core/PageController";
|
|
13
|
+
import InternalRouting from "sap/fe/core/controllerextensions/InternalRouting";
|
|
14
|
+
import Control from "sap/ui/core/Control";
|
|
15
|
+
import Context from "sap/ui/model/Context";
|
|
16
|
+
import Model from "sap/ui/model/Model";
|
|
17
|
+
import TemplateComponent from "sap/fe/core/TemplateComponent";
|
|
18
|
+
import IntentBasedNavigation from "sap/fe/core/controllerextensions/IntentBasedNavigation";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Common Extension API for all pages of SAP Fiori elements for OData V4.
|
|
22
|
+
* @alias sap.fe.core.ExtensionAPI
|
|
23
|
+
* @public
|
|
24
|
+
* @hideconstructor
|
|
25
|
+
* @extends sap.ui.base.Object
|
|
26
|
+
* @since 1.79.0
|
|
27
|
+
*/
|
|
28
|
+
@UI5Class("sap.fe.core.ExtensionAPI", Metadata)
|
|
29
|
+
class ExtensionAPI extends BaseObject {
|
|
30
|
+
/**
|
|
31
|
+
* A controller extension offering hooks into the edit flow of the application.
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
@Property({ type: "sap/fe/core/controllerextensions/EditFlow" })
|
|
35
|
+
editFlow: EditFlow;
|
|
36
|
+
/**
|
|
37
|
+
* A controller extension offering hooks into the routing flow of the application.
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
@Property({ type: "sap/fe/core/controllerextensions/Routing" })
|
|
41
|
+
routing: Routing;
|
|
42
|
+
/**
|
|
43
|
+
* ExtensionAPI for intent-based navigation
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
@Property({ type: "sap/fe/core/controllerextensions/IntentBasedNavigation" })
|
|
47
|
+
intentBasedNavigation: IntentBasedNavigation;
|
|
48
|
+
|
|
49
|
+
private _controller: PageController;
|
|
50
|
+
private _view: View;
|
|
51
|
+
private _routing: InternalRouting;
|
|
52
|
+
private _prefix?: string;
|
|
53
|
+
private extension: any;
|
|
54
|
+
|
|
55
|
+
constructor(oController: PageController, sId?: string) {
|
|
56
|
+
super();
|
|
57
|
+
this._controller = oController;
|
|
58
|
+
this._view = oController.getView();
|
|
59
|
+
this.extension = (this._controller as any).extension;
|
|
60
|
+
this.editFlow = this._controller.editFlow;
|
|
61
|
+
this.routing = this._controller.routing;
|
|
62
|
+
this._routing = this._controller._routing;
|
|
63
|
+
this.intentBasedNavigation = this._controller.intentBasedNavigation;
|
|
64
|
+
this._prefix = sId;
|
|
65
|
+
}
|
|
66
|
+
destroy() {
|
|
67
|
+
// delete this._controller;
|
|
68
|
+
// delete this._view;
|
|
69
|
+
// delete this.editFlow._controller;
|
|
70
|
+
// delete this.intentBasedNavigation._controller;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Access any control by ID.
|
|
75
|
+
*
|
|
76
|
+
* @alias sap.fe.core.ExtensionAPI#byId
|
|
77
|
+
* @param {string} sId ID of the control without the view prefix. Either the ID prefixed by SAP Fiori elements
|
|
78
|
+
* (for example with the section) or the control ID only. The latter works only for an extension running in
|
|
79
|
+
* the same context (like in the same section). You can use the prefix for SAP Fiori elements to also access other controls located in different sections.
|
|
80
|
+
* @returns {sap.ui.core.Control} The requested control, if found in the view.
|
|
81
|
+
*
|
|
82
|
+
* @private
|
|
83
|
+
*/
|
|
84
|
+
byId(sId: string) {
|
|
85
|
+
let oControl = this._view.byId(sId);
|
|
86
|
+
|
|
87
|
+
if (!oControl && this._prefix) {
|
|
88
|
+
// give it a try with the prefix
|
|
89
|
+
oControl = this._view.byId(this._prefix + "--" + sId);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (oControl) {
|
|
93
|
+
return oControl;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Get access to models managed by SAP Fiori elements.<br>
|
|
99
|
+
* The following models can be accessed:
|
|
100
|
+
* <ul>
|
|
101
|
+
* <li>undefined: the undefined model returns the SAPUI5 OData V4 model bound to this page</li>
|
|
102
|
+
* <li>i18n / further data models defined in the manifest</li>
|
|
103
|
+
* <li>ui: returns a SAPUI5 JSON model containing UI information.
|
|
104
|
+
* Only the following properties are public and supported:
|
|
105
|
+
* <ul>
|
|
106
|
+
* <li>editMode: contains either 'Editable' or 'Display'</li>
|
|
107
|
+
* </ul>
|
|
108
|
+
* </li>
|
|
109
|
+
* </ul>.
|
|
110
|
+
*
|
|
111
|
+
* @alias sap.fe.core.ExtensionAPI#getModel
|
|
112
|
+
* @param {string} sModelName Name of the model
|
|
113
|
+
* @returns {sap.ui.model.Model} The required model
|
|
114
|
+
*
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
getModel(sModelName?: string): Model | undefined {
|
|
118
|
+
let oAppComponent;
|
|
119
|
+
|
|
120
|
+
if (sModelName && sModelName !== "ui") {
|
|
121
|
+
oAppComponent = CommonUtils.getAppComponent(this._view);
|
|
122
|
+
if (!oAppComponent.getManifestEntry("sap.ui5").models[sModelName]) {
|
|
123
|
+
// don't allow access to our internal models
|
|
124
|
+
return undefined;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return this._view.getModel(sModelName);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Add any control as a dependent control to this SAP Fiori elements page.
|
|
133
|
+
*
|
|
134
|
+
* @alias sap.fe.core.ExtensionAPI#addDependent
|
|
135
|
+
* @param {sap.ui.core.Control} oControl Control to be added as a dependent control
|
|
136
|
+
*
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
addDependent(oControl: Control) {
|
|
140
|
+
this._view.addDependent(oControl);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Remove a dependent control from this SAP Fiori elements page.
|
|
145
|
+
*
|
|
146
|
+
* @alias sap.fe.core.ExtensionAPI#removeDependent
|
|
147
|
+
* @param {sap.ui.core.Control} oControl Control to be added as a dependent control
|
|
148
|
+
*
|
|
149
|
+
* @public
|
|
150
|
+
*/
|
|
151
|
+
removeDependent(oControl: Control) {
|
|
152
|
+
this._view.removeDependent(oControl);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Navigate to another target.
|
|
157
|
+
*
|
|
158
|
+
* @alias sap.fe.core.ExtensionAPI#navigateToTarget
|
|
159
|
+
* @param {string} sTarget Name of the target route
|
|
160
|
+
* @param {sap.ui.model.Context} [oContext] Context instance
|
|
161
|
+
* @returns {void}
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
164
|
+
navigateToTarget(sTarget: string, oContext: Context): void {
|
|
165
|
+
return this._controller._routing.navigateToTarget(oContext, sTarget);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Load a fragment and go through the template preprocessor with the current page context.
|
|
170
|
+
*
|
|
171
|
+
* @alias sap.fe.core.ExtensionAPI#loadFragment
|
|
172
|
+
* @param {object} mSettings The settings object
|
|
173
|
+
* @param {string} mSettings.id The ID of the fragment itself
|
|
174
|
+
* @param {string} mSettings.name The name of the fragment to be loaded
|
|
175
|
+
* @param {object} mSettings.controller The controller to be attached to the fragment
|
|
176
|
+
* @param {string} mSettings.contextPath The contextPath to be used for the templating process
|
|
177
|
+
* @param {sap.ui.model.Context} mSettings.initialBindingContext The initial binding context
|
|
178
|
+
* @returns {Promise<Element[]|sap.ui.core.Element[]>} The fragment definition
|
|
179
|
+
*
|
|
180
|
+
* @public
|
|
181
|
+
*/
|
|
182
|
+
loadFragment(mSettings: {
|
|
183
|
+
id: string;
|
|
184
|
+
name: string;
|
|
185
|
+
controller: object;
|
|
186
|
+
contextPath: string;
|
|
187
|
+
initialBindingContext: Context;
|
|
188
|
+
}): Promise<Element | Element[]> {
|
|
189
|
+
const oTemplateComponent = Component.getOwnerComponentFor(this._view) as typeof TemplateComponent;
|
|
190
|
+
const oPageModel = this._view.getModel("_pageModel");
|
|
191
|
+
const oMetaModel = this.getModel()?.getMetaModel();
|
|
192
|
+
const mViewData = oTemplateComponent.getViewData();
|
|
193
|
+
const oViewDataModel = new JSONModel(mViewData),
|
|
194
|
+
oPreprocessorSettings = {
|
|
195
|
+
bindingContexts: {
|
|
196
|
+
"contextPath": oMetaModel?.createBindingContext(mSettings.contextPath || "/" + oTemplateComponent.getEntitySet()),
|
|
197
|
+
converterContext: oPageModel.createBindingContext("/", undefined, { noResolve: true }),
|
|
198
|
+
viewData: mViewData ? oViewDataModel.createBindingContext("/") : null
|
|
199
|
+
},
|
|
200
|
+
models: {
|
|
201
|
+
"contextPath": oMetaModel,
|
|
202
|
+
converterContext: oPageModel,
|
|
203
|
+
metaModel: oMetaModel,
|
|
204
|
+
viewData: oViewDataModel
|
|
205
|
+
},
|
|
206
|
+
appComponent: CommonUtils.getAppComponent(this._view)
|
|
207
|
+
};
|
|
208
|
+
const oTemplatePromise = CommonUtils.templateControlFragment(mSettings.name, oPreprocessorSettings, {
|
|
209
|
+
controller: mSettings.controller || this,
|
|
210
|
+
isXML: false,
|
|
211
|
+
id: mSettings.id
|
|
212
|
+
});
|
|
213
|
+
oTemplatePromise
|
|
214
|
+
.then((oFragment: any) => {
|
|
215
|
+
if (mSettings.initialBindingContext !== undefined) {
|
|
216
|
+
oFragment.setBindingContext(mSettings.initialBindingContext);
|
|
217
|
+
}
|
|
218
|
+
this.addDependent(oFragment);
|
|
219
|
+
})
|
|
220
|
+
.catch(function(oError: any) {
|
|
221
|
+
Log.error(oError);
|
|
222
|
+
});
|
|
223
|
+
return oTemplatePromise;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Triggers an update of the app state.
|
|
228
|
+
* Should be called if the state of a control, or any other state-relevant information, was changed.
|
|
229
|
+
*
|
|
230
|
+
* @alias sap.fe.core.ExtensionAPI#updateAppState
|
|
231
|
+
* @returns {Promise} A promise that resolves with the new app state object.
|
|
232
|
+
*
|
|
233
|
+
* @public
|
|
234
|
+
*/
|
|
235
|
+
updateAppState(): Promise<void> | undefined {
|
|
236
|
+
if (
|
|
237
|
+
!this._controller
|
|
238
|
+
.getAppComponent()
|
|
239
|
+
.getModel("internal")
|
|
240
|
+
.getProperty("/uiAdaptation")
|
|
241
|
+
) {
|
|
242
|
+
return this._controller
|
|
243
|
+
.getAppComponent()
|
|
244
|
+
.getAppStateHandler()
|
|
245
|
+
.createAppState();
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export default ExtensionAPI;
|
|
@@ -1,127 +1,220 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SAPUI5
|
|
3
|
-
*
|
|
2
|
+
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved
|
|
4
4
|
*/
|
|
5
|
-
sap.ui.define(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
)
|
|
5
|
+
sap.ui.define(["sap/fe/core/BaseController", "sap/fe/core/ExtensionAPI", "sap/fe/core/controllerextensions/Routing", "sap/fe/core/controllerextensions/EditFlow", "sap/fe/core/controllerextensions/PageReady", "sap/fe/core/controllerextensions/MessageHandler", "sap/fe/core/controllerextensions/IntentBasedNavigation", "sap/fe/core/controllerextensions/Share", "sap/fe/core/controllerextensions/ViewState", "sap/fe/core/controllerextensions/Paginator", "sap/fe/core/controllerextensions/SideEffects", "sap/fe/core/controllerextensions/InternalRouting", "sap/fe/core/controllerextensions/InternalEditFlow", "sap/fe/core/controllerextensions/InternalIntentBasedNavigation", "sap/fe/core/controllerextensions/Placeholder", "sap/fe/core/controllerextensions/MassEdit", "sap/fe/core/helpers/ClassSupport", "sap/ui/core/mvc/ControllerMetadata"], function (BaseController, ExtensionAPI, Routing, EditFlow, PageReady, MessageHandler, IntentBasedNavigation, Share, ViewState, Paginator, SideEffects, InternalRouting, InternalEditFlow, InternalIntentBasedNavigation, Placeholder, MassEdit, ClassSupport, ControllerMetadata) {
|
|
6
|
+
"use strict";
|
|
7
|
+
|
|
8
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;
|
|
9
|
+
|
|
10
|
+
var UsingExtension = ClassSupport.UsingExtension;
|
|
11
|
+
var UI5Class = ClassSupport.UI5Class;
|
|
12
|
+
var Public = ClassSupport.Public;
|
|
13
|
+
|
|
14
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
15
|
+
|
|
16
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
17
|
+
|
|
18
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
19
|
+
|
|
20
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
21
|
+
|
|
22
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
23
|
+
|
|
24
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Base controller class for your custom page used inside an SAP Fiori elements application.
|
|
28
|
+
*
|
|
29
|
+
* This controller provides preconfigured extensions that will ensure you have the basic functionalities required to use the building blocks.
|
|
30
|
+
*
|
|
31
|
+
* @hideconstructor
|
|
32
|
+
* @public
|
|
33
|
+
* @since 1.88.0
|
|
34
|
+
*/
|
|
35
|
+
var PageController = (_dec = UI5Class("sap.fe.core.PageController", ControllerMetadata, {}), _dec2 = UsingExtension(Routing), _dec3 = UsingExtension(InternalRouting), _dec4 = UsingExtension(EditFlow), _dec5 = UsingExtension(InternalEditFlow), _dec6 = UsingExtension(IntentBasedNavigation), _dec7 = UsingExtension(InternalIntentBasedNavigation), _dec8 = UsingExtension(PageReady), _dec9 = UsingExtension(MessageHandler), _dec10 = UsingExtension(Share), _dec11 = UsingExtension(Paginator), _dec12 = UsingExtension(ViewState), _dec13 = UsingExtension(Placeholder), _dec14 = UsingExtension(SideEffects), _dec15 = UsingExtension(MassEdit), _dec(_class = (_class2 = /*#__PURE__*/function (_BaseController) {
|
|
36
|
+
_inherits(PageController, _BaseController);
|
|
37
|
+
|
|
38
|
+
function PageController() {
|
|
39
|
+
var _this;
|
|
40
|
+
|
|
41
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42
|
+
args[_key] = arguments[_key];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
_this = _BaseController.call.apply(_BaseController, [this].concat(args)) || this;
|
|
46
|
+
|
|
47
|
+
_initializerDefineProperty(_this, "routing", _descriptor, _assertThisInitialized(_this));
|
|
48
|
+
|
|
49
|
+
_initializerDefineProperty(_this, "_routing", _descriptor2, _assertThisInitialized(_this));
|
|
50
|
+
|
|
51
|
+
_initializerDefineProperty(_this, "editFlow", _descriptor3, _assertThisInitialized(_this));
|
|
52
|
+
|
|
53
|
+
_initializerDefineProperty(_this, "_editFlow", _descriptor4, _assertThisInitialized(_this));
|
|
54
|
+
|
|
55
|
+
_initializerDefineProperty(_this, "intentBasedNavigation", _descriptor5, _assertThisInitialized(_this));
|
|
56
|
+
|
|
57
|
+
_initializerDefineProperty(_this, "_intentBasedNavigation", _descriptor6, _assertThisInitialized(_this));
|
|
58
|
+
|
|
59
|
+
_initializerDefineProperty(_this, "pageReady", _descriptor7, _assertThisInitialized(_this));
|
|
60
|
+
|
|
61
|
+
_initializerDefineProperty(_this, "messageHandler", _descriptor8, _assertThisInitialized(_this));
|
|
62
|
+
|
|
63
|
+
_initializerDefineProperty(_this, "share", _descriptor9, _assertThisInitialized(_this));
|
|
64
|
+
|
|
65
|
+
_initializerDefineProperty(_this, "paginator", _descriptor10, _assertThisInitialized(_this));
|
|
66
|
+
|
|
67
|
+
_initializerDefineProperty(_this, "viewState", _descriptor11, _assertThisInitialized(_this));
|
|
68
|
+
|
|
69
|
+
_initializerDefineProperty(_this, "placeholder", _descriptor12, _assertThisInitialized(_this));
|
|
70
|
+
|
|
71
|
+
_initializerDefineProperty(_this, "_sideEffects", _descriptor13, _assertThisInitialized(_this));
|
|
72
|
+
|
|
73
|
+
_initializerDefineProperty(_this, "massEdit", _descriptor14, _assertThisInitialized(_this));
|
|
74
|
+
|
|
75
|
+
return _this;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
var _proto = PageController.prototype;
|
|
79
|
+
|
|
80
|
+
// @Public
|
|
81
|
+
// getView(): { getController(): PageController } & View {
|
|
82
|
+
// return super.getView() as any;
|
|
83
|
+
// }
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @private
|
|
87
|
+
* @name sap.fe.core.PageController.getMetadata
|
|
88
|
+
* @function
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @private
|
|
93
|
+
* @name sap.fe.core.PageController.extend
|
|
94
|
+
* @function
|
|
95
|
+
*/
|
|
96
|
+
_proto.onInit = function onInit() {
|
|
97
|
+
var oUIModel = this.getAppComponent().getModel("ui"),
|
|
98
|
+
oInternalModel = this.getAppComponent().getModel("internal"),
|
|
99
|
+
sPath = "/pages/" + this.getView().getId();
|
|
100
|
+
oUIModel.setProperty(sPath, {
|
|
101
|
+
controls: {}
|
|
102
|
+
});
|
|
103
|
+
oInternalModel.setProperty(sPath, {
|
|
104
|
+
controls: {},
|
|
105
|
+
collaboration: {}
|
|
106
|
+
});
|
|
107
|
+
this.getView().bindElement({
|
|
108
|
+
path: sPath,
|
|
109
|
+
model: "ui"
|
|
110
|
+
});
|
|
111
|
+
this.getView().bindElement({
|
|
112
|
+
path: sPath,
|
|
113
|
+
model: "internal"
|
|
114
|
+
}); // for the time being provide it also pageInternal as some macros access it - to be removed
|
|
115
|
+
|
|
116
|
+
this.getView().bindElement({
|
|
117
|
+
path: sPath,
|
|
118
|
+
model: "pageInternal"
|
|
119
|
+
});
|
|
120
|
+
this.getView().setModel(oInternalModel, "pageInternal"); // as the model propagation happens after init but we actually want to access the binding context in the
|
|
121
|
+
// init phase already setting the model here
|
|
122
|
+
|
|
123
|
+
this.getView().setModel(oUIModel, "ui");
|
|
124
|
+
this.getView().setModel(oInternalModel, "internal");
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
_proto.onBeforeRendering = function onBeforeRendering() {
|
|
128
|
+
if (this.placeholder.attachHideCallback) {
|
|
129
|
+
this.placeholder.attachHideCallback();
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
_proto.getExtensionAPI = function getExtensionAPI() {
|
|
134
|
+
if (!this.extensionAPI) {
|
|
135
|
+
this.extensionAPI = new ExtensionAPI(this);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
return this.extensionAPI;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
_proto.onPageReady = function onPageReady() {
|
|
142
|
+
// Apply app state only after the page is ready with the first section selected
|
|
143
|
+
this.getAppComponent().getAppStateHandler().applyAppState();
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
return PageController;
|
|
147
|
+
}(BaseController), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "routing", [_dec2], {
|
|
148
|
+
configurable: true,
|
|
149
|
+
enumerable: true,
|
|
150
|
+
writable: true,
|
|
151
|
+
initializer: null
|
|
152
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "_routing", [_dec3], {
|
|
153
|
+
configurable: true,
|
|
154
|
+
enumerable: true,
|
|
155
|
+
writable: true,
|
|
156
|
+
initializer: null
|
|
157
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "editFlow", [_dec4], {
|
|
158
|
+
configurable: true,
|
|
159
|
+
enumerable: true,
|
|
160
|
+
writable: true,
|
|
161
|
+
initializer: null
|
|
162
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "_editFlow", [_dec5], {
|
|
163
|
+
configurable: true,
|
|
164
|
+
enumerable: true,
|
|
165
|
+
writable: true,
|
|
166
|
+
initializer: null
|
|
167
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "intentBasedNavigation", [_dec6], {
|
|
168
|
+
configurable: true,
|
|
169
|
+
enumerable: true,
|
|
170
|
+
writable: true,
|
|
171
|
+
initializer: null
|
|
172
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "_intentBasedNavigation", [_dec7], {
|
|
173
|
+
configurable: true,
|
|
174
|
+
enumerable: true,
|
|
175
|
+
writable: true,
|
|
176
|
+
initializer: null
|
|
177
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "pageReady", [_dec8], {
|
|
178
|
+
configurable: true,
|
|
179
|
+
enumerable: true,
|
|
180
|
+
writable: true,
|
|
181
|
+
initializer: null
|
|
182
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "messageHandler", [_dec9], {
|
|
183
|
+
configurable: true,
|
|
184
|
+
enumerable: true,
|
|
185
|
+
writable: true,
|
|
186
|
+
initializer: null
|
|
187
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "share", [_dec10], {
|
|
188
|
+
configurable: true,
|
|
189
|
+
enumerable: true,
|
|
190
|
+
writable: true,
|
|
191
|
+
initializer: null
|
|
192
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "paginator", [_dec11], {
|
|
193
|
+
configurable: true,
|
|
194
|
+
enumerable: true,
|
|
195
|
+
writable: true,
|
|
196
|
+
initializer: null
|
|
197
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "viewState", [_dec12], {
|
|
198
|
+
configurable: true,
|
|
199
|
+
enumerable: true,
|
|
200
|
+
writable: true,
|
|
201
|
+
initializer: null
|
|
202
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "placeholder", [_dec13], {
|
|
203
|
+
configurable: true,
|
|
204
|
+
enumerable: true,
|
|
205
|
+
writable: true,
|
|
206
|
+
initializer: null
|
|
207
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "_sideEffects", [_dec14], {
|
|
208
|
+
configurable: true,
|
|
209
|
+
enumerable: true,
|
|
210
|
+
writable: true,
|
|
211
|
+
initializer: null
|
|
212
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "massEdit", [_dec15], {
|
|
213
|
+
configurable: true,
|
|
214
|
+
enumerable: true,
|
|
215
|
+
writable: true,
|
|
216
|
+
initializer: null
|
|
217
|
+
}), _applyDecoratedDescriptor(_class2.prototype, "onInit", [Public], Object.getOwnPropertyDescriptor(_class2.prototype, "onInit"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "onBeforeRendering", [Public], Object.getOwnPropertyDescriptor(_class2.prototype, "onBeforeRendering"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getExtensionAPI", [Public], Object.getOwnPropertyDescriptor(_class2.prototype, "getExtensionAPI"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "onPageReady", [Public], Object.getOwnPropertyDescriptor(_class2.prototype, "onPageReady"), _class2.prototype)), _class2)) || _class);
|
|
218
|
+
return PageController;
|
|
219
|
+
}, false);
|
|
220
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlBhZ2VDb250cm9sbGVyLnRzIl0sIm5hbWVzIjpbIlBhZ2VDb250cm9sbGVyIiwiVUk1Q2xhc3MiLCJDb250cm9sbGVyTWV0YWRhdGEiLCJVc2luZ0V4dGVuc2lvbiIsIlJvdXRpbmciLCJJbnRlcm5hbFJvdXRpbmciLCJFZGl0RmxvdyIsIkludGVybmFsRWRpdEZsb3ciLCJJbnRlbnRCYXNlZE5hdmlnYXRpb24iLCJJbnRlcm5hbEludGVudEJhc2VkTmF2aWdhdGlvbiIsIlBhZ2VSZWFkeSIsIk1lc3NhZ2VIYW5kbGVyIiwiU2hhcmUiLCJQYWdpbmF0b3IiLCJWaWV3U3RhdGUiLCJQbGFjZWhvbGRlciIsIlNpZGVFZmZlY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