@openui5/sap.ui.fl 1.136.1 → 1.138.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.toml +0 -28
- package/THIRDPARTY.txt +1 -25
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +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/LayerUtils.js +1 -1
- package/src/sap/ui/fl/Utils.js +4 -2
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +3 -8
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewDataSource.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/AddNewOutbound.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddTechnicalAttributes.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/ChangeOutbound.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/SetAch.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetDescription.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 +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/ChangeModel.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/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/AnnotationChange.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 +6 -6
- 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 +3 -3
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +3 -3
- 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/VariantChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/VariantManagementChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/getVariantAuthor.js +5 -5
- package/src/sap/ui/fl/apply/_internal/flexState/FlexObjectState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +3 -8
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +6 -6
- 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 +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/UIChangesState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantManagementState.js +1 -1
- 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 -1
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +3 -3
- package/src/sap/ui/fl/apply/_internal/preprocessors/ComponentLifecycleHooks.js +3 -7
- 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 +1 -1
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +22 -3
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/fl/changeHandler/Base.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseRename.js +1 -1
- package/src/sap/ui/fl/changeHandler/ChangeAnnotation.js +1 -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/DescriptorChange.js +10 -12
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +3 -3
- 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/Settings.js +139 -0
- package/src/sap/ui/fl/initial/_internal/Storage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageFeaturesMerger.js +18 -24
- 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 +19 -7
- package/src/sap/ui/fl/initial/_internal/connectors/BtpServiceConnector.js +3 -1
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +5 -2
- package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +1 -1
- package/src/sap/ui/fl/initial/api/InitialFlexAPI.js +3 -3
- 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 +0 -9
- package/src/sap/ui/fl/messagebundle_ar.properties +0 -6
- package/src/sap/ui/fl/messagebundle_bg.properties +0 -6
- package/src/sap/ui/fl/messagebundle_ca.properties +0 -6
- package/src/sap/ui/fl/messagebundle_cnr.properties +0 -6
- package/src/sap/ui/fl/messagebundle_cs.properties +0 -6
- package/src/sap/ui/fl/messagebundle_cy.properties +0 -6
- package/src/sap/ui/fl/messagebundle_da.properties +0 -6
- package/src/sap/ui/fl/messagebundle_de.properties +0 -6
- package/src/sap/ui/fl/messagebundle_el.properties +0 -6
- package/src/sap/ui/fl/messagebundle_en.properties +0 -6
- package/src/sap/ui/fl/messagebundle_en_GB.properties +0 -6
- package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +0 -6
- package/src/sap/ui/fl/messagebundle_es.properties +0 -6
- package/src/sap/ui/fl/messagebundle_es_MX.properties +0 -6
- package/src/sap/ui/fl/messagebundle_et.properties +0 -6
- package/src/sap/ui/fl/messagebundle_fi.properties +0 -6
- package/src/sap/ui/fl/messagebundle_fr.properties +0 -6
- package/src/sap/ui/fl/messagebundle_fr_CA.properties +0 -6
- package/src/sap/ui/fl/messagebundle_hi.properties +0 -6
- package/src/sap/ui/fl/messagebundle_hr.properties +0 -6
- package/src/sap/ui/fl/messagebundle_hu.properties +0 -6
- package/src/sap/ui/fl/messagebundle_id.properties +0 -6
- package/src/sap/ui/fl/messagebundle_it.properties +0 -6
- package/src/sap/ui/fl/messagebundle_iw.properties +0 -6
- package/src/sap/ui/fl/messagebundle_ja.properties +0 -6
- package/src/sap/ui/fl/messagebundle_kk.properties +0 -6
- package/src/sap/ui/fl/messagebundle_ko.properties +0 -6
- package/src/sap/ui/fl/messagebundle_lt.properties +0 -6
- package/src/sap/ui/fl/messagebundle_lv.properties +0 -6
- package/src/sap/ui/fl/messagebundle_mk.properties +0 -6
- package/src/sap/ui/fl/messagebundle_ms.properties +0 -6
- package/src/sap/ui/fl/messagebundle_nl.properties +0 -6
- package/src/sap/ui/fl/messagebundle_no.properties +0 -6
- package/src/sap/ui/fl/messagebundle_pl.properties +0 -6
- package/src/sap/ui/fl/messagebundle_pt.properties +0 -6
- package/src/sap/ui/fl/messagebundle_pt_PT.properties +0 -6
- package/src/sap/ui/fl/messagebundle_ro.properties +0 -6
- package/src/sap/ui/fl/messagebundle_ru.properties +0 -6
- package/src/sap/ui/fl/messagebundle_sh.properties +0 -6
- package/src/sap/ui/fl/messagebundle_sk.properties +0 -6
- package/src/sap/ui/fl/messagebundle_sl.properties +0 -6
- package/src/sap/ui/fl/messagebundle_sr.properties +0 -6
- package/src/sap/ui/fl/messagebundle_sv.properties +0 -6
- package/src/sap/ui/fl/messagebundle_th.properties +0 -6
- package/src/sap/ui/fl/messagebundle_tr.properties +0 -6
- package/src/sap/ui/fl/messagebundle_uk.properties +0 -6
- package/src/sap/ui/fl/messagebundle_vi.properties +0 -6
- package/src/sap/ui/fl/messagebundle_zh_CN.properties +0 -6
- package/src/sap/ui/fl/messagebundle_zh_TW.properties +0 -6
- 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/getFlexObjectInfos.js +1 -1
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +4 -4
- package/src/sap/ui/fl/support/api/SupportAPI.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/IFrame.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
- package/src/sap/ui/fl/util/resolveBinding.js +4 -2
- package/src/sap/ui/fl/variants/VariantManagement.js +3 -3
- package/src/sap/ui/fl/variants/VariantManager.js +12 -10
- package/src/sap/ui/fl/variants/VariantModel.js +26 -24
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +1 -1
- package/src/sap/ui/fl/write/_internal/SaveAs.js +7 -8
- package/src/sap/ui/fl/write/_internal/Storage.js +1 -14
- package/src/sap/ui/fl/write/_internal/Versions.js +40 -27
- 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 +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +1 -11
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +4 -14
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +2 -39
- 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/controlVariants/ControlVariantWriteUtils.js +2 -2
- package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/FlexObjectManager.js +303 -50
- package/src/sap/ui/fl/write/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/changes/UIChangeManager.js +3 -3
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +5 -5
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +14 -14
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -1
- package/src/sap/ui/fl/write/api/BusinessNetworkAPI.js +1 -1
- package/src/sap/ui/fl/write/api/ContextSharingAPI.js +7 -7
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +6 -11
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +23 -17
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +20 -11
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +48 -76
- package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +2 -2
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +7 -7
- package/src/sap/ui/fl/write/api/VersionsAPI.js +15 -0
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +0 -9
- package/ui5.yaml +0 -1
- package/src/sap/ui/fl/ChangePersistence.js +0 -438
- package/src/sap/ui/fl/ChangePersistenceFactory.js +0 -60
- package/src/sap/ui/fl/FlexController.js +0 -174
- package/src/sap/ui/fl/FlexControllerFactory.js +0 -82
- package/src/sap/ui/fl/registry/Settings.js +0 -477
|
@@ -15,11 +15,10 @@ sap.ui.define([
|
|
|
15
15
|
"sap/ui/fl/apply/api/ControlVariantApplyAPI",
|
|
16
16
|
"sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
|
|
17
17
|
"sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage",
|
|
18
|
-
"sap/ui/fl/
|
|
18
|
+
"sap/ui/fl/initial/_internal/Settings",
|
|
19
19
|
"sap/ui/fl/write/_internal/flexState/changes/UIChangeManager",
|
|
20
20
|
"sap/ui/fl/write/_internal/flexState/FlexObjectManager",
|
|
21
21
|
"sap/ui/fl/write/api/ChangesWriteAPI",
|
|
22
|
-
"sap/ui/fl/FlexControllerFactory",
|
|
23
22
|
"sap/ui/fl/Layer",
|
|
24
23
|
"sap/ui/fl/Utils"
|
|
25
24
|
], function(
|
|
@@ -37,7 +36,6 @@ sap.ui.define([
|
|
|
37
36
|
UIChangeManager,
|
|
38
37
|
FlexObjectManager,
|
|
39
38
|
ChangesWriteAPI,
|
|
40
|
-
FlexControllerFactory,
|
|
41
39
|
Layer,
|
|
42
40
|
Utils
|
|
43
41
|
) {
|
|
@@ -383,10 +381,9 @@ sap.ui.define([
|
|
|
383
381
|
if (!oAppComponent) {
|
|
384
382
|
return logAndReject("App Component could not be determined");
|
|
385
383
|
}
|
|
386
|
-
var oFlexController = FlexControllerFactory.createForControl(oAppComponent);
|
|
387
384
|
|
|
388
385
|
if (FlexState.isInitialized({control: oAppComponent})) {
|
|
389
|
-
return
|
|
386
|
+
return FlexObjectManager.saveFlexObjects({ flexObjects: mPropertyBag.changes, selector: oAppComponent });
|
|
390
387
|
}
|
|
391
388
|
return Promise.resolve();
|
|
392
389
|
},
|
|
@@ -422,13 +419,11 @@ sap.ui.define([
|
|
|
422
419
|
*
|
|
423
420
|
* @returns {Promise<boolean>} Resolves to a boolean indicating if condensing is enabled
|
|
424
421
|
* @private
|
|
425
|
-
* @
|
|
422
|
+
* @ui5-restricted sap.ovp
|
|
426
423
|
*/
|
|
427
|
-
isCondensingEnabled() {
|
|
428
|
-
|
|
429
|
-
.
|
|
430
|
-
return oSettings.isCondensingEnabled(Layer.USER);
|
|
431
|
-
});
|
|
424
|
+
async isCondensingEnabled() {
|
|
425
|
+
const oSettings = await Settings.getInstance();
|
|
426
|
+
return oSettings.getIsCondensingEnabled();
|
|
432
427
|
},
|
|
433
428
|
|
|
434
429
|
/**
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/ui/fl/initial/_internal/Settings",
|
|
8
9
|
"sap/ui/fl/initial/api/InitialFlexAPI",
|
|
9
|
-
"sap/ui/fl/registry/Settings",
|
|
10
10
|
"sap/ui/fl/write/_internal/Storage",
|
|
11
11
|
"sap/ui/fl/Layer",
|
|
12
12
|
"sap/ui/fl/Utils"
|
|
13
13
|
], function(
|
|
14
|
-
InitialFlexAPI,
|
|
15
14
|
Settings,
|
|
15
|
+
InitialFlexAPI,
|
|
16
16
|
Storage,
|
|
17
17
|
Layer,
|
|
18
18
|
Utils
|
|
@@ -41,8 +41,14 @@ sap.ui.define([
|
|
|
41
41
|
isPublishAvailable() {
|
|
42
42
|
return Settings.getInstance().then(function(oSettings) {
|
|
43
43
|
return (
|
|
44
|
-
oSettings.
|
|
45
|
-
(
|
|
44
|
+
oSettings.getIsPublishAvailable() ||
|
|
45
|
+
// if the flag is not given, publish should be available on ABAP systems (?) which are not productive systems
|
|
46
|
+
!!(
|
|
47
|
+
!oSettings.getIsProductiveSystem()
|
|
48
|
+
// TODO this is pretty arbitrary, not sure what the intention here is
|
|
49
|
+
&& oSettings.getSystem()
|
|
50
|
+
&& oSettings.getClient()
|
|
51
|
+
)
|
|
46
52
|
);
|
|
47
53
|
});
|
|
48
54
|
},
|
|
@@ -70,7 +76,8 @@ sap.ui.define([
|
|
|
70
76
|
var oSettings = aPromises[0];
|
|
71
77
|
var oCrossAppNav = aPromises[1];
|
|
72
78
|
return (
|
|
73
|
-
oSettings.
|
|
79
|
+
!oSettings.getIsContextBasedAdaptationEnabled()
|
|
80
|
+
&& oSettings.getIsAppVariantSaveAsEnabled()
|
|
74
81
|
&& sLayer === Layer.CUSTOMER
|
|
75
82
|
&& oCrossAppNav !== undefined // Not a standalone app
|
|
76
83
|
);
|
|
@@ -92,7 +99,7 @@ sap.ui.define([
|
|
|
92
99
|
*/
|
|
93
100
|
isContextBasedAdaptationAvailable(sLayer) {
|
|
94
101
|
return Settings.getInstance().then(function(oSettings) {
|
|
95
|
-
if (oSettings.
|
|
102
|
+
if (oSettings.getIsContextBasedAdaptationEnabled() && sLayer === Layer.CUSTOMER) {
|
|
96
103
|
return true;
|
|
97
104
|
}
|
|
98
105
|
return false;
|
|
@@ -120,11 +127,10 @@ sap.ui.define([
|
|
|
120
127
|
* @private
|
|
121
128
|
* @ui5-restricted sap.ui.rta
|
|
122
129
|
*/
|
|
123
|
-
isVersioningEnabled(sLayer) {
|
|
124
|
-
|
|
125
|
-
.
|
|
126
|
-
|
|
127
|
-
});
|
|
130
|
+
async isVersioningEnabled(sLayer) {
|
|
131
|
+
const oSettings = await Settings.getInstance();
|
|
132
|
+
const oVersionInfo = oSettings.getVersioning();
|
|
133
|
+
return !!(oVersionInfo[sLayer] || oVersionInfo.ALL);
|
|
128
134
|
},
|
|
129
135
|
|
|
130
136
|
/**
|
|
@@ -139,7 +145,7 @@ sap.ui.define([
|
|
|
139
145
|
if (sLayer === Layer.CUSTOMER) {
|
|
140
146
|
return Settings.getInstance()
|
|
141
147
|
.then(function(oSettings) {
|
|
142
|
-
return oSettings.
|
|
148
|
+
return oSettings.getIsKeyUserTranslationEnabled();
|
|
143
149
|
});
|
|
144
150
|
}
|
|
145
151
|
return Promise.resolve(false);
|
|
@@ -160,7 +166,7 @@ sap.ui.define([
|
|
|
160
166
|
}
|
|
161
167
|
return Settings.getInstance()
|
|
162
168
|
.then(function(oSettings) {
|
|
163
|
-
return oSettings.
|
|
169
|
+
return oSettings.getIsContextSharingEnabled({layer: sLayer});
|
|
164
170
|
});
|
|
165
171
|
},
|
|
166
172
|
|
|
@@ -172,7 +178,7 @@ sap.ui.define([
|
|
|
172
178
|
*/
|
|
173
179
|
async isSeenFeaturesAvailable() {
|
|
174
180
|
const oSettings = await Settings.getInstance();
|
|
175
|
-
return oSettings.
|
|
181
|
+
return oSettings.getIsSeenFeaturesAvailable();
|
|
176
182
|
},
|
|
177
183
|
|
|
178
184
|
/**
|
|
@@ -216,7 +222,7 @@ sap.ui.define([
|
|
|
216
222
|
*/
|
|
217
223
|
isVariantAdaptationEnabled() {
|
|
218
224
|
const oSettings = Settings.getInstanceOrUndef();
|
|
219
|
-
return oSettings?.
|
|
225
|
+
return oSettings?.getIsVariantAdaptationEnabled();
|
|
220
226
|
},
|
|
221
227
|
|
|
222
228
|
/**
|
|
@@ -227,7 +233,7 @@ sap.ui.define([
|
|
|
227
233
|
*/
|
|
228
234
|
isLocalResetEnabled() {
|
|
229
235
|
const oSettings = Settings.getInstanceOrUndef();
|
|
230
|
-
return oSettings?.
|
|
236
|
+
return oSettings?.getIsLocalResetEnabled();
|
|
231
237
|
},
|
|
232
238
|
|
|
233
239
|
/**
|
|
@@ -238,7 +244,7 @@ sap.ui.define([
|
|
|
238
244
|
*/
|
|
239
245
|
areAnnotationChangesEnabled() {
|
|
240
246
|
const oSettings = Settings.getInstanceOrUndef();
|
|
241
|
-
return oSettings?.
|
|
247
|
+
return oSettings?.getIsAnnotationChangeEnabled();
|
|
242
248
|
}
|
|
243
249
|
};
|
|
244
250
|
|
|
@@ -15,7 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
"sap/ui/fl/apply/_internal/flexState/ManifestUtils",
|
|
16
16
|
"sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
|
|
17
17
|
"sap/ui/fl/initial/_internal/FlexInfoSession",
|
|
18
|
-
"sap/ui/fl/
|
|
18
|
+
"sap/ui/fl/initial/_internal/Settings",
|
|
19
19
|
"sap/ui/fl/write/_internal/condenser/Condenser",
|
|
20
20
|
"sap/ui/fl/write/_internal/flexState/changes/UIChangeManager",
|
|
21
21
|
"sap/ui/fl/write/_internal/flexState/FlexObjectManager",
|
|
@@ -79,8 +79,7 @@ sap.ui.define([
|
|
|
79
79
|
* @returns {Promise<boolean>} Promise that resolves to a boolean indicating if changes exist
|
|
80
80
|
*/
|
|
81
81
|
function hasChanges(mPropertyBag) {
|
|
82
|
-
mPropertyBag
|
|
83
|
-
return PersistenceWriteAPI._getUIChanges(mPropertyBag)
|
|
82
|
+
return PersistenceWriteAPI._getUIChanges({...mPropertyBag, includeCtrlVariants: true})
|
|
84
83
|
.then(function(aChanges) {
|
|
85
84
|
return aChanges.length > 0;
|
|
86
85
|
});
|
|
@@ -141,8 +140,7 @@ sap.ui.define([
|
|
|
141
140
|
* @param {string} [mPropertyBag.layer=CUSTOMER] - Proposed layer (might be overwritten by the backend) when creating a new app variant - Smart Business must pass the layer
|
|
142
141
|
* @param {boolean} [mPropertyBag.draft=false] - Indicates if changes should be written as a draft
|
|
143
142
|
* @param {boolean} [mPropertyBag.removeOtherLayerChanges=false] - Whether to remove changes on other layers before saving
|
|
144
|
-
*
|
|
145
|
-
* @returns {Promise} Promise that resolves with an array of responses or is rejected with the first error
|
|
143
|
+
* @returns {Promise<sap.ui.fl.apply._internal.flexObjects.FlexObject[]>} Resolves with all loaded flex objects after saving
|
|
146
144
|
* @private
|
|
147
145
|
* @ui5-restricted sap.ui.fl, sap.ui.rta
|
|
148
146
|
*/
|
|
@@ -154,7 +152,13 @@ sap.ui.define([
|
|
|
154
152
|
let oFlexInfoSession = FlexInfoSession.getByReference(sReference);
|
|
155
153
|
oFlexInfoSession.saveChangeKeepSession = true;
|
|
156
154
|
FlexInfoSession.setByReference(oFlexInfoSession, sReference);
|
|
157
|
-
|
|
155
|
+
await FlexObjectManager.saveFlexObjects(mPropertyBag);
|
|
156
|
+
|
|
157
|
+
// This is needed as long the save requests does not return the necessary information to update the FlexState without a new request
|
|
158
|
+
const aFlexObjects = await FlexObjectManager.getFlexObjects(
|
|
159
|
+
{..._omit(mPropertyBag, ["skipUpdateCache", "layer"]), invalidateCache: true, currentLayer: mPropertyBag.layer}
|
|
160
|
+
);
|
|
161
|
+
|
|
158
162
|
if (aFlexObjects?.length > 0) {
|
|
159
163
|
await PersistenceWriteAPI.updateResetAndPublishInfo(mPropertyBag);
|
|
160
164
|
}
|
|
@@ -379,14 +383,19 @@ sap.ui.define([
|
|
|
379
383
|
*/
|
|
380
384
|
PersistenceWriteAPI.getChangesWarning = function(mPropertyBag) {
|
|
381
385
|
return this._getUIChanges(mPropertyBag).then(function(aChanges) {
|
|
382
|
-
|
|
386
|
+
const bHasChangesFromOtherSystem = aChanges.some(function(oChange) {
|
|
383
387
|
return oChange.isChangeFromOtherSystem();
|
|
384
388
|
});
|
|
385
389
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
+
const oSettingsInstance = Settings.getInstanceOrUndef();
|
|
391
|
+
// TODO System and Client info have nothing to do with the transport system
|
|
392
|
+
const isProductiveSystemWithTransports =
|
|
393
|
+
oSettingsInstance
|
|
394
|
+
&& oSettingsInstance.getIsProductiveSystem()
|
|
395
|
+
&& oSettingsInstance.getSystem()
|
|
396
|
+
&& oSettingsInstance.getClient();
|
|
397
|
+
const bHasNoChanges = aChanges.length === 0;
|
|
398
|
+
let oChangesWarning = {showWarning: false};
|
|
390
399
|
|
|
391
400
|
if (bHasChangesFromOtherSystem) {
|
|
392
401
|
oChangesWarning = {showWarning: true, warningType: "mixedChangesWarning"};
|
|
@@ -8,63 +8,58 @@ sap.ui.define([
|
|
|
8
8
|
"sap/ui/fl/apply/_internal/flexState/FlexState",
|
|
9
9
|
"sap/ui/fl/apply/_internal/flexState/ManifestUtils",
|
|
10
10
|
"sap/ui/fl/initial/_internal/FlexInfoSession",
|
|
11
|
+
"sap/ui/fl/initial/_internal/Settings",
|
|
11
12
|
"sap/ui/fl/initial/api/Version",
|
|
12
13
|
"sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState",
|
|
13
14
|
"sap/ui/fl/write/api/FeaturesAPI",
|
|
14
15
|
"sap/ui/fl/write/api/PersistenceWriteAPI",
|
|
15
16
|
"sap/ui/fl/write/api/VersionsAPI",
|
|
16
17
|
"sap/ui/fl/Layer",
|
|
17
|
-
"sap/ui/fl/LayerUtils"
|
|
18
|
-
"sap/ui/fl/registry/Settings",
|
|
19
|
-
"sap/ui/fl/Utils"
|
|
18
|
+
"sap/ui/fl/LayerUtils"
|
|
20
19
|
], function(
|
|
21
20
|
FlexState,
|
|
22
21
|
ManifestUtils,
|
|
23
22
|
FlexInfoSession,
|
|
23
|
+
Settings,
|
|
24
24
|
Version,
|
|
25
25
|
CompVariantState,
|
|
26
26
|
FeaturesAPI,
|
|
27
27
|
PersistenceWriteAPI,
|
|
28
28
|
VersionsAPI,
|
|
29
29
|
Layer,
|
|
30
|
-
LayerUtils
|
|
31
|
-
Settings,
|
|
32
|
-
Utils
|
|
30
|
+
LayerUtils
|
|
33
31
|
) {
|
|
34
32
|
"use strict";
|
|
35
33
|
|
|
36
|
-
function isDraftAvailable(oReloadInfo, sReference) {
|
|
34
|
+
async function isDraftAvailable(oReloadInfo, sReference) {
|
|
37
35
|
if (FlexInfoSession.getByReference(sReference).version) {
|
|
38
|
-
return
|
|
36
|
+
return false;
|
|
39
37
|
}
|
|
40
38
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
});
|
|
39
|
+
const bVersioningAvailable = await FeaturesAPI.isVersioningEnabled(oReloadInfo.layer);
|
|
40
|
+
return bVersioningAvailable && VersionsAPI.isDraftAvailable({
|
|
41
|
+
control: oReloadInfo.selector,
|
|
42
|
+
layer: oReloadInfo.layer
|
|
46
43
|
});
|
|
47
44
|
}
|
|
48
45
|
|
|
49
|
-
function areHigherLayerChangesAvailable(oReloadInfo, sReference) {
|
|
46
|
+
async function areHigherLayerChangesAvailable(oReloadInfo, sReference) {
|
|
50
47
|
var oFlexInfoSession = FlexInfoSession.getByReference(sReference);
|
|
51
48
|
var bUserLayer = oReloadInfo.layer === Layer.USER;
|
|
52
49
|
if (bUserLayer || (oFlexInfoSession.maxLayer && oFlexInfoSession.maxLayer === oReloadInfo.layer)) {
|
|
53
|
-
return
|
|
50
|
+
return false;
|
|
54
51
|
}
|
|
55
52
|
|
|
56
|
-
|
|
53
|
+
const bHasHigherLayerChanges = await PersistenceWriteAPI.hasHigherLayerChanges({
|
|
57
54
|
selector: oReloadInfo.selector,
|
|
58
55
|
ignoreMaxLayerParameter: oReloadInfo.ignoreMaxLayerParameter,
|
|
59
56
|
upToLayer: oReloadInfo.layer,
|
|
60
57
|
includeCtrlVariants: oReloadInfo.includeCtrlVariants,
|
|
61
58
|
includeDirtyChanges: true
|
|
62
|
-
})
|
|
63
|
-
.then(function(bResult) {
|
|
64
|
-
// not yet saved personalization on SmartVariantManagement controls is not tracked as a FlexObject,
|
|
65
|
-
// but it should be treated the same as already saved higher layer changes
|
|
66
|
-
return bResult || checkSVMControlsForDirty(oReloadInfo);
|
|
67
59
|
});
|
|
60
|
+
// not yet saved personalization on SmartVariantManagement controls is not tracked as a FlexObject,
|
|
61
|
+
// but it should be treated the same as already saved higher layer changes
|
|
62
|
+
return bHasHigherLayerChanges || checkSVMControlsForDirty(oReloadInfo);
|
|
68
63
|
}
|
|
69
64
|
|
|
70
65
|
function checkSVMControlsForDirty(oReloadInfo) {
|
|
@@ -107,8 +102,8 @@ sap.ui.define([
|
|
|
107
102
|
return !oFlexInfoSession.allContextsProvided;
|
|
108
103
|
}
|
|
109
104
|
|
|
110
|
-
function isAllContextsAvailable(sReference
|
|
111
|
-
if (!Settings.getInstanceOrUndef()?.
|
|
105
|
+
function isAllContextsAvailable(sReference) {
|
|
106
|
+
if (!Settings.getInstanceOrUndef()?.getIsContextSharingEnabled()) {
|
|
112
107
|
return false;
|
|
113
108
|
}
|
|
114
109
|
|
|
@@ -143,16 +138,16 @@ sap.ui.define([
|
|
|
143
138
|
* @private
|
|
144
139
|
* @ui5-restricted sap.ui.rta
|
|
145
140
|
*/
|
|
146
|
-
getReloadReasonsForStart(oReloadInfo) {
|
|
141
|
+
async getReloadReasonsForStart(oReloadInfo) {
|
|
147
142
|
const sReference = ManifestUtils.getFlexReferenceForControl(oReloadInfo.selector);
|
|
148
|
-
|
|
143
|
+
const aReasons = await Promise.all([
|
|
149
144
|
areHigherLayerChangesAvailable.call(this, oReloadInfo, sReference),
|
|
150
145
|
isDraftAvailable(oReloadInfo, sReference),
|
|
151
146
|
needContextSpecificReload(oReloadInfo, sReference)
|
|
152
|
-
])
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
147
|
+
]);
|
|
148
|
+
const oReloadReasons = {};
|
|
149
|
+
[oReloadReasons.hasHigherLayerChanges, oReloadReasons.isDraftAvailable, oReloadReasons.allContexts] = aReasons;
|
|
150
|
+
return oReloadReasons;
|
|
156
151
|
},
|
|
157
152
|
|
|
158
153
|
/**
|
|
@@ -207,16 +202,13 @@ sap.ui.define([
|
|
|
207
202
|
* Standalone: Adds the version to the session or removes it.
|
|
208
203
|
*
|
|
209
204
|
* @param {object} oReloadInfo - Contains the information needed to add the correct URL parameters
|
|
210
|
-
* @param {sap.ui.fl.Layer} oReloadInfo.layer - Current layer
|
|
211
205
|
* @param {boolean} oReloadInfo.hasHigherLayerChanges - Indicates if higher layer changes exist
|
|
212
206
|
* @param {boolean} oReloadInfo.ignoreMaxLayerParameter - Indicates if the max layer parameter should be ignored
|
|
213
|
-
* @param {string|object} oReloadInfo.parameters - The URL parameters to be modified
|
|
214
207
|
* @param {string} oReloadInfo.versionSwitch - Indicates if we are in a version switch scenario
|
|
215
208
|
* @param {string} oReloadInfo.version - Version we want to switch to
|
|
216
209
|
* @param {string} oReloadInfo.removeVersionParameter - Indicates if the version parameter should be removed
|
|
217
210
|
* @param {string} oReloadInfo.removeDraft - Indicates if the draft parameter should be removed
|
|
218
211
|
* @param {sap.ui.fl.Selector} oReloadInfo.selector - Root control instance
|
|
219
|
-
* @param {string} sScenario - Current scenario. Can be 'flp' or 'standalone'
|
|
220
212
|
*
|
|
221
213
|
* @returns {boolean} Indicates if the parameters have changed
|
|
222
214
|
*
|
|
@@ -257,7 +249,6 @@ sap.ui.define([
|
|
|
257
249
|
* @param {boolean} oReloadInfo.isDraftAvailable - Indicates if a draft is available
|
|
258
250
|
* @param {sap.ui.fl.Layer} oReloadInfo.layer - Current layer
|
|
259
251
|
* @param {sap.ui.fl.Selector} oReloadInfo.selector - Root control instance
|
|
260
|
-
* @param {string} sScenario - Current scenario. Can be 'flp' or 'standalone'
|
|
261
252
|
*
|
|
262
253
|
* @returns {boolean} <code>true</code> to indicate that the session has been changed
|
|
263
254
|
*
|
|
@@ -305,75 +296,56 @@ sap.ui.define([
|
|
|
305
296
|
},
|
|
306
297
|
|
|
307
298
|
/**
|
|
308
|
-
* Determines if a reload on exit is needed and
|
|
309
|
-
* (ushell Navigation or hard reload).
|
|
299
|
+
* Determines if a reload on exit is needed and why.
|
|
310
300
|
*
|
|
311
|
-
* @param {object}
|
|
312
|
-
* @param {sap.ui.fl.Layer}
|
|
313
|
-
* @param {boolean}
|
|
314
|
-
* @param {boolean}
|
|
315
|
-
* @param {boolean}
|
|
316
|
-
* @param {boolean}
|
|
317
|
-
* @param {
|
|
318
|
-
* @param {sap.ui.fl.Selector} oReloadInfo.selector - Root control instance
|
|
301
|
+
* @param {object} oPropertyBag - Contains the information needed to check if a reload on exit should happen
|
|
302
|
+
* @param {sap.ui.fl.Layer} oPropertyBag.layer - Current layer
|
|
303
|
+
* @param {boolean} oPropertyBag.isDraftAvailable - Indicates if a draft is available
|
|
304
|
+
* @param {boolean} oPropertyBag.hasHigherLayerChanges - Indicates if higher layer changes exist
|
|
305
|
+
* @param {boolean} oPropertyBag.initialDraftGotActivated - Indicates if a draft got activated and had a draft initially when the key user entered UI adaptation
|
|
306
|
+
* @param {boolean} oPropertyBag.activeVersion - Indicates the current active version
|
|
307
|
+
* @param {sap.ui.fl.Selector} oPropertyBag.selector - Root control instance
|
|
319
308
|
*
|
|
320
|
-
* @returns {
|
|
309
|
+
* @returns {object} An object containing the reload information
|
|
321
310
|
*
|
|
322
311
|
* @private
|
|
323
312
|
* @ui5-restricted sap.ui.rta
|
|
324
313
|
*/
|
|
325
|
-
|
|
326
|
-
const sReference = ManifestUtils.getFlexReferenceForControl(
|
|
327
|
-
|
|
328
|
-
NOT_NEEDED: "NO_RELOAD",
|
|
329
|
-
RELOAD_PAGE: "HARD_RELOAD",
|
|
330
|
-
VIA_HASH: "CROSS_APP_NAVIGATION"
|
|
331
|
-
};
|
|
332
|
-
oReloadInfo.reloadMethod = oRELOAD.NOT_NEEDED;
|
|
314
|
+
getReloadInfo(oPropertyBag) {
|
|
315
|
+
const sReference = ManifestUtils.getFlexReferenceForControl(oPropertyBag.selector);
|
|
316
|
+
const oReloadInfo = {};
|
|
333
317
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
{value: Version.Number.Draft},
|
|
338
|
-
oReloadInfo.selector
|
|
318
|
+
oReloadInfo.isDraftAvailable = oPropertyBag.isDraftAvailable || ReloadInfoAPI.hasVersionStorage(
|
|
319
|
+
{ value: Version.Number.Draft },
|
|
320
|
+
oPropertyBag.selector
|
|
339
321
|
);
|
|
340
322
|
|
|
341
|
-
oReloadInfo.isDraftAvailable ||= ReloadInfoAPI.hasVersionStorage({value: Version.Number.Draft}, oReloadInfo.selector);
|
|
342
323
|
oReloadInfo.hasVersionStorage = !!FlexInfoSession.getByReference(sReference).version;
|
|
343
324
|
|
|
344
325
|
if (
|
|
345
|
-
|
|
346
|
-
&&
|
|
326
|
+
oPropertyBag.activeVersion
|
|
327
|
+
&& oPropertyBag.activeVersion !== Version.Number.Original
|
|
347
328
|
&& oReloadInfo.hasVersionStorage
|
|
348
329
|
) {
|
|
349
330
|
oReloadInfo.activeVersionNotSelected = !ReloadInfoAPI.hasVersionStorage(
|
|
350
|
-
{value:
|
|
351
|
-
oReloadInfo.selector
|
|
331
|
+
{ value: oPropertyBag.activeVersion }, oPropertyBag.selector
|
|
352
332
|
);
|
|
353
333
|
}
|
|
354
334
|
|
|
355
|
-
oReloadInfo.hasHigherLayerChanges = ReloadInfoAPI.hasMaxLayerStorage({value:
|
|
356
|
-
oReloadInfo.initialDraftGotActivated = ReloadInfoAPI.initialDraftGotActivated(
|
|
335
|
+
oReloadInfo.hasHigherLayerChanges = ReloadInfoAPI.hasMaxLayerStorage({ value: oPropertyBag.layer }, oPropertyBag.selector);
|
|
336
|
+
oReloadInfo.initialDraftGotActivated = ReloadInfoAPI.initialDraftGotActivated(oPropertyBag);
|
|
357
337
|
if (oReloadInfo.initialDraftGotActivated) {
|
|
358
338
|
oReloadInfo.isDraftAvailable = false;
|
|
359
339
|
}
|
|
360
|
-
oReloadInfo.allContexts = isAllContextsAvailable(sReference
|
|
340
|
+
oReloadInfo.allContexts = isAllContextsAvailable(sReference);
|
|
361
341
|
oReloadInfo.switchEndUserAdaptation = needAdaptationReloadOnExit(sReference);
|
|
362
|
-
|
|
363
|
-
|| oReloadInfo.isDraftAvailable
|
|
342
|
+
oReloadInfo.reloadNeeded = oReloadInfo.isDraftAvailable
|
|
364
343
|
|| oReloadInfo.hasHigherLayerChanges
|
|
365
344
|
|| oReloadInfo.initialDraftGotActivated
|
|
366
345
|
|| oReloadInfo.activeVersionNotSelected
|
|
367
346
|
|| oReloadInfo.allContexts
|
|
368
|
-
|| oReloadInfo.switchEndUserAdaptation
|
|
369
|
-
|
|
370
|
-
oReloadInfo.reloadMethod = oRELOAD.RELOAD_PAGE;
|
|
371
|
-
// always try cross-app navigation (via hash); we only need a hard reload because of appdescr changes
|
|
372
|
-
// (changesNeedReload = true)
|
|
373
|
-
if (!oReloadInfo.changesNeedReload && Utils.getUshellContainer()) {
|
|
374
|
-
oReloadInfo.reloadMethod = oRELOAD.VIA_HASH;
|
|
375
|
-
}
|
|
376
|
-
}
|
|
347
|
+
|| oReloadInfo.switchEndUserAdaptation;
|
|
348
|
+
|
|
377
349
|
return oReloadInfo;
|
|
378
350
|
}
|
|
379
351
|
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/fl/apply/_internal/flexState/ManifestUtils",
|
|
9
|
-
"sap/ui/fl/
|
|
9
|
+
"sap/ui/fl/initial/_internal/Settings",
|
|
10
10
|
"sap/ui/fl/write/_internal/appVariant/AppVariantFactory",
|
|
11
11
|
"sap/ui/fl/write/_internal/connectors/LrepConnector",
|
|
12
12
|
"sap/ui/fl/write/_internal/SaveAs",
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
|
|
28
28
|
function _checkSettingsAndExecuteActionByName(sActionName, mPropertyBag) {
|
|
29
29
|
return Settings.getInstance().then(function(oSettings) {
|
|
30
|
-
if (oSettings.
|
|
30
|
+
if (oSettings.getIsAtoEnabled()) {
|
|
31
31
|
// For smart business, we already set the transport and skipIam flag,
|
|
32
32
|
// so that there should be no transport handling done on connector level.
|
|
33
33
|
mPropertyBag.skipIam = true;
|
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/fl/apply/_internal/flexState/compVariants/Utils",
|
|
9
9
|
"sap/ui/fl/apply/_internal/flexState/ManifestUtils",
|
|
10
|
+
"sap/ui/fl/initial/_internal/Settings",
|
|
10
11
|
"sap/ui/fl/write/api/ContextBasedAdaptationsAPI",
|
|
11
12
|
"sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState",
|
|
12
|
-
"sap/ui/fl/write/_internal/transport/TransportSelection"
|
|
13
|
-
"sap/ui/fl/registry/Settings"
|
|
13
|
+
"sap/ui/fl/write/_internal/transport/TransportSelection"
|
|
14
14
|
], function(
|
|
15
15
|
CompVariantUtils,
|
|
16
16
|
ManifestUtils,
|
|
17
|
+
Settings,
|
|
17
18
|
ContextBasedAdaptationsAPI,
|
|
18
19
|
CompVariantState,
|
|
19
|
-
TransportSelection
|
|
20
|
-
Settings
|
|
20
|
+
TransportSelection
|
|
21
21
|
) {
|
|
22
22
|
"use strict";
|
|
23
23
|
|
|
@@ -293,7 +293,7 @@ sap.ui.define([
|
|
|
293
293
|
*/
|
|
294
294
|
isVariantSharingEnabled() {
|
|
295
295
|
return Settings.getInstance().then(function(oInstance) {
|
|
296
|
-
return oInstance.
|
|
296
|
+
return oInstance.getIsVariantSharingEnabled();
|
|
297
297
|
});
|
|
298
298
|
},
|
|
299
299
|
|
|
@@ -308,7 +308,7 @@ sap.ui.define([
|
|
|
308
308
|
*/
|
|
309
309
|
isVariantPersonalizationEnabled() {
|
|
310
310
|
return Settings.getInstance().then(function(oInstance) {
|
|
311
|
-
return oInstance.
|
|
311
|
+
return oInstance.getIsVariantPersonalizationEnabled();
|
|
312
312
|
});
|
|
313
313
|
},
|
|
314
314
|
|
|
@@ -323,7 +323,7 @@ sap.ui.define([
|
|
|
323
323
|
*/
|
|
324
324
|
isVariantAdaptationEnabled() {
|
|
325
325
|
return Settings.getInstance().then(function(oInstance) {
|
|
326
|
-
return oInstance.
|
|
326
|
+
return oInstance.getIsVariantAdaptationEnabled();
|
|
327
327
|
});
|
|
328
328
|
},
|
|
329
329
|
|
|
@@ -391,5 +391,20 @@ sap.ui.define([
|
|
|
391
391
|
return Versions.publish(mPropertyBag);
|
|
392
392
|
};
|
|
393
393
|
|
|
394
|
+
/**
|
|
395
|
+
* Returns the list of versions created by a specific user
|
|
396
|
+
*
|
|
397
|
+
* @param {object} mPropertyBag - Property bag
|
|
398
|
+
* @param {sap.ui.core.Control} mPropertyBag.control - Control for which the request is done
|
|
399
|
+
* @param {string} mPropertyBag.layer - Layer for which the versions should be retrieved
|
|
400
|
+
* @param {string} sUser - User ID for which the versions should be retrieved
|
|
401
|
+
* @returns {Array} List of versions created by the user
|
|
402
|
+
*/
|
|
403
|
+
VersionsAPI.getCreatedVersionsByUser = function(mPropertyBag, sUser) {
|
|
404
|
+
const oModel = getVersionsModel(mPropertyBag);
|
|
405
|
+
const aVersions = oModel.getProperty("/versions");
|
|
406
|
+
return aVersions.filter((oVersion) => oVersion.activatedBy === sUser);
|
|
407
|
+
};
|
|
408
|
+
|
|
394
409
|
return VersionsAPI;
|
|
395
410
|
});
|
|
@@ -186,15 +186,6 @@ sap.ui.define([
|
|
|
186
186
|
return Promise.reject("loadContextDescriptions is not implemented");
|
|
187
187
|
},
|
|
188
188
|
|
|
189
|
-
/**
|
|
190
|
-
* Interface called to check if variant management context sharing is enabled.
|
|
191
|
-
*
|
|
192
|
-
* @returns {Promise<object>} Resolves with an object containing the data for the flex features
|
|
193
|
-
*/
|
|
194
|
-
isContextSharingEnabled() {
|
|
195
|
-
return Promise.resolve(false);
|
|
196
|
-
},
|
|
197
|
-
|
|
198
189
|
contextBasedAdaptation: {
|
|
199
190
|
create() {
|
|
200
191
|
return Promise.reject("contextBasedAdaptation.create is not implemented");
|
package/ui5.yaml
CHANGED
|
@@ -35,7 +35,6 @@ builder:
|
|
|
35
35
|
- sap/ui/fl/initial/
|
|
36
36
|
- sap/ui/fl/interfaces/Delegate.js
|
|
37
37
|
- sap/ui/fl/interfaces/BaseLoadConnector.js
|
|
38
|
-
- sap/ui/fl/registry/Settings.js
|
|
39
38
|
- sap/ui/fl/util/ManagedObjectModel.js
|
|
40
39
|
- sap/ui/fl/variants/VariantManagement.js
|
|
41
40
|
# exclude all bundles
|