@openui5/sap.ui.layout 1.91.0 → 1.93.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.
Files changed (68) hide show
  1. package/.reuse/dep5 +46 -0
  2. package/THIRDPARTY.txt +59 -1
  3. package/package.json +2 -2
  4. package/src/sap/ui/layout/.library +1 -1
  5. package/src/sap/ui/layout/AlignedFlowLayout.js +1 -1
  6. package/src/sap/ui/layout/AssociativeSplitter.js +1 -1
  7. package/src/sap/ui/layout/BlockLayout.js +1 -1
  8. package/src/sap/ui/layout/BlockLayoutCell.js +1 -1
  9. package/src/sap/ui/layout/BlockLayoutCellData.js +1 -1
  10. package/src/sap/ui/layout/BlockLayoutRow.js +2 -2
  11. package/src/sap/ui/layout/DynamicSideContent.js +4 -4
  12. package/src/sap/ui/layout/FixFlex.js +1 -1
  13. package/src/sap/ui/layout/Grid.js +1 -1
  14. package/src/sap/ui/layout/GridData.js +1 -1
  15. package/src/sap/ui/layout/GridRenderer.js +1 -1
  16. package/src/sap/ui/layout/HorizontalLayout.js +1 -1
  17. package/src/sap/ui/layout/PaneContainer.js +40 -2
  18. package/src/sap/ui/layout/ResponsiveFlowLayout.js +1 -1
  19. package/src/sap/ui/layout/ResponsiveFlowLayoutData.js +1 -1
  20. package/src/sap/ui/layout/ResponsiveSplitter.js +1 -1
  21. package/src/sap/ui/layout/ResponsiveSplitterPage.js +1 -1
  22. package/src/sap/ui/layout/SplitPane.js +13 -4
  23. package/src/sap/ui/layout/Splitter.js +2 -2
  24. package/src/sap/ui/layout/SplitterLayoutData.js +6 -2
  25. package/src/sap/ui/layout/VerticalLayout.js +1 -1
  26. package/src/sap/ui/layout/changeHandler/AddFormContainer.js +49 -22
  27. package/src/sap/ui/layout/changeHandler/AddFormField.js +40 -30
  28. package/src/sap/ui/layout/changeHandler/AddSimpleFormField.js +42 -27
  29. package/src/sap/ui/layout/changeHandler/AddSimpleFormGroup.js +76 -60
  30. package/src/sap/ui/layout/changeHandler/HideSimpleForm.js +166 -92
  31. package/src/sap/ui/layout/changeHandler/MoveSimpleForm.js +185 -141
  32. package/src/sap/ui/layout/changeHandler/RenameFormContainer.js +45 -35
  33. package/src/sap/ui/layout/changeHandler/RenameSimpleForm.js +13 -9
  34. package/src/sap/ui/layout/changeHandler/UnhideSimpleForm.js +64 -49
  35. package/src/sap/ui/layout/cssgrid/CSSGrid.js +1 -1
  36. package/src/sap/ui/layout/cssgrid/GridBasicLayout.js +1 -1
  37. package/src/sap/ui/layout/cssgrid/GridBoxLayout.js +1 -1
  38. package/src/sap/ui/layout/cssgrid/GridBoxLayoutStyleHelper.js +1 -1
  39. package/src/sap/ui/layout/cssgrid/GridItemLayoutData.js +1 -1
  40. package/src/sap/ui/layout/cssgrid/GridLayoutBase.js +1 -1
  41. package/src/sap/ui/layout/cssgrid/GridLayoutDelegate.js +1 -1
  42. package/src/sap/ui/layout/cssgrid/GridResponsiveLayout.js +1 -1
  43. package/src/sap/ui/layout/cssgrid/GridSettings.js +1 -1
  44. package/src/sap/ui/layout/cssgrid/ResponsiveColumnItemLayoutData.js +1 -1
  45. package/src/sap/ui/layout/cssgrid/ResponsiveColumnLayout.js +1 -1
  46. package/src/sap/ui/layout/designtime/form/SimpleForm.designtime.js +7 -2
  47. package/src/sap/ui/layout/form/ColumnContainerData.js +1 -1
  48. package/src/sap/ui/layout/form/ColumnElementData.js +1 -1
  49. package/src/sap/ui/layout/form/ColumnLayout.js +8 -5
  50. package/src/sap/ui/layout/form/ColumnLayoutRenderer.js +4 -5
  51. package/src/sap/ui/layout/form/Form.js +3 -3
  52. package/src/sap/ui/layout/form/FormContainer.js +3 -3
  53. package/src/sap/ui/layout/form/FormElement.js +2 -4
  54. package/src/sap/ui/layout/form/FormLayout.js +61 -5
  55. package/src/sap/ui/layout/form/FormLayoutRenderer.js +30 -19
  56. package/src/sap/ui/layout/form/GridContainerData.js +1 -1
  57. package/src/sap/ui/layout/form/GridElementData.js +1 -1
  58. package/src/sap/ui/layout/form/GridLayout.js +1 -1
  59. package/src/sap/ui/layout/form/GridLayoutRenderer.js +5 -9
  60. package/src/sap/ui/layout/form/ResponsiveGridLayout.js +8 -10
  61. package/src/sap/ui/layout/form/ResponsiveLayout.js +9 -4
  62. package/src/sap/ui/layout/form/SemanticFormElement.js +53 -36
  63. package/src/sap/ui/layout/form/SimpleForm.js +12 -10
  64. package/src/sap/ui/layout/library.js +4 -2
  65. package/src/sap/ui/layout/themes/base/GridLayout.less +0 -17
  66. package/src/sap/ui/layout/themes/base/ResponsiveLayout.less +0 -10
  67. package/src/sap/ui/layout/themes/base/ResponsiveSplitter.less +4 -2
  68. package/src/sap/ui/layout/themes/base/Splitter.less +1 -9
package/.reuse/dep5 CHANGED
@@ -352,6 +352,11 @@ Copyright: 2006 Google Inc.
352
352
  License: Apache-2.0
353
353
  Comment: these files belong to: google-code-prettify
354
354
 
355
+ Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js/*
356
+ Copyright: 2006-2020, Ivan Sagalaev
357
+ License: BSD-3-Clause
358
+ Comment: these files belong to: highlight.js
359
+
355
360
  Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/elasticlunr.js
356
361
  Copyright: 2017 Wei Song and Oliver Nightingale
357
362
  License: MIT
@@ -411,6 +416,35 @@ License: Apache-2.0 and MIT
411
416
  Comment: these files contain content from SAP and BooleanExpressionEvaluator: BoolExprTool.js is authored by SAP, but partly inspired by BooleanExpressionEvaluator
412
417
 
413
418
 
419
+ # Library: sap.ui.webc.common:
420
+
421
+ Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theme-base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
422
+ Copyright: SAP
423
+ License: Apache-2.0
424
+ Comment: these files belong to: UI5 Web Components
425
+
426
+ Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/*.*
427
+ Copyright: Google LLC
428
+ License: BSD-3-Clause
429
+ Comment: these files belong to: lit-html
430
+
431
+
432
+ # Library: sap.ui.webc.fiori:
433
+
434
+ Files: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
435
+ Copyright: SAP
436
+ License: Apache-2.0
437
+ Comment: these files belong to: UI5 Web Components
438
+
439
+
440
+ # Library: sap.ui.webc.main:
441
+
442
+ Files: src/sap.ui.webc.main/src/sap/ui/webc/main/thirdparty/*.*
443
+ Copyright: SAP
444
+ License: Apache-2.0
445
+ Comment: these files belong to: UI5 Web Components
446
+
447
+
414
448
  # Outside of Libraries:
415
449
 
416
450
  Files: src/testsuite-utils/src/main/resources/META-INF/less/less.js
@@ -423,3 +457,15 @@ Copyright: 2015-2017 Evgeny Poberezkin
423
457
  License: MIT
424
458
  Comment: these files belong to: ajv
425
459
 
460
+ Files: lib/jsdoc/ui5/plugin.js
461
+ Copyright:
462
+ 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
463
+ 2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
464
+ License: Apache-2.0
465
+ Comment: these files contain content from SAP and JSDoc 3: plugin.js is overall written by SAP, but contains code taken from JSDoc 3.6.7 (see the respective comments)
466
+
467
+ Files: src/sap.ui.core/src/sap/ui/core/themes/base/base.less src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
468
+ Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
469
+ License: Apache-2.0
470
+ Comment: these files belong to: SAP Theming Base Content
471
+
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.6
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
@@ -330,6 +330,12 @@ License: Apache-2.0
330
330
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
331
331
  Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
332
332
 
333
+ Component: highlight.js, version: 10.4.1
334
+ Copyright: 2006-2020, Ivan Sagalaev
335
+ License: BSD-3-Clause
336
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
337
+ Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js/*
338
+
333
339
  Component: Elasticlunr, version: 0.9.5
334
340
  Copyright: 2017 Wei Song and Oliver Nightingale
335
341
  License: MIT
@@ -399,6 +405,43 @@ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
399
405
  Contained in: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperators/BoolExprTool.js
400
406
 
401
407
 
408
+ Library: sap.ui.webc.common:
409
+
410
+ Component: UI5 Web Components, version: 1.0.0-rc.12
411
+ Copyright: SAP
412
+ License: Apache-2.0
413
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
414
+ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
415
+ src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theme-base/*.*
416
+ src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.*
417
+ src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.*
418
+ src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
419
+
420
+ Component: lit-html, version: 1.4.1
421
+ Copyright: Google LLC
422
+ License: BSD-3-Clause
423
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
424
+ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/*.*
425
+
426
+
427
+ Library: sap.ui.webc.fiori:
428
+
429
+ Component: UI5 Web Components, version: 1.0.0-rc.12
430
+ Copyright: SAP
431
+ License: Apache-2.0
432
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
433
+ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
434
+
435
+
436
+ Library: sap.ui.webc.main:
437
+
438
+ Component: UI5 Web Components, version: 1.0.0-rc.12
439
+ Copyright: SAP
440
+ License: Apache-2.0
441
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
442
+ Contained in: src/sap.ui.webc.main/src/sap/ui/webc/main/thirdparty/*.*
443
+
444
+
402
445
  Outside of Libraries:
403
446
 
404
447
  Component: LESS, version: 1.6.3
@@ -413,6 +456,21 @@ License: MIT
413
456
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
414
457
  Contained in: ../test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
415
458
 
459
+ Component: JSDoc 3, version: 3.6.7
460
+ Copyright: 2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
461
+ License: Apache-2.0
462
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
463
+ Contained in: lib/jsdoc/ui5/plugin.js
464
+
465
+ Component: SAP Theming Base Content, version: 11.1.34
466
+ Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
467
+ License: Apache-2.0
468
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
469
+ Contained in: src/sap.ui.core/src/sap/ui/core/themes/base/base.less
470
+ src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less
471
+ src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less
472
+ src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
473
+
416
474
 
417
475
  ALL LICENSE TEXTS:
418
476
  ==================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.layout",
3
- "version": "1.91.0",
3
+ "version": "1.93.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.91.0"
17
+ "@openui5/sap.ui.core": "1.93.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.91.0</version>
9
+ <version>1.93.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.91.0
43
+ * @version 1.93.2
44
44
  *
45
45
  * @constructor
46
46
  * @private
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.ui.layout.Splitter
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.91.0
28
+ * @version 1.93.2
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -62,7 +62,7 @@ sap.ui.define([
62
62
  * @extends sap.ui.core.Control
63
63
  *
64
64
  * @author SAP SE
65
- * @version 1.91.0
65
+ * @version 1.93.2
66
66
  *
67
67
  * @constructor
68
68
  * @public
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.ui.core.Control
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.91.0
30
+ * @version 1.93.2
31
31
  *
32
32
  * @constructor
33
33
  * @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.91.0
21
+ * @version 1.93.2
22
22
  * @constructor
23
23
  * @public
24
24
  * @since 1.50.0
@@ -4,7 +4,7 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
- /**
7
+ /**
8
8
  * @typedef {Object} sap.ui.layout.BlockRowColorSets
9
9
  * @typedef {Object} sap.ui.layout.BlockLayoutRow
10
10
  */
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @extends sap.ui.core.Control
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.91.0
39
+ * @version 1.93.2
40
40
  *
41
41
  * @constructor
42
42
  * @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.91.0
97
+ * @version 1.93.2
98
98
  *
99
99
  * @constructor
100
100
  * @public
@@ -384,9 +384,10 @@ sap.ui.define([
384
384
 
385
385
  /**
386
386
  * Returns the breakpoint for the current state of the control.
387
- * If the control is not rendered yet this method will return <code>undefined</code>,
387
+ *
388
+ * If the control is not rendered yet, this method will return <code>undefined</code>,
388
389
  * as current break point calculation is based on the parent container width.
389
- * @returns {String} currentBreakpoint
390
+ * @returns {string} currentBreakpoint
390
391
  * @public
391
392
  */
392
393
  DynamicSideContent.prototype.getCurrentBreakpoint = function () {
@@ -526,7 +527,6 @@ sap.ui.define([
526
527
  sMainContentId = sControlId + "-" + MC_GRID_CELL_SELECTOR;
527
528
 
528
529
  if (!this._oSCScroller && !this._oMCScroller) {
529
- var ScrollEnablement = sap.ui.requireSync("sap/ui/core/delegate/ScrollEnablement");
530
530
  this._oSCScroller = new ScrollEnablement(this, null, {
531
531
  scrollContainerId: sSideContentId,
532
532
  horizontal: false,
@@ -52,7 +52,7 @@ sap.ui.define([
52
52
  * @extends sap.ui.core.Control
53
53
  *
54
54
  * @author SAP SE
55
- * @version 1.91.0
55
+ * @version 1.93.2
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.91.0
62
+ * @version 1.93.2
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.91.0
31
+ * @version 1.93.2
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.91.0
18
+ * 1.93.2
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.91.0
25
+ * @version 1.93.2
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.91.0
27
+ * @version 1.93.2
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -45,13 +45,35 @@ sap.ui.define(['./library', 'sap/ui/core/Element', './AssociativeSplitter', 'sap
45
45
  * The panes to be split. The control will show n-1 splitter bars between n controls in this aggregation.
46
46
  */
47
47
  panes: { type: "sap.ui.core.Element", multiple: true, singularName: "pane" }
48
+ },
49
+ events: {
50
+ /**
51
+ * Fired when contents are resized.
52
+ */
53
+ resize : {
54
+ parameters : {
55
+
56
+ /**
57
+ * An array of values representing the old (pixel)sizes of the split panes,
58
+ * which are inside the pane container.
59
+ */
60
+ oldSizes : {type : "float[]"},
61
+
62
+ /**
63
+ * An array of values representing the new (pixel)sizes of the split panes,
64
+ * which are inside the pane container.
65
+ */
66
+ newSizes : {type : "float[]"}
67
+ }
68
+ }
48
69
  }
49
70
  }});
50
71
 
51
72
  PaneContainer.prototype.init = function () {
52
73
  this._oSplitter = new AssociativeSplitter({
53
74
  orientation: this.getOrientation(),
54
- height: "100%"
75
+ height: "100%",
76
+ resize: this._onSplitterResize.bind(this)
55
77
  });
56
78
  };
57
79
 
@@ -60,6 +82,13 @@ sap.ui.define(['./library', 'sap/ui/core/Element', './AssociativeSplitter', 'sap
60
82
  this._oSplitter = null;
61
83
  };
62
84
 
85
+ PaneContainer.prototype._onSplitterResize = function (oEvent) {
86
+ this.fireResize({
87
+ oldSizes: oEvent.getParameter("oldSizes"),
88
+ newSizes: oEvent.getParameter("newSizes")
89
+ });
90
+ };
91
+
63
92
  /**
64
93
  * Setter for property orientation.
65
94
  * Default value is sap.ui.core.Orientation.Horizontal
@@ -89,6 +118,15 @@ sap.ui.define(['./library', 'sap/ui/core/Element', './AssociativeSplitter', 'sap
89
118
  return this;
90
119
  };
91
120
 
121
+ /**
122
+ * Getter for property layoutData.
123
+ * @public
124
+ * @returns {sap.ui.core.LayoutData} The LayoutData object.
125
+ */
126
+ PaneContainer.prototype.getLayoutData = function() {
127
+ return this._oSplitter.getLayoutData();
128
+ };
129
+
92
130
  /**
93
131
  * Pane insertion
94
132
  *
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends sap.ui.core.Control
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.91.0
40
+ * @version 1.93.2
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.91.0
25
+ * @version 1.93.2
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.91.0
73
+ * @version 1.93.2
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.91.0
27
+ * @version 1.93.2
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.91.0
29
+ * @version 1.93.2
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -63,10 +63,19 @@ sap.ui.define(['./library', 'sap/ui/core/Element'],
63
63
  var oContent = this.getContent();
64
64
  if (oContent) {
65
65
  return oContent.setLayoutData(oLayoutdata);
66
- } else {
67
- this._oLayoutData = oLayoutdata;
68
- return this;
69
66
  }
67
+
68
+ this._oLayoutData = oLayoutdata;
69
+ return this;
70
+ };
71
+
72
+ SplitPane.prototype.getLayoutData = function() {
73
+ var oContent = this.getContent();
74
+ if (oContent) {
75
+ return oContent.getLayoutData();
76
+ }
77
+
78
+ return this._oLayoutData;
70
79
  };
71
80
 
72
81
  // overrides the default set method in order to apply layout data that is provided before content
@@ -66,7 +66,7 @@ sap.ui.define([
66
66
  * @extends sap.ui.core.Control
67
67
  *
68
68
  * @author SAP SE
69
- * @version 1.91.0
69
+ * @version 1.93.2
70
70
  *
71
71
  * @constructor
72
72
  * @public
@@ -231,7 +231,7 @@ sap.ui.define([
231
231
  * Returns the current actual content sizes as pixel value - these values can change with every
232
232
  * resize.
233
233
  *
234
- * @returns {Number[]} Array of px values that correspond to the content area sizes
234
+ * @returns {number[]} Array of px values that correspond to the content area sizes
235
235
  * @protected
236
236
  * @deprecated As of version 1.21. This method is declared as protected in order to assess the need for this feature. It is declared as deprecated because the API might change in case the need for this is high enough to make it part of the official Splitter interface
237
237
  */
@@ -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.91.0
27
+ * @version 1.93.2
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -45,7 +45,11 @@ sap.ui.define(['sap/ui/core/LayoutData', './library'],
45
45
  resizable : {type : "boolean", group : "Behavior", defaultValue : true},
46
46
 
47
47
  /**
48
- * Sets the size of the splitter content.
48
+ * The size of the splitter content.
49
+ * This property is updated when the area is resized by the user.
50
+ *
51
+ * <b>Note:</b> Resizing areas in the sap.ui.layout.Splitter sets this property to "px" values,
52
+ * while resizing areas in the sap.ui.layout.ResponsiveSplitter sets it to % values.
49
53
  */
50
54
  size : {type : "sap.ui.core.CSSSize", group : "Dimension", defaultValue : 'auto'},
51
55
 
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.ui.core.Control
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.91.0
28
+ * @version 1.93.2
29
29
  *
30
30
  * @constructor
31
31
  * @public
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * Change handler for adding a form group.
22
22
  * @alias sap.ui.layout.changeHandler.AddFormContainer
23
23
  * @author SAP SE
24
- * @version 1.91.0
24
+ * @version 1.93.2
25
25
  * @experimental Since 1.48.0
26
26
  */
27
27
  var AddGroup = { };
@@ -35,20 +35,25 @@ sap.ui.define([
35
35
  * @param {object} mPropertyBag.modifier Modifier for the controls
36
36
  * @param {object} mPropertyBag.appComponent Component in which the change should be applied
37
37
  * @param {object} mPropertyBag.view Application view
38
+ * @returns {Promise} Promise resolving when change is successfully applied
38
39
  * @public
39
40
  */
40
41
  AddGroup.applyChange = function(oChange, oForm, mPropertyBag) {
41
- var oModifier = mPropertyBag.modifier,
42
- oAppComponent = mPropertyBag.appComponent,
43
- oView = mPropertyBag.view,
44
- oChangeDefinition = oChange.getDefinition(),
45
- oTitle, oGroup;
42
+ var oModifier = mPropertyBag.modifier;
43
+ var oAppComponent = mPropertyBag.appComponent;
44
+ var oView = mPropertyBag.view;
45
+ var oChangeDefinition = oChange.getDefinition();
46
46
 
47
- if (oChangeDefinition.texts && oChangeDefinition.texts.groupLabel && oChangeDefinition.texts.groupLabel.value && oChangeDefinition.content && oChangeDefinition.content.group && (oChangeDefinition.content.group.selector || oChangeDefinition.content.group.id)) {
48
- var sTitleText = oChangeDefinition.texts.groupLabel.value,
49
- iInsertIndex = oChangeDefinition.content.group.index,
50
- mNewGroupSelector = oChangeDefinition.content.group.selector || { id : oChangeDefinition.content.group.id },
51
- mNewTitleSelector = jQuery.extend({}, mNewGroupSelector);
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);
52
57
 
53
58
  mNewTitleSelector.id = mNewTitleSelector.id + "--title"; //same as FormRenderer does it
54
59
  oChange.setRevertData({newGroupSelector: mNewGroupSelector});
@@ -59,15 +64,30 @@ sap.ui.define([
59
64
  } else if (oModifier.bySelector(mNewGroupSelector, oAppComponent)) {
60
65
  return Base.markAsNotApplicable("Control to be created already exists:" + mNewGroupSelector);
61
66
  }
62
- oTitle = oModifier.createControl("sap.ui.core.Title", oAppComponent, oView, mNewTitleSelector);
63
- oGroup = oModifier.createControl("sap.ui.layout.form.FormContainer", oAppComponent, oView, mNewGroupSelector);
64
67
 
65
- oModifier.setProperty(oTitle, "text", sTitleText);
66
- oModifier.insertAggregation(oGroup, "title", oTitle, 0, oView);
67
- oModifier.insertAggregation(oForm, "formContainers", oGroup, iInsertIndex, oView);
68
+ return Promise.resolve()
69
+ .then(function() {
70
+ return Promise.all([
71
+ oModifier.createControl("sap.ui.core.Title", oAppComponent, oView, mNewTitleSelector),
72
+ oModifier.createControl("sap.ui.layout.form.FormContainer", oAppComponent, oView, mNewGroupSelector)
73
+ ]);
74
+ })
75
+ .then(function(aControls) {
76
+ var oTitle = aControls[0];
77
+ var oGroup = aControls[1];
78
+ oModifier.setProperty(oTitle, "text", sTitleText);
79
+ return Promise.resolve()
80
+ .then(oModifier.insertAggregation.bind(oModifier, oGroup, "title", oTitle, 0, oView))
81
+ .then(oModifier.insertAggregation.bind(oModifier, oForm, "formContainers", oGroup, iInsertIndex, oView));
82
+ });
68
83
  } else {
69
- Log.error("Change does not contain sufficient information to be applied: [" + oChangeDefinition.layer + "]" + oChangeDefinition.namespace + "/" + oChangeDefinition.fileName + "." + oChangeDefinition.fileType);
84
+ Log.error("Change does not contain sufficient information to be applied: ["
85
+ + oChangeDefinition.layer + "]"
86
+ + oChangeDefinition.namespace + "/"
87
+ + oChangeDefinition.fileName + "."
88
+ + oChangeDefinition.fileType);
70
89
  //however subsequent changes should be applied
90
+ return Promise.resolve();
71
91
  }
72
92
  };
73
93
 
@@ -83,8 +103,8 @@ sap.ui.define([
83
103
  * @public
84
104
  */
85
105
  AddGroup.completeChangeContent = function(oChange, oSpecificChangeInfo, mPropertyBag) {
86
- var oChangeDefinition = oChange.getDefinition(),
87
- oAppComponent = mPropertyBag.appComponent;
106
+ var oChangeDefinition = oChange.getDefinition();
107
+ var oAppComponent = mPropertyBag.appComponent;
88
108
 
89
109
  if (oSpecificChangeInfo.newLabel) {
90
110
  Base.setTextInChange(oChangeDefinition, "groupLabel", oSpecificChangeInfo.newLabel, "XFLD");
@@ -120,6 +140,7 @@ sap.ui.define([
120
140
  * @param {object} mPropertyBag.modifier Modifier for the controls
121
141
  * @param {object} mPropertyBag.appComponent Component in which the change should be applied
122
142
  * @param {object} mPropertyBag.view Application view
143
+ * @returns {Promise} Promise resolving when change is successfully reverted
123
144
  * @public
124
145
  */
125
146
  AddGroup.revertChange = function (oChange, oForm, mPropertyBag) {
@@ -129,9 +150,15 @@ sap.ui.define([
129
150
  var mNewGroupSelector = oChange.getRevertData().newGroupSelector;
130
151
 
131
152
  var oGroup = oModifier.bySelector(mNewGroupSelector, oAppComponent, oView);
132
- oModifier.removeAggregation(oForm, "formContainers", oGroup);
133
- oModifier.destroy(oGroup);
134
- oChange.resetRevertData();
153
+
154
+ return Promise.resolve()
155
+ .then(function() {
156
+ return oModifier.removeAggregation(oForm, "formContainers", oGroup);
157
+ })
158
+ .then(function() {
159
+ oModifier.destroy(oGroup);
160
+ oChange.resetRevertData();
161
+ });
135
162
  };
136
163
 
137
164
  return AddGroup;