@openui5/sap.ui.layout 1.105.1 → 1.107.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 (61) hide show
  1. package/.reuse/dep5 +20 -17
  2. package/THIRDPARTY.txt +31 -21
  3. package/package.json +2 -2
  4. package/src/sap/ui/layout/.library +1 -1
  5. package/src/sap/ui/layout/AlignedFlowLayout.js +4 -3
  6. package/src/sap/ui/layout/AssociativeSplitter.js +1 -1
  7. package/src/sap/ui/layout/BlockLayout.js +29 -26
  8. package/src/sap/ui/layout/BlockLayoutCell.js +4 -3
  9. package/src/sap/ui/layout/BlockLayoutCellData.js +1 -2
  10. package/src/sap/ui/layout/BlockLayoutRow.js +4 -3
  11. package/src/sap/ui/layout/DynamicSideContent.js +84 -80
  12. package/src/sap/ui/layout/DynamicSideContentRenderer.js +3 -3
  13. package/src/sap/ui/layout/FixFlex.js +9 -7
  14. package/src/sap/ui/layout/Grid.js +74 -71
  15. package/src/sap/ui/layout/GridData.js +1 -2
  16. package/src/sap/ui/layout/GridRenderer.js +1 -1
  17. package/src/sap/ui/layout/HorizontalLayout.js +22 -19
  18. package/src/sap/ui/layout/PaneContainer.js +1 -1
  19. package/src/sap/ui/layout/ResponsiveFlowLayout.js +35 -30
  20. package/src/sap/ui/layout/ResponsiveFlowLayoutData.js +1 -2
  21. package/src/sap/ui/layout/ResponsiveSplitter.js +1 -1
  22. package/src/sap/ui/layout/ResponsiveSplitterPage.js +1 -1
  23. package/src/sap/ui/layout/SplitPane.js +1 -1
  24. package/src/sap/ui/layout/Splitter.js +6 -5
  25. package/src/sap/ui/layout/SplitterLayoutData.js +1 -2
  26. package/src/sap/ui/layout/VerticalLayout.js +29 -26
  27. package/src/sap/ui/layout/changeHandler/AddFormContainer.js +1 -1
  28. package/src/sap/ui/layout/changeHandler/AddFormField.js +1 -1
  29. package/src/sap/ui/layout/changeHandler/AddSimpleFormField.js +10 -3
  30. package/src/sap/ui/layout/changeHandler/AddSimpleFormGroup.js +11 -5
  31. package/src/sap/ui/layout/changeHandler/HideSimpleForm.js +3 -2
  32. package/src/sap/ui/layout/changeHandler/MoveSimpleForm.js +14 -17
  33. package/src/sap/ui/layout/changeHandler/RenameFormContainer.js +1 -1
  34. package/src/sap/ui/layout/changeHandler/RenameSimpleForm.js +6 -4
  35. package/src/sap/ui/layout/changeHandler/UnhideSimpleForm.js +3 -2
  36. package/src/sap/ui/layout/cssgrid/CSSGrid.js +1 -2
  37. package/src/sap/ui/layout/cssgrid/GridBasicLayout.js +1 -2
  38. package/src/sap/ui/layout/cssgrid/GridBoxLayout.js +1 -2
  39. package/src/sap/ui/layout/cssgrid/GridItemLayoutData.js +1 -2
  40. package/src/sap/ui/layout/cssgrid/GridLayoutBase.js +1 -2
  41. package/src/sap/ui/layout/cssgrid/GridLayoutDelegate.js +1 -1
  42. package/src/sap/ui/layout/cssgrid/GridResponsiveLayout.js +1 -2
  43. package/src/sap/ui/layout/cssgrid/GridSettings.js +1 -2
  44. package/src/sap/ui/layout/cssgrid/ResponsiveColumnItemLayoutData.js +1 -2
  45. package/src/sap/ui/layout/cssgrid/ResponsiveColumnLayout.js +1 -2
  46. package/src/sap/ui/layout/form/ColumnContainerData.js +1 -2
  47. package/src/sap/ui/layout/form/ColumnElementData.js +1 -2
  48. package/src/sap/ui/layout/form/ColumnLayout.js +41 -38
  49. package/src/sap/ui/layout/form/Form.js +78 -75
  50. package/src/sap/ui/layout/form/FormContainer.js +1 -2
  51. package/src/sap/ui/layout/form/FormElement.js +1 -3
  52. package/src/sap/ui/layout/form/FormLayout.js +22 -18
  53. package/src/sap/ui/layout/form/GridContainerData.js +1 -2
  54. package/src/sap/ui/layout/form/GridElementData.js +1 -2
  55. package/src/sap/ui/layout/form/GridLayout.js +19 -16
  56. package/src/sap/ui/layout/form/ResponsiveGridLayout.js +138 -135
  57. package/src/sap/ui/layout/form/ResponsiveLayout.js +15 -12
  58. package/src/sap/ui/layout/form/SemanticFormElement.js +1 -2
  59. package/src/sap/ui/layout/form/SimpleForm.js +437 -404
  60. package/src/sap/ui/layout/library.js +2 -25
  61. package/src/sap/ui/layout/rules/Form.support.js +32 -32
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * Change handler for adding a simple form group.
18
18
  * @alias sap.ui.layout.changeHandler.AddSimpleFormGroup
