@openui5/sap.ui.rta 1.96.2 → 1.97.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 (152) hide show
  1. package/.reuse/dep5 +1 -1
  2. package/THIRDPARTY.txt +2 -1
  3. package/package.json +6 -6
  4. package/src/sap/ui/rta/.library +1 -1
  5. package/src/sap/ui/rta/Client.js +1 -1
  6. package/src/sap/ui/rta/RuntimeAuthoring.js +3 -5
  7. package/src/sap/ui/rta/Utils.js +1 -1
  8. package/src/sap/ui/rta/api/startAdaptation.js +1 -2
  9. package/src/sap/ui/rta/api/startKeyUserAdaptation.js +2 -2
  10. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +5 -3
  11. package/src/sap/ui/rta/appVariant/AppVariantManager.js +4 -6
  12. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -7
  13. package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +2 -1
  14. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  15. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  16. package/src/sap/ui/rta/command/AddXML.js +1 -1
  17. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  18. package/src/sap/ui/rta/command/AppDescriptorCommand.js +4 -3
  19. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  20. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  21. package/src/sap/ui/rta/command/Combine.js +1 -1
  22. package/src/sap/ui/rta/command/CommandFactory.js +1 -1
  23. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  24. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  25. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  26. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  27. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  28. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -6
  29. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  30. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  31. package/src/sap/ui/rta/command/FlexCommand.js +1 -1
  32. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  33. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  34. package/src/sap/ui/rta/command/Move.js +1 -1
  35. package/src/sap/ui/rta/command/Property.js +1 -1
  36. package/src/sap/ui/rta/command/Remove.js +1 -1
  37. package/src/sap/ui/rta/command/Rename.js +1 -1
  38. package/src/sap/ui/rta/command/Reveal.js +1 -1
  39. package/src/sap/ui/rta/command/Settings.js +1 -1
  40. package/src/sap/ui/rta/command/Split.js +1 -1
  41. package/src/sap/ui/rta/command/Stack.js +1 -1
  42. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  43. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  44. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  45. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  46. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  47. package/src/sap/ui/rta/library.js +2 -2
  48. package/src/sap/ui/rta/messagebundle.properties +8 -6
  49. package/src/sap/ui/rta/messagebundle_ar.properties +5 -4
  50. package/src/sap/ui/rta/messagebundle_bg.properties +5 -4
  51. package/src/sap/ui/rta/messagebundle_ca.properties +4 -3
  52. package/src/sap/ui/rta/messagebundle_cs.properties +5 -4
  53. package/src/sap/ui/rta/messagebundle_cy.properties +5 -4
  54. package/src/sap/ui/rta/messagebundle_da.properties +5 -4
  55. package/src/sap/ui/rta/messagebundle_de.properties +4 -3
  56. package/src/sap/ui/rta/messagebundle_el.properties +5 -4
  57. package/src/sap/ui/rta/messagebundle_en.properties +5 -4
  58. package/src/sap/ui/rta/messagebundle_en_GB.properties +5 -4
  59. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +5 -4
  60. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +7 -14
  61. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +5 -4
  62. package/src/sap/ui/rta/messagebundle_es.properties +5 -4
  63. package/src/sap/ui/rta/messagebundle_es_MX.properties +5 -4
  64. package/src/sap/ui/rta/messagebundle_et.properties +5 -4
  65. package/src/sap/ui/rta/messagebundle_fi.properties +4 -3
  66. package/src/sap/ui/rta/messagebundle_fr.properties +5 -4
  67. package/src/sap/ui/rta/messagebundle_fr_CA.properties +5 -4
  68. package/src/sap/ui/rta/messagebundle_hi.properties +5 -4
  69. package/src/sap/ui/rta/messagebundle_hr.properties +5 -4
  70. package/src/sap/ui/rta/messagebundle_hu.properties +4 -3
  71. package/src/sap/ui/rta/messagebundle_id.properties +7 -6
  72. package/src/sap/ui/rta/messagebundle_it.properties +5 -4
  73. package/src/sap/ui/rta/messagebundle_iw.properties +5 -4
  74. package/src/sap/ui/rta/messagebundle_ja.properties +5 -4
  75. package/src/sap/ui/rta/messagebundle_kk.properties +5 -4
  76. package/src/sap/ui/rta/messagebundle_ko.properties +5 -4
  77. package/src/sap/ui/rta/messagebundle_lt.properties +5 -4
  78. package/src/sap/ui/rta/messagebundle_lv.properties +5 -4
  79. package/src/sap/ui/rta/messagebundle_ms.properties +5 -4
  80. package/src/sap/ui/rta/messagebundle_nl.properties +5 -4
  81. package/src/sap/ui/rta/messagebundle_no.properties +5 -4
  82. package/src/sap/ui/rta/messagebundle_pl.properties +5 -4
  83. package/src/sap/ui/rta/messagebundle_pt.properties +4 -3
  84. package/src/sap/ui/rta/messagebundle_pt_PT.properties +4 -3
  85. package/src/sap/ui/rta/messagebundle_ro.properties +5 -4
  86. package/src/sap/ui/rta/messagebundle_ru.properties +4 -3
  87. package/src/sap/ui/rta/messagebundle_sh.properties +5 -4
  88. package/src/sap/ui/rta/messagebundle_sk.properties +5 -4
  89. package/src/sap/ui/rta/messagebundle_sl.properties +5 -4
  90. package/src/sap/ui/rta/messagebundle_sv.properties +5 -4
  91. package/src/sap/ui/rta/messagebundle_th.properties +10 -9
  92. package/src/sap/ui/rta/messagebundle_tr.properties +5 -4
  93. package/src/sap/ui/rta/messagebundle_uk.properties +6 -5
  94. package/src/sap/ui/rta/messagebundle_vi.properties +5 -4
  95. package/src/sap/ui/rta/messagebundle_zh_CN.properties +5 -4
  96. package/src/sap/ui/rta/messagebundle_zh_TW.properties +5 -4
  97. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  98. package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
  99. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  100. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  101. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  102. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  103. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  104. package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
  105. package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
  106. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  107. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  108. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  109. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  110. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  111. package/src/sap/ui/rta/plugin/RenameHandler.js +1 -14
  112. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  113. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  114. package/src/sap/ui/rta/plugin/Split.js +2 -1
  115. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  116. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  117. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  118. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  119. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  120. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  121. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  122. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  123. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +1 -16
  124. package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
  125. package/src/sap/ui/rta/service/Action.js +1 -1
  126. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  127. package/src/sap/ui/rta/service/Outline.js +79 -29
  128. package/src/sap/ui/rta/service/Property.js +1 -3
  129. package/src/sap/ui/rta/service/Selection.js +2 -1
  130. package/src/sap/ui/rta/themes/base/ChangeVisualization.less +23 -30
  131. package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +54 -35
  132. package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
  133. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  134. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  135. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  136. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +3 -3
  137. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  138. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  139. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  140. package/src/sap/ui/rta/util/PluginManager.js +1 -1
  141. package/src/sap/ui/rta/util/PopupManager.js +3 -11
  142. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  143. package/src/sap/ui/rta/util/adaptationStarter.js +1 -1
  144. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +16 -78
  145. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +15 -37
  146. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -2
  147. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +35 -30
  148. package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +30 -0
  149. package/src/sap/ui/rta/util/changeVisualization/categories/RenameVisualization.js +3 -2
  150. package/src/sap/ui/rta/util/changeVisualization/categories/SplitVisualization.js +30 -0
  151. package/src/sap/ui/rta/util/changeVisualization/categories/getVisualizationCategory.js +9 -3
  152. package/src/sap/ui/rta/util/validateFlexEnabled.js +4 -4
@@ -225,11 +225,6 @@ sap.ui.define([
225
225
  return this._mSettings;
226
226
  },
227
227
 
228
- /**
229
- * Verify that there is no error value state
230
- *
231
- * @private
232
- */
233
228
  _areAllValueStateNones: function() {
234
229
  var oData = this._oJSONModel.getData();
235
230
  return _aTextInputFields.concat(_aNumericInputFields).every(function (sFieldName) {
@@ -237,11 +232,6 @@ sap.ui.define([
237
232
  }, this);
238
233
  },
239
234
 
240
- /**
241
- * Verify that there is no empty input string
242
- *
243
- * @private
244
- */
245
235
  _areAllTextFieldsValid: function() {
246
236
  var oJSONModel = this._oJSONModel;
247
237
  return _aTextInputFields.reduce(function(bAllValid, sFieldName) {
@@ -257,11 +247,6 @@ sap.ui.define([
257
247
  }, true);
258
248
  },
259
249
 
260
- /**
261
- * Build the returned settings
262
- *
263
- * @private
264
- */
265
250
  _buildReturnedSettings: function() {
266
251
  var mSettings = {};
267
252
  var oData = this._oJSONModel.getData();
@@ -316,7 +301,7 @@ sap.ui.define([
316
301
  */
317
302
  _setFocusOnInvalidInput: function() {
318
303
  var oData = this._oJSONModel.getData();
319
- return _aNumericInputFields.some(function(sFieldName) {
304
+ _aNumericInputFields.some(function(sFieldName) {
320
305
  if (oData[sFieldName]["valueState"] === ValueState.Error) {
321
306
  var oElement = sap.ui.getCore().byId(oData[sFieldName]["id"]);
322
307
  oElement.focus();
@@ -14,7 +14,7 @@ sap.ui.define([
14
14
  *
15
15
  * @param {string} sURL URL to clean
16
16
  * @returns {string} Cleaned URL
17
- * @ui5-restricted sap.ui.rta
17
+ * @private
18
18
  */
19
19
  return function (sURL) {
20
20
  return sURL.replace(/\t|\r|\n/g, "");
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @author SAP SE
26
26
  * @experimental Since 1.58
27
27
  * @since 1.58
28
- * @version 1.96.2
28
+ * @version 1.97.0
29
29
  * @private
30
30
  * @ui5-restricted
31
31
  *
@@ -30,7 +30,7 @@ function (
30
30
  * @author SAP SE
31
31
  * @experimental Since 1.58
32
32
  * @since 1.58
33
- * @version 1.96.2
33
+ * @version 1.97.0
34
34
  * @private
35
35
  * @ui5-restricted
36
36
  */
@@ -42,10 +42,10 @@ sap.ui.define([
42
42
  * @author SAP SE
43
43
  * @experimental Since 1.56
44
44
  * @since 1.56
45
- * @version 1.96.2
45
+ * @version 1.97.0
46
46
  * @private
47
47
  * @ui5-restricted
48
- */
48
+ */
49
49
 
50
50
  /**
51
51
  * Object containing an outline of available nodes.
@@ -67,8 +67,9 @@ sap.ui.define([
67
67
  * @property {string} id - ID of the control
68
68
  * @property {string} [instanceName] - Text retrieved from node's design time metadata <code>getLabel()</code>
69
69
  * @property {string} [name] - Singular name from node's design time metadata
70
- * @property {string} technicalName - Class type for element nodes/aggregation name for aggregation nodes.
70
+ * @property {string} technicalName - Class type for element nodes/aggregation name for aggregation nodes
71
71
  * @property {boolean} editable - Indicates whether the node is editable
72
+ * @property {string} [templateReference] - Element ID referencing corresponding template
72
73
  * @property {string} [icon] - Icon path for the node
73
74
  * @property {string} type - Type of node
74
75
  * @property {boolean} [visible] - Visibility of node of type <code>element</code>
@@ -197,6 +198,55 @@ sap.ui.define([
197
198
  }
198
199
  };
199
200
 
201
+ function getTemplateData(oChildOverlay, mTemplateData, mInnerTemplateData) {
202
+ var sAggregationName = oChildOverlay.getAggregationName && oChildOverlay.getAggregationName();
203
+ if (sAggregationName) {
204
+ var sAggregationOverlayId = oChildOverlay.getParent().getId();
205
+ // Aggregation with root template
206
+ if (mInnerTemplateData[sAggregationName]) {
207
+ return Object.assign({
208
+ templateFor: sAggregationOverlayId
209
+ }, mInnerTemplateData[sAggregationName]);
210
+ }
211
+ return ((mTemplateData && mTemplateData.elements) || [])
212
+ .map(function(oElement) {
213
+ // Template
214
+ if (
215
+ oElement.type === "aggregationBindingTemplate"
216
+ || oElement.parentAggregationName === sAggregationName
217
+ ) {
218
+ return Object.assign({
219
+ templateFor: sAggregationOverlayId
220
+ }, oElement);
221
+ }
222
+ // Regular aggregation
223
+ return oElement.technicalName === sAggregationName && oElement;
224
+ })
225
+ .filter(Boolean)[0];
226
+ }
227
+ // Template root element
228
+ var aAggregationTemplateOverlays = (
229
+ oChildOverlay.getParentElementOverlay().getAggregationBindingTemplateOverlays
230
+ && oChildOverlay.getParentElementOverlay().getAggregationBindingTemplateOverlays()
231
+ .reduce(function (aAllRootElementOverlaysInsideTemplates, oAggregationOverlay) {
232
+ return aAllRootElementOverlaysInsideTemplates.concat(oAggregationOverlay.getChildren());
233
+ }, [])
234
+ ) || [];
235
+ if (aAggregationTemplateOverlays.includes(oChildOverlay)) {
236
+ return undefined;
237
+ }
238
+ if (!mTemplateData) {
239
+ return undefined;
240
+ }
241
+ // Element inside clone
242
+ var oParent = oChildOverlay.getParentElementOverlay();
243
+ if (oParent.getId() === mTemplateData.templateFor) {
244
+ return mTemplateData;
245
+ }
246
+ var iIndex = oChildOverlay.getParent().getChildren().indexOf(oChildOverlay);
247
+ return mTemplateData.elements[iIndex];
248
+ }
249
+
200
250
  /**
201
251
  * Returns outline model data including the children until max depth (<code>this.iDepth</code> or last child is reached).
202
252
  * During execution, the <code>fnFilter</code> is used to determine whether node data should be added.
@@ -205,17 +255,19 @@ sap.ui.define([
205
255
  * @param {sap.ui.dt.Overlay} oOverlay - Overlay for this node
206
256
  * @param {int} [iDepth] - Level of children to traverse
207
257
  * @param {sap.ui.dt.Overlay} [oParentOverlay] - Parent overlay (if present) for the passed overlay
258
+ * @param {object} [mTemplateData] - Propagates template data to the aggregation template clones
208
259
  * @returns {OutlineObject} Outline model data
209
260
  */
210
- oOutline._getChildrenNodes = function (oOverlay, iDepth, oParentOverlay) {
261
+ oOutline._getChildrenNodes = function (oOverlay, iDepth, oParentOverlay, mTemplateData) {
211
262
  var bValidDepth = DtUtil.isInteger(iDepth);
263
+ var mAggregationTemplates = {};
212
264
 
213
265
  if (oOverlay.getShouldBeDestroyed()) {
214
266
  return {};
215
267
  }
216
268
 
217
269
  //get necessary properties from overlay
218
- var oData = this._getNodeProperties(oOverlay, oParentOverlay) || {};
270
+ var oData = this._getNodeProperties(oOverlay, oParentOverlay, mTemplateData) || {};
219
271
 
220
272
  var aChildren = oOverlay.getChildren();
221
273
  //find aggregation binding template overlays
@@ -224,20 +276,12 @@ sap.ui.define([
224
276
  && oOverlay.getAggregationBindingTemplateOverlays()
225
277
  ) || [];
226
278
 
227
- //for binding template overlays, do not include children of the
228
- //corresponding aggregations on the outline (e.g. items)
229
279
  if (aAggregationTemplateOverlays.length > 0) {
230
- var aExcludedAggregations = [];
231
280
  aChildren = aAggregationTemplateOverlays.reduce(function(aCollectedChildren, oAggregationTemplateOverlay) {
232
- aExcludedAggregations.push(oAggregationTemplateOverlay.getAggregationName());
233
- return oAggregationTemplateOverlay.getChildren().concat(aCollectedChildren);
234
- }, aChildren)
235
- .filter(function(oChild) {
236
- if (oChild.getAggregationName && aExcludedAggregations.indexOf(oChild.getAggregationName()) > -1) {
237
- return false;
238
- }
239
- return true;
240
- });
281
+ var oTemplateOverlay = oAggregationTemplateOverlay.getChildren()[0];
282
+ mAggregationTemplates[oTemplateOverlay.getId()] = oAggregationTemplateOverlay.getAggregationName();
283
+ return [oTemplateOverlay].concat(aCollectedChildren);
284
+ }, aChildren);
241
285
  }
242
286
 
243
287
  //check if the tree should be traversed deeper and children overlays are present
@@ -248,9 +292,16 @@ sap.ui.define([
248
292
  //decrement depth for children nodes
249
293
  iDepth = bValidDepth ? iDepth - 1 : iDepth;
250
294
 
295
+ var mInnerTemplateData = {};
251
296
  oData.elements = aChildren
252
297
  .map(function (oChildOverlay) {
253
- return this._getChildrenNodes(oChildOverlay, iDepth, oChildOverlay.getParent());
298
+ var mNextTemplateData = getTemplateData(oChildOverlay, mTemplateData, mInnerTemplateData);
299
+ var oNextData = this._getChildrenNodes(oChildOverlay, iDepth, oChildOverlay.getParent(), mNextTemplateData);
300
+ if (oNextData.type === "aggregationBindingTemplate") {
301
+ var sAggregationName = mAggregationTemplates[oChildOverlay.getId()];
302
+ mInnerTemplateData[sAggregationName] = merge({}, oNextData);
303
+ }
304
+ return oNextData;
254
305
  }, this)
255
306
  .filter(function (oChildNode) {
256
307
  return !isEmptyObject(oChildNode);
@@ -270,10 +321,6 @@ sap.ui.define([
270
321
  && oParentElementOverlay.getAggregationOverlay(sParentAggregationName, "AggregationBindingTemplateOverlays") === oParentAggregationOverlay;
271
322
  }
272
323
 
273
- function getNumberOfTemplateChildrenOverlays(oParentAggregationOverlay, sParentAggregationName) {
274
- return oParentAggregationOverlay.getParent().getAggregationOverlay(sParentAggregationName).getChildren().length;
275
- }
276
-
277
324
  function getElementOverlayData(oOverlay, oElement, oDtMetadata) {
278
325
  var oData = {
279
326
  editable: oOverlay.getEditable(),
@@ -284,20 +331,18 @@ sap.ui.define([
284
331
  }
285
332
  var oParentAggregationOverlay = oOverlay.getParent() && oOverlay.getParentAggregationOverlay();
286
333
  var sParentAggregationName = (oParentAggregationOverlay && oParentAggregationOverlay.getAggregationName()) || "";
287
- var sDtNameSuffix = "";
288
334
  // Aggregation Binding Template
289
335
  if (isAggregationBindingTemplate(oOverlay, oParentAggregationOverlay, sParentAggregationName)) {
290
- var iNoOfChildren = getNumberOfTemplateChildrenOverlays(oParentAggregationOverlay, sParentAggregationName);
291
- sDtNameSuffix = " [" + iNoOfChildren + "]";
292
336
  oData.type = "aggregationBindingTemplate";
293
337
  oData.icon = "sap-icon://attachment-text-file";
338
+ oData.parentAggregationName = sParentAggregationName;
294
339
  } else {
295
340
  oData.type = "element";
296
341
  }
297
342
 
298
343
  var oDtName = oDtMetadata.getName(oElement);
299
344
  if (oDtName && oDtName.singular) {
300
- oData.name = (oDtName && oDtName.singular) + sDtNameSuffix;
345
+ oData.name = oDtName && oDtName.singular;
301
346
  }
302
347
  return oData;
303
348
  }
@@ -322,7 +367,7 @@ sap.ui.define([
322
367
  return oData;
323
368
  }
324
369
 
325
- function getDefaultData(oElement, oDtMetadata) {
370
+ function getDefaultData(oElement, oDtMetadata, mTemplateData) {
326
371
  var oData = {
327
372
  id: oElement.getId(),
328
373
  technicalName: oElement.getMetadata().getName(),
@@ -330,6 +375,10 @@ sap.ui.define([
330
375
  type: null
331
376
  };
332
377
 
378
+ if (mTemplateData) {
379
+ oData.templateReference = mTemplateData.id;
380
+ }
381
+
333
382
  var sDefaultIcon = getDefaultIcon(oDtMetadata);
334
383
  if (sDefaultIcon) {
335
384
  oData.icon = sDefaultIcon;
@@ -354,12 +403,13 @@ sap.ui.define([
354
403
  *
355
404
  * @param {sap.ui.dt.Overlay} oOverlay - Overlay of the node for which properties are calculated
356
405
  * @param {sap.ui.dt.Overlay} [oParentOverlay] - Parent overlay (if present) for the passed overlay
406
+ * @param {object} [mTemplateData] - Template data
357
407
  * @returns {object} Data containing applicable properties
358
408
  */
359
- oOutline._getNodeProperties = function (oOverlay, oParentOverlay) {
409
+ oOutline._getNodeProperties = function (oOverlay, oParentOverlay, mTemplateData) {
360
410
  var oElement = oOverlay.getElement();
361
411
  var oDtMetadata = oOverlay.getDesignTimeMetadata();
362
- var oData = getDefaultData(oElement, oDtMetadata);
412
+ var oData = getDefaultData(oElement, oDtMetadata, mTemplateData);
363
413
 
364
414
  if (oOverlay instanceof ElementOverlay) {
365
415
  return Object.assign(oData, getElementOverlayData(oOverlay, oElement, oDtMetadata));
@@ -4,8 +4,6 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
- /* global Map */
8
-
9
7
  sap.ui.define([
10
8
  "sap/ui/dt/OverlayRegistry",
11
9
  "sap/ui/dt/Util",
@@ -30,7 +28,7 @@ sap.ui.define([
30
28
  * @author SAP SE
31
29
  * @experimental Since 1.58
32
30
  * @since 1.58
33
- * @version 1.96.2
31
+ * @version 1.97.0
34
32
  * @private
35
33
  * @ui5-restricted
36
34
  */
@@ -15,10 +15,11 @@ sap.ui.define(function () {
15
15
  * @author SAP SE
16
16
  * @experimental Since 1.58
17
17
  * @since 1.58
18
- * @version 1.96.2
18
+ * @version 1.97.0
19
19
  * @private
20
20
  * @ui5-restricted
21
21
  */
22
+
22
23
  return function (oRta, fnPublish) {
23
24
  var oSelectionManager = oRta._oDesignTime.getSelectionManager();
24
25
 
@@ -8,6 +8,7 @@
8
8
  @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolidBG: white;
9
9
  @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolidHover: #0f648b;
10
10
  @_sap_ui_rta_ChangeVisualization_DependentIndicatorColor: rgba(219,149,51,0.75);
11
+ @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorTransparent: rgba(219,149,51,0);
11
12
  @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorFocus: #a67026;
12
13
  @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolid: rgb(219, 149, 51);
13
14
  @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolidHover: #b67a26;
@@ -40,24 +41,29 @@
40
41
  }
41
42
 
42
43
  .sapUiRtaChangeIndicatorDependent{
43
- border: 1px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColor;
44
- background: radial-gradient(circle, transparent 41%, @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolid 72%,@_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolid 100%);
45
-
46
- &:focus{
47
- border: 1px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorFocus;
48
- outline: none;
49
- }
50
-
51
- &:hover{
52
- background: radial-gradient(circle, transparent 41%, @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolidHover 62%, @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolid 100%);
53
- }
54
- }
55
-
56
- .sapUiRtaChangeIndicatorChangeSolid{
57
- background: radial-gradient(circle, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolidBG 41%, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolid 72%, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolid 100%);
44
+ height: 100%;
45
+ width: 100%;
46
+ position: absolute;
47
+ outline: 3px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColor;
48
+ outline-offset: -3px;
49
+ box-shadow: @_sap_ui_rta_Overlay_BoxShadow;
50
+ animation: fadeOut linear 1.5s;
51
+ animation-fill-mode: forwards;
58
52
 
59
- &:hover{
60
- background: radial-gradient(circle, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolidBG 41%, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorHover 62%, @_sap_ui_rta_ChangeVisualization_ChangeIndicatorColorSolidHover 100%);
53
+ @keyframes fadeOut {
54
+ 0% {
55
+ outline: 3px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColor;
56
+ outline-offset: -3px;
57
+ }
58
+ 66%{
59
+ outline: 3px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColor;
60
+ outline-offset: -3px;
61
+ }
62
+ 100% {
63
+ outline: 3px solid @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorTransparent;
64
+ outline-offset: -3px;
65
+ box-shadow: none;
66
+ }
61
67
  }
62
68
  }
63
69
 
@@ -77,19 +83,6 @@
77
83
  cursor: pointer;
78
84
  }
79
85
 
80
- .sapUiRtaChangeIndicatorIcon{
81
- top: 0;
82
- left: 0;
83
- position: absolute;
84
- width: 100%;
85
- height: 100%;
86
- display: flex;
87
- justify-content: center;
88
- align-items: center;
89
- cursor: pointer;
90
- color: @_sap_ui_rta_ChangeVisualization_DependentIndicatorColorSolid;
91
- }
92
-
93
86
  .sapUiRtaChangeIndicatorHovered {
94
87
  -webkit-transition: background 0.1s cubic-bezier(1,.01,1,0);
95
88
  -moz-transition: background 0.1s cubic-bezier(1,.01,1,0);
@@ -1,36 +1,55 @@
1
- @_sap_ui_rta_OverlayWithScrollbar_scrollWidth: var(--sap-ui-rta-scrollbar-scrollWidth);
2
- @_sap_ui_rta_OverlayWithScrollbar_scrollWidthPlusTwo: var(--sap-ui-rta-scrollbar-scrollWidthPlusTwo);
3
-
4
- .sapUiRta .sapUiDtOverlaySelected.sapUiDtOverlayWithScrollBar.sapUiDtOverlayWithScrollBarVertical:after {
5
- inset-inline-end: @_sap_ui_rta_OverlayWithScrollbar_scrollWidth !important;
6
- }
7
-
8
- .sapUiRta .sapUiDtOverlaySelected.sapUiDtOverlayWithScrollBar.sapUiDtOverlayWithScrollBarHorizontal:after {
9
- inset-block-end: @_sap_ui_rta_OverlayWithScrollbar_scrollWidth !important;
10
- }
11
-
12
- .sapUiRta .sapUiDtOverlaySelected.sapUiDtOverlayFocusable.sapUiDtOverlayWithScrollBar.sapUiDtOverlayWithScrollBarVertical:focus:before {
13
- inset-inline-end: @_sap_ui_rta_OverlayWithScrollbar_scrollWidthPlusTwo !important;
14
- }
15
-
16
- .sapUiRta .sapUiDtOverlaySelected.sapUiDtOverlayFocusable.sapUiDtOverlayWithScrollBar.sapUiDtOverlayWithScrollBarHorizontal:focus:before {
17
- inset-block-end: @_sap_ui_rta_OverlayWithScrollbar_scrollWidthPlusTwo !important;
18
- }
19
-
20
- .sapUiRta .sapUiDtOverlaySelected.sapUiDtOverlayFocusable.sapUiDtOverlayWithScrollBar.sapUiDtOverlayWithScrollBarVertical:focus:before {
21
- inset-inline-end: @_sap_ui_rta_OverlayWithScrollbar_scrollWidthPlusTwo !important;
22
- }
23
-
24
- .sapUiRta .sapUiDtOverlaySelected.sapUiDtOverlayFocusable.sapUiDtOverlayWithScrollBar.sapUiDtOverlayWithScrollBarHorizontal:focus:before {
25
- inset-block-end: @_sap_ui_rta_OverlayWithScrollbar_scrollWidthPlusTwo !important;
26
- }
27
-
28
- .sapUiRta .sapUiDtOverlayFocusable.sapUiDtOverlayWithScrollBar.sapUiDtOverlayWithScrollBarHorizontal:focus:before,
29
- .sapUiRta .sapUiRtaOverlayHover.sapUiDtOverlayWithScrollBar.sapUiDtOverlayWithScrollBarHorizontal:after {
30
- inset-block-end: @_sap_ui_rta_OverlayWithScrollbar_scrollWidth !important;
31
- }
32
-
33
- .sapUiRta .sapUiDtOverlayFocusable.sapUiDtOverlayWithScrollBar.sapUiDtOverlayWithScrollBarVertical:focus:before,
34
- .sapUiRta .sapUiRtaOverlayHover.sapUiDtOverlayWithScrollBar.sapUiDtOverlayWithScrollBarVertical:after {
35
- inset-inline-end: @_sap_ui_rta_OverlayWithScrollbar_scrollWidth !important;
1
+ .sapUiRta .sapUiDtOverlayWithScrollBar{
2
+ &.sapUiDtOverlaySelected {
3
+ &.sapUiDtOverlayWithScrollBarVertical {
4
+ &:after {
5
+ inset-inline-end: var(--sap-ui-rta-scrollbar-scrollWidth) !important;
6
+ }
7
+ }
8
+
9
+ &.sapUiDtOverlayWithScrollBarHorizontal {
10
+ &:after {
11
+ inset-block-end: var(--sap-ui-rta-scrollbar-scrollWidth) !important;
12
+ }
13
+ }
14
+
15
+ &.sapUiDtOverlayFocusable {
16
+ &.sapUiDtOverlayWithScrollBarVertical {
17
+ &:focus:before {
18
+ inset-inline-end: var(--sap-ui-rta-scrollbar-scrollWidthPlusTwo) !important;
19
+ }
20
+ }
21
+
22
+ &.sapUiDtOverlayWithScrollBarHorizontal {
23
+ &:focus:before {
24
+ inset-block-end: var(--sap-ui-rta-scrollbar-scrollWidthPlusTwo) !important;
25
+ }
26
+ }
27
+ }
28
+ }
29
+
30
+ &.sapUiDtOverlayFocusable {
31
+ &.sapUiDtOverlayWithScrollBarHorizontal {
32
+ &:focus:before {
33
+ inset-block-end: var(--sap-ui-rta-scrollbar-scrollWidth) !important;
34
+ }
35
+ }
36
+ &.sapUiDtOverlayWithScrollBarVertical {
37
+ &:focus:before {
38
+ inset-inline-end: var(--sap-ui-rta-scrollbar-scrollWidth) !important;
39
+ }
40
+ }
41
+ }
42
+
43
+ &.sapUiRtaOverlayHover {
44
+ &.sapUiDtOverlayWithScrollBarHorizontal {
45
+ &:after {
46
+ inset-block-end: var(--sap-ui-rta-scrollbar-scrollWidth) !important;
47
+ }
48
+ }
49
+ &.sapUiDtOverlayWithScrollBarVertical {
50
+ &:after {
51
+ inset-inline-end: var(--sap-ui-rta-scrollbar-scrollWidth) !important;
52
+ }
53
+ }
54
+ }
36
55
  }
@@ -39,7 +39,7 @@ function(
39
39
  * @extends sap.ui.rta.toolbar.Base
40
40
  *
41
41
  * @author SAP SE
42
- * @version 1.96.2
42
+ * @version 1.97.0
43
43
  *
44
44
  * @constructor
45
45
  * @private
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.m.HBox
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.96.2
28
+ * @version 1.97.0
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -32,7 +32,7 @@ function(
32
32
  * @extends sap.ui.rta.toolbar.Adaptation
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.96.2
35
+ * @version 1.97.0
36
36
  *
37
37
  * @constructor
38
38
  * @private
@@ -20,7 +20,7 @@ function(
20
20
  * @extends sap.ui.rta.toolbar.Adaptation
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.96.2
23
+ * @version 1.97.0
24
24
  *
25
25
  * @constructor
26
26
  * @private
@@ -8,8 +8,7 @@ sap.ui.define([
8
8
  "sap/m/OverflowToolbarButton",
9
9
  "sap/m/ButtonRenderer",
10
10
  "sap/m/Button"
11
- ],
12
- function(
11
+ ], function(
13
12
  SapMOverflowToolbarButton,
14
13
  ButtonRenderer,
15
14
  Button
@@ -24,7 +23,7 @@ function(
24
23
  * @extends sap.m.OverflowToolbarButton
25
24
  *
26
25
  * @author SAP SE
27
- * @version 1.96.2
26
+ * @version 1.97.0
28
27
  *
29
28
  * @constructor
30
29
  * @private
@@ -71,6 +70,7 @@ function(
71
70
  * Get the Text if in Overflow-Area or Text in Toolbar is wanted
72
71
  *
73
72
  * @private
73
+ * @returns {string} Text
74
74
  */
75
75
  OverflowToolbarButton.prototype._getText = function() {
76
76
  if ((this.getIcon() === "" && this.getVisibleIcon() === "") || this._bInOverflow) {
@@ -22,7 +22,7 @@ function(
22
22
  * @extends sap.ui.rta.toolbar.Base
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.96.2
25
+ * @version 1.97.0
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -20,7 +20,7 @@ function(
20
20
  * @extends sap.ui.rta.toolbar.Adaptation
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.96.2
23
+ * @version 1.97.0
24
24
  *
25
25
  * @constructor
26
26
  * @private
@@ -53,7 +53,7 @@ sap.ui.define([
53
53
  * @class
54
54
  *
55
55
  * @author SAP SE
56
- * @version 1.96.2
56
+ * @version 1.97.0
57
57
  *
58
58
  * @constructor
59
59
  * @private
@@ -66,7 +66,7 @@ sap.ui.define([
66
66
  * Constructor for a new sap.ui.rta.util.PluginManager
67
67
  * @extends sap.ui.base.ManagedObject
68
68
  * @author SAP SE
69
- * @version 1.96.2
69
+ * @version 1.97.0
70
70
  * @constructor
71
71
  * @private
72
72
  * @since 1.86
@@ -4,7 +4,6 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
- /* global Map */
8
7
  sap.ui.define([
9
8
  "sap/ui/base/ManagedObject",
10
9
  "sap/m/InstanceManager",
@@ -41,7 +40,7 @@ sap.ui.define([
41
40
  * Constructor for a new sap.ui.rta.util.PopupManager
42
41
  * @extends sap.ui.base.ManagedObject
43
42
  * @author SAP SE
44
- * @version 1.96.2
43
+ * @version 1.97.0
45
44
  * @constructor
46
45
  * @private
47
46
  * @since 1.48
@@ -243,7 +242,7 @@ sap.ui.define([
243
242
 
244
243
  /**
245
244
  * Apply focus events to all open popups and set focus on the first.
246
- * @param {function} fnFocusEvent Function to apply to open popups
245
+ * @param {function} fnEvent - Function to apply to open popups
247
246
  * @private
248
247
  */
249
248
  PopupManager.prototype._applyPatchesToOpenPopups = function(fnEvent) {
@@ -256,7 +255,7 @@ sap.ui.define([
256
255
 
257
256
  /**
258
257
  * Remove focus events from all open popups.
259
- * @param {function} fnFocusEvent Function to apply to open popups
258
+ * @param {function} fnEvent - Function to apply to open popups
260
259
  * @private
261
260
  */
262
261
  PopupManager.prototype._removePatchesToOpenPopups = function(fnEvent) {
@@ -337,13 +336,6 @@ sap.ui.define([
337
336
  }
338
337
  };
339
338
 
340
- /**
341
- * Applies the passed function to the relevant open popups.
342
- *
343
- * @param {function} fnPopupMethod specifies function to be applied
344
- * @param {boolean} bFocus Set to true if the popup is in focus
345
- * @private
346
- */
347
339
  PopupManager.prototype._applyPopupAttributes = function(mPropertyBag) {
348
340
  //check if popups are open
349
341
  var oRelevantPopups = this.getCategorizedOpenPopups();
@@ -19,7 +19,7 @@ function(
19
19
  *
20
20
  * @extends sap.ui.core.EventBus
21
21
  * @author SAP SE
22
- * @version 1.96.2
22
+ * @version 1.97.0
23
23
  * @private
24
24
  * @since 1.56.0
25
25
  * @alias sap.ui.rta.util.ServiceEventBus
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * Starter util for UI adaptation.
39
39
  * With this API you are also able to modify the UI adaptation plugins list and or add some event handler functions to be called on start, failed and stop events.
40
40
  * @param {object} mOptions - Object with properties
41
- * @param {sap.ui.core.Element|sap.ui.core.UIComponent} mOptions.rootControl - Control instance from where UI adaptation should be started
41
+ * @param {sap.ui.core.Control|sap.ui.core.UIComponent} mOptions.rootControl - Control instance to get the AppComponent. This then is used to start UI adaptation.
42
42
  * @param {function} [loadPlugins] - Callback function that enables the modification of the default plugin list of UI adaptation. UI adaptation is passed to this function and it should return a promise
43
43
  * @param {function} [onStart] - Event handler function called on start event
44
44
  * @param {function} [onFailed] - Event handler function called on failed event