@openui5/sap.ui.fl 1.119.0 → 1.120.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.
Files changed (214) hide show
  1. package/THIRDPARTY.txt +6 -6
  2. package/package.json +3 -3
  3. package/src/sap/ui/fl/.library +1 -1
  4. package/src/sap/ui/fl/ChangePersistence.js +6 -8
  5. package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
  6. package/src/sap/ui/fl/FakeLrepConnector.js +5 -5
  7. package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +1 -1
  8. package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +1 -1
  9. package/src/sap/ui/fl/FakeLrepLocalStorage.js +1 -1
  10. package/src/sap/ui/fl/FlexController.js +4 -2
  11. package/src/sap/ui/fl/FlexControllerFactory.js +1 -1
  12. package/src/sap/ui/fl/LayerUtils.js +2 -4
  13. package/src/sap/ui/fl/Utils.js +27 -16
  14. package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
  15. package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
  16. package/src/sap/ui/fl/apply/_internal/changes/Utils.js +1 -1
  17. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
  18. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +1 -1
  19. package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +1 -1
  20. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +1 -1
  21. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewInbound.js +1 -1
  22. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +1 -1
  23. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +1 -1
  24. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/RemoveAllInboundsExceptOne.js +1 -1
  25. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +1 -1
  26. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +1 -1
  27. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -1
  28. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
  29. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
  30. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
  31. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +1 -1
  32. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +1 -1
  33. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +1 -1
  34. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -1
  35. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -1
  36. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +1 -1
  37. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +1 -1
  38. package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +3 -3
  39. package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +4 -4
  40. package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +1 -1
  41. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +1 -1
  42. package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +1 -1
  43. package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +1 -1
  44. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +1 -1
  45. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +2 -4
  46. package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +1 -1
  47. package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +1 -1
  48. package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +7 -7
  49. package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +3 -3
  50. package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +1 -1
  51. package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +1 -1
  52. package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +3 -75
  53. package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +1 -1
  54. package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +1 -1
  55. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +2 -2
  56. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +1 -1
  57. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +1 -1
  58. package/src/sap/ui/fl/apply/_internal/preprocessors/ComponentLifecycleHooks.js +3 -1
  59. package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +1 -1
  60. package/src/sap/ui/fl/apply/_internal/preprocessors/EventHistory.js +5 -5
  61. package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +4 -4
  62. package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +1 -1
  63. package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +4 -6
  64. package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +13 -0
  65. package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +1 -3
  66. package/src/sap/ui/fl/apply/api/UI2PersonalizationApplyAPI.js +4 -5
  67. package/src/sap/ui/fl/changeHandler/AddIFrame.js +1 -1
  68. package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
  69. package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +1 -1
  70. package/src/sap/ui/fl/changeHandler/Base.js +1 -1
  71. package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +139 -156
  72. package/src/sap/ui/fl/changeHandler/BaseAddXml.js +1 -1
  73. package/src/sap/ui/fl/changeHandler/BaseRename.js +1 -1
  74. package/src/sap/ui/fl/changeHandler/HideControl.js +1 -1
  75. package/src/sap/ui/fl/changeHandler/MoveControls.js +1 -1
  76. package/src/sap/ui/fl/changeHandler/MoveElements.js +1 -1
  77. package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +1 -1
  78. package/src/sap/ui/fl/changeHandler/PropertyChange.js +1 -1
  79. package/src/sap/ui/fl/changeHandler/StashControl.js +1 -1
  80. package/src/sap/ui/fl/changeHandler/UnhideControl.js +1 -1
  81. package/src/sap/ui/fl/changeHandler/UnstashControl.js +1 -1
  82. package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +1 -1
  83. package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +4 -4
  84. package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +1 -1
  85. package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
  86. package/src/sap/ui/fl/designtime/messagebundle_mk.properties +2 -0
  87. package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +6 -5
  88. package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +3 -1
  89. package/src/sap/ui/fl/initial/_internal/FlexConfiguration.js +77 -0
  90. package/src/sap/ui/fl/initial/_internal/Storage.js +8 -8
  91. package/src/sap/ui/fl/initial/_internal/StorageUtils.js +6 -8
  92. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +5 -5
  93. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +1 -1
  94. package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +8 -7
  95. package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +10 -8
  96. package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +1 -1
  97. package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +1 -1
  98. package/src/sap/ui/fl/interfaces/Delegate.js +1 -1
  99. package/src/sap/ui/fl/library.js +50 -48
  100. package/src/sap/ui/fl/library.support.js +1 -3
  101. package/src/sap/ui/fl/messagebundle.properties +2 -2
  102. package/src/sap/ui/fl/messagebundle_ar.properties +2 -2
  103. package/src/sap/ui/fl/messagebundle_bg.properties +2 -2
  104. package/src/sap/ui/fl/messagebundle_ca.properties +2 -2
  105. package/src/sap/ui/fl/messagebundle_cs.properties +2 -2
  106. package/src/sap/ui/fl/messagebundle_cy.properties +2 -2
  107. package/src/sap/ui/fl/messagebundle_da.properties +2 -2
  108. package/src/sap/ui/fl/messagebundle_de.properties +2 -2
  109. package/src/sap/ui/fl/messagebundle_el.properties +2 -2
  110. package/src/sap/ui/fl/messagebundle_en_GB.properties +2 -2
  111. package/src/sap/ui/fl/messagebundle_es.properties +2 -2
  112. package/src/sap/ui/fl/messagebundle_es_MX.properties +2 -2
  113. package/src/sap/ui/fl/messagebundle_et.properties +2 -2
  114. package/src/sap/ui/fl/messagebundle_fi.properties +2 -2
  115. package/src/sap/ui/fl/messagebundle_fr.properties +2 -2
  116. package/src/sap/ui/fl/messagebundle_fr_CA.properties +2 -2
  117. package/src/sap/ui/fl/messagebundle_hi.properties +2 -2
  118. package/src/sap/ui/fl/messagebundle_hr.properties +2 -2
  119. package/src/sap/ui/fl/messagebundle_hu.properties +2 -2
  120. package/src/sap/ui/fl/messagebundle_id.properties +2 -2
  121. package/src/sap/ui/fl/messagebundle_it.properties +2 -2
  122. package/src/sap/ui/fl/messagebundle_iw.properties +2 -2
  123. package/src/sap/ui/fl/messagebundle_ja.properties +2 -2
  124. package/src/sap/ui/fl/messagebundle_kk.properties +3 -3
  125. package/src/sap/ui/fl/messagebundle_ko.properties +2 -2
  126. package/src/sap/ui/fl/messagebundle_lt.properties +2 -2
  127. package/src/sap/ui/fl/messagebundle_lv.properties +2 -2
  128. package/src/sap/ui/fl/messagebundle_mk.properties +78 -0
  129. package/src/sap/ui/fl/messagebundle_ms.properties +2 -2
  130. package/src/sap/ui/fl/messagebundle_nl.properties +2 -2
  131. package/src/sap/ui/fl/messagebundle_no.properties +2 -2
  132. package/src/sap/ui/fl/messagebundle_pl.properties +2 -2
  133. package/src/sap/ui/fl/messagebundle_pt.properties +2 -2
  134. package/src/sap/ui/fl/messagebundle_pt_PT.properties +2 -2
  135. package/src/sap/ui/fl/messagebundle_ro.properties +2 -2
  136. package/src/sap/ui/fl/messagebundle_ru.properties +2 -2
  137. package/src/sap/ui/fl/messagebundle_sh.properties +4 -4
  138. package/src/sap/ui/fl/messagebundle_sk.properties +2 -2
  139. package/src/sap/ui/fl/messagebundle_sl.properties +2 -2
  140. package/src/sap/ui/fl/messagebundle_sv.properties +2 -2
  141. package/src/sap/ui/fl/messagebundle_th.properties +2 -2
  142. package/src/sap/ui/fl/messagebundle_tr.properties +2 -2
  143. package/src/sap/ui/fl/messagebundle_uk.properties +5 -5
  144. package/src/sap/ui/fl/messagebundle_vi.properties +2 -2
  145. package/src/sap/ui/fl/messagebundle_zh_CN.properties +2 -2
  146. package/src/sap/ui/fl/messagebundle_zh_TW.properties +2 -2
  147. package/src/sap/ui/fl/registry/Settings.js +3 -5
  148. package/src/sap/ui/fl/support/_internal/extractChangeDependencies.js +4 -2
  149. package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +1 -1
  150. package/src/sap/ui/fl/support/_internal/getFlexSettings.js +1 -1
  151. package/src/sap/ui/fl/support/api/SupportAPI.js +1 -1
  152. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +6 -5
  153. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +1 -1
  154. package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +1 -1
  155. package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +1 -1
  156. package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +1 -1
  157. package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +1 -1
  158. package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
  159. package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
  160. package/src/sap/ui/fl/util/IFrame.js +2 -2
  161. package/src/sap/ui/fl/util/ManagedObjectModel.js +2 -2
  162. package/src/sap/ui/fl/util/resolveBinding.js +1 -1
  163. package/src/sap/ui/fl/variants/VariantManagement.js +14 -24
  164. package/src/sap/ui/fl/variants/VariantModel.js +105 -88
  165. package/src/sap/ui/fl/variants/context/i18n/i18n_mk.properties +12 -0
  166. package/src/sap/ui/fl/write/_internal/Storage.js +41 -24
  167. package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
  168. package/src/sap/ui/fl/write/_internal/Versions.js +7 -7
  169. package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +1 -1
  170. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +1 -1
  171. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
  172. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +1 -1
  173. package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +4 -4
  174. package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
  175. package/src/sap/ui/fl/write/_internal/condenser/Utils.js +3 -3
  176. package/src/sap/ui/fl/write/_internal/condenser/classifications/Create.js +3 -3
  177. package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +1 -1
  178. package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +4 -2
  179. package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +5 -3
  180. package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +1 -1
  181. package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +1 -1
  182. package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +1 -1
  183. package/src/sap/ui/fl/write/_internal/connectors/Utils.js +1 -1
  184. package/src/sap/ui/fl/write/_internal/delegates/ODataV4ReadDelegate.js +1 -1
  185. package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +1 -1
  186. package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +1 -1
  187. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +1 -1
  188. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +1 -1
  189. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +1 -1
  190. package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +1 -1
  191. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -1
  192. package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +1 -1
  193. package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
  194. package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +4 -4
  195. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +4 -2
  196. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +4 -2
  197. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
  198. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +1 -1
  199. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +1 -1
  200. package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +1 -1
  201. package/src/sap/ui/fl/write/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +96 -0
  202. package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +12 -13
  203. package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +3 -1
  204. package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +1 -1
  205. package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -1
  206. package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +3 -3
  207. package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +3 -1
  208. package/src/sap/ui/fl/write/api/FieldExtensibility.js +2 -4
  209. package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +13 -13
  210. package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +1 -3
  211. package/src/sap/ui/fl/write/api/TranslationAPI.js +3 -5
  212. package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +14 -13
  213. package/src/sap/ui/fl/write/api/VersionsAPI.js +2 -2
  214. /package/src/sap/ui/fl/{write → initial}/api/Version.js +0 -0
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  *
23
23
  * @alias sap.ui.fl.changeHandler.AddIFrame
