@openui5/sap.ui.layout 1.127.1 → 1.129.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/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 +22 -9
- package/src/sap/ui/layout/changeHandler/AddSimpleFormGroup.js +1 -1
- package/src/sap/ui/layout/changeHandler/HideSimpleForm.js +23 -6
- package/src/sap/ui/layout/changeHandler/MoveSimpleForm.js +149 -135
- 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 +19 -3
- 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/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 +5 -5
- 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
|
@@ -468,7 +468,7 @@ License: Apache-2.0
|
|
|
468
468
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
469
469
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
470
470
|
|
|
471
|
-
Component: SAP Theming Base Content, version: 11.
|
|
471
|
+
Component: SAP Theming Base Content, version: 11.18.0
|
|
472
472
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
473
473
|
License: Apache-2.0
|
|
474
474
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.layout",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.129.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.129.0"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2024 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.129.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with layout controls.</documentation>
|
|
12
12
|
|
|
@@ -77,7 +77,7 @@ sap.ui.define([
|
|
|
77
77
|
*
|
|
78
78
|
* @author SAP SE
|
|
79
79
|
*
|
|
80
|
-
* @version 1.
|
|
80
|
+
* @version 1.129.0
|
|
81
81
|
*
|
|
82
82
|
* @experimental Since 1.49.0 This class is experimental and provides only limited functionality. Also the API might be
|
|
83
83
|
* changed in future.
|
|
@@ -155,17 +155,30 @@ sap.ui.define([
|
|
|
155
155
|
});
|
|
156
156
|
|
|
157
157
|
AddSimpleFormField.getChangeVisualizationInfo = function(oChange, oAppComponent) {
|
|
158
|
-
|
|
158
|
+
const oFormSelector = oChange.getSelector();
|
|
159
|
+
const oForm = JsControlTreeModifier.bySelector(oFormSelector, oAppComponent);
|
|
160
|
+
const oRevertData = oChange.getRevertData();
|
|
161
|
+
const oReturn = {
|
|
162
|
+
updateRequired: true
|
|
163
|
+
};
|
|
159
164
|
|
|
160
165
|
if (oRevertData && oRevertData.labelSelector) {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
166
|
+
const oLabel = JsControlTreeModifier.bySelector(oRevertData.labelSelector, oAppComponent);
|
|
167
|
+
oReturn.affectedControls = [oLabel.getParent().getId()];
|
|
168
|
+
// If the label is currently invisible, the indicator should be on the form (it can't be the group because it could have been headerless)
|
|
169
|
+
if (!oLabel.getVisible()) {
|
|
170
|
+
oReturn.displayControls = [oForm];
|
|
171
|
+
}
|
|
172
|
+
} else {
|
|
173
|
+
const oElement = JsControlTreeModifier.bySelector(oChange.getContent().elementSelector, oAppComponent);
|
|
174
|
+
oReturn.affectedControls = [oChange.getContent().newFieldSelector];
|
|
175
|
+
// If the element is currently invisible, the indicator should be on on the form (it can't be the group because it could have been headerless)
|
|
176
|
+
if (!oElement.getVisible()) {
|
|
177
|
+
oReturn.displayControls = [oForm];
|
|
178
|
+
}
|
|
165
179
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
};
|
|
180
|
+
|
|
181
|
+
return oReturn;
|
|
169
182
|
};
|
|
170
183
|
|
|
171
184
|
AddSimpleFormField.getCondenserInfo = function() {
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* Change handler for adding a simple form group.
|
|
18
18
|
* @alias sap.ui.layout.changeHandler.AddSimpleFormGroup
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.129.0
|
|
21
21
|
* @experimental Since 1.27.0
|
|
22
22
|
*/
|
|
23
23
|
var AddSimpleFormGroup = {};
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* Change handler for hiding of a control.
|
|
20
20
|
* @alias sap.ui.fl.changeHandler.HideControl
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.129.0
|
|
23
23
|
* @experimental Since 1.27.0
|
|
24
24
|
*/
|
|
25
25
|
var HideForm = { };
|
|
@@ -276,12 +276,29 @@ sap.ui.define([
|
|
|
276
276
|
});
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
-
HideForm.getChangeVisualizationInfo = function(oChange) {
|
|
280
|
-
|
|
281
|
-
|
|
279
|
+
HideForm.getChangeVisualizationInfo = function(oChange, oAppComponent) {
|
|
280
|
+
const oElementSelector = oChange.getContent().elementSelector;
|
|
281
|
+
const oFormSelector = oChange.getSelector();
|
|
282
|
+
const oForm = JsControlTreeModifier.bySelector(oFormSelector, oAppComponent);
|
|
283
|
+
const oElement = JsControlTreeModifier.bySelector(oElementSelector, oAppComponent);
|
|
284
|
+
const oElementParent = oElement.getParent();
|
|
285
|
+
|
|
286
|
+
// If a Group is being hidden, always show on the form since groups can't be revealed
|
|
287
|
+
let sDisplayElementId = oForm.getId();
|
|
288
|
+
|
|
289
|
+
// FormElement is being hidden
|
|
290
|
+
if (oElementParent.isA("sap.ui.layout.form.FormElement")) {
|
|
291
|
+
// If the Label is currently visible, the indicator should be on the form element (e.g. after the element is revealed)
|
|
292
|
+
// Otherwise we show it on the form, since the group element could have been in a group that got removed, leading to
|
|
293
|
+
// inconsistencies in the visualization
|
|
294
|
+
if (oElement.getVisible()) {
|
|
295
|
+
sDisplayElementId = oElementParent.getId();
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
282
299
|
return {
|
|
283
|
-
affectedControls: [
|
|
284
|
-
displayControls: [
|
|
300
|
+
affectedControls: [oElement.getId()],
|
|
301
|
+
displayControls: [sDisplayElementId],
|
|
285
302
|
updateRequired: true
|
|
286
303
|
};
|
|
287
304
|
};
|