@openui5/sap.ui.fl 1.131.1 → 1.132.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/.eslintrc.json +1 -2
- package/THIRDPARTY.txt +1 -1
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +2 -2
- package/src/sap/ui/fl/ChangePersistence.js +11 -5
- package/src/sap/ui/fl/ChangePersistenceFactory.js +2 -2
- package/src/sap/ui/fl/FakeLrepConnector.js +1 -1
- package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +2 -2
- package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +2 -2
- package/src/sap/ui/fl/FakeLrepLocalStorage.js +2 -2
- package/src/sap/ui/fl/FlexController.js +3 -2
- package/src/sap/ui/fl/FlexControllerFactory.js +2 -2
- package/src/sap/ui/fl/Layer.js +1 -1
- package/src/sap/ui/fl/LayerUtils.js +2 -2
- package/src/sap/ui/fl/Scenario.js +1 -1
- package/src/sap/ui/fl/Utils.js +2 -2
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +2 -2
- package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Applier.js +13 -3
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +7 -2
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +49 -23
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +20 -21
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyStrategyFactory.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyUtil.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewDataSource.js +4 -4
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewInbound.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewOutbound.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddTechnicalAttributes.js +3 -3
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeOutbound.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/RemoveAllInboundsExceptOne.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetAch.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetDescription.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +16 -4
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetCloudDevAdaptationStatus.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/ChangeModel.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +2 -2
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageConnector.js +1 -1
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +2 -2
- package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +1 -1
- package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +2 -2
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Registry.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/AnnotationChange.js +17 -10
- package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +16 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +21 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +19 -3
- package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/States.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +21 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/UpdatableChange.js +5 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +7 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/getVariantAuthor.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/DataSelector.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexObjectState.js +10 -4
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +14 -8
- package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +21 -16
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/changes/UIChangesState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/communication/FLPAboutInfo.js +140 -0
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantManagementState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +3 -3
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/Utils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/preprocessors/ComponentLifecycleHooks.js +60 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +2 -2
- package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +20 -3
- package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +2 -2
- package/src/sap/ui/fl/apply/api/AnnotationChangeHandlerAPI.js +11 -9
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/ExtensionPointRegistryAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +23 -1
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/UI2PersonalizationApplyAPI.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +2 -2
- package/src/sap/ui/fl/changeHandler/AddXML.js +2 -2
- package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +2 -2
- package/src/sap/ui/fl/changeHandler/Base.js +2 -2
- package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +2 -2
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +2 -2
- package/src/sap/ui/fl/changeHandler/BaseRename.js +2 -2
- package/src/sap/ui/fl/changeHandler/BaseTreeModifier.js +1 -1
- package/src/sap/ui/fl/changeHandler/ChangeAnnotation.js +78 -0
- package/src/sap/ui/fl/changeHandler/HideControl.js +2 -2
- package/src/sap/ui/fl/changeHandler/MoveControls.js +2 -2
- package/src/sap/ui/fl/changeHandler/MoveElements.js +2 -2
- package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +2 -2
- package/src/sap/ui/fl/changeHandler/PropertyChange.js +2 -2
- package/src/sap/ui/fl/changeHandler/StashControl.js +2 -2
- package/src/sap/ui/fl/changeHandler/UnhideControl.js +2 -2
- package/src/sap/ui/fl/changeHandler/UnstashControl.js +2 -2
- package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +2 -2
- package/src/sap/ui/fl/changeHandler/common/ChangeCategories.js +1 -1
- package/src/sap/ui/fl/changeHandler/common/createIFrame.js +1 -1
- package/src/sap/ui/fl/changeHandler/common/getTargetAggregationIndex.js +1 -1
- package/src/sap/ui/fl/changeHandler/common/revertAddedControls.js +1 -1
- package/src/sap/ui/fl/changeHandler/condenser/Classification.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/Utils.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +9 -7
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +2 -2
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +2 -2
- package/src/sap/ui/fl/designtime/library.designtime.js +1 -1
- package/src/sap/ui/fl/designtime/messagebundle_en_US_saptrc.properties +1 -1
- package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +1 -1
- package/src/sap/ui/fl/designtime/util/editIFrame.js +1 -1
- package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +1 -1
- package/src/sap/ui/fl/initial/_internal/FlexConfiguration.js +2 -2
- package/src/sap/ui/fl/initial/_internal/FlexInfoSession.js +1 -1
- package/src/sap/ui/fl/initial/_internal/Storage.js +2 -2
- package/src/sap/ui/fl/initial/_internal/StorageFeaturesMerger.js +2 -2
- package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +7 -4
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +8 -7
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +14 -11
- package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/BtpServiceConnector.js +15 -1
- package/src/sap/ui/fl/initial/_internal/connectors/KeyUserConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/NeoLrepConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/PersonalizationConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +2 -2
- package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +2 -2
- package/src/sap/ui/fl/initial/api/InitialFlexAPI.js +57 -0
- package/src/sap/ui/fl/initial/api/Version.js +1 -1
- package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +2 -2
- package/src/sap/ui/fl/interfaces/Delegate.js +2 -2
- package/src/sap/ui/fl/library.js +44 -44
- package/src/sap/ui/fl/library.support.js +3 -3
- package/src/sap/ui/fl/messagebundle.properties +4 -1
- package/src/sap/ui/fl/messagebundle_ar.properties +2 -0
- package/src/sap/ui/fl/messagebundle_bg.properties +2 -0
- package/src/sap/ui/fl/messagebundle_ca.properties +2 -0
- package/src/sap/ui/fl/messagebundle_cnr.properties +2 -0
- package/src/sap/ui/fl/messagebundle_cs.properties +2 -0
- package/src/sap/ui/fl/messagebundle_cy.properties +2 -0
- package/src/sap/ui/fl/messagebundle_da.properties +2 -0
- package/src/sap/ui/fl/messagebundle_de.properties +2 -0
- package/src/sap/ui/fl/messagebundle_el.properties +2 -0
- package/src/sap/ui/fl/messagebundle_en.properties +2 -0
- package/src/sap/ui/fl/messagebundle_en_GB.properties +2 -0
- package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +2 -0
- package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +45 -45
- package/src/sap/ui/fl/messagebundle_es.properties +2 -0
- package/src/sap/ui/fl/messagebundle_es_MX.properties +2 -0
- package/src/sap/ui/fl/messagebundle_et.properties +2 -0
- package/src/sap/ui/fl/messagebundle_fi.properties +2 -0
- package/src/sap/ui/fl/messagebundle_fr.properties +2 -0
- package/src/sap/ui/fl/messagebundle_fr_CA.properties +2 -0
- package/src/sap/ui/fl/messagebundle_hi.properties +2 -0
- package/src/sap/ui/fl/messagebundle_hr.properties +2 -0
- package/src/sap/ui/fl/messagebundle_hu.properties +2 -0
- package/src/sap/ui/fl/messagebundle_id.properties +2 -0
- package/src/sap/ui/fl/messagebundle_it.properties +2 -0
- package/src/sap/ui/fl/messagebundle_iw.properties +2 -0
- package/src/sap/ui/fl/messagebundle_ja.properties +2 -0
- package/src/sap/ui/fl/messagebundle_kk.properties +2 -0
- package/src/sap/ui/fl/messagebundle_ko.properties +2 -0
- package/src/sap/ui/fl/messagebundle_lt.properties +2 -0
- package/src/sap/ui/fl/messagebundle_lv.properties +2 -0
- package/src/sap/ui/fl/messagebundle_mk.properties +2 -0
- package/src/sap/ui/fl/messagebundle_ms.properties +2 -0
- package/src/sap/ui/fl/messagebundle_nl.properties +2 -0
- package/src/sap/ui/fl/messagebundle_no.properties +2 -0
- package/src/sap/ui/fl/messagebundle_pl.properties +2 -0
- package/src/sap/ui/fl/messagebundle_pt.properties +2 -0
- package/src/sap/ui/fl/messagebundle_pt_PT.properties +2 -0
- package/src/sap/ui/fl/messagebundle_ro.properties +2 -0
- package/src/sap/ui/fl/messagebundle_ru.properties +2 -0
- package/src/sap/ui/fl/messagebundle_sh.properties +2 -0
- package/src/sap/ui/fl/messagebundle_sk.properties +2 -0
- package/src/sap/ui/fl/messagebundle_sl.properties +2 -0
- package/src/sap/ui/fl/messagebundle_sr.properties +2 -0
- package/src/sap/ui/fl/messagebundle_sv.properties +2 -0
- package/src/sap/ui/fl/messagebundle_th.properties +2 -0
- package/src/sap/ui/fl/messagebundle_tr.properties +2 -0
- package/src/sap/ui/fl/messagebundle_uk.properties +2 -0
- package/src/sap/ui/fl/messagebundle_vi.properties +2 -0
- package/src/sap/ui/fl/messagebundle_zh_CN.properties +2 -0
- package/src/sap/ui/fl/messagebundle_zh_TW.properties +2 -0
- package/src/sap/ui/fl/registry/Settings.js +1 -1
- package/src/sap/ui/fl/requireAsync.js +1 -1
- package/src/sap/ui/fl/support/_internal/extractChangeDependencies.js +1 -1
- package/src/sap/ui/fl/support/_internal/getAllUIChanges.js +2 -2
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +2 -2
- package/src/sap/ui/fl/support/_internal/getFlexObjectInfos.js +2 -2
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +2 -2
- package/src/sap/ui/fl/support/api/SupportAPI.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/Component.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +2 -2
- package/src/sap/ui/fl/themes/base/library.source.less +1 -1
- package/src/sap/ui/fl/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/fl/transport/TransportDialog.js +1 -1
- package/src/sap/ui/fl/transport/TransportSelection.js +2 -2
- package/src/sap/ui/fl/util/DescriptorChangeCheck.js +3 -3
- package/src/sap/ui/fl/util/IFrame.flexibility.js +1 -1
- package/src/sap/ui/fl/util/IFrame.js +2 -2
- package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +3 -3
- package/src/sap/ui/fl/util/changePropertyValueByPath.js +1 -1
- package/src/sap/ui/fl/util/getContainerUserInfo.js +1 -1
- package/src/sap/ui/fl/util/resolveBinding.js +2 -2
- package/src/sap/ui/fl/variants/VariantManagement.js +1 -1
- package/src/sap/ui/fl/variants/VariantManager.js +604 -0
- package/src/sap/ui/fl/variants/VariantModel.js +27 -557
- package/src/sap/ui/fl/variants/context/Component.js +1 -1
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +1 -1
- package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_saptrc.properties +12 -12
- package/src/sap/ui/fl/write/_internal/SaveAs.js +1 -1
- package/src/sap/ui/fl/write/_internal/Storage.js +8 -3
- package/src/sap/ui/fl/write/_internal/Versions.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +9 -3
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +69 -48
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +2 -2
- package/src/sap/ui/fl/write/_internal/condenser/Utils.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Create.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Destroy.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/LastOneWins.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Reverse.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Update.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/BtpServiceConnector.js +32 -2
- package/src/sap/ui/fl/write/_internal/connectors/JsObjectConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/LocalStorageConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/ObjectStorageConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/SessionStorageConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/Utils.js +2 -2
- package/src/sap/ui/fl/write/_internal/controlVariants/ControlVariantWriteUtils.js +1 -1
- package/src/sap/ui/fl/write/_internal/delegates/ODataV2ReadDelegate.js +1 -1
- package/src/sap/ui/fl/write/_internal/delegates/ODataV4ReadDelegate.js +1 -1
- package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/getEditorConfig.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/validators/IsRequired.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/FlexObjectManager.js +2 -2
- package/src/sap/ui/fl/write/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +2 -2
- package/src/sap/ui/fl/write/_internal/flexState/changes/UIChangeManager.js +2 -2
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +9 -12
- package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +1 -1
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +2 -2
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +2 -2
- package/src/sap/ui/fl/write/api/Adaptations.js +1 -1
- package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +33 -10
- package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +40 -27
- package/src/sap/ui/fl/write/api/ContextSharingAPI.js +1 -1
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +14 -2
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +1 -1
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +2 -2
- package/src/sap/ui/fl/write/api/LocalResetAPI.js +1 -1
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +43 -5
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +1 -1
- package/src/sap/ui/fl/write/api/SACIntegrationUpdateVariant.js +1 -1
- package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/TranslationAPI.js +1 -1
- package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/VersionsAPI.js +1 -1
- package/src/sap/ui/fl/write/api/connectors/FileListBaseConnector.js +1 -1
- package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +1 -1
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +1 -1
- package/ui5.yaml +2 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes",
|
|
8
9
|
"sap/ui/fl/apply/_internal/flexObjects/FlexObject"
|
|
9
10
|
], function(
|
|
11
|
+
DescriptorChangeTypes,
|
|
10
12
|
FlexObject
|
|
11
13
|
) {
|
|
12
14
|
"use strict";
|
|
@@ -18,7 +20,7 @@ sap.ui.define([
|
|
|
18
20
|
* @extends sap.ui.fl.apply._internal.flexObjects.FlexObject
|
|
19
21
|
* @alias sap.ui.fl.apply._internal.flexObjects.AppDescriptorChange
|
|
20
22
|
* @since 1.105
|
|
21
|
-
* @version 1.
|
|
23
|
+
* @version 1.132.0
|
|
22
24
|
* @private
|
|
23
25
|
* @ui5-restricted
|
|
24
26
|
*/
|
|
@@ -51,6 +53,18 @@ sap.ui.define([
|
|
|
51
53
|
return AppDescriptorChange.getMappingInfo();
|
|
52
54
|
};
|
|
53
55
|
|
|
56
|
+
/**
|
|
57
|
+
* Returns the ID to be used by the condenser.
|
|
58
|
+
* @returns {string} ID for condensing
|
|
59
|
+
*/
|
|
60
|
+
AppDescriptorChange.prototype.getIdForCondensing = function() {
|
|
61
|
+
return `appDescriptor_${this.getFlexObjectMetadata().reference}`;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
AppDescriptorChange.prototype.canBeCondensed = function() {
|
|
65
|
+
return DescriptorChangeTypes.getCondensableChangeTypes().includes(this.getChangeType());
|
|
66
|
+
};
|
|
67
|
+
|
|
54
68
|
// ----------------- temporary functions -----------------
|
|
55
69
|
// The AppDescriptorChange is treated like a normal UI Change.
|
|
56
70
|
// This functions should be removed as soon as this is not the case anymore.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* @extends sap.ui.fl.apply._internal.flexObjects.Variant
|
|
33
33
|
* @alias sap.ui.fl.apply._internal.flexObjects.CompVariant
|
|
34
34
|
* @since 1.103
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.132.0
|
|
36
36
|
* @private
|
|
37
37
|
* @ui5-restricted sap.ui.fl, sap.ui.comp
|
|
38
38
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @extends sap.ui.fl.apply._internal.flexObjects.FlexObject
|
|
21
21
|
* @alias sap.ui.fl.apply._internal.flexObjects.ControllerExtensionChange
|
|
22
22
|
* @since 1.105
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.132.0
|
|
24
24
|
* @private
|
|
25
25
|
* @ui5-restricted sap.ui.fl
|
|
26
26
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* @extends sap.ui.fl.apply._internal.flexObjects.Variant
|
|
23
23
|
* @alias sap.ui.fl.apply._internal.flexObjects.FlVariant
|
|
24
24
|
* @since 1.104
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.132.0
|
|
26
26
|
* @private
|
|
27
27
|
* @ui5-restricted sap.ui.fl
|
|
28
28
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -69,7 +69,7 @@ sap.ui.define([
|
|
|
69
69
|
* @extends sap.ui.base.ManagedObject
|
|
70
70
|
* @alias sap.ui.fl.apply._internal.flexObjects.FlexObject
|
|
71
71
|
* @since 1.100
|
|
72
|
-
* @version 1.
|
|
72
|
+
* @version 1.132.0
|
|
73
73
|
* @private
|
|
74
74
|
* @ui5-restricted sap.ui.fl
|
|
75
75
|
*/
|
|
@@ -542,5 +542,24 @@ sap.ui.define([
|
|
|
542
542
|
mFileContent.support.clonedFrom = this.getId();
|
|
543
543
|
return mFileContent;
|
|
544
544
|
};
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Returns the ID of the flex object.
|
|
548
|
+
* Must be implemented by each relevant object type.
|
|
549
|
+
*/
|
|
550
|
+
FlexObject.prototype.getIdForCondensing = function() {
|
|
551
|
+
throw new Error("Method getIdForCondensing must be implemented");
|
|
552
|
+
};
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Checks if the flex object can be condensed.
|
|
556
|
+
* This function is called before even the ChangeHandler is fetched and getCondenserInfo is called.
|
|
557
|
+
*
|
|
558
|
+
* @returns {boolean} <code>true</code> if the flex object can be condensed
|
|
559
|
+
*/
|
|
560
|
+
FlexObject.prototype.canBeCondensed = function() {
|
|
561
|
+
return true;
|
|
562
|
+
};
|
|
563
|
+
|
|
545
564
|
return FlexObject;
|
|
546
565
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* !
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -76,11 +76,22 @@ sap.ui.define([
|
|
|
76
76
|
function createBasePropertyBag(mOriginalProperties) {
|
|
77
77
|
const mProperties = cloneIfObject(mOriginalProperties);
|
|
78
78
|
const sChangeType = mProperties.type || mProperties.changeType;
|
|
79
|
-
|
|
79
|
+
|
|
80
|
+
let sFileName = mProperties.fileName || mProperties.id;
|
|
81
|
+
if (!sFileName) {
|
|
82
|
+
sFileName = Utils.createDefaultFileName(sChangeType);
|
|
83
|
+
// ABAP only supports 64 characters for the file name
|
|
84
|
+
// but for variants, the filename is also the variant reference
|
|
85
|
+
// standard variants can have longer names, as they are not stored in the LREP
|
|
86
|
+
if (sFileName.length > 64) {
|
|
87
|
+
throw Error(`File name '${sFileName}' must not exceed 64 characters`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
80
90
|
const sUser = mProperties.user ||
|
|
81
91
|
(!LayerUtils.isDeveloperLayer(mProperties.layer)
|
|
82
92
|
? Settings.getInstanceOrUndef() && Settings.getInstanceOrUndef().getUserId()
|
|
83
93
|
: undefined);
|
|
94
|
+
|
|
84
95
|
return {
|
|
85
96
|
id: sFileName,
|
|
86
97
|
adaptationId: mProperties.adaptationId,
|
|
@@ -113,7 +124,7 @@ sap.ui.define([
|
|
|
113
124
|
*
|
|
114
125
|
* @namespace sap.ui.fl.apply._internal.flexObjects.FlexObjectFactory
|
|
115
126
|
* @since 1.100
|
|
116
|
-
* @version 1.
|
|
127
|
+
* @version 1.132.0
|
|
117
128
|
* @private
|
|
118
129
|
* @ui5-restricted sap.ui.fl
|
|
119
130
|
*/
|
|
@@ -164,6 +175,10 @@ sap.ui.define([
|
|
|
164
175
|
|
|
165
176
|
FlexObjectFactory.createAppDescriptorChange = function(mPropertyBag) {
|
|
166
177
|
mPropertyBag.compositeCommand ||= mPropertyBag.support && mPropertyBag.support.compositeCommand;
|
|
178
|
+
if (!(mPropertyBag.fileName || mPropertyBag.id)) {
|
|
179
|
+
const sChangeType = mPropertyBag.type || mPropertyBag.changeType;
|
|
180
|
+
mPropertyBag.fileName = Utils.createDefaultFileName(sChangeType).substring(0, 64);
|
|
181
|
+
}
|
|
167
182
|
const mProperties = createBasePropertyBag(mPropertyBag);
|
|
168
183
|
return new AppDescriptorChange(mProperties);
|
|
169
184
|
};
|
|
@@ -171,6 +186,7 @@ sap.ui.define([
|
|
|
171
186
|
FlexObjectFactory.createAnnotationChange = function(mPropertyBag) {
|
|
172
187
|
mPropertyBag.compositeCommand ||= mPropertyBag.support && mPropertyBag.support.compositeCommand;
|
|
173
188
|
const mProperties = createBasePropertyBag(mPropertyBag);
|
|
189
|
+
mProperties.serviceUrl = mPropertyBag.serviceUrl;
|
|
174
190
|
return new AnnotationChange(mProperties);
|
|
175
191
|
};
|
|
176
192
|
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/util/isEmptyObject",
|
|
9
9
|
"sap/base/util/isPlainObject",
|
|
10
|
+
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
10
11
|
"sap/ui/fl/apply/_internal/flexObjects/FlexObject",
|
|
11
12
|
"sap/ui/fl/apply/_internal/flexObjects/States",
|
|
12
13
|
"sap/ui/fl/Utils"
|
|
13
14
|
], function(
|
|
14
15
|
isEmptyObject,
|
|
15
16
|
isPlainObject,
|
|
17
|
+
JsControlTreeModifier,
|
|
16
18
|
FlexObject,
|
|
17
19
|
States,
|
|
18
20
|
Utils
|
|
@@ -26,7 +28,7 @@ sap.ui.define([
|
|
|
26
28
|
* @extends sap.ui.fl.apply._internal.flexObjects.FlexObject
|
|
27
29
|
* @alias sap.ui.fl.apply._internal.flexObjects.UIChange
|
|
28
30
|
* @since 1.109
|
|
29
|
-
* @version 1.
|
|
31
|
+
* @version 1.132.0
|
|
30
32
|
* @private
|
|
31
33
|
* @ui5-restricted
|
|
32
34
|
*/
|
|
@@ -475,5 +477,22 @@ sap.ui.define([
|
|
|
475
477
|
return this._oExtensionPointInfo;
|
|
476
478
|
};
|
|
477
479
|
|
|
480
|
+
/**
|
|
481
|
+
* Returns the ID to be used for condensing.
|
|
482
|
+
*
|
|
483
|
+
* @param {object} oCondenserInfo - Condenser information returned from the change handler
|
|
484
|
+
* @param {sap.ui.core.Component} oAppComponent - Application component
|
|
485
|
+
* @returns {string} ID for condensing
|
|
486
|
+
*/
|
|
487
|
+
UIChange.prototype.getIdForCondensing = function(oCondenserInfo, oAppComponent) {
|
|
488
|
+
return oCondenserInfo !== undefined
|
|
489
|
+
? oCondenserInfo.affectedControl
|
|
490
|
+
: JsControlTreeModifier.getControlIdBySelector(this.getSelector(), oAppComponent);
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
UIChange.prototype.canBeCondensed = function() {
|
|
494
|
+
return this.isSuccessfullyApplied();
|
|
495
|
+
};
|
|
496
|
+
|
|
478
497
|
return UIChange;
|
|
479
498
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -49,5 +49,9 @@ sap.ui.define([
|
|
|
49
49
|
return oLatestRevertInfo;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
+
UpdatableChange.prototype.canBeCondensed = function() {
|
|
53
|
+
return false;
|
|
54
|
+
};
|
|
55
|
+
|
|
52
56
|
return UpdatableChange;
|
|
53
57
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @extends sap.ui.fl.apply._internal.flexObjects.FlexObject
|
|
20
20
|
* @alias sap.ui.fl.apply._internal.flexObjects.Variant
|
|
21
21
|
* @since 1.103
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.132.0
|
|
23
23
|
* @private
|
|
24
24
|
* @ui5-restricted sap.ui.fl
|
|
25
25
|
*/
|
|
@@ -139,5 +139,10 @@ sap.ui.define([
|
|
|
139
139
|
return oContexts[sContextKey].length > 0;
|
|
140
140
|
});
|
|
141
141
|
};
|
|
142
|
+
|
|
143
|
+
Variant.prototype.canBeCondensed = function() {
|
|
144
|
+
return false;
|
|
145
|
+
};
|
|
146
|
+
|
|
142
147
|
return Variant;
|
|
143
148
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
*
|
|
22
22
|
* @function
|
|
23
23
|
* @since 1.121
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.132.0
|
|
25
25
|
* @private
|
|
26
26
|
* @ui5-restricted sap.ui.fl
|
|
27
27
|
* @alias module:sap/ui/fl/apply/_internal/flexState/compVariants/getVariantAuthor
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
* @namespace
|
|
40
40
|
* @alias sap.ui.fl.apply._internal.flexState.FlexObjectState
|
|
41
41
|
* @since 1.83
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.132.0
|
|
43
43
|
* @private
|
|
44
44
|
* @ui5-restricted sap.ui.fl
|
|
45
45
|
*/
|
|
@@ -272,9 +272,13 @@ sap.ui.define([
|
|
|
272
272
|
return aEntities;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
+
function isNewChangeDeleted(oFlexObject) {
|
|
276
|
+
return !(oFlexObject.getState() === States.LifecycleState.DELETED && oFlexObject._sPreviousState === States.LifecycleState.NEW);
|
|
277
|
+
}
|
|
278
|
+
|
|
275
279
|
/**
|
|
276
280
|
* Collects modified changes from the different states within the <code>sap.ui.fl</code> library.
|
|
277
|
-
* TODO: remove special CompVariant handling
|
|
281
|
+
* TODO: remove special CompVariant handling todos#5
|
|
278
282
|
*
|
|
279
283
|
* @param {object} sReference - Flex Reference
|
|
280
284
|
* @returns {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} All dirty Flex objects
|
|
@@ -282,7 +286,9 @@ sap.ui.define([
|
|
|
282
286
|
FlexObjectState.getDirtyFlexObjects = function(sReference) {
|
|
283
287
|
const aCompVariantEntities = getCompVariantEntities(sReference);
|
|
284
288
|
return oAllDirtyFlexObjectsDataSelector.get({reference: sReference})
|
|
285
|
-
.concat(aCompVariantEntities.filter((oFlexObject) => oFlexObject.getState() !== States.LifecycleState.PERSISTED))
|
|
289
|
+
.concat(aCompVariantEntities.filter((oFlexObject) => oFlexObject.getState() !== States.LifecycleState.PERSISTED))
|
|
290
|
+
// change is not dirty when it is created and deleted in the same session
|
|
291
|
+
.filter((oFlexObject) => isNewChangeDeleted(oFlexObject));
|
|
286
292
|
};
|
|
287
293
|
|
|
288
294
|
return FlexObjectState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -89,7 +89,7 @@ sap.ui.define([
|
|
|
89
89
|
*
|
|
90
90
|
* @namespace sap.ui.fl.apply._internal.flexState.FlexState
|
|
91
91
|
* @since 1.73
|
|
92
|
-
* @version 1.
|
|
92
|
+
* @version 1.132.0
|
|
93
93
|
* @private
|
|
94
94
|
* @ui5-restricted sap.ui.fl.apply._internal
|
|
95
95
|
*/
|
|
@@ -387,6 +387,12 @@ sap.ui.define([
|
|
|
387
387
|
if (!mPropertyBag.partialFlexState) {
|
|
388
388
|
mResponse.authors = await Loader.loadVariantsAuthors(mPropertyBag.reference);
|
|
389
389
|
}
|
|
390
|
+
storeInfoInSession(mPropertyBag.reference, mResponse);
|
|
391
|
+
|
|
392
|
+
return mResponse;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
function prepareNewInstance(mResponse, mPropertyBag) {
|
|
390
396
|
// The following line is used by the Flex Support Tool to set breakpoints - please adjust the tool if you change it!
|
|
391
397
|
_mInstances[mPropertyBag.reference] = merge({}, {
|
|
392
398
|
unfilteredStorageResponse: mResponse,
|
|
@@ -398,12 +404,9 @@ sap.ui.define([
|
|
|
398
404
|
allContextsProvided: mPropertyBag.allContextsProvided
|
|
399
405
|
});
|
|
400
406
|
|
|
401
|
-
storeInfoInSession(mPropertyBag.reference, mResponse);
|
|
402
|
-
|
|
403
407
|
// no further changes to storageResponse properties allowed
|
|
404
408
|
Object.freeze(_mInstances[mPropertyBag.reference].storageResponse);
|
|
405
409
|
Object.freeze(_mInstances[mPropertyBag.reference].unfilteredStorageResponse);
|
|
406
|
-
return mResponse;
|
|
407
410
|
}
|
|
408
411
|
|
|
409
412
|
function storeInfoInSession(sReference, mResponse) {
|
|
@@ -504,12 +507,14 @@ sap.ui.define([
|
|
|
504
507
|
checkComponentId(mProperties);
|
|
505
508
|
checkVersionAndAllContexts(mProperties);
|
|
506
509
|
if (mProperties.reInitialize) {
|
|
507
|
-
await loadFlexData(mProperties);
|
|
510
|
+
const oResponse = await loadFlexData(mProperties);
|
|
511
|
+
prepareNewInstance(oResponse, mProperties);
|
|
508
512
|
} else {
|
|
509
513
|
rebuildResponseIfMaxLayerChanged(mPropertyBag.reference);
|
|
510
514
|
}
|
|
511
515
|
} else {
|
|
512
|
-
await loadFlexData(mProperties);
|
|
516
|
+
const oResponse = await loadFlexData(mProperties);
|
|
517
|
+
prepareNewInstance(oResponse, mProperties);
|
|
513
518
|
}
|
|
514
519
|
|
|
515
520
|
initializeNewInstance(mProperties);
|
|
@@ -593,7 +598,8 @@ sap.ui.define([
|
|
|
593
598
|
const oNewInitPromise = new Deferred();
|
|
594
599
|
_mInitPromises[sReference] = oNewInitPromise;
|
|
595
600
|
await oOldInitPromise;
|
|
596
|
-
await loadFlexData(mPropertyBag);
|
|
601
|
+
const oResponse = await loadFlexData(mPropertyBag);
|
|
602
|
+
prepareNewInstance(oResponse, mPropertyBag);
|
|
597
603
|
_mInstances[sReference].storageResponse = filterByMaxLayer(sReference, _mInstances[sReference].unfilteredStorageResponse);
|
|
598
604
|
const bUpdated = updateRuntimePersistence(
|
|
599
605
|
sReference,
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/base/util/ObjectPath",
|
|
8
9
|
"sap/ui/base/ManagedObject",
|
|
9
10
|
"sap/ui/fl/apply/_internal/flexState/ManifestUtils",
|
|
10
11
|
"sap/ui/fl/initial/_internal/Storage",
|
|
11
12
|
"sap/ui/fl/registry/Settings"
|
|
12
13
|
], function(
|
|
14
|
+
ObjectPath,
|
|
13
15
|
ManagedObject,
|
|
14
16
|
ManifestUtils,
|
|
15
17
|
ApplyStorage,
|
|
@@ -59,20 +61,23 @@ sap.ui.define([
|
|
|
59
61
|
|
|
60
62
|
function filterInvalidFileNames(mFlexData) {
|
|
61
63
|
[
|
|
62
|
-
"changes",
|
|
63
|
-
"
|
|
64
|
-
"variantDependentControlChanges",
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
64
|
+
"appDescriptorChanges", "annotationChanges", "changes",
|
|
65
|
+
"comp.changes", "comp.changes", "comp.defaultVariants", "comp.standardVariants",
|
|
66
|
+
"variants", "variantChanges", "variantDependentControlChanges", "variantManagementChanges"
|
|
67
|
+
].forEach(function(vKey) {
|
|
68
|
+
const aFlexItems = ObjectPath.get(vKey, mFlexData);
|
|
69
|
+
if (aFlexItems) {
|
|
70
|
+
ObjectPath.set(vKey, aFlexItems.filter((oFlexItem) => {
|
|
71
|
+
let oTemporaryInstance;
|
|
72
|
+
try {
|
|
73
|
+
oTemporaryInstance = new ManagedObject(oFlexItem.fileName);
|
|
74
|
+
} catch (error) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
oTemporaryInstance.destroy();
|
|
78
|
+
return true;
|
|
79
|
+
}), mFlexData);
|
|
80
|
+
}
|
|
76
81
|
});
|
|
77
82
|
return mFlexData;
|
|
78
83
|
}
|
|
@@ -102,7 +107,7 @@ sap.ui.define([
|
|
|
102
107
|
*
|
|
103
108
|
* @namespace sap.ui.fl.apply._internal.flexState.Loader
|
|
104
109
|
* @since 1.74
|
|
105
|
-
* @version 1.
|
|
110
|
+
* @version 1.132.0
|
|
106
111
|
* @private
|
|
107
112
|
* @ui5-restricted sap.ui.fl.apply._internal.flexState
|
|
108
113
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -78,7 +78,7 @@ function(
|
|
|
78
78
|
*
|
|
79
79
|
* @namespace sap.ui.fl.apply._internal.flexState.ManifestUtils
|
|
80
80
|
* @since 1.74
|
|
81
|
-
* @version 1.
|
|
81
|
+
* @version 1.132.0
|
|
82
82
|
* @private
|
|
83
83
|
*/
|
|
84
84
|
var ManifestUtils = {
|
package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
*
|
|
17
17
|
* @namespace sap.ui.fl.apply._internal.flexState.UI2Personalization.UI2PersonalizationState
|
|
18
18
|
* @since 1.75
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.132.0
|
|
20
20
|
* @private
|
|
21
21
|
* @ui5-restricted
|
|
22
22
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
*
|
|
21
21
|
* @namespace sap.ui.fl.apply._internal.flexState.changes.DependencyHandler
|
|
22
22
|
* @since 1.74
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.132.0
|
|
24
24
|
* @private
|
|
25
25
|
* @ui5-restricted sap.ui.fl
|
|
26
26
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -41,7 +41,7 @@ sap.ui.define([
|
|
|
41
41
|
*
|
|
42
42
|
* @namespace sap.ui.fl.apply._internal.flexState.changes.ExtensionPointState
|
|
43
43
|
* @since 1.79
|
|
44
|
-
* @version 1.
|
|
44
|
+
* @version 1.132.0
|
|
45
45
|
* @private
|
|
46
46
|
* @ui5-restricted
|
|
47
47
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @namespace
|
|
25
25
|
* @alias sap.ui.fl.apply._internal.flexState.changes.UIChangesState
|
|
26
26
|
* @since 1.121
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.132.0
|
|
28
28
|
* @private
|
|
29
29
|
* @ui5-restricted
|
|
30
30
|
*/
|