@openui5/sap.ui.fl 1.102.1 → 1.103.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/Cache.js +1 -1
- package/src/sap/ui/fl/Change.js +1 -1
- package/src/sap/ui/fl/ChangePersistence.js +1 -1
- 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 +1 -1
- 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/Variant.js +1 -1
- 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 +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 +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/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +133 -206
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +38 -14
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +109 -10
- package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +123 -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 +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +16 -13
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +13 -6
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +1 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/EventHistory.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/ControlVariantApplyAPI.js +1 -1
- 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/initial/_internal/Storage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +8 -39
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.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 +9 -9
- package/src/sap/ui/fl/support/Flexibility.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 +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
- 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/IFrame.js +4 -4
- 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 +1 -1
- package/src/sap/ui/fl/write/_internal/Storage.js +1 -1
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
- package/src/sap/ui/fl/write/_internal/Versions.js +7 -7
- 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/KeyUserConnector.js +11 -3
- 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/extensionPoint/Registry.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/FlexObjectState.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +113 -127
- package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +4 -4
- 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/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/Version.js +6 -1
- package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +14 -1
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
*
|
|
19
19
|
* @alias sap.ui.fl.changeHandler.PropertyBindingChange
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.103.1
|
|
22
22
|
* @since 1.38
|
|
23
23
|
* @private
|
|
24
24
|
* @experimental Since 1.38. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
*
|
|
23
23
|
* @alias sap.ui.fl.changeHandler.PropertyChange
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.103.1
|
|
26
26
|
* @since 1.36
|
|
27
27
|
* @private
|
|
28
28
|
* @experimental Since 1.36. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* @namespace
|
|
22
22
|
* @name sap.ui.fl.descriptorRelated
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.103.1
|
|
25
25
|
* @private
|
|
26
26
|
* @ui5-restricted sap.ui.rta, smart business
|
|
27
27
|
*/
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @namespace
|
|
32
32
|
* @name sap.ui.fl.descriptorRelated.api
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.103.1
|
|
35
35
|
* @private
|
|
36
36
|
* @ui5-restricted sap.ui.rta, smart business
|
|
37
37
|
*/
|
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
* @constructor
|
|
46
46
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorChange
|
|
47
47
|
* @author SAP SE
|
|
48
|
-
* @version 1.
|
|
48
|
+
* @version 1.103.1
|
|
49
49
|
* @private
|
|
50
50
|
* @ui5-restricted sap.ui.rta, smart business
|
|
51
51
|
*/
|
|
@@ -128,7 +128,7 @@ sap.ui.define([
|
|
|
128
128
|
* @constructor
|
|
129
129
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorChangeFactory
|
|
130
130
|
* @author SAP SE
|
|
131
|
-
* @version 1.
|
|
131
|
+
* @version 1.103.1
|
|
132
132
|
* @private
|
|
133
133
|
* @ui5-restricted sap.ui.rta, smart business
|
|
134
134
|
*/
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* @namespace
|
|
39
39
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorInlineChangeFactory
|
|
40
40
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.103.1
|
|
42
42
|
* @private
|
|
43
43
|
* @deprecated Since version 1.76
|
|
44
44
|
* @ui5-restricted sap.ui.rta, smart business
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @namespace
|
|
17
17
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorVariantFactory
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.103.1
|
|
20
20
|
* @private
|
|
21
21
|
* @deprecated Since version 1.73
|
|
22
22
|
* @ui5-restricted sap.ui.rta, smart business
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
*
|
|
26
26
|
* @namespace sap.ui.fl.initial._internal.StorageUtils
|
|
27
27
|
* @since 1.74
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.103.1
|
|
29
29
|
* @private
|
|
30
30
|
* @ui5-restricted sap.ui.fl.initial._internal.Storage, sap.ui.fl.write._internal.Storage,
|
|
31
31
|
* sap.ui.fl.initial._internal.connectors.ObjectStorageConnector, sap.ui.fl.initial._internal.connectors.ObjectPathConnector
|
|
@@ -72,39 +72,6 @@ sap.ui.define([
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
/**
|
|
76
|
-
* Sort grouped flexibility objects by their creation timestamp.
|
|
77
|
-
*
|
|
78
|
-
* @param {object} [mResult] Grouped flexibility objects
|
|
79
|
-
* @returns {object} Map of grouped flexibility objects per layer sorted by their creation timestamp
|
|
80
|
-
*/
|
|
81
|
-
function sortGroupedFlexObjects(mResult) {
|
|
82
|
-
function byCreation(oChangeA, oChangeB) {
|
|
83
|
-
return new Date(oChangeA.creation) - new Date(oChangeB.creation);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
[
|
|
87
|
-
"changes",
|
|
88
|
-
"variantChanges",
|
|
89
|
-
"variants",
|
|
90
|
-
"variantDependentControlChanges",
|
|
91
|
-
"variantManagementChanges"
|
|
92
|
-
].forEach(function (sSectionName) {
|
|
93
|
-
mResult[sSectionName] = mResult[sSectionName].sort(byCreation);
|
|
94
|
-
});
|
|
95
|
-
if (mResult.comp) {
|
|
96
|
-
[
|
|
97
|
-
"changes",
|
|
98
|
-
"defaultVariants",
|
|
99
|
-
"standardVariants"
|
|
100
|
-
].forEach(function (sSectionName) {
|
|
101
|
-
mResult.comp[sSectionName] = mResult.comp[sSectionName].sort(byCreation);
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
return mResult;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
75
|
function _getConnectorConfigurations(sNameSpace, bLoadConnectors, mConnectors) {
|
|
109
76
|
return mConnectors.map(function (mConnectorConfiguration) {
|
|
110
77
|
var sConnector = mConnectorConfiguration.connector;
|
|
@@ -235,6 +202,12 @@ sap.ui.define([
|
|
|
235
202
|
return aResponses;
|
|
236
203
|
},
|
|
237
204
|
|
|
205
|
+
sortFlexObjects: function(aFlexObjects) {
|
|
206
|
+
aFlexObjects.sort(function(oChangeA, oChangeB) {
|
|
207
|
+
return new Date(oChangeA.creation) - new Date(oChangeB.creation);
|
|
208
|
+
});
|
|
209
|
+
},
|
|
210
|
+
|
|
238
211
|
/**
|
|
239
212
|
* Groups flexibility objects according to their layer and semantics.
|
|
240
213
|
*
|
|
@@ -242,6 +215,7 @@ sap.ui.define([
|
|
|
242
215
|
* @returns {object} Map of grouped flexibility objects per layer
|
|
243
216
|
*/
|
|
244
217
|
getGroupedFlexObjects: function (aFlexObjects) {
|
|
218
|
+
this.sortFlexObjects(aFlexObjects);
|
|
245
219
|
var mGroupedFlexObjects = {};
|
|
246
220
|
|
|
247
221
|
// build empty groups
|
|
@@ -285,11 +259,6 @@ sap.ui.define([
|
|
|
285
259
|
}
|
|
286
260
|
});
|
|
287
261
|
|
|
288
|
-
// sort groups
|
|
289
|
-
Object.keys(mGroupedFlexObjects).forEach(function (sLayer) {
|
|
290
|
-
sortGroupedFlexObjects(mGroupedFlexObjects[sLayer]);
|
|
291
|
-
});
|
|
292
|
-
|
|
293
262
|
return mGroupedFlexObjects;
|
|
294
263
|
},
|
|
295
264
|
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
*
|
|
17
17
|
* @namespace sap.ui.fl.initial._internal.connectors.Utils
|
|
18
18
|
* @since 1.70
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.103.1
|
|
20
20
|
* @private
|
|
21
21
|
* @ui5-restricted sap.ui.fl.initial._internal.connectors, sap.ui.fl.write._internal.connectors, sap.ui.fl.write._internal.transport
|
|
22
22
|
*/
|
|
@@ -50,7 +50,7 @@ function(
|
|
|
50
50
|
/**
|
|
51
51
|
* @namespace sap.ui.fl.initial._internal.StorageResultDisassemble
|
|
52
52
|
* @since 1.70
|
|
53
|
-
* @version 1.
|
|
53
|
+
* @version 1.103.1
|
|
54
54
|
* @private
|
|
55
55
|
* @ui5-restricted sap.ui.fl.initial._internal.Storage
|
|
56
56
|
* Disassembles a response with a variant section into one or more plain responses.
|
package/src/sap/ui/fl/library.js
CHANGED
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* changes or other flex objects that need processing. If there is nothing to
|
|
29
29
|
* process, any further flex processing is stopped to avoid runtime impact for end users.
|
|
30
30
|
*
|
|
31
|
-
* @version 1.
|
|
31
|
+
* @version 1.103.1
|
|
32
32
|
* @since 1.44
|
|
33
33
|
* @namespace
|
|
34
34
|
* @name sap.ui.fl.initial
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
* The <code>sap.ui.fl.initial.api</code> namespace contains public APIs that can be used
|
|
40
40
|
* during app startup, e.g. to inherit classes to create their own logic for retrieving data for flexibility.
|
|
41
41
|
*
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.103.1
|
|
43
43
|
* @namespace
|
|
44
44
|
* @name sap.ui.fl.initial.api
|
|
45
45
|
* @public
|
|
@@ -50,7 +50,7 @@ sap.ui.define([
|
|
|
50
50
|
* start a UI5 app for an end user with changes. Be aware that only the <code>api</code>
|
|
51
51
|
* sub-namespace contains public and stable APIs.
|
|
52
52
|
*
|
|
53
|
-
* @version 1.
|
|
53
|
+
* @version 1.103.1
|
|
54
54
|
* @namespace
|
|
55
55
|
* @name sap.ui.fl.apply
|
|
56
56
|
* @public
|
|
@@ -60,7 +60,7 @@ sap.ui.define([
|
|
|
60
60
|
* The <code>sap.ui.fl.apply.api</code> namespace contains public APIs that can be used
|
|
61
61
|
* during app startup, e.g. to wait for changes to be applied or to access the current variant.
|
|
62
62
|
*
|
|
63
|
-
* @version 1.
|
|
63
|
+
* @version 1.103.1
|
|
64
64
|
* @namespace
|
|
65
65
|
* @name sap.ui.fl.apply.api
|
|
66
66
|
* @public
|
|
@@ -72,7 +72,7 @@ sap.ui.define([
|
|
|
72
72
|
* by personalization dialogs or 'tools' like key user adaptation will be part of this namespace.
|
|
73
73
|
* Be aware that only the <code>api</code> sub-namespace contains public and stable APIs.
|
|
74
74
|
*
|
|
75
|
-
* @version 1.
|
|
75
|
+
* @version 1.103.1
|
|
76
76
|
* @namespace
|
|
77
77
|
* @name sap.ui.fl.write
|
|
78
78
|
* @public
|
|
@@ -81,7 +81,7 @@ sap.ui.define([
|
|
|
81
81
|
/**
|
|
82
82
|
* The <code>sap.ui.fl.write.api</code> namespace contains public APIs to work with flex objects.
|
|
83
83
|
*
|
|
84
|
-
* @version 1.
|
|
84
|
+
* @version 1.103.1
|
|
85
85
|
* @namespace
|
|
86
86
|
* @name sap.ui.fl.write.api
|
|
87
87
|
* @public
|
|
@@ -91,7 +91,7 @@ sap.ui.define([
|
|
|
91
91
|
* The <code>sap.ui.fl.interfaces</code> namespace contains only interface jsdoc descriptions.
|
|
92
92
|
* It does not contain running code.
|
|
93
93
|
*
|
|
94
|
-
* @version 1.
|
|
94
|
+
* @version 1.103.1
|
|
95
95
|
* @namespace
|
|
96
96
|
* @name sap.ui.fl.interfaces
|
|
97
97
|
* @public
|
|
@@ -144,13 +144,13 @@ sap.ui.define([
|
|
|
144
144
|
* @namespace
|
|
145
145
|
* @alias sap.ui.fl
|
|
146
146
|
* @author SAP SE
|
|
147
|
-
* @version 1.
|
|
147
|
+
* @version 1.103.1
|
|
148
148
|
* @private
|
|
149
149
|
* @ui5-restricted UI5 controls, tools creating flexibility changes
|
|
150
150
|
*/
|
|
151
151
|
var thisLib = sap.ui.getCore().initLibrary({
|
|
152
152
|
name: "sap.ui.fl",
|
|
153
|
-
version: "1.
|
|
153
|
+
version: "1.103.1",
|
|
154
154
|
controls: [
|
|
155
155
|
"sap.ui.fl.variants.VariantManagement",
|
|
156
156
|
"sap.ui.fl.util.IFrame"
|
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
* @constructor
|
|
37
37
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.ContentDetails
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.103.1
|
|
40
40
|
* @experimental Since 1.45
|
|
41
41
|
*/
|
|
42
42
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.ContentDetails", {
|
package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js
CHANGED
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
* @constructor
|
|
37
37
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.ContentDetailsEdit
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.103.1
|
|
40
40
|
* @experimental Since 1.45
|
|
41
41
|
*/
|
|
42
42
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.ContentDetailsEdit", {
|
package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js
CHANGED
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @constructor
|
|
28
28
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.LayerContentMaster
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.103.1
|
|
31
31
|
* @experimental Since 1.45
|
|
32
32
|
*/
|
|
33
33
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.LayerContentMaster", {
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @constructor
|
|
17
17
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.Layers
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.103.1
|
|
20
20
|
* @experimental Since 1.45
|
|
21
21
|
*/
|
|
22
22
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.Layers", {
|
|
@@ -13,7 +13,7 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
13
13
|
* @constructor
|
|
14
14
|
* @alias sap.ui.fl.support.apps.contentbrowser.lrepConnector.LRepConnector
|
|
15
15
|
* @author SAP SE
|
|
16
|
-
* @version 1.
|
|
16
|
+
* @version 1.103.1
|
|
17
17
|
* @experimental Since 1.45
|
|
18
18
|
*/
|
|
19
19
|
var LrepConnector = {};
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* @alias sap.ui.fl.transport.TransportSelection
|
|
18
18
|
* @constructor
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.103.1
|
|
21
21
|
* @since 1.38.0
|
|
22
22
|
* Helper object to select an ABAP transport for an LREP object. This is not a generic utility to select a transport request, but part
|
|
23
23
|
* of the SmartVariant control.
|
|
@@ -50,20 +50,20 @@ sap.ui.define([
|
|
|
50
50
|
* @extends sap.ui.core.Control
|
|
51
51
|
*
|
|
52
52
|
* @author SAP SE
|
|
53
|
-
* @version 1.
|
|
53
|
+
* @version 1.103.1
|
|
54
54
|
*
|
|
55
55
|
* @constructor
|
|
56
56
|
* @private
|
|
57
|
-
* @alias sap.ui.fl.IFrame
|
|
57
|
+
* @alias sap.ui.fl.util.IFrame
|
|
58
58
|
*/
|
|
59
|
-
var IFrame = Control.extend("sap.ui.fl.util.IFrame", /** @lends
|
|
59
|
+
var IFrame = Control.extend("sap.ui.fl.util.IFrame", /** @lends sap.ui.fl.util.IFrame.prototype */ {
|
|
60
60
|
|
|
61
61
|
metadata: {
|
|
62
62
|
library: "sap.ui.fl",
|
|
63
63
|
|
|
64
64
|
properties: {
|
|
65
65
|
/**
|
|
66
|
-
* Determines the
|
|
66
|
+
* Determines the URL of the content.
|
|
67
67
|
*/
|
|
68
68
|
url: {type: "sap.ui.core.URI", group: "Misc", defaultValue: "" },
|
|
69
69
|
|
|
@@ -264,7 +264,7 @@ sap.ui.define([
|
|
|
264
264
|
* @class Variant model implementation for JSON format.
|
|
265
265
|
* @extends sap.ui.model.json.JSONModel
|
|
266
266
|
* @author SAP SE
|
|
267
|
-
* @version 1.
|
|
267
|
+
* @version 1.103.1
|
|
268
268
|
* @param {object} oData - Either the URL where to load the JSON from or a JS object
|
|
269
269
|
* @param {object} mPropertyBag - Map of properties required for the constructor
|
|
270
270
|
* @param {sap.ui.fl.FlexController} mPropertyBag.flexController - <code>FlexController</code> instance for the component which uses the variant model
|
|
@@ -52,16 +52,16 @@ sap.ui.define([
|
|
|
52
52
|
|
|
53
53
|
aVersions.forEach(function (oVersion) {
|
|
54
54
|
if (oVersion.version === Version.Number.Draft) {
|
|
55
|
-
oVersion.type =
|
|
55
|
+
oVersion.type = Version.Type.Draft;
|
|
56
56
|
oVersion.isPublished = false;
|
|
57
57
|
aDraftFilenames = oVersion.filenames;
|
|
58
58
|
} else {
|
|
59
59
|
if (sActiveVersion === Version.Number.Original) {
|
|
60
60
|
// no active version found yet; the first non-draft version is always the active version
|
|
61
|
-
oVersion.type =
|
|
61
|
+
oVersion.type = Version.Type.Active;
|
|
62
62
|
sActiveVersion = oVersion.version;
|
|
63
63
|
} else {
|
|
64
|
-
oVersion.type =
|
|
64
|
+
oVersion.type = Version.Type.Inactive;
|
|
65
65
|
}
|
|
66
66
|
//If the current selected version is not yet published, enable the publish button
|
|
67
67
|
//Original versions are not part of back end response, so publish button is not enabled by default value
|
|
@@ -109,7 +109,7 @@ sap.ui.define([
|
|
|
109
109
|
|
|
110
110
|
// add draft
|
|
111
111
|
if (!_doesDraftExistInVersions(aVersions) && bDraftAvailable) {
|
|
112
|
-
aVersions.splice(0, 0, {version: Version.Number.Draft, type:
|
|
112
|
+
aVersions.splice(0, 0, {version: Version.Number.Draft, type: Version.Type.Draft, filenames: [], isPublished: false});
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
// remove draft
|
|
@@ -174,7 +174,7 @@ sap.ui.define([
|
|
|
174
174
|
*
|
|
175
175
|
* @namespace sap.ui.fl.write._internal.Versions
|
|
176
176
|
* @since 1.74
|
|
177
|
-
* @version 1.
|
|
177
|
+
* @version 1.103.1
|
|
178
178
|
* @private
|
|
179
179
|
* @ui5-restricted sap.ui.fl
|
|
180
180
|
*/
|
|
@@ -292,9 +292,9 @@ sap.ui.define([
|
|
|
292
292
|
return Storage.versions.activate(mPropertyBag)
|
|
293
293
|
.then(function (oVersion) {
|
|
294
294
|
aVersions.forEach(function (oVersionEntry) {
|
|
295
|
-
oVersionEntry.type =
|
|
295
|
+
oVersionEntry.type = Version.Type.Inactive;
|
|
296
296
|
});
|
|
297
|
-
oVersion.type =
|
|
297
|
+
oVersion.type = Version.Type.Active;
|
|
298
298
|
oVersion.isPublished = false;
|
|
299
299
|
if (bDraftExists) {
|
|
300
300
|
aVersions.shift();
|