@openui5/sap.ui.layout 1.94.0 → 1.95.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/.reuse/dep5 +1 -6
- package/THIRDPARTY.txt +3 -9
- package/package.json +2 -2
- package/src/sap/ui/layout/.library +1 -1
- package/src/sap/ui/layout/AlignedFlowLayout.js +7 -3
- 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 +11 -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 +11 -1
- package/src/sap/ui/layout/cssgrid/CSSGrid.js +72 -69
- 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/Form.designtime.js +1 -1
- package/src/sap/ui/layout/designtime/form/SimpleForm.designtime.js +6 -2
- package/src/sap/ui/layout/form/ColumnContainerData.js +1 -1
- package/src/sap/ui/layout/form/ColumnElementData.js +1 -1
- package/src/sap/ui/layout/form/ColumnLayout.js +1 -1
- 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 +3 -3
- package/src/sap/ui/layout/form/FormLayoutRenderer.js +3 -2
- 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 +2 -2
- 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 +1 -1
- package/src/sap/ui/layout/library.js +2 -2
- package/src/sap/ui/layout/messagebundle_el.properties +1 -1
package/.reuse/dep5
CHANGED
|
@@ -309,7 +309,7 @@ License: MIT
|
|
|
309
309
|
Comment: these files belong to: lodash
|
|
310
310
|
|
|
311
311
|
Files: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
|
|
312
|
-
Copyright:
|
|
312
|
+
Copyright: 2021 Mathias Nater
|
|
313
313
|
License: MIT
|
|
314
314
|
Comment: these files belong to: Hyphenopoly
|
|
315
315
|
|
|
@@ -347,11 +347,6 @@ Copyright: 2013 Ariya Hidayat and other contributors
|
|
|
347
347
|
License: BSD-2-Clause
|
|
348
348
|
Comment: these files belong to: Esprima
|
|
349
349
|
|
|
350
|
-
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
|
|
351
|
-
Copyright: 2006 Google Inc.
|
|
352
|
-
License: Apache-2.0
|
|
353
|
-
Comment: these files belong to: google-code-prettify
|
|
354
|
-
|
|
355
350
|
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js/*
|
|
356
351
|
Copyright: 2006-2020, Ivan Sagalaev
|
|
357
352
|
License: BSD-3-Clause
|
package/THIRDPARTY.txt
CHANGED
|
@@ -6,7 +6,7 @@ The full text of all referenced licenses is appended at the end of this file.
|
|
|
6
6
|
|
|
7
7
|
Library: sap.ui.codeeditor:
|
|
8
8
|
|
|
9
|
-
Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.
|
|
9
|
+
Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.12
|
|
10
10
|
Copyright: 2010, Ajax.org B.V.
|
|
11
11
|
License: BSD-3-Clause
|
|
12
12
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
@@ -279,8 +279,8 @@ License: MIT
|
|
|
279
279
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
280
280
|
Contained in: src/sap.ui.core/src/sap/ui/base/util/restricted/_/lodash.custom.js
|
|
281
281
|
|
|
282
|
-
Component: Hyphenopoly, version:
|
|
283
|
-
Copyright:
|
|
282
|
+
Component: Hyphenopoly, version: 3.4.0
|
|
283
|
+
Copyright: 2021 Mathias Nater
|
|
284
284
|
License: MIT
|
|
285
285
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
286
286
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
|
|
@@ -324,12 +324,6 @@ License: BSD-2-Clause
|
|
|
324
324
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-2-Clause.txt
|
|
325
325
|
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/esprima.js
|
|
326
326
|
|
|
327
|
-
Component: google-code-prettify, version: 20130304
|
|
328
|
-
Copyright: 2006 Google Inc.
|
|
329
|
-
License: Apache-2.0
|
|
330
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
331
|
-
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
|
|
332
|
-
|
|
333
327
|
Component: highlight.js, version: 10.4.1
|
|
334
328
|
Copyright: 2006-2020, Ivan Sagalaev
|
|
335
329
|
License: BSD-3-Clause
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.layout",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.95.0",
|
|
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/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.ui.core": "1.
|
|
17
|
+
"@openui5/sap.ui.core": "1.95.0"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2021 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.95.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with layout controls.</documentation>
|
|
12
12
|
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @extends sap.ui.core.Control
|
|
41
41
|
*
|
|
42
42
|
* @author SAP SE
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.95.0
|
|
44
44
|
*
|
|
45
45
|
* @constructor
|
|
46
46
|
* @private
|
|
@@ -221,18 +221,22 @@ sap.ui.define([
|
|
|
221
221
|
var oEndItemDomRef,
|
|
222
222
|
oObserverEntry = aObserverEntries[0],
|
|
223
223
|
bWidthChangedSignificantly = hasWidthChangedSignificantly(this.fLayoutWidth, oObserverEntry, oDomRef),
|
|
224
|
-
fNewWidth = oObserverEntry.contentRect.width
|
|
224
|
+
fNewWidth = oObserverEntry.contentRect.width,
|
|
225
|
+
fNewHeight = oObserverEntry.contentRect.height;
|
|
225
226
|
|
|
226
227
|
if (bWidthChangedSignificantly) {
|
|
227
228
|
this.fLayoutWidth = fNewWidth;
|
|
229
|
+
this.fLayoutHeight = fNewHeight;
|
|
228
230
|
} else {
|
|
229
231
|
oEndItemDomRef = this.getDomRef("endItem");
|
|
230
232
|
bWidthChangedSignificantly = hasWidthChangedSignificantly(this.fEndItemWidth, oObserverEntry, oEndItemDomRef);
|
|
231
233
|
|
|
232
234
|
if (bWidthChangedSignificantly) {
|
|
233
235
|
this.fEndItemWidth = fNewWidth;
|
|
236
|
+
this.fLayoutHeight = fNewHeight;
|
|
237
|
+
} else if (this.fLayoutHeight !== fNewHeight) { // we may still have relevant height changes
|
|
238
|
+
this.fLayoutHeight = fNewHeight;
|
|
234
239
|
} else {
|
|
235
|
-
|
|
236
240
|
// avoid cyclic dependencies and/or infinite resizing callback loops
|
|
237
241
|
return;
|
|
238
242
|
}
|
|
@@ -24,7 +24,7 @@ sap.ui.define(['sap/ui/core/LayoutData', './library'],
|
|
|
24
24
|
* (The CSS value "auto" is used internally to recalculate the size of the content
|
|
25
25
|
* dynamically and is not directly set as style property.)
|
|
26
26
|
* @extends sap.ui.core.LayoutData
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.95.0
|
|
28
28
|
*
|
|
29
29
|
* @constructor
|
|
30
30
|
* @public
|
|
@@ -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.
|
|
20
|
+
* @version 1.95.0
|
|
21
21
|
* @experimental Since 1.27.0
|
|
22
22
|
*/
|
|
23
23
|
var HideForm = { };
|
|
@@ -40,6 +40,10 @@ sap.ui.define([
|
|
|
40
40
|
return undefined;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
+
function _isXmlModifier(mPropertyBag) {
|
|
44
|
+
return mPropertyBag.modifier.targets === "xmlTree";
|
|
45
|
+
}
|
|
46
|
+
|
|
43
47
|
/**
|
|
44
48
|
* Hides a control.
|
|
45
49
|
*
|
|
@@ -56,6 +60,12 @@ sap.ui.define([
|
|
|
56
60
|
|
|
57
61
|
var oChangeDefinition = oChange.getDefinition();
|
|
58
62
|
|
|
63
|
+
// in case of custom fields the application needs to be on JS.
|
|
64
|
+
// In the other case the visuality of the hidden control will be overriden by the custom field binding afterwards
|
|
65
|
+
if (_isXmlModifier(mPropertyBag)) {
|
|
66
|
+
return Promise.reject(Error("Change cannot be applied in XML. Retrying in JS."));
|
|
67
|
+
}
|
|
68
|
+
|
|
59
69
|
// !important : sHideId was used in 1.40, do not remove for compatibility!
|
|
60
70
|
var oRemovedElement = oModifier.bySelector(oChangeDefinition.content.elementSelector || oChangeDefinition.content.sHideId, oAppComponent, oView);
|
|
61
71
|
var aContent;
|
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
*
|
|
19
19
|
* @alias sap.ui.layout.changeHandler.RenameFormContainer
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.95.0
|
|
22
22
|
* @since 1.48
|
|
23
23
|
* @private
|
|
24
24
|
* @experimental Since 1.48. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
*
|
|
23
23
|
* @alias sap.ui.layout.changeHandler.RenameForm
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.95.0
|
|
26
26
|
* @since 1.40
|
|
27
27
|
* @private
|
|
28
28
|
* @experimental Since 1.40. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -13,11 +13,15 @@ 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.
|
|
16
|
+
* @version 1.95.0
|
|
17
17
|
* @experimental Since 1.27.0
|
|
18
18
|
*/
|
|
19
19
|
var UnhideForm = { };
|
|
20
20
|
|
|
21
|
+
function _isXmlModifier(mPropertyBag) {
|
|
22
|
+
return mPropertyBag.modifier.targets === "xmlTree";
|
|
23
|
+
}
|
|
24
|
+
|
|
21
25
|
/**
|
|
22
26
|
* Unhides a control
|
|
23
27
|
*
|
|
@@ -35,6 +39,12 @@ sap.ui.define([
|
|
|
35
39
|
|
|
36
40
|
var oChangeDefinition = oChangeWrapper.getDefinition();
|
|
37
41
|
|
|
42
|
+
// in case of custom fields the application needs to be on JS.
|
|
43
|
+
// In the other case the visuality of the control will be overriden by the custom field binding afterwards
|
|
44
|
+
if (_isXmlModifier(mPropertyBag)) {
|
|
45
|
+
return Promise.reject(Error("Change cannot be applied in XML. Retrying in JS."));
|
|
46
|
+
}
|
|
47
|
+
|
|
38
48
|
// !important : sUnhideId was used in 1.40, do not remove for compatibility reasons!
|
|
39
49
|
var oControlToUnhide = oModifier.bySelector(oChangeDefinition.content.elementSelector || oChangeDefinition.content.sUnhideId, oAppComponent, oView);
|
|
40
50
|
return Promise.resolve()
|
|
@@ -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
|
-
|
|
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.
|
|
98
|
+
* @version 1.95.0
|
|
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", {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
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
|
* 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.95.0
|
|
25
25
|
*
|
|
26
26
|
* @extends sap.ui.layout.cssgrid.GridLayoutBase
|
|
27
27
|
*
|
|
@@ -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){
|
|
@@ -232,11 +232,15 @@ sap.ui.define([
|
|
|
232
232
|
},
|
|
233
233
|
remove: {
|
|
234
234
|
changeType: "hideSimpleFormField",
|
|
235
|
-
changeOnRelevantContainer: true
|
|
235
|
+
changeOnRelevantContainer: true,
|
|
236
|
+
// SimpleForm field visibility changes could be invalidated by custom field visibility settings
|
|
237
|
+
jsOnly: true
|
|
236
238
|
},
|
|
237
239
|
reveal: {
|
|
238
240
|
changeType: "unhideSimpleFormField",
|
|
239
|
-
changeOnRelevantContainer: true
|
|
241
|
+
changeOnRelevantContainer: true,
|
|
242
|
+
// SimpleForm field visibility changes could be invalidated by custom field visibility settings
|
|
243
|
+
jsOnly: true
|
|
240
244
|
}
|
|
241
245
|
},
|
|
242
246
|
getStableElements: getStableElements
|
|
@@ -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.
|
|
63
|
+
* @version 1.95.0
|
|
64
64
|
*
|
|
65
65
|
* @constructor
|
|
66
66
|
* @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.
|
|
39
|
+
* @version 1.95.0
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
@@ -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.95.0
|
|
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
|
|
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.
|
|
56
|
+
* @version 1.95.0
|
|
57
57
|
*
|
|
58
58
|
* @constructor
|
|
59
59
|
* @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.
|
|
23
|
+
* @version 1.95.0
|
|
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.
|
|
31
|
+
version: "1.95.0",
|
|
32
32
|
dependencies: ["sap.ui.core"],
|
|
33
33
|
designtime: "sap/ui/layout/designtime/library.designtime",
|
|
34
34
|
types: [
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
FORM_EXPAND=\u0395\u03C0\u03AD\u03BA\u03C4\u03B1\u03C3\u03B7
|
|
3
3
|
FORM_COLLAPSE=\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7
|
|
4
4
|
|
|
5
|
-
SPLITTER_MOVE=\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C4\u03B1 \
|
|
5
|
+
SPLITTER_MOVE=\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C4\u03B1 \u03C0\u03BB\u03AE\u03BA\u03C4\u03C1\u03B1 \u0392\u0395\u039B\u039F\u03A5\u03A3 \u03B3\u03B9\u03B1 \u03BC\u03B5\u03C4\u03B1\u03BA\u03AF\u03BD\u03B7\u03C3\u03B7
|
|
6
6
|
|
|
7
7
|
SIDE_CONTENT_LABEL=\u03A0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03B1 \u03A0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03B1
|
|
8
8
|
|