@openui5/sap.ui.layout 1.142.1 → 1.143.1
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.
- package/package.json +2 -2
- package/src/sap/ui/layout/.library +1 -1
- package/src/sap/ui/layout/AlignedFlowLayout.js +1 -1
- package/src/sap/ui/layout/AssociativeSplitter.js +1 -1
- package/src/sap/ui/layout/BlockLayout.js +1 -1
- package/src/sap/ui/layout/BlockLayoutCell.js +1 -1
- package/src/sap/ui/layout/BlockLayoutCellData.js +1 -1
- package/src/sap/ui/layout/BlockLayoutRow.js +1 -1
- package/src/sap/ui/layout/DynamicSideContent.js +1 -1
- package/src/sap/ui/layout/FixFlex.js +1 -1
- package/src/sap/ui/layout/Grid.js +1 -1
- package/src/sap/ui/layout/GridData.js +1 -1
- package/src/sap/ui/layout/GridRenderer.js +1 -1
- package/src/sap/ui/layout/HorizontalLayout.js +1 -1
- package/src/sap/ui/layout/PaneContainer.js +1 -1
- package/src/sap/ui/layout/ResponsiveFlowLayout.js +1 -1
- package/src/sap/ui/layout/ResponsiveFlowLayoutData.js +1 -1
- package/src/sap/ui/layout/ResponsiveSplitter.js +1 -1
- package/src/sap/ui/layout/ResponsiveSplitterPage.js +1 -1
- package/src/sap/ui/layout/SplitPane.js +1 -1
- package/src/sap/ui/layout/Splitter.js +1 -1
- package/src/sap/ui/layout/SplitterLayoutData.js +1 -1
- package/src/sap/ui/layout/VerticalLayout.js +1 -1
- package/src/sap/ui/layout/changeHandler/AddFormContainer.js +1 -1
- package/src/sap/ui/layout/changeHandler/AddFormField.js +1 -1
- package/src/sap/ui/layout/changeHandler/AddSimpleFormField.js +1 -1
- package/src/sap/ui/layout/changeHandler/AddSimpleFormGroup.js +1 -1
- package/src/sap/ui/layout/changeHandler/HideSimpleForm.js +1 -1
- package/src/sap/ui/layout/changeHandler/MoveSimpleForm.js +1 -1
- package/src/sap/ui/layout/changeHandler/RenameFormContainer.js +1 -1
- package/src/sap/ui/layout/changeHandler/RenameSimpleForm.js +1 -1
- package/src/sap/ui/layout/changeHandler/UnhideSimpleForm.js +1 -1
- package/src/sap/ui/layout/cssgrid/CSSGrid.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridBasicLayout.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridBoxLayout.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridItemLayoutData.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridLayoutBase.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridLayoutDelegate.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridResponsiveLayout.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridSettings.js +1 -1
- package/src/sap/ui/layout/cssgrid/ResponsiveColumnItemLayoutData.js +1 -1
- package/src/sap/ui/layout/cssgrid/ResponsiveColumnLayout.js +1 -1
- package/src/sap/ui/layout/designtime/form/FormContainer.designtime.js +3 -0
- package/src/sap/ui/layout/form/ColumnContainerData.js +8 -8
- package/src/sap/ui/layout/form/ColumnElementData.js +7 -7
- package/src/sap/ui/layout/form/ColumnLayout.js +3 -3
- package/src/sap/ui/layout/form/Form.js +1 -1
- package/src/sap/ui/layout/form/FormContainer.js +1 -1
- package/src/sap/ui/layout/form/FormElement.js +1 -1
- package/src/sap/ui/layout/form/FormLayout.js +1 -1
- package/src/sap/ui/layout/form/GridContainerData.js +1 -1
- package/src/sap/ui/layout/form/GridElementData.js +1 -1
- package/src/sap/ui/layout/form/GridLayout.js +1 -1
- package/src/sap/ui/layout/form/ResponsiveGridLayout.js +1 -1
- package/src/sap/ui/layout/form/ResponsiveLayout.js +1 -1
- package/src/sap/ui/layout/form/SemanticFormElement.js +1 -1
- package/src/sap/ui/layout/form/SimpleForm.js +124 -24
- package/src/sap/ui/layout/library.js +10 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.layout",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.143.1",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.layout",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
"url": "https://github.com/UI5/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.ui.core": "1.
|
|
17
|
+
"@openui5/sap.ui.core": "1.143.1"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.143.1</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with layout controls.</documentation>
|
|
12
12
|
|
|
@@ -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.
|
|
99
|
+
* @version 1.143.1
|
|
100
100
|
*
|
|
101
101
|
* @extends sap.ui.core.Control
|
|
102
102
|
* @implements sap.ui.layout.cssgrid.IGridConfigurable
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* Have to possibility to hold multiple sap.ui.layout.cssgrid.GridSettings and apply the currently active GridSettings.
|
|
23
23
|
*
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.143.1
|
|
26
26
|
*
|
|
27
27
|
* @extends sap.ui.layout.cssgrid.GridLayoutBase
|
|
28
28
|
*
|
|
@@ -18,15 +18,15 @@ sap.ui.define([
|
|
|
18
18
|
* @param {object} [mSettings] Initial settings for the new control
|
|
19
19
|
*
|
|
20
20
|
* @class
|
|
21
|
-
* The
|
|
21
|
+
* The {@link sap.ui.layout.form.ColumnLayout ColumnLayout}-specific layout data for the {@link sap.ui.layout.form.FormContainer FormContainer} element.
|
|
22
22
|
*
|
|
23
|
-
* Depending on its size, the
|
|
24
|
-
* by the
|
|
25
|
-
* Using <code>ColumnContainerData</code>, the size of the
|
|
23
|
+
* Depending on its size, the {@link sap.ui.layout.form.Form Form} control is divided into 1, 2, 3 or 4 columns
|
|
24
|
+
* by the {@link sap.ui.layout.form.ColumnLayout ColumnLayout} control.
|
|
25
|
+
* Using <code>ColumnContainerData</code>, the size of the {@link sap.ui.layout.form.FormContainer FormContainer} element can be influenced.
|
|
26
26
|
* @extends sap.ui.core.LayoutData
|
|
27
27
|
*
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.143.1
|
|
30
30
|
*
|
|
31
31
|
* @constructor
|
|
32
32
|
* @public
|
|
@@ -39,21 +39,21 @@ sap.ui.define([
|
|
|
39
39
|
properties : {
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* Number of columns the
|
|
42
|
+
* Number of columns the {@link sap.ui.layout.form.FormContainer FormContainer} element uses if the {@link sap.ui.layout.form.Form Form} control has extra-large size.
|
|
43
43
|
*
|
|
44
44
|
* The number of columns for extra-large size must not be smaller than the number of columns for large size.
|
|
45
45
|
*/
|
|
46
46
|
columnsXL : {type : "sap.ui.layout.form.ColumnsXL", group : "Appearance", defaultValue : 2},
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Number of columns the
|
|
49
|
+
* Number of columns the {@link sap.ui.layout.form.FormContainer FormContainer} element uses if the {@link sap.ui.layout.form.Form Form} control has large size.
|
|
50
50
|
*
|
|
51
51
|
* The number of columns for large size must not be smaller than the number of columns for medium size.
|
|
52
52
|
*/
|
|
53
53
|
columnsL : {type : "sap.ui.layout.form.ColumnsL", group : "Appearance", defaultValue : 2},
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* Number of columns the
|
|
56
|
+
* Number of columns the {@link sap.ui.layout.form.FormContainer FormContainer} element uses if the {@link sap.ui.layout.form.Form Form} control has medium size.
|
|
57
57
|
*/
|
|
58
58
|
columnsM : {type : "sap.ui.layout.form.ColumnsM", group : "Appearance", defaultValue : 1}
|
|
59
59
|
}
|
|
@@ -18,15 +18,15 @@ sap.ui.define([
|
|
|
18
18
|
* @param {object} [mSettings] Initial settings for the new control
|
|
19
19
|
*
|
|
20
20
|
* @class
|
|
21
|
-
* The
|
|
21
|
+
* The {@link sap.ui.layout.form.ColumnLayout ColumnLayout}-specific layout data for the {@link sap.ui.layout.form.Form Form} content fields.
|
|
22
22
|
*
|
|
23
|
-
* One
|
|
23
|
+
* One {@link sap.ui.layout.form.FormElement FormElement} element contains 12 cells and has two sizes, small and large.
|
|
24
24
|
* Using <code>ColumnElementData</code>, the default calculation of the cells used for a field or label
|
|
25
25
|
* can be overwritten.
|
|
26
26
|
* @extends sap.ui.core.LayoutData
|
|
27
27
|
*
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.143.1
|
|
30
30
|
*
|
|
31
31
|
* @constructor
|
|
32
32
|
* @public
|
|
@@ -39,18 +39,18 @@ sap.ui.define([
|
|
|
39
39
|
properties : {
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* Number of cells used by a field if the
|
|
42
|
+
* Number of cells used by a field if the {@link sap.ui.layout.form.FormElement FormElement} element is large.
|
|
43
43
|
* The label is then beside the fields per default.
|
|
44
44
|
*
|
|
45
|
-
* If set to <code>12</code>, the full size of the
|
|
45
|
+
* If set to <code>12</code>, the full size of the {@link sap.ui.layout.form.FormElement FormElement} element is used.
|
|
46
46
|
*/
|
|
47
47
|
cellsLarge : {type : "sap.ui.layout.form.ColumnCells", group : "Appearance", defaultValue : 8},
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* Number of cells used by a field if the
|
|
50
|
+
* Number of cells used by a field if the {@link sap.ui.layout.form.FormElement FormElement} element is small.
|
|
51
51
|
* The label is then above the fields per default.
|
|
52
52
|
*
|
|
53
|
-
* If set to <code>12</code>, the full size of the
|
|
53
|
+
* If set to <code>12</code>, the full size of the {@link sap.ui.layout.form.FormElement FormElement} is used.
|
|
54
54
|
*/
|
|
55
55
|
cellsSmall : {type : "sap.ui.layout.form.ColumnCells", group : "Appearance", defaultValue : 12}
|
|
56
56
|
}
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* If there is enough space, the labels are beside the fields, otherwise above the fields.
|
|
48
48
|
*
|
|
49
49
|
* The default size of a content control of a {@link sap.ui.layout.form.FormElement FormElement} element can be overwritten
|
|
50
|
-
* using {@link sap.ui.layout.form.ColumnElementData ColumnElementData} as
|
|
50
|
+
* using {@link sap.ui.layout.form.ColumnElementData ColumnElementData} as {@link sap.ui.core.Element#setLayoutData LayoutData}.
|
|
51
51
|
* If one control assigned to a {@link sap.ui.layout.form.FormElement FormElement} element has {@link sap.ui.layout.form.ColumnElementData ColumnElementData} set,
|
|
52
52
|
* the size calculation of the other controls assigned to the {@link sap.ui.layout.form.FormElement FormElement} element
|
|
53
53
|
* might not lead to the expected result.
|
|
@@ -58,9 +58,9 @@ sap.ui.define([
|
|
|
58
58
|
*
|
|
59
59
|
* <b>Note:</b>
|
|
60
60
|
* This control cannot be used stand-alone, it just renders a {@link sap.ui.layout.form.Form Form} control,
|
|
61
|
-
* so it must be assigned to a {@link sap.ui.layout.form.Form Form} control using the
|
|
61
|
+
* so it must be assigned to a {@link sap.ui.layout.form.Form Form} control using the {@link sap.ui.layout.form.Form#setLayout layout} aggregation.
|
|
62
62
|
* @extends sap.ui.layout.form.FormLayout
|
|
63
|
-
* @version 1.
|
|
63
|
+
* @version 1.143.1
|
|
64
64
|
*
|
|
65
65
|
* @constructor
|
|
66
66
|
* @public
|
|
@@ -55,7 +55,7 @@ sap.ui.define([
|
|
|
55
55
|
*
|
|
56
56
|
* This control cannot be used stand-alone, it just renders a {@link sap.ui.layout.form.Form Form}, so it must be assigned to a {@link sap.ui.layout.form.Form Form} using the <code>layout</code> aggregation.
|
|
57
57
|
* @extends sap.ui.layout.form.FormLayout
|
|
58
|
-
* @version 1.
|
|
58
|
+
* @version 1.143.1
|
|
59
59
|
*
|
|
60
60
|
* @constructor
|
|
61
61
|
* @public
|
|
@@ -69,7 +69,7 @@ sap.ui.define([
|
|
|
69
69
|
* <b>Note:</b> If a more complex form is needed, use the <code>{@link sap.ui.layout.form.Form Form}</code> control instead.
|
|
70
70
|
*
|
|
71
71
|
* @extends sap.ui.core.Control
|
|
72
|
-
* @version 1.
|
|
72
|
+
* @version 1.143.1
|
|
73
73
|
*
|
|
74
74
|
* @constructor
|
|
75
75
|
* @public
|
|
@@ -443,19 +443,26 @@ sap.ui.define([
|
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
445
|
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
446
|
+
/**
|
|
447
|
+
* @deprecated Since version 1.93.0
|
|
448
|
+
*/
|
|
449
|
+
// eslint-disable-next-line no-lone-blocks
|
|
450
|
+
{
|
|
451
|
+
oForm._origOnLayoutDataChange = oForm.onLayoutDataChange;
|
|
452
|
+
oForm.onLayoutDataChange = function(oEvent) {
|
|
453
|
+
this._origOnLayoutDataChange(oEvent);
|
|
454
|
+
|
|
455
|
+
var oSimpleForm = this.getParent();
|
|
456
|
+
if (oSimpleForm) {
|
|
457
|
+
oSimpleForm._onLayoutDataChange(oEvent);
|
|
458
|
+
}
|
|
459
|
+
};
|
|
449
460
|
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
oSimpleForm._onLayoutDataChange(oEvent);
|
|
453
|
-
}
|
|
454
|
-
};
|
|
461
|
+
this._aLayouts = [];
|
|
462
|
+
}
|
|
455
463
|
|
|
456
464
|
this.setAggregation("form",oForm);
|
|
457
465
|
this._aElements = null;
|
|
458
|
-
this._aLayouts = [];
|
|
459
466
|
this._changedFormContainers = [];
|
|
460
467
|
this._changedFormElements = [];
|
|
461
468
|
|
|
@@ -468,15 +475,21 @@ sap.ui.define([
|
|
|
468
475
|
var oForm = this.getAggregation("form");
|
|
469
476
|
oForm.invalidate = oForm._origInvalidate;
|
|
470
477
|
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
478
|
+
/**
|
|
479
|
+
* @deprecated Since version 1.93.0
|
|
480
|
+
*/
|
|
481
|
+
// eslint-disable-next-line no-lone-blocks
|
|
482
|
+
{
|
|
483
|
+
_removeResize.call(this);
|
|
484
|
+
|
|
485
|
+
for (var i = 0; i < this._aLayouts.length; i++) {
|
|
486
|
+
var oLayout = Element.getElementById(this._aLayouts[i]);
|
|
487
|
+
if (oLayout && oLayout.destroy) {
|
|
488
|
+
oLayout.destroy();
|
|
489
|
+
}
|
|
477
490
|
}
|
|
491
|
+
this._aLayouts = [];
|
|
478
492
|
}
|
|
479
|
-
this._aLayouts = [];
|
|
480
493
|
this._aElements = null;
|
|
481
494
|
this._changedFormContainers = [];
|
|
482
495
|
this._changedFormElements = [];
|
|
@@ -491,6 +504,9 @@ sap.ui.define([
|
|
|
491
504
|
*/
|
|
492
505
|
SimpleForm.prototype.onBeforeRendering = function() {
|
|
493
506
|
|
|
507
|
+
/**
|
|
508
|
+
* @deprecated Since version 1.93.0
|
|
509
|
+
*/
|
|
494
510
|
_removeResize.call(this);
|
|
495
511
|
|
|
496
512
|
var oForm = this.getAggregation("form");
|
|
@@ -673,6 +689,9 @@ sap.ui.define([
|
|
|
673
689
|
oFormElement = _addFormElement.call(this, oFormContainer);
|
|
674
690
|
}
|
|
675
691
|
|
|
692
|
+
/**
|
|
693
|
+
* @deprecated Since version 1.93.0
|
|
694
|
+
*/
|
|
676
695
|
_createFieldLayoutData.call(this, oElement, 5, false, true);
|
|
677
696
|
|
|
678
697
|
oFormElement.addField(oElement);
|
|
@@ -901,6 +920,9 @@ sap.ui.define([
|
|
|
901
920
|
}
|
|
902
921
|
_markFormElementForUpdate(this._changedFormElements, oFormElement);
|
|
903
922
|
|
|
923
|
+
/**
|
|
924
|
+
* @deprecated Since version 1.93.0
|
|
925
|
+
*/
|
|
904
926
|
_createFieldLayoutData.call(this, oElement, 5, false, true);
|
|
905
927
|
}
|
|
906
928
|
|
|
@@ -1044,6 +1066,9 @@ sap.ui.define([
|
|
|
1044
1066
|
this._aElements.splice(iIndex, 1);
|
|
1045
1067
|
oElement.setParent(null);
|
|
1046
1068
|
this._oObserver.unobserve(oElement);
|
|
1069
|
+
/**
|
|
1070
|
+
* @deprecated Since version 1.93.0
|
|
1071
|
+
*/
|
|
1047
1072
|
_removeLayoutData.call(this, oElement);
|
|
1048
1073
|
|
|
1049
1074
|
this.invalidate();
|
|
@@ -1078,6 +1103,9 @@ sap.ui.define([
|
|
|
1078
1103
|
|
|
1079
1104
|
for (i = 0; i < this._aElements.length; i++) {
|
|
1080
1105
|
var oElement = this._aElements[i];
|
|
1106
|
+
/**
|
|
1107
|
+
* @deprecated Since version 1.93.0
|
|
1108
|
+
*/
|
|
1081
1109
|
_removeLayoutData.call(this, oElement);
|
|
1082
1110
|
this._oObserver.unobserve(oElement);
|
|
1083
1111
|
}
|
|
@@ -1124,6 +1152,9 @@ sap.ui.define([
|
|
|
1124
1152
|
|
|
1125
1153
|
var sOldLayout = this.getLayout();
|
|
1126
1154
|
var bDefault = this.isPropertyInitial("layout"); // if default is used and layout not defined setLayout is not called
|
|
1155
|
+
/**
|
|
1156
|
+
* @deprecated Since version 1.93.0
|
|
1157
|
+
*/
|
|
1127
1158
|
if (sLayout != sOldLayout) {
|
|
1128
1159
|
_removeOldLayoutData.call(this);
|
|
1129
1160
|
}
|
|
@@ -1133,6 +1164,9 @@ sap.ui.define([
|
|
|
1133
1164
|
if (sLayout != sOldLayout || bDefault) { // Layout changed or default set explicit -> we know what layout is used and can create the Control
|
|
1134
1165
|
var bSet = _setFormLayout.call(this);
|
|
1135
1166
|
|
|
1167
|
+
/**
|
|
1168
|
+
* @deprecated Since version 1.93.0
|
|
1169
|
+
*/
|
|
1136
1170
|
if (bSet) {
|
|
1137
1171
|
_addLayoutData.call(this);
|
|
1138
1172
|
}
|
|
@@ -1157,6 +1191,10 @@ sap.ui.define([
|
|
|
1157
1191
|
this._oObserver.unobserve(oElement);
|
|
1158
1192
|
var oElementClone = oElement.clone(sIdSuffix);
|
|
1159
1193
|
this._oObserver.observe(oElement, {properties: ["visible"]});
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* @deprecated Since version 1.93.0
|
|
1197
|
+
*/
|
|
1160
1198
|
if (oLayoutData) {
|
|
1161
1199
|
// mark private LayoutData
|
|
1162
1200
|
if (oLayoutData.isA("sap.ui.core.VariantLayoutData")) {
|
|
@@ -1184,6 +1222,9 @@ sap.ui.define([
|
|
|
1184
1222
|
if (oForm.getLayout()) {
|
|
1185
1223
|
this._bChangedByMe = true;
|
|
1186
1224
|
oForm.destroyLayout();
|
|
1225
|
+
/**
|
|
1226
|
+
* @deprecated Since version 1.93.0
|
|
1227
|
+
*/
|
|
1187
1228
|
_removeResize.call(this);
|
|
1188
1229
|
this._bChangedByMe = false;
|
|
1189
1230
|
}
|
|
@@ -1318,6 +1359,10 @@ sap.ui.define([
|
|
|
1318
1359
|
|
|
1319
1360
|
if (!this._bIsBeingDestroyed) {
|
|
1320
1361
|
_setFormLayout.call(this);
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* @deprecated Since version 1.93.0
|
|
1365
|
+
*/
|
|
1321
1366
|
_addLayoutData.call(this);
|
|
1322
1367
|
if (this.getDomRef()) {
|
|
1323
1368
|
_updateLayout.call(this);
|
|
@@ -1330,6 +1375,9 @@ sap.ui.define([
|
|
|
1330
1375
|
|
|
1331
1376
|
}
|
|
1332
1377
|
|
|
1378
|
+
/**
|
|
1379
|
+
* @deprecated Since version 1.93.0
|
|
1380
|
+
*/
|
|
1333
1381
|
function _removeOldLayoutData() {
|
|
1334
1382
|
|
|
1335
1383
|
this._bChangedByMe = true;
|
|
@@ -1368,6 +1416,9 @@ sap.ui.define([
|
|
|
1368
1416
|
|
|
1369
1417
|
}
|
|
1370
1418
|
|
|
1419
|
+
/**
|
|
1420
|
+
* @deprecated Since version 1.93.0
|
|
1421
|
+
*/
|
|
1371
1422
|
function _addLayoutData() {
|
|
1372
1423
|
|
|
1373
1424
|
this._bChangedByMe = true;
|
|
@@ -1461,11 +1512,12 @@ sap.ui.define([
|
|
|
1461
1512
|
|
|
1462
1513
|
}
|
|
1463
1514
|
|
|
1464
|
-
|
|
1515
|
+
/**
|
|
1465
1516
|
* Checks whether the given LayoutData is created and added by this SimpleForm
|
|
1466
|
-
* @param { sap.ui.layout.ResponsiveFlowLayoutData}
|
|
1517
|
+
* @param { sap.ui.layout.ResponsiveFlowLayoutData} oLayoutData The layout data
|
|
1467
1518
|
* @returns {boolean} Whether the given layout was created by this SimpleForm
|
|
1468
1519
|
* @private
|
|
1520
|
+
* @deprecated Since version 1.93.0
|
|
1469
1521
|
*/
|
|
1470
1522
|
function _isMyLayoutData(oLayoutData) {
|
|
1471
1523
|
|
|
@@ -1475,13 +1527,15 @@ sap.ui.define([
|
|
|
1475
1527
|
|
|
1476
1528
|
}
|
|
1477
1529
|
|
|
1478
|
-
|
|
1530
|
+
/**
|
|
1479
1531
|
* Creates new sap.ui.layout.ResponsiveFlowLayoutData with the given parameters
|
|
1480
1532
|
* @param {int} iWeight the weight for the layout data
|
|
1481
1533
|
* @param {boolean} bLinebreak Whether the layout data has a linebreak
|
|
1482
1534
|
* @param {boolean} bLinebreakable Whether the layout data is linebreakable
|
|
1535
|
+
* @param {int} iMinWidth the minimal width of the layout data
|
|
1483
1536
|
* @returns {sap.ui.layout.ResponsiveFlowLayoutData} The newly created ResponsiveFlowLayoutData
|
|
1484
1537
|
* @private
|
|
1538
|
+
* @deprecated Since version 1.93.0
|
|
1485
1539
|
*/
|
|
1486
1540
|
function _createRFLayoutData(iWeight, bLinebreak, bLinebreakable, iMinWidth) {
|
|
1487
1541
|
|
|
@@ -1547,6 +1601,15 @@ sap.ui.define([
|
|
|
1547
1601
|
|
|
1548
1602
|
}
|
|
1549
1603
|
|
|
1604
|
+
/**
|
|
1605
|
+
* @param {sap.ui.core.Control} oField content control
|
|
1606
|
+
* @param {int} iWeight the weight for the layout data
|
|
1607
|
+
* @param {boolean} bLinebreak Whether the layout data has a linebreak
|
|
1608
|
+
* @param {boolean} bLinebreakable Whether the layout data is linebreakable
|
|
1609
|
+
* @param {int} iMinWidth the minimal width of the layout data
|
|
1610
|
+
* @private
|
|
1611
|
+
* @deprecated Since version 1.93.0
|
|
1612
|
+
*/
|
|
1550
1613
|
function _createFieldLayoutData(oField, iWeight, bLinebreak, bLinebreakable, iMinWidth) {
|
|
1551
1614
|
|
|
1552
1615
|
if (this.getLayout() != SimpleFormLayout.ResponsiveLayout) {
|
|
@@ -1576,6 +1639,10 @@ sap.ui.define([
|
|
|
1576
1639
|
|
|
1577
1640
|
}
|
|
1578
1641
|
|
|
1642
|
+
/**
|
|
1643
|
+
* @param {sap.ui.layout.form.FormElement} oElement The FormElement
|
|
1644
|
+
* @deprecated Since version 1.93.0
|
|
1645
|
+
*/
|
|
1579
1646
|
function _createElementLayoutData(oElement) {
|
|
1580
1647
|
|
|
1581
1648
|
if (this.getLayout() != SimpleFormLayout.ResponsiveLayout) {
|
|
@@ -1595,6 +1662,10 @@ sap.ui.define([
|
|
|
1595
1662
|
|
|
1596
1663
|
}
|
|
1597
1664
|
|
|
1665
|
+
/**
|
|
1666
|
+
* @param {sap.ui.layout.form.FormContainer} oContainer The form container
|
|
1667
|
+
* @deprecated Since version 1.93.0
|
|
1668
|
+
*/
|
|
1598
1669
|
function _createContainerLayoutData(oContainer) {
|
|
1599
1670
|
|
|
1600
1671
|
var sLayout = this.getLayout();
|
|
@@ -1628,6 +1699,10 @@ sap.ui.define([
|
|
|
1628
1699
|
|
|
1629
1700
|
}
|
|
1630
1701
|
|
|
1702
|
+
/**
|
|
1703
|
+
* @param {sap.ui.core.Control} oElement Label or Field
|
|
1704
|
+
* @deprecated Since version 1.93.0
|
|
1705
|
+
*/
|
|
1631
1706
|
function _removeLayoutData(oElement) {
|
|
1632
1707
|
|
|
1633
1708
|
this._bLayoutDataChangedByMe = true;
|
|
@@ -1681,12 +1756,18 @@ sap.ui.define([
|
|
|
1681
1756
|
if (oLabel) {
|
|
1682
1757
|
sId = this.getId() + "--" + oLabel.getId() + "--FE";
|
|
1683
1758
|
oLabel.addStyleClass("sapUiFormLabel-CTX");
|
|
1759
|
+
/**
|
|
1760
|
+
* @deprecated Since version 1.93.0
|
|
1761
|
+
*/
|
|
1684
1762
|
if (!_getFieldLayoutData.call(this, oLabel)) {
|
|
1685
1763
|
_createFieldLayoutData.call(this, oLabel, this._iLabelWeight, false, true, this.getLabelMinWidth());
|
|
1686
1764
|
}
|
|
1687
1765
|
mSettings["label"] = oLabel;
|
|
1688
1766
|
} else {
|
|
1689
1767
|
sId = oFormContainer.getId() + "--FE-NoLabel"; // There can be only one FormElement without Label in a FomContainer (first one)
|
|
1768
|
+
/**
|
|
1769
|
+
* @deprecated Since version 1.93.0
|
|
1770
|
+
*/
|
|
1690
1771
|
if (Element.getElementById(sId)) {
|
|
1691
1772
|
// if ResponsiveLayout and ResponsiveFlowLayoutdata with Linebreak is used multiple FormElements without Label can exist
|
|
1692
1773
|
// as already deprecated just keep generatied ID in this very special case.
|
|
@@ -1695,6 +1776,9 @@ sap.ui.define([
|
|
|
1695
1776
|
}
|
|
1696
1777
|
|
|
1697
1778
|
var oElement = new FormElement(sId, mSettings);
|
|
1779
|
+
/**
|
|
1780
|
+
* @deprecated Since version 1.93.0
|
|
1781
|
+
*/
|
|
1698
1782
|
_createElementLayoutData.call(this, oElement);
|
|
1699
1783
|
|
|
1700
1784
|
oElement.isVisible = function(){
|
|
@@ -1742,6 +1826,9 @@ sap.ui.define([
|
|
|
1742
1826
|
}
|
|
1743
1827
|
|
|
1744
1828
|
var oContainer = new FormContainer(sId, mSettings);
|
|
1829
|
+
/**
|
|
1830
|
+
* @deprecated Since version 1.93.0
|
|
1831
|
+
*/
|
|
1745
1832
|
_createContainerLayoutData.call(this, oContainer);
|
|
1746
1833
|
|
|
1747
1834
|
oContainer.getAriaLabelledBy = function() {
|
|
@@ -1758,10 +1845,11 @@ sap.ui.define([
|
|
|
1758
1845
|
|
|
1759
1846
|
}
|
|
1760
1847
|
|
|
1761
|
-
|
|
1848
|
+
/**
|
|
1762
1849
|
* Applies the weight property for the fields in the responsive layout.
|
|
1763
1850
|
* @param {sap.ui.layout.form.FormElement} oElement The FormElement where the weight is applied.
|
|
1764
1851
|
* @private
|
|
1852
|
+
* @deprecated Since version 1.93.0
|
|
1765
1853
|
*/
|
|
1766
1854
|
function _applyFieldWeight(oElement){
|
|
1767
1855
|
|
|
@@ -1814,9 +1902,10 @@ sap.ui.define([
|
|
|
1814
1902
|
this._bLayoutDataChangedByMe = false;
|
|
1815
1903
|
}
|
|
1816
1904
|
|
|
1817
|
-
|
|
1905
|
+
/**
|
|
1818
1906
|
* Applies the linebreaks of FormContainers according to the minWidth and maxContainerCol settings of the SimpleForm
|
|
1819
1907
|
* @private
|
|
1908
|
+
* @deprecated Since version 1.93.0
|
|
1820
1909
|
*/
|
|
1821
1910
|
SimpleForm.prototype._applyLinebreaks = function(){
|
|
1822
1911
|
|
|
@@ -1859,10 +1948,11 @@ sap.ui.define([
|
|
|
1859
1948
|
|
|
1860
1949
|
};
|
|
1861
1950
|
|
|
1862
|
-
|
|
1951
|
+
/**
|
|
1863
1952
|
* Applies size of the FormContainers in GridLayout: if only one container is in the last line -> make it full size
|
|
1864
1953
|
* adapt all containers because container can be inserted or added later on
|
|
1865
1954
|
* @private
|
|
1955
|
+
* @deprecated Since version 1.67.0
|
|
1866
1956
|
*/
|
|
1867
1957
|
function _applyContainerSize(){
|
|
1868
1958
|
|
|
@@ -1881,9 +1971,11 @@ sap.ui.define([
|
|
|
1881
1971
|
this._bLayoutDataChangedByMe = false;
|
|
1882
1972
|
}
|
|
1883
1973
|
|
|
1884
|
-
|
|
1974
|
+
/**
|
|
1885
1975
|
* Handles the resize event
|
|
1976
|
+
* @param {sap.ui.base.Event} oEvent resize event
|
|
1886
1977
|
* @private
|
|
1978
|
+
* @deprecated Since version 1.93.0
|
|
1887
1979
|
*/
|
|
1888
1980
|
SimpleForm.prototype._resize = function(oEvent){
|
|
1889
1981
|
|
|
@@ -1899,6 +1991,9 @@ sap.ui.define([
|
|
|
1899
1991
|
|
|
1900
1992
|
};
|
|
1901
1993
|
|
|
1994
|
+
/**
|
|
1995
|
+
* @deprecated Since version 1.93.0
|
|
1996
|
+
*/
|
|
1902
1997
|
function _removeResize() {
|
|
1903
1998
|
|
|
1904
1999
|
if (this._sResizeListenerId) {
|
|
@@ -2022,6 +2117,11 @@ sap.ui.define([
|
|
|
2022
2117
|
|
|
2023
2118
|
};
|
|
2024
2119
|
|
|
2120
|
+
/**
|
|
2121
|
+
* @param {sap.ui.base.Event} oEvent layout data change event
|
|
2122
|
+
* @private
|
|
2123
|
+
* @deprecated Since version 1.93.0
|
|
2124
|
+
*/
|
|
2025
2125
|
SimpleForm.prototype._onLayoutDataChange = function(oEvent){
|
|
2026
2126
|
|
|
2027
2127
|
if (!this._bLayoutDataChangedByMe && !this._bIsBeingDestroyed) {
|
|
@@ -21,14 +21,14 @@ sap.ui.define([
|
|
|
21
21
|
* @namespace
|
|
22
22
|
* @alias sap.ui.layout
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.143.1
|
|
25
25
|
* @since 1.15
|
|
26
26
|
* @public
|
|
27
27
|
*/
|
|
28
28
|
var thisLib = Library.init({
|
|
29
29
|
apiVersion: 2,
|
|
30
30
|
name : "sap.ui.layout",
|
|
31
|
-
version: "1.
|
|
31
|
+
version: "1.143.1",
|
|
32
32
|
dependencies: ["sap.ui.core"],
|
|
33
33
|
designtime: "sap/ui/layout/designtime/library.designtime",
|
|
34
34
|
types: [
|
|
@@ -652,8 +652,8 @@ sap.ui.define([
|
|
|
652
652
|
};
|
|
653
653
|
|
|
654
654
|
/**
|
|
655
|
-
* @classdesc An <code>int</code> type that defines how many columns a
|
|
656
|
-
* the
|
|
655
|
+
* @classdesc An <code>int</code> type that defines how many columns a {@link sap.ui.layout.form.Form Form} control using
|
|
656
|
+
* the {@link sap.ui.layout.form.ColumnLayout ColumnLayout} as {@link sap.ui.layout.form.FormE#setLayout layout} can have if it has extra-large size
|
|
657
657
|
*
|
|
658
658
|
* Allowed values are numbers from 1 to 6.
|
|
659
659
|
* <b>Note:</b> In versions lower than 1.89 only 4 columns are allowed.
|
|
@@ -677,8 +677,8 @@ sap.ui.define([
|
|
|
677
677
|
);
|
|
678
678
|
|
|
679
679
|
/**
|
|
680
|
-
* @classdesc An <code>int</code> type that defines how many columns a
|
|
681
|
-
* the
|
|
680
|
+
* @classdesc An <code>int</code> type that defines how many columns a {@link sap.ui.layout.form.Form Form} control using
|
|
681
|
+
* the {@link sap.ui.layout.form.ColumnLayout ColumnLayout} as {@link sap.ui.layout.form.FormE#setLayout layout} can have if it has large size
|
|
682
682
|
*
|
|
683
683
|
* Allowed values are numbers from 1 to 4.
|
|
684
684
|
* <b>Note:</b> In versions lower than 1.122 only 3 columns are allowed.
|
|
@@ -702,8 +702,8 @@ sap.ui.define([
|
|
|
702
702
|
);
|
|
703
703
|
|
|
704
704
|
/**
|
|
705
|
-
* @classdesc An <code>int</code> type that defines how many columns a
|
|
706
|
-
* the
|
|
705
|
+
* @classdesc An <code>int</code> type that defines how many columns a {@link sap.ui.layout.form.Form Form} control using
|
|
706
|
+
* the {@link sap.ui.layout.form.ColumnLayout ColumnLayout} as {@link sap.ui.layout.form.FormE#setLayout layout} can have if it has medium size
|
|
707
707
|
*
|
|
708
708
|
* Allowed values are numbers from 1 to 3.
|
|
709
709
|
* <b>Note:</b> In versions lower than 1.122 only 2 columns are allowed.
|
|
@@ -728,7 +728,7 @@ sap.ui.define([
|
|
|
728
728
|
|
|
729
729
|
/**
|
|
730
730
|
* @classdesc An <code>int</code> type that defines how many cells a control inside of a column
|
|
731
|
-
* of a
|
|
731
|
+
* of a {@link sap.ui.layout.form.Form Form} control using the {@link sap.ui.layout.form.ColumnLayout ColumnLayout} control as {@link sap.ui.layout.form.FormE#setLayout layout} can use.
|
|
732
732
|
*
|
|
733
733
|
* Allowed values are numbers from 1 to 12 and -1. -1 means the value is calculated.
|
|
734
734
|
*
|
|
@@ -754,7 +754,7 @@ sap.ui.define([
|
|
|
754
754
|
|
|
755
755
|
/**
|
|
756
756
|
* @classdesc An <code>int</code> type that defines how many cells beside the controls
|
|
757
|
-
* inside of a column of a
|
|
757
|
+
* inside of a column of a {@link sap.ui.layout.form.Form Form} control using the {@link sap.ui.layout.form.ColumnLayout ColumnLayout} control as {@link sap.ui.layout.form.FormE#setLayout layout}
|
|
758
758
|
* are empty.
|
|
759
759
|
*
|
|
760
760
|
* Allowed values are numbers from 0 to 11.
|