@openui5/sap.ui.layout 1.90.5 → 1.90.9
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/THIRDPARTY.txt +1 -1
- 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 +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 +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/GridBoxLayoutStyleHelper.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/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 +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 +1 -1
- package/src/sap/ui/layout/library.js +2 -2
package/THIRDPARTY.txt
CHANGED
|
@@ -197,7 +197,7 @@ License: BSD-3-Clause
|
|
|
197
197
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
198
198
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
|
|
199
199
|
|
|
200
|
-
Component: URI.js, version: 1.19.
|
|
200
|
+
Component: URI.js, version: 1.19.7
|
|
201
201
|
Copyright: Rodney Rehm
|
|
202
202
|
License: MIT
|
|
203
203
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.layout",
|
|
3
|
-
"version": "1.90.
|
|
3
|
+
"version": "1.90.9",
|
|
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.90.
|
|
17
|
+
"@openui5/sap.ui.core": "1.90.9"
|
|
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.90.
|
|
9
|
+
<version>1.90.9</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with layout controls.</documentation>
|
|
12
12
|
|
|
@@ -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.90.
|
|
27
|
+
* @version 1.90.9
|
|
28
28
|
*
|
|
29
29
|
* @constructor
|
|
30
30
|
* @public
|
|
@@ -11,7 +11,7 @@ sap.ui.define(['sap/ui/fl/changeHandler/JsControlTreeModifier', "sap/base/Log"],
|
|
|
11
11
|
* Change handler for hiding of a control.
|
|
12
12
|
* @alias sap.ui.fl.changeHandler.HideControl
|
|
13
13
|
* @author SAP SE
|
|
14
|
-
* @version 1.90.
|
|
14
|
+
* @version 1.90.9
|
|
15
15
|
* @experimental Since 1.27.0
|
|
16
16
|
*/
|
|
17
17
|
var HideForm = { };
|
|
@@ -33,6 +33,10 @@ sap.ui.define(['sap/ui/fl/changeHandler/JsControlTreeModifier', "sap/base/Log"],
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
function _isXmlModifier(mPropertyBag) {
|
|
37
|
+
return mPropertyBag.modifier.targets === "xmlTree";
|
|
38
|
+
}
|
|
39
|
+
|
|
36
40
|
/**
|
|
37
41
|
* Hides a control.
|
|
38
42
|
*
|
|
@@ -43,6 +47,12 @@ sap.ui.define(['sap/ui/fl/changeHandler/JsControlTreeModifier', "sap/base/Log"],
|
|
|
43
47
|
* @public
|
|
44
48
|
*/
|
|
45
49
|
HideForm.applyChange = function(oChange, oControl, mPropertyBag) {
|
|
50
|
+
// in case of custom fields the application needs to be on JS.
|
|
51
|
+
// In the other case the visuality of the hidden control will be overriden by the custom field binding afterwards
|
|
52
|
+
if (_isXmlModifier(mPropertyBag)) {
|
|
53
|
+
throw Error("Change cannot be applied in XML. Retrying in JS.");
|
|
54
|
+
}
|
|
55
|
+
|
|
46
56
|
try {
|
|
47
57
|
var oModifier = mPropertyBag.modifier;
|
|
48
58
|
var oView = mPropertyBag.view;
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
*
|
|
21
21
|
* @alias sap.ui.layout.changeHandler.RenameFormContainer
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.90.
|
|
23
|
+
* @version 1.90.9
|
|
24
24
|
* @since 1.48
|
|
25
25
|
* @private
|
|
26
26
|
* @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.90.
|
|
25
|
+
* @version 1.90.9
|
|
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.90.
|
|
16
|
+
* @version 1.90.9
|
|
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
|
+
throw 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
|
var aContent = oModifier.getAggregation(oControl, "content");
|
|
@@ -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.90.
|
|
98
|
+
* @version 1.90.9
|
|
99
99
|
*
|
|
100
100
|
* @extends sap.ui.core.Control
|
|
101
101
|
* @implements sap.ui.layout.cssgrid.IGridConfigurable
|
|
@@ -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.90.
|
|
24
|
+
* @version 1.90.9
|
|
25
25
|
*
|
|
26
26
|
* @extends sap.ui.layout.cssgrid.GridLayoutBase
|
|
27
27
|
*
|
|
@@ -225,11 +225,15 @@ sap.ui.define([
|
|
|
225
225
|
},
|
|
226
226
|
remove: {
|
|
227
227
|
changeType: "hideSimpleFormField",
|
|
228
|
-
changeOnRelevantContainer: true
|
|
228
|
+
changeOnRelevantContainer: true,
|
|
229
|
+
// SimpleForm field visibility changes could be invalidated by custom field visibility settings
|
|
230
|
+
jsOnly: true
|
|
229
231
|
},
|
|
230
232
|
reveal: {
|
|
231
233
|
changeType: "unhideSimpleFormField",
|
|
232
|
-
changeOnRelevantContainer: true
|
|
234
|
+
changeOnRelevantContainer: true,
|
|
235
|
+
// SimpleForm field visibility changes could be invalidated by custom field visibility settings
|
|
236
|
+
jsOnly: true
|
|
233
237
|
}
|
|
234
238
|
},
|
|
235
239
|
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.90.
|
|
63
|
+
* @version 1.90.9
|
|
64
64
|
*
|
|
65
65
|
* @constructor
|
|
66
66
|
* @public
|
|
@@ -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.90.
|
|
56
|
+
* @version 1.90.9
|
|
57
57
|
*
|
|
58
58
|
* @constructor
|
|
59
59
|
* @public
|
|
@@ -20,14 +20,14 @@ sap.ui.define([
|
|
|
20
20
|
* @namespace
|
|
21
21
|
* @name sap.ui.layout
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.90.
|
|
23
|
+
* @version 1.90.9
|
|
24
24
|
* @public
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
// delegate further initialization of this library to the Core
|
|
28
28
|
sap.ui.getCore().initLibrary({
|
|
29
29
|
name : "sap.ui.layout",
|
|
30
|
-
version: "1.90.
|
|
30
|
+
version: "1.90.9",
|
|
31
31
|
dependencies: ["sap.ui.core"],
|
|
32
32
|
designtime: "sap/ui/layout/designtime/library.designtime",
|
|
33
33
|
types: [
|