@openui5/sap.ui.rta 1.115.1 → 1.117.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 (178) hide show
  1. package/.eslintrc.json +33 -2
  2. package/.reuse/dep5 +0 -5
  3. package/THIRDPARTY.txt +1 -7
  4. package/package.json +6 -6
  5. package/src/sap/ui/rta/.library +1 -1
  6. package/src/sap/ui/rta/Client.js +60 -59
  7. package/src/sap/ui/rta/RuntimeAuthoring.js +256 -254
  8. package/src/sap/ui/rta/Utils.js +42 -42
  9. package/src/sap/ui/rta/api/startAdaptation.js +2 -2
  10. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +3 -3
  11. package/src/sap/ui/rta/appVariant/AppVariantManager.js +27 -27
  12. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +100 -103
  13. package/src/sap/ui/rta/appVariant/Feature.js +75 -77
  14. package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +6 -7
  15. package/src/sap/ui/rta/appVariant/Utils.js +17 -17
  16. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +36 -36
  17. package/src/sap/ui/rta/command/AddIFrame.js +7 -7
  18. package/src/sap/ui/rta/command/AddProperty.js +7 -7
  19. package/src/sap/ui/rta/command/AddXML.js +1 -1
  20. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +7 -7
  21. package/src/sap/ui/rta/command/AppDescriptorCommand.js +18 -18
  22. package/src/sap/ui/rta/command/BaseCommand.js +1 -2
  23. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  24. package/src/sap/ui/rta/command/Combine.js +1 -1
  25. package/src/sap/ui/rta/command/CommandFactory.js +11 -11
  26. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  27. package/src/sap/ui/rta/command/ControlVariantConfigure.js +28 -3
  28. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  29. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +26 -24
  30. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +7 -7
  31. package/src/sap/ui/rta/command/ControlVariantSwitch.js +11 -11
  32. package/src/sap/ui/rta/command/CreateContainer.js +2 -2
  33. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  34. package/src/sap/ui/rta/command/FlexCommand.js +30 -30
  35. package/src/sap/ui/rta/command/LREPSerializer.js +20 -10
  36. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  37. package/src/sap/ui/rta/command/Move.js +1 -1
  38. package/src/sap/ui/rta/command/Property.js +1 -1
  39. package/src/sap/ui/rta/command/Remove.js +1 -1
  40. package/src/sap/ui/rta/command/Rename.js +1 -1
  41. package/src/sap/ui/rta/command/Resize.js +1 -1
  42. package/src/sap/ui/rta/command/Reveal.js +1 -1
  43. package/src/sap/ui/rta/command/Settings.js +1 -1
  44. package/src/sap/ui/rta/command/Split.js +1 -1
  45. package/src/sap/ui/rta/command/Stack.js +4 -4
  46. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  47. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  48. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  49. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  50. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  51. package/src/sap/ui/rta/enablement/TestDelegate.js +92 -92
  52. package/src/sap/ui/rta/enablement/elementActionTest.js +230 -112
  53. package/src/sap/ui/rta/library.js +2 -2
  54. package/src/sap/ui/rta/messagebundle.properties +11 -1
  55. package/src/sap/ui/rta/messagebundle_ar.properties +5 -0
  56. package/src/sap/ui/rta/messagebundle_bg.properties +5 -0
  57. package/src/sap/ui/rta/messagebundle_ca.properties +5 -0
  58. package/src/sap/ui/rta/messagebundle_cs.properties +5 -0
  59. package/src/sap/ui/rta/messagebundle_cy.properties +5 -0
  60. package/src/sap/ui/rta/messagebundle_da.properties +5 -0
  61. package/src/sap/ui/rta/messagebundle_de.properties +6 -1
  62. package/src/sap/ui/rta/messagebundle_el.properties +5 -0
  63. package/src/sap/ui/rta/messagebundle_en.properties +5 -0
  64. package/src/sap/ui/rta/messagebundle_en_GB.properties +5 -0
  65. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +5 -0
  66. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +5 -0
  67. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +6 -1
  68. package/src/sap/ui/rta/messagebundle_es.properties +5 -0
  69. package/src/sap/ui/rta/messagebundle_es_MX.properties +5 -0
  70. package/src/sap/ui/rta/messagebundle_et.properties +5 -0
  71. package/src/sap/ui/rta/messagebundle_fi.properties +5 -0
  72. package/src/sap/ui/rta/messagebundle_fr.properties +5 -0
  73. package/src/sap/ui/rta/messagebundle_fr_CA.properties +5 -0
  74. package/src/sap/ui/rta/messagebundle_hi.properties +5 -0
  75. package/src/sap/ui/rta/messagebundle_hr.properties +5 -0
  76. package/src/sap/ui/rta/messagebundle_hu.properties +5 -0
  77. package/src/sap/ui/rta/messagebundle_id.properties +5 -0
  78. package/src/sap/ui/rta/messagebundle_it.properties +5 -0
  79. package/src/sap/ui/rta/messagebundle_iw.properties +5 -0
  80. package/src/sap/ui/rta/messagebundle_ja.properties +5 -0
  81. package/src/sap/ui/rta/messagebundle_kk.properties +5 -0
  82. package/src/sap/ui/rta/messagebundle_ko.properties +5 -0
  83. package/src/sap/ui/rta/messagebundle_lt.properties +5 -0
  84. package/src/sap/ui/rta/messagebundle_lv.properties +5 -0
  85. package/src/sap/ui/rta/messagebundle_ms.properties +5 -0
  86. package/src/sap/ui/rta/messagebundle_nl.properties +5 -0
  87. package/src/sap/ui/rta/messagebundle_no.properties +5 -0
  88. package/src/sap/ui/rta/messagebundle_pl.properties +5 -0
  89. package/src/sap/ui/rta/messagebundle_pt.properties +5 -0
  90. package/src/sap/ui/rta/messagebundle_pt_PT.properties +5 -0
  91. package/src/sap/ui/rta/messagebundle_ro.properties +5 -0
  92. package/src/sap/ui/rta/messagebundle_ru.properties +5 -0
  93. package/src/sap/ui/rta/messagebundle_sh.properties +5 -0
  94. package/src/sap/ui/rta/messagebundle_sk.properties +5 -0
  95. package/src/sap/ui/rta/messagebundle_sl.properties +5 -0
  96. package/src/sap/ui/rta/messagebundle_sv.properties +5 -0
  97. package/src/sap/ui/rta/messagebundle_th.properties +5 -0
  98. package/src/sap/ui/rta/messagebundle_tr.properties +5 -0
  99. package/src/sap/ui/rta/messagebundle_uk.properties +5 -0
  100. package/src/sap/ui/rta/messagebundle_vi.properties +5 -0
  101. package/src/sap/ui/rta/messagebundle_zh_CN.properties +5 -0
  102. package/src/sap/ui/rta/messagebundle_zh_TW.properties +5 -0
  103. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +44 -44
  104. package/src/sap/ui/rta/plugin/BaseCreate.js +29 -29
  105. package/src/sap/ui/rta/plugin/Combine.js +9 -9
  106. package/src/sap/ui/rta/plugin/ControlVariant.js +21 -21
  107. package/src/sap/ui/rta/plugin/CreateContainer.js +6 -6
  108. package/src/sap/ui/rta/plugin/CutPaste.js +46 -46
  109. package/src/sap/ui/rta/plugin/DragDrop.js +2 -2
  110. package/src/sap/ui/rta/plugin/EasyAdd.js +4 -4
  111. package/src/sap/ui/rta/plugin/EasyRemove.js +5 -5
  112. package/src/sap/ui/rta/plugin/LocalReset.js +25 -25
  113. package/src/sap/ui/rta/plugin/Plugin.js +20 -20
  114. package/src/sap/ui/rta/plugin/RTAElementMover.js +42 -42
  115. package/src/sap/ui/rta/plugin/Remove.js +11 -11
  116. package/src/sap/ui/rta/plugin/Rename.js +7 -7
  117. package/src/sap/ui/rta/plugin/RenameHandler.js +17 -17
  118. package/src/sap/ui/rta/plugin/Resize.js +62 -62
  119. package/src/sap/ui/rta/plugin/Selection.js +14 -14
  120. package/src/sap/ui/rta/plugin/Settings.js +20 -20
  121. package/src/sap/ui/rta/plugin/Split.js +7 -7
  122. package/src/sap/ui/rta/plugin/Stretch.js +4 -4
  123. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +94 -87
  124. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +18 -18
  125. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +98 -99
  126. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +144 -144
  127. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +3 -4
  128. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +67 -67
  129. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +38 -39
  130. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +1 -0
  131. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +29 -29
  132. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +5 -5
  133. package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
  134. package/src/sap/ui/rta/service/Action.js +36 -37
  135. package/src/sap/ui/rta/service/ControllerExtension.js +4 -4
  136. package/src/sap/ui/rta/service/Outline.js +59 -59
  137. package/src/sap/ui/rta/service/Property.js +125 -125
  138. package/src/sap/ui/rta/service/Receiver.js +78 -77
  139. package/src/sap/ui/rta/service/Selection.js +6 -6
  140. package/src/sap/ui/rta/service/SupportTools.js +188 -37
  141. package/src/sap/ui/rta/service/index.js +1 -1
  142. package/src/sap/ui/rta/themes/base/FlexSupportExtension.less +14 -0
  143. package/src/sap/ui/rta/themes/base/library.source.less +2 -1
  144. package/src/sap/ui/rta/toolbar/Adaptation.js +81 -26
  145. package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
  146. package/src/sap/ui/rta/toolbar/Base.js +17 -15
  147. package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -2
  148. package/src/sap/ui/rta/toolbar/Fiori.js +8 -8
  149. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  150. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +4 -4
  151. package/src/sap/ui/rta/toolbar/Personalization.js +2 -2
  152. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  153. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +13 -6
  154. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +2 -8
  155. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +2 -3
  156. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptationDialog.fragment.xml +0 -2
  157. package/src/sap/ui/rta/toolbar/translation/Translation.js +41 -41
  158. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +9 -9
  159. package/src/sap/ui/rta/util/Animation.js +5 -5
  160. package/src/sap/ui/rta/util/BindingsExtractor.js +33 -33
  161. package/src/sap/ui/rta/util/PluginManager.js +25 -25
  162. package/src/sap/ui/rta/util/PopupManager.js +27 -27
  163. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  164. package/src/sap/ui/rta/util/ServiceEventBus.js +3 -4
  165. package/src/sap/ui/rta/util/StylesLoader.js +9 -9
  166. package/src/sap/ui/rta/util/UrlParser.js +19 -19
  167. package/src/sap/ui/rta/util/adaptationStarter.js +34 -31
  168. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +23 -19
  169. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +61 -61
  170. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +76 -63
  171. package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +6 -6
  172. package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +1 -1
  173. package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
  174. package/src/sap/ui/rta/util/hasStableId.js +2 -2
  175. package/src/sap/ui/rta/util/showMessageBox.js +4 -5
  176. package/src/sap/ui/rta/util/validateFlexEnabled.js +5 -5
  177. package/src/sap/ui/rta/util/validateStableIds.js +8 -8
  178. package/ui5.yaml +1 -1
