@openui5/sap.ui.layout 1.93.3 → 1.96.2
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 +6 -11
- package/THIRDPARTY.txt +10 -16
- 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 +25 -11
- 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 +3 -5
- package/src/sap/ui/layout/changeHandler/RenameFormContainer.js +1 -1
- package/src/sap/ui/layout/changeHandler/RenameSimpleForm.js +2 -4
- package/src/sap/ui/layout/changeHandler/UnhideSimpleForm.js +3 -3
- 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 +21 -9
- package/src/sap/ui/layout/cssgrid/GridItemLayoutData.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridLayoutBase.js +3 -1
- package/src/sap/ui/layout/cssgrid/GridLayoutDelegate.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridResponsiveLayout.js +5 -3
- 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 +5 -3
- package/src/sap/ui/layout/designtime/form/Form.designtime.js +1 -1
- package/src/sap/ui/layout/designtime/form/SimpleForm.designtime.js +11 -5
- 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/ColumnLayoutRenderer.js +7 -6
- 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/ui5.yaml +4 -1
- package/src/sap/ui/layout/cssgrid/GridBoxLayoutStyleHelper.js +0 -62
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
|
|
@@ -405,6 +400,11 @@ Copyright: 2014 Vitaly Puzrin, Alex Kocharin
|
|
|
405
400
|
License: MIT
|
|
406
401
|
Comment: these files belong to: Markdown-it
|
|
407
402
|
|
|
403
|
+
Files: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
|
|
404
|
+
Copyright: 2015-2017 Evgeny Poberezkin
|
|
405
|
+
License: MIT
|
|
406
|
+
Comment: these files belong to: ajv
|
|
407
|
+
|
|
408
408
|
|
|
409
409
|
# Library: sap.ui.mdc:
|
|
410
410
|
|
|
@@ -452,11 +452,6 @@ Copyright: 2009-2014, Alexis Sellier <self@cloudhead.net>
|
|
|
452
452
|
License: Apache-2.0
|
|
453
453
|
Comment: these files belong to: LESS
|
|
454
454
|
|
|
455
|
-
Files: ../test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
|
|
456
|
-
Copyright: 2015-2017 Evgeny Poberezkin
|
|
457
|
-
License: MIT
|
|
458
|
-
Comment: these files belong to: ajv
|
|
459
|
-
|
|
460
455
|
Files: lib/jsdoc/ui5/plugin.js
|
|
461
456
|
Copyright:
|
|
462
457
|
2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
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.13
|
|
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
|
|
@@ -376,7 +370,7 @@ License: Unicode-DFS-2015
|
|
|
376
370
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
|
|
377
371
|
Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/Unicode-Data-Files-LICENSE.txt
|
|
378
372
|
|
|
379
|
-
Component: Adaptive Cards, version:
|
|
373
|
+
Component: Adaptive Cards, version: 2.9.0
|
|
380
374
|
Copyright: 2017 Microsoft
|
|
381
375
|
License: MIT
|
|
382
376
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
@@ -395,6 +389,12 @@ License: MIT
|
|
|
395
389
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
396
390
|
Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/markdown-it.js
|
|
397
391
|
|
|
392
|
+
Component: ajv, version: 6.12.3
|
|
393
|
+
Copyright: 2015-2017 Evgeny Poberezkin
|
|
394
|
+
License: MIT
|
|
395
|
+
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
396
|
+
Contained in: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
|
|
397
|
+
|
|
398
398
|
|
|
399
399
|
Library: sap.ui.mdc:
|
|
400
400
|
|
|
@@ -450,12 +450,6 @@ License: Apache-2.0
|
|
|
450
450
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
451
451
|
Contained in: src/testsuite-utils/src/main/resources/META-INF/less/less.js
|
|
452
452
|
|
|
453
|
-
Component: ajv, version: 6.12.3
|
|
454
|
-
Copyright: 2015-2017 Evgeny Poberezkin
|
|
455
|
-
License: MIT
|
|
456
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
457
|
-
Contained in: ../test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
|
|
458
|
-
|
|
459
453
|
Component: JSDoc 3, version: 3.6.7
|
|
460
454
|
Copyright: 2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
|
|
461
455
|
License: Apache-2.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.layout",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.96.2",
|
|
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.96.2"
|
|
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.96.2</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.96.2
|
|
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.96.2
|
|
28
28
|
*
|
|
29
29
|
* @constructor
|
|
30
30
|
* @public
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/fl/changeHandler/BaseAddViaDelegate"
|
|
8
|
+
"sap/ui/fl/changeHandler/BaseAddViaDelegate",
|
|
9
|
+
"sap/ui/core/util/reflection/JsControlTreeModifier"
|
|
9
10
|
], function(
|
|
10
|
-
BaseAddViaDelegate
|
|
11
|
+
BaseAddViaDelegate,
|
|
12
|
+
JsControlTreeModifier
|
|
11
13
|
) {
|
|
12
14
|
"use strict";
|
|
13
15
|
|
|
@@ -30,29 +32,29 @@ sap.ui.define([
|
|
|
30
32
|
// This logic is for insertIndex being a desired index of a form element inside a container
|
|
31
33
|
// However we cannot allow that new fields are added inside other FormElements, therefore
|
|
32
34
|
// we must find the end of the FormElement to add the new FormElement there
|
|
33
|
-
if (aContent.length === 1 || aContent.length === iIndexOfHeader + 1){
|
|
35
|
+
if (aContent.length === 1 || aContent.length === iIndexOfHeader + 1) {
|
|
34
36
|
// Empty container (only header or toolbar)
|
|
35
37
|
iNewIndex = aContent.length;
|
|
36
38
|
} else {
|
|
37
39
|
var j = 0;
|
|
38
|
-
for (j = iIndexOfHeader + 1; j < aContent.length; j++){
|
|
40
|
+
for (j = iIndexOfHeader + 1; j < aContent.length; j++) {
|
|
39
41
|
var sControlType = oModifier.getControlType(aContent[j]);
|
|
40
42
|
// When the next control is a label (= end of FormElement)
|
|
41
|
-
if (sControlType === sTypeLabel || sControlType === sTypeSmartLabel
|
|
42
|
-
if (iFormElementIndex
|
|
43
|
+
if (sControlType === sTypeLabel || sControlType === sTypeSmartLabel) {
|
|
44
|
+
if (iFormElementIndex === insertIndex) {
|
|
43
45
|
iNewIndex = j;
|
|
44
46
|
break;
|
|
45
47
|
}
|
|
46
48
|
iFormElementIndex++;
|
|
47
49
|
}
|
|
48
50
|
// Next control is a title or toolbar (= end of container)
|
|
49
|
-
if (sControlType === sTypeTitle || sControlType === sTypeToolBar){
|
|
51
|
+
if (sControlType === sTypeTitle || sControlType === sTypeToolBar) {
|
|
50
52
|
iNewIndex = j;
|
|
51
53
|
break;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
// If there are no more titles, toolbars or labels (= this is the last FormElement) -> insert at end
|
|
55
|
-
if (j === (aContent.length - 1)){
|
|
57
|
+
if (j === (aContent.length - 1)) {
|
|
56
58
|
iNewIndex = aContent.length;
|
|
57
59
|
}
|
|
58
60
|
}
|
|
@@ -89,13 +91,13 @@ sap.ui.define([
|
|
|
89
91
|
*
|
|
90
92
|
* @author SAP SE
|
|
91
93
|
*
|
|
92
|
-
* @version 1.
|
|
94
|
+
* @version 1.96.2
|
|
93
95
|
*
|
|
94
96
|
* @experimental Since 1.49.0 This class is experimental and provides only limited functionality. Also the API might be
|
|
95
97
|
* changed in future.
|
|
96
98
|
*/
|
|
97
99
|
var AddSimpleFormField = BaseAddViaDelegate.createAddViaDelegateChangeHandler({
|
|
98
|
-
addProperty
|
|
100
|
+
addProperty: function(mPropertyBag) {
|
|
99
101
|
var oSimpleForm = mPropertyBag.control;
|
|
100
102
|
|
|
101
103
|
var mInnerControls = mPropertyBag.innerControls;
|
|
@@ -134,7 +136,7 @@ sap.ui.define([
|
|
|
134
136
|
return undefined;
|
|
135
137
|
});
|
|
136
138
|
},
|
|
137
|
-
revertAdditionalControls
|
|
139
|
+
revertAdditionalControls: function(mPropertyBag) {
|
|
138
140
|
var oSimpleForm = mPropertyBag.control;
|
|
139
141
|
var oChange = mPropertyBag.change;
|
|
140
142
|
var oModifier = mPropertyBag.modifier;
|
|
@@ -169,6 +171,18 @@ sap.ui.define([
|
|
|
169
171
|
supportsDefault: true
|
|
170
172
|
});
|
|
171
173
|
|
|
174
|
+
AddSimpleFormField.getChangeVisualizationInfo = function(oChange, oAppComponent) {
|
|
175
|
+
var oRevertData = oChange.getRevertData();
|
|
176
|
+
if (oRevertData && oRevertData.labelSelector) {
|
|
177
|
+
return {
|
|
178
|
+
affectedControls: [JsControlTreeModifier.bySelector(oRevertData.labelSelector, oAppComponent).getParent().getId()]
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
return {
|
|
182
|
+
affectedControls: [oChange.getContent().newFieldSelector]
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
|
|
172
186
|
return AddSimpleFormField;
|
|
173
187
|
},
|
|
174
188
|
/* bExport= */true);
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
*
|
|
21
21
|
* @alias sap.ui.layout.changeHandler.MoveSimpleForm
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.96.2
|
|
24
24
|
* @experimental Since 1.34.0
|
|
25
25
|
*/
|
|
26
26
|
var MoveSimpleForm = {};
|
|
@@ -465,9 +465,7 @@ sap.ui.define([
|
|
|
465
465
|
MoveSimpleForm.getChangeVisualizationInfo = function(oChange, oAppComponent) {
|
|
466
466
|
var oMovedElement = oChange.getContent().movedElements[0];
|
|
467
467
|
var oGroupSelector = oMovedElement.source.groupSelector;
|
|
468
|
-
var oAffectedControlSelector =
|
|
469
|
-
? JsControlTreeModifier.bySelector(oMovedElement.elementSelector, oAppComponent).getParent().getId()
|
|
470
|
-
: oMovedElement.elementSelector;
|
|
468
|
+
var oAffectedControlSelector = JsControlTreeModifier.bySelector(oMovedElement.elementSelector, oAppComponent).getParent().getId();
|
|
471
469
|
return {
|
|
472
470
|
affectedControls: [oAffectedControlSelector],
|
|
473
471
|
dependentControls: [
|
|
@@ -480,4 +478,4 @@ sap.ui.define([
|
|
|
480
478
|
|
|
481
479
|
return MoveSimpleForm;
|
|
482
480
|
},
|
|
483
|
-
/* bExport= */true);
|
|
481
|
+
/* bExport= */true);
|
|
@@ -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.96.2
|
|
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.96.2
|
|
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.
|
|
@@ -143,9 +143,7 @@ sap.ui.define([
|
|
|
143
143
|
|
|
144
144
|
RenameForm.getChangeVisualizationInfo = function(oChange, oAppComponent) {
|
|
145
145
|
var oElementSelector = oChange.getDefinition().content.elementSelector;
|
|
146
|
-
var oAffectedControlSelector =
|
|
147
|
-
? JsControlTreeModifier.bySelector(oElementSelector, oAppComponent).getParent().getId()
|
|
148
|
-
: oElementSelector;
|
|
146
|
+
var oAffectedControlSelector = JsControlTreeModifier.bySelector(oElementSelector, oAppComponent).getParent().getId();
|
|
149
147
|
return {
|
|
150
148
|
affectedControls: [oAffectedControlSelector]
|
|
151
149
|
};
|
|
@@ -13,7 +13,7 @@ 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.96.2
|
|
17
17
|
* @experimental Since 1.27.0
|
|
18
18
|
*/
|
|
19
19
|
var UnhideForm = { };
|
|
@@ -155,9 +155,9 @@ sap.ui.define([
|
|
|
155
155
|
});
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
-
UnhideForm.getChangeVisualizationInfo = function(oChange) {
|
|
158
|
+
UnhideForm.getChangeVisualizationInfo = function(oChange, oAppComponent) {
|
|
159
159
|
return {
|
|
160
|
-
affectedControls: [oChange.getDefinition().content.elementSelector]
|
|
160
|
+
affectedControls: [JsControlTreeModifier.bySelector(oChange.getDefinition().content.elementSelector, oAppComponent).getParent().getId()]
|
|
161
161
|
};
|
|
162
162
|
};
|
|
163
163
|
|