@openui5/sap.ui.fl 1.96.1 → 1.96.5
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 +3 -3
- package/src/sap/ui/fl/.library +2 -2
- package/src/sap/ui/fl/Cache.js +2 -2
- package/src/sap/ui/fl/Change.js +1 -1
- package/src/sap/ui/fl/ChangePersistence.js +12 -14
- package/src/sap/ui/fl/ChangePersistenceFactory.js +2 -2
- package/src/sap/ui/fl/ControlPersonalizationAPI.js +2 -2
- package/src/sap/ui/fl/EventHistory.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 +35 -18
- 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/PreprocessorImpl.js +2 -2
- package/src/sap/ui/fl/RegistrationDelegator.js +2 -2
- package/src/sap/ui/fl/Utils.js +2 -2
- package/src/sap/ui/fl/Variant.js +2 -2
- package/src/sap/ui/fl/XmlPreprocessorImpl.js +2 -2
- package/src/sap/ui/fl/apply/_internal/ChangesController.js +1 -1
- 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 +31 -12
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +1 -1
- 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/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/SetTitle.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.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/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/flexObjects/CompVariant.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +1 -1
- 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/UpdatableChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +31 -3
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +7 -3
- 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/appDescriptorChanges/prepareAppDescriptorMap.js +1 -1
- 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/prepareChangesMap.js +1 -1
- 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 +9 -14
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +1 -1
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +2 -2
- package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +15 -2
- 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/HideControl.js +2 -2
- package/src/sap/ui/fl/changeHandler/JsControlTreeModifier.js +1 -1
- 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/XmlTreeModifier.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/codeExt/CodeExtManager.js +2 -2
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +5 -5
- 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/descriptorRelated/internal/Utils.js +1 -1
- package/src/sap/ui/fl/designtime/library.designtime.js +1 -1
- package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +1 -1
- package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +1 -1
- package/src/sap/ui/fl/initial/_internal/Storage.js +2 -2
- package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +2 -2
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +2 -2
- package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +1 -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/interfaces/BaseLoadConnector.js +2 -2
- package/src/sap/ui/fl/interfaces/Delegate.js +2 -2
- package/src/sap/ui/fl/library.js +10 -10
- package/src/sap/ui/fl/library.support.js +1 -1
- package/src/sap/ui/fl/messagebundle_ar.properties +19 -2
- package/src/sap/ui/fl/messagebundle_bg.properties +19 -2
- package/src/sap/ui/fl/messagebundle_ca.properties +19 -2
- package/src/sap/ui/fl/messagebundle_cs.properties +19 -2
- package/src/sap/ui/fl/messagebundle_cy.properties +19 -2
- package/src/sap/ui/fl/messagebundle_da.properties +19 -2
- package/src/sap/ui/fl/messagebundle_de.properties +19 -2
- package/src/sap/ui/fl/messagebundle_el.properties +19 -2
- package/src/sap/ui/fl/messagebundle_en.properties +17 -0
- package/src/sap/ui/fl/messagebundle_en_GB.properties +19 -2
- package/src/sap/ui/fl/messagebundle_es.properties +19 -2
- package/src/sap/ui/fl/messagebundle_es_MX.properties +19 -2
- package/src/sap/ui/fl/messagebundle_et.properties +19 -2
- package/src/sap/ui/fl/messagebundle_fi.properties +19 -2
- package/src/sap/ui/fl/messagebundle_fr.properties +19 -2
- package/src/sap/ui/fl/messagebundle_fr_CA.properties +19 -2
- package/src/sap/ui/fl/messagebundle_hi.properties +19 -2
- package/src/sap/ui/fl/messagebundle_hr.properties +19 -2
- package/src/sap/ui/fl/messagebundle_hu.properties +19 -2
- package/src/sap/ui/fl/messagebundle_id.properties +19 -2
- package/src/sap/ui/fl/messagebundle_it.properties +19 -2
- package/src/sap/ui/fl/messagebundle_iw.properties +19 -2
- package/src/sap/ui/fl/messagebundle_ja.properties +19 -2
- package/src/sap/ui/fl/messagebundle_kk.properties +19 -2
- package/src/sap/ui/fl/messagebundle_ko.properties +19 -2
- package/src/sap/ui/fl/messagebundle_lt.properties +19 -2
- package/src/sap/ui/fl/messagebundle_lv.properties +19 -2
- package/src/sap/ui/fl/messagebundle_ms.properties +19 -2
- package/src/sap/ui/fl/messagebundle_nl.properties +19 -2
- package/src/sap/ui/fl/messagebundle_no.properties +19 -2
- package/src/sap/ui/fl/messagebundle_pl.properties +19 -2
- package/src/sap/ui/fl/messagebundle_pt.properties +19 -2
- package/src/sap/ui/fl/messagebundle_pt_PT.properties +19 -2
- package/src/sap/ui/fl/messagebundle_ro.properties +19 -2
- package/src/sap/ui/fl/messagebundle_ru.properties +19 -2
- package/src/sap/ui/fl/messagebundle_sh.properties +19 -2
- package/src/sap/ui/fl/messagebundle_sk.properties +19 -2
- package/src/sap/ui/fl/messagebundle_sl.properties +19 -2
- package/src/sap/ui/fl/messagebundle_sv.properties +19 -2
- package/src/sap/ui/fl/messagebundle_th.properties +17 -0
- package/src/sap/ui/fl/messagebundle_tr.properties +19 -2
- package/src/sap/ui/fl/messagebundle_uk.properties +19 -2
- package/src/sap/ui/fl/messagebundle_vi.properties +19 -2
- package/src/sap/ui/fl/messagebundle_zh_CN.properties +19 -2
- package/src/sap/ui/fl/messagebundle_zh_TW.properties +19 -2
- 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/Flexibility.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/support/apps/uiFlexibilityDiagnostics/Component.js +1 -1
- package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/controller/Root.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor.js +1 -1
- package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.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 +1 -1
- 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 +2 -2
- 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/VariantModel.js +7 -6
- 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/write/_internal/SaveAs.js +1 -1
- package/src/sap/ui/fl/write/_internal/Storage.js +2 -2
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +2 -2
- 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 +2 -2
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +2 -2
- 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/connectors/BackendConnector.js +2 -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/delegates/ODataV4ReadDelegate.js +1 -1
- package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +2 -2
- package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.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/FlexObjectState.js +20 -5
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +2 -2
- 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/AppVariantWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/ContextSharingAPI.js +1 -1
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/ExtensionPointRegistryAPI.js +1 -1
- 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 +2 -1
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.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/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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.fl",
|
|
3
|
-
"version": "1.96.
|
|
3
|
+
"version": "1.96.5",
|
|
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.96.
|
|
18
|
-
"@openui5/sap.ui.core": "1.96.
|
|
17
|
+
"@openui5/sap.m": "1.96.5",
|
|
18
|
+
"@openui5/sap.ui.core": "1.96.5"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/src/sap/ui/fl/.library
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<name>sap.ui.fl</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>OpenUI5
|
|
7
|
-
* (c) Copyright 2009-
|
|
7
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.96.
|
|
9
|
+
<version>1.96.5</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with sap.ui.fl controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/fl/Cache.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 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 @@ function(
|
|
|
24
24
|
* @alias sap.ui.fl.Cache
|
|
25
25
|
* @experimental Since 1.25.0
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.96.
|
|
27
|
+
* @version 1.96.5
|
|
28
28
|
*
|
|
29
29
|
* @private
|
|
30
30
|
* @ui5-restricted sap.ui.fl
|
package/src/sap/ui/fl/Change.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -960,28 +960,24 @@ sap.ui.define([
|
|
|
960
960
|
};
|
|
961
961
|
|
|
962
962
|
/**
|
|
963
|
-
* Removes unsaved changes
|
|
963
|
+
* Removes unsaved changes.
|
|
964
964
|
*
|
|
965
|
-
* @param {string}
|
|
966
|
-
* @param {sap.ui.core.Component} oComponent - Component instance
|
|
967
|
-
* @param {string} oControl - Control for which the changes should be
|
|
965
|
+
* @param {string|string[]} [vLayer] - Layer or multiple layers for which changes shall be deleted. If omitted, changes on all layers are considered.
|
|
966
|
+
* @param {sap.ui.core.Component} [oComponent] - Component instance, required if oControl is specified
|
|
967
|
+
* @param {string} [oControl] - Control for which the changes should be deleted. If omitted, all changes for the app component are considered.
|
|
968
968
|
* @param {string} [sGenerator] - Generator of changes (optional)
|
|
969
969
|
* @param {string[]} [aChangeTypes] - Types of changes (optional)
|
|
970
970
|
*
|
|
971
971
|
* @returns {Promise} Promise that resolves after the deletion took place
|
|
972
972
|
*/
|
|
973
|
-
ChangePersistence.prototype.removeDirtyChanges = function(
|
|
974
|
-
|
|
975
|
-
Log.error("The selectorId must be provided");
|
|
976
|
-
return Promise.reject("The selectorId must be provided");
|
|
977
|
-
}
|
|
978
|
-
|
|
973
|
+
ChangePersistence.prototype.removeDirtyChanges = function(vLayer, oComponent, oControl, sGenerator, aChangeTypes) {
|
|
974
|
+
var aLayers = [].concat(vLayer || []);
|
|
979
975
|
var aDirtyChanges = this._aDirtyChanges;
|
|
980
976
|
|
|
981
977
|
var aChangesToBeRemoved = aDirtyChanges.filter(function (oChange) {
|
|
982
978
|
var bChangeValid = true;
|
|
983
979
|
|
|
984
|
-
if (oChange.getLayer()
|
|
980
|
+
if (aLayers.length && !aLayers.includes(oChange.getLayer())) {
|
|
985
981
|
return false;
|
|
986
982
|
}
|
|
987
983
|
|
|
@@ -989,8 +985,10 @@ sap.ui.define([
|
|
|
989
985
|
return false;
|
|
990
986
|
}
|
|
991
987
|
|
|
992
|
-
|
|
993
|
-
|
|
988
|
+
if (oControl) {
|
|
989
|
+
var vSelector = oChange.getSelector();
|
|
990
|
+
bChangeValid = oControl.getId() === JsControlTreeModifier.getControlIdBySelector(vSelector, oComponent);
|
|
991
|
+
}
|
|
994
992
|
|
|
995
993
|
if (aChangeTypes) {
|
|
996
994
|
bChangeValid = bChangeValid && aChangeTypes.indexOf(oChange.getChangeType()) !== -1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @alias sap.ui.fl.ChangePersistenceFactory
|
|
29
29
|
* @experimental Since 1.27.0
|
|
30
30
|
* @author SAP SE
|
|
31
|
-
* @version 1.96.
|
|
31
|
+
* @version 1.96.5
|
|
32
32
|
* @private
|
|
33
33
|
* @ui5-restricted sap.ui.fl
|
|
34
34
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
* @author SAP SE
|
|
44
44
|
* @experimental Since 1.56
|
|
45
45
|
* @since 1.56
|
|
46
|
-
* @version 1.96.
|
|
46
|
+
* @version 1.96.5
|
|
47
47
|
* @private
|
|
48
48
|
* @ui5-restricted
|
|
49
49
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ sap.ui.define(function () {
|
|
|
14
14
|
* @alias sap.ui.fl.EventHistory
|
|
15
15
|
* @experimental Since 1.47.0
|
|
16
16
|
* @author SAP SE
|
|
17
|
-
* @version 1.96.
|
|
17
|
+
* @version 1.96.5
|
|
18
18
|
*
|
|
19
19
|
* @private
|
|
20
20
|
* @ui5-restricted sap.ui.fl.RegistrationDelegator
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 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 @@ function(
|
|
|
20
20
|
* @class
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.96.
|
|
23
|
+
* @version 1.96.5
|
|
24
24
|
*
|
|
25
25
|
* @private
|
|
26
26
|
* @static
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 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 @@ function(
|
|
|
20
20
|
* @class
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.96.
|
|
23
|
+
* @version 1.96.5
|
|
24
24
|
*
|
|
25
25
|
* @private
|
|
26
26
|
* @static
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 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
|
* @class
|
|
17
17
|
*
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.96.
|
|
19
|
+
* @version 1.96.5
|
|
20
20
|
*
|
|
21
21
|
* @private
|
|
22
22
|
* @static
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
) {
|
|
36
36
|
"use strict";
|
|
37
37
|
|
|
38
|
-
function revertChangesAndUpdateVariantModel(oComponent, aChanges) {
|
|
38
|
+
function revertChangesAndUpdateVariantModel(oComponent, bSkipUrlUpdate, aChanges) {
|
|
39
39
|
return Promise.resolve()
|
|
40
40
|
.then(function () {
|
|
41
41
|
if (aChanges.length !== 0) {
|
|
@@ -59,12 +59,14 @@ sap.ui.define([
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
if (!bSkipUrlUpdate) {
|
|
63
|
+
URLHandler.update({
|
|
64
|
+
parameters: [],
|
|
65
|
+
updateURL: true,
|
|
66
|
+
updateHashEntry: true,
|
|
67
|
+
model: oModel
|
|
68
|
+
});
|
|
69
|
+
}
|
|
68
70
|
}
|
|
69
71
|
}
|
|
70
72
|
|
|
@@ -81,7 +83,7 @@ sap.ui.define([
|
|
|
81
83
|
* @alias sap.ui.fl.FlexController
|
|
82
84
|
* @experimental Since 1.27.0
|
|
83
85
|
* @author SAP SE
|
|
84
|
-
* @version 1.96.
|
|
86
|
+
* @version 1.96.5
|
|
85
87
|
*/
|
|
86
88
|
var FlexController = function(sComponentName) {
|
|
87
89
|
this._oChangePersistence = undefined;
|
|
@@ -440,21 +442,35 @@ sap.ui.define([
|
|
|
440
442
|
return Promise.all(aPromises);
|
|
441
443
|
};
|
|
442
444
|
|
|
445
|
+
FlexController.prototype._removeOtherLayerChanges = function(oAppComponent, sLayer, bRemoveOtherLayerChanges) {
|
|
446
|
+
if (bRemoveOtherLayerChanges && sLayer) {
|
|
447
|
+
var aLayersToReset = Object.values(Layer).filter(function(sLayerToCheck) {
|
|
448
|
+
return sLayerToCheck !== sLayer;
|
|
449
|
+
});
|
|
450
|
+
return this.removeDirtyChanges(aLayersToReset, oAppComponent, undefined, undefined, undefined, true);
|
|
451
|
+
}
|
|
452
|
+
return Promise.resolve();
|
|
453
|
+
};
|
|
454
|
+
|
|
443
455
|
/**
|
|
444
456
|
* Saves all changes of a persistence instance.
|
|
445
457
|
*
|
|
446
458
|
* @param {sap.ui.core.UIComponent} [oAppComponent] - AppComponent instance
|
|
447
459
|
* @param {boolean} [bSkipUpdateCache=false] - Indicates the cache should not be updated
|
|
448
460
|
* @param {boolean} [bDraft=false] - Indicates if changes should be written as a draft
|
|
461
|
+
* @param {string} [sLayer] - Layer for which the changes should be saved
|
|
462
|
+
* @param {boolean} [bRemoveOtherLayerChanges=false] - Whether to remove changes on other layers before saving
|
|
449
463
|
* @returns {Promise} resolving with an array of responses or rejecting with the first error
|
|
450
464
|
* @public
|
|
451
465
|
*/
|
|
452
|
-
FlexController.prototype.saveAll = function(oAppComponent, bSkipUpdateCache, bDraft) {
|
|
466
|
+
FlexController.prototype.saveAll = function(oAppComponent, bSkipUpdateCache, bDraft, sLayer, bRemoveOtherLayerChanges) {
|
|
453
467
|
var nParentVersion = bDraft ? Versions.getVersionsModel({
|
|
454
468
|
reference: Utils.normalizeReference(this._sComponentName),
|
|
455
469
|
layer: Layer.CUSTOMER // only the customer layer has draft active
|
|
456
470
|
}).getProperty("/persistedVersion") : undefined;
|
|
457
|
-
|
|
471
|
+
|
|
472
|
+
return this._removeOtherLayerChanges(oAppComponent, sLayer, bRemoveOtherLayerChanges)
|
|
473
|
+
.then(this._oChangePersistence.saveDirtyChanges.bind(this._oChangePersistence, oAppComponent, bSkipUpdateCache, undefined, nParentVersion))
|
|
458
474
|
.then(function(oResult) {
|
|
459
475
|
if (bDraft && oResult && oResult.response) {
|
|
460
476
|
var vChangeDefinition = oResult.response;
|
|
@@ -568,23 +584,24 @@ sap.ui.define([
|
|
|
568
584
|
*/
|
|
569
585
|
FlexController.prototype.resetChanges = function(sLayer, sGenerator, oComponent, aSelectorIds, aChangeTypes) {
|
|
570
586
|
return this._oChangePersistence.resetChanges(sLayer, sGenerator, aSelectorIds, aChangeTypes)
|
|
571
|
-
.then(revertChangesAndUpdateVariantModel.bind(this, oComponent));
|
|
587
|
+
.then(revertChangesAndUpdateVariantModel.bind(this, oComponent, undefined));
|
|
572
588
|
};
|
|
573
589
|
|
|
574
590
|
/**
|
|
575
|
-
* Removes unsaved changes and reverts these.
|
|
591
|
+
* Removes unsaved changes and reverts these. If no control is provided, all dirty changes are removed.
|
|
576
592
|
*
|
|
577
|
-
* @param {string}
|
|
593
|
+
* @param {string|string[]} vLayer - Layer or multiple layers for which changes shall be deleted
|
|
578
594
|
* @param {sap.ui.core.Component} oComponent - Component instance
|
|
579
|
-
* @param {sap.ui.core.Control} oControl - Control for which the changes should be removed
|
|
595
|
+
* @param {sap.ui.core.Control} [oControl] - Control for which the changes should be removed
|
|
580
596
|
* @param {string} [sGenerator] - Generator of changes (optional)
|
|
581
597
|
* @param {string[]} [aChangeTypes] - Types of changes (optional)
|
|
598
|
+
* @param {boolean} [bSkipUrlUpdate] - Whether to skip soft reload during variant model update
|
|
582
599
|
*
|
|
583
600
|
* @returns {Promise} Promise that resolves after the deletion took place
|
|
584
601
|
*/
|
|
585
|
-
FlexController.prototype.removeDirtyChanges = function(
|
|
586
|
-
return this._oChangePersistence.removeDirtyChanges(
|
|
587
|
-
.then(revertChangesAndUpdateVariantModel.bind(this, oComponent));
|
|
602
|
+
FlexController.prototype.removeDirtyChanges = function(vLayer, oComponent, oControl, sGenerator, aChangeTypes, bSkipUrlUpdate) {
|
|
603
|
+
return this._oChangePersistence.removeDirtyChanges(vLayer, oComponent, oControl, sGenerator, aChangeTypes)
|
|
604
|
+
.then(revertChangesAndUpdateVariantModel.bind(this, oComponent, bSkipUrlUpdate));
|
|
588
605
|
};
|
|
589
606
|
|
|
590
607
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 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
|
* @alias sap.ui.fl.FlexControllerFactory
|
|
33
33
|
* @experimental Since 1.27.0
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.96.
|
|
35
|
+
* @version 1.96.5
|
|
36
36
|
*
|
|
37
37
|
* @private
|
|
38
38
|
* @ui5-restricted sap.ui.fl
|
package/src/sap/ui/fl/Layer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 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.LayerUtils
|
|
43
43
|
* @author SAP SE
|
|
44
|
-
* @version 1.96.
|
|
44
|
+
* @version 1.96.5
|
|
45
45
|
*/
|
|
46
46
|
var LayerUtils = {
|
|
47
47
|
_mLayersIndex: mLayersIndex,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @class
|
|
34
34
|
* @constructor
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.96.
|
|
36
|
+
* @version 1.96.5
|
|
37
37
|
* @experimental Since 1.27.0
|
|
38
38
|
* @private
|
|
39
39
|
* @ui5-restricted sap.ui.fl, sap.ui.core
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
* @class
|
|
45
45
|
* @constructor
|
|
46
46
|
* @author SAP SE
|
|
47
|
-
* @version 1.96.
|
|
47
|
+
* @version 1.96.5
|
|
48
48
|
* @experimental Since 1.43.0
|
|
49
49
|
*/
|
|
50
50
|
var RegistrationDelegator = {
|
package/src/sap/ui/fl/Utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -47,7 +47,7 @@ function(
|
|
|
47
47
|
* @namespace
|
|
48
48
|
* @alias sap.ui.fl.Utils
|
|
49
49
|
* @author SAP SE
|
|
50
|
-
* @version 1.96.
|
|
50
|
+
* @version 1.96.5
|
|
51
51
|
* @experimental Since 1.25.0
|
|
52
52
|
*/
|
|
53
53
|
var Utils = {
|
package/src/sap/ui/fl/Variant.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @class Variant class.
|
|
34
34
|
* @extends sap.ui.base.ManagedObject
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.96.
|
|
36
|
+
* @version 1.96.5
|
|
37
37
|
* @alias sap.ui.fl.Variant
|
|
38
38
|
* @experimental Since 1.52.0
|
|
39
39
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @class
|
|
27
27
|
* @constructor
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.96.
|
|
29
|
+
* @version 1.96.5
|
|
30
30
|
* @experimental Since 1.27.0
|
|
31
31
|
*/
|
|
32
32
|
var XmlPreprocessorImpl = function() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 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([
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
*
|
|
26
26
|
* @private
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.96.
|
|
28
|
+
* @version 1.96.5
|
|
29
29
|
*
|
|
30
30
|
* @experimental Since 1.80 This class is experimental and provides only limited functionality. Also the API might be
|
|
31
31
|
* changed in future.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -50,7 +50,8 @@ sap.ui.define([
|
|
|
50
50
|
function _checkAndAdjustChangeStatusSync(oControl, oChange, mChangesMap, oFlexController, mPropertyBag) {
|
|
51
51
|
var mControl = Utils.getControlIfTemplateAffected(oChange, oControl, mPropertyBag);
|
|
52
52
|
var oModifier = mPropertyBag.modifier;
|
|
53
|
-
var
|
|
53
|
+
var bHasAppliedCustomData = !!FlexCustomData.sync.getAppliedCustomDataValue(mControl.control, oChange);
|
|
54
|
+
var bIsCurrentlyAppliedOnControl = bHasAppliedCustomData || FlexCustomData.sync.hasChangeApplyFinishedCustomData(mControl.control, oChange);
|
|
54
55
|
var bChangeStatusAppliedFinished = oChange.isApplyProcessFinished();
|
|
55
56
|
if (bChangeStatusAppliedFinished && !bIsCurrentlyAppliedOnControl) {
|
|
56
57
|
// if a change was already processed and is not applied anymore, then the control was destroyed and recreated.
|
|
@@ -60,9 +61,11 @@ sap.ui.define([
|
|
|
60
61
|
oChange.setInitialApplyState();
|
|
61
62
|
} else if (!bChangeStatusAppliedFinished && bIsCurrentlyAppliedOnControl) {
|
|
62
63
|
// if a change is already applied on the control, but the status does not reflect that, the status has to be updated
|
|
63
|
-
// and the revert data fetched from the Custom Data
|
|
64
64
|
// scenario: viewCache
|
|
65
|
-
|
|
65
|
+
if (bHasAppliedCustomData) {
|
|
66
|
+
// if the change was applied, set the revert data fetched from the custom data
|
|
67
|
+
oChange.setRevertData(FlexCustomData.sync.getParsedRevertDataFromCustomData(oControl, oChange));
|
|
68
|
+
}
|
|
66
69
|
oChange.markFinished();
|
|
67
70
|
}
|
|
68
71
|
}
|
|
@@ -75,8 +78,20 @@ sap.ui.define([
|
|
|
75
78
|
var bXmlModifier = _isXmlModifier(mPropertyBag);
|
|
76
79
|
var mControl = Utils.getControlIfTemplateAffected(oChange, oControl, mPropertyBag);
|
|
77
80
|
var oModifier = mPropertyBag.modifier;
|
|
78
|
-
return FlexCustomData.
|
|
79
|
-
.then(function
|
|
81
|
+
return FlexCustomData.getAppliedCustomDataValue(mControl.control, oChange, oModifier)
|
|
82
|
+
.then(function(oAppliedCustomData) {
|
|
83
|
+
var bHasAppliedCustomData = !!oAppliedCustomData;
|
|
84
|
+
return Promise.all([
|
|
85
|
+
bHasAppliedCustomData,
|
|
86
|
+
(
|
|
87
|
+
bHasAppliedCustomData
|
|
88
|
+
|| FlexCustomData.hasChangeApplyFinishedCustomData(mControl.control, oChange, oModifier)
|
|
89
|
+
)
|
|
90
|
+
]);
|
|
91
|
+
})
|
|
92
|
+
.then(function(aCustomDataState) {
|
|
93
|
+
var bHasAppliedCustomData = aCustomDataState[0];
|
|
94
|
+
var bIsCurrentlyAppliedOnControl = aCustomDataState[1];
|
|
80
95
|
var bChangeStatusAppliedFinished = oChange.isApplyProcessFinished();
|
|
81
96
|
var oModifier = mPropertyBag.modifier;
|
|
82
97
|
var oAppComponent = mPropertyBag.appComponent;
|
|
@@ -93,13 +108,17 @@ sap.ui.define([
|
|
|
93
108
|
return oPromise.then(oChange.setInitialApplyState.bind(oChange));
|
|
94
109
|
} else if (!bChangeStatusAppliedFinished && bIsCurrentlyAppliedOnControl) {
|
|
95
110
|
// if a change is already applied on the control, but the status does not reflect that, the status has to be updated
|
|
96
|
-
// and the revert data fetched from the Custom Data
|
|
97
111
|
// scenario: viewCache
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
112
|
+
if (bHasAppliedCustomData) {
|
|
113
|
+
// if the change was applied, set the revert data fetched from the custom data
|
|
114
|
+
return FlexCustomData.getParsedRevertDataFromCustomData(oControl, oChange, oModifier)
|
|
115
|
+
.then(function (oParsedRevertDataFromCustomData) {
|
|
116
|
+
oChange.setRevertData(oParsedRevertDataFromCustomData);
|
|
117
|
+
oChange.markFinished();
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
oChange.markFinished();
|
|
121
|
+
return undefined;
|
|
103
122
|
} else if (bChangeStatusAppliedFinished && bIsCurrentlyAppliedOnControl) {
|
|
104
123
|
// both the change instance and the UI Control are already applied, so the change can be directly marked as finished
|
|
105
124
|
oChange.markFinished();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @alias sap.ui.fl.FlexCustomData
|
|
31
31
|
* @experimental Since 1.61.0
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.96.
|
|
33
|
+
* @version 1.96.5
|
|
34
34
|
*/
|
|
35
35
|
var FlexCustomData = {};
|
|
36
36
|
FlexCustomData.sync = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 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.connectors.changes.Utils
|
|
22
22
|
* @since 1.70
|
|
23
|
-
* @version 1.96.
|
|
23
|
+
* @version 1.96.5
|
|
24
24
|
* @private
|
|
25
25
|
* @ui5-restricted sap.ui.fl.apply._internal, sap.ui.fl.write._internal
|
|
26
26
|
*/
|