24
24
  * @author SAP SE
25
- * @version 1.119.0
25
+ * @version 1.120.0
26
26
  * @since 1.72
27
27
  * @private
28
28
  */
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  *
17
17
  * @alias sap.ui.fl.changeHandler.AddXML
18
18
  * @author SAP SE
19
- * @version 1.119.0
19
+ * @version 1.120.0
20
20
  * @since 1.54
21
21
  * @private
22
22
  */
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  *
19
19
  * @alias sap.ui.fl.changeHandler.AddXMLAtExtensionPoint
20
20
  * @author SAP SE
21
- * @version 1.119.0
21
+ * @version 1.120.0
22
22
  * @since 1.75
23
23
  * @private
24
24
  */
@@ -14,7 +14,7 @@ sap.ui.define([
14
14
  /**
15
15
  * Base functionality for all change handlers, which provides some reuse methods
16
16
  * @namespace sap.ui.fl.changeHandler.Base
17
- * @version 1.119.0
17
+ * @version 1.120.0
18
18
  * @private
19
19
  * @ui5-restricted change handlers
20
20
  */
@@ -7,13 +7,13 @@
7
7
  sap.ui.define([
8
8
  "sap/ui/fl/changeHandler/condenser/Classification",
9
9
  "sap/ui/fl/changeHandler/Base",
10
- "sap/ui/fl/apply/api/DelegateMediatorAPI",
10
+ "sap/ui/fl/requireAsync",
11
11
  "sap/base/util/merge",
12
12
  "sap/base/util/ObjectPath"
13
13
  ], function(
14
14
  CondenserClassification,
15
15
  Base,
16
- DelegateMediatorAPI,
16
+ requireAsync,
17
17
  merge,
18
18
  ObjectPath
19
19
  ) {
@@ -31,6 +31,7 @@ sap.ui.define([
31
31
  // that was replaced by default OData V2 delegate
32
32
  return "sap.ui.model.odata.v2.ODataModel";
33
33
  }
34
+ return undefined;
34
35
  }
35
36
 
36
37
  /**
@@ -39,10 +40,10 @@ sap.ui.define([
39
40
  * @constructor
40
41
  * @alias sap.ui.fl.changeHandler.BaseAddViaDelegate
41
42
  * @author SAP SE
42
- * @version 1.119.0
43
+ * @version 1.120.0
43
44
  * @private
44
45
  */
45
- var BaseAddViaDelegate = {
46
+ const BaseAddViaDelegate = {
46
47
 
47
48
  /**
48
49
  * Returns an instance of the addViaDelegate change handler
@@ -81,70 +82,61 @@ sap.ui.define([
81
82
  return evaluateSettingsFlag(oChangeODataInformation, "skipCreateLayout");
82
83
  }
83
84
 
84
- function checkCondensingEnabled(mChange, mPropertyBag) {
85
+ async function checkCondensingEnabled(mChange, mPropertyBag) {
85
86
  // createLayout side effects might break condensing
86
87
  // Only enable condensing if the delegate doesn't create a layout
87
88
  // or the handler opts out
88
89
 
89
- var oControl = mPropertyBag.modifier.bySelector(mChange.getSelector(), mPropertyBag.appComponent);
90
- var sModelType = getModelType(mChange.getContent());
90
+ const oControl = mPropertyBag.modifier.bySelector(mChange.getSelector(), mPropertyBag.appComponent);
91
+ const sModelType = getModelType(mChange.getContent());
91
92
 
92
- return DelegateMediatorAPI.getDelegateForControl({
93
+ const DelegateMediatorAPI = await requireAsync("sap/ui/fl/apply/api/DelegateMediatorAPI");
94
+ const oDelegate = await DelegateMediatorAPI.getDelegateForControl({
93
95
  control: oControl,
94
96
  modifier: mPropertyBag.modifier,
95
97
  modelType: sModelType,
96
98
  supportsDefault: mAddViaDelegateSettings.supportsDefault
97
- })
98
- .then(function(oDelegate) {
99
- var bCondensingSupported = !isFunction(oDelegate.instance.createLayout);
100
- return bCondensingSupported || skipCreateLayout(mChange.getSupportInformation().oDataInformation);
101
99
  });
100
+ const bCondensingSupported = !isFunction(oDelegate.instance.createLayout);
101
+ return bCondensingSupported || skipCreateLayout(mChange.getSupportInformation().oDataInformation);
102
102
  }
103
103
 
104
- function getDelegateControlForPropertyAndLabel(oChangeODataInformation, mDelegatePropertyBag, oDelegate) {
105
- var mDelegateSettings = merge({}, mDelegatePropertyBag);
104
+ async function getDelegateControlForPropertyAndLabel(oChangeODataInformation, mDelegatePropertyBag, oDelegate) {
105
+ const mDelegateSettings = merge({}, mDelegatePropertyBag);
106
106
  mDelegateSettings.fieldSelector.id = getNewFieldId(mDelegateSettings.fieldSelector.id);
107
- return oDelegate.createControlForProperty(mDelegateSettings)
108
- .then(function(mSpecificControlInfo) {
109
- if (skipCreateLabel(oChangeODataInformation)) {
110
- return mSpecificControlInfo;
111
- }
112
- var sNewFieldId = mDelegatePropertyBag.modifier.getId(mSpecificControlInfo.control);
113
- mDelegatePropertyBag.labelFor = sNewFieldId;
114
- return oDelegate.createLabel(mDelegatePropertyBag).then(function(oLabel) {
115
- return {
116
- label: oLabel,
117
- control: mSpecificControlInfo.control,
118
- valueHelp: mSpecificControlInfo.valueHelp
119
- };
120
- });
121
- });
107
+ const mSpecificControlInfo = await oDelegate.createControlForProperty(mDelegateSettings);
108
+ if (skipCreateLabel(oChangeODataInformation)) {
109
+ return mSpecificControlInfo;
110
+ }
111
+ const sNewFieldId = mDelegatePropertyBag.modifier.getId(mSpecificControlInfo.control);
112
+ mDelegatePropertyBag.labelFor = sNewFieldId;
113
+ const oLabel = await oDelegate.createLabel(mDelegatePropertyBag);
114
+ return {
115
+ label: oLabel,
116
+ control: mSpecificControlInfo.control,
117
+ valueHelp: mSpecificControlInfo.valueHelp
118
+ };
122
119
  }
123
120
 
124
- function getControlsFromDelegate(oChangeContent, mDelegate, mPropertyBag, oChangeODataInformation) {
125
- var mDelegatePropertyBag = merge({
121
+ async function getControlsFromDelegate(oChangeContent, mDelegate, mPropertyBag, oChangeODataInformation) {
122
+ const mDelegatePropertyBag = merge({
126
123
  aggregationName: mAddViaDelegateSettings.aggregationName,
127
124
  payload: mDelegate.payload || {},
128
125
  parentSelector: oChangeContent.parentId
129
126
  }, mPropertyBag);
130
- var oDelegate = mDelegate.instance;
131
-
132
- return Promise.resolve()
133
- .then(function() {
134
- if (
135
- isFunction(oDelegate.createLayout)
136
- && !skipCreateLayout(oChangeODataInformation)
137
- ) {
138
- return oDelegate.createLayout(mDelegatePropertyBag);
139
- }
140
- })
141
- .then(function(mLayoutControlInfo) {
142
- if (ObjectPath.get("control", mLayoutControlInfo)) {
143
- mLayoutControlInfo.layoutControl = true;
144
- return mLayoutControlInfo;
145
- }
146
- return getDelegateControlForPropertyAndLabel(oChangeODataInformation, mDelegatePropertyBag, oDelegate);
147
- });
127
+ const oDelegate = mDelegate.instance;
128
+ let mLayoutControlInfo;
129
+ if (
130
+ isFunction(oDelegate.createLayout)
131
+ && !skipCreateLayout(oChangeODataInformation)
132
+ ) {
133
+ mLayoutControlInfo = await oDelegate.createLayout(mDelegatePropertyBag);
134
+ }
135
+ if (ObjectPath.get("control", mLayoutControlInfo)) {
136
+ mLayoutControlInfo.layoutControl = true;
137
+ return mLayoutControlInfo;
138
+ }
139
+ return getDelegateControlForPropertyAndLabel(oChangeODataInformation, mDelegatePropertyBag, oDelegate);
148
140
  }
149
141
 
150
142
  /** **************** Change Handler ******************/
@@ -160,12 +152,12 @@ sap.ui.define([
160
152
  * @returns {Promise<undefined>} to wait for execution
161
153
  * @public
162
154
  */
163
- applyChange(oChange, oControl, mPropertyBag) {
164
- var oAppComponent = mPropertyBag.appComponent;
165
- var oChangeContent = oChange.getContent();
166
- var oChangeODataInformation = oChange.getSupportInformation().oDataInformation;
167
- var mFieldSelector = oChangeContent.newFieldSelector;
168
- var mCreateProperties = {
155
+ async applyChange(oChange, oControl, mPropertyBag) {
156
+ const oAppComponent = mPropertyBag.appComponent;
157
+ const oChangeContent = oChange.getContent();
158
+ const oChangeODataInformation = oChange.getSupportInformation().oDataInformation;
159
+ const mFieldSelector = oChangeContent.newFieldSelector;
160
+ const mCreateProperties = {
169
161
  appComponent: mPropertyBag.appComponent,
170
162
  view: mPropertyBag.view,
171
163
  fieldSelector: mFieldSelector,
@@ -175,51 +167,55 @@ sap.ui.define([
175
167
  };
176
168
  // Check if the change is applicable
177
169
  if (mPropertyBag.modifier.bySelector(mFieldSelector, oAppComponent, mPropertyBag.view)) {
178
- return Base.markAsNotApplicable(
170
+ await Base.markAsNotApplicable(
179
171
  `Control to be created already exists:${mFieldSelector.id || mFieldSelector}`,
180
172
  /* bAsync */true
181
173
  );
174
+ return;
182
175
  }
183
- var oRevertData = {
176
+ const oRevertData = {
184
177
  newFieldSelector: mFieldSelector
185
178
  };
186
- // revert data will be enhanced later on, but should be attached to the change so that the addProperty-hook can access it and enhance it
179
+ // revert data will be enhanced later on, but should be attached to the change
180
+ // so that the addProperty-hook can access it and enhance it
187
181
  oChange.setRevertData(oRevertData);
188
182
 
189
- var sModelType = getModelType(oChangeContent);
183
+ const sModelType = getModelType(oChangeContent);
190
184
 
191
- return DelegateMediatorAPI.getDelegateForControl({
185
+ const DelegateMediatorAPI = await requireAsync("sap/ui/fl/apply/api/DelegateMediatorAPI");
186
+ const mDelegate = await DelegateMediatorAPI.getDelegateForControl({
192
187
  control: oControl,
193
188
  modifier: mPropertyBag.modifier,
194
189
  modelType: sModelType,
195
190
  supportsDefault: mAddViaDelegateSettings.supportsDefault
196
- }).then(function(mDelegate) {
197
- return getControlsFromDelegate(oChangeContent, mDelegate, mCreateProperties, oChangeODataInformation);
198
- }).then(function(mInnerControls) {
199
- var mAddPropertySettings = merge({},
200
- {
201
- control: oControl,
202
- innerControls: mInnerControls,
203
- change: oChange
204
- },
205
- mPropertyBag
206
- );
207
- //------------------------
208
- // Call 'addProperty' hook!
209
- //------------------------
210
- return Promise.resolve()
211
- .then(function() {
212
- return mAddViaDelegateSettings.addProperty(mAddPropertySettings);
213
- })
214
- .then(function() {
215
- if (mInnerControls.valueHelp) {
216
- var oValueHelpSelector = mPropertyBag.modifier.getSelector(mPropertyBag.modifier.getId(mInnerControls.valueHelp), oAppComponent);
217
- var oRevertData = oChange.getRevertData();
218
- oRevertData.valueHelpSelector = oValueHelpSelector;
219
- oChange.setRevertData(oRevertData);
220
- }
221
- });
222
191
  });
192
+ const mInnerControls = await getControlsFromDelegate(
193
+ oChangeContent,
194
+ mDelegate,
195
+ mCreateProperties,
196
+ oChangeODataInformation
197
+ );
198
+ const mAddPropertySettings = merge({},
199
+ {
200
+ control: oControl,
201
+ innerControls: mInnerControls,
202
+ change: oChange
203
+ },
204
+ mPropertyBag
205
+ );
206
+ //------------------------
207
+ // Call 'addProperty' hook!
208
+ //------------------------
209
+ await mAddViaDelegateSettings.addProperty(mAddPropertySettings);
210
+ if (mInnerControls.valueHelp) {
211
+ const oValueHelpSelector = mPropertyBag.modifier.getSelector(
212
+ mPropertyBag.modifier.getId(mInnerControls.valueHelp),
213
+ oAppComponent
214
+ );
215
+ const oRevertData = oChange.getRevertData();
216
+ oRevertData.valueHelpSelector = oValueHelpSelector;
217
+ oChange.setRevertData(oRevertData);
218
+ }
223
219
  },
224
220
 
225
221
  /**
@@ -233,50 +229,39 @@ sap.ui.define([
233
229
  * @return {boolean} True if successful
234
230
  * @public
235
231
  */
236
- revertChange(oChange, oControl, mPropertyBag) {
237
- var oAppComponent = mPropertyBag.appComponent;
238
- var oModifier = mPropertyBag.modifier;
239
- var mFieldSelector = oChange.getRevertData().newFieldSelector;
240
- var mValueHelpSelector = oChange.getRevertData().valueHelpSelector;
232
+ async revertChange(oChange, oControl, mPropertyBag) {
233
+ const oAppComponent = mPropertyBag.appComponent;
234
+ const oModifier = mPropertyBag.modifier;
235
+ const mFieldSelector = oChange.getRevertData().newFieldSelector;
236
+ const mValueHelpSelector = oChange.getRevertData().valueHelpSelector;
241
237
 
242
- var oNewField = oModifier.bySelector(mFieldSelector, oAppComponent);
238
+ const oNewField = oModifier.bySelector(mFieldSelector, oAppComponent);
243
239
 
244
- var oParentControl = oChange.getDependentControl(mAddViaDelegateSettings.parentAlias, mPropertyBag)
240
+ const oParentControl = oChange.getDependentControl(mAddViaDelegateSettings.parentAlias, mPropertyBag)
245
241
  || /* fallback and legacy changes */ oControl;
246
242
 
247
- return Promise.resolve()
248
- .then(oModifier.removeAggregation.bind(oModifier, oParentControl, mAddViaDelegateSettings.aggregationName, oNewField))
249
- .then(oModifier.destroy.bind(oModifier, oNewField))
250
- .then(function() {
251
- if (mValueHelpSelector) {
252
- var oValueHelp = oModifier.bySelector(mValueHelpSelector, oAppComponent);
253
- return Promise.resolve()
254
- .then(oModifier.removeAggregation.bind(oModifier, oParentControl, "dependents", oValueHelp))
255
- .then(oModifier.destroy.bind(oModifier, oValueHelp));
256
- }
257
- })
258
- .then(function() {
259
- var mAddPropertySettings = merge({},
260
- {
261
- control: oControl,
262
- change: oChange
263
- },
264
- mPropertyBag
265
- );
243
+ await oModifier.removeAggregation(oParentControl, mAddViaDelegateSettings.aggregationName, oNewField);
244
+ await oModifier.destroy(oNewField);
245
+ if (mValueHelpSelector) {
246
+ const oValueHelp = oModifier.bySelector(mValueHelpSelector, oAppComponent);
247
+ await oModifier.removeAggregation(oParentControl, "dependents", oValueHelp);
248
+ await oModifier.destroy(oValueHelp);
249
+ }
250
+ const mAddPropertySettings = merge({},
251
+ {
252
+ control: oControl,
253
+ change: oChange
254
+ },
255
+ mPropertyBag
256
+ );
266
257
 
267
- if (isFunction(mAddViaDelegateSettings.revertAdditionalControls)) {
268
- //-------------------------------------
269
- // Call 'revertAdditionalControls' hook!
270
- //-------------------------------------
271
- return Promise.resolve()
272
- .then(function() {
273
- return mAddViaDelegateSettings.revertAdditionalControls(mAddPropertySettings);
274
- })
275
- .then(function() {
276
- oChange.resetRevertData();
277
- });
278
- }
279
- });
258
+ if (isFunction(mAddViaDelegateSettings.revertAdditionalControls)) {
259
+ //-------------------------------------
260
+ // Call 'revertAdditionalControls' hook!
261
+ //-------------------------------------
262
+ await mAddViaDelegateSettings.revertAdditionalControls(mAddPropertySettings);
263
+ oChange.resetRevertData();
264
+ }
280
265
  },
281
266
 
282
267
  /**
@@ -297,8 +282,8 @@ sap.ui.define([
297
282
  * @public
298
283
  */
299
284
  completeChangeContent(oChange, mSpecificChangeInfo, mPropertyBag) {
300
- var oAppComponent = mPropertyBag.appComponent;
301
- var oContent = {};
285
+ const oAppComponent = mPropertyBag.appComponent;
286
+ const oContent = {};
302
287
  if (mSpecificChangeInfo.parentId) {
303
288
  if (isFunction(mAddViaDelegateSettings.mapParentIdIntoChange)) {
304
289
  mAddViaDelegateSettings.mapParentIdIntoChange(oChange, mSpecificChangeInfo, mPropertyBag);
@@ -342,7 +327,7 @@ sap.ui.define([
342
327
  },
343
328
 
344
329
  getChangeVisualizationInfo(oChange) {
345
- var oRevertData = oChange.getRevertData();
330
+ const oRevertData = oChange.getRevertData();
346
331
  if (oRevertData && oRevertData.labelSelector) {
347
332
  return {
348
333
  affectedControls: [oRevertData.labelSelector]
@@ -353,36 +338,34 @@ sap.ui.define([
353
338
  };
354
339
  },
355
340
 
356
- getCondenserInfo(oChange, mPropertyBag) {
357
- return checkCondensingEnabled(oChange, mPropertyBag)
358
- .then(function(bCondensingEnabled) {
359
- if (!bCondensingEnabled) {
360
- return undefined;
361
- }
341
+ async getCondenserInfo(oChange, mPropertyBag) {
342
+ const bCondensingEnabled = await checkCondensingEnabled(oChange, mPropertyBag);
343
+ if (!bCondensingEnabled) {
344
+ return undefined;
345
+ }
362
346
 
363
- if (
364
- !oChange.getContent().newFieldSelector
365
- || !oChange.getContent().parentId
366
- || !mAddViaDelegateSettings.aggregationName
367
- ) {
368
- return undefined;
369
- }
347
+ if (
348
+ !oChange.getContent().newFieldSelector
349
+ || !oChange.getContent().parentId
350
+ || !mAddViaDelegateSettings.aggregationName
351
+ ) {
352
+ return undefined;
353
+ }
370
354
 
371
- return {
372
- affectedControl: oChange.getContent().newFieldSelector,
373
- classification: CondenserClassification.Create,
374
- targetContainer: oChange.getContent().parentId,
375
- targetAggregation: mAddViaDelegateSettings.aggregationName,
376
- setTargetIndex(oChange, iNewTargetIndex) {
377
- var oChangeContent = oChange.getContent();
378
- oChangeContent.newFieldIndex = iNewTargetIndex;
379
- oChange.setContent(oChangeContent);
380
- },
381
- getTargetIndex(oChange) {
382
- return oChange.getContent().newFieldIndex;
383
- }
384
- };
385
- });
355
+ return {
356
+ affectedControl: oChange.getContent().newFieldSelector,
357
+ classification: CondenserClassification.Create,
358
+ targetContainer: oChange.getContent().parentId,
359
+ targetAggregation: mAddViaDelegateSettings.aggregationName,
360
+ setTargetIndex(oChange, iNewTargetIndex) {
361
+ const oChangeContent = oChange.getContent();
362
+ oChangeContent.newFieldIndex = iNewTargetIndex;
363
+ oChange.setContent(oChangeContent);
364
+ },
365
+ getTargetIndex(oChange) {
366
+ return oChange.getContent().newFieldIndex;
367
+ }
368
+ };
386
369
  }
387
370
  };
388
371
  }
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  *
23
23
  * @alias sap.ui.fl.changeHandler.BaseAddXml
24
24
  * @author SAP SE
25
- * @version 1.119.0
25
+ * @version 1.120.0
26
26
  * @since 1.75
27
27
  * @private
28
28
  */
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @constructor
18
18
  * @alias sap.ui.fl.changeHandler.BaseRename
19
19
  * @author SAP SE
20
- * @version 1.119.0
20
+ * @version 1.120.0
21
21
  * @since 1.46
22
22
  *
23
23
  */
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * Change handler for hiding of a control.
22
22
  * @alias sap.ui.fl.changeHandler.HideControl
23
23
  * @author SAP SE
24
- * @version 1.119.0
24
+ * @version 1.120.0
25
25
  * @since 1.27.0
26
26
  */
27
27
  var HideControl = {};
@@ -19,7 +19,7 @@ function(
19
19
  *
20
20
  * @alias sap.ui.fl.changeHandler.MoveControls
21
21
  * @author SAP SE
22
- * @version 1.119.0
22
+ * @version 1.120.0
23
23
  * @since 1.46
24
24
  */
25
25
  var MoveControls = { };
@@ -12,7 +12,7 @@ sap.ui.define([], function() {
12
12
  *
13
13
  * @alias sap.ui.fl.changeHandler.MoveElements
14
14
  * @author SAP SE
15
- * @version 1.119.0
15
+ * @version 1.120.0
16
16
  * @since 1.34.0
17
17
  */
18
18
  var MoveElements = { };
@@ -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.119.0
21
+ * @version 1.120.0
22
22
  * @since 1.38
23
23
  * @private
24
24
  */
@@ -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.119.0
25
+ * @version 1.120.0
26
26
  * @since 1.36
27
27
  * @private
28
28
  */
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * Change handler for stashing of a control.
20
20
  * @alias sap.ui.fl.changeHandler.StashControl
21
21
  * @author SAP SE
22
- * @version 1.119.0
22
+ * @version 1.120.0
23
23
  * @since 1.27.0
24
24
  */
25
25
  var StashControl = {};
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * Change handler for unhiding of a control.
20
20
  * @alias sap.ui.fl.changeHandler.UnhideControl
21
21
  * @author SAP SE
22
- * @version 1.119.0
22
+ * @version 1.120.0
23
23
  * @since 1.27.0
24
24
  */
25
25
  var UnhideControl = {};
@@ -15,7 +15,7 @@ sap.ui.define([
15
15
  * Change handler for unstashing of a control.
16
16
  * @alias sap.ui.fl.changeHandler.UnstashControl
17
17
  * @author SAP SE
18
- * @version 1.119.0
18
+ * @version 1.120.0
19
19
  * @since 1.27.0
20
20
  */
21
21
  var UnstashControl = {};
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  *
19
19
  * @alias sap.ui.fl.changeHandler.UpdateIFrame
20
20
  * @author SAP SE
21
- * @version 1.119.0
21
+ * @version 1.120.0
22
22
  * @since 1.72
23
23
  * @private
24
24
  */
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @namespace
20
20
  * @name sap.ui.fl.descriptorRelated
21
21
  * @author SAP SE
22
- * @version 1.119.0
22
+ * @version 1.120.0
23
23
  * @private
24
24
  * @ui5-restricted sap.ui.rta, smart business
25
25
  */
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @namespace
30
30
  * @name sap.ui.fl.descriptorRelated.api
31
31
  * @author SAP SE
32
- * @version 1.119.0
32
+ * @version 1.120.0
33
33
  * @private
34
34
  * @ui5-restricted sap.ui.rta, smart business
35
35
  */
@@ -43,7 +43,7 @@ sap.ui.define([
43
43
  * @constructor
44
44
  * @alias sap.ui.fl.descriptorRelated.api.DescriptorChange
45
45
  * @author SAP SE
46
- * @version 1.119.0
46
+ * @version 1.120.0
47
47
  * @private
48
48
  * @ui5-restricted sap.ui.rta, smart business
49
49
  */
@@ -124,7 +124,7 @@ sap.ui.define([
124
124
  * @constructor
125
125
  * @alias sap.ui.fl.descriptorRelated.api.DescriptorChangeFactory
126
126
  * @author SAP SE
127
- * @version 1.119.0
127
+ * @version 1.120.0
128
128
  * @private
129
129
  * @ui5-restricted sap.ui.rta, smart business
130
130
  */
@@ -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.119.0
41
+ * @version 1.120.0
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.119.0
19
+ * @version 1.120.0
20
20
  * @private
21
21
  * @deprecated Since version 1.73
22
22
  * @ui5-restricted sap.ui.rta, smart business
@@ -0,0 +1,2 @@
1
+
2
+ CTX_EDIT_IFRAME=\u0410\u0436\u0443\u0440\u0438\u0440\u0430\u0458 \u0458\u0430 \u0432\u043C\u0435\u0442\u043D\u0430\u0442\u0430\u0442\u0430 \u0441\u043E\u0434\u0440\u0436\u0438\u043D\u0430
@@ -5,11 +5,11 @@
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
- "sap/ui/core/Core",
8
+ "sap/ui/core/Element",
9
9
  "sap/ui/rta/plugin/iframe/AddIFrameDialog",
10
10
  "sap/m/library"
11
11
  ], function(
12
- Core,
12
+ Element,
13
13
  AddIFrameDialog
14
14
  ) {
15
15
  "use strict";
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  // The title of the iFrame container could have changed
25
25
  // so we need to retrieve it before opening the dialog
26
26
  if (mRenameInfo) {
27
- oContainer = Core.byId(mRenameInfo.sourceControlId);
27
+ oContainer = Element.getElementById(mRenameInfo.sourceControlId);
28
28
  oInitialSettings.title = oContainer.getProperty(mRenameInfo.propertyName);
29
29
  }
30
30
 
@@ -51,7 +51,8 @@ sap.ui.define([
51
51
  var oNewContent = {
52
52
  url: oInitialSettings.url,
53
53
  height: oInitialSettings.height,
54
- width: oInitialSettings.width
54
+ width: oInitialSettings.width,
55
+ useLegacyNavigation: oInitialSettings.useLegacyNavigation
55
56
  };
56
57
 
57
58
  if (mSettings.frameHeight + mSettings.frameHeightUnit !== oInitialSettings.height) {
@@ -84,7 +85,7 @@ sap.ui.define([
84
85
  // If the title changes a rename change must be created
85
86
  if (mSettings.title !== oInitialSettings.title) {
86
87
  var mRenameChange = {
87
- selectorControl: Core.byId(mRenameInfo.selectorControlId),
88
+ selectorControl: Element.getElementById(mRenameInfo.selectorControlId),
88
89
  changeSpecificData: {
89
90
  changeType: "rename",
90
91
  content: {