19
19
  * @author SAP SE
20
- * @version 1.105.1
20
+ * @version 1.107.0
21
21
  * @experimental Since 1.27.0
22
22
  */
23
23
  var AddSimpleFormGroup = {};
@@ -190,8 +190,8 @@ sap.ui.define([
190
190
  AddSimpleFormGroup.getControlIdFromChangeContent = function (oChange) {
191
191
  var sControlId;
192
192
 
193
- if (oChange && oChange._oDefinition) {
194
- sControlId = oChange._oDefinition.content.group.id;
193
+ if (oChange && oChange.getContent()) {
194
+ sControlId = oChange.getContent().group.id;
195
195
  }
196
196
 
197
197
  return sControlId;
@@ -229,11 +229,17 @@ sap.ui.define([
229
229
 
230
230
  AddSimpleFormGroup.getChangeVisualizationInfo = function(oChange, oAppComponent) {
231
231
  var oSelector = oChange.getContent().group.selector;
232
- var oAffectedGroup = JsControlTreeModifier.bySelector(oSelector, oAppComponent).getParent().getId();
232
+ var oAffectedGroup = JsControlTreeModifier.bySelector(oSelector, oAppComponent).getId();
233
+
233
234
  return {
234
- affectedControls: [oAffectedGroup]
235
+ affectedControls: [oAffectedGroup],
236
+ updateRequired: true
235
237
  };
236
238
  };
237
239
 
240
+ AddSimpleFormGroup.getCondenserInfo = function() {
241
+ return undefined;
242
+ };
243
+
238
244
  return AddSimpleFormGroup;
239
245
  }, /* bExport= */true);
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * Change handler for hiding of a control.
18
18
  * @alias sap.ui.fl.changeHandler.HideControl
19
19
  * @author SAP SE
20
- * @version 1.105.1
20
+ * @version 1.107.0
21
21
  * @experimental Since 1.27.0
22
22
  */
23
23
  var HideForm = { };
@@ -277,7 +277,8 @@ sap.ui.define([
277
277
  : oElement.getParent().getParent().getId();
278
278
  return {
279
279
  affectedControls: [oSelector],
280
- displayControls: [oDisplaySelector]
280
+ displayControls: [oDisplaySelector],
281
+ updateRequired: true
281
282
  };
282
283
  };
283
284
 
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  *
21
21
  * @alias sap.ui.layout.changeHandler.MoveSimpleForm
22
22
  * @author SAP SE
23
- * @version 1.105.1
23
+ * @version 1.107.0
24
24
  * @experimental Since 1.34.0
25
25
  */
26
26
  var MoveSimpleForm = {};
@@ -168,12 +168,8 @@ sap.ui.define([
168
168
  return aResult;
169
169
  }
170
170
 
171
- function getGroupHeader(oHeader) {
172
- var oResult = oHeader.getTitle();
173
- if (!oResult) {
174
- oResult = oHeader.getToolbar();
175
- }
176
- return oResult;
171
+ function getGroupHeader(oElement) {
172
+ return oElement.getTitle() || oElement.getToolbar();
177
173
  }
178
174
 
179
175
  function moveFormContainer(oSimpleForm, mMovedElement, mPropertyBag) {
@@ -465,18 +461,18 @@ sap.ui.define([
465
461
  };
466
462
 
467
463
  MoveSimpleForm.getChangeVisualizationInfo = function(oChange, oAppComponent) {
468
- var oSourceParentContainer;
469
- var oTargetParentContainer;
464
+ var oSourceContainer;
465
+ var oTargetContainer;
470
466
  var oMovedElement = oChange.getContent().movedElements[0];
471
467
  var oGroupSelector = oMovedElement.source.groupSelector;
472
468
  var oAffectedControlSelector = JsControlTreeModifier.bySelector(oMovedElement.elementSelector, oAppComponent).getParent().getId();
473
469
  if (oChange.getChangeType() === MoveSimpleForm.CHANGE_TYPE_MOVE_FIELD) {
474
- var oSourceParentTitleElement = JsControlTreeModifier.bySelector(oMovedElement.source.groupSelector, oAppComponent);
475
- var oTargetParentTitleElement = JsControlTreeModifier.bySelector(oMovedElement.target.groupSelector, oAppComponent);
476
- oSourceParentContainer = oSourceParentTitleElement ? oSourceParentTitleElement.getParent().getId() : null;
477
- oTargetParentContainer = oTargetParentTitleElement ? oTargetParentTitleElement.getParent().getId() : null;
470
+ var oSourceTitleElement = JsControlTreeModifier.bySelector(oMovedElement.source.groupSelector, oAppComponent);
471
+ var oTargetTitleElement = JsControlTreeModifier.bySelector(oMovedElement.target.groupSelector, oAppComponent);
472
+ oSourceContainer = oSourceTitleElement ? oSourceTitleElement.getParent().getId() : null;
473
+ oTargetContainer = oTargetTitleElement ? oTargetTitleElement.getParent().getId() : null;
478
474
  oGroupSelector = {
479
- id: oSourceParentContainer
475
+ id: oSourceContainer
480
476
  };
481
477
  }
482
478
  return {
@@ -486,9 +482,10 @@ sap.ui.define([
486
482
  ? oGroupSelector
487
483
  : oChange.getContent().targetSelector
488
484
  ],
489
- payload: {
490
- sourceParentContainer: oSourceParentContainer,
491
- targetParentContainer: oTargetParentContainer
485
+ updateRequired: true,
486
+ descriptionPayload: {
487
+ sourceContainer: oSourceContainer,
488
+ targetContainer: oTargetContainer
492
489
  }
493
490
  };
494
491
  };
@@ -14,7 +14,7 @@ sap.ui.define([
14
14
  *
15
15
  * @alias sap.ui.layout.changeHandler.RenameFormContainer
16
16
  * @author SAP SE
17
- * @version 1.105.1
17
+ * @version 1.107.0
18
18
  * @since 1.48
19
19
  * @private
20
20
  * @experimental Since 1.48. This class is experimental and provides only limited functionality. Also the API might be changed in future.
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  *
19
19
  * @alias sap.ui.layout.changeHandler.RenameForm
20
20
  * @author SAP SE
21
- * @version 1.105.1
21
+ * @version 1.107.0
22
22
  * @since 1.40
23
23
  * @private
24
24
  * @experimental Since 1.40. This class is experimental and provides only limited functionality. Also the API might be changed in future.
@@ -135,10 +135,12 @@ sap.ui.define([
135
135
 
136
136
  RenameForm.getChangeVisualizationInfo = function(oChange, oAppComponent) {
137
137
  var oElementSelector = oChange.getContent().elementSelector;
138
- var oAffectedControlSelector = JsControlTreeModifier.bySelector(oElementSelector, oAppComponent).getParent().getId();
138
+ var sAffectedControlId = JsControlTreeModifier.bySelector(oElementSelector, oAppComponent).getParent().getId();
139
+
139
140
  return {
140
- affectedControls: [oAffectedControlSelector],
141
- payload: {
141
+ affectedControls: [sAffectedControlId],
142
+ updateRequired: true,
143
+ descriptionPayload: {
142
144
  originalLabel: oChange.getRevertData(),
143
145
  newLabel: oChange.getTexts().formText.value
144
146
  }
@@ -13,7 +13,7 @@ sap.ui.define([
13
13
  * Change handler for hiding of a control.
14
14
  * @alias sap.ui.fl.changeHandler.HideControl
15
15
  * @author SAP SE
16
- * @version 1.105.1
16
+ * @version 1.107.0
17
17
  * @experimental Since 1.27.0
18
18
  */
19
19
  var UnhideForm = { };
@@ -157,7 +157,8 @@ sap.ui.define([
157
157
 
158
158
  UnhideForm.getChangeVisualizationInfo = function(oChange, oAppComponent) {
159
159
  return {
160
- affectedControls: [JsControlTreeModifier.bySelector(oChange.getContent().elementSelector, oAppComponent).getParent().getId()]
160
+ affectedControls: [JsControlTreeModifier.bySelector(oChange.getContent().elementSelector, oAppComponent).getParent().getId()],
161
+ updateRequired: true
161
162
  };
162
163
  };
163
164
 
@@ -96,7 +96,7 @@ sap.ui.define([
96
96
  * @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout MDN web docs: CSS Grid Layout}
97
97
  *
98
98
  * @author SAP SE
99
- * @version 1.105.1
99
+ * @version 1.107.0
100
100
  *
101
101
  * @extends sap.ui.core.Control
102
102
  * @implements sap.ui.layout.cssgrid.IGridConfigurable
@@ -105,7 +105,6 @@ sap.ui.define([
105
105
  * @constructor
106
106
  * @public
107
107
  * @alias sap.ui.layout.cssgrid.CSSGrid
108
- * @ui5-metamodel This control/element will also be described in the UI5 (legacy) designtime metamodel
109
108
  */
110
109
  var CSSGrid = Control.extend("sap.ui.layout.cssgrid.CSSGrid", {
111
110
  metadata: {
@@ -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.105.1
24
+ * @version 1.107.0
25
25
  *
26
26
  * @extends sap.ui.layout.cssgrid.GridLayoutBase
27
27
  *
@@ -29,7 +29,6 @@ sap.ui.define([
29
29
  * @constructor
30
30
  * @public
31
31
  * @alias sap.ui.layout.cssgrid.GridBasicLayout
32
- * @ui5-metamodel This simple type will also be described in the UI5 (legacy) designtime metamodel
33
32
  */
34
33
  var GridBasicLayout = GridLayoutBase.extend("sap.ui.layout.cssgrid.GridBasicLayout", {
35
34
  metadata: {
@@ -48,7 +48,7 @@ sap.ui.define([
48
48
  * Applies a sap.ui.layout.cssgrid.GridSettings to a provided DOM element or Control.
49
49
  *
50
50
  * @author SAP SE
51
- * @version 1.105.1
51
+ * @version 1.107.0
52
52
  *
53
53
  * @extends sap.ui.layout.cssgrid.GridLayoutBase
54
54
  *
@@ -56,7 +56,6 @@ sap.ui.define([
56
56
  * @constructor
57
57
  * @public
58
58
  * @alias sap.ui.layout.cssgrid.GridBoxLayout
59
- * @ui5-metamodel This simple type will also be described in the UI5 (legacy) designtime metamodel
60
59
  */
61
60
  var GridBoxLayout = GridLayoutBase.extend("sap.ui.layout.cssgrid.GridBoxLayout", {
62
61
  metadata: {
@@ -29,12 +29,11 @@ sap.ui.define([
29
29
  * Holds layout data for a grid item.
30
30
  *
31
31
  * @extends sap.ui.core.LayoutData
32
- * @version 1.105.1
32
+ * @version 1.107.0
33
33
  *
34
34
  * @constructor
35
35
  * @public
36
36
  * @alias sap.ui.layout.cssgrid.GridItemLayoutData
37
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
38
37
  */
39
38
  var GridItemLayoutData = LayoutData.extend("sap.ui.layout.cssgrid.GridItemLayoutData", { metadata: {
40
39
  library: "sap.ui.layout",
@@ -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.105.1
39
+ * @version 1.107.0
40
40
  *
41
41
  * @extends sap.ui.base.ManagedObject
42
42
  *
@@ -45,7 +45,6 @@ sap.ui.define([
45
45
  * @constructor
46
46
  * @public
47
47
  * @alias sap.ui.layout.cssgrid.GridLayoutBase
48
- * @ui5-metamodel This simple type will also be described in the UI5 (legacy) designtime metamodel
49
48
  */
50
49
  var GridLayoutBase = ManagedObject.extend("sap.ui.layout.cssgrid.GridLayoutBase", {
51
50
  metadata: {
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  *
21
21
  * @extends sap.ui.base.Object
22
22
  *
23
- * @version 1.105.1
23
+ * @version 1.107.0
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.105.1
24
+ * @version 1.107.0
25
25
  *
26
26
  * @extends sap.ui.layout.cssgrid.GridLayoutBase
27
27
  *
@@ -29,7 +29,6 @@ sap.ui.define([
29
29
  * @constructor
30
30
  * @public
31
31
  * @alias sap.ui.layout.cssgrid.GridResponsiveLayout
32
- * @ui5-metamodel This simple type will also be described in the UI5 (legacy) designtime metamodel
33
32
  */
34
33
  var GridResponsiveLayout = GridLayoutBase.extend("sap.ui.layout.cssgrid.GridResponsiveLayout", {
35
34
  metadata: {
@@ -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.105.1
23
+ * @version 1.107.0
24
24
  *
25
25
  * @extends sap.ui.base.ManagedObject
26
26
  *
@@ -28,7 +28,6 @@ sap.ui.define([
28
28
  * @constructor
29
29
  * @public
30
30
  * @alias sap.ui.layout.cssgrid.GridSettings
31
- * @ui5-metamodel This simple type will also be described in the UI5 (legacy) designtime metamodel
32
31
  */
33
32
  var GridSettings = ManagedObject.extend("sap.ui.layout.cssgrid.GridSettings", {
34
33
  metadata: {
@@ -20,13 +20,12 @@ 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.105.1
23
+ * @version 1.107.0
24
24
  *
25
25
  * @since 1.72
26
26
  * @constructor
27
27
  * @public
28
28
  * @alias sap.ui.layout.cssgrid.ResponsiveColumnItemLayoutData
29
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
30
29
  */
31
30
  var ResponsiveColumnItemLayoutData = LayoutData.extend("sap.ui.layout.cssgrid.ResponsiveColumnItemLayoutData", { metadata: {
32
31
  library: "sap.ui.layout",
@@ -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.105.1
36
+ * @version 1.107.0
37
37
  *
38
38
  * @extends sap.ui.layout.cssgrid.GridLayoutBase
39
39
  *
@@ -41,7 +41,6 @@ sap.ui.define([
41
41
  * @constructor
42
42
  * @public
43
43
  * @alias sap.ui.layout.cssgrid.ResponsiveColumnLayout
44
- * @ui5-metamodel This simple type will also be described in the UI5 (legacy) designtime metamodel
45
44
  */
46
45
  var ResponsiveColumnLayout = GridLayoutBase.extend("sap.ui.layout.cssgrid.ResponsiveColumnLayout", {
47
46
  metadata: {
@@ -26,13 +26,12 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.LayoutData
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.105.1
29
+ * @version 1.107.0
30
30
  *
31
31
  * @constructor
32
32
  * @public
33
33
  * @since 1.56.0
34
34
  * @alias sap.ui.layout.form.ColumnContainerData
35
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
36
35
  */
37
36
  var ColumnContainerData = LayoutData.extend("sap.ui.layout.form.ColumnContainerData", /** @lends sap.ui.layout.form.ColumnContainerData.prototype */ { metadata : {
38
37
 
@@ -26,13 +26,12 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.LayoutData
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.105.1
29
+ * @version 1.107.0
30
30
  *
31
31
  * @constructor
32
32
  * @public
33
33
  * @since 1.56.0
34
34
  * @alias sap.ui.layout.form.ColumnElementData
35
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
36
35
  */
37
36
  var ColumnElementData = LayoutData.extend("sap.ui.layout.form.ColumnElementData", /** @lends sap.ui.layout.form.ColumnElementData.prototype */ { metadata : {
38
37
 
@@ -60,50 +60,53 @@ 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.105.1
63
+ * @version 1.107.0
64
64
  *
65
65
  * @constructor
66
66
  * @public
67
67
  * @since 1.56.0
68
68
  * @alias sap.ui.layout.form.ColumnLayout
69
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
70
69
  */
71
- var ColumnLayout = FormLayout.extend("sap.ui.layout.form.ColumnLayout", /** @lends sap.ui.layout.form.ColumnLayout.prototype */ { metadata : {
72
-
73
- library : "sap.ui.layout",
74
- properties : {
75
-
76
- /**
77
- * Number of columns for extra-large size.
78
- *
79
- * The number of columns for extra-large size must not be smaller than the number of columns for large size.
80
- */
81
- columnsXL : {type : "sap.ui.layout.form.ColumnsXL", group : "Appearance", defaultValue : 2},
82
-
83
- /**
84
- * Number of columns for large size.
85
- *
86
- * The number of columns for large size must not be smaller than the number of columns for medium size.
87
- */
88
- columnsL : {type : "sap.ui.layout.form.ColumnsL", group : "Appearance", defaultValue : 2},
89
-
90
- /**
91
- * Number of columns for medium size.
92
- */
93
- columnsM : {type : "sap.ui.layout.form.ColumnsM", group : "Appearance", defaultValue : 1},
94
-
95
- /**
96
- * Defines how many cells a label uses if the column is large.
97
- */
98
- labelCellsLarge : {type : "sap.ui.layout.form.ColumnCells", group : "Appearance", defaultValue : 4},
99
-
100
- /**
101
- * Defines how many cells are empty at the end of a row.
102
- * This could be used to keep the fields small on large screens.
103
- */
104
- emptyCellsLarge : {type : "sap.ui.layout.form.EmptyCells", group : "Appearance", defaultValue : 0}
105
- }
106
- }});
70
+ var ColumnLayout = FormLayout.extend("sap.ui.layout.form.ColumnLayout", /** @lends sap.ui.layout.form.ColumnLayout.prototype */ {
71
+ metadata : {
72
+
73
+ library : "sap.ui.layout",
74
+ properties : {
75
+
76
+ /**
77
+ * Number of columns for extra-large size.
78
+ *
79
+ * The number of columns for extra-large size must not be smaller than the number of columns for large size.
80
+ */
81
+ columnsXL : {type : "sap.ui.layout.form.ColumnsXL", group : "Appearance", defaultValue : 2},
82
+
83
+ /**
84
+ * Number of columns for large size.
85
+ *
86
+ * The number of columns for large size must not be smaller than the number of columns for medium size.
87
+ */
88
+ columnsL : {type : "sap.ui.layout.form.ColumnsL", group : "Appearance", defaultValue : 2},
89
+
90
+ /**
91
+ * Number of columns for medium size.
92
+ */
93
+ columnsM : {type : "sap.ui.layout.form.ColumnsM", group : "Appearance", defaultValue : 1},
94
+
95
+ /**
96
+ * Defines how many cells a label uses if the column is large.
97
+ */
98
+ labelCellsLarge : {type : "sap.ui.layout.form.ColumnCells", group : "Appearance", defaultValue : 4},
99
+
100
+ /**
101
+ * Defines how many cells are empty at the end of a row.
102
+ * This could be used to keep the fields small on large screens.
103
+ */
104
+ emptyCellsLarge : {type : "sap.ui.layout.form.EmptyCells", group : "Appearance", defaultValue : 0}
105
+ }
106
+ },
107
+
108
+ renderer: ColumnLayoutRenderer
109
+ });
107
110
 
108
111
  /* eslint-disable no-lonely-if */
109
112
 
@@ -44,89 +44,92 @@ sap.ui.define([
44
44
  * @extends sap.ui.core.Control
45
45
  *
46
46
  * @author SAP SE
47
- * @version 1.105.1
47
+ * @version 1.107.0
48
48
  *
49
49
  * @constructor
50
50
  * @public
51
51
  * @since 1.16.0
52
52
  * @alias sap.ui.layout.form.Form
53
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
54
53
  */
55
- var Form = Control.extend("sap.ui.layout.form.Form", /** @lends sap.ui.layout.form.Form.prototype */ { metadata : {
56
-
57
- library : "sap.ui.layout",
58
- properties : {
59
-
60
- /**
61
- * Width of the <code>Form</code>.
62
- */
63
- width : {type : "sap.ui.core.CSSSize", group : "Dimension", defaultValue : null},
64
-
65
- /**
66
- * Applies a device-specific and theme-specific line height and label alignment to the form rows if the form has editable content.
67
- * If set, all (not only the editable) rows of the form will get the line height of editable fields.
68
- *
69
- * The labels inside the form will be rendered by default in the according mode.
70
- *
71
- * <b>Note:</b> The setting of this property does not change the content of the form.
72
- * For example, <code>Input</code> controls in a form with <code>editable</code> set to false are still editable.
73
- *
74
- * <b>Warning:</b> If this property is wrongly set, this might lead to visual issues.
75
- * The labels and fields might be misaligned, the labels might be rendered in the wrong mode,
76
- * and the spacing between the single controls might be wrong.
77
- * Also, controls that do not fit the mode might be rendered incorrectly.
78
- * @since 1.20.0
79
- */
80
- editable : {type : "boolean", group : "Misc", defaultValue : false}
54
+ var Form = Control.extend("sap.ui.layout.form.Form", /** @lends sap.ui.layout.form.Form.prototype */ {
55
+ metadata : {
56
+
57
+ library : "sap.ui.layout",
58
+ properties : {
59
+
60
+ /**
61
+ * Width of the <code>Form</code>.
62
+ */
63
+ width : {type : "sap.ui.core.CSSSize", group : "Dimension", defaultValue : null},
64
+
65
+ /**
66
+ * Applies a device-specific and theme-specific line height and label alignment to the form rows if the form has editable content.
67
+ * If set, all (not only the editable) rows of the form will get the line height of editable fields.
68
+ *
69
+ * The labels inside the form will be rendered by default in the according mode.
70
+ *
71
+ * <b>Note:</b> The setting of this property does not change the content of the form.
72
+ * For example, <code>Input</code> controls in a form with <code>editable</code> set to false are still editable.
73
+ *
74
+ * <b>Warning:</b> If this property is wrongly set, this might lead to visual issues.
75
+ * The labels and fields might be misaligned, the labels might be rendered in the wrong mode,
76
+ * and the spacing between the single controls might be wrong.
77
+ * Also, controls that do not fit the mode might be rendered incorrectly.
78
+ * @since 1.20.0
79
+ */
80
+ editable : {type : "boolean", group : "Misc", defaultValue : false}
81
+ },
82
+ defaultAggregation : "formContainers",
83
+ aggregations : {
84
+
85
+ /**
86
+ * Containers with the content of the form. A <code>FormContainer</code> represents a group inside the <code>Form</code>.
87
+ */
88
+ formContainers : {type : "sap.ui.layout.form.FormContainer", multiple : true, singularName : "formContainer"},
89
+
90
+ /**
91
+ * Title of the <code>Form</code>. Can either be a <code>Title</code> element or a string.
92
+ * If a <code>Title</code> element it used, the style of the title can be set.
93
+ *
94
+ * <b>Note:</b> If a <code>Toolbar</code> is used, the <code>Title</code> is ignored.
95
+ *
96
+ * <b>Note:</b> If the title is provided as a string, the title is rendered with a theme-dependent default level.
97
+ * As the <code>Form</code> control cannot know the structure of the page, this might not fit the page structure.
98
+ * In this case provide the title using a <code>Title</code> element and set its {@link sap.ui.core.Title#setLevel level} to the needed value.
99
+ */
100
+ title : {type : "sap.ui.core.Title", altTypes : ["string"], multiple : false},
101
+
102
+ /**
103
+ * Toolbar of the <code>Form</code>.
104
+ *
105
+ * <b>Note:</b> If a <code>Toolbar</code> is used, the <code>Title</code> is ignored.
106
+ * If a title is needed inside the <code>Toolbar</code> it must be added at content to the <code>Toolbar</code>.
107
+ * In this case add the <code>Title</code> to the <code>ariaLabelledBy</code> association.
108
+ * Use the right title level to meet the visual requirements. This might be theme-dependent.
109
+ * @since 1.36.0
110
+ */
111
+ toolbar : {type : "sap.ui.core.Toolbar", multiple : false},
112
+
113
+ /**
114
+ * Layout of the <code>Form</code>. The assigned <code>Layout</code> renders the <code>Form</code>.
115
+ * We recommend using the {@link sap.ui.layout.form.ColumnLayout ColumnLayout} for rendering a <code>Form</code>,
116
+ * as its responsiveness allows the available space to be used in the best way possible.
117
+ */
118
+ layout : {type : "sap.ui.layout.form.FormLayout", multiple : false}
119
+ },
120
+ associations: {
121
+
122
+ /**
123
+ * Association to controls / IDs that label this control (see WAI-ARIA attribute <code>aria-labelledby</code>).
124
+ * @since 1.28.0
125
+ */
126
+ ariaLabelledBy: { type: "sap.ui.core.Control", multiple: true, singularName: "ariaLabelledBy" }
127
+ },
128
+ designtime: "sap/ui/layout/designtime/form/Form.designtime"
81
129
  },
82
- defaultAggregation : "formContainers",
83
- aggregations : {
84
-
85
- /**
86
- * Containers with the content of the form. A <code>FormContainer</code> represents a group inside the <code>Form</code>.
87
- */
88
- formContainers : {type : "sap.ui.layout.form.FormContainer", multiple : true, singularName : "formContainer"},
89
-
90
- /**
91
- * Title of the <code>Form</code>. Can either be a <code>Title</code> element or a string.
92
- * If a <code>Title</code> element it used, the style of the title can be set.
93
- *
94
- * <b>Note:</b> If a <code>Toolbar</code> is used, the <code>Title</code> is ignored.
95
- *
96
- * <b>Note:</b> If the title is provided as a string, the title is rendered with a theme-dependent default level.
97
- * As the <code>Form</code> control cannot know the structure of the page, this might not fit the page structure.
98
- * In this case provide the title using a <code>Title</code> element and set its {@link sap.ui.core.Title#setLevel level} to the needed value.
99
- */
100
- title : {type : "sap.ui.core.Title", altTypes : ["string"], multiple : false},
101
-
102
- /**
103
- * Toolbar of the <code>Form</code>.
104
- *
105
- * <b>Note:</b> If a <code>Toolbar</code> is used, the <code>Title</code> is ignored.
106
- * If a title is needed inside the <code>Toolbar</code> it must be added at content to the <code>Toolbar</code>.
107
- * In this case add the <code>Title</code> to the <code>ariaLabelledBy</code> association.
108
- * Use the right title level to meet the visual requirements. This might be theme-dependent.
109
- * @since 1.36.0
110
- */
111
- toolbar : {type : "sap.ui.core.Toolbar", multiple : false},
112
-
113
- /**
114
- * Layout of the <code>Form</code>. The assigned <code>Layout</code> renders the <code>Form</code>.
115
- * We recommend using the {@link sap.ui.layout.form.ColumnLayout ColumnLayout} for rendering a <code>Form</code>,
116
- * as its responsiveness allows the available space to be used in the best way possible.
117
- */
118
- layout : {type : "sap.ui.layout.form.FormLayout", multiple : false}
119
- },
120
- associations: {
121
130
 
122
- /**
123
- * Association to controls / IDs that label this control (see WAI-ARIA attribute <code>aria-labelledby</code>).
124
- * @since 1.28.0
125
- */
126
- ariaLabelledBy: { type: "sap.ui.core.Control", multiple: true, singularName: "ariaLabelledBy" }
127
- },
128
- designtime: "sap/ui/layout/designtime/form/Form.designtime"
129
- }});
131
+ renderer: FormRenderer
132
+ });
130
133
 
131
134
  Form.prototype.init = function(){
132
135
 
@@ -28,13 +28,12 @@ sap.ui.define([
28
28
  * @extends sap.ui.core.Element
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.105.1
31
+ * @version 1.107.0
32
32
  *
33
33
  * @constructor
34
34
  * @public
35
35
  * @since 1.16.0
36
36
  * @alias sap.ui.layout.form.FormContainer
37
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
38
37
  */
39
38
  var FormContainer = Element.extend("sap.ui.layout.form.FormContainer", /** @lends sap.ui.layout.form.FormContainer.prototype */ { metadata : {
40
39