@@ -59,7 +59,7 @@ sap.ui.define([
59
59
  * @class
60
60
  * @extends sap.ui.base.ManagedObject
61
61
  * @author SAP SE
62
- * @version 1.115.1
62
+ * @version 1.117.0
63
63
  * @constructor
64
64
  * @private
65
65
  * @since 1.34
@@ -130,8 +130,8 @@ sap.ui.define([
130
130
  mChanges[oChange.getId()] = oChange;
131
131
  });
132
132
  aFileNames
133
- .reduce(toAvailableChanges.bind(null, mChanges), [])
134
- .forEach(pushToStack.bind(null, oComponent, mComposite, oStack));
133
+ .reduce(toAvailableChanges.bind(null, mChanges), [])
134
+ .forEach(pushToStack.bind(null, oComponent, mComposite, oStack));
135
135
  return oStack;
136
136
  });
137
137
  }
@@ -224,7 +224,7 @@ sap.ui.define([
224
224
 
225
225
  Stack.prototype.execute = function() {
226
226
  this._oLastCommand = this._oLastCommand.catch(function() {
227
- //continue also if previous command failed
227
+ // continue also if previous command failed
228
228
  }).then(function() {
229
229
  var oCommand = this._getCommandToBeExecuted();
230
230
  if (oCommand) {
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @extends sap.ui.rta.command.AppDescriptorCommand
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.115.1
20
+ * @version 1.117.0
21
21
  *
22
22
  * @constructor
23
23
  * @private
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.115.1
23
+ * @version 1.117.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.102
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.115.1
23
+ * @version 1.117.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.87
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  * @class
19
19
  * @extends sap.ui.rta.command.BaseCommand
20
20
  * @author SAP SE
21
- * @version 1.115.1
21
+ * @version 1.117.0
22
22
  * @constructor
23
23
  * @private
24
24
  * @since 1.87
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @class
23
23
  * @extends sap.ui.rta.command.BaseCommand
24
24
  * @author SAP SE
25
- * @version 1.115.1
25
+ * @version 1.117.0
26
26
  * @constructor
27
27
  * @private
28
28
  * @since 1.87
@@ -54,92 +54,92 @@ function(
54
54
  /**
55
55
  * @inheritdoc
56
56
  */
57
- getPropertyInfo: function (mPropertyBag) {
57
+ getPropertyInfo: function(mPropertyBag) {
58
58
  return Promise.resolve()
59
- .then(function() {
60
- var bValidParameters =
59
+ .then(function() {
60
+ var bValidParameters =
61
61
  mPropertyBag.element.isA("sap.ui.core.Element")
62
62
  && mPropertyBag.aggregationName && typeof mPropertyBag.aggregationName === "string"
63
63
  && (!mPropertyBag.payload || typeof mPropertyBag.payload === "object");
64
64
 
65
- if (bValidParameters) {
66
- return [];
67
- }
68
- return undefined;
69
- });
65
+ if (bValidParameters) {
66
+ return [];
67
+ }
68
+ return undefined;
69
+ });
70
70
  },
71
71
 
72
72
  /**
73
73
  * @inheritdoc
74
74
  */
75
- createLabel: function (mPropertyBag) {
75
+ createLabel: function(mPropertyBag) {
76
76
  return Promise.resolve()
77
- .then(function () {
78
- var bParametersValid =
77
+ .then(function() {
78
+ var bParametersValid =
79
79
  checkCommonParametersForControl(mPropertyBag)
80
80
  && isAString(mPropertyBag, "labelFor");
81
81
 
82
- if (bParametersValid) {
83
- return mPropertyBag.modifier.createControl("sap.m.Label", //for V4/FIHR | for v2 it should be smart label
84
- mPropertyBag.appComponent,
85
- mPropertyBag.view,
86
- mPropertyBag.labelFor + "-label",
87
- {
88
- labelFor: mPropertyBag.labelFor,
89
- text: mPropertyBag.bindingPath
90
- },
91
- true/*async*/
92
- );
93
- }
94
- return undefined;
95
- });
82
+ if (bParametersValid) {
83
+ return mPropertyBag.modifier.createControl("sap.m.Label", // for V4/FIHR | for v2 it should be smart label
84
+ mPropertyBag.appComponent,
85
+ mPropertyBag.view,
86
+ mPropertyBag.labelFor + "-label",
87
+ {
88
+ labelFor: mPropertyBag.labelFor,
89
+ text: mPropertyBag.bindingPath
90
+ },
91
+ true/* async */
92
+ );
93
+ }
94
+ return undefined;
95
+ });
96
96
  },
97
97
 
98
98
  /**
99
99
  * @inheritdoc
100
100
  */
101
- createControlForProperty: function (mPropertyBag) {
101
+ createControlForProperty: function(mPropertyBag) {
102
102
  return Promise.resolve()
103
- .then(function () {
104
- var bParametersValid =
103
+ .then(function() {
104
+ var bParametersValid =
105
105
  checkCommonParametersForControl(mPropertyBag)
106
106
  && (isAString(mPropertyBag.element, "nodeName") || mPropertyBag.element.isA("sap.ui.core.Element"))
107
107
  && isPlainObject(mPropertyBag.fieldSelector) && isAString(mPropertyBag.fieldSelector, "id");
108
108
 
109
- if (bParametersValid) {
110
- var aPromises = [
111
- mPropertyBag.modifier.createControl("sap.m.Text",
112
- mPropertyBag.appComponent,
113
- mPropertyBag.view,
114
- mPropertyBag.fieldSelector,
115
- {
116
- text: "{" + mPropertyBag.bindingPath + "}"
117
- }
118
- )
119
- ];
120
- if (mPropertyBag.payload.valueHelpId) {
121
- var mValueHelpSelector = merge(
122
- {},
123
- mPropertyBag.fieldSelector,
124
- { id: mPropertyBag.fieldSelector.id + "-" + mPropertyBag.payload.valueHelpId }
125
- );
126
- aPromises.push(mPropertyBag.modifier.createControl("sap.ui.core.Element",
127
- mPropertyBag.appComponent,
128
- mPropertyBag.view,
129
- mValueHelpSelector,
130
- true
131
- ));
132
- }
133
- return Promise.all(aPromises)
134
- .then(function(aControls) {
135
- return {
136
- control: aControls[0],
137
- valueHelp: aControls[1]
138
- };
139
- });
109
+ if (bParametersValid) {
110
+ var aPromises = [
111
+ mPropertyBag.modifier.createControl("sap.m.Text",
112
+ mPropertyBag.appComponent,
113
+ mPropertyBag.view,
114
+ mPropertyBag.fieldSelector,
115
+ {
116
+ text: "{" + mPropertyBag.bindingPath + "}"
117
+ }
118
+ )
119
+ ];
120
+ if (mPropertyBag.payload.valueHelpId) {
121
+ var mValueHelpSelector = merge(
122
+ {},
123
+ mPropertyBag.fieldSelector,
124
+ { id: mPropertyBag.fieldSelector.id + "-" + mPropertyBag.payload.valueHelpId }
125
+ );
126
+ aPromises.push(mPropertyBag.modifier.createControl("sap.ui.core.Element",
127
+ mPropertyBag.appComponent,
128
+ mPropertyBag.view,
129
+ mValueHelpSelector,
130
+ true
131
+ ));
140
132
  }
141
- return undefined;
142
- });
133
+ return Promise.all(aPromises)
134
+ .then(function(aControls) {
135
+ return {
136
+ control: aControls[0],
137
+ valueHelp: aControls[1]
138
+ };
139
+ });
140
+ }
141
+ return undefined;
142
+ });
143
143
  },
144
144
 
145
145
  /**
@@ -168,37 +168,37 @@ function(
168
168
  mLayoutSettings.fieldSelector.id += "-field";
169
169
 
170
170
  return TestDelegate.createControlForProperty(mLayoutSettings)
171
- .then(function(mCreatedSpecificControlInfo) {
172
- mSpecificControlInfo = mCreatedSpecificControlInfo;
173
- oValueHelp = mSpecificControlInfo.valueHelp;
174
- return oModifier.createControl(mLayoutSettings.payload.layoutType, mLayoutSettings.appComponent, mLayoutSettings.view, mPropertyBag.fieldSelector);
175
- })
176
- .then(function (oCreatedLayout) {
177
- oLayout = oCreatedLayout;
178
- return oModifier.insertAggregation(oLayout, mLayoutSettings.payload.aggregation, mSpecificControlInfo.control, 0, mLayoutSettings.view);
179
- })
180
- .then(function () {
181
- // some layout controls do not require a label control
182
- if (mLayoutSettings.payload.labelAggregation) {
183
- var mCreateLabelInfo = Object.assign({
184
- labelFor: oModifier.getId(mSpecificControlInfo.control)
185
- }, mLayoutSettings);
186
- return TestDelegate.createLabel(mCreateLabelInfo);
187
- }
188
- return undefined;
189
- })
190
- .then(function(oLabel) {
191
- if (oLabel) {
192
- return oModifier.insertAggregation(oLayout, mLayoutSettings.payload.labelAggregation, oLabel, 0, mLayoutSettings.view);
193
- }
194
- return undefined;
195
- })
196
- .then(function() {
197
- return {
198
- control: oLayout,
199
- valueHelp: oValueHelp
200
- };
201
- });
171
+ .then(function(mCreatedSpecificControlInfo) {
172
+ mSpecificControlInfo = mCreatedSpecificControlInfo;
173
+ oValueHelp = mSpecificControlInfo.valueHelp;
174
+ return oModifier.createControl(mLayoutSettings.payload.layoutType, mLayoutSettings.appComponent, mLayoutSettings.view, mPropertyBag.fieldSelector);
175
+ })
176
+ .then(function(oCreatedLayout) {
177
+ oLayout = oCreatedLayout;
178
+ return oModifier.insertAggregation(oLayout, mLayoutSettings.payload.aggregation, mSpecificControlInfo.control, 0, mLayoutSettings.view);
179
+ })
180
+ .then(function() {
181
+ // some layout controls do not require a label control
182
+ if (mLayoutSettings.payload.labelAggregation) {
183
+ var mCreateLabelInfo = Object.assign({
184
+ labelFor: oModifier.getId(mSpecificControlInfo.control)
185
+ }, mLayoutSettings);
186
+ return TestDelegate.createLabel(mCreateLabelInfo);
187
+ }
188
+ return undefined;
189
+ })
190
+ .then(function(oLabel) {
191
+ if (oLabel) {
192
+ return oModifier.insertAggregation(oLayout, mLayoutSettings.payload.labelAggregation, oLabel, 0, mLayoutSettings.view);
193
+ }
194
+ return undefined;
195
+ })
196
+ .then(function() {
197
+ return {
198
+ control: oLayout,
199
+ valueHelp: oValueHelp
200
+ };
201
+ });
202
202
  }
203
203
  return undefined;
204
204
  }