@openui5/sap.ui.layout 1.103.0 → 1.105.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.
Files changed (64) hide show
  1. package/.eslintrc.json +2 -3
  2. package/.reuse/dep5 +18 -1
  3. package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +5 -0
  4. package/THIRDPARTY.txt +36 -3
  5. package/package.json +2 -2
  6. package/src/sap/ui/layout/.library +1 -1
  7. package/src/sap/ui/layout/AlignedFlowLayout.js +1 -1
  8. package/src/sap/ui/layout/AssociativeSplitter.js +3 -4
  9. package/src/sap/ui/layout/BlockLayout.js +1 -1
  10. package/src/sap/ui/layout/BlockLayoutCell.js +2 -3
  11. package/src/sap/ui/layout/BlockLayoutCellData.js +1 -1
  12. package/src/sap/ui/layout/BlockLayoutRow.js +1 -1
  13. package/src/sap/ui/layout/DynamicSideContent.js +1 -1
  14. package/src/sap/ui/layout/FixFlex.js +1 -1
  15. package/src/sap/ui/layout/Grid.js +1 -1
  16. package/src/sap/ui/layout/GridData.js +1 -1
  17. package/src/sap/ui/layout/GridRenderer.js +1 -1
  18. package/src/sap/ui/layout/HorizontalLayout.js +1 -1
  19. package/src/sap/ui/layout/PaneContainer.js +1 -1
  20. package/src/sap/ui/layout/ResponsiveFlowLayout.js +1 -1
  21. package/src/sap/ui/layout/ResponsiveFlowLayoutData.js +1 -1
  22. package/src/sap/ui/layout/ResponsiveSplitter.js +1 -1
  23. package/src/sap/ui/layout/ResponsiveSplitterPage.js +1 -1
  24. package/src/sap/ui/layout/SplitPane.js +1 -1
  25. package/src/sap/ui/layout/Splitter.js +1 -1
  26. package/src/sap/ui/layout/SplitterLayoutData.js +1 -1
  27. package/src/sap/ui/layout/VerticalLayout.js +1 -1
  28. package/src/sap/ui/layout/changeHandler/AddFormContainer.js +24 -34
  29. package/src/sap/ui/layout/changeHandler/AddFormField.js +1 -1
  30. package/src/sap/ui/layout/changeHandler/AddSimpleFormField.js +1 -1
  31. package/src/sap/ui/layout/changeHandler/AddSimpleFormGroup.js +27 -32
  32. package/src/sap/ui/layout/changeHandler/HideSimpleForm.js +11 -9
  33. package/src/sap/ui/layout/changeHandler/MoveSimpleForm.js +12 -12
  34. package/src/sap/ui/layout/changeHandler/RenameFormContainer.js +8 -19
  35. package/src/sap/ui/layout/changeHandler/RenameSimpleForm.js +18 -20
  36. package/src/sap/ui/layout/changeHandler/UnhideSimpleForm.js +13 -13
  37. package/src/sap/ui/layout/cssgrid/CSSGrid.js +1 -1
  38. package/src/sap/ui/layout/cssgrid/GridBasicLayout.js +1 -1
  39. package/src/sap/ui/layout/cssgrid/GridBoxLayout.js +1 -1
  40. package/src/sap/ui/layout/cssgrid/GridItemLayoutData.js +1 -1
  41. package/src/sap/ui/layout/cssgrid/GridLayoutBase.js +1 -1
  42. package/src/sap/ui/layout/cssgrid/GridLayoutDelegate.js +1 -1
  43. package/src/sap/ui/layout/cssgrid/GridResponsiveLayout.js +1 -1
  44. package/src/sap/ui/layout/cssgrid/GridSettings.js +1 -1
  45. package/src/sap/ui/layout/cssgrid/ResponsiveColumnItemLayoutData.js +1 -1
  46. package/src/sap/ui/layout/cssgrid/ResponsiveColumnLayout.js +1 -1
  47. package/src/sap/ui/layout/designtime/form/Form.designtime.js +3 -0
  48. package/src/sap/ui/layout/designtime/form/FormContainer.designtime.js +4 -1
  49. package/src/sap/ui/layout/designtime/form/SimpleForm.designtime.js +4 -1
  50. package/src/sap/ui/layout/form/ColumnContainerData.js +1 -1
  51. package/src/sap/ui/layout/form/ColumnElementData.js +1 -1
  52. package/src/sap/ui/layout/form/ColumnLayout.js +1 -1
  53. package/src/sap/ui/layout/form/Form.js +1 -1
  54. package/src/sap/ui/layout/form/FormContainer.js +1 -1
  55. package/src/sap/ui/layout/form/FormElement.js +1 -1
  56. package/src/sap/ui/layout/form/FormLayout.js +1 -1
  57. package/src/sap/ui/layout/form/GridContainerData.js +1 -1
  58. package/src/sap/ui/layout/form/GridElementData.js +1 -1
  59. package/src/sap/ui/layout/form/GridLayout.js +1 -1
  60. package/src/sap/ui/layout/form/ResponsiveGridLayout.js +1 -1
  61. package/src/sap/ui/layout/form/ResponsiveLayout.js +1 -1
  62. package/src/sap/ui/layout/form/SemanticFormElement.js +1 -1
  63. package/src/sap/ui/layout/form/SimpleForm.js +1 -1
  64. package/src/sap/ui/layout/library.js +2 -2
package/.eslintrc.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "overrides": [
3
3
  /*
4
- * Productive code, sample and unit test code of sap.ui.layout has been cleaned up.
4
+ * Productive code and test code of sap.ui.layout has been cleaned up.
5
5
  * No more references to the global jQuery allowed
6
6
  */
7
7
  {
8
8
  "files": [
9
9
  "src/**/*.js",
10
- "test/sap/ui/layout/demokit/**/*.js",
11
- "test/sap/ui/layout/qunit/**/*.js"
10
+ "test/**/*.js"
12
11
  ],
13
12
  "globals": {
14
13
  "jQuery": "off"
package/.reuse/dep5 CHANGED
@@ -137,6 +137,11 @@ Copyright: jQuery Foundation and other contributors
137
137
  License: MIT
138
138
  Comment: these files belong to: QUnit 2
139
139
 
140
+ Files: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.*
141
+ Copyright: jQuery Foundation and other contributors
142
+ License: MIT
143
+ Comment: these files belong to: QUnit 2.18
144
+
140
145
  Files: src/sap.ui.core/src/sap/ui/thirdparty/jquery-compat.js
141
146
  Copyright: OpenJS Foundation and other contributors
142
147
  License: MIT
@@ -154,7 +159,7 @@ Copyright:
154
159
  License: Apache-2.0 and MIT
155
160
  Comment: these files contain content from SAP and jQuery.rtl-scroll-type: _FeatureDetection.js is overall written by SAP, but contains code which is inspired by jQuery.rtl-scroll-type
156
161
 
157
- Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite*
162
+ Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.*
158
163
  Copyright: jQuery Foundation and other contributors
159
164
  License: MIT
160
165
  Comment: these files belong to: QUnit Composite
@@ -234,6 +239,11 @@ Copyright: 2010-2017, Christian Johansen, christian@cjohansen.no
234
239
  License: BSD-3-Clause
235
240
  Comment: these files belong to: SinonJS
236
241
 
242
+ Files: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-14.0.*
243
+ Copyright: 2010-2022, Christian Johansen, christian@cjohansen.no
244
+ License: BSD-3-Clause
245
+ Comment: these files belong to: SinonJS 14
246
+
237
247
  Files: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
238
248
  Copyright: 2010-2011, Christian Johansen
239
249
  License: BSD-3-Clause
@@ -339,6 +349,13 @@ Copyright:
339
349
  License: Apache-2.0 and ISC
340
350
  Comment: these files contain content from SAP and node-lru-cache: LRUPersistentCache.js is overall written by SAP, but portions ('Least Recently Used' logic) are taken from the node-lru-cache project (see https://github.com/isaacs/node-lru-cache/blob/v2.7.3/README.md) and modified.
341
351
 
352
+ Files: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
353
+ Copyright:
354
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
355
+ Arthur David Olson, Paul Eggert and other contributors
356
+ License: Apache-2.0 and LicenseRef-tzdata-PublicDomain
357
+ Comment: these files contain content from SAP and Time Zone Database: _timezones.js is overall written by SAP, but the list of IANA timezone IDs is taken from the Timezone Database
358
+
342
359
 
343
360
  # Library: sap.ui.documentation:
344
361
 
@@ -0,0 +1,5 @@
1
+ Unless specified below, all files in the tz code and data (including
2
+ this LICENSE file) are in the public domain.
3
+
4
+ If the files date.c, newstrftime.3, and strftime.c are present, they
5
+ contain material derived from BSD and use the BSD 3-clause license.
package/THIRDPARTY.txt CHANGED
@@ -76,6 +76,12 @@ License: MIT
76
76
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
77
77
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-2.*
78
78
 
79
+ Component: QUnit 2.18, version: 2.18.0
80
+ Copyright: jQuery Foundation and other contributors
81
+ License: MIT
82
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
83
+ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.*
84
+
79
85
  Component: jQuery-Migrate, version: 3.3.1
80
86
  Copyright: OpenJS Foundation and other contributors
81
87
  License: MIT
@@ -98,7 +104,7 @@ Component: QUnit Composite, version: 1.0.2-pre
98
104
  Copyright: jQuery Foundation and other contributors
99
105
  License: MIT
100
106
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
101
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite*
107
+ Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.*
102
108
 
103
109
  Component: JUnit Reporter for QUnit, version: 1.1.1
104
110
  Copyright: jQuery Foundation and other contributors
@@ -191,13 +197,19 @@ License: BSD-3-Clause
191
197
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
192
198
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-4.js
193
199
 
200
+ Component: SinonJS 14, version: 14.0.0
201
+ Copyright: 2010-2022, Christian Johansen, christian@cjohansen.no
202
+ License: BSD-3-Clause
203
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
204
+ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-14.0.*
205
+
194
206
  Component: Sinon-qunit, version: 2.0.0
195
207
  Copyright: 2010-2011, Christian Johansen
196
208
  License: BSD-3-Clause
197
209
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
198
210
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
199
211
 
200
- Component: URI.js, version: 1.19.10
212
+ Component: URI.js, version: 1.19.11
201
213
  Copyright: Rodney Rehm
202
214
  License: MIT
203
215
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
@@ -315,6 +327,12 @@ License: ISC
315
327
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/ISC.txt
316
328
  Contained in: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
317
329
 
330
+ Component: Time Zone Database, version: 2022a
331
+ Copyright: Arthur David Olson, Paul Eggert and other contributors
332
+ License: LicenseRef-tzdata-PublicDomain
333
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/LicenseRef-tzdata-PublicDomain.txt
334
+ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
335
+
318
336
 
319
337
  Library: sap.ui.documentation:
320
338
 
@@ -450,7 +468,7 @@ License: Apache-2.0
450
468
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
451
469
  Contained in: lib/jsdoc/ui5/plugin.js
452
470
 
453
- Component: SAP Theming Base Content, version: 11.1.39
471
+ Component: SAP Theming Base Content, version: 11.1.40
454
472
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
455
473
  License: Apache-2.0
456
474
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -980,6 +998,21 @@ END of license: LicenseRef-JSONinJSPublicDomain
980
998
  =================================
981
999
 
982
1000
 
1001
+ =================================
1002
+ BEGIN of license: LicenseRef-tzdata-PublicDomain
1003
+ =================================
1004
+
1005
+ Unless specified below, all files in the tz code and data (including
1006
+ this LICENSE file) are in the public domain.
1007
+
1008
+ If the files date.c, newstrftime.3, and strftime.c are present, they
1009
+ contain material derived from BSD and use the BSD 3-clause license.
1010
+
1011
+ =================================
1012
+ END of license: LicenseRef-tzdata-PublicDomain
1013
+ =================================
1014
+
1015
+
983
1016
  =================================
984
1017
  BEGIN of license: MIT
985
1018
  =================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.layout",
3
- "version": "1.103.0",
3
+ "version": "1.105.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.103.0"
17
+ "@openui5/sap.ui.core": "1.105.0"
18
18
  }
19
19
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.103.0</version>
9
+ <version>1.105.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.103.0
43
+ * @version 1.105.0
44
44
  *
45
45
  * @constructor
46
46
  * @private
@@ -7,9 +7,8 @@
7
7
  sap.ui.define([
8
8
  './Splitter',
9
9
  './SplitterRenderer',
10
- "sap/base/Log",
11
- "sap/ui/layout/SplitterLayoutData"
12
- ], function(Splitter, SplitterRenderer, Log, SplitterLayoutData) {
10
+ "sap/base/Log"
11
+ ], function(Splitter, SplitterRenderer, Log) {
13
12
  "use strict";
14
13
 
15
14
  /**
@@ -25,7 +24,7 @@ sap.ui.define([
25
24
  * @extends sap.ui.layout.Splitter
26
25
  *
27
26
  * @author SAP SE
28
- * @version 1.103.0
27
+ * @version 1.105.0
29
28
  *
30
29
  * @constructor
31
30
  * @private
@@ -63,7 +63,7 @@ sap.ui.define([
63
63
  * @extends sap.ui.core.Control
64
64
  *
65
65
  * @author SAP SE
66
- * @version 1.103.0
66
+ * @version 1.105.0
67
67
  *
68
68
  * @constructor
69
69
  * @public
@@ -9,10 +9,9 @@ sap.ui.define([
9
9
  './library',
10
10
  "./BlockLayoutCellRenderer",
11
11
  "sap/base/Log",
12
- "./BlockLayoutCellData",
13
12
  "sap/ui/thirdparty/jquery"
14
13
  ],
15
- function(Control, library, BlockLayoutCellRenderer, Log, BlockLayoutCellData, jQuery) {
14
+ function(Control, library, BlockLayoutCellRenderer, Log, jQuery) {
16
15
  "use strict";
17
16
 
18
17
  /**
@@ -27,7 +26,7 @@ sap.ui.define([
27
26
  * @extends sap.ui.core.Control
28
27
  *
29
28
  * @author SAP SE
30
- * @version 1.103.0
29
+ * @version 1.105.0
31
30
  *
32
31
  * @constructor
33
32
  * @public
@@ -18,7 +18,7 @@ sap.ui.define(['sap/ui/core/LayoutData', './library'],
18
18
  * @class
19
19
  * Holds layout data for the BlockLayoutCells contents.
20
20
  * @extends sap.ui.core.LayoutData
21
- * @version 1.103.0
21
+ * @version 1.105.0
22
22
  * @constructor
23
23
  * @public
24
24
  * @since 1.50.0
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.ui.core.Control
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.103.0
35
+ * @version 1.105.0
36
36
  *
37
37
  * @constructor
38
38
  * @public
@@ -94,7 +94,7 @@ sap.ui.define([
94
94
  * @extends sap.ui.core.Control
95
95
  *
96
96
  * @author SAP SE
97
- * @version 1.103.0
97
+ * @version 1.105.0
98
98
  *
99
99
  * @constructor
100
100
  * @public
@@ -52,7 +52,7 @@ sap.ui.define([
52
52
  * @extends sap.ui.core.Control
53
53
  *
54
54
  * @author SAP SE
55
- * @version 1.103.0
55
+ * @version 1.105.0
56
56
  *
57
57
  * @constructor
58
58
  * @public
@@ -59,7 +59,7 @@ sap.ui.define([
59
59
  * @extends sap.ui.core.Control
60
60
  *
61
61
  * @author SAP SE
62
- * @version 1.103.0
62
+ * @version 1.105.0
63
63
  *
64
64
  * @constructor
65
65
  * @public
@@ -28,7 +28,7 @@ sap.ui.define(['sap/ui/core/LayoutData', './library', "sap/base/Log"],
28
28
  * @extends sap.ui.core.LayoutData
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.103.0
31
+ * @version 1.105.0
32
32
  *
33
33
  * @constructor
34
34
  * @public
@@ -15,7 +15,7 @@ sap.ui.define(["sap/ui/Device", "sap/ui/layout/library"],
15
15
  /**
16
16
  * @author SAP SE
17
17
  * @version
18
- * 1.103.0
18
+ * 1.105.0
19
19
  * @namespace
20
20
  */
21
21
  var GridRenderer = {
@@ -22,7 +22,7 @@ sap.ui.define(['sap/ui/core/Control', './library', "./HorizontalLayoutRenderer"]
22
22
  * @extends sap.ui.core.Control
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.103.0
25
+ * @version 1.105.0
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -24,7 +24,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element', './AssociativeSplitter', 'sap
24
24
  * @extends sap.ui.core.Element
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.103.0
27
+ * @version 1.105.0
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends sap.ui.core.Control
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.103.0
40
+ * @version 1.105.0
41
41
  *
42
42
  * @constructor
43
43
  * @public
@@ -22,7 +22,7 @@ sap.ui.define(['sap/ui/core/LayoutData', './library', "sap/base/Log"],
22
22
  * @extends sap.ui.core.LayoutData
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.103.0
25
+ * @version 1.105.0
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -70,7 +70,7 @@ sap.ui.define([
70
70
  * @extends sap.ui.core.Control
71
71
  *
72
72
  * @author SAP SE
73
- * @version 1.103.0
73
+ * @version 1.105.0
74
74
  *
75
75
  * @constructor
76
76
  * @public
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.ui.core.Control
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.103.0
27
+ * @version 1.105.0
28
28
  *
29
29
  * @constructor
30
30
  * @private
@@ -26,7 +26,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element'],
26
26
  * @extends sap.ui.core.Element
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.103.0
29
+ * @version 1.105.0
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -68,7 +68,7 @@ sap.ui.define([
68
68
  * @extends sap.ui.core.Control
69
69
  *
70
70
  * @author SAP SE
71
- * @version 1.103.0
71
+ * @version 1.105.0
72
72
  *
73
73
  * @constructor
74
74
  * @public
@@ -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.103.0
27
+ * @version 1.105.0
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.ui.core.Control
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.103.0
28
+ * @version 1.105.0
29
29
  *
30
30
  * @constructor
31
31
  * @public
@@ -6,14 +6,10 @@
6
6
 
7
7
  sap.ui.define([
8
8
  "sap/ui/fl/changeHandler/Base",
9
- "sap/ui/core/util/reflection/JsControlTreeModifier",
10
- "sap/base/Log",
11
- "sap/ui/thirdparty/jquery"
9
+ "sap/ui/core/util/reflection/JsControlTreeModifier"
12
10
  ], function(
13
11
  Base,
14
- JsControlTreeModifier,
15
- Log,
16
- jQuery
12
+ JsControlTreeModifier
17
13
  ) {
18
14
  "use strict";
19
15
 
@@ -21,7 +17,7 @@ sap.ui.define([
21
17
  * Change handler for adding a form group.
22
18
  * @alias sap.ui.layout.changeHandler.AddFormContainer
23
19
  * @author SAP SE
24
- * @version 1.103.0
20
+ * @version 1.105.0
25
21
  * @experimental Since 1.48.0
26
22
  */
27
23
  var AddGroup = { };
@@ -42,18 +38,21 @@ sap.ui.define([
42
38
  var oModifier = mPropertyBag.modifier;
43
39
  var oAppComponent = mPropertyBag.appComponent;
44
40
  var oView = mPropertyBag.view;
45
- var oChangeDefinition = oChange.getDefinition();
41
+ var oContent = oChange.getContent();
42
+ var oTexts = oChange.getTexts();
46
43
 
47
- if (oChangeDefinition.texts
48
- && oChangeDefinition.texts.groupLabel
49
- && oChangeDefinition.texts.groupLabel.value
50
- && oChangeDefinition.content
51
- && oChangeDefinition.content.group
52
- && (oChangeDefinition.content.group.selector || oChangeDefinition.content.group.id)) {
53
- var sTitleText = oChangeDefinition.texts.groupLabel.value;
54
- var iInsertIndex = oChangeDefinition.content.group.index;
55
- var mNewGroupSelector = oChangeDefinition.content.group.selector || { id : oChangeDefinition.content.group.id };
56
- var mNewTitleSelector = jQuery.extend({}, mNewGroupSelector);
44
+ if (
45
+ oTexts
46
+ && oTexts.groupLabel
47
+ && oTexts.groupLabel.value
48
+ && oContent
49
+ && oContent.group
50
+ && (oContent.group.selector || oContent.group.id)
51
+ ) {
52
+ var sTitleText = oTexts.groupLabel.value;
53
+ var iInsertIndex = oContent.group.index;
54
+ var mNewGroupSelector = oContent.group.selector || { id : oContent.group.id };
55
+ var mNewTitleSelector = Object.assign({}, mNewGroupSelector);
57
56
 
58
57
  mNewTitleSelector.id = mNewTitleSelector.id + "--title"; //same as FormRenderer does it
59
58
  oChange.setRevertData({newGroupSelector: mNewGroupSelector});
@@ -81,12 +80,6 @@ sap.ui.define([
81
80
  .then(oModifier.insertAggregation.bind(oModifier, oForm, "formContainers", oGroup, iInsertIndex, oView));
82
81
  });
83
82
  } else {
84
- Log.error("Change does not contain sufficient information to be applied: ["
85
- + oChangeDefinition.layer + "]"
86
- + oChangeDefinition.namespace + "/"
87
- + oChangeDefinition.fileName + "."
88
- + oChangeDefinition.fileType);
89
- //however subsequent changes should be applied
90
83
  return Promise.resolve();
91
84
  }
92
85
  };
@@ -103,32 +96,29 @@ sap.ui.define([
103
96
  * @public
104
97
  */
105
98
  AddGroup.completeChangeContent = function(oChange, oSpecificChangeInfo, mPropertyBag) {
106
- var oChangeDefinition = oChange.getDefinition();
107
99
  var oAppComponent = mPropertyBag.appComponent;
108
100
 
109
101
  if (oSpecificChangeInfo.newLabel) {
110
- Base.setTextInChange(oChangeDefinition, "groupLabel", oSpecificChangeInfo.newLabel, "XFLD");
102
+ oChange.setText("groupLabel", oSpecificChangeInfo.newLabel, "XFLD");
111
103
  } else {
112
104
  throw new Error("Cannot create a new group: oSpecificChangeInfo.groupLabel attribute required");
113
105
  }
114
- if (!oChangeDefinition.content) {
115
- oChangeDefinition.content = {};
116
- }
117
- if (!oChangeDefinition.content.group) {
118
- oChangeDefinition.content.group = {};
119
- }
106
+ var oContent = {
107
+ group: {}
108
+ };
120
109
 
121
110
  if (oSpecificChangeInfo.index === undefined) {
122
111
  throw new Error("Cannot create a new group: oSpecificChangeInfo.index attribute required");
123
112
  } else {
124
- oChangeDefinition.content.group.index = oSpecificChangeInfo.index;
113
+ oContent.group.index = oSpecificChangeInfo.index;
125
114
  }
126
115
 
127
116
  if ( oSpecificChangeInfo.newControlId ){
128
- oChangeDefinition.content.group.selector = JsControlTreeModifier.getSelector(oSpecificChangeInfo.newControlId, oAppComponent);
117
+ oContent.group.selector = JsControlTreeModifier.getSelector(oSpecificChangeInfo.newControlId, oAppComponent);
129
118
  } else {
130
119
  throw new Error("Cannot create a new group: oSpecificChangeInfo.newControlId attribute required");
131
120
  }
121
+ oChange.setContent(oContent);
132
122
  };
133
123
 
134
124
  /**
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  *
20
20
  * @author SAP SE
21
21
  *
22
- * @version 1.103.0
22
+ * @version 1.105.0
23
23
  *
24
24
  * @experimental Since 1.50.0 This class is experimental and provides only limited functionality. Also the API might be
25
25
  * changed in future.
@@ -91,7 +91,7 @@ sap.ui.define([
91
91
  *
92
92
  * @author SAP SE
93
93
  *
94
- * @version 1.103.0
94
+ * @version 1.105.0
95
95
  *
96
96
  * @experimental Since 1.49.0 This class is experimental and provides only limited functionality. Also the API might be
97
97
  * changed in future.