@openui5/sap.ui.layout 1.106.0 → 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.
- package/package.json +2 -2
- package/src/sap/ui/layout/.library +1 -1
- package/src/sap/ui/layout/AlignedFlowLayout.js +4 -3
- package/src/sap/ui/layout/AssociativeSplitter.js +1 -1
- package/src/sap/ui/layout/BlockLayout.js +29 -26
- package/src/sap/ui/layout/BlockLayoutCell.js +4 -3
- package/src/sap/ui/layout/BlockLayoutCellData.js +1 -2
- package/src/sap/ui/layout/BlockLayoutRow.js +4 -3
- package/src/sap/ui/layout/DynamicSideContent.js +84 -80
- package/src/sap/ui/layout/DynamicSideContentRenderer.js +3 -3
- package/src/sap/ui/layout/FixFlex.js +9 -7
- package/src/sap/ui/layout/Grid.js +74 -71
- package/src/sap/ui/layout/GridData.js +1 -2
- package/src/sap/ui/layout/GridRenderer.js +1 -1
- package/src/sap/ui/layout/HorizontalLayout.js +22 -19
- package/src/sap/ui/layout/PaneContainer.js +1 -1
- package/src/sap/ui/layout/ResponsiveFlowLayout.js +35 -30
- package/src/sap/ui/layout/ResponsiveFlowLayoutData.js +1 -2
- 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 +6 -5
- package/src/sap/ui/layout/SplitterLayoutData.js +1 -2
- package/src/sap/ui/layout/VerticalLayout.js +29 -26
- 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 +8 -3
- package/src/sap/ui/layout/changeHandler/AddSimpleFormGroup.js +7 -2
- package/src/sap/ui/layout/changeHandler/HideSimpleForm.js +6 -12
- package/src/sap/ui/layout/changeHandler/MoveSimpleForm.js +13 -13
- package/src/sap/ui/layout/changeHandler/RenameFormContainer.js +1 -1
- package/src/sap/ui/layout/changeHandler/RenameSimpleForm.js +6 -4
- package/src/sap/ui/layout/changeHandler/UnhideSimpleForm.js +3 -2
- package/src/sap/ui/layout/cssgrid/CSSGrid.js +1 -2
- package/src/sap/ui/layout/cssgrid/GridBasicLayout.js +1 -2
- package/src/sap/ui/layout/cssgrid/GridBoxLayout.js +1 -2
- package/src/sap/ui/layout/cssgrid/GridItemLayoutData.js +1 -2
- package/src/sap/ui/layout/cssgrid/GridLayoutBase.js +1 -2
- package/src/sap/ui/layout/cssgrid/GridLayoutDelegate.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridResponsiveLayout.js +1 -2
- package/src/sap/ui/layout/cssgrid/GridSettings.js +1 -2
- package/src/sap/ui/layout/cssgrid/ResponsiveColumnItemLayoutData.js +1 -2
- package/src/sap/ui/layout/cssgrid/ResponsiveColumnLayout.js +1 -2
- package/src/sap/ui/layout/form/ColumnContainerData.js +1 -2
- package/src/sap/ui/layout/form/ColumnElementData.js +1 -2
- package/src/sap/ui/layout/form/ColumnLayout.js +41 -38
- package/src/sap/ui/layout/form/Form.js +78 -75
- package/src/sap/ui/layout/form/FormContainer.js +1 -2
- package/src/sap/ui/layout/form/FormElement.js +1 -3
- package/src/sap/ui/layout/form/FormLayout.js +22 -18
- package/src/sap/ui/layout/form/GridContainerData.js +1 -2
- package/src/sap/ui/layout/form/GridElementData.js +1 -2
- package/src/sap/ui/layout/form/GridLayout.js +19 -16
- package/src/sap/ui/layout/form/ResponsiveGridLayout.js +138 -135
- package/src/sap/ui/layout/form/ResponsiveLayout.js +15 -12
- package/src/sap/ui/layout/form/SemanticFormElement.js +1 -2
- package/src/sap/ui/layout/form/SimpleForm.js +437 -404
- package/src/sap/ui/layout/library.js +2 -25
|
@@ -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.
|
|
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: {
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 */ {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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.
|
|
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 */ {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
|
|
@@ -26,13 +26,12 @@ sap.ui.define([
|
|
|
26
26
|
* @extends sap.ui.core.Element
|
|
27
27
|
*
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.107.0
|
|
30
30
|
*
|
|
31
31
|
* @constructor
|
|
32
32
|
* @public
|
|
33
33
|
* @since 1.16.0
|
|
34
34
|
* @alias sap.ui.layout.form.FormElement
|
|
35
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
36
35
|
*/
|
|
37
36
|
var FormElement = Element.extend("sap.ui.layout.form.FormElement", /** @lends sap.ui.layout.form.FormElement.prototype */ { metadata : {
|
|
38
37
|
|
|
@@ -209,7 +208,6 @@ sap.ui.define([
|
|
|
209
208
|
*
|
|
210
209
|
* @returns {sap.ui.core.Label} <code>Label</code> control used to render the label
|
|
211
210
|
* @public
|
|
212
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
213
211
|
*/
|
|
214
212
|
FormElement.prototype.getLabelControl = function() {
|
|
215
213
|
|
|
@@ -11,11 +11,12 @@ sap.ui.define([
|
|
|
11
11
|
'./FormLayoutRenderer',
|
|
12
12
|
'sap/ui/core/theming/Parameters',
|
|
13
13
|
'sap/ui/thirdparty/jquery',
|
|
14
|
+
"sap/ui/core/Configuration",
|
|
14
15
|
// jQuery custom selectors ":sapFocusable"
|
|
15
16
|
'sap/ui/dom/jquery/Selectors',
|
|
16
17
|
// jQuery Plugin "control"
|
|
17
18
|
'sap/ui/dom/jquery/control'
|
|
18
|
-
], function(Control, library, FormLayoutRenderer, Parameters, jQuery) {
|
|
19
|
+
], function(Control, library, FormLayoutRenderer, Parameters, jQuery, Configuration) {
|
|
19
20
|
"use strict";
|
|
20
21
|
|
|
21
22
|
// shortcut for sap.ui.layout.BackgroundDesign
|
|
@@ -36,28 +37,31 @@ sap.ui.define([
|
|
|
36
37
|
* @extends sap.ui.core.Control
|
|
37
38
|
*
|
|
38
39
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
40
|
+
* @version 1.107.0
|
|
40
41
|
*
|
|
41
42
|
* @constructor
|
|
42
43
|
* @public
|
|
43
44
|
* @since 1.16.0
|
|
44
45
|
* @alias sap.ui.layout.form.FormLayout
|
|
45
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
46
46
|
*/
|
|
47
|
-
var FormLayout = Control.extend("sap.ui.layout.form.FormLayout", /** @lends sap.ui.layout.form.FormLayout.prototype */ {
|
|
47
|
+
var FormLayout = Control.extend("sap.ui.layout.form.FormLayout", /** @lends sap.ui.layout.form.FormLayout.prototype */ {
|
|
48
|
+
metadata : {
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
50
|
+
library : "sap.ui.layout",
|
|
51
|
+
properties : {
|
|
52
|
+
/**
|
|
53
|
+
* Specifies the background color of the <code>Form</code> content.
|
|
54
|
+
*
|
|
55
|
+
* <b>Note:</b> The visualization of the different options depends on the theme used.
|
|
56
|
+
*
|
|
57
|
+
* @since 1.36.0
|
|
58
|
+
*/
|
|
59
|
+
backgroundDesign : {type : "sap.ui.layout.BackgroundDesign", group : "Appearance", defaultValue : BackgroundDesign.Translucent}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
renderer: FormLayoutRenderer
|
|
64
|
+
});
|
|
61
65
|
|
|
62
66
|
/* eslint-disable no-lonely-if */
|
|
63
67
|
|
|
@@ -143,7 +147,7 @@ sap.ui.define([
|
|
|
143
147
|
FormLayout.prototype.onsapright = function(oEvent){
|
|
144
148
|
|
|
145
149
|
if (library.form.FormHelper.bArrowKeySupport) {
|
|
146
|
-
var bRtl =
|
|
150
|
+
var bRtl = Configuration.getRTL();
|
|
147
151
|
|
|
148
152
|
if (!bRtl) {
|
|
149
153
|
this.navigateForward(oEvent);
|
|
@@ -157,7 +161,7 @@ sap.ui.define([
|
|
|
157
161
|
FormLayout.prototype.onsapleft = function(oEvent){
|
|
158
162
|
|
|
159
163
|
if (library.form.FormHelper.bArrowKeySupport) {
|
|
160
|
-
var bRtl =
|
|
164
|
+
var bRtl = Configuration.getRTL();
|
|
161
165
|
|
|
162
166
|
if (!bRtl) {
|
|
163
167
|
this.navigateBack(oEvent);
|
|
@@ -22,13 +22,12 @@ sap.ui.define([
|
|
|
22
22
|
* @extends sap.ui.core.LayoutData
|
|
23
23
|
*
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.107.0
|
|
26
26
|
*
|
|
27
27
|
* @constructor
|
|
28
28
|
* @public
|
|
29
29
|
* @since 1.16.0
|
|
30
30
|
* @alias sap.ui.layout.form.GridContainerData
|
|
31
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
32
31
|
*/
|
|
33
32
|
var GridContainerData = LayoutData.extend("sap.ui.layout.form.GridContainerData", /** @lends sap.ui.layout.form.GridContainerData.prototype */ { metadata : {
|
|
34
33
|
|
|
@@ -22,13 +22,12 @@ sap.ui.define([
|
|
|
22
22
|
* @extends sap.ui.core.LayoutData
|
|
23
23
|
*
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.107.0
|
|
26
26
|
*
|
|
27
27
|
* @constructor
|
|
28
28
|
* @public
|
|
29
29
|
* @since 1.16.0
|
|
30
30
|
* @alias sap.ui.layout.form.GridElementData
|
|
31
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
32
31
|
*/
|
|
33
32
|
var GridElementData = LayoutData.extend("sap.ui.layout.form.GridElementData", /** @lends sap.ui.layout.form.GridElementData.prototype */ { metadata : {
|
|
34
33
|
|
|
@@ -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.
|
|
31
|
+
* @version 1.107.0
|
|
32
32
|
*
|
|
33
33
|
* @constructor
|
|
34
34
|
* @public
|
|
@@ -37,22 +37,25 @@ sap.ui.define(['sap/ui/layout/library', './FormLayout', './GridLayoutRenderer'],
|
|
|
37
37
|
* as <code>sap.ui.commons</code> library is deprecated and the <code>GridLayout</code> must not be used in responsive applications.
|
|
38
38
|
* Please use <code>ResponsiveGridLayout</code> or <code>ColumnLayout</code> instead.
|
|
39
39
|
* @alias sap.ui.layout.form.GridLayout
|
|
40
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
41
40
|
*/
|
|
42
|
-
var GridLayout = FormLayout.extend("sap.ui.layout.form.GridLayout", /** @lends sap.ui.layout.form.GridLayout.prototype */ {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
41
|
+
var GridLayout = FormLayout.extend("sap.ui.layout.form.GridLayout", /** @lends sap.ui.layout.form.GridLayout.prototype */ {
|
|
42
|
+
metadata : {
|
|
43
|
+
|
|
44
|
+
library : "sap.ui.layout",
|
|
45
|
+
deprecated: true,
|
|
46
|
+
properties : {
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* If set, the grid renders only one <code>FormContainer</code> per column. That means one <code>FormContainer</code> is below the other. The whole grid has 8 cells per row.
|
|
50
|
+
*
|
|
51
|
+
* If not set, <code>FormContainer</code> can use the full width of the grid or two <code>FormContainers</code> can be placed beside each other. In this case the whole grid has 16 cells per row.
|
|
52
|
+
*/
|
|
53
|
+
singleColumn : {type : "boolean", group : "Misc", defaultValue : false}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
renderer: GridLayoutRenderer
|
|
58
|
+
});
|
|
56
59
|
|
|
57
60
|
GridLayout.prototype.toggleContainerExpanded = function(oContainer){
|
|
58
61
|
|