@openui5/sap.ui.fl 1.108.2 → 1.110.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 +16 -16
- package/THIRDPARTY.txt +2 -2
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +2 -2
- package/src/sap/ui/fl/Cache.js +19 -6
- package/src/sap/ui/fl/ChangePersistence.js +47 -85
- 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 +27 -27
- package/src/sap/ui/fl/FlexControllerFactory.js +8 -7
- package/src/sap/ui/fl/Layer.js +2 -2
- package/src/sap/ui/fl/LayerUtils.js +4 -4
- package/src/sap/ui/fl/Scenario.js +1 -1
- package/src/sap/ui/fl/Utils.js +70 -297
- package/src/sap/ui/fl/apply/_internal/ChangesController.js +18 -3
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +5 -5
- package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Applier.js +35 -83
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +49 -178
- package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +10 -16
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +11 -16
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +11 -9
- 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 +6 -5
- 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 +2 -2
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +2 -2
- package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +3 -2
- 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/AppDescriptorChange.js +2 -3
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +10 -12
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +6 -3
- package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +2 -3
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +13 -13
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +32 -13
- package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +3 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/States.js +20 -5
- package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +462 -0
- package/src/sap/ui/fl/apply/_internal/flexObjects/UpdatableChange.js +18 -9
- package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +3 -2
- package/src/sap/ui/fl/apply/_internal/flexState/DataSelector.js +235 -0
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +157 -33
- package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +72 -0
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +28 -3
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +67 -36
- package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/appDescriptorChanges/prepareAppDescriptorMap.js +4 -4
- package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +8 -8
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +6 -4
- package/src/sap/ui/fl/apply/_internal/flexState/changes/prepareChangesMap.js +2 -13
- 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 +3 -3
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +10 -12
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +28 -8
- package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +2 -2
- package/src/sap/ui/fl/apply/_internal/preprocessors/EventHistory.js +2 -2
- package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +2 -2
- package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +2 -2
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +18 -10
- package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +2 -2
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +11 -47
- package/src/sap/ui/fl/apply/api/UI2PersonalizationApplyAPI.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +5 -5
- 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 +6 -5
- package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +7 -7
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +21 -19
- package/src/sap/ui/fl/changeHandler/BaseRename.js +7 -7
- package/src/sap/ui/fl/changeHandler/BaseTreeModifier.js +1 -1
- package/src/sap/ui/fl/changeHandler/HideControl.js +7 -7
- package/src/sap/ui/fl/changeHandler/MoveControls.js +6 -6
- package/src/sap/ui/fl/changeHandler/MoveElements.js +3 -3
- package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +3 -3
- package/src/sap/ui/fl/changeHandler/PropertyChange.js +3 -3
- package/src/sap/ui/fl/changeHandler/StashControl.js +7 -7
- package/src/sap/ui/fl/changeHandler/UnhideControl.js +6 -6
- package/src/sap/ui/fl/changeHandler/UnstashControl.js +6 -6
- package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +5 -5
- package/src/sap/ui/fl/changeHandler/common/ChangeCategories.js +1 -1
- package/src/sap/ui/fl/changeHandler/common/createIFrame.js +2 -2
- package/src/sap/ui/fl/changeHandler/common/getTargetAggregationIndex.js +2 -2
- 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/api/DescriptorChangeFactory.js +5 -5
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +4 -4
- 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 +5 -3
- 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 +4 -15
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +2 -2
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +3 -3
- 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 -2
- 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 +6 -6
- package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +4 -4
- package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +4 -4
- package/src/sap/ui/fl/interfaces/Delegate.js +2 -2
- package/src/sap/ui/fl/library.js +47 -48
- package/src/sap/ui/fl/library.support.js +1 -1
- package/src/sap/ui/fl/registry/Settings.js +3 -13
- package/src/sap/ui/fl/requireAsync.js +1 -1
- package/src/sap/ui/fl/support/_internal/extractChangeDependencies.js +5 -3
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.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 +8 -8
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +5 -5
- package/src/sap/ui/fl/themes/base/library.source.less +1 -3
- 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 +2 -2
- package/src/sap/ui/fl/util/changePropertyValueByPath.js +2 -2
- 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 +70 -10
- package/src/sap/ui/fl/variants/VariantModel.js +97 -48
- package/src/sap/ui/fl/variants/context/Component.js +1 -2
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +1 -1
- package/src/sap/ui/fl/write/_internal/FlexInfoSession.js +1 -1
- package/src/sap/ui/fl/write/_internal/SaveAs.js +5 -3
- package/src/sap/ui/fl/write/_internal/Storage.js +21 -12
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +3 -5
- 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 +4 -4
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +29 -27
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +10 -5
- 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 +2 -2
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Reverse.js +3 -3
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Update.js +2 -2
- 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 +5 -3
- package/src/sap/ui/fl/write/_internal/connectors/LocalStorageConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +31 -19
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +8 -2
- package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/ObjectStorageConnector.js +2 -2
- 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 +5 -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 +3 -3
- 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 +18 -17
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +33 -37
- package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +1 -1
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +19 -20
- 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 +7 -7
- package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +81 -15
- package/src/sap/ui/fl/write/api/ContextSharingAPI.js +3 -3
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +6 -4
- 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 +7 -7
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +10 -10
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +1 -1
- package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +5 -5
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +2 -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/Version.js +1 -1
- package/src/sap/ui/fl/write/api/VersionsAPI.js +1 -1
- package/src/sap/ui/fl/write/api/connectors/FileListBaseConnector.js +2 -2
- package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +2 -2
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +7 -1
- package/ui5.yaml +4 -2
- package/src/sap/ui/fl/Change.js +0 -1092
- package/src/sap/ui/fl/changeHandler/JsControlTreeModifier.js +0 -17
- package/src/sap/ui/fl/changeHandler/XmlTreeModifier.js +0 -17
- package/src/sap/ui/fl/codeExt/CodeExtManager.js +0 -122
- package/src/sap/ui/fl/themes/base/VariantManagement.less +0 -97
package/.reuse/dep5
CHANGED
|
@@ -28,7 +28,7 @@ Disclaimer: The code in this project may include calls to APIs (“API Calls”)
|
|
|
28
28
|
# OpenUI5 code
|
|
29
29
|
|
|
30
30
|
Files: *
|
|
31
|
-
Copyright: 2009-
|
|
31
|
+
Copyright: 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
32
32
|
License: Apache-2.0
|
|
33
33
|
|
|
34
34
|
|
|
@@ -68,7 +68,7 @@ Comment: these files belong to: jQuery UI
|
|
|
68
68
|
|
|
69
69
|
Files: src/sap.ui.commons/src/sap/ui/commons/Carousel.js
|
|
70
70
|
Copyright:
|
|
71
|
-
2009-
|
|
71
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
72
72
|
Spencer Tipping
|
|
73
73
|
License: Apache-2.0 and MIT
|
|
74
74
|
Comment: these files contain content from SAP and jquery.fix.clone: Carousel.js is authored by SAP, but contains an improved implementation of the clone function which is taken from jquery-fix-clone
|
|
@@ -83,35 +83,35 @@ Comment: these files belong to: jQuery 3
|
|
|
83
83
|
|
|
84
84
|
Files: src/sap.ui.core/src/sap/base/util/isPlainObject.js
|
|
85
85
|
Copyright:
|
|
86
|
-
2009-
|
|
86
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
87
87
|
OpenJS Foundation and other contributors
|
|
88
88
|
License: Apache-2.0 and MIT
|
|
89
89
|
Comment: these files contain content from SAP and jQuery 3: isPlainObject.js is overall written by SAP, but contains a modified implementation of jQuery.isPlainObject taken from jQuery
|
|
90
90
|
|
|
91
91
|
Files: src/sap.ui.core/src/sap/base/util/_merge.js
|
|
92
92
|
Copyright:
|
|
93
|
-
2009-
|
|
93
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
94
94
|
OpenJS Foundation and other contributors
|
|
95
95
|
License: Apache-2.0 and MIT
|
|
96
96
|
Comment: these files contain content from SAP and jQuery 3: _merge.js is overall written by SAP, but contains a modified implementation of jQuery.extend taken from jQuery
|
|
97
97
|
|
|
98
98
|
Files: src/sap.ui.core/src/jquery.sap.script.js
|
|
99
99
|
Copyright:
|
|
100
|
-
2009-
|
|
100
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
101
101
|
OpenJS Foundation and other contributors
|
|
102
102
|
License: Apache-2.0 and MIT
|
|
103
103
|
Comment: these files contain content from SAP and jQuery 3: jquery.sap.script.js is overall written by SAP, but contains a modified implementation of jQuery.extend taken from jQuery
|
|
104
104
|
|
|
105
105
|
Files: src/sap.ui.core/src/sap/ui/Device.js
|
|
106
106
|
Copyright:
|
|
107
|
-
2009-
|
|
107
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
108
108
|
2011, John Resig
|
|
109
109
|
License: Apache-2.0 and MIT
|
|
110
110
|
Comment: these files contain content from SAP and jQuery 1: Device.js is overall written by SAP, but contains code taken from jQuery 1.7.1 (see the respective comment)
|
|
111
111
|
|
|
112
112
|
Files: src/sap.ui.core/src/sap/ui/dom/jquery/Selectors.js
|
|
113
113
|
Copyright:
|
|
114
|
-
2009-
|
|
114
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
115
115
|
2014 jQuery Foundation and other contributors
|
|
116
116
|
License: Apache-2.0 and MIT
|
|
117
117
|
Comment: these files contain content from SAP and jQuery UI 1.8: Selectors.js is overall written by SAP, but contains code taken from jQuery UI (see the respective comments)
|
|
@@ -123,14 +123,14 @@ Comment: these files belong to: jQuery UI 1.10
|
|
|
123
123
|
|
|
124
124
|
Files: src/sap.ui.core/src/jquery.sap.dom.js
|
|
125
125
|
Copyright:
|
|
126
|
-
2009-
|
|
126
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
127
127
|
2014 jQuery Foundation and other contributors
|
|
128
128
|
License: Apache-2.0 and MIT
|
|
129
129
|
Comment: these files contain content from SAP and jQuery UI 1.10: jquery.sap.dom.js is overall written by SAP, but contains code taken from jQuery UI Core (see the respective comment)
|
|
130
130
|
|
|
131
131
|
Files: src/sap.ui.core/src/sap/ui/dom/jquery/zIndex.js
|
|
132
132
|
Copyright:
|
|
133
|
-
2009-
|
|
133
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
134
134
|
2014 jQuery Foundation and other contributors
|
|
135
135
|
License: Apache-2.0 and MIT
|
|
136
136
|
Comment: these files contain content from SAP and jQuery UI 1.11: zIndex.js is overall written by SAP, but contains an implementation of the function 'fnzIndex' which is taken from jQuery UI Datepicker 1.11.1
|
|
@@ -162,7 +162,7 @@ Comment: these files belong to: jQuery Mobile
|
|
|
162
162
|
|
|
163
163
|
Files: src/sap.ui.core/src/sap/ui/util/_FeatureDetection.js
|
|
164
164
|
Copyright:
|
|
165
|
-
2009-
|
|
165
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
166
166
|
2012 Wei-Ko Kao
|
|
167
167
|
License: Apache-2.0 and MIT
|
|
168
168
|
Comment: these files contain content from SAP and jQuery.rtl-scroll-type: _FeatureDetection.js is overall written by SAP, but contains code which is inspired by jQuery.rtl-scroll-type
|
|
@@ -299,14 +299,14 @@ Comment: these files belong to: blanket.js
|
|
|
299
299
|
|
|
300
300
|
Files: src/sap.ui.core/src/sap/base/util/JSTokenizer.js
|
|
301
301
|
Copyright:
|
|
302
|
-
2009-
|
|
302
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
303
303
|
Douglas Crockford
|
|
304
304
|
License: Apache-2.0 and LicenseRef-JSONinJSPublicDomain
|
|
305
305
|
Comment: these files contain content from SAP and JSON in JS: JSTokenizer.js is overall written by SAP, but contains code has been taken from the component JSON in JavaScript (https://github.com/douglascrockford/JSON-js/blob/master/json2.js) from Douglas Crockford which is licensed under Public Domain
|
|
306
306
|
|
|
307
307
|
Files: src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
|
|
308
308
|
Copyright:
|
|
309
|
-
2009-
|
|
309
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
310
310
|
2010 Douglas Crockford
|
|
311
311
|
License: Apache-2.0
|
|
312
312
|
Comment: these files contain content from SAP and Top Down Operator Precedence: ExpressionParser.js is overall written by SAP, but contains code taken from or inspired by TDOP by Douglas Crockford (see the respective comment)
|
|
@@ -340,7 +340,7 @@ Comment: these files contain content from p-cancelable and @babel/helpers: _Canc
|
|
|
340
340
|
|
|
341
341
|
Files: src/sap.ui.core/src/sap/ui/core/date/Persian.js
|
|
342
342
|
Copyright:
|
|
343
|
-
2009-
|
|
343
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
344
344
|
Behrang Norouzinia
|
|
345
345
|
License: Apache-2.0 and MIT
|
|
346
346
|
Comment: these files contain content from SAP and Jalaali JS: Persian.js is overall written by SAP, but the calculation is taken from jalaali-js
|
|
@@ -352,14 +352,14 @@ Comment: these files belong to: vkBeautify
|
|
|
352
352
|
|
|
353
353
|
Files: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
|
|
354
354
|
Copyright:
|
|
355
|
-
2009-
|
|
355
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
356
356
|
Isaac Z. Schlueter and Contributors
|
|
357
357
|
License: Apache-2.0 and ISC
|
|
358
358
|
Comment: these files contain content from SAP and node-lru-cache: LRUPersistentCache.js is overall written by SAP, but portions ('Least Recently Used' logic) are taken from the node-lru-cache project (see https://github.com/isaacs/node-lru-cache/blob/v2.7.3/README.md) and modified.
|
|
359
359
|
|
|
360
360
|
Files: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
|
|
361
361
|
Copyright:
|
|
362
|
-
2009-
|
|
362
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
363
363
|
Arthur David Olson, Paul Eggert and other contributors
|
|
364
364
|
License: Apache-2.0 and LicenseRef-tzdata-PublicDomain
|
|
365
365
|
Comment: these files contain content from SAP and Time Zone Database: _timezones.js is overall written by SAP, but the list of IANA timezone IDs is taken from the Timezone Database
|
|
@@ -469,7 +469,7 @@ Comment: these files belong to: LESS
|
|
|
469
469
|
|
|
470
470
|
Files: lib/jsdoc/ui5/plugin.js
|
|
471
471
|
Copyright:
|
|
472
|
-
2009-
|
|
472
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
473
473
|
2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
|
|
474
474
|
License: Apache-2.0
|
|
475
475
|
Comment: these files contain content from SAP and JSDoc 3: plugin.js is overall written by SAP, but contains code taken from JSDoc 3.6.7 (see the respective comments)
|
package/THIRDPARTY.txt
CHANGED
|
@@ -185,7 +185,7 @@ License: Apache-2.0
|
|
|
185
185
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
186
186
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js
|
|
187
187
|
|
|
188
|
-
Component: Unicode Common Locale Data Repository, version:
|
|
188
|
+
Component: Unicode Common Locale Data Repository, version: 41
|
|
189
189
|
Copyright: 1991-2014 Unicode, Inc.
|
|
190
190
|
License: Unicode-DFS-2015
|
|
191
191
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
|
|
@@ -478,7 +478,7 @@ License: Apache-2.0
|
|
|
478
478
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
479
479
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
480
480
|
|
|
481
|
-
Component: SAP Theming Base Content, version: 11.1.
|
|
481
|
+
Component: SAP Theming Base Content, version: 11.1.48
|
|
482
482
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
483
483
|
License: Apache-2.0
|
|
484
484
|
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.110.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.110.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.110.0"
|
|
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-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.110.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
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 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/ui/fl/apply/_internal/flexState/FlexState",
|
|
9
|
-
"sap/ui/fl/
|
|
9
|
+
"sap/ui/fl/apply/api/ControlVariantApplyAPI",
|
|
10
10
|
"sap/base/Log"
|
|
11
11
|
],
|
|
12
12
|
function(
|
|
13
13
|
FlexState,
|
|
14
|
-
|
|
14
|
+
ControlVariantApplyAPI,
|
|
15
15
|
Log
|
|
16
16
|
) {
|
|
17
17
|
"use strict";
|
|
@@ -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.
|
|
27
|
+
* @version 1.110.0
|
|
28
28
|
*
|
|
29
29
|
* @private
|
|
30
30
|
* @ui5-restricted sap.ui.fl
|
|
@@ -121,8 +121,21 @@ function(
|
|
|
121
121
|
})
|
|
122
122
|
.then(function(sCacheKey) {
|
|
123
123
|
// concat current control variant ids to cachekey if available
|
|
124
|
-
var oVariantModel = oAppComponent.getModel(
|
|
125
|
-
|
|
124
|
+
var oVariantModel = oAppComponent.getModel(ControlVariantApplyAPI.getVariantModelName());
|
|
125
|
+
if (!oVariantModel) {
|
|
126
|
+
return sCacheKey;
|
|
127
|
+
}
|
|
128
|
+
// If there are no changes, the standard variant is created after the variant management control is instantiated
|
|
129
|
+
// When the cache key is calculated before this happens, the standard variant id is unknown
|
|
130
|
+
// To avoid inconsistencies between page load and navigation scenarios, all standard variants are filtered
|
|
131
|
+
var aVariantManagementControlIds = oVariantModel.getVariantManagementControlIds();
|
|
132
|
+
var aCurrentControlVariantIds = oVariantModel.getCurrentControlVariantIds()
|
|
133
|
+
.filter(function(sVariantId) {
|
|
134
|
+
// FIXME: The standard variant flag should be part of the variant instance
|
|
135
|
+
// This can be changed once the variant data selector is ready
|
|
136
|
+
// For now rely on the fact that standard variants have the same name as the vm control
|
|
137
|
+
return !aVariantManagementControlIds.includes(sVariantId);
|
|
138
|
+
});
|
|
126
139
|
return _concatControlVariantIdWithCacheKey(sCacheKey, aCurrentControlVariantIds.join("-"));
|
|
127
140
|
});
|
|
128
141
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 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,6 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
"sap/ui/fl/apply/_internal/changes/Utils",
|
|
17
17
|
"sap/ui/fl/apply/_internal/flexObjects/FlexObject",
|
|
18
18
|
"sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory",
|
|
19
|
+
"sap/ui/fl/apply/_internal/flexObjects/States",
|
|
19
20
|
"sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler",
|
|
20
21
|
"sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState",
|
|
21
22
|
"sap/ui/fl/apply/_internal/flexState/FlexState",
|
|
@@ -25,7 +26,6 @@ sap.ui.define([
|
|
|
25
26
|
"sap/ui/fl/write/_internal/Storage",
|
|
26
27
|
"sap/ui/fl/write/api/Version",
|
|
27
28
|
"sap/ui/fl/Cache",
|
|
28
|
-
"sap/ui/fl/Change",
|
|
29
29
|
"sap/ui/fl/LayerUtils",
|
|
30
30
|
"sap/ui/fl/Layer",
|
|
31
31
|
"sap/ui/fl/Utils",
|
|
@@ -43,6 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
ChangesUtils,
|
|
44
44
|
FlexObject,
|
|
45
45
|
FlexObjectFactory,
|
|
46
|
+
States,
|
|
46
47
|
DependencyHandler,
|
|
47
48
|
VariantManagementState,
|
|
48
49
|
FlexState,
|
|
@@ -52,7 +53,6 @@ sap.ui.define([
|
|
|
52
53
|
Storage,
|
|
53
54
|
Version,
|
|
54
55
|
Cache,
|
|
55
|
-
Change,
|
|
56
56
|
LayerUtils,
|
|
57
57
|
Layer,
|
|
58
58
|
Utils,
|
|
@@ -66,7 +66,7 @@ sap.ui.define([
|
|
|
66
66
|
*
|
|
67
67
|
* @constructor
|
|
68
68
|
* @author SAP SE
|
|
69
|
-
* @version 1.
|
|
69
|
+
* @version 1.110.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
|
|
@@ -94,19 +94,15 @@ sap.ui.define([
|
|
|
94
94
|
|
|
95
95
|
function getChangeInstance(oFileContent, oChangeOrChangeContent) {
|
|
96
96
|
var oChange;
|
|
97
|
-
if (oChangeOrChangeContent instanceof
|
|
97
|
+
if (oChangeOrChangeContent instanceof FlexObject) {
|
|
98
98
|
oChange = oChangeOrChangeContent; // can have other states
|
|
99
99
|
this._mChangesEntries[oChange.getId()] = oChange;
|
|
100
100
|
} else {
|
|
101
101
|
if (!this._mChangesEntries[oChangeOrChangeContent.fileName]) {
|
|
102
|
-
|
|
103
|
-
this._mChangesEntries[oChangeOrChangeContent.fileName] = FlexObjectFactory.createFromFileContent(oChangeOrChangeContent);
|
|
104
|
-
} else {
|
|
105
|
-
this._mChangesEntries[oChangeOrChangeContent.fileName] = new Change(oChangeOrChangeContent);
|
|
106
|
-
}
|
|
102
|
+
this._mChangesEntries[oChangeOrChangeContent.fileName] = FlexObjectFactory.createFromFileContent(oChangeOrChangeContent);
|
|
107
103
|
}
|
|
108
104
|
oChange = this._mChangesEntries[oChangeOrChangeContent.fileName];
|
|
109
|
-
oChange.setState(
|
|
105
|
+
oChange.setState(States.LifecycleState.PERSISTED);
|
|
110
106
|
}
|
|
111
107
|
return oChange;
|
|
112
108
|
}
|
|
@@ -150,7 +146,7 @@ sap.ui.define([
|
|
|
150
146
|
var sVariantReference;
|
|
151
147
|
var sSelectorId;
|
|
152
148
|
|
|
153
|
-
if (oChangeOrChangeContent instanceof
|
|
149
|
+
if (oChangeOrChangeContent instanceof FlexObject) {
|
|
154
150
|
var oChange = oChangeOrChangeContent;
|
|
155
151
|
sFileType = oChange.getFileType();
|
|
156
152
|
sVariantReference = oChange.getVariantReference();
|
|
@@ -183,7 +179,6 @@ sap.ui.define([
|
|
|
183
179
|
* @param {string} [mPropertyBag.cacheKey] Key to validate the cache entry stored on client side
|
|
184
180
|
* @param {sap.ui.core.Component} [mPropertyBag.component] - Component instance
|
|
185
181
|
* @param {boolean} bInvalidateCache - should the cache be invalidated
|
|
186
|
-
* @see sap.ui.fl.Change
|
|
187
182
|
* @returns {Promise} Promise resolving with an array of changes
|
|
188
183
|
* @public
|
|
189
184
|
*/
|
|
@@ -264,7 +259,7 @@ sap.ui.define([
|
|
|
264
259
|
var sChangeLayer;
|
|
265
260
|
if (
|
|
266
261
|
typeof oChangeOrChangeContent.isA === "function"
|
|
267
|
-
&& (oChangeOrChangeContent.isA("sap.ui.fl.apply._internal.flexObjects.FlVariant") || oChangeOrChangeContent.isA("sap.ui.fl.
|
|
262
|
+
&& (oChangeOrChangeContent.isA("sap.ui.fl.apply._internal.flexObjects.FlVariant") || oChangeOrChangeContent.isA("sap.ui.fl.apply._internal.flexObjects.UIChange"))
|
|
268
263
|
) {
|
|
269
264
|
sChangeLayer = oChangeOrChangeContent.getLayer();
|
|
270
265
|
} else {
|
|
@@ -291,7 +286,6 @@ sap.ui.define([
|
|
|
291
286
|
* Calls the back end asynchronously and fetches all changes for the component
|
|
292
287
|
* New changes (dirty state) that are not yet saved to the back end won't be returned.
|
|
293
288
|
* @param {object} oAppComponent - Component instance used to prepare the IDs (e.g. local)
|
|
294
|
-
* @see sap.ui.fl.Change
|
|
295
289
|
* @returns {Promise} Promise resolving with a getter for the changes map
|
|
296
290
|
* @public
|
|
297
291
|
*/
|
|
@@ -319,13 +313,13 @@ sap.ui.define([
|
|
|
319
313
|
*
|
|
320
314
|
* @param {object} oSelector selector of the control
|
|
321
315
|
* @param {sap.ui.core.Component} oAppComponent - Application component instance that is currently loading
|
|
322
|
-
* @returns {sap.ui.fl.
|
|
316
|
+
* @returns {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} Array of all open dependent changes for the control
|
|
323
317
|
*/
|
|
324
318
|
ChangePersistence.prototype.getOpenDependentChangesForControl = function(oSelector, oAppComponent) {
|
|
325
319
|
return DependencyHandler.getOpenDependentChangesForControl(this._mChanges, JsControlTreeModifier.getControlIdBySelector(oSelector, oAppComponent), oAppComponent);
|
|
326
320
|
};
|
|
327
321
|
|
|
328
|
-
function
|
|
322
|
+
function getInitialDependencyClone(oChange) {
|
|
329
323
|
var mInitialDependencies = merge({}, this._mChangesInitial.mDependencies);
|
|
330
324
|
return mInitialDependencies[oChange.getId()];
|
|
331
325
|
}
|
|
@@ -357,13 +351,13 @@ sap.ui.define([
|
|
|
357
351
|
* Also checks if the dependency is still valid in a callback
|
|
358
352
|
* This function is used in the case that controls got destroyed and recreated
|
|
359
353
|
*
|
|
360
|
-
* @param {sap.ui.fl.
|
|
354
|
+
* @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oChange The change whose dependencies should be copied
|
|
361
355
|
* @param {function} fnDependencyValidation this function is called to check if the dependency is still valid
|
|
362
356
|
* @param {sap.ui.core.Component} oAppComponent Application component instance that is currently loading
|
|
363
357
|
* @returns {object} Returns the mChanges object with the updated dependencies
|
|
364
358
|
*/
|
|
365
|
-
ChangePersistence.prototype.
|
|
366
|
-
var oInitialDependency =
|
|
359
|
+
ChangePersistence.prototype.copyDependenciesFromInitialChangesMap = function(oChange, fnDependencyValidation, oAppComponent) {
|
|
360
|
+
var oInitialDependency = getInitialDependencyClone.call(this, oChange);
|
|
367
361
|
if (oInitialDependency) {
|
|
368
362
|
var aNewValidDependencies = [];
|
|
369
363
|
oInitialDependency.dependencies.forEach(function(sChangeId) {
|
|
@@ -378,45 +372,12 @@ sap.ui.define([
|
|
|
378
372
|
return this._mChanges;
|
|
379
373
|
};
|
|
380
374
|
|
|
381
|
-
/**
|
|
382
|
-
* This function copies the initial dependencies (before any changes got applied and dependencies got deleted) for the given change to the mChanges map
|
|
383
|
-
* Also checks if the dependency is still valid in a callback
|
|
384
|
-
* This function is used in the case that controls got destroyed and recreated
|
|
385
|
-
*
|
|
386
|
-
* @param {sap.ui.fl.Change} oChange The change whose dependencies should be copied
|
|
387
|
-
* @param {function} fnDependencyValidation this function is called to check if the dependency is still valid
|
|
388
|
-
* @param {sap.ui.core.Component} oAppComponent Application component instance that is currently loading
|
|
389
|
-
* @returns {Promise} Resolves the mChanges object with the updated dependencies
|
|
390
|
-
*/
|
|
391
|
-
ChangePersistence.prototype.copyDependenciesFromInitialChangesMap = function(oChange, fnDependencyValidation, oAppComponent) {
|
|
392
|
-
var oInitialDependency = getInitalDependencyClone.call(this, oChange);
|
|
393
|
-
if (oInitialDependency) {
|
|
394
|
-
var aNewValidDependencies = [];
|
|
395
|
-
return oInitialDependency.dependencies.reduce(function (oPreviousPromise, sChangeId) {
|
|
396
|
-
return oPreviousPromise.then(function () {
|
|
397
|
-
return fnDependencyValidation(sChangeId);
|
|
398
|
-
}).then(function (bDependencyIsStillValid) {
|
|
399
|
-
if (bDependencyIsStillValid) {
|
|
400
|
-
this._mChanges.mDependentChangesOnMe[sChangeId] = this._mChanges.mDependentChangesOnMe[sChangeId] || [];
|
|
401
|
-
this._mChanges.mDependentChangesOnMe[sChangeId].push(oChange.getId());
|
|
402
|
-
aNewValidDependencies.push(sChangeId);
|
|
403
|
-
}
|
|
404
|
-
}.bind(this));
|
|
405
|
-
}.bind(this), Promise.resolve())
|
|
406
|
-
.then(function () {
|
|
407
|
-
copyDependencies.call(this, oInitialDependency, aNewValidDependencies, oAppComponent, oChange);
|
|
408
|
-
return this._mChanges;
|
|
409
|
-
}.bind(this));
|
|
410
|
-
}
|
|
411
|
-
return Promise.resolve(this._mChanges);
|
|
412
|
-
};
|
|
413
|
-
|
|
414
375
|
/**
|
|
415
376
|
* Adds a new change into changes map positioned right after the referenced change and updates the change dependencies
|
|
416
377
|
*
|
|
417
378
|
* @param {sap.ui.core.Component} oAppComponent - Application component for the view
|
|
418
|
-
* @param {sap.ui.fl.
|
|
419
|
-
* @param {sap.ui.fl.
|
|
379
|
+
* @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oChange - Change instance
|
|
380
|
+
* @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} [oReferenceChange] - Reference change. New change is positioned right after this one in the changes map
|
|
420
381
|
*/
|
|
421
382
|
ChangePersistence.prototype.addChangeAndUpdateDependencies = function(oAppComponent, oChange, oReferenceChange) {
|
|
422
383
|
// the change status should always be initial when it gets added to the map / dependencies
|
|
@@ -433,7 +394,7 @@ sap.ui.define([
|
|
|
433
394
|
};
|
|
434
395
|
|
|
435
396
|
/**
|
|
436
|
-
* Getter for the private aggregation containing sap.ui.fl.
|
|
397
|
+
* Getter for the private aggregation containing sap.ui.fl.apply._internal.flexObjects.FlexObject objects mapped by their selector ids.
|
|
437
398
|
* @return {map} mChanges mapping with changes sorted by their selector ids
|
|
438
399
|
* @public
|
|
439
400
|
*/
|
|
@@ -446,7 +407,7 @@ sap.ui.define([
|
|
|
446
407
|
* @param {map} mPropertyBag - Contains additional data needed for reading changes
|
|
447
408
|
* @param {string} [mPropertyBag.layer] - Specifies a single layer for loading changes
|
|
448
409
|
* @param {boolean} [mPropertyBag.includeDirtyChanges] - Whether dirty changes of the current session should be included
|
|
449
|
-
* @returns {sap.ui.fl.
|
|
410
|
+
* @returns {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} Array of changes
|
|
450
411
|
* @public
|
|
451
412
|
*/
|
|
452
413
|
ChangePersistence.prototype.getAllUIChanges = function(mPropertyBag) {
|
|
@@ -506,7 +467,7 @@ sap.ui.define([
|
|
|
506
467
|
*
|
|
507
468
|
* @param {object} vChange - The complete and finalized JSON object representation the file content of the change or a Change instance
|
|
508
469
|
* @param {sap.ui.core.Component} oAppComponent - Application component instance
|
|
509
|
-
* @returns {sap.ui.fl.
|
|
470
|
+
* @returns {sap.ui.fl.apply._internal.flexObjects.FlexObject} the newly created change
|
|
510
471
|
* @public
|
|
511
472
|
*/
|
|
512
473
|
ChangePersistence.prototype.addChange = function(vChange, oAppComponent) {
|
|
@@ -521,23 +482,21 @@ sap.ui.define([
|
|
|
521
482
|
* Adds a new dirty change.
|
|
522
483
|
*
|
|
523
484
|
* @param {object} vChange - JSON object of change or change object
|
|
524
|
-
* @returns {sap.ui.fl.
|
|
485
|
+
* @returns {sap.ui.fl.apply._internal.flexObjects.FlexObject} The prepared change object
|
|
525
486
|
* @public
|
|
526
487
|
*/
|
|
527
488
|
ChangePersistence.prototype.addDirtyChange = function(vChange) {
|
|
528
489
|
var oNewChange;
|
|
529
|
-
if (
|
|
530
|
-
typeof vChange.isA === "function"
|
|
531
|
-
&& (vChange.isA("sap.ui.fl.Change") || vChange.isA("sap.ui.fl.apply._internal.flexObjects.FlexObject"))
|
|
532
|
-
) {
|
|
490
|
+
if (typeof vChange.isA === "function" && vChange.isA("sap.ui.fl.apply._internal.flexObjects.FlexObject")) {
|
|
533
491
|
oNewChange = vChange;
|
|
534
492
|
} else {
|
|
535
|
-
oNewChange =
|
|
493
|
+
oNewChange = FlexObjectFactory.createFromFileContent(vChange);
|
|
536
494
|
}
|
|
537
495
|
|
|
538
496
|
// don't add the same change twice
|
|
539
497
|
if (this._aDirtyChanges.indexOf(oNewChange) === -1) {
|
|
540
498
|
this._aDirtyChanges.push(oNewChange);
|
|
499
|
+
FlexState.addDirtyFlexObject(this._mComponent.name, oNewChange);
|
|
541
500
|
}
|
|
542
501
|
return oNewChange;
|
|
543
502
|
};
|
|
@@ -639,9 +598,9 @@ sap.ui.define([
|
|
|
639
598
|
}
|
|
640
599
|
var aPersistedAndSameLayerChanges = this._mChanges.aChanges.filter(function(oChange) {
|
|
641
600
|
if (sLayer === Layer.CUSTOMER && aDraftFilenames) {
|
|
642
|
-
return oChange.getState() ===
|
|
601
|
+
return oChange.getState() === States.LifecycleState.PERSISTED && aDraftFilenames.includes(oChange.getId());
|
|
643
602
|
}
|
|
644
|
-
return oChange.getState() ===
|
|
603
|
+
return oChange.getState() === States.LifecycleState.PERSISTED && LayerUtils.compareAgainstCurrentLayer(oChange.getLayer(), sLayer) === 0;
|
|
645
604
|
});
|
|
646
605
|
return aPersistedAndSameLayerChanges.concat(aDirtyChanges);
|
|
647
606
|
}
|
|
@@ -650,7 +609,7 @@ sap.ui.define([
|
|
|
650
609
|
if (aDirtyChanges.length) {
|
|
651
610
|
var aRequests = getRequests(aDirtyChanges);
|
|
652
611
|
var aStates = getStates(aDirtyChanges);
|
|
653
|
-
return aStates.length === 1 && aRequests.length === 1 && aStates[0] ===
|
|
612
|
+
return aStates.length === 1 && aRequests.length === 1 && aStates[0] === States.LifecycleState.NEW;
|
|
654
613
|
}
|
|
655
614
|
return true;
|
|
656
615
|
}
|
|
@@ -665,7 +624,7 @@ sap.ui.define([
|
|
|
665
624
|
* @param {sap.ui.core.UIComponent} [oAppComponent] - AppComponent instance
|
|
666
625
|
* @param {boolean} [bSkipUpdateCache] - If true, then the dirty change shall be saved for the new created app variant, but not for the current app;
|
|
667
626
|
* therefore, the cache update of the current app is skipped because the dirty change is not saved for the running app.
|
|
668
|
-
* @param {sap.ui.fl.
|
|
627
|
+
* @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} [aChanges] - If passed only those changes are saved
|
|
669
628
|
* @param {string} sParentVersion - Parent version
|
|
670
629
|
* @param {string[]} [aDraftFilenames] - Filenames from persisted changes draft version
|
|
671
630
|
* @param {boolean} [bCondenseAnyLayer] - This will enable condensing regardless of the current layer
|
|
@@ -728,7 +687,7 @@ sap.ui.define([
|
|
|
728
687
|
* to ensure the correct order, the methods are called sequentially;
|
|
729
688
|
* after a change was saved successfully, it is removed from the dirty changes and the cache is updated.
|
|
730
689
|
*
|
|
731
|
-
* @param {sap.ui.fl.
|
|
690
|
+
* @param {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} aDirtyChanges - Array of dirty changes to be saved
|
|
732
691
|
* @param {boolean} [bSkipUpdateCache] If true, then the dirty change shall be saved for the new created app variant, but not for the current app;
|
|
733
692
|
* therefore, the cache update of the current app is skipped because the dirty change is not saved for the running app.
|
|
734
693
|
* @param {string} [sParentVersion] - Indicates if changes should be written as a draft and on which version the changes should be based on
|
|
@@ -740,7 +699,7 @@ sap.ui.define([
|
|
|
740
699
|
// in case of changes saved for a draft only the first writing operation must have the parentVersion targeting the basis
|
|
741
700
|
// followup changes must point the the existing draft created with the first request
|
|
742
701
|
var aNewChanges = aDirtyChanges.filter(function (oChange) {
|
|
743
|
-
return oChange.getState() ===
|
|
702
|
+
return oChange.getState() === States.LifecycleState.NEW;
|
|
744
703
|
});
|
|
745
704
|
oFirstNewChange = [].concat(aNewChanges).shift();
|
|
746
705
|
}
|
|
@@ -754,7 +713,7 @@ sap.ui.define([
|
|
|
754
713
|
|
|
755
714
|
function performSingleSaveAction(oDirtyChange, oFirstChange, sParentVersion) {
|
|
756
715
|
switch (oDirtyChange.getState()) {
|
|
757
|
-
case
|
|
716
|
+
case States.LifecycleState.NEW:
|
|
758
717
|
if (sParentVersion !== undefined) {
|
|
759
718
|
sParentVersion = oDirtyChange === oFirstChange ? sParentVersion : Version.Number.Draft;
|
|
760
719
|
}
|
|
@@ -764,7 +723,7 @@ sap.ui.define([
|
|
|
764
723
|
transport: oDirtyChange.getRequest(),
|
|
765
724
|
parentVersion: sParentVersion
|
|
766
725
|
});
|
|
767
|
-
case
|
|
726
|
+
case States.LifecycleState.DELETED:
|
|
768
727
|
return Storage.remove({
|
|
769
728
|
flexObject: oDirtyChange.convertToFileContent(),
|
|
770
729
|
layer: oDirtyChange.getLayer(),
|
|
@@ -777,7 +736,7 @@ sap.ui.define([
|
|
|
777
736
|
|
|
778
737
|
/**
|
|
779
738
|
* Updates the cache with the dirty change passed and removes it from the array of dirty changes if present.
|
|
780
|
-
* @param {sap.ui.fl.
|
|
739
|
+
* @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oDirtyChange Dirty change which was saved
|
|
781
740
|
* @param {boolean} [bSkipUpdateCache] If true, then the dirty change shall be saved for the new created app variant, but not for the current app
|
|
782
741
|
* therefore, the cache update of the current app is skipped
|
|
783
742
|
*/
|
|
@@ -794,15 +753,15 @@ sap.ui.define([
|
|
|
794
753
|
});
|
|
795
754
|
} else {
|
|
796
755
|
switch (oDirtyChange.getState()) {
|
|
797
|
-
case
|
|
798
|
-
oDirtyChange.setState(
|
|
756
|
+
case States.LifecycleState.NEW:
|
|
757
|
+
oDirtyChange.setState(States.LifecycleState.PERSISTED);
|
|
799
758
|
Cache.addChange(this._mComponent, oDirtyChange.convertToFileContent());
|
|
800
759
|
break;
|
|
801
|
-
case
|
|
760
|
+
case States.LifecycleState.DELETED:
|
|
802
761
|
Cache.deleteChange(this._mComponent, oDirtyChange.convertToFileContent());
|
|
803
762
|
break;
|
|
804
|
-
case
|
|
805
|
-
oDirtyChange.setState(
|
|
763
|
+
case States.LifecycleState.DIRTY:
|
|
764
|
+
oDirtyChange.setState(States.LifecycleState.PERSISTED);
|
|
806
765
|
Cache.updateChange(this._mComponent, oDirtyChange.convertToFileContent());
|
|
807
766
|
break;
|
|
808
767
|
}
|
|
@@ -811,7 +770,7 @@ sap.ui.define([
|
|
|
811
770
|
};
|
|
812
771
|
|
|
813
772
|
/**
|
|
814
|
-
* @param {sap.ui.fl.
|
|
773
|
+
* @param {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} aDirtyChanges - Array of dirty changes
|
|
815
774
|
* @param {boolean} [bSkipUpdateCache]- If <code>true</code>, then the dirty change shall be saved for the newly created app variant, but not for the current app;
|
|
816
775
|
* therefore, the cache update of the current app is skipped because the dirty change is not saved for the running app.
|
|
817
776
|
*/
|
|
@@ -871,17 +830,18 @@ sap.ui.define([
|
|
|
871
830
|
*
|
|
872
831
|
* Otherwise it will be marked for deletion.
|
|
873
832
|
*
|
|
874
|
-
* @param {sap.ui.fl.
|
|
833
|
+
* @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oChange the change to be deleted
|
|
875
834
|
* @param {boolean} [bRunTimeCreatedChange] set if the change was created at runtime
|
|
876
835
|
*/
|
|
877
836
|
ChangePersistence.prototype.deleteChange = function(oChange, bRunTimeCreatedChange) {
|
|
878
837
|
var nIndexInDirtyChanges = this._aDirtyChanges.indexOf(oChange);
|
|
879
838
|
|
|
880
839
|
if (nIndexInDirtyChanges > -1) {
|
|
881
|
-
if (oChange.getState() ===
|
|
840
|
+
if (oChange.getState() === States.LifecycleState.DELETED) {
|
|
882
841
|
return;
|
|
883
842
|
}
|
|
884
843
|
this._aDirtyChanges.splice(nIndexInDirtyChanges, 1);
|
|
844
|
+
FlexState.removeDirtyFlexObject(this._mComponent.name, oChange);
|
|
885
845
|
this._deleteChangeInMap(oChange, bRunTimeCreatedChange);
|
|
886
846
|
return;
|
|
887
847
|
}
|
|
@@ -896,6 +856,7 @@ sap.ui.define([
|
|
|
896
856
|
|
|
897
857
|
if (nIndexInDirtyChanges > -1) {
|
|
898
858
|
this._aDirtyChanges.splice(nIndexInDirtyChanges, 1);
|
|
859
|
+
FlexState.removeDirtyFlexObject(this._mComponent.name, oChange);
|
|
899
860
|
}
|
|
900
861
|
this._deleteChangeInMap(oChange);
|
|
901
862
|
};
|
|
@@ -903,7 +864,7 @@ sap.ui.define([
|
|
|
903
864
|
/**
|
|
904
865
|
* Deletes a change object from the internal map.
|
|
905
866
|
*
|
|
906
|
-
* @param {sap.ui.fl.
|
|
867
|
+
* @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oChange change which has to be removed from the mapping
|
|
907
868
|
* @param {boolean} [bRunTimeCreatedChange] set if the change was created at runtime
|
|
908
869
|
* @private
|
|
909
870
|
*/
|
|
@@ -918,7 +879,7 @@ sap.ui.define([
|
|
|
918
879
|
}
|
|
919
880
|
|
|
920
881
|
function isPersistedAndInLayer(sLayer, oObject) {
|
|
921
|
-
return oObject.getState() ===
|
|
882
|
+
return oObject.getState() === States.LifecycleState.PERSISTED && oObject.getLayer() === sLayer;
|
|
922
883
|
}
|
|
923
884
|
|
|
924
885
|
function getAllCompVariantsEntities() {
|
|
@@ -964,7 +925,7 @@ sap.ui.define([
|
|
|
964
925
|
* Collect changes from the internal map by names
|
|
965
926
|
*
|
|
966
927
|
* @param {string[]} aNames Names of changes
|
|
967
|
-
* @returns {sap.ui.fl.
|
|
928
|
+
* @returns {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} aChanges Array of changes with corresponding names
|
|
968
929
|
* @private
|
|
969
930
|
*/
|
|
970
931
|
ChangePersistence.prototype._getChangesFromMapByNames = function(aNames) {
|
|
@@ -1014,7 +975,8 @@ sap.ui.define([
|
|
|
1014
975
|
aChangesToBeRemoved.forEach(function (oChange) {
|
|
1015
976
|
var nIndex = aDirtyChanges.indexOf(oChange);
|
|
1016
977
|
aDirtyChanges.splice(nIndex, 1);
|
|
1017
|
-
|
|
978
|
+
FlexState.removeDirtyFlexObject(this._mComponent.name, oChange);
|
|
979
|
+
}.bind(this));
|
|
1018
980
|
|
|
1019
981
|
return Promise.resolve(aChangesToBeRemoved);
|
|
1020
982
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 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.ChangePersistenceFactory
|
|
31
31
|
* @experimental Since 1.27.0
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.110.0
|
|
34
34
|
* @private
|
|
35
35
|
* @ui5-restricted sap.ui.fl
|
|
36
36
|
*/
|