@sapui5/sap.suite.ui.commons 1.144.0 → 1.146.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 (123) hide show
  1. package/package.json +1 -1
  2. package/src/sap/suite/ui/commons/.library +1 -1
  3. package/src/sap/suite/ui/commons/AriaProperties.js +1 -1
  4. package/src/sap/suite/ui/commons/CalculationBuilder.js +35 -6
  5. package/src/sap/suite/ui/commons/CalculationBuilderExpression.js +1 -1
  6. package/src/sap/suite/ui/commons/CalculationBuilderFunction.js +1 -1
  7. package/src/sap/suite/ui/commons/CalculationBuilderGroup.js +1 -1
  8. package/src/sap/suite/ui/commons/CalculationBuilderInput.js +11 -0
  9. package/src/sap/suite/ui/commons/CalculationBuilderItem.js +1 -1
  10. package/src/sap/suite/ui/commons/CalculationBuilderValidationResult.js +1 -1
  11. package/src/sap/suite/ui/commons/CalculationBuilderVariable.js +1 -1
  12. package/src/sap/suite/ui/commons/CloudFilePicker.js +1 -3
  13. package/src/sap/suite/ui/commons/ControlProxy.js +7 -4
  14. package/src/sap/suite/ui/commons/MicroProcessFlow.js +1 -1
  15. package/src/sap/suite/ui/commons/MicroProcessFlowItem.js +1 -1
  16. package/src/sap/suite/ui/commons/ProcessFlow.js +79 -75
  17. package/src/sap/suite/ui/commons/ProcessFlowRenderer.js +3 -0
  18. package/src/sap/suite/ui/commons/Timeline.js +9 -0
  19. package/src/sap/suite/ui/commons/TimelineNavigator.js +37 -5
  20. package/src/sap/suite/ui/commons/TimelineRenderer.js +3 -3
  21. package/src/sap/suite/ui/commons/collaboration/BaseHelperService.js +0 -1
  22. package/src/sap/suite/ui/commons/collaboration/CollaborationHelper.js +0 -3
  23. package/src/sap/suite/ui/commons/collaboration/CollaborationManagerService.js +0 -1
  24. package/src/sap/suite/ui/commons/collaboration/ContactHelper.js +12 -1
  25. package/src/sap/suite/ui/commons/collaboration/ContactPopover.fragment.xml +4 -1
  26. package/src/sap/suite/ui/commons/collaboration/MinimalContactPopover.fragment.xml +8 -5
  27. package/src/sap/suite/ui/commons/collaboration/ServiceContainer.js +12 -2
  28. package/src/sap/suite/ui/commons/collaboration/TeamsHelperService.js +0 -6
  29. package/src/sap/suite/ui/commons/collaboration/channels/MessageChannel.js +0 -2
  30. package/src/sap/suite/ui/commons/collaboration/flpplugins/msplugin/Component-preload.js +1 -1
  31. package/src/sap/suite/ui/commons/collaboration/flpplugins/msplugin/Component.js +1 -2
  32. package/src/sap/suite/ui/commons/flexibility/changeHandler/PropertyChangeMapper.js +1 -1
  33. package/src/sap/suite/ui/commons/imageeditor/CropCustomShapeHistoryItem.js +1 -1
  34. package/src/sap/suite/ui/commons/imageeditor/CropEllipseHistoryItem.js +1 -1
  35. package/src/sap/suite/ui/commons/imageeditor/CropRectangleHistoryItem.js +1 -1
  36. package/src/sap/suite/ui/commons/imageeditor/CustomSizeItem.js +1 -1
  37. package/src/sap/suite/ui/commons/imageeditor/FilterHistoryItem.js +1 -1
  38. package/src/sap/suite/ui/commons/imageeditor/FlipHistoryItem.js +1 -1
  39. package/src/sap/suite/ui/commons/imageeditor/HistoryItem.js +1 -1
  40. package/src/sap/suite/ui/commons/imageeditor/ImageEditor.js +1 -1
  41. package/src/sap/suite/ui/commons/imageeditor/ImageEditorContainer.js +1 -1
  42. package/src/sap/suite/ui/commons/imageeditor/ImageEditorResponsiveContainer.js +9 -6
  43. package/src/sap/suite/ui/commons/imageeditor/ResizeHistoryItem.js +1 -1
  44. package/src/sap/suite/ui/commons/imageeditor/RotateHistoryItem.js +1 -1
  45. package/src/sap/suite/ui/commons/library.js +25 -1
  46. package/src/sap/suite/ui/commons/messagebundle.properties +20 -9
  47. package/src/sap/suite/ui/commons/messagebundle_ar.properties +24 -3
  48. package/src/sap/suite/ui/commons/messagebundle_bg.properties +24 -3
  49. package/src/sap/suite/ui/commons/messagebundle_ca.properties +24 -3
  50. package/src/sap/suite/ui/commons/messagebundle_cnr.properties +24 -3
  51. package/src/sap/suite/ui/commons/messagebundle_cs.properties +23 -2
  52. package/src/sap/suite/ui/commons/messagebundle_cy.properties +24 -3
  53. package/src/sap/suite/ui/commons/messagebundle_da.properties +23 -2
  54. package/src/sap/suite/ui/commons/messagebundle_de.properties +36 -15
  55. package/src/sap/suite/ui/commons/messagebundle_el.properties +25 -4
  56. package/src/sap/suite/ui/commons/messagebundle_en.properties +24 -3
  57. package/src/sap/suite/ui/commons/messagebundle_en_GB.properties +24 -3
  58. package/src/sap/suite/ui/commons/messagebundle_en_US_saprigi.properties +11 -5
  59. package/src/sap/suite/ui/commons/messagebundle_es.properties +24 -3
  60. package/src/sap/suite/ui/commons/messagebundle_es_MX.properties +24 -3
  61. package/src/sap/suite/ui/commons/messagebundle_et.properties +23 -2
  62. package/src/sap/suite/ui/commons/messagebundle_fi.properties +23 -2
  63. package/src/sap/suite/ui/commons/messagebundle_fr.properties +32 -11
  64. package/src/sap/suite/ui/commons/messagebundle_fr_CA.properties +24 -3
  65. package/src/sap/suite/ui/commons/messagebundle_hi.properties +24 -3
  66. package/src/sap/suite/ui/commons/messagebundle_hr.properties +24 -3
  67. package/src/sap/suite/ui/commons/messagebundle_hu.properties +24 -3
  68. package/src/sap/suite/ui/commons/messagebundle_id.properties +25 -4
  69. package/src/sap/suite/ui/commons/messagebundle_it.properties +24 -3
  70. package/src/sap/suite/ui/commons/messagebundle_iw.properties +24 -3
  71. package/src/sap/suite/ui/commons/messagebundle_ja.properties +24 -3
  72. package/src/sap/suite/ui/commons/messagebundle_kk.properties +25 -4
  73. package/src/sap/suite/ui/commons/messagebundle_ko.properties +23 -2
  74. package/src/sap/suite/ui/commons/messagebundle_lt.properties +24 -3
  75. package/src/sap/suite/ui/commons/messagebundle_lv.properties +24 -3
  76. package/src/sap/suite/ui/commons/messagebundle_mk.properties +23 -2
  77. package/src/sap/suite/ui/commons/messagebundle_ms.properties +24 -3
  78. package/src/sap/suite/ui/commons/messagebundle_nl.properties +23 -2
  79. package/src/sap/suite/ui/commons/messagebundle_no.properties +25 -4
  80. package/src/sap/suite/ui/commons/messagebundle_pl.properties +24 -3
  81. package/src/sap/suite/ui/commons/messagebundle_pt.properties +24 -3
  82. package/src/sap/suite/ui/commons/messagebundle_pt_PT.properties +24 -3
  83. package/src/sap/suite/ui/commons/messagebundle_ro.properties +24 -3
  84. package/src/sap/suite/ui/commons/messagebundle_ru.properties +25 -4
  85. package/src/sap/suite/ui/commons/messagebundle_sh.properties +24 -3
  86. package/src/sap/suite/ui/commons/messagebundle_sk.properties +24 -3
  87. package/src/sap/suite/ui/commons/messagebundle_sl.properties +23 -2
  88. package/src/sap/suite/ui/commons/messagebundle_sr.properties +24 -3
  89. package/src/sap/suite/ui/commons/messagebundle_sv.properties +23 -2
  90. package/src/sap/suite/ui/commons/messagebundle_th.properties +25 -4
  91. package/src/sap/suite/ui/commons/messagebundle_tr.properties +24 -3
  92. package/src/sap/suite/ui/commons/messagebundle_uk.properties +27 -6
  93. package/src/sap/suite/ui/commons/messagebundle_vi.properties +26 -5
  94. package/src/sap/suite/ui/commons/messagebundle_zh_CN.properties +24 -3
  95. package/src/sap/suite/ui/commons/messagebundle_zh_TW.properties +26 -5
  96. package/src/sap/suite/ui/commons/networkgraph/Graph.js +49 -22
  97. package/src/sap/suite/ui/commons/networkgraph/KeyboardNavigator.js +45 -4
  98. package/src/sap/suite/ui/commons/networkgraph/Line.js +157 -11
  99. package/src/sap/suite/ui/commons/networkgraph/Node.js +289 -86
  100. package/src/sap/suite/ui/commons/networkgraph/Utils.js +239 -10
  101. package/src/sap/suite/ui/commons/networkgraph/layout/NoopLayout.js +55 -8
  102. package/src/sap/suite/ui/commons/networkgraph/util/DependencyLayoutHelper.js +156 -74
  103. package/src/sap/suite/ui/commons/networkgraph/util/DragDropManager.js +52 -50
  104. package/src/sap/suite/ui/commons/networkgraph/util/PortManager.js +14 -6
  105. package/src/sap/suite/ui/commons/statusindicator/Circle.js +1 -1
  106. package/src/sap/suite/ui/commons/statusindicator/CustomShape.js +1 -1
  107. package/src/sap/suite/ui/commons/statusindicator/DiscreteThreshold.js +1 -1
  108. package/src/sap/suite/ui/commons/statusindicator/FillingOption.js +1 -1
  109. package/src/sap/suite/ui/commons/statusindicator/LibraryShape.js +1 -1
  110. package/src/sap/suite/ui/commons/statusindicator/Path.js +1 -1
  111. package/src/sap/suite/ui/commons/statusindicator/PropertyThreshold.js +1 -1
  112. package/src/sap/suite/ui/commons/statusindicator/Rectangle.js +1 -1
  113. package/src/sap/suite/ui/commons/statusindicator/Shape.js +1 -1
  114. package/src/sap/suite/ui/commons/statusindicator/ShapeGroup.js +1 -1
  115. package/src/sap/suite/ui/commons/statusindicator/SimpleShape.js +1 -1
  116. package/src/sap/suite/ui/commons/statusindicator/StatusIndicator.js +1 -1
  117. package/src/sap/suite/ui/commons/taccount/TAccount.js +1 -1
  118. package/src/sap/suite/ui/commons/taccount/TAccountGroup.js +1 -1
  119. package/src/sap/suite/ui/commons/taccount/TAccountItem.js +1 -1
  120. package/src/sap/suite/ui/commons/taccount/TAccountItemProperty.js +1 -1
  121. package/src/sap/suite/ui/commons/taccount/TAccountPanel.js +1 -1
  122. package/src/sap/suite/ui/commons/themes/base/NetworkLine.less +26 -5
  123. package/src/sap/suite/ui/commons/windowmessages/CollaborationMessageConsumer.js +3 -3
@@ -5,7 +5,7 @@
5
5
 
6
6
  */
7
7
 
8
- sap.ui.define([], function () {
8
+ sap.ui.define(["sap/base/Log"], function (Log) {
9
9
  "use strict";
10
10
 
11
11
  /**
@@ -73,15 +73,244 @@ sap.ui.define([], function () {
73
73
  * @returns {function} throttled function.
74
74
  */
75
75
  Utils.throttle = (mainFunction, delay) => {
76
- return (...args) => {
77
- if (timeFlag === null) {
78
- mainFunction(...args);
79
- timeFlag = setTimeout(() => {
80
- timeFlag = null;
81
- }, delay);
82
- }
83
- };
84
- };
76
+ return (...args) => {
77
+ if (timeFlag === null) {
78
+ mainFunction(...args);
79
+ timeFlag = setTimeout(() => {
80
+ timeFlag = null;
81
+ }, delay);
82
+ }
83
+ };
84
+ };
85
+
86
+ /**
87
+ * Helper function to convert CSS outline to border for drag image elements.
88
+ * This is needed because some browsers don't capture outline in drag images.
89
+ *
90
+ * @param {HTMLElement} oElement - The DOM element to apply border to
91
+ * @param {CSSStyleDeclaration} oComputedStyle - The computed style of the element
92
+ * @param {string} [sBorderProperty="border"] - The CSS border property to set ("border", "borderBottom", etc.)
93
+ * @private
94
+ */
95
+ var _applyOutlineAsBorder = function (oElement, oComputedStyle, sBorderProperty) {
96
+ var sOutlineWidth = oComputedStyle.outlineWidth;
97
+ if (sOutlineWidth && sOutlineWidth !== "0px") {
98
+ var sBorderValue = sOutlineWidth + " " + oComputedStyle.outlineStyle + " " + oComputedStyle.outlineColor;
99
+ oElement.style[sBorderProperty || "border"] = sBorderValue;
100
+ oElement.style.outline = "none";
101
+ }
102
+ };
103
+
104
+ /**
105
+ * Clones the inner div element and applies basic styles for drag image.
106
+ *
107
+ * @param {HTMLElement} oInnerDiv - Inner div element to clone
108
+ * @returns {HTMLElement} The cloned and styled node
109
+ * @private
110
+ */
111
+ var _cloneAndStyleNode = function (oInnerDiv) {
112
+ var oClonedNode = oInnerDiv.cloneNode(true);
113
+ var oComputedStyle = window.getComputedStyle(oInnerDiv);
114
+
115
+ // Apply computed styles to ensure the clone looks identical
116
+ oClonedNode.style.width = oComputedStyle.width;
117
+ oClonedNode.style.height = oComputedStyle.height;
118
+ oClonedNode.style.position = "absolute";
119
+ oClonedNode.style.top = "-9999px";
120
+ oClonedNode.style.left = "-9999px";
121
+ oClonedNode.style.pointerEvents = "none";
122
+
123
+ // Convert outline to border for the drag image
124
+ _applyOutlineAsBorder(oClonedNode, oComputedStyle);
125
+
126
+ // Retain border-radius for rounded corners
127
+ var sBorderRadius = oComputedStyle.borderRadius;
128
+ if (sBorderRadius && sBorderRadius !== "0px") {
129
+ oClonedNode.style.borderRadius = sBorderRadius;
130
+ }
131
+
132
+ // Retain background color
133
+ var sBackgroundColor = oComputedStyle.backgroundColor;
134
+ if (sBackgroundColor) {
135
+ oClonedNode.style.backgroundColor = sBackgroundColor;
136
+ }
137
+
138
+ return oClonedNode;
139
+ };
140
+
141
+ /**
142
+ * Processes header element styling in the cloned node.
143
+ *
144
+ * @param {HTMLElement} oClonedNode - The cloned node to process
145
+ * @param {HTMLElement} oInnerDiv - Original inner div element
146
+ * @private
147
+ */
148
+ var _processHeaderElement = function (oClonedNode, oInnerDiv) {
149
+ var oOriginalHeader = oInnerDiv.querySelector(".sapSuiteUiCommonsNetworkGraphDivHeader");
150
+ if (!oOriginalHeader) {
151
+ return;
152
+ }
153
+
154
+ var oHeaderComputedStyle = window.getComputedStyle(oOriginalHeader);
155
+ var oHeaderElement = oClonedNode.querySelector(".sapSuiteUiCommonsNetworkGraphDivHeader");
156
+
157
+ if (!oHeaderElement) {
158
+ return;
159
+ }
160
+
161
+ // Retain header background color
162
+ if (oHeaderComputedStyle.backgroundColor) {
163
+ oHeaderElement.style.backgroundColor = oHeaderComputedStyle.backgroundColor;
164
+ }
165
+
166
+ // Convert header outline to border
167
+ _applyOutlineAsBorder(oHeaderElement, oHeaderComputedStyle, "borderBottom");
168
+
169
+ // Process separate header color wrapper if it exists (skip if combined class)
170
+ if (!oHeaderElement.classList.contains("sapSuiteUiCommonsNetworkGraphDivHeaderColor")) {
171
+ var oOriginalHeaderColor = oInnerDiv.querySelector(".sapSuiteUiCommonsNetworkGraphDivHeaderColor");
172
+ if (oOriginalHeaderColor) {
173
+ var oHeaderColorComputedStyle = window.getComputedStyle(oOriginalHeaderColor);
174
+ var oHeaderColorElement = oHeaderElement.querySelector(".sapSuiteUiCommonsNetworkGraphDivHeaderColor");
175
+
176
+ if (oHeaderColorElement) {
177
+ // Retain border
178
+ if (oHeaderColorComputedStyle.border && oHeaderColorComputedStyle.border !== "0px none rgb(0, 0, 0)") {
179
+ oHeaderColorElement.style.border = oHeaderColorComputedStyle.border;
180
+ }
181
+
182
+ // Retain border-radius
183
+ if (oHeaderColorComputedStyle.borderRadius && oHeaderColorComputedStyle.borderRadius !== "0px") {
184
+ oHeaderColorElement.style.borderRadius = oHeaderColorComputedStyle.borderRadius;
185
+ }
186
+
187
+ // Retain background color
188
+ if (oHeaderColorComputedStyle.backgroundColor) {
189
+ oHeaderColorElement.style.backgroundColor = oHeaderColorComputedStyle.backgroundColor;
190
+ }
191
+
192
+ // Retain color
193
+ if (oHeaderColorComputedStyle.color) {
194
+ oHeaderColorElement.style.color = oHeaderColorComputedStyle.color;
195
+ }
196
+ }
197
+ }
198
+ }
199
+ };
200
+
201
+ /**
202
+ * Creates a custom drag image for the node that includes borders, border-radius, and background colors.
203
+ * This is necessary because the default browser drag image doesn't capture CSS outline properties for few browsers e.g. Chrome.
204
+ *
205
+ * @param {sap.suite.ui.commons.networkgraph.Node} oNode - The node being dragged
206
+ * @param {Event} oBrowserEvent - The native browser drag event
207
+ * @returns {HTMLElement|null} The cloned node attached to DOM, or null if creation failed. Caller is responsible for cleanup.
208
+ */
209
+ Utils.createCustomDragImage = function (oNode, oBrowserEvent) {
210
+ if (!oNode || !oBrowserEvent || !oBrowserEvent.dataTransfer) {
211
+ return null;
212
+ }
213
+
214
+ // Get the graph instance to check the ghost image mode
215
+ var oGraph = oNode.getParent();
216
+ if (!oGraph) {
217
+ return null;
218
+ }
219
+
220
+ try {
221
+ var oDomRef = oNode.getDomRef();
222
+ if (!oDomRef) {
223
+ return null;
224
+ }
225
+
226
+ var oInnerDiv = oDomRef.querySelector(".sapSuiteUiCommonsNetworkGraphDivInner");
227
+ if (!oInnerDiv) {
228
+ return null;
229
+ }
230
+
231
+ // Clone and apply basic styles
232
+ var oClonedNode = _cloneAndStyleNode(oInnerDiv);
233
+
234
+ // Process header element styling
235
+ _processHeaderElement(oClonedNode, oInnerDiv);
236
+
237
+ // Attach to DOM temporarily
238
+ document.body.appendChild(oClonedNode);
239
+
240
+ // Set drag image with correct offset
241
+ var oRect = oInnerDiv.getBoundingClientRect();
242
+ var iOffsetX = oBrowserEvent.clientX - oRect.left;
243
+ var iOffsetY = oBrowserEvent.clientY - oRect.top;
244
+ oBrowserEvent.dataTransfer.setDragImage(oClonedNode, iOffsetX, iOffsetY);
245
+
246
+ // Return the cloned node for cleanup by caller
247
+ return oClonedNode;
248
+ } catch (oError) {
249
+ Log.warning("Utils: Failed to create custom drag image", oError);
250
+ return null;
251
+ }
252
+ };
253
+
254
+ /**
255
+ * Retains the scroll position of the graph after DOM operations.
256
+ * This method ensures that the viewport remains stable after operations like
257
+ * drag-drop, connection creation, or other DOM manipulations.
258
+ *
259
+ * @param {sap.suite.ui.commons.networkgraph.Graph} oGraph - The graph control
260
+ * @param {number} scrollLeft - The horizontal scroll position to maintain
261
+ * @param {number} scrollTop - The vertical scroll position to maintain
262
+ */
263
+ Utils.retainScrollPosition = function (oGraph, scrollLeft, scrollTop) {
264
+ if (!oGraph || !oGraph.$scroller || !oGraph.$scroller[0]) {
265
+ return;
266
+ }
267
+
268
+ const scrollerElement = oGraph.$scroller[0];
269
+
270
+ // Use requestAnimationFrame for better performance and timing
271
+ requestAnimationFrame(() => {
272
+ try {
273
+ scrollerElement.scrollLeft = scrollLeft;
274
+ scrollerElement.scrollTop = scrollTop;
275
+
276
+ // Fallback verification - ensure the scroll position was actually set
277
+ if (Math.abs(scrollerElement.scrollLeft - scrollLeft) > 1 ||
278
+ Math.abs(scrollerElement.scrollTop - scrollTop) > 1) {
279
+
280
+ // If the scroll position wasn't set correctly, try again after DOM updates
281
+ setTimeout(() => {
282
+ scrollerElement.scrollLeft = scrollLeft;
283
+ scrollerElement.scrollTop = scrollTop;
284
+ }, 10);
285
+ }
286
+ } catch (error) {
287
+ Log.error("retainScrollPosition: Error setting scroll position - " + error.message, "sap.suite.ui.commons.networkgraph.Utils");
288
+ }
289
+ });
290
+ };
291
+
292
+ /**
293
+ * Preserves the scroll position of the graph by scheduling restoration after DOM updates.
294
+ * This is a convenience wrapper that handles the setTimeout + restoration logic.
295
+ *
296
+ * @param {sap.suite.ui.commons.networkgraph.Graph} oGraph - The graph control
297
+ * @param {number} scrollLeft - The horizontal scroll position to restore
298
+ * @param {number} scrollTop - The vertical scroll position to restore
299
+ * @param {number} [iDelay=0] - Delay in milliseconds before restoring scroll position
300
+ * @public
301
+ */
302
+ Utils.preserveScrollPosition = function (oGraph, scrollLeft, scrollTop, iDelay) {
303
+ if (!oGraph || !oGraph.$scroller || !oGraph.$scroller[0]) {
304
+ return;
305
+ }
306
+
307
+ const delay = typeof iDelay === "number" ? iDelay : 0;
308
+
309
+ // Schedule restoration after DOM updates
310
+ setTimeout(() => {
311
+ Utils.retainScrollPosition(oGraph, scrollLeft, scrollTop);
312
+ }, delay);
313
+ };
85
314
 
86
315
  return Utils;
87
316
  }, true);
@@ -9,11 +9,13 @@ sap.ui.define([
9
9
  "sap/suite/ui/commons/library",
10
10
  "./LayoutAlgorithm",
11
11
  "./LayoutTask",
12
- "../util/ConnectionPathUtils"
13
- ], function (library, LayoutAlgorithm, LayoutTask, ConnectionPathUtils) {
12
+ "../util/ConnectionPathUtils",
13
+ "../util/DependencyLayoutHelper"
14
+ ], function (library, LayoutAlgorithm, LayoutTask, ConnectionPathUtils, DependencyLayoutHelper) {
14
15
  "use strict";
15
16
 
16
- var LayoutRenderType = library.networkgraph.LayoutRenderType;
17
+ var oLayoutRenderType = library.networkgraph.LayoutRenderType,
18
+ oComponentArrangement = library.networkgraph.ComponentArrangement;
17
19
 
18
20
  /**
19
21
  * Constructor for a new NoopLayout.
@@ -37,9 +39,17 @@ sap.ui.define([
37
39
  * Enables advanced line routing algorithm that creates orthogonal bends along the pathfinding process for line creation.
38
40
  *
39
41
  * @public
40
- * @since 1.144
41
42
  */
42
- enableOptimizedLineAlgorithm: { type: "boolean", group: "Behavior", defaultValue: false }
43
+ enableOptimizedLineAlgorithm: { type: "boolean", group: "Behavior", defaultValue: false },
44
+
45
+ /**
46
+ * Defines how separate connected components should be arranged in the graph.
47
+ * Components can be arranged either horizontally (side-by-side) or vertically (stacked).
48
+ *
49
+ * @since 1.146
50
+ * @public
51
+ */
52
+ componentArrangement: { type: "sap.suite.ui.commons.networkgraph.ComponentArrangement", group: "Behavior", defaultValue: oComponentArrangement.Horizontal }
43
53
  }
44
54
  }
45
55
  });
@@ -54,11 +64,14 @@ sap.ui.define([
54
64
  * @public
55
65
  */
56
66
  NoopLayout.prototype.getLayoutRenderType = function () {
57
- return LayoutRenderType.LayeredWithGroups;
67
+ return oLayoutRenderType.LayeredWithGroups;
58
68
  };
59
69
 
60
70
  /**
61
71
  * Executes the layout algorithm.
72
+ * Automatically calculates initial positions for unpositioned nodes using DependencyLayoutHelper,
73
+ * then normalizes line coordinates.
74
+ *
62
75
  * @returns {sap.suite.ui.commons.networkgraph.layout.LayoutTask} Task to get the layout calculated.
63
76
  * @public
64
77
  */
@@ -76,6 +89,19 @@ sap.ui.define([
76
89
  return;
77
90
  }
78
91
 
92
+ // Check if positioning should be calculated
93
+ // Note: DependencyLayoutHelper only repositions nodes without valid coordinates
94
+ if (this._shouldCalculatePositions(oGraph)) {
95
+ DependencyLayoutHelper.calculatePositions(oGraph, {
96
+ componentArrangement: this.getComponentArrangement()
97
+ });
98
+
99
+ // Reset flag after calculation
100
+ if (oGraph._bTriggerLayoutCalculation) {
101
+ oGraph._bTriggerLayoutCalculation = false;
102
+ }
103
+ }
104
+
79
105
  if (this.getEnableOptimizedLineAlgorithm()) {
80
106
  // Use the ConnectionPathUtils utility to normalize lines
81
107
  ConnectionPathUtils.normalizeLines(oGraph, {
@@ -86,11 +112,32 @@ sap.ui.define([
86
112
  this._normalizeLines();
87
113
  }
88
114
 
89
-
90
-
91
115
  fnResolve();
92
116
  }.bind(this));
93
117
  };
94
118
 
119
+ /**
120
+ * Determines if initial positions should be calculated.
121
+ * Only returns true if there are unpositioned nodes or if explicitly triggered.
122
+ *
123
+ * @param {sap.suite.ui.commons.networkgraph.Graph} oGraph - The graph instance
124
+ * @returns {boolean} True if positions should be calculated
125
+ * @private
126
+ */
127
+ NoopLayout.prototype._shouldCalculatePositions = function (oGraph) {
128
+ // Check if explicit trigger flag is set
129
+ // Even when triggered, DependencyLayoutHelper only affects unpositioned nodes
130
+ if (oGraph._bTriggerLayoutCalculation) {
131
+ return true;
132
+ }
133
+
134
+ // Auto-detect unpositioned nodes (coordinates 0,0 or undefined)
135
+ return oGraph.getNodes().some(function (oNode) {
136
+ var fX = oNode.getX();
137
+ var fY = oNode.getY();
138
+ return (fX === 0 || fX === undefined) && (fY === 0 || fY === undefined);
139
+ });
140
+ };
141
+
95
142
  return NoopLayout;
96
143
  });