@openui5/sap.ui.fl 1.97.1 → 1.100.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 +25 -30
- package/THIRDPARTY.txt +15 -22
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/Cache.js +1 -1
- package/src/sap/ui/fl/Change.js +38 -230
- package/src/sap/ui/fl/ChangePersistence.js +113 -163
- package/src/sap/ui/fl/ChangePersistenceFactory.js +5 -3
- package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +3 -4
- package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +3 -4
- package/src/sap/ui/fl/FakeLrepLocalStorage.js +4 -4
- package/src/sap/ui/fl/FlexController.js +57 -71
- package/src/sap/ui/fl/FlexControllerFactory.js +6 -4
- package/src/sap/ui/fl/LayerUtils.js +1 -1
- package/src/sap/ui/fl/Utils.js +39 -313
- package/src/sap/ui/fl/Variant.js +5 -119
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/Applier.js +10 -8
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +46 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +3 -2
- 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/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/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/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 +6 -4
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +15 -10
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +452 -0
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +68 -0
- package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +47 -23
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +9 -5
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +21 -22
- 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 +12 -10
- 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 -4
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +17 -45
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +6 -0
- package/src/sap/ui/fl/{PreprocessorImpl.js → apply/_internal/preprocessors/ControllerExtension.js} +43 -50
- package/src/sap/ui/fl/{EventHistory.js → apply/_internal/preprocessors/EventHistory.js} +7 -7
- package/src/sap/ui/fl/{RegistrationDelegator.js → apply/_internal/preprocessors/RegistrationDelegator.js} +40 -42
- package/src/sap/ui/fl/{XmlPreprocessorImpl.js → apply/_internal/preprocessors/XmlPreprocessor.js} +10 -8
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +13 -0
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +13 -2
- 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/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/codeExt/CodeExtManager.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/designtime/variants/VariantManagement.designtime.js +9 -2
- package/src/sap/ui/fl/initial/_internal/Storage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +9 -9
- package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +16 -6
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +4 -3
- 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 +12 -12
- package/src/sap/ui/fl/messagebundle_ro.properties +1 -1
- package/src/sap/ui/fl/registry/Settings.js +52 -3
- package/src/sap/ui/fl/support/Flexibility.js +1 -1
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +59 -0
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +34 -0
- package/src/sap/ui/fl/support/api/SupportAPI.js +31 -0
- 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 +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 +4 -4
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +4 -4
- package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor.js +3 -14
- package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.js +1 -1
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/DescriptorChangeCheck.js +1 -1
- package/src/sap/ui/fl/util/IFrame.js +1 -1
- package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
- package/src/sap/ui/fl/util/changePropertyValueByPath.js +1 -1
- package/src/sap/ui/fl/util/resolveBinding.js +1 -1
- package/src/sap/ui/fl/variants/VariantManagement.js +7 -1
- package/src/sap/ui/fl/variants/VariantModel.js +32 -75
- package/src/sap/ui/fl/variants/context/Component.js +2 -6
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +6 -41
- package/src/sap/ui/fl/variants/context/i18n/i18n.properties +3 -7
- package/src/sap/ui/fl/variants/context/i18n/i18n_ar.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_bg.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_ca.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_cs.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_cy.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_da.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_de.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_el.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_en.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_en_GB.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_sappsd.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_saprigi.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_saptrc.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_es.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_es_MX.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_et.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_fi.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_fr.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_fr_CA.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_hi.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_hr.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_hu.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_id.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_it.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_iw.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_ja.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_kk.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_ko.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_lt.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_lv.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_ms.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_nl.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_no.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_pl.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_pt.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_pt_PT.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_ro.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_ru.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_sh.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_sk.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_sl.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_sv.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_th.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_tr.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_uk.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_vi.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_zh_CN.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_zh_TW.properties +2 -4
- package/src/sap/ui/fl/variants/context/view/ContextVisibility.view.xml +7 -6
- package/src/sap/ui/fl/write/_internal/Storage.js +47 -1
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
- package/src/sap/ui/fl/write/_internal/Versions.js +18 -19
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +5 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +4 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +24 -1
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +2 -2
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +3 -3
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +60 -6
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +59 -5
- 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/extensionPoint/Registry.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +4 -4
- 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 +5 -5
- 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 +19 -5
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +1 -1
- 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/AppVariantWriteAPI.js +13 -4
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +139 -39
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +8 -2
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +87 -4
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +4 -4
- package/src/sap/ui/fl/write/api/TranslationAPI.js +123 -0
- package/src/sap/ui/fl/write/api/VersionsAPI.js +1 -1
- package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +2 -1
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +43 -0
|
@@ -65,8 +65,10 @@ sap.ui.define([
|
|
|
65
65
|
if (bHasAppliedCustomData) {
|
|
66
66
|
// if the change was applied, set the revert data fetched from the custom data
|
|
67
67
|
oChange.setRevertData(FlexCustomData.sync.getParsedRevertDataFromCustomData(oControl, oChange));
|
|
68
|
+
oChange.markSuccessful();
|
|
69
|
+
} else {
|
|
70
|
+
oChange.markFailed();
|
|
68
71
|
}
|
|
69
|
-
oChange.markFinished();
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
|
|
@@ -114,14 +116,14 @@ sap.ui.define([
|
|
|
114
116
|
return FlexCustomData.getParsedRevertDataFromCustomData(oControl, oChange, oModifier)
|
|
115
117
|
.then(function (oParsedRevertDataFromCustomData) {
|
|
116
118
|
oChange.setRevertData(oParsedRevertDataFromCustomData);
|
|
117
|
-
oChange.
|
|
119
|
+
oChange.markSuccessful();
|
|
118
120
|
});
|
|
119
121
|
}
|
|
120
|
-
oChange.
|
|
122
|
+
oChange.markFailed();
|
|
121
123
|
return undefined;
|
|
122
124
|
} else if (bChangeStatusAppliedFinished && bIsCurrentlyAppliedOnControl) {
|
|
123
125
|
// both the change instance and the UI Control are already applied, so the change can be directly marked as finished
|
|
124
|
-
oChange.
|
|
126
|
+
oChange.markSuccessful();
|
|
125
127
|
}
|
|
126
128
|
return undefined;
|
|
127
129
|
});
|
|
@@ -162,7 +164,7 @@ sap.ui.define([
|
|
|
162
164
|
.then(function () {
|
|
163
165
|
// if a change was reverted previously remove the flag as it is not reverted anymore
|
|
164
166
|
var oResult = {success: true};
|
|
165
|
-
oChange.
|
|
167
|
+
oChange.markSuccessful(oResult);
|
|
166
168
|
return oResult;
|
|
167
169
|
});
|
|
168
170
|
}
|
|
@@ -194,7 +196,7 @@ sap.ui.define([
|
|
|
194
196
|
if (bXmlModifier) {
|
|
195
197
|
oChange.setInitialApplyState();
|
|
196
198
|
} else {
|
|
197
|
-
oChange.
|
|
199
|
+
oChange.markFailed(oResult);
|
|
198
200
|
}
|
|
199
201
|
return oResult;
|
|
200
202
|
});
|
|
@@ -282,7 +284,7 @@ sap.ui.define([
|
|
|
282
284
|
if (oChange.hasApplyProcessStarted()) {
|
|
283
285
|
// wait for the change to be finished and then clean up the status and queue
|
|
284
286
|
return oChange.addPromiseForApplyProcessing().then(function(oResult) {
|
|
285
|
-
oChange.
|
|
287
|
+
oChange.markSuccessful();
|
|
286
288
|
return oResult;
|
|
287
289
|
});
|
|
288
290
|
} else if (!oChange.isApplyProcessFinished()) {
|
|
@@ -300,7 +302,7 @@ sap.ui.define([
|
|
|
300
302
|
|
|
301
303
|
// make sure that everything that goes with finishing the apply process is done, even though the change was already applied
|
|
302
304
|
var oResult = {success: true};
|
|
303
|
-
oChange.
|
|
305
|
+
oChange.markSuccessful(oResult);
|
|
304
306
|
return oResult;
|
|
305
307
|
})
|
|
306
308
|
|
|
@@ -69,7 +69,7 @@ sap.ui.define([
|
|
|
69
69
|
})
|
|
70
70
|
.then(_waitForApplyIfNecessary.bind(null, oChange))
|
|
71
71
|
.then(function() {
|
|
72
|
-
if (oChange.
|
|
72
|
+
if (oChange.isSuccessfullyApplied()) {
|
|
73
73
|
oChange.startReverting();
|
|
74
74
|
return oChangeHandler.revertChange(oChange, mControl.control, mPropertyBag);
|
|
75
75
|
}
|
|
@@ -18,9 +18,9 @@ sap.ui.define([
|
|
|
18
18
|
/**
|
|
19
19
|
* Util class for Applier/ChangeReverter.
|
|
20
20
|
*
|
|
21
|
-
* @namespace sap.ui.fl.apply._internal.
|
|
21
|
+
* @namespace sap.ui.fl.apply._internal.changes.Utils
|
|
22
22
|
* @since 1.70
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.100.0
|
|
24
24
|
* @private
|
|
25
25
|
* @ui5-restricted sap.ui.fl.apply._internal, sap.ui.fl.write._internal
|
|
26
26
|
*/
|
|
@@ -108,6 +108,50 @@ sap.ui.define([
|
|
|
108
108
|
var oControl = oModifier.bySelector(oChange.getSelector(), oAppComponent);
|
|
109
109
|
return FlexCustomData.hasChangeApplyFinishedCustomData(oControl, oChange, oModifier)
|
|
110
110
|
.then(isDependencyStillValid.bind(null, oChange));
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Checks if the passed change belongs to the given view
|
|
115
|
+
*
|
|
116
|
+
* @param {object} mPropertyBag - Additional information
|
|
117
|
+
* @param {object} mPropertyBag.modifier - Reuse operations handling the changes on the given view type
|
|
118
|
+
* @param {object} mPropertyBag.appComponent - Application component for the view
|
|
119
|
+
* @param {object} mPropertyBag.viewId - ID of the view
|
|
120
|
+
* @param {sap.ui.fl.Change} oChange - Change instance to check
|
|
121
|
+
* @returns {boolean} <code>true</code> if the change belongs to the given view
|
|
122
|
+
*/
|
|
123
|
+
filterChangeByView: function(mPropertyBag, oChange) {
|
|
124
|
+
var oModifier = mPropertyBag.modifier;
|
|
125
|
+
var oAppComponent = mPropertyBag.appComponent;
|
|
126
|
+
var oSelector = oChange.getSelector();
|
|
127
|
+
if (!oSelector) {
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
if (oSelector.viewSelector) {
|
|
131
|
+
var sSelectorViewId = oModifier.getControlIdBySelector(oSelector.viewSelector, oAppComponent);
|
|
132
|
+
return sSelectorViewId === mPropertyBag.viewId;
|
|
133
|
+
}
|
|
134
|
+
var sSelectorId = oSelector.id;
|
|
135
|
+
if (sSelectorId) {
|
|
136
|
+
var sViewId;
|
|
137
|
+
if (oChange.getSelector().idIsLocal) {
|
|
138
|
+
if (oAppComponent) {
|
|
139
|
+
sViewId = oAppComponent.getLocalId(mPropertyBag.viewId);
|
|
140
|
+
}
|
|
141
|
+
} else {
|
|
142
|
+
sViewId = mPropertyBag.viewId;
|
|
143
|
+
}
|
|
144
|
+
var iIndex = 0;
|
|
145
|
+
var sSelectorIdViewPrefix;
|
|
146
|
+
do {
|
|
147
|
+
iIndex = sSelectorId.indexOf("--", iIndex);
|
|
148
|
+
sSelectorIdViewPrefix = sSelectorId.slice(0, iIndex);
|
|
149
|
+
iIndex++;
|
|
150
|
+
} while (sSelectorIdViewPrefix !== sViewId && iIndex > 0);
|
|
151
|
+
|
|
152
|
+
return sSelectorIdViewPrefix === sViewId;
|
|
153
|
+
}
|
|
154
|
+
return false;
|
|
111
155
|
}
|
|
112
156
|
};
|
|
113
157
|
|
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
* @namespace sap.ui.fl.apply._internal.changes.descriptor.Registration
|
|
19
19
|
* @experimental
|
|
20
20
|
* @since 1.74
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.100.0
|
|
22
22
|
* @private
|
|
23
23
|
* @ui5-restricted sap.ui.fl.apply._internal
|
|
24
24
|
*/
|
|
@@ -29,7 +29,8 @@ sap.ui.define([
|
|
|
29
29
|
appdescr_ovp_addNewCard: requireAsync.bind(this, "sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard"),
|
|
30
30
|
appdescr_ovp_removeCard: requireAsync.bind(this, "sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard"),
|
|
31
31
|
appdescr_ui_generic_app_addNewObjectPage: requireAsync.bind(this, "sap/suite/ui/generic/template/manifestMerger/AddNewObjectPage"),
|
|
32
|
-
appdescr_ui_generic_app_changePageConfiguration: requireAsync.bind(this, "sap/suite/ui/generic/template/manifestMerger/ChangePageConfiguration")
|
|
32
|
+
appdescr_ui_generic_app_changePageConfiguration: requireAsync.bind(this, "sap/suite/ui/generic/template/manifestMerger/ChangePageConfiguration"),
|
|
33
|
+
appdescr_fe_changePageConfiguration: requireAsync.bind(this, "sap/fe/core/manifestMerger/ChangePageConfiguration")
|
|
33
34
|
};
|
|
34
35
|
return Registration;
|
|
35
36
|
});
|
|
@@ -139,7 +139,7 @@ sap.ui.define([
|
|
|
139
139
|
* @namespace sap.ui.fl.apply._internal.changes.descriptor.app.AddAnnotationsToOData
|
|
140
140
|
* @experimental
|
|
141
141
|
* @since 1.87
|
|
142
|
-
* @version 1.
|
|
142
|
+
* @version 1.100.0
|
|
143
143
|
* @private
|
|
144
144
|
* @ui5-restricted sap.ui.fl.apply._internal
|
|
145
145
|
*/
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* Checks if the parsed shell hash contains outdated variant parameters.
|
|
48
48
|
*
|
|
49
49
|
* @param {array} aNewHashParameters - Variant URL Parameters
|
|
50
|
-
* @param {sap.ui.fl.
|
|
50
|
+
* @param {sap.ui.fl.variants.VariantModel} oModel - Variant model
|
|
51
51
|
*
|
|
52
52
|
* @returns {object} oIfUpdateIsRequiredWithCurrentVariants
|
|
53
53
|
* @returns {boolean} oIfUpdateIsRequiredWithCurrentVariants.updateRequired - If update is required
|
|
@@ -176,7 +176,10 @@ sap.ui.define([
|
|
|
176
176
|
var oParsedHash = oURLParsingService && oURLParsingService.parseShellHash(hasher.getHash());
|
|
177
177
|
|
|
178
178
|
if (oParsedHash && oParsedHash.params) {
|
|
179
|
-
var mTechnicalParameters =
|
|
179
|
+
var mTechnicalParameters = oModel.oAppComponent
|
|
180
|
+
&& oModel.oAppComponent.getComponentData
|
|
181
|
+
&& oModel.oAppComponent.getComponentData()
|
|
182
|
+
&& oModel.oAppComponent.getComponentData().technicalParameters;
|
|
180
183
|
// if mTechnicalParameters are not available we write a warning and continue updating the hash
|
|
181
184
|
if (!mTechnicalParameters) {
|
|
182
185
|
Log.warning("Component instance not provided, so technical parameters in component data and browser history remain unchanged");
|
|
@@ -382,8 +385,7 @@ sap.ui.define([
|
|
|
382
385
|
// this promise is not returned since the component is getting destroyed,
|
|
383
386
|
// which will also destroy the variant model anyway,
|
|
384
387
|
// but this is just to ensure the model is in sync with the variants state (which is persisted)
|
|
385
|
-
mPropertyBag.model.
|
|
386
|
-
.then(mPropertyBag.model.destroy.bind(mPropertyBag.model));
|
|
388
|
+
mPropertyBag.model.destroy();
|
|
387
389
|
mPropertyBag.model.oComponentDestroyObserver.unobserve(mPropertyBag.model.oAppComponent, {destroy: true});
|
|
388
390
|
mPropertyBag.model.oComponentDestroyObserver.destroy();
|
|
389
391
|
});
|
|
@@ -34,14 +34,13 @@ sap.ui.define([
|
|
|
34
34
|
* @param {sap.ui.fl.Layer} sLayer - Layer of the variant
|
|
35
35
|
* @param {sap.ui.fl.Layer} [sActiveLayer] - Layer in which the operation may take place
|
|
36
36
|
* @param {string} sUserId - ID of the variants creator
|
|
37
|
-
* @param {boolean} bAllowedForAnyLayer - Flag if the operation is also allowed on objects from any layers
|
|
38
37
|
* @returns {boolean} <code>true</code> if the variant is read only
|
|
39
38
|
*
|
|
40
39
|
* @private
|
|
41
40
|
*/
|
|
42
|
-
function checkLayerAndUserAuthorization(sLayer, sActiveLayer, sUserId
|
|
41
|
+
function checkLayerAndUserAuthorization(sLayer, sActiveLayer, sUserId) {
|
|
43
42
|
if (sActiveLayer) {
|
|
44
|
-
return
|
|
43
|
+
return sLayer === sActiveLayer;
|
|
45
44
|
} else if (sLayer === Layer.USER) {
|
|
46
45
|
return true;
|
|
47
46
|
}
|
|
@@ -181,14 +180,14 @@ sap.ui.define([
|
|
|
181
180
|
/**
|
|
182
181
|
* Checks whenever the variant can be renamed updating the entity or crating an <code>updateChange</code>.
|
|
183
182
|
*
|
|
184
|
-
* @param {sap.ui.fl.Layer} sLayer - Layer in which the edition may take place
|
|
183
|
+
* @param {sap.ui.fl.Layer} [sLayer] - Layer in which the edition may take place
|
|
185
184
|
*
|
|
186
185
|
* @returns {boolean} <code>true</code> if the variant can be updated
|
|
187
186
|
*
|
|
188
187
|
* @public
|
|
189
188
|
*/
|
|
190
189
|
CompVariant.prototype.isRenameEnabled = function (sLayer) {
|
|
191
|
-
return this.
|
|
190
|
+
return !this.getStandardVariant() && this.isEditEnabled(sLayer) && isRenameEnableDueToOriginalLanguage(this._oDefinition.content.originalLanguage);
|
|
192
191
|
};
|
|
193
192
|
|
|
194
193
|
/**
|
|
@@ -201,22 +200,23 @@ sap.ui.define([
|
|
|
201
200
|
* @public
|
|
202
201
|
*/
|
|
203
202
|
CompVariant.prototype.isEditEnabled = function (sActiveLayer) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
203
|
+
var bDeveloperLayer = sActiveLayer && LayerUtils.isDeveloperLayer(sActiveLayer);
|
|
204
|
+
var bOriginSystem = isOriginSystem(this._oDefinition.sourceSystem, this._oDefinition.sourceClient);
|
|
205
|
+
var bUserAuthorized = checkLayerAndUserAuthorization(this.getLayer(), sActiveLayer, this.getOwnerId());
|
|
206
|
+
return bDeveloperLayer || bOriginSystem && bUserAuthorized;
|
|
207
207
|
};
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
210
|
* Checks whenever the variant can be deleted.
|
|
211
211
|
*
|
|
212
|
-
* @param {sap.ui.fl.Layer} sLayer - Layer in which the deletion may take place
|
|
212
|
+
* @param {sap.ui.fl.Layer} [sLayer] - Layer in which the deletion may take place
|
|
213
213
|
*
|
|
214
214
|
* @returns {boolean} <code>true</code> if the variant file can be deleted
|
|
215
215
|
*
|
|
216
216
|
* @public
|
|
217
217
|
*/
|
|
218
218
|
CompVariant.prototype.isDeleteEnabled = function (sLayer) {
|
|
219
|
-
return isOriginSystem(this.
|
|
219
|
+
return isOriginSystem(this._oDefinition.sourceSystem, this._oDefinition.sourceClient)
|
|
220
220
|
&& checkLayerAndUserAuthorization(this.getLayer(), sLayer, this.getOwnerId())
|
|
221
221
|
&& !this.getStandardVariant();
|
|
222
222
|
};
|
|
@@ -266,6 +266,11 @@ sap.ui.define([
|
|
|
266
266
|
return this.getProperty("content");
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
+
|
|
270
|
+
CompVariant.prototype.getOwnerId = function() {
|
|
271
|
+
return this._oDefinition.support ? this._oDefinition.support.user : "";
|
|
272
|
+
};
|
|
273
|
+
|
|
269
274
|
/**
|
|
270
275
|
* Sets the content of the runtime instance as well as the persistent representation.
|
|
271
276
|
* This results in setting the definition as well as flagging the entity as 'dirty'.
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @extends sap.ui.fl.apply._internal.flexObjects.RevertData
|
|
17
17
|
* @private
|
|
18
18
|
* @ui5-restricted
|
|
19
|
-
* @since
|
|
19
|
+
* @since 1.87.0
|
|
20
20
|
*/
|
|
21
21
|
return RevertData.extend("sap.ui.fl.apply._internal.flexObjects.CompVariantRevertData", {
|
|
22
22
|
metadata: {
|