@openui5/sap.ui.fl 1.113.0 → 1.115.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/.reuse/dep5 +0 -5
- package/THIRDPARTY.txt +1 -7
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/Cache.js +39 -21
- package/src/sap/ui/fl/ChangePersistence.js +14 -21
- package/src/sap/ui/fl/ChangePersistenceFactory.js +3 -55
- package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +1 -1
- package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +1 -1
- package/src/sap/ui/fl/FakeLrepLocalStorage.js +1 -1
- package/src/sap/ui/fl/FlexController.js +5 -22
- package/src/sap/ui/fl/FlexControllerFactory.js +7 -159
- package/src/sap/ui/fl/LayerUtils.js +1 -1
- package/src/sap/ui/fl/Utils.js +2 -11
- package/src/sap/ui/fl/apply/_internal/ChangesController.js +0 -2
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
- package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +2 -1
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +12 -7
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewInbound.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/RemoveAllInboundsExceptOne.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +1 -1
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +4 -12
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +19 -13
- package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +9 -3
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +42 -25
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +4 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +8 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/DataSelector.js +25 -27
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +106 -80
- package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +34 -15
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +4 -2
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +6 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +1 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +300 -386
- package/src/sap/ui/fl/apply/_internal/preprocessors/ComponentLifecycleHooks.js +219 -0
- package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +1 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/EventHistory.js +1 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +7 -9
- package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +1 -1
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +29 -9
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/fl/changeHandler/Base.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseRename.js +1 -1
- package/src/sap/ui/fl/changeHandler/HideControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/MoveControls.js +6 -1
- package/src/sap/ui/fl/changeHandler/MoveElements.js +1 -1
- package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +1 -1
- package/src/sap/ui/fl/changeHandler/PropertyChange.js +1 -1
- package/src/sap/ui/fl/changeHandler/StashControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UnhideControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UnstashControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +4 -4
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
- package/src/sap/ui/fl/initial/_internal/Storage.js +3 -1
- package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +3 -22
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +2 -3
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +40 -12
- package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +3 -1
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +1 -1
- package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +1 -1
- package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +1 -1
- package/src/sap/ui/fl/interfaces/Delegate.js +1 -1
- package/src/sap/ui/fl/library.js +43 -43
- package/src/sap/ui/fl/messagebundle.properties +6 -0
- package/src/sap/ui/fl/messagebundle_ar.properties +4 -0
- package/src/sap/ui/fl/messagebundle_bg.properties +6 -2
- package/src/sap/ui/fl/messagebundle_ca.properties +4 -0
- package/src/sap/ui/fl/messagebundle_cs.properties +4 -0
- package/src/sap/ui/fl/messagebundle_cy.properties +4 -0
- package/src/sap/ui/fl/messagebundle_da.properties +4 -0
- package/src/sap/ui/fl/messagebundle_de.properties +6 -2
- package/src/sap/ui/fl/messagebundle_el.properties +4 -0
- package/src/sap/ui/fl/messagebundle_en.properties +4 -0
- package/src/sap/ui/fl/messagebundle_en_GB.properties +4 -0
- package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +4 -0
- package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +4 -0
- package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +4 -0
- package/src/sap/ui/fl/messagebundle_es.properties +4 -0
- package/src/sap/ui/fl/messagebundle_es_MX.properties +4 -0
- package/src/sap/ui/fl/messagebundle_et.properties +4 -0
- package/src/sap/ui/fl/messagebundle_fi.properties +4 -0
- package/src/sap/ui/fl/messagebundle_fr.properties +4 -0
- package/src/sap/ui/fl/messagebundle_fr_CA.properties +4 -0
- package/src/sap/ui/fl/messagebundle_hi.properties +4 -0
- package/src/sap/ui/fl/messagebundle_hr.properties +4 -0
- package/src/sap/ui/fl/messagebundle_hu.properties +4 -0
- package/src/sap/ui/fl/messagebundle_id.properties +4 -0
- package/src/sap/ui/fl/messagebundle_it.properties +4 -0
- package/src/sap/ui/fl/messagebundle_iw.properties +4 -0
- package/src/sap/ui/fl/messagebundle_ja.properties +12 -8
- package/src/sap/ui/fl/messagebundle_kk.properties +4 -0
- package/src/sap/ui/fl/messagebundle_ko.properties +4 -0
- package/src/sap/ui/fl/messagebundle_lt.properties +4 -0
- package/src/sap/ui/fl/messagebundle_lv.properties +4 -0
- package/src/sap/ui/fl/messagebundle_ms.properties +4 -0
- package/src/sap/ui/fl/messagebundle_nl.properties +4 -0
- package/src/sap/ui/fl/messagebundle_no.properties +4 -0
- package/src/sap/ui/fl/messagebundle_pl.properties +4 -0
- package/src/sap/ui/fl/messagebundle_pt.properties +4 -0
- package/src/sap/ui/fl/messagebundle_pt_PT.properties +4 -0
- package/src/sap/ui/fl/messagebundle_ro.properties +4 -0
- package/src/sap/ui/fl/messagebundle_ru.properties +4 -0
- package/src/sap/ui/fl/messagebundle_sh.properties +4 -0
- package/src/sap/ui/fl/messagebundle_sk.properties +4 -0
- package/src/sap/ui/fl/messagebundle_sl.properties +4 -0
- package/src/sap/ui/fl/messagebundle_sv.properties +4 -0
- package/src/sap/ui/fl/messagebundle_th.properties +5 -1
- package/src/sap/ui/fl/messagebundle_tr.properties +4 -0
- package/src/sap/ui/fl/messagebundle_uk.properties +4 -0
- package/src/sap/ui/fl/messagebundle_vi.properties +4 -0
- package/src/sap/ui/fl/messagebundle_zh_CN.properties +4 -0
- package/src/sap/ui/fl/messagebundle_zh_TW.properties +4 -0
- package/src/sap/ui/fl/registry/Settings.js +10 -0
- package/src/sap/ui/fl/support/_internal/extractChangeDependencies.js +1 -1
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +1 -1
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +1 -1
- package/src/sap/ui/fl/support/api/SupportAPI.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/IFrame.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
- package/src/sap/ui/fl/util/resolveBinding.js +1 -1
- package/src/sap/ui/fl/variants/VariantModel.js +124 -338
- package/src/sap/ui/fl/variants/context/Component.js +11 -0
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +4 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n.properties +2 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_ar.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_bg.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_ca.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_cs.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_cy.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_da.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_de.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_el.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_en.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_en_GB.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_sappsd.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_saprigi.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_saptrc.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_es.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_es_MX.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_et.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_fi.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_fr.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_fr_CA.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_hi.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_hr.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_hu.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_id.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_it.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_iw.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_ja.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_kk.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_ko.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_lt.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_lv.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_ms.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_nl.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_no.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_pl.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_pt.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_pt_PT.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_ro.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_ru.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_sh.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_sk.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_sl.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_sv.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_th.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_tr.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_uk.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_vi.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_zh_CN.properties +1 -0
- package/src/sap/ui/fl/variants/context/i18n/i18n_zh_TW.properties +1 -0
- package/src/sap/ui/fl/variants/context/view/ContextVisibility.view.xml +1 -1
- package/src/sap/ui/fl/write/_internal/Storage.js +23 -2
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
- package/src/sap/ui/fl/write/_internal/Versions.js +135 -111
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +23 -1
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +35 -8
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +17 -2
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Destroy.js +8 -5
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +6 -0
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +34 -4
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +17 -5
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/Utils.js +1 -1
- package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +21 -13
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +16 -11
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -1
- package/src/sap/ui/fl/write/api/Adaptations.js +23 -0
- package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +16 -2
- package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +349 -50
- package/src/sap/ui/fl/write/api/ContextSharingAPI.js +7 -1
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +1 -23
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +5 -5
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +4 -3
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +10 -0
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +28 -0
- package/src/sap/ui/fl/write/api/TranslationAPI.js +1 -1
- package/src/sap/ui/fl/write/api/VersionsAPI.js +77 -14
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +6 -0
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +0 -356
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +0 -115
package/.reuse/dep5
CHANGED
|
@@ -192,11 +192,6 @@ Copyright: 2012 Matteo Spinelli
|
|
|
192
192
|
License: MIT
|
|
193
193
|
Comment: these files belong to: cubiq.org - swipeview
|
|
194
194
|
|
|
195
|
-
Files: src/sap.ui.core/src/sap/ui/thirdparty/mobify-carousel.js
|
|
196
|
-
Copyright: Mobify R&D Inc.
|
|
197
|
-
License: MIT
|
|
198
|
-
Comment: these files belong to: Mobify.js
|
|
199
|
-
|
|
200
195
|
Files: src/sap.ui.core/src/sap/ui/thirdparty/zyngascroll.js
|
|
201
196
|
Copyright: 2011 Zynga Inc.
|
|
202
197
|
License: MIT
|
package/THIRDPARTY.txt
CHANGED
|
@@ -143,12 +143,6 @@ License: MIT
|
|
|
143
143
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
144
144
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/swipe-view.js
|
|
145
145
|
|
|
146
|
-
Component: Mobify.js, version: 1.1
|
|
147
|
-
Copyright: Mobify R&D Inc.
|
|
148
|
-
License: MIT
|
|
149
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
150
|
-
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/mobify-carousel.js
|
|
151
|
-
|
|
152
146
|
Component: Zynga Scroller, version: 1.2.1-0-g5d43806
|
|
153
147
|
Copyright: 2011 Zynga Inc.
|
|
154
148
|
License: MIT
|
|
@@ -478,7 +472,7 @@ License: Apache-2.0
|
|
|
478
472
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
479
473
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
480
474
|
|
|
481
|
-
Component: SAP Theming Base Content, version: 11.
|
|
475
|
+
Component: SAP Theming Base Content, version: 11.3.0
|
|
482
476
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
483
477
|
License: Apache-2.0
|
|
484
478
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.fl",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.115.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.fl",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
17
|
+
"@openui5/sap.m": "1.115.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.115.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/src/sap/ui/fl/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.115.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with sap.ui.fl controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/fl/Cache.js
CHANGED
|
@@ -5,14 +5,16 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/base/util/ObjectPath",
|
|
9
|
+
"sap/base/Log",
|
|
8
10
|
"sap/ui/fl/apply/_internal/flexState/FlexState",
|
|
9
|
-
"sap/ui/fl/apply/api/ControlVariantApplyAPI"
|
|
10
|
-
"sap/base/Log"
|
|
11
|
+
"sap/ui/fl/apply/api/ControlVariantApplyAPI"
|
|
11
12
|
],
|
|
12
13
|
function(
|
|
14
|
+
ObjectPath,
|
|
15
|
+
Log,
|
|
13
16
|
FlexState,
|
|
14
|
-
ControlVariantApplyAPI
|
|
15
|
-
Log
|
|
17
|
+
ControlVariantApplyAPI
|
|
16
18
|
) {
|
|
17
19
|
"use strict";
|
|
18
20
|
|
|
@@ -24,24 +26,41 @@ function(
|
|
|
24
26
|
* @alias sap.ui.fl.Cache
|
|
25
27
|
* @experimental Since 1.25.0
|
|
26
28
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
29
|
+
* @version 1.115.0
|
|
28
30
|
*
|
|
29
31
|
* @private
|
|
30
32
|
* @ui5-restricted sap.ui.fl
|
|
31
33
|
*/
|
|
32
34
|
var Cache = function() {};
|
|
33
35
|
|
|
36
|
+
function getChangeCategory(oChangeDefinition) {
|
|
37
|
+
switch (oChangeDefinition.fileType) {
|
|
38
|
+
case "change":
|
|
39
|
+
if (oChangeDefinition.selector && oChangeDefinition.selector.persistencyKey) {
|
|
40
|
+
return ["comp", "changes"];
|
|
41
|
+
}
|
|
42
|
+
if (oChangeDefinition.variantReference) {
|
|
43
|
+
return "variantDependentControlChanges";
|
|
44
|
+
}
|
|
45
|
+
return "changes";
|
|
46
|
+
case "ctrl_variant":
|
|
47
|
+
return "variants";
|
|
48
|
+
case "ctrl_variant_change":
|
|
49
|
+
return "variantChanges";
|
|
50
|
+
case "ctrl_variant_management_change":
|
|
51
|
+
return "variantManagementChanges";
|
|
52
|
+
case "variant":
|
|
53
|
+
return ["comp", "variants"];
|
|
54
|
+
default:
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
34
59
|
function _getArray(sComponentName, oChange) {
|
|
35
60
|
// FIXME Don't mutate the storage response
|
|
36
61
|
var mStorageResponse = FlexState.getFlexObjectsFromStorageResponse(sComponentName);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return mStorageResponse.comp.variants;
|
|
40
|
-
}
|
|
41
|
-
if (oChange.selector && oChange.selector.persistencyKey) {
|
|
42
|
-
return mStorageResponse.comp.changes;
|
|
43
|
-
}
|
|
44
|
-
return mStorageResponse.changes;
|
|
62
|
+
var vPath = getChangeCategory(oChange);
|
|
63
|
+
return ObjectPath.get(vPath, mStorageResponse);
|
|
45
64
|
}
|
|
46
65
|
|
|
47
66
|
function _concatControlVariantIdWithCacheKey(sCacheKey, sControlVariantIds) {
|
|
@@ -156,6 +175,8 @@ function(
|
|
|
156
175
|
return;
|
|
157
176
|
}
|
|
158
177
|
aChanges.push(oChange);
|
|
178
|
+
|
|
179
|
+
FlexState.getFlexObjectsDataSelector().checkUpdate({ reference: oComponent.name });
|
|
159
180
|
};
|
|
160
181
|
|
|
161
182
|
/**
|
|
@@ -178,6 +199,8 @@ function(
|
|
|
178
199
|
break;
|
|
179
200
|
}
|
|
180
201
|
}
|
|
202
|
+
|
|
203
|
+
FlexState.getFlexObjectsDataSelector().checkUpdate({ reference: oComponent.name });
|
|
181
204
|
};
|
|
182
205
|
|
|
183
206
|
/**
|
|
@@ -200,6 +223,8 @@ function(
|
|
|
200
223
|
break;
|
|
201
224
|
}
|
|
202
225
|
}
|
|
226
|
+
|
|
227
|
+
FlexState.getFlexObjectsDataSelector().checkUpdate({ reference: oComponent.name });
|
|
203
228
|
};
|
|
204
229
|
|
|
205
230
|
/**
|
|
@@ -220,14 +245,7 @@ function(
|
|
|
220
245
|
return aChangeNames.indexOf(oChange.fileName) === -1;
|
|
221
246
|
});
|
|
222
247
|
|
|
223
|
-
|
|
224
|
-
Object.keys(oVariantsState).forEach(function(sId) {
|
|
225
|
-
oVariantsState[sId].variants.forEach(function(oVariant) {
|
|
226
|
-
oVariant.controlChanges = oVariant.controlChanges.filter(function(oChange) {
|
|
227
|
-
return aChangeNames.indexOf(oChange.getId()) === -1;
|
|
228
|
-
});
|
|
229
|
-
});
|
|
230
|
-
});
|
|
248
|
+
FlexState.getFlexObjectsDataSelector().checkUpdate({ reference: oComponent.name });
|
|
231
249
|
};
|
|
232
250
|
|
|
233
251
|
return Cache;
|
|
@@ -66,7 +66,7 @@ sap.ui.define([
|
|
|
66
66
|
*
|
|
67
67
|
* @constructor
|
|
68
68
|
* @author SAP SE
|
|
69
|
-
* @version 1.
|
|
69
|
+
* @version 1.115.0
|
|
70
70
|
* @experimental Since 1.25.0
|
|
71
71
|
* @param {object} mComponent - Component data to initiate <code>ChangePersistence</code> instance
|
|
72
72
|
* @param {string} mComponent.name - Name of the component this instance is responsible for
|
|
@@ -777,26 +777,19 @@ sap.ui.define([
|
|
|
777
777
|
});
|
|
778
778
|
|
|
779
779
|
if (!bSkipUpdateCache) {
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
break;
|
|
794
|
-
case States.LifecycleState.DIRTY:
|
|
795
|
-
oDirtyChange.setState(States.LifecycleState.PERSISTED);
|
|
796
|
-
Cache.updateChange(this._mComponent, oDirtyChange.convertToFileContent());
|
|
797
|
-
break;
|
|
798
|
-
default:
|
|
799
|
-
}
|
|
780
|
+
switch (oDirtyChange.getState()) {
|
|
781
|
+
case States.LifecycleState.NEW:
|
|
782
|
+
oDirtyChange.setState(States.LifecycleState.PERSISTED);
|
|
783
|
+
Cache.addChange(this._mComponent, oDirtyChange.convertToFileContent());
|
|
784
|
+
break;
|
|
785
|
+
case States.LifecycleState.DELETED:
|
|
786
|
+
Cache.deleteChange(this._mComponent, oDirtyChange.convertToFileContent());
|
|
787
|
+
break;
|
|
788
|
+
case States.LifecycleState.DIRTY:
|
|
789
|
+
oDirtyChange.setState(States.LifecycleState.PERSISTED);
|
|
790
|
+
Cache.updateChange(this._mComponent, oDirtyChange.convertToFileContent());
|
|
791
|
+
break;
|
|
792
|
+
default:
|
|
800
793
|
}
|
|
801
794
|
}
|
|
802
795
|
};
|
|
@@ -5,37 +5,25 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/core/Component",
|
|
9
|
-
"sap/ui/fl/apply/_internal/flexState/FlexState",
|
|
10
8
|
"sap/ui/fl/apply/_internal/flexState/ManifestUtils",
|
|
11
|
-
"sap/ui/fl/ChangePersistence"
|
|
12
|
-
"sap/ui/fl/Utils",
|
|
13
|
-
"sap/ui/fl/apply/_internal/changes/descriptor/ApplyStrategyFactory",
|
|
14
|
-
"sap/ui/fl/apply/_internal/changes/descriptor/Applier"
|
|
9
|
+
"sap/ui/fl/ChangePersistence"
|
|
15
10
|
], function(
|
|
16
|
-
Component,
|
|
17
|
-
FlexState,
|
|
18
11
|
ManifestUtils,
|
|
19
|
-
ChangePersistence
|
|
20
|
-
Utils,
|
|
21
|
-
ApplyStrategyFactory,
|
|
22
|
-
Applier
|
|
12
|
+
ChangePersistence
|
|
23
13
|
) {
|
|
24
14
|
"use strict";
|
|
25
15
|
|
|
26
|
-
|
|
27
16
|
/**
|
|
28
17
|
* Factory to get or create a new instances of {sap.ui.fl.ChangePersistence}
|
|
29
18
|
* @constructor
|
|
30
19
|
* @alias sap.ui.fl.ChangePersistenceFactory
|
|
31
20
|
* @experimental Since 1.27.0
|
|
32
21
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
22
|
+
* @version 1.115.0
|
|
34
23
|
* @private
|
|
35
24
|
* @ui5-restricted sap.ui.fl
|
|
36
25
|
*/
|
|
37
26
|
var ChangePersistenceFactory = {};
|
|
38
|
-
|
|
39
27
|
ChangePersistenceFactory._instanceCache = {};
|
|
40
28
|
|
|
41
29
|
/**
|
|
@@ -68,45 +56,5 @@ sap.ui.define([
|
|
|
68
56
|
return ChangePersistenceFactory.getChangePersistenceForComponent(sComponentId);
|
|
69
57
|
};
|
|
70
58
|
|
|
71
|
-
/**
|
|
72
|
-
* Registers the ChangePersistenceFactory._onLoadComponent to the Component loading functionality
|
|
73
|
-
*
|
|
74
|
-
* @since 1.38
|
|
75
|
-
* @private
|
|
76
|
-
*/
|
|
77
|
-
ChangePersistenceFactory.registerLoadComponentEventHandler = function () {
|
|
78
|
-
Component._fnLoadComponentCallback = this._onLoadComponent.bind(this);
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Callback which is called within the early state of Component processing.
|
|
83
|
-
* Already triggers the loading of the flexibility changes if the loaded manifest is an application variant.
|
|
84
|
-
* The processing is only done for components of the type "application"
|
|
85
|
-
*
|
|
86
|
-
* @param {object} oConfig - Copy of the configuration of loaded component
|
|
87
|
-
* @param {object} oConfig.asyncHints - Async hints passed from the app index to the core Component processing
|
|
88
|
-
* @param {object} oManifest - Copy of the manifest of loaded component
|
|
89
|
-
* @returns {Promise} Promise
|
|
90
|
-
* @since 1.38
|
|
91
|
-
* @private
|
|
92
|
-
*/
|
|
93
|
-
ChangePersistenceFactory._onLoadComponent = function (oConfig, oManifest) {
|
|
94
|
-
// stop processing if the component is not of the type application or component ID is missing
|
|
95
|
-
if (!Utils.isApplication(oManifest) || !oConfig.id) {
|
|
96
|
-
return Promise.resolve();
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
FlexState.initialize({
|
|
100
|
-
componentData: oConfig.componentData || (oConfig.settings && oConfig.settings.componentData),
|
|
101
|
-
asyncHints: oConfig.asyncHints,
|
|
102
|
-
manifest: oManifest,
|
|
103
|
-
componentId: oConfig.id
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
// manifest descriptor changes for ABAP mixed mode can only be applied in this hook,
|
|
107
|
-
// because at this point all libs have been loaded (in contrast to the first Component._fnPreprocessManifest hook), but the manifest is still adaptable
|
|
108
|
-
return Applier.applyChangesIncludedInManifest(oManifest, ApplyStrategyFactory.getRuntimeStrategy());
|
|
109
|
-
};
|
|
110
|
-
|
|
111
59
|
return ChangePersistenceFactory;
|
|
112
60
|
}, true);
|
|
@@ -41,7 +41,7 @@ sap.ui.define([
|
|
|
41
41
|
|
|
42
42
|
function revertChangesAndUpdateVariantModel(oComponent, bSkipUrlUpdate, aChanges) {
|
|
43
43
|
return Promise.resolve()
|
|
44
|
-
.then(function
|
|
44
|
+
.then(function() {
|
|
45
45
|
if (aChanges.length !== 0) {
|
|
46
46
|
// Always revert changes in reverse order
|
|
47
47
|
aChanges.reverse();
|
|
@@ -52,17 +52,10 @@ sap.ui.define([
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
}.bind(this))
|
|
55
|
-
.then(function
|
|
55
|
+
.then(function() {
|
|
56
56
|
if (oComponent) {
|
|
57
57
|
var oModel = oComponent.getModel(ControlVariantApplyAPI.getVariantModelName());
|
|
58
58
|
if (oModel) {
|
|
59
|
-
aChanges.forEach(function (oChange) {
|
|
60
|
-
var sVariantReference = oChange.getVariantReference();
|
|
61
|
-
if (sVariantReference) {
|
|
62
|
-
oModel.removeChange(oChange);
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
|
|
66
59
|
// Temporary fix, parameters generally should not be removed
|
|
67
60
|
if (!bSkipUrlUpdate) {
|
|
68
61
|
URLHandler.update({
|
|
@@ -88,7 +81,7 @@ sap.ui.define([
|
|
|
88
81
|
* @alias sap.ui.fl.FlexController
|
|
89
82
|
* @experimental Since 1.27.0
|
|
90
83
|
* @author SAP SE
|
|
91
|
-
* @version 1.
|
|
84
|
+
* @version 1.115.0
|
|
92
85
|
*/
|
|
93
86
|
var FlexController = function(sComponentName) {
|
|
94
87
|
this._oChangePersistence = undefined;
|
|
@@ -292,14 +285,7 @@ sap.ui.define([
|
|
|
292
285
|
* @public
|
|
293
286
|
*/
|
|
294
287
|
FlexController.prototype.addPreparedChange = function(oChange, oAppComponent) {
|
|
295
|
-
if (oChange.getVariantReference()) {
|
|
296
|
-
// variant model is always associated with the app component
|
|
297
|
-
var oModel = oAppComponent.getModel(ControlVariantApplyAPI.getVariantModelName());
|
|
298
|
-
oModel.addChange(oChange);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
288
|
this._oChangePersistence.addChange(oChange, oAppComponent);
|
|
302
|
-
|
|
303
289
|
return oChange;
|
|
304
290
|
};
|
|
305
291
|
|
|
@@ -316,11 +302,8 @@ sap.ui.define([
|
|
|
316
302
|
* @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oChange - the change to be deleted
|
|
317
303
|
* @param {sap.ui.core.Component} oAppComponent - Application component instance
|
|
318
304
|
*/
|
|
319
|
-
FlexController.prototype.deleteChange = function(oChange
|
|
305
|
+
FlexController.prototype.deleteChange = function(oChange) {
|
|
320
306
|
this._oChangePersistence.deleteChange(oChange);
|
|
321
|
-
if (oChange.getVariantReference()) {
|
|
322
|
-
oAppComponent.getModel(ControlVariantApplyAPI.getVariantModelName()).removeChange(oChange);
|
|
323
|
-
}
|
|
324
307
|
};
|
|
325
308
|
|
|
326
309
|
/**
|
|
@@ -472,7 +455,7 @@ sap.ui.define([
|
|
|
472
455
|
var aDraftFilenames;
|
|
473
456
|
if (bDraft) {
|
|
474
457
|
var oVersionModel = Versions.getVersionsModel({
|
|
475
|
-
reference:
|
|
458
|
+
reference: this._sComponentName,
|
|
476
459
|
layer: Layer.CUSTOMER // only the customer layer has draft active
|
|
477
460
|
});
|
|
478
461
|
sParentVersion = oVersionModel.getProperty("/persistedVersion");
|
|
@@ -5,27 +5,15 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/fl/FlexController",
|
|
9
|
-
"sap/ui/fl/Utils",
|
|
10
|
-
"sap/ui/fl/Layer",
|
|
11
|
-
"sap/ui/fl/apply/_internal/changes/Applier",
|
|
12
|
-
"sap/ui/fl/apply/_internal/flexState/FlexState",
|
|
13
|
-
"sap/ui/fl/apply/_internal/flexState/ManifestUtils",
|
|
14
|
-
"sap/ui/fl/apply/api/ControlVariantApplyAPI",
|
|
15
|
-
"sap/ui/fl/variants/VariantModel",
|
|
16
8
|
"sap/base/Log",
|
|
17
|
-
"sap/ui/
|
|
9
|
+
"sap/ui/fl/apply/_internal/flexState/ManifestUtils",
|
|
10
|
+
"sap/ui/fl/FlexController",
|
|
11
|
+
"sap/ui/fl/Utils"
|
|
18
12
|
], function(
|
|
19
|
-
FlexController,
|
|
20
|
-
Utils,
|
|
21
|
-
Layer,
|
|
22
|
-
Applier,
|
|
23
|
-
FlexState,
|
|
24
|
-
ManifestUtils,
|
|
25
|
-
ControlVariantApplyAPI,
|
|
26
|
-
VariantModel,
|
|
27
13
|
Log,
|
|
28
|
-
|
|
14
|
+
ManifestUtils,
|
|
15
|
+
FlexController,
|
|
16
|
+
Utils
|
|
29
17
|
) {
|
|
30
18
|
"use strict";
|
|
31
19
|
/**
|
|
@@ -34,20 +22,14 @@ sap.ui.define([
|
|
|
34
22
|
* @alias sap.ui.fl.FlexControllerFactory
|
|
35
23
|
* @experimental Since 1.27.0
|
|
36
24
|
* @author SAP SE
|
|
37
|
-
* @version 1.
|
|
25
|
+
* @version 1.115.0
|
|
38
26
|
*
|
|
39
27
|
* @private
|
|
40
28
|
* @ui5-restricted sap.ui.fl
|
|
41
29
|
*/
|
|
42
30
|
var FlexControllerFactory = {};
|
|
43
|
-
|
|
44
31
|
FlexControllerFactory._instanceCache = {};
|
|
45
32
|
|
|
46
|
-
// in this object a promise is stored for every application component instance
|
|
47
|
-
// if the same instance is initialized twice the promise is replaced
|
|
48
|
-
FlexControllerFactory._componentInstantiationPromises = new WeakMap();
|
|
49
|
-
var oEmbeddedComponentsPromises = {};
|
|
50
|
-
|
|
51
33
|
/**
|
|
52
34
|
* Creates or returns an instance of the FlexController
|
|
53
35
|
*
|
|
@@ -85,139 +67,5 @@ sap.ui.define([
|
|
|
85
67
|
}
|
|
86
68
|
};
|
|
87
69
|
|
|
88
|
-
/**
|
|
89
|
-
* The fl library must ensure a proper rta startup by a lazy loading of the rta library and starting RTA accordingly.
|
|
90
|
-
* This is needed in the stand alone scenario; ATTENTION: if also the ushell-plugin of rta runs, the first one will
|
|
91
|
-
* actually trigger the reload and clear the flag for the second.
|
|
92
|
-
*
|
|
93
|
-
* @param {object} oResult - The result which will be passed after the rta startup was checked and triggered if needed
|
|
94
|
-
* @param {object} oComponent - Application component about to be started
|
|
95
|
-
* @return {Promise} Promise resolving with the initially passed result
|
|
96
|
-
*/
|
|
97
|
-
function checkForRtaStartOnDraftAndReturnResult(oResult, oComponent) {
|
|
98
|
-
// Dont check for RTA start in ushell scenario
|
|
99
|
-
if (Utils.getUshellContainer()) {
|
|
100
|
-
return Promise.resolve(oResult);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
var sRestartingComponent = window.sessionStorage.getItem("sap.ui.rta.restart." + Layer.CUSTOMER);
|
|
104
|
-
if (sRestartingComponent) {
|
|
105
|
-
var sComponentId = ManifestUtils.getFlexReferenceForControl(oComponent);
|
|
106
|
-
if (sRestartingComponent !== sComponentId && sRestartingComponent !== "true") {
|
|
107
|
-
Log.error("an application component was started " +
|
|
108
|
-
"which does not match the component for which the restart was triggered:\n" +
|
|
109
|
-
"Triggering component: " + sRestartingComponent + "\n" +
|
|
110
|
-
"Started component: " + sComponentId);
|
|
111
|
-
|
|
112
|
-
return Promise.resolve(oResult);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
return new Promise(function (resolve, reject) {
|
|
116
|
-
Promise.all([
|
|
117
|
-
sap.ui.getCore().loadLibrary("sap.ui.rta", {async: true}),
|
|
118
|
-
oComponent.rootControlLoaded()
|
|
119
|
-
])
|
|
120
|
-
.then(function() {
|
|
121
|
-
sap.ui.require(["sap/ui/rta/api/startKeyUserAdaptation"], function (startKeyUserAdaptation) {
|
|
122
|
-
startKeyUserAdaptation({
|
|
123
|
-
rootControl: oComponent
|
|
124
|
-
});
|
|
125
|
-
resolve(oResult);
|
|
126
|
-
});
|
|
127
|
-
})
|
|
128
|
-
.catch(function(oError) {
|
|
129
|
-
reject(oError);
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
return Promise.resolve(oResult);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Gets the changes and in case of existing changes, prepare the applyChanges function already with the changes.
|
|
139
|
-
*
|
|
140
|
-
* @param {object} oComponent - Component instance that is currently loading
|
|
141
|
-
* @param {object} vConfig - Configuration of loaded component
|
|
142
|
-
* @return {Promise} Promise which resolves when all relevant tasks for changes propagation have been processed
|
|
143
|
-
*/
|
|
144
|
-
FlexControllerFactory.getChangesAndPropagate = function (oComponent, vConfig) {
|
|
145
|
-
// if component's manifest is of type 'application' then only a flex controller and change persistence instances are created.
|
|
146
|
-
// if component's manifest is of type 'component' then no flex controller and change persistence instances are created. The variant model is fetched from the outer app component and applied on this component type.
|
|
147
|
-
if (Utils.isApplicationComponent(oComponent)) {
|
|
148
|
-
var sComponentId = oComponent.getId();
|
|
149
|
-
// TODO: remove this line when the maps and filtered response are always up to data
|
|
150
|
-
// Currently with the variants the maps are out of sync when the app gets loaded again without complete reload
|
|
151
|
-
FlexState.rebuildFilteredResponse(ManifestUtils.getFlexReferenceForControl(oComponent));
|
|
152
|
-
var oReturnPromise = FlexState.initialize({
|
|
153
|
-
componentId: sComponentId,
|
|
154
|
-
asyncHints: vConfig.asyncHints
|
|
155
|
-
})
|
|
156
|
-
.then(_propagateChangesForAppComponent.bind(this, oComponent))
|
|
157
|
-
.then(function() {
|
|
158
|
-
// update any potential embedded component waiting for this app component
|
|
159
|
-
if (oEmbeddedComponentsPromises[sComponentId]) {
|
|
160
|
-
oEmbeddedComponentsPromises[sComponentId].forEach(function(oEmbeddedComponent) {
|
|
161
|
-
var oVariantModel = oComponent.getModel(ControlVariantApplyAPI.getVariantModelName());
|
|
162
|
-
oEmbeddedComponent.setModel(oVariantModel, ControlVariantApplyAPI.getVariantModelName());
|
|
163
|
-
});
|
|
164
|
-
delete oEmbeddedComponentsPromises[sComponentId];
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
FlexControllerFactory._componentInstantiationPromises.set(oComponent, oReturnPromise);
|
|
168
|
-
|
|
169
|
-
return oReturnPromise;
|
|
170
|
-
} else if (Utils.isEmbeddedComponent(oComponent)) {
|
|
171
|
-
var oAppComponent = Utils.getAppComponentForControl(oComponent);
|
|
172
|
-
// Some embedded components might not have an app component, e.g. sap.ushell.plugins.rta, sap.ushell.plugins.rta-personalize
|
|
173
|
-
if (oAppComponent && Utils.isApplicationComponent(oAppComponent)) {
|
|
174
|
-
// once the VModel is set to the outer component it also has to be set to any embedded component
|
|
175
|
-
if (FlexControllerFactory._componentInstantiationPromises.has(oAppComponent)) {
|
|
176
|
-
return FlexControllerFactory._componentInstantiationPromises.get(oAppComponent).then(function() {
|
|
177
|
-
var oVariantModel = oAppComponent.getModel(ControlVariantApplyAPI.getVariantModelName());
|
|
178
|
-
oComponent.setModel(oVariantModel, ControlVariantApplyAPI.getVariantModelName());
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
oEmbeddedComponentsPromises[oAppComponent.getId()] = oEmbeddedComponentsPromises[oAppComponent.getId()] || [];
|
|
182
|
-
oEmbeddedComponentsPromises[oAppComponent.getId()].push(oComponent);
|
|
183
|
-
}
|
|
184
|
-
return Promise.resolve();
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Sets propagation changes and listeners on the passed app component.
|
|
190
|
-
* Also creates a variant model on this app component.
|
|
191
|
-
* @see sap.ui.fl.variant.VariantModel
|
|
192
|
-
*
|
|
193
|
-
* @param {sap.ui.core.Component} oAppComponent - App component instance
|
|
194
|
-
* @return {Promise} Promise which resolves to the created variant model,
|
|
195
|
-
* after all propagation changes and listeners have been set.
|
|
196
|
-
*/
|
|
197
|
-
function _propagateChangesForAppComponent (oAppComponent) {
|
|
198
|
-
// only manifest with type = "application" will fetch changes
|
|
199
|
-
var oManifest = oAppComponent.getManifestObject();
|
|
200
|
-
var oFlexController = FlexControllerFactory.createForControl(oAppComponent, oManifest);
|
|
201
|
-
var oVariantModel;
|
|
202
|
-
return oFlexController._oChangePersistence.loadChangesMapForComponent(oAppComponent)
|
|
203
|
-
.then(function (fnGetChangesMap) {
|
|
204
|
-
var fnPropagationListener = Applier.applyAllChangesForControl.bind(Applier, fnGetChangesMap, oAppComponent, oFlexController);
|
|
205
|
-
fnPropagationListener._bIsSapUiFlFlexControllerApplyChangesOnControl = true;
|
|
206
|
-
oAppComponent.addPropagationListener(fnPropagationListener);
|
|
207
|
-
oVariantModel = new VariantModel({}, {
|
|
208
|
-
flexController: oFlexController,
|
|
209
|
-
appComponent: oAppComponent
|
|
210
|
-
});
|
|
211
|
-
return oVariantModel.initialize();
|
|
212
|
-
})
|
|
213
|
-
.then(function() {
|
|
214
|
-
oAppComponent.setModel(oVariantModel, ControlVariantApplyAPI.getVariantModelName());
|
|
215
|
-
Measurement.end("flexProcessing");
|
|
216
|
-
return oVariantModel;
|
|
217
|
-
}).then(function (oResult) {
|
|
218
|
-
return checkForRtaStartOnDraftAndReturnResult(oResult, oAppComponent);
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
|
|
222
70
|
return FlexControllerFactory;
|
|
223
71
|
}, true);
|
package/src/sap/ui/fl/Utils.js
CHANGED
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
* @namespace
|
|
68
68
|
* @alias sap.ui.fl.Utils
|
|
69
69
|
* @author SAP SE
|
|
70
|
-
* @version 1.
|
|
70
|
+
* @version 1.115.0
|
|
71
71
|
*
|
|
72
72
|
* @private
|
|
73
73
|
* @ui5-restricted sap.ui.fl, sap.ui.rta
|
|
@@ -702,15 +702,6 @@ sap.ui.define([
|
|
|
702
702
|
return oResult;
|
|
703
703
|
},
|
|
704
704
|
|
|
705
|
-
/**
|
|
706
|
-
* Normalize reference, delete .Component at the end of the incoming string.
|
|
707
|
-
* @param {string} sReference - Flex reference
|
|
708
|
-
* @returns {string} Returns reference without .Component
|
|
709
|
-
*/
|
|
710
|
-
normalizeReference: function(sReference) {
|
|
711
|
-
return sReference.replace(/(.Component)$/g, "");
|
|
712
|
-
},
|
|
713
|
-
|
|
714
705
|
/**
|
|
715
706
|
* Standalone: Adds the given search parameter to the URL or removes it.
|
|
716
707
|
*
|
|
@@ -730,7 +721,7 @@ sap.ui.define([
|
|
|
730
721
|
});
|
|
731
722
|
sParameters = "";
|
|
732
723
|
if (aFilterUrl.length > 0) {
|
|
733
|
-
sParameters = "?" + aFilterUrl.
|
|
724
|
+
sParameters = "?" + aFilterUrl.join("&");
|
|
734
725
|
}
|
|
735
726
|
} else {
|
|
736
727
|
sParameters += (sParameters.length > 0 ? '&' : '?') + sParameterName + "=" + sParameterValue;
|