@openui5/sap.ui.fl 1.124.2 → 1.126.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 +9 -4
- package/THIRDPARTY.txt +13 -6
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/ChangePersistence.js +4 -2
- package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
- package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +1 -1
- package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +1 -1
- package/src/sap/ui/fl/FakeLrepLocalStorage.js +1 -1
- package/src/sap/ui/fl/FlexController.js +18 -169
- package/src/sap/ui/fl/FlexControllerFactory.js +1 -1
- package/src/sap/ui/fl/LayerUtils.js +1 -1
- package/src/sap/ui/fl/Utils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Applier.js +6 -5
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +19 -10
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +3 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewInbound.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/RemoveAllInboundsExceptOne.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetCloudDevAdaptationStatus.js +59 -0
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +1 -1
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +34 -45
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Registry.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/getVariantAuthor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexObjectState.js +249 -0
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +3 -2
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +4 -4
- package/src/sap/ui/fl/apply/_internal/flexState/changes/UIChangesState.js +6 -138
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +1 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +32 -34
- package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +1 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +1 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +4 -4
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +6 -1
- package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +12 -0
- package/src/sap/ui/fl/apply/api/ExtensionPointRegistryAPI.js +12 -0
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +7 -8
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +14 -4
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/fl/changeHandler/Base.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +11 -1
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +2 -1
- package/src/sap/ui/fl/changeHandler/BaseRename.js +5 -1
- package/src/sap/ui/fl/changeHandler/HideControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/MoveControls.js +1 -1
- package/src/sap/ui/fl/changeHandler/MoveElements.js +1 -1
- package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +1 -1
- package/src/sap/ui/fl/changeHandler/PropertyChange.js +1 -1
- package/src/sap/ui/fl/changeHandler/StashControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UnhideControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UnstashControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +4 -4
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
- package/src/sap/ui/fl/initial/_internal/FlexConfiguration.js +1 -1
- package/src/sap/ui/fl/initial/_internal/Storage.js +2 -2
- package/src/sap/ui/fl/initial/_internal/StorageFeaturesMerger.js +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +1 -1
- 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/connectors/Utils.js +1 -1
- package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +1 -1
- package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +1 -1
- package/src/sap/ui/fl/interfaces/Delegate.js +1 -1
- package/src/sap/ui/fl/library.js +43 -43
- package/src/sap/ui/fl/messagebundle.properties +15 -0
- package/src/sap/ui/fl/messagebundle_ar.properties +11 -1
- package/src/sap/ui/fl/messagebundle_bg.properties +10 -0
- package/src/sap/ui/fl/messagebundle_ca.properties +10 -0
- package/src/sap/ui/fl/messagebundle_cnr.properties +10 -0
- package/src/sap/ui/fl/messagebundle_cs.properties +10 -0
- package/src/sap/ui/fl/messagebundle_cy.properties +10 -0
- package/src/sap/ui/fl/messagebundle_da.properties +10 -0
- package/src/sap/ui/fl/messagebundle_de.properties +10 -0
- package/src/sap/ui/fl/messagebundle_el.properties +10 -0
- package/src/sap/ui/fl/messagebundle_en.properties +10 -0
- package/src/sap/ui/fl/messagebundle_en_GB.properties +10 -0
- package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +10 -0
- package/src/sap/ui/fl/messagebundle_es.properties +10 -0
- package/src/sap/ui/fl/messagebundle_es_MX.properties +10 -0
- package/src/sap/ui/fl/messagebundle_et.properties +10 -0
- package/src/sap/ui/fl/messagebundle_fi.properties +10 -0
- package/src/sap/ui/fl/messagebundle_fr.properties +10 -0
- package/src/sap/ui/fl/messagebundle_fr_CA.properties +10 -0
- package/src/sap/ui/fl/messagebundle_hi.properties +10 -0
- package/src/sap/ui/fl/messagebundle_hr.properties +10 -0
- package/src/sap/ui/fl/messagebundle_hu.properties +10 -0
- package/src/sap/ui/fl/messagebundle_id.properties +10 -0
- package/src/sap/ui/fl/messagebundle_it.properties +10 -0
- package/src/sap/ui/fl/messagebundle_iw.properties +10 -0
- package/src/sap/ui/fl/messagebundle_ja.properties +10 -0
- package/src/sap/ui/fl/messagebundle_kk.properties +10 -0
- package/src/sap/ui/fl/messagebundle_ko.properties +10 -0
- package/src/sap/ui/fl/messagebundle_lt.properties +10 -0
- package/src/sap/ui/fl/messagebundle_lv.properties +10 -0
- package/src/sap/ui/fl/messagebundle_mk.properties +10 -0
- package/src/sap/ui/fl/messagebundle_ms.properties +10 -0
- package/src/sap/ui/fl/messagebundle_nl.properties +10 -0
- package/src/sap/ui/fl/messagebundle_no.properties +10 -0
- package/src/sap/ui/fl/messagebundle_pl.properties +10 -0
- package/src/sap/ui/fl/messagebundle_pt.properties +10 -0
- package/src/sap/ui/fl/messagebundle_pt_PT.properties +10 -0
- package/src/sap/ui/fl/messagebundle_ro.properties +10 -0
- package/src/sap/ui/fl/messagebundle_ru.properties +10 -0
- package/src/sap/ui/fl/messagebundle_sh.properties +10 -0
- package/src/sap/ui/fl/messagebundle_sk.properties +11 -1
- package/src/sap/ui/fl/messagebundle_sl.properties +16 -6
- package/src/sap/ui/fl/messagebundle_sr.properties +10 -0
- package/src/sap/ui/fl/messagebundle_sv.properties +10 -0
- package/src/sap/ui/fl/messagebundle_th.properties +10 -0
- package/src/sap/ui/fl/messagebundle_tr.properties +10 -0
- package/src/sap/ui/fl/messagebundle_uk.properties +10 -0
- package/src/sap/ui/fl/messagebundle_vi.properties +10 -0
- package/src/sap/ui/fl/messagebundle_zh_CN.properties +10 -0
- package/src/sap/ui/fl/messagebundle_zh_TW.properties +10 -0
- package/src/sap/ui/fl/registry/Settings.js +10 -0
- package/src/sap/ui/fl/support/_internal/getAllUIChanges.js +1 -1
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +1 -1
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +1 -1
- package/src/sap/ui/fl/support/api/SupportAPI.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +2 -3
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
- package/src/sap/ui/fl/themes/sap_hcb/library.source.less +12 -1
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/IFrame.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
- package/src/sap/ui/fl/util/resolveBinding.js +1 -1
- package/src/sap/ui/fl/variants/VariantModel.js +75 -39
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +2 -2
- package/src/sap/ui/fl/variants/context/i18n/i18n_sh.properties +3 -3
- package/src/sap/ui/fl/write/_internal/Storage.js +9 -1
- package/src/sap/ui/fl/write/_internal/Versions.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BtpServiceConnector.js +31 -5
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/Utils.js +1 -1
- package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +4 -3
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +290 -131
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +1 -5
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -1
- package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +44 -7
- package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +43 -1
- package/src/sap/ui/fl/write/api/ContextSharingAPI.js +39 -25
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +8 -9
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +45 -0
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +14 -6
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +24 -0
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +2 -0
- package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +0 -2
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +24 -0
package/.reuse/dep5
CHANGED
|
@@ -50,6 +50,11 @@ Copyright: Mario Heiderich
|
|
|
50
50
|
License: Apache-2.0
|
|
51
51
|
Comment: these files belong to: purify.js
|
|
52
52
|
|
|
53
|
+
Files: src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.css src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.js
|
|
54
|
+
Copyright: jQuery Foundation and other contributors, https://jquery.org/
|
|
55
|
+
License: MIT
|
|
56
|
+
Comment: these files belong to: QUnit Composite 2.0.0
|
|
57
|
+
|
|
53
58
|
|
|
54
59
|
# Library: sap.ui.codeeditor:
|
|
55
60
|
|
|
@@ -379,13 +384,13 @@ Copyright: 2017 Wei Song and Oliver Nightingale
|
|
|
379
384
|
License: MIT
|
|
380
385
|
Comment: these files belong to: Elasticlunr
|
|
381
386
|
|
|
382
|
-
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-
|
|
383
|
-
Copyright:
|
|
387
|
+
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/*
|
|
388
|
+
Copyright: SpryMedia Ltd
|
|
384
389
|
License: MIT
|
|
385
390
|
Comment: these files belong to: DataTables
|
|
386
391
|
|
|
387
|
-
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-
|
|
388
|
-
Copyright:
|
|
392
|
+
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/*
|
|
393
|
+
Copyright: SpryMedia Ltd
|
|
389
394
|
License: MIT
|
|
390
395
|
Comment: these files belong to: Buttons extension for DataTables
|
|
391
396
|
|
package/THIRDPARTY.txt
CHANGED
|
@@ -12,6 +12,13 @@ License: Apache-2.0
|
|
|
12
12
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
13
13
|
Contained in: src/sap.m/src/sap/m/_thirdparty/purify.js
|
|
14
14
|
|
|
15
|
+
Component: QUnit Composite 2.0.0, version: 2.0.0
|
|
16
|
+
Copyright: jQuery Foundation and other contributors, https://jquery.org/
|
|
17
|
+
License: MIT
|
|
18
|
+
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
19
|
+
Contained in: src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.css
|
|
20
|
+
src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.js
|
|
21
|
+
|
|
15
22
|
|
|
16
23
|
Library: sap.ui.codeeditor:
|
|
17
24
|
|
|
@@ -356,17 +363,17 @@ License: MIT
|
|
|
356
363
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
357
364
|
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/elasticlunr.js
|
|
358
365
|
|
|
359
|
-
Component: DataTables, version:
|
|
360
|
-
Copyright:
|
|
366
|
+
Component: DataTables, version: 2.0.1
|
|
367
|
+
Copyright: SpryMedia Ltd
|
|
361
368
|
License: MIT
|
|
362
369
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
363
|
-
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-
|
|
370
|
+
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/*
|
|
364
371
|
|
|
365
|
-
Component: Buttons extension for DataTables, version:
|
|
366
|
-
Copyright:
|
|
372
|
+
Component: Buttons extension for DataTables, version: 3.0.0
|
|
373
|
+
Copyright: SpryMedia Ltd
|
|
367
374
|
License: MIT
|
|
368
375
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
369
|
-
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-
|
|
376
|
+
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/*
|
|
370
377
|
|
|
371
378
|
|
|
372
379
|
Library: sap.ui.integration:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.fl",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.126.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.126.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.126.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/src/sap/ui/fl/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2024 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.126.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with sap.ui.fl controls.</documentation>
|
|
12
12
|
|
|
@@ -15,6 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
"sap/ui/fl/apply/_internal/flexState/changes/UIChangesState",
|
|
16
16
|
"sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState",
|
|
17
17
|
"sap/ui/fl/apply/_internal/flexState/DataSelector",
|
|
18
|
+
"sap/ui/fl/apply/_internal/flexState/FlexObjectState",
|
|
18
19
|
"sap/ui/fl/apply/_internal/flexState/FlexState",
|
|
19
20
|
"sap/ui/fl/initial/api/Version",
|
|
20
21
|
"sap/ui/fl/registry/Settings",
|
|
@@ -34,6 +35,7 @@ sap.ui.define([
|
|
|
34
35
|
UIChangesState,
|
|
35
36
|
VariantManagementState,
|
|
36
37
|
DataSelector,
|
|
38
|
+
FlexObjectState,
|
|
37
39
|
FlexState,
|
|
38
40
|
Version,
|
|
39
41
|
Settings,
|
|
@@ -66,7 +68,7 @@ sap.ui.define([
|
|
|
66
68
|
*
|
|
67
69
|
* @constructor
|
|
68
70
|
* @author SAP SE
|
|
69
|
-
* @version 1.
|
|
71
|
+
* @version 1.126.0
|
|
70
72
|
* @since 1.25.0
|
|
71
73
|
* @private
|
|
72
74
|
* @param {object} mComponent - Component data to initiate <code>ChangePersistence</code> instance
|
|
@@ -167,7 +169,7 @@ sap.ui.define([
|
|
|
167
169
|
* @public
|
|
168
170
|
*/
|
|
169
171
|
ChangePersistence.prototype.getDependencyMapForComponent = function() {
|
|
170
|
-
return
|
|
172
|
+
return FlexObjectState.getLiveDependencyMap(this._mComponent.name);
|
|
171
173
|
};
|
|
172
174
|
|
|
173
175
|
function finalizeChangeCreation(oChange, oAppComponent) {
|
|
@@ -5,66 +5,35 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/fl/Utils",
|
|
9
8
|
"sap/ui/fl/Layer",
|
|
10
9
|
"sap/ui/fl/ChangePersistenceFactory",
|
|
11
10
|
"sap/ui/fl/write/_internal/Versions",
|
|
12
11
|
"sap/ui/fl/apply/_internal/changes/Reverter",
|
|
13
|
-
"sap/ui/fl/apply/_internal/controlVariants/URLHandler",
|
|
14
12
|
"sap/ui/fl/apply/_internal/flexObjects/States",
|
|
15
|
-
"sap/ui/fl/apply/_internal/flexState/changes/UIChangesState",
|
|
16
13
|
"sap/ui/fl/apply/_internal/flexState/FlexState",
|
|
17
|
-
"sap/ui/
|
|
18
|
-
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
19
|
-
"sap/ui/core/Element"
|
|
14
|
+
"sap/ui/core/util/reflection/JsControlTreeModifier"
|
|
20
15
|
], function(
|
|
21
|
-
Utils,
|
|
22
16
|
Layer,
|
|
23
17
|
ChangePersistenceFactory,
|
|
24
18
|
Versions,
|
|
25
19
|
Reverter,
|
|
26
|
-
URLHandler,
|
|
27
20
|
States,
|
|
28
|
-
UIChangesState,
|
|
29
21
|
FlexState,
|
|
30
|
-
|
|
31
|
-
JsControlTreeModifier,
|
|
32
|
-
Element
|
|
22
|
+
JsControlTreeModifier
|
|
33
23
|
) {
|
|
34
24
|
"use strict";
|
|
35
25
|
|
|
36
|
-
function revertChangesAndUpdateVariantModel(oComponent,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
return undefined;
|
|
49
|
-
}.bind(this))
|
|
50
|
-
.then(function() {
|
|
51
|
-
if (oComponent) {
|
|
52
|
-
var oModel = oComponent.getModel(ControlVariantApplyAPI.getVariantModelName());
|
|
53
|
-
if (oModel) {
|
|
54
|
-
// Temporary fix, parameters generally should not be removed
|
|
55
|
-
if (!bSkipUrlUpdate) {
|
|
56
|
-
URLHandler.update({
|
|
57
|
-
parameters: [],
|
|
58
|
-
updateURL: true,
|
|
59
|
-
updateHashEntry: true,
|
|
60
|
-
model: oModel
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return aChanges;
|
|
67
|
-
});
|
|
26
|
+
async function revertChangesAndUpdateVariantModel(oComponent, aChanges) {
|
|
27
|
+
if (aChanges.length !== 0) {
|
|
28
|
+
// Always revert changes in reverse order
|
|
29
|
+
aChanges.reverse();
|
|
30
|
+
await Reverter.revertMultipleChanges(aChanges, {
|
|
31
|
+
appComponent: oComponent,
|
|
32
|
+
modifier: JsControlTreeModifier,
|
|
33
|
+
reference: this._sComponentName
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return aChanges;
|
|
68
37
|
}
|
|
69
38
|
|
|
70
39
|
/**
|
|
@@ -77,7 +46,7 @@ sap.ui.define([
|
|
|
77
46
|
* @since 1.27.0
|
|
78
47
|
* @private
|
|
79
48
|
* @author SAP SE
|
|
80
|
-
* @version 1.
|
|
49
|
+
* @version 1.126.0
|
|
81
50
|
*/
|
|
82
51
|
var FlexController = function(sComponentName) {
|
|
83
52
|
this._oChangePersistence = undefined;
|
|
@@ -87,131 +56,12 @@ sap.ui.define([
|
|
|
87
56
|
}
|
|
88
57
|
};
|
|
89
58
|
|
|
90
|
-
/**
|
|
91
|
-
* Sets the variant switch promise
|
|
92
|
-
*
|
|
93
|
-
* @param {Promise} oPromise variant switch promise
|
|
94
|
-
*/
|
|
95
|
-
FlexController.prototype.setVariantSwitchPromise = function(oPromise) {
|
|
96
|
-
this._oVariantSwitchPromise = oPromise;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Returns the variant switch promise. By default this is a resolved promise
|
|
101
|
-
*
|
|
102
|
-
* @returns {Promise} variant switch promise
|
|
103
|
-
*/
|
|
104
|
-
FlexController.prototype.waitForVariantSwitch = function() {
|
|
105
|
-
this._oVariantSwitchPromise ||= Promise.resolve();
|
|
106
|
-
return this._oVariantSwitchPromise;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
function checkDependencies(oChange, mDependencies, mChanges, oAppComponent, aRelevantChanges) {
|
|
110
|
-
var bResult = canChangePotentiallyBeApplied(oChange, oAppComponent);
|
|
111
|
-
if (!bResult) {
|
|
112
|
-
return [];
|
|
113
|
-
}
|
|
114
|
-
aRelevantChanges.push(oChange);
|
|
115
|
-
var sDependencyKey = oChange.getId();
|
|
116
|
-
var aDependentChanges = mDependencies[sDependencyKey] && mDependencies[sDependencyKey].dependencies || [];
|
|
117
|
-
for (var i = 0, n = aDependentChanges.length; i < n; i++) {
|
|
118
|
-
var oDependentChange = Utils.getChangeFromChangesMap(mChanges, aDependentChanges[i]);
|
|
119
|
-
bResult = checkDependencies(oDependentChange, mDependencies, mChanges, oAppComponent, aRelevantChanges);
|
|
120
|
-
if (bResult.length === 0) {
|
|
121
|
-
aRelevantChanges = [];
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
delete mDependencies[sDependencyKey];
|
|
125
|
-
}
|
|
126
|
-
return aRelevantChanges;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
function canChangePotentiallyBeApplied(oChange, oAppComponent) {
|
|
130
|
-
// is control available
|
|
131
|
-
var aSelectors = oChange.getDependentControlSelectorList();
|
|
132
|
-
aSelectors.push(oChange.getSelector());
|
|
133
|
-
return !aSelectors.some(function(oSelector) {
|
|
134
|
-
return !JsControlTreeModifier.bySelector(oSelector, oAppComponent);
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Resolves with a promise after all the changes for all controls that are passed have been processed.
|
|
140
|
-
*
|
|
141
|
-
* @param {object[]} aSelectors - An array containing an object with {@link sap.ui.fl.Selector} and further configuration
|
|
142
|
-
* @param {sap.ui.fl.Selector} aSelectors.selector - A {@link sap.ui.fl.Selector}
|
|
143
|
-
* @param {string[]} [aSelectors.changeTypes] - An array containing the change types that will be considered. If empty no filtering will be done
|
|
144
|
-
* @param {boolean} [bSkipWaitForVariantSwitch] - Whether to skip waiting for the variant switch promise
|
|
145
|
-
* @returns {Promise} Resolves when all changes on the controls have been processed
|
|
146
|
-
*/
|
|
147
|
-
FlexController.prototype.waitForChangesToBeApplied = function(aSelectors, bSkipWaitForVariantSwitch) {
|
|
148
|
-
var aPromises = aSelectors.map(function(mSelector) {
|
|
149
|
-
return this._waitForChangesToBeApplied(mSelector, bSkipWaitForVariantSwitch);
|
|
150
|
-
}.bind(this));
|
|
151
|
-
return Promise.all(aPromises)
|
|
152
|
-
.then(function() {
|
|
153
|
-
// the return value is not important in this function, only that it resolves
|
|
154
|
-
return undefined;
|
|
155
|
-
});
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Resolves with a Promise after all relevant changes for this control have been processed.
|
|
160
|
-
*
|
|
161
|
-
* @param {object} mPropertyBag - Object with control and list of change types
|
|
162
|
-
* @param {sap.ui.fl.Selector} mPropertyBag.selector - A {@link sap.ui.fl.Selector}
|
|
163
|
-
* @param {string[]} mPropertyBag.changeTypes - An array containing the change types that should be considered
|
|
164
|
-
* @param {boolean} [bSkipWaitForVariantSwitch] - Whether to skip waiting for the variant switch promise
|
|
165
|
-
* @returns {Promise} Resolves when all changes on the control have been processed
|
|
166
|
-
*/
|
|
167
|
-
FlexController.prototype._waitForChangesToBeApplied = function(mPropertyBag, bSkipWaitForVariantSwitch) {
|
|
168
|
-
function filterChanges(oChange) {
|
|
169
|
-
return !oChange.isCurrentProcessFinished()
|
|
170
|
-
&& (mPropertyBag.changeTypes.length === 0 || mPropertyBag.changeTypes.includes(oChange.getChangeType()));
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
const oControl = mPropertyBag.selector.id && Element.getElementById(mPropertyBag.selector.id) || mPropertyBag.selector;
|
|
174
|
-
const oAppComponent = mPropertyBag.selector.appComponent || Utils.getAppComponentForControl(oControl);
|
|
175
|
-
|
|
176
|
-
mPropertyBag.changeTypes ||= [];
|
|
177
|
-
var mChangesMap = UIChangesState.getLiveDependencyMap(this._sComponentName);
|
|
178
|
-
var aPromises = [];
|
|
179
|
-
var mDependencies = Object.assign({}, mChangesMap.mDependencies);
|
|
180
|
-
var {mChanges} = mChangesMap;
|
|
181
|
-
var aChangesForControl = mChanges[oControl.getId()] || [];
|
|
182
|
-
|
|
183
|
-
// filter out already applied changes and, if given, filter by change type
|
|
184
|
-
var aNotYetProcessedChanges = aChangesForControl.filter(filterChanges);
|
|
185
|
-
|
|
186
|
-
var aRelevantChanges = [];
|
|
187
|
-
aNotYetProcessedChanges.forEach(function(oChange) {
|
|
188
|
-
var aChanges = checkDependencies(oChange, mDependencies, mChangesMap.mChanges, oAppComponent, []);
|
|
189
|
-
aChanges.forEach(function(oDependentChange) {
|
|
190
|
-
if (aRelevantChanges.indexOf(oDependentChange) === -1) {
|
|
191
|
-
aRelevantChanges.push(oDependentChange);
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
});
|
|
195
|
-
|
|
196
|
-
// attach promises to the relevant Changes and wait for them to be applied
|
|
197
|
-
aRelevantChanges.forEach(function(oChange) {
|
|
198
|
-
aPromises = aPromises.concat(oChange.addChangeProcessingPromises());
|
|
199
|
-
}, this);
|
|
200
|
-
|
|
201
|
-
if (!bSkipWaitForVariantSwitch) {
|
|
202
|
-
// also wait for a potential variant switch to be done
|
|
203
|
-
aPromises.push(this.waitForVariantSwitch());
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
return Promise.all(aPromises);
|
|
207
|
-
};
|
|
208
|
-
|
|
209
59
|
FlexController.prototype._removeOtherLayerChanges = function(oAppComponent, sLayer, bRemoveOtherLayerChanges) {
|
|
210
60
|
if (bRemoveOtherLayerChanges && sLayer) {
|
|
211
61
|
var aLayersToReset = Object.values(Layer).filter(function(sLayerToCheck) {
|
|
212
62
|
return sLayerToCheck !== sLayer;
|
|
213
63
|
});
|
|
214
|
-
return this.removeDirtyChanges(aLayersToReset, oAppComponent
|
|
64
|
+
return this.removeDirtyChanges(aLayersToReset, oAppComponent);
|
|
215
65
|
}
|
|
216
66
|
return Promise.resolve();
|
|
217
67
|
};
|
|
@@ -296,7 +146,7 @@ sap.ui.define([
|
|
|
296
146
|
*/
|
|
297
147
|
FlexController.prototype.resetChanges = function(sLayer, sGenerator, oComponent, aSelectorIds, aChangeTypes) {
|
|
298
148
|
return this._oChangePersistence.resetChanges(sLayer, sGenerator, aSelectorIds, aChangeTypes)
|
|
299
|
-
.then(revertChangesAndUpdateVariantModel.bind(this, oComponent
|
|
149
|
+
.then(revertChangesAndUpdateVariantModel.bind(this, oComponent));
|
|
300
150
|
};
|
|
301
151
|
|
|
302
152
|
/**
|
|
@@ -307,13 +157,12 @@ sap.ui.define([
|
|
|
307
157
|
* @param {sap.ui.core.Control} [oControl] - Control for which the changes should be removed
|
|
308
158
|
* @param {string} [sGenerator] - Generator of changes (optional)
|
|
309
159
|
* @param {string[]} [aChangeTypes] - Types of changes (optional)
|
|
310
|
-
* @param {boolean} [bSkipUrlUpdate] - Whether to skip soft reload during variant model update
|
|
311
160
|
*
|
|
312
161
|
* @returns {Promise} Promise that resolves after the deletion took place
|
|
313
162
|
*/
|
|
314
|
-
FlexController.prototype.removeDirtyChanges = function(vLayer, oComponent, oControl, sGenerator, aChangeTypes
|
|
163
|
+
FlexController.prototype.removeDirtyChanges = function(vLayer, oComponent, oControl, sGenerator, aChangeTypes) {
|
|
315
164
|
return this._oChangePersistence.removeDirtyChanges(vLayer, oComponent, oControl, sGenerator, aChangeTypes)
|
|
316
|
-
.then(revertChangesAndUpdateVariantModel.bind(this, oComponent
|
|
165
|
+
.then(revertChangesAndUpdateVariantModel.bind(this, oComponent));
|
|
317
166
|
};
|
|
318
167
|
|
|
319
168
|
/**
|
package/src/sap/ui/fl/Utils.js
CHANGED
|
@@ -12,7 +12,7 @@ sap.ui.define([
|
|
|
12
12
|
"sap/ui/fl/apply/_internal/changes/FlexCustomData",
|
|
13
13
|
"sap/ui/fl/apply/_internal/changes/Utils",
|
|
14
14
|
"sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler",
|
|
15
|
-
"sap/ui/fl/apply/_internal/flexState/
|
|
15
|
+
"sap/ui/fl/apply/_internal/flexState/FlexObjectState",
|
|
16
16
|
"sap/ui/fl/Utils"
|
|
17
17
|
], function(
|
|
18
18
|
Log,
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
FlexCustomData,
|
|
23
23
|
Utils,
|
|
24
24
|
DependencyHandler,
|
|
25
|
-
|
|
25
|
+
FlexObjectState,
|
|
26
26
|
FlUtils
|
|
27
27
|
) {
|
|
28
28
|
"use strict";
|
|
@@ -99,7 +99,7 @@ sap.ui.define([
|
|
|
99
99
|
// if a change was already processed and is not applied anymore, then the control was destroyed and recreated.
|
|
100
100
|
// In this case we need to recreate/copy the dependencies if we are applying in JS
|
|
101
101
|
if (!bSkipDependencies) {
|
|
102
|
-
|
|
102
|
+
FlexObjectState.copyDependenciesFromCompleteDependencyMap(oChange, mPropertyBag.appComponent);
|
|
103
103
|
}
|
|
104
104
|
oChange.setInitialApplyState();
|
|
105
105
|
} else if (!bChangeStatusAppliedFinished && bIsCurrentlyAppliedOnControl) {
|
|
@@ -394,6 +394,7 @@ sap.ui.define([
|
|
|
394
394
|
mPropertyBag.modifier = JsControlTreeModifier;
|
|
395
395
|
const aPromises = aChanges.map(function(oChange) {
|
|
396
396
|
const oControl = JsControlTreeModifier.bySelector(oChange.getSelector(), mPropertyBag.appComponent);
|
|
397
|
+
const oLiveDependencyMap = FlexObjectState.getLiveDependencyMap(mPropertyBag.reference);
|
|
397
398
|
if (oControl) {
|
|
398
399
|
checkAndAdjustChangeStatus(oControl, oChange, mPropertyBag, true);
|
|
399
400
|
if (!oChange.isApplyProcessFinished()) {
|
|
@@ -403,12 +404,12 @@ sap.ui.define([
|
|
|
403
404
|
return Applier.applyChangeOnControl(oChange, oControl, mPropertyBag)
|
|
404
405
|
.then(function(oResult) {
|
|
405
406
|
if (oResult.success) {
|
|
406
|
-
const oLiveDependencyMap = UIChangesState.getLiveDependencyMap(mPropertyBag.reference);
|
|
407
407
|
DependencyHandler.addRuntimeChangeToMap(oChange, mPropertyBag.appComponent, oLiveDependencyMap);
|
|
408
408
|
}
|
|
409
409
|
});
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
+
DependencyHandler.addChangeAndUpdateDependencies(oChange, mPropertyBag.appComponent.getId(), oLiveDependencyMap);
|
|
412
413
|
return () => Promise.resolve();
|
|
413
414
|
});
|
|
414
415
|
return FlUtils.execPromiseQueueSequentially(aPromises);
|
|
@@ -427,7 +428,7 @@ sap.ui.define([
|
|
|
427
428
|
// the changes have to be queued synchronously
|
|
428
429
|
// scenario 1: n controls get created, for all this function is called synchronously. Changes have to be queued synchronously
|
|
429
430
|
// scenario 2: control gets recreated, the changes for the new control have to be queued after the processing of the old control
|
|
430
|
-
const oDependencyMap =
|
|
431
|
+
const oDependencyMap = FlexObjectState.getLiveDependencyMap(sReference);
|
|
431
432
|
var sControlId = oControl.getId();
|
|
432
433
|
var aChangesForControl = oDependencyMap.mChanges[sControlId] || [];
|
|
433
434
|
var mPropertyBag = {
|
|
@@ -9,12 +9,16 @@ sap.ui.define([
|
|
|
9
9
|
"sap/ui/fl/apply/_internal/changes/Applier",
|
|
10
10
|
"sap/ui/fl/apply/_internal/changes/FlexCustomData",
|
|
11
11
|
"sap/ui/fl/apply/_internal/changes/Utils",
|
|
12
|
+
"sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler",
|
|
13
|
+
"sap/ui/fl/apply/_internal/flexState/FlexObjectState",
|
|
12
14
|
"sap/ui/fl/Utils"
|
|
13
15
|
], function(
|
|
14
16
|
Log,
|
|
15
17
|
Applier,
|
|
16
18
|
FlexCustomData,
|
|
17
19
|
Utils,
|
|
20
|
+
DependencyHandler,
|
|
21
|
+
FlexObjectState,
|
|
18
22
|
FlUtils
|
|
19
23
|
) {
|
|
20
24
|
"use strict";
|
|
@@ -34,14 +38,19 @@ sap.ui.define([
|
|
|
34
38
|
return Promise.resolve();
|
|
35
39
|
}
|
|
36
40
|
|
|
37
|
-
function
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
function removeChangeFromMaps(oChange, sReference) {
|
|
42
|
+
const sChangeKey = oChange.getId();
|
|
43
|
+
const oDependencyMap = FlexObjectState.getLiveDependencyMap(sReference);
|
|
44
|
+
DependencyHandler.removeChangeFromMap(oDependencyMap, sChangeKey);
|
|
45
|
+
DependencyHandler.removeChangeFromDependencies(oDependencyMap, sChangeKey);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async function revertAndDeleteChangeOnControl(oChange, oControl, mRevertProperties, mPropertyBag) {
|
|
49
|
+
const vRevertResult = await Reverter.revertChangeOnControl(oChange, oControl, mRevertProperties);
|
|
50
|
+
FlexCustomData.destroyAppliedCustomData(vRevertResult || oControl, oChange, mPropertyBag.modifier);
|
|
51
|
+
if (vRevertResult) {
|
|
52
|
+
removeChangeFromMaps(oChange, mPropertyBag.reference);
|
|
53
|
+
}
|
|
45
54
|
}
|
|
46
55
|
|
|
47
56
|
/**
|
|
@@ -97,8 +106,8 @@ sap.ui.define([
|
|
|
97
106
|
* @param {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} aChanges - Array of changes to be reverted
|
|
98
107
|
* @param {object} mPropertyBag - Object with additional properties
|
|
99
108
|
* @param {sap.ui.core.Component} mPropertyBag.appComponent - Component instance that is currently loading
|
|
109
|
+
* @param {string} mPropertyBag.reference - Flex reference
|
|
100
110
|
* @param {sap.ui.core.util.reflection.BaseTreeModifier} mPropertyBag.modifier - Polymorph reuse operations handling the changes on the given view type
|
|
101
|
-
* @param {sap.ui.fl.FlexController} mPropertyBag.flexController - Instance of the flex controller the change is saved in
|
|
102
111
|
* @returns {Promise|sap.ui.fl.Utils.FakePromise} Promise/FakePromise that resolves as soon as all changes are reverted
|
|
103
112
|
*/
|
|
104
113
|
Reverter.revertMultipleChanges = function(aChanges, mPropertyBag) {
|
|
@@ -110,7 +119,7 @@ sap.ui.define([
|
|
|
110
119
|
var oSelector = oChange.getSelector && oChange.getSelector();
|
|
111
120
|
var oControl = mPropertyBag.modifier.bySelector(oSelector, mPropertyBag.appComponent);
|
|
112
121
|
if (!oControl) {
|
|
113
|
-
|
|
122
|
+
removeChangeFromMaps(oChange, mPropertyBag.reference);
|
|
114
123
|
return (FlUtils.FakePromise ? new FlUtils.FakePromise() : Promise.resolve());
|
|
115
124
|
}
|
|
116
125
|
var mRevertProperties = {
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
*
|
|
21
21
|
* @namespace sap.ui.fl.apply._internal.changes.descriptor.RegistrationBuild
|
|
22
22
|
* @since 1.77
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.126.0
|
|
24
24
|
* @private
|
|
25
25
|
* @ui5-restricted sap.ui.fl.apply._internal
|
|
26
26
|
*/
|
|
@@ -36,7 +36,8 @@ sap.ui.define([
|
|
|
36
36
|
appdescr_app_removeAllInboundsExceptOne: requireAsync.bind(this, "sap/ui/fl/apply/_internal/changes/descriptor/app/RemoveAllInboundsExceptOne"),
|
|
37
37
|
appdescr_app_changeInbound: requireAsync.bind(this, "sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound"),
|
|
38
38
|
appdescr_app_addNewInbound: requireAsync.bind(this, "sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewInbound"),
|
|
39
|
-
appdescr_fiori_setAbstract: requireAsync.bind(this, "sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract")
|
|
39
|
+
appdescr_fiori_setAbstract: requireAsync.bind(this, "sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract"),
|
|
40
|
+
appdescr_fiori_setCloudDevAdaptationStatus: requireAsync.bind(this, "sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetCloudDevAdaptationStatus")
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
var RegistrationCopy = Object.assign({}, Registration);
|