@openui5/sap.ui.layout 1.93.3 → 1.96.2

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 (66) hide show
  1. package/.reuse/dep5 +6 -11
  2. package/THIRDPARTY.txt +10 -16
  3. package/package.json +2 -2
  4. package/src/sap/ui/layout/.library +1 -1
  5. package/src/sap/ui/layout/AlignedFlowLayout.js +7 -3
  6. package/src/sap/ui/layout/AssociativeSplitter.js +1 -1
  7. package/src/sap/ui/layout/BlockLayout.js +1 -1
  8. package/src/sap/ui/layout/BlockLayoutCell.js +1 -1
  9. package/src/sap/ui/layout/BlockLayoutCellData.js +1 -1
  10. package/src/sap/ui/layout/BlockLayoutRow.js +1 -1
  11. package/src/sap/ui/layout/DynamicSideContent.js +1 -1
  12. package/src/sap/ui/layout/FixFlex.js +1 -1
  13. package/src/sap/ui/layout/Grid.js +1 -1
  14. package/src/sap/ui/layout/GridData.js +1 -1
  15. package/src/sap/ui/layout/GridRenderer.js +1 -1
  16. package/src/sap/ui/layout/HorizontalLayout.js +1 -1
  17. package/src/sap/ui/layout/PaneContainer.js +1 -1
  18. package/src/sap/ui/layout/ResponsiveFlowLayout.js +1 -1
  19. package/src/sap/ui/layout/ResponsiveFlowLayoutData.js +1 -1
  20. package/src/sap/ui/layout/ResponsiveSplitter.js +1 -1
  21. package/src/sap/ui/layout/ResponsiveSplitterPage.js +1 -1
  22. package/src/sap/ui/layout/SplitPane.js +1 -1
  23. package/src/sap/ui/layout/Splitter.js +1 -1
  24. package/src/sap/ui/layout/SplitterLayoutData.js +1 -1
  25. package/src/sap/ui/layout/VerticalLayout.js +1 -1
  26. package/src/sap/ui/layout/changeHandler/AddFormContainer.js +1 -1
  27. package/src/sap/ui/layout/changeHandler/AddFormField.js +1 -1
  28. package/src/sap/ui/layout/changeHandler/AddSimpleFormField.js +25 -11
  29. package/src/sap/ui/layout/changeHandler/AddSimpleFormGroup.js +1 -1
  30. package/src/sap/ui/layout/changeHandler/HideSimpleForm.js +1 -1
  31. package/src/sap/ui/layout/changeHandler/MoveSimpleForm.js +3 -5
  32. package/src/sap/ui/layout/changeHandler/RenameFormContainer.js +1 -1
  33. package/src/sap/ui/layout/changeHandler/RenameSimpleForm.js +2 -4
  34. package/src/sap/ui/layout/changeHandler/UnhideSimpleForm.js +3 -3
  35. package/src/sap/ui/layout/cssgrid/CSSGrid.js +72 -69
  36. package/src/sap/ui/layout/cssgrid/GridBasicLayout.js +1 -1
  37. package/src/sap/ui/layout/cssgrid/GridBoxLayout.js +21 -9
  38. package/src/sap/ui/layout/cssgrid/GridItemLayoutData.js +1 -1
  39. package/src/sap/ui/layout/cssgrid/GridLayoutBase.js +3 -1
  40. package/src/sap/ui/layout/cssgrid/GridLayoutDelegate.js +1 -1
  41. package/src/sap/ui/layout/cssgrid/GridResponsiveLayout.js +5 -3
  42. package/src/sap/ui/layout/cssgrid/GridSettings.js +1 -1
  43. package/src/sap/ui/layout/cssgrid/ResponsiveColumnItemLayoutData.js +1 -1
  44. package/src/sap/ui/layout/cssgrid/ResponsiveColumnLayout.js +5 -3
  45. package/src/sap/ui/layout/designtime/form/Form.designtime.js +1 -1
  46. package/src/sap/ui/layout/designtime/form/SimpleForm.designtime.js +11 -5
  47. package/src/sap/ui/layout/form/ColumnContainerData.js +1 -1
  48. package/src/sap/ui/layout/form/ColumnElementData.js +1 -1
  49. package/src/sap/ui/layout/form/ColumnLayout.js +1 -1
  50. package/src/sap/ui/layout/form/ColumnLayoutRenderer.js +7 -6
  51. package/src/sap/ui/layout/form/Form.js +1 -1
  52. package/src/sap/ui/layout/form/FormContainer.js +1 -1
  53. package/src/sap/ui/layout/form/FormElement.js +1 -1
  54. package/src/sap/ui/layout/form/FormLayout.js +3 -3
  55. package/src/sap/ui/layout/form/FormLayoutRenderer.js +3 -2
  56. package/src/sap/ui/layout/form/GridContainerData.js +1 -1
  57. package/src/sap/ui/layout/form/GridElementData.js +1 -1
  58. package/src/sap/ui/layout/form/GridLayout.js +2 -2
  59. package/src/sap/ui/layout/form/ResponsiveGridLayout.js +1 -1
  60. package/src/sap/ui/layout/form/ResponsiveLayout.js +1 -1
  61. package/src/sap/ui/layout/form/SemanticFormElement.js +1 -1
  62. package/src/sap/ui/layout/form/SimpleForm.js +1 -1
  63. package/src/sap/ui/layout/library.js +2 -2
  64. package/src/sap/ui/layout/messagebundle_el.properties +1 -1
  65. package/ui5.yaml +4 -1
  66. package/src/sap/ui/layout/cssgrid/GridBoxLayoutStyleHelper.js +0 -62
@@ -9,10 +9,10 @@ sap.ui.define([
9
9
  "sap/ui/layout/cssgrid/GridLayoutBase",
10
10
  "sap/ui/layout/cssgrid/GridBasicLayout",
11
11
  "sap/ui/layout/cssgrid/GridLayoutDelegate",
12
+ "./CSSGridRenderer",
12
13
  "sap/ui/base/ManagedObjectObserver",
13
- "sap/ui/layout/library",
14
- "./CSSGridRenderer"
15
- ], function (Control, GridLayoutBase, GridBasicLayout, GridLayoutDelegate, ManagedObjectObserver) {
14
+ "sap/ui/layout/library"
15
+ ], function (Control, GridLayoutBase, GridBasicLayout, GridLayoutDelegate, CSSGridRenderer, ManagedObjectObserver) {
16
16
  "use strict";
17
17
 
18
18
  /**
@@ -95,7 +95,7 @@ sap.ui.define([
95
95
  * @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout MDN web docs: CSS Grid Layout}
96
96
  *
97
97
  * @author SAP SE
98
- * @version 1.93.3
98
+ * @version 1.96.2
99
99
  *
100
100
  * @extends sap.ui.core.Control
101
101
  * @implements sap.ui.layout.cssgrid.IGridConfigurable
@@ -106,72 +106,75 @@ sap.ui.define([
106
106
  * @alias sap.ui.layout.cssgrid.CSSGrid
107
107
  * @ui5-metamodel This control/element will also be described in the UI5 (legacy) designtime metamodel
108
108
  */
109
- var CSSGrid = Control.extend("sap.ui.layout.cssgrid.CSSGrid", { metadata: {
110
- library: "sap.ui.layout",
111
- defaultAggregation: "items",
112
- interfaces: ["sap.ui.layout.cssgrid.IGridConfigurable"],
113
- properties: {
114
-
115
- /**
116
- * The width of the control
117
- */
118
- width: { type: "sap.ui.core.CSSSize", defaultValue: "100%" },
119
-
120
- /**
121
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns MDN web docs: grid-template-columns}
122
- */
123
- gridTemplateColumns: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
124
-
125
- /**
126
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows MDN web docs: grid-template-rows}
127
- */
128
- gridTemplateRows: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
129
-
130
- /**
131
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-gap MDN web docs: grid-row-gap}
132
- */
133
- gridRowGap: { type: "sap.ui.core.CSSSize", defaultValue: "" },
134
-
135
- /**
136
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-gap MDN web docs: grid-column-gap}
137
- */
138
- gridColumnGap: { type: "sap.ui.core.CSSSize", defaultValue: "" },
139
-
140
- /**
141
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-gap MDN web docs: grid-gap}
142
- * It is a shorthand for gridRowGap and gridColumnGap. If some of them is set, the gridGap value will have less priority and will be overwritten.
143
- */
144
- gridGap: { type: "sap.ui.layout.cssgrid.CSSGridGapShortHand", defaultValue: "" },
145
-
146
- /**
147
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows MDN web docs: grid-auto-rows}
148
- */
149
- gridAutoRows: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
150
-
151
- /**
152
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns MDN web docs: grid-auto-columns}
153
- */
154
- gridAutoColumns: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
155
-
156
- /**
157
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow MDN web docs: grid-auto-flow}
158
- */
159
- gridAutoFlow: { type: "sap.ui.layout.cssgrid.CSSGridAutoFlow", defaultValue: "Row" }
109
+ var CSSGrid = Control.extend("sap.ui.layout.cssgrid.CSSGrid", {
110
+ metadata: {
111
+ library: "sap.ui.layout",
112
+ defaultAggregation: "items",
113
+ interfaces: ["sap.ui.layout.cssgrid.IGridConfigurable"],
114
+ properties: {
115
+
116
+ /**
117
+ * The width of the control
118
+ */
119
+ width: { type: "sap.ui.core.CSSSize", defaultValue: "100%" },
120
+
121
+ /**
122
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns MDN web docs: grid-template-columns}
123
+ */
124
+ gridTemplateColumns: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
125
+
126
+ /**
127
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows MDN web docs: grid-template-rows}
128
+ */
129
+ gridTemplateRows: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
130
+
131
+ /**
132
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-gap MDN web docs: grid-row-gap}
133
+ */
134
+ gridRowGap: { type: "sap.ui.core.CSSSize", defaultValue: "" },
135
+
136
+ /**
137
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-gap MDN web docs: grid-column-gap}
138
+ */
139
+ gridColumnGap: { type: "sap.ui.core.CSSSize", defaultValue: "" },
140
+
141
+ /**
142
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-gap MDN web docs: grid-gap}
143
+ * It is a shorthand for gridRowGap and gridColumnGap. If some of them is set, the gridGap value will have less priority and will be overwritten.
144
+ */
145
+ gridGap: { type: "sap.ui.layout.cssgrid.CSSGridGapShortHand", defaultValue: "" },
146
+
147
+ /**
148
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows MDN web docs: grid-auto-rows}
149
+ */
150
+ gridAutoRows: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
151
+
152
+ /**
153
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns MDN web docs: grid-auto-columns}
154
+ */
155
+ gridAutoColumns: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
156
+
157
+ /**
158
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow MDN web docs: grid-auto-flow}
159
+ */
160
+ gridAutoFlow: { type: "sap.ui.layout.cssgrid.CSSGridAutoFlow", defaultValue: "Row" }
161
+ },
162
+ aggregations: {
163
+
164
+ /**
165
+ * Defines a custom Grid layout for the control. If provided, it will override all of the grid properties.
166
+ */
167
+ customLayout: { type: "sap.ui.layout.cssgrid.GridLayoutBase", multiple: false },
168
+
169
+ /**
170
+ * The items contained by the control.
171
+ */
172
+ items: { type: "sap.ui.core.Control", multiple: true, singularName: "item", dnd: true }
173
+ },
174
+ dnd: { draggable: false, droppable: true }
160
175
  },
161
- aggregations: {
162
-
163
- /**
164
- * Defines a custom Grid layout for the control. If provided, it will override all of the grid properties.
165
- */
166
- customLayout: { type: "sap.ui.layout.cssgrid.GridLayoutBase", multiple: false },
167
-
168
- /**
169
- * The items contained by the control.
170
- */
171
- items: { type: "sap.ui.core.Control", multiple: true, singularName: "item", dnd: true }
172
- },
173
- dnd: { draggable: false, droppable: true }
174
- }});
176
+ renderer: CSSGridRenderer
177
+ });
175
178
 
176
179
  /**
177
180
  * =================== START of IGridConfigurable interface implementation ===================
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * Applies a sap.ui.layout.cssgrid.GridSettings to a provided DOM element or Control.
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.93.3
24
+ * @version 1.96.2
25
25
  *
26
26
  * @extends sap.ui.layout.cssgrid.GridLayoutBase
27
27
  *
@@ -7,13 +7,11 @@
7
7
  sap.ui.define([
8
8
  "sap/ui/layout/cssgrid/GridLayoutBase",
9
9
  "sap/ui/layout/cssgrid/GridSettings",
10
- "sap/ui/layout/cssgrid/GridBoxLayoutStyleHelper",
11
10
  "sap/ui/Device",
12
11
  "sap/ui/thirdparty/jquery"
13
12
  ], function (
14
13
  GridLayoutBase,
15
14
  GridSettings,
16
- GridBoxLayoutStyleHelper,
17
15
  Device,
18
16
  jQuery
19
17
  ) {
@@ -50,7 +48,7 @@ sap.ui.define([
50
48
  * Applies a sap.ui.layout.cssgrid.GridSettings to a provided DOM element or Control.
51
49
  *
52
50
  * @author SAP SE
53
- * @version 1.93.3
51
+ * @version 1.96.2
54
52
  *
55
53
  * @extends sap.ui.layout.cssgrid.GridLayoutBase
56
54
  *
@@ -126,6 +124,8 @@ sap.ui.define([
126
124
  /**
127
125
  * Hook function for the Grid's onAfterRendering
128
126
  * @param {sap.ui.layout.cssgrid.IGridConfigurable} oGrid The grid
127
+ * @override
128
+ * @protected
129
129
  */
130
130
  GridBoxLayout.prototype.onGridAfterRendering = function (oGrid) {
131
131
  // Add a specific class to each grid item
@@ -171,7 +171,8 @@ sap.ui.define([
171
171
  * - Manually flatten the height of the boxes.
172
172
  *
173
173
  * @param {object} oEvent - The event from a resize
174
- * @private
174
+ * @override
175
+ * @protected
175
176
  */
176
177
  GridBoxLayout.prototype.onGridResize = function (oEvent) {
177
178
  if (oEvent.control && oEvent.control.isA("sap.f.GridList") && oEvent.control.isGrouped()) {
@@ -193,17 +194,28 @@ sap.ui.define([
193
194
  * @private
194
195
  */
195
196
  GridBoxLayout.prototype._flattenHeight = function (oControl) {
196
- var iMaxHeight = 0;
197
+ var iMaxHeight = 0,
198
+ sMaxHeight;
197
199
 
198
- oControl.$().removeClass('sapUiLayoutCSSGridBoxLayoutFlattenHeight');
200
+ this._loopOverGridItems(oControl, function (oGridItem) {
201
+ if (!oGridItem.classList.contains("sapMGHLI")) {
202
+ oGridItem.style.height = "";
203
+ }
204
+ });
199
205
 
200
206
  this._loopOverGridItems(oControl, function (oGridItem) {
201
- iMaxHeight = Math.max(jQuery(oGridItem).outerHeight(), iMaxHeight);
207
+ if (!oGridItem.classList.contains("sapMGHLI")) {
208
+ iMaxHeight = Math.max(jQuery(oGridItem).outerHeight(), iMaxHeight);
209
+ }
202
210
  });
203
211
 
204
- GridBoxLayoutStyleHelper.setItemHeight(oControl.getId(), iMaxHeight);
212
+ sMaxHeight = iMaxHeight + "px";
205
213
 
206
- oControl.$().addClass('sapUiLayoutCSSGridBoxLayoutFlattenHeight');
214
+ this._loopOverGridItems(oControl, function (oGridItem) {
215
+ if (!oGridItem.classList.contains("sapMGHLI")) {
216
+ oGridItem.style.height = sMaxHeight;
217
+ }
218
+ });
207
219
  };
208
220
 
209
221
  /**
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * Holds layout data for a grid item.
30
30
  *
31
31
  * @extends sap.ui.core.LayoutData
32
- * @version 1.93.3
32
+ * @version 1.96.2
33
33
  *
34
34
  * @constructor
35
35
  * @public
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * Applies a sap.ui.layout.cssgrid.GridSettings to a provided DOM element or Control.
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.93.3
39
+ * @version 1.96.2
40
40
  *
41
41
  * @extends sap.ui.base.ManagedObject
42
42
  *
@@ -213,6 +213,7 @@ sap.ui.define([
213
213
  /**
214
214
  * Hook function for the Grid's onAfterRendering
215
215
  * @virtual
216
+ * @protected
216
217
  * @param {sap.ui.layout.cssgrid.IGridConfigurable} oGrid The grid
217
218
  */
218
219
  GridLayoutBase.prototype.onGridAfterRendering = function (oGrid) { };
@@ -220,6 +221,7 @@ sap.ui.define([
220
221
  /**
221
222
  * Hook function for the Grid's resize. Will be called if the grid layout is responsive.
222
223
  * @virtual
224
+ * @protected
223
225
  * @param {jQuery.Event} oEvent The event passed by the resize handler
224
226
  */
225
227
  GridLayoutBase.prototype.onGridResize = function (oEvent) { };
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  *
21
21
  * @extends sap.ui.base.Object
22
22
  *
23
- * @version 1.93.3
23
+ * @version 1.96.2
24
24
  * @alias sap.ui.layout.cssgrid.GridLayoutDelegate
25
25
  * @public
26
26
  */
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * Have to possibility to hold multiple sap.ui.layout.cssgrid.GridSettings and apply the currently active GridSettings.
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.93.3
24
+ * @version 1.96.2
25
25
  *
26
26
  * @extends sap.ui.layout.cssgrid.GridLayoutBase
27
27
  *
@@ -134,7 +134,8 @@ sap.ui.define([
134
134
  /**
135
135
  * Handler for IGridConfigurable onAfterRendering
136
136
  *
137
- * @private
137
+ * @override
138
+ * @protected
138
139
  * @param {sap.ui.layout.cssgrid.IGridConfigurable} oGrid The grid
139
140
  */
140
141
  GridResponsiveLayout.prototype.onGridAfterRendering = function (oGrid) {
@@ -144,7 +145,8 @@ sap.ui.define([
144
145
  /**
145
146
  * Handler for IGridConfigurable resize
146
147
  *
147
- * @private
148
+ * @override
149
+ * @protected
148
150
  * @param {jQuery.Event} oEvent The event object from a grid resize
149
151
  */
150
152
  GridResponsiveLayout.prototype.onGridResize = function (oEvent) {
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * Holds a set of CSS display:grid properties
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.93.3
23
+ * @version 1.96.2
24
24
  *
25
25
  * @extends sap.ui.base.ManagedObject
26
26
  *
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * Holds layout data for an item inside a responsive column layout.
21
21
  *
22
22
  * @extends sap.ui.core.LayoutData
23
- * @version 1.93.3
23
+ * @version 1.96.2
24
24
  *
25
25
  * @since 1.72
26
26
  * @constructor
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * Grid row's height is dynamically determined by the height of the highest grid element on this row.
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.93.3
36
+ * @version 1.96.2
37
37
  *
38
38
  * @extends sap.ui.layout.cssgrid.GridLayoutBase
39
39
  *
@@ -85,7 +85,8 @@ sap.ui.define([
85
85
  /**
86
86
  * Handler for IGridConfigurable onAfterRendering
87
87
  *
88
- * @private
88
+ * @override
89
+ * @protected
89
90
  * @param {sap.ui.layout.cssgrid.IGridConfigurable} oGrid The grid
90
91
  */
91
92
  ResponsiveColumnLayout.prototype.onGridAfterRendering = function (oGrid) {
@@ -107,7 +108,8 @@ sap.ui.define([
107
108
  * Resize handler for the ResponsiveColumnLayout.
108
109
  *
109
110
  * @param {object} oEvent - The event from a resize
110
- * @private
111
+ * @override
112
+ * @protected
111
113
  */
112
114
  ResponsiveColumnLayout.prototype.onGridResize = function (oEvent) {
113
115
  if (!oEvent || oEvent.size.width === 0) {
@@ -13,7 +13,7 @@ sap.ui.define([
13
13
  "use strict";
14
14
 
15
15
  function isChildOfFormElement(oElement) {
16
- return oElement.getParent().isA("sap.ui.layout.form.FormElement");
16
+ return oElement.getParent() && oElement.getParent().isA("sap.ui.layout.form.FormElement");
17
17
  }
18
18
 
19
19
  function fnIsLayoutSupported(oForm){
@@ -6,8 +6,12 @@
6
6
 
7
7
  // Provides the Design Time Metadata for the sap.ui.layout.form.SimpleForm control
8
8
  sap.ui.define([
9
+ "sap/m/Title",
10
+ "sap/ui/core/Title",
9
11
  "sap/ui/fl/Utils"
10
12
  ], function(
13
+ MTitle,
14
+ CoreTitle,
11
15
  FlexUtils
12
16
  ) {
13
17
  "use strict";
@@ -193,11 +197,13 @@ sap.ui.define([
193
197
  var aToolbarContent = oRemovedElement.getToolbar().getContent();
194
198
  if (aToolbarContent.length > 1) {
195
199
  bContent = true;
196
- } else if ((aToolbarContent.length === 1) &&
197
- (!aToolbarContent[0].getMetadata().isInstanceOf("sap.ui.core.Label") &&
198
- // eslint-disable-next-line no-unsafe-negation
199
- !aToolbarContent[0] instanceof sap.ui.core.Title && !aToolbarContent[0] instanceof sap.m.Title)) {
200
- bContent = true;
200
+ } else if (
201
+ aToolbarContent.length === 1
202
+ && !aToolbarContent[0].getMetadata().isInstanceOf("sap.ui.core.Label")
203
+ && !(aToolbarContent[0] instanceof CoreTitle)
204
+ && !(aToolbarContent[0] instanceof MTitle)
205
+ ) {
206
+ bContent = true;
201
207
  }
202
208
  }
203
209
  if (bContent) {
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.LayoutData
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.93.3
29
+ * @version 1.96.2
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.LayoutData
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.93.3
29
+ * @version 1.96.2
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -60,7 +60,7 @@ sap.ui.define([
60
60
  * This control cannot be used stand-alone, it just renders a <code>Form</code> control,
61
61
  * so it must be assigned to a <code>Form</code> control using the <code>layout</code> aggregation.
62
62
  * @extends sap.ui.layout.form.FormLayout
63
- * @version 1.93.3
63
+ * @version 1.96.2
64
64
  *
65
65
  * @constructor
66
66
  * @public
@@ -27,15 +27,16 @@ sap.ui.define([
27
27
 
28
28
  ColumnLayoutRenderer.renderContainers = function(oRm, oLayout, oForm){
29
29
 
30
- var iColumnsM = oLayout.getColumnsM();
31
- var iColumnsL = oLayout.getColumnsL();
32
- var iColumnsXL = oLayout.getColumnsXL();
33
30
  var aContainers = oForm.getVisibleFormContainers();
34
31
  var iContainers = aContainers.length;
35
32
 
36
33
  if (iContainers > 0) {
37
- // if more that one container render a DIV around containers
38
- if (iContainers > 1 || oLayout.getLayoutDataForElement(aContainers[0], "sap.ui.layout.form.ColumnContainerData")) {
34
+ var bOneContainerFullSize = iContainers === 1 && !oLayout.getLayoutDataForElement(aContainers[0], "sap.ui.layout.form.ColumnContainerData");
35
+ if (!bOneContainerFullSize) {
36
+ // if more that one container or one container is not full size render a DIV around containers
37
+ var iColumnsM = oLayout.getColumnsM();
38
+ var iColumnsL = oLayout.getColumnsL();
39
+ var iColumnsXL = oLayout.getColumnsXL();
39
40
  oRm.openStart("div");
40
41
  oRm.class("sapUiFormCLContent");
41
42
  oRm.class("sapUiFormCLColumnsM" + iColumnsM);
@@ -49,7 +50,7 @@ sap.ui.define([
49
50
  this.renderContainer(oRm, oLayout, oContainer);
50
51
  }
51
52
 
52
- if (iContainers > 1) {
53
+ if (!bOneContainerFullSize) {
53
54
  oRm.close("div");
54
55
  }
55
56
  }
@@ -44,7 +44,7 @@ sap.ui.define([
44
44
  * @extends sap.ui.core.Control
45
45
  *
46
46
  * @author SAP SE
47
- * @version 1.93.3
47
+ * @version 1.96.2
48
48
  *
49
49
  * @constructor
50
50
  * @public
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.ui.core.Element
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.93.3
31
+ * @version 1.96.2
32
32
  *
33
33
  * @constructor
34
34
  * @public
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.Element
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.93.3
29
+ * @version 1.96.2
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @extends sap.ui.core.Control
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.93.3
39
+ * @version 1.96.2
40
40
  *
41
41
  * @constructor
42
42
  * @public
@@ -901,7 +901,7 @@ sap.ui.define([
901
901
  FormLayout.prototype.getContainerRenderedDomRef = function(oContainer) {
902
902
 
903
903
  if (this.getDomRef()) {
904
- return (oContainer.getId() ? window.document.getElementById(oContainer.getId()) : null);
904
+ return oContainer.getDomRef();
905
905
  } else {
906
906
  return null;
907
907
  }
@@ -918,7 +918,7 @@ sap.ui.define([
918
918
  FormLayout.prototype.getElementRenderedDomRef = function(oElement) {
919
919
 
920
920
  if (this.getDomRef()) {
921
- return (oElement.getId() ? window.document.getElementById(oElement.getId()) : null);
921
+ return oElement.getDomRef();
922
922
  } else {
923
923
  return null;
924
924
  }
@@ -7,8 +7,9 @@
7
7
  sap.ui.define([
8
8
  'sap/ui/core/library',
9
9
  'sap/ui/layout/library',
10
- 'sap/ui/layout/form/Form'
11
- ], function(coreLibrary, library, Form) {
10
+ 'sap/ui/layout/form/Form',
11
+ 'sap/ui/core/IconPool' // as RenderManager.icon needs it
12
+ ], function(coreLibrary, library, Form, IconPool) {
12
13
  "use strict";
13
14
 
14
15
  // shortcut for sap.ui.core.TitleLevel
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.ui.core.LayoutData
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.93.3
25
+ * @version 1.96.2
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.ui.core.LayoutData
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.93.3
25
+ * @version 1.96.2
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -28,7 +28,7 @@ sap.ui.define(['sap/ui/layout/library', './FormLayout', './GridLayoutRenderer'],
28
28
  * @extends sap.ui.layout.form.FormLayout
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.93.3
31
+ * @version 1.96.2
32
32
  *
33
33
  * @constructor
34
34
  * @public
@@ -227,7 +227,7 @@ sap.ui.define(['sap/ui/layout/library', './FormLayout', './GridLayoutRenderer'],
227
227
  var oContainerData = this.getLayoutDataForElement(oContainer, "sap.ui.layout.form.GridContainerData");
228
228
 
229
229
  if ((bSingleColumn || !oContainerData || !oContainerData.getHalfGrid()) && !this.getRenderer().checkFullSizeElement(this, oElement) ) {
230
- return (oElement.getId() ? window.document.getElementById(oElement.getId()) : null);
230
+ return oElement.getDomRef();
231
231
  }
232
232
  }
233
233
 
@@ -53,7 +53,7 @@ sap.ui.define([
53
53
  *
54
54
  * This control cannot be used stand-alone, it just renders a <code>Form</code>, so it must be assigned to a <code>Form</code> using the <code>layout</code> aggregation.
55
55
  * @extends sap.ui.layout.form.FormLayout
56
- * @version 1.93.3
56
+ * @version 1.96.2
57
57
  *
58
58
  * @constructor
59
59
  * @public
@@ -50,7 +50,7 @@ sap.ui.define([
50
50
  * @extends sap.ui.layout.form.FormLayout
51
51
  *
52
52
  * @author SAP SE
53
- * @version 1.93.3
53
+ * @version 1.96.2
54
54
  *
55
55
  * @constructor
56
56
  * @public
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.ui.layout.form.FormElement
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.93.3
33
+ * @version 1.96.2
34
34
  *
35
35
  * @constructor
36
36
  * @public
@@ -67,7 +67,7 @@ sap.ui.define([
67
67
  * <b>Note:</b> If a more complex form is needed, use the <code>{@link sap.ui.layout.form.Form Form}</code> control instead.
68
68
  *
69
69
  * @extends sap.ui.core.Control
70
- * @version 1.93.3
70
+ * @version 1.96.2
71
71
  *
72
72
  * @constructor
73
73
  * @public
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @namespace
21
21
  * @name sap.ui.layout
22
22
  * @author SAP SE
23
- * @version 1.93.3
23
+ * @version 1.96.2
24
24
  * @since 1.15
25
25
  * @public
26
26
  */
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  // delegate further initialization of this library to the Core
29
29
  sap.ui.getCore().initLibrary({
30
30
  name : "sap.ui.layout",
31
- version: "1.93.3",
31
+ version: "1.96.2",
32
32
  dependencies: ["sap.ui.core"],
33
33
  designtime: "sap/ui/layout/designtime/library.designtime",
34
34
  types: [