@openui5/sap.ui.layout 1.102.1 → 1.103.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 (62) hide show
  1. package/package.json +2 -2
  2. package/src/sap/ui/layout/.library +1 -1
  3. package/src/sap/ui/layout/AlignedFlowLayout.js +1 -1
  4. package/src/sap/ui/layout/AssociativeSplitter.js +1 -1
  5. package/src/sap/ui/layout/BlockLayout.js +4 -3
  6. package/src/sap/ui/layout/BlockLayoutCell.js +1 -3
  7. package/src/sap/ui/layout/BlockLayoutCellData.js +1 -1
  8. package/src/sap/ui/layout/BlockLayoutRow.js +1 -1
  9. package/src/sap/ui/layout/DynamicSideContent.js +1 -1
  10. package/src/sap/ui/layout/FixFlex.js +1 -1
  11. package/src/sap/ui/layout/Grid.js +3 -3
  12. package/src/sap/ui/layout/GridData.js +1 -1
  13. package/src/sap/ui/layout/GridRenderer.js +1 -1
  14. package/src/sap/ui/layout/HorizontalLayout.js +1 -1
  15. package/src/sap/ui/layout/PaneContainer.js +2 -2
  16. package/src/sap/ui/layout/ResponsiveFlowLayout.js +2 -2
  17. package/src/sap/ui/layout/ResponsiveFlowLayoutData.js +1 -1
  18. package/src/sap/ui/layout/ResponsiveSplitter.js +1 -1
  19. package/src/sap/ui/layout/ResponsiveSplitterPage.js +1 -1
  20. package/src/sap/ui/layout/ResponsiveSplitterUtilities.js +1 -1
  21. package/src/sap/ui/layout/SplitPane.js +1 -1
  22. package/src/sap/ui/layout/Splitter.js +1 -1
  23. package/src/sap/ui/layout/SplitterLayoutData.js +1 -1
  24. package/src/sap/ui/layout/VerticalLayout.js +1 -1
  25. package/src/sap/ui/layout/changeHandler/AddFormContainer.js +1 -1
  26. package/src/sap/ui/layout/changeHandler/AddFormField.js +1 -1
  27. package/src/sap/ui/layout/changeHandler/AddSimpleFormField.js +1 -1
  28. package/src/sap/ui/layout/changeHandler/AddSimpleFormGroup.js +1 -1
  29. package/src/sap/ui/layout/changeHandler/HideSimpleForm.js +1 -1
  30. package/src/sap/ui/layout/changeHandler/MoveSimpleForm.js +19 -2
  31. package/src/sap/ui/layout/changeHandler/RenameFormContainer.js +1 -1
  32. package/src/sap/ui/layout/changeHandler/RenameSimpleForm.js +1 -1
  33. package/src/sap/ui/layout/changeHandler/UnhideSimpleForm.js +1 -1
  34. package/src/sap/ui/layout/cssgrid/CSSGrid.js +1 -1
  35. package/src/sap/ui/layout/cssgrid/GridBasicLayout.js +1 -1
  36. package/src/sap/ui/layout/cssgrid/GridBoxLayout.js +1 -1
  37. package/src/sap/ui/layout/cssgrid/GridItemLayoutData.js +1 -1
  38. package/src/sap/ui/layout/cssgrid/GridLayoutBase.js +4 -3
  39. package/src/sap/ui/layout/cssgrid/GridLayoutDelegate.js +1 -1
  40. package/src/sap/ui/layout/cssgrid/GridResponsiveLayout.js +1 -1
  41. package/src/sap/ui/layout/cssgrid/GridSettings.js +1 -1
  42. package/src/sap/ui/layout/cssgrid/ResponsiveColumnItemLayoutData.js +1 -1
  43. package/src/sap/ui/layout/cssgrid/ResponsiveColumnLayout.js +1 -1
  44. package/src/sap/ui/layout/designtime/form/FormContainer.designtime.js +1 -1
  45. package/src/sap/ui/layout/form/ColumnContainerData.js +1 -1
  46. package/src/sap/ui/layout/form/ColumnElementData.js +1 -1
  47. package/src/sap/ui/layout/form/ColumnLayout.js +1 -1
  48. package/src/sap/ui/layout/form/Form.js +3 -3
  49. package/src/sap/ui/layout/form/FormContainer.js +3 -3
  50. package/src/sap/ui/layout/form/FormElement.js +2 -2
  51. package/src/sap/ui/layout/form/FormLayout.js +2 -2
  52. package/src/sap/ui/layout/form/GridContainerData.js +1 -1
  53. package/src/sap/ui/layout/form/GridElementData.js +1 -1
  54. package/src/sap/ui/layout/form/GridLayout.js +2 -2
  55. package/src/sap/ui/layout/form/ResponsiveGridLayout.js +3 -3
  56. package/src/sap/ui/layout/form/ResponsiveLayout.js +3 -3
  57. package/src/sap/ui/layout/form/SemanticFormElement.js +1 -1
  58. package/src/sap/ui/layout/form/SimpleForm.js +1 -1
  59. package/src/sap/ui/layout/library.js +4 -4
  60. package/src/sap/ui/layout/themes/base/BlockLayout.less +62 -17
  61. package/src/sap/ui/layout/themes/base/BlockLayoutCell.less +0 -2
  62. package/src/sap/ui/layout/themes/base/BlockLayoutRow.less +2 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.layout",
3
- "version": "1.102.1",
3
+ "version": "1.103.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.102.1"
17
+ "@openui5/sap.ui.core": "1.103.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.102.1</version>
9
+ <version>1.103.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.102.1
43
+ * @version 1.103.0
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.102.1
28
+ * @version 1.103.0
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -38,8 +38,9 @@ sap.ui.define([
38
38
  * </ul>
39
39
  * Background colors are attached directly to the blocks of the layout.
40
40
  *
41
- * <b>Note:</b> With version 1.48 colors can be set for each individual {@link sap.ui.layout.BlockLayoutCell cell}. There are 11 pre-defined color sets, each with 4 different shades for the Belize theme and 6 different shades for the Fiori 3 theme.
42
- * The main colors of the sets can be changed in Theme Designer. To change the background of a particular cell, set <code>backgroundColorSet</code> (main color)
41
+ * <b>Note:</b> With version 1.48 colors can be set for each individual {@link sap.ui.layout.BlockLayoutCell cell}.
42
+ * There are 11 pre-defined color sets, each with 4 different shades for the SAP Belize theme and 6 different shades for the Quartz and Horizon themes.
43
+ * To change the background of a particular cell, set <code>backgroundColorSet</code> (main color)
43
44
  * and <code>backgroundColorShade</code> (shade).
44
45
  *
45
46
  * <b>Note:</b> Usage of disabled, emphasized or subtle links as titles is not recommended. Dark background designs, for example Accent, are not fully supported with regards to Accessibility when used with links as titles.
@@ -62,7 +63,7 @@ sap.ui.define([
62
63
  * @extends sap.ui.core.Control
63
64
  *
64
65
  * @author SAP SE
65
- * @version 1.102.1
66
+ * @version 1.103.0
66
67
  *
67
68
  * @constructor
68
69
  * @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.102.1
30
+ * @version 1.103.0
31
31
  *
32
32
  * @constructor
33
33
  * @public
@@ -74,14 +74,12 @@ sap.ui.define([
74
74
  width: {type: "int", group: "Appearance", defaultValue: 0},
75
75
  /**
76
76
  * The Background color set from which the background color will be selected.
77
- * By using background colors from the predefined sets your colors could later be customized from the Theme Designer.
78
77
  * <b>Note:</b> backgroundColorSet should be used only in combination with backgroundColorShade.
79
78
  * @since 1.48
80
79
  */
81
80
  backgroundColorSet: {type: "sap.ui.layout.BlockLayoutCellColorSet", group: "Appearance"},
82
81
  /**
83
82
  * The index of the background color in the color set from which the color will be selected.
84
- * By using background colors from the predefined sets your colors could later be customized from the Theme Designer.
85
83
  * <b>Note:</b> backgroundColorShade should be used only in combination with backgroundColorSet.
86
84
  * @since 1.48
87
85
  */
@@ -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.102.1
21
+ * @version 1.103.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.102.1
35
+ * @version 1.103.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.102.1
97
+ * @version 1.103.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.102.1
55
+ * @version 1.103.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.102.1
62
+ * @version 1.103.0
63
63
  *
64
64
  * @constructor
65
65
  * @public
@@ -351,14 +351,14 @@ sap.ui.define([
351
351
 
352
352
  if (!oLayoutData) {
353
353
  return undefined;
354
- } else if (oLayoutData instanceof sap.ui.layout.GridData) {
354
+ } else if (oLayoutData.isA("sap.ui.layout.GridData")) {
355
355
  return oLayoutData;
356
356
  } else if (oLayoutData.isA("sap.ui.core.VariantLayoutData")) {
357
357
  // multiple LayoutData available - search here
358
358
  var aLayoutData = oLayoutData.getMultipleLayoutData();
359
359
  for ( var i = 0; i < aLayoutData.length; i++) {
360
360
  var oLayoutData2 = aLayoutData[i];
361
- if (oLayoutData2 instanceof sap.ui.layout.GridData) {
361
+ if (oLayoutData2 && oLayoutData2.isA("sap.ui.layout.GridData")) {
362
362
  return oLayoutData2;
363
363
  }
364
364
  }
@@ -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.102.1
31
+ * @version 1.103.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.102.1
18
+ * 1.103.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.102.1
25
+ * @version 1.103.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.102.1
27
+ * @version 1.103.0
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -103,7 +103,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element', './AssociativeSplitter', 'sap
103
103
 
104
104
  PaneContainer.prototype._getPanesInInterval = function (iFrom) {
105
105
  return this.getPanes().filter(function(oPane) {
106
- return oPane instanceof sap.ui.layout.SplitPane && oPane._isInInterval(iFrom);
106
+ return oPane && oPane.isA("sap.ui.layout.SplitPane") && oPane._isInInterval(iFrom);
107
107
  });
108
108
  };
109
109
 
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends sap.ui.core.Control
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.102.1
40
+ * @version 1.103.0
41
41
  *
42
42
  * @constructor
43
43
  * @public
@@ -720,7 +720,7 @@ sap.ui.define([
720
720
  * The difference with the function rect() in sap/ui/dom/jquery/rect.js is that the height and width are cut to the
721
721
  * 1st digit after the decimal separator and this is consistent across all browsers.
722
722
  * @param {object} oElement The jQuery collection to check
723
- * @returns {object} Object with properties top, left, width and height or null if no such element
723
+ * @returns {object|null} Object with properties top, left, width and height or null if no such element
724
724
  * @private
725
725
  */
726
726
  ResponsiveFlowLayout.prototype._getElementRect = function (oElement) {
@@ -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.102.1
25
+ * @version 1.103.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.102.1
73
+ * @version 1.103.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.102.1
27
+ * @version 1.103.0
28
28
  *
29
29
  * @constructor
30
30
  * @private
@@ -20,7 +20,7 @@ sap.ui.define([], function() {
20
20
  aPanes = oPaneContainer.getPanes();
21
21
  for (var i = 0; i < aPanes.length; i++) {
22
22
  oPane = aPanes[i];
23
- if (oPane instanceof sap.ui.layout.SplitPane) {
23
+ if (oPane && oPane.isA("sap.ui.layout.SplitPane")) {
24
24
  fnCallback(oPane);
25
25
  } else {
26
26
  RSUtil.visitPanes(oPane, fnCallback);
@@ -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.102.1
29
+ * @version 1.103.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.102.1
71
+ * @version 1.103.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.102.1
27
+ * @version 1.103.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.102.1
28
+ * @version 1.103.0
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.102.1
24
+ * @version 1.103.0
25
25
  * @experimental Since 1.48.0
26
26
  */
27
27
  var AddGroup = { };
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  *
20
20
  * @author SAP SE
21
21
  *
22
- * @version 1.102.1
22
+ * @version 1.103.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.102.1
94
+ * @version 1.103.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.
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * Change handler for adding a simple form group.
20
20
  * @alias sap.ui.layout.changeHandler.AddSimpleFormGroup
21
21
  * @author SAP SE
22
- * @version 1.102.1
22
+ * @version 1.103.0
23
23
  * @experimental Since 1.27.0
24
24
  */
25
25
  var AddSimpleFormGroup = {};
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * Change handler for hiding of a control.
18
18
  * @alias sap.ui.fl.changeHandler.HideControl
19
19
  * @author SAP SE
20
- * @version 1.102.1
20
+ * @version 1.103.0
21
21
  * @experimental Since 1.27.0
22
22
  */
23
23
  var HideForm = { };
@@ -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.102.1
23
+ * @version 1.103.0
24
24
  * @experimental Since 1.34.0
25
25
  */
26
26
  var MoveSimpleForm = {};
@@ -463,16 +463,33 @@ sap.ui.define([
463
463
  };
464
464
 
465
465
  MoveSimpleForm.getChangeVisualizationInfo = function(oChange, oAppComponent) {
466
+ var oSourceParentContainer;
467
+ var oTargetParentContainer;
466
468
  var oMovedElement = oChange.getContent().movedElements[0];
467
469
  var oGroupSelector = oMovedElement.source.groupSelector;
468
470
  var oAffectedControlSelector = JsControlTreeModifier.bySelector(oMovedElement.elementSelector, oAppComponent).getParent().getId();
471
+ if (oChange.getChangeType() === MoveSimpleForm.CHANGE_TYPE_MOVE_FIELD) {
472
+ var mPropertyBag = {
473
+ modifier: JsControlTreeModifier,
474
+ appComponent: oAppComponent
475
+ };
476
+ oSourceParentContainer = oChange.getDependentControl("sourceParent", mPropertyBag).getParent().getId();
477
+ oTargetParentContainer = oChange.getDependentControl("targetParent", mPropertyBag).getParent().getId();
478
+ oGroupSelector = {
479
+ id: oSourceParentContainer
480
+ };
481
+ }
469
482
  return {
470
483
  affectedControls: [oAffectedControlSelector],
471
484
  dependentControls: [
472
485
  oGroupSelector && oGroupSelector.id
473
486
  ? oGroupSelector
474
487
  : oChange.getContent().targetSelector
475
- ]
488
+ ],
489
+ payload: {
490
+ sourceParentContainer: oSourceParentContainer,
491
+ targetParentContainer: oTargetParentContainer
492
+ }
476
493
  };
477
494
  };
478
495
 
@@ -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.102.1
21
+ * @version 1.103.0
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.
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  *
21
21
  * @alias sap.ui.layout.changeHandler.RenameForm
22
22
  * @author SAP SE
23
- * @version 1.102.1
23
+ * @version 1.103.0
24
24
  * @since 1.40
25
25
  * @private
26
26
  * @experimental Since 1.40. This class is experimental and provides only limited functionality. Also the API might be changed in future.
@@ -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.102.1
16
+ * @version 1.103.0
17
17
  * @experimental Since 1.27.0
18
18
  */
19
19
  var UnhideForm = { };
@@ -96,7 +96,7 @@ sap.ui.define([
96
96
  * @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout MDN web docs: CSS Grid Layout}
97
97
  *
98
98
  * @author SAP SE
99
- * @version 1.102.1
99
+ * @version 1.103.0
100
100
  *
101
101
  * @extends sap.ui.core.Control
102
102
  * @implements sap.ui.layout.cssgrid.IGridConfigurable
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * Applies a sap.ui.layout.cssgrid.GridSettings to a provided DOM element or Control.
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.102.1
24
+ * @version 1.103.0
25
25
  *
26
26
  * @extends sap.ui.layout.cssgrid.GridLayoutBase
27
27
  *
@@ -48,7 +48,7 @@ sap.ui.define([
48
48
  * Applies a sap.ui.layout.cssgrid.GridSettings to a provided DOM element or Control.
49
49
  *
50
50
  * @author SAP SE
51
- * @version 1.102.1
51
+ * @version 1.103.0
52
52
  *
53
53
  * @extends sap.ui.layout.cssgrid.GridLayoutBase
54
54
  *
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * Holds layout data for a grid item.
30
30
  *
31
31
  * @extends sap.ui.core.LayoutData
32
- * @version 1.102.1
32
+ * @version 1.103.0
33
33
  *
34
34
  * @constructor
35
35
  * @public
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * Applies a sap.ui.layout.cssgrid.GridSettings to a provided DOM element or Control.
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.102.1
39
+ * @version 1.103.0
40
40
  *
41
41
  * @extends sap.ui.base.ManagedObject
42
42
  *
@@ -201,9 +201,10 @@ sap.ui.define([
201
201
  };
202
202
 
203
203
  /**
204
- * Should return sap.ui.layout.cssgrid.GridSettings - The active GridSettings
205
- * Must be implemented by child classes
204
+ * Should return the active GridSettings.
205
+ * Must be implemented by child classes.
206
206
  * @abstract
207
+ * @returns {sap.ui.layout.cssgrid.GridSettings}
207
208
  * @public
208
209
  */
209
210
  GridLayoutBase.prototype.getActiveGridSettings = function () {
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  *
21
21
  * @extends sap.ui.base.Object
22
22
  *
23
- * @version 1.102.1
23
+ * @version 1.103.0
24
24
  * @alias sap.ui.layout.cssgrid.GridLayoutDelegate
25
25
  * @public
26
26
  */
@@ -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.102.1
24
+ * @version 1.103.0
25
25
  *
26
26
  * @extends sap.ui.layout.cssgrid.GridLayoutBase
27
27
  *
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * Holds a set of CSS display:grid properties
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.102.1
23
+ * @version 1.103.0
24
24
  *
25
25
  * @extends sap.ui.base.ManagedObject
26
26
  *
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * Holds layout data for an item inside a responsive column layout.
21
21
  *
22
22
  * @extends sap.ui.core.LayoutData
23
- * @version 1.102.1
23
+ * @version 1.103.0
24
24
  *
25
25
  * @since 1.72
26
26
  * @constructor
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * Grid row's height is dynamically determined by the height of the highest grid element on this row.
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.102.1
36
+ * @version 1.103.0
37
37
  *
38
38
  * @extends sap.ui.layout.cssgrid.GridLayoutBase
39
39
  *
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  var oForm = fnFindForm(oFormContainer);
34
34
  if (oForm &&
35
35
  oForm.getLayout() &&
36
- oForm.getLayout().getMetadata().getName() === "sap.ui.layout.form.GridLayout") {
36
+ oForm.getLayout().isA("sap.ui.layout.form.GridLayout")) {
37
37
  return false;
38
38
  }
39
39
  return true;
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.LayoutData
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.102.1
29
+ * @version 1.103.0
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.LayoutData
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.102.1
29
+ * @version 1.103.0
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -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.102.1
63
+ * @version 1.103.0
64
64
  *
65
65
  * @constructor
66
66
  * @public
@@ -44,7 +44,7 @@ sap.ui.define([
44
44
  * @extends sap.ui.core.Control
45
45
  *
46
46
  * @author SAP SE
47
- * @version 1.102.1
47
+ * @version 1.103.0
48
48
  *
49
49
  * @constructor
50
50
  * @public
@@ -246,7 +246,7 @@ sap.ui.define([
246
246
  * If the <code>FormContainer</code> has a DOM representation this function returns it,
247
247
  * independent from the ID of this DOM element
248
248
  * @param {sap.ui.layout.form.FormContainer} oContainer <code>FormContainer</code>
249
- * @return {Element} The Element's DOM representation or null
249
+ * @return {Element|null} The Element's DOM representation or null
250
250
  * @private
251
251
  */
252
252
  Form.prototype.getContainerRenderedDomRef = function(oContainer) {
@@ -265,7 +265,7 @@ sap.ui.define([
265
265
  * If the <code>FormElement</code> has a DOM representation this function returns it,
266
266
  * independent from the ID of this DOM element
267
267
  * @param {sap.ui.layout.form.FormElement} oElement <code>FormElement</code>
268
- * @return {Element} The Element's DOM representation or null
268
+ * @return {Element|null} The Element's DOM representation or null
269
269
  * @private
270
270
  */
271
271
  Form.prototype.getElementRenderedDomRef = function(oElement) {
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.ui.core.Element
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.102.1
31
+ * @version 1.103.0
32
32
  *
33
33
  * @constructor
34
34
  * @public
@@ -241,7 +241,7 @@ sap.ui.define([
241
241
  * As Elements must not have a DOM reference it is not sure if one exists
242
242
  * If the FormContainer has a DOM representation this function returns it,
243
243
  * independent from the ID of this DOM element
244
- * @return {Element} The Element's DOM representation or null
244
+ * @return {Element|null} The Element's DOM representation or null
245
245
  * @private
246
246
  */
247
247
  FormContainer.prototype.getRenderedDomRef = function(){
@@ -262,7 +262,7 @@ sap.ui.define([
262
262
  * If the FormElement has a DOM representation this function returns it,
263
263
  * independent from the ID of this DOM element
264
264
  * @param {sap.ui.layout.form.FormElement} oElement FormElement
265
- * @return {Element} The Element's DOM representation or null
265
+ * @return {Element|null} The Element's DOM representation or null
266
266
  * @private
267
267
  */
268
268
  FormContainer.prototype.getElementRenderedDomRef = function(oElement){
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.Element
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.102.1
29
+ * @version 1.103.0
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -290,7 +290,7 @@ sap.ui.define([
290
290
  * As Elements must not have a DOM reference it is not sure if one exists
291
291
  * If the FormElement has a DOM representation this function returns it,
292
292
  * independent from the ID of this DOM element
293
- * @return {Element} The Element's DOM representation or null
293
+ * @return {Element|null} The Element's DOM representation or null
294
294
  * @private
295
295
  */
296
296
  FormElement.prototype.getRenderedDomRef = function(){
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @extends sap.ui.core.Control
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.102.1
39
+ * @version 1.103.0
40
40
  *
41
41
  * @constructor
42
42
  * @public
@@ -895,7 +895,7 @@ sap.ui.define([
895
895
  * As Elements must not have a DOM reference it is not sure if one exists
896
896
  * In this basic <code>FormLayout</code> each <code>FormContainer</code> has its own DOM.
897
897
  * @param {sap.ui.layout.form.FormContainer} oContainer <code>FormContainer</code>
898
- * @return {Element} The Element's DOM representation or null
898
+ * @return {Element|null} The Element's DOM representation or null
899
899
  * @private
900
900
  */
901
901
  FormLayout.prototype.getContainerRenderedDomRef = function(oContainer) {
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.ui.core.LayoutData
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.102.1
25
+ * @version 1.103.0
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.ui.core.LayoutData
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.102.1
25
+ * @version 1.103.0
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -28,7 +28,7 @@ sap.ui.define(['sap/ui/layout/library', './FormLayout', './GridLayoutRenderer'],
28
28
  * @extends sap.ui.layout.form.FormLayout
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.102.1
31
+ * @version 1.103.0
32
32
  *
33
33
  * @constructor
34
34
  * @public
@@ -202,7 +202,7 @@ sap.ui.define(['sap/ui/layout/library', './FormLayout', './GridLayoutRenderer'],
202
202
  * In <code>GridLayout</code> a <code>FormContainer</code> can't have a surrounding DOM element,
203
203
  * so it always returns null
204
204
  * @param {sap.ui.layout.form.FormContainer} oContainer <code>FormContainer</code>
205
- * @return {Element} The Element's DOM representation or null
205
+ * @return {Element|null} The Element's DOM representation or null
206
206
  * @private
207
207
  */
208
208
  GridLayout.prototype.getContainerRenderedDomRef = function(oContainer) {
@@ -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.102.1
56
+ * @version 1.103.0
57
57
  *
58
58
  * @constructor
59
59
  * @public
@@ -415,7 +415,7 @@ sap.ui.define([
415
415
  * In this case, the panel's DOM reference is returned, otherwise the DOM reference
416
416
  * of the <code>Grid</code> rendering the container's content.
417
417
  * @param {sap.ui.layout.form.FormContainer} oContainer <code>FormContainer</code>
418
- * @return {Element} The Element's DOM representation or null
418
+ * @return {Element|null} The Element's DOM representation or null
419
419
  * @private
420
420
  */
421
421
  ResponsiveGridLayout.prototype.getContainerRenderedDomRef = function(oContainer) {
@@ -443,7 +443,7 @@ sap.ui.define([
443
443
  * In this Layout a <code>FormElement</code> has no DOM representation,
444
444
  * so null will always be returned
445
445
  * @param {sap.ui.layout.form.FormElement} oElement <code>FormElement</code>
446
- * @return {Element} The Element's DOM representation or null
446
+ * @return {Element|null} The Element's DOM representation or null
447
447
  * @private
448
448
  */
449
449
  ResponsiveGridLayout.prototype.getElementRenderedDomRef = function(oElement) {
@@ -50,7 +50,7 @@ sap.ui.define([
50
50
  * @extends sap.ui.layout.form.FormLayout
51
51
  *
52
52
  * @author SAP SE
53
- * @version 1.102.1
53
+ * @version 1.103.0
54
54
  *
55
55
  * @constructor
56
56
  * @public
@@ -312,7 +312,7 @@ sap.ui.define([
312
312
  * In this case, the panel's DOM reference is returned, otherwise the DOM reference
313
313
  * of the <code>ResponsiveFlowLayout</code> rendering the container's content.
314
314
  * @param {sap.ui.layout.form.FormContainer} oContainer <code>FormContainer</code>
315
- * @return {Element} The Element's DOM representation or null
315
+ * @return {Element|null} The Element's DOM representation or null
316
316
  * @private
317
317
  */
318
318
  ResponsiveLayout.prototype.getContainerRenderedDomRef = function(oContainer) {
@@ -340,7 +340,7 @@ sap.ui.define([
340
340
  * In this Layout each <code>FormElement</code> is represented by an own ResponsiveFlowLayout.
341
341
  * So the DOM of this <code>ResponsiveFlowLayout</code> is returned
342
342
  * @param {sap.ui.layout.form.FormElement} oElement <code>FormElement</code>
343
- * @return {Element} The Element's DOM representation or null
343
+ * @return {Element|null} The Element's DOM representation or null
344
344
  * @private
345
345
  */
346
346
  ResponsiveLayout.prototype.getElementRenderedDomRef = function(oElement) {
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.ui.layout.form.FormElement
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.102.1
33
+ * @version 1.103.0
34
34
  *
35
35
  * @constructor
36
36
  * @public
@@ -67,7 +67,7 @@ sap.ui.define([
67
67
  * <b>Note:</b> If a more complex form is needed, use the <code>{@link sap.ui.layout.form.Form Form}</code> control instead.
68
68
  *
69
69
  * @extends sap.ui.core.Control
70
- * @version 1.102.1
70
+ * @version 1.103.0
71
71
  *
72
72
  * @constructor
73
73
  * @public
@@ -20,13 +20,13 @@ sap.ui.define([
20
20
  * @namespace
21
21
  * @alias sap.ui.layout
22
22
  * @author SAP SE
23
- * @version 1.102.1
23
+ * @version 1.103.0
24
24
  * @since 1.15
25
25
  * @public
26
26
  */
27
27
  var thisLib = sap.ui.getCore().initLibrary({
28
28
  name : "sap.ui.layout",
29
- version: "1.102.1",
29
+ version: "1.103.0",
30
30
  dependencies: ["sap.ui.core"],
31
31
  designtime: "sap/ui/layout/designtime/library.designtime",
32
32
  types: [
@@ -494,13 +494,13 @@ sap.ui.define([
494
494
  */
495
495
  ShadeD: "ShadeD",
496
496
  /**
497
- * Shade E - available only for Fiori 3 theme
497
+ * Shade E - available only for SAP Quartz and Horizon themes
498
498
  *
499
499
  * @public
500
500
  */
501
501
  ShadeE: "ShadeE",
502
502
  /**
503
- * Shade F - available only for Fiori 3 theme
503
+ * Shade F - available only for SAP Quartz and Horizon themes
504
504
  *
505
505
  * @public
506
506
  */
@@ -8,11 +8,13 @@
8
8
  @_sap_ui_layout_BlockLayout_BackgroundDashboardMargin: 0.25rem;
9
9
  @_sap_ui_layout_BlockLayout_BackgroundDashboardEdgeChildMargin: 0.5rem;
10
10
  @_sap_ui_layout_BlockLayout_BackgroundDashboardAfterScrollbarMargin: 0.375rem;
11
-
12
- @_sap_ui_layout_BlockLayout_LinkTextShadow: @sapUiShadowText;
13
-
14
11
  @_sap_ui_layout_BlockLayout_BackgroundDashboardColor: @sapUiContentForegroundTextColor;
15
12
  @_sap_ui_layout_BlockLayout_BackgroundDashboardBorderRadius: 0;
13
+ @_sap_ui_layout_BlockLayout_BackgroundDashboardCellShadow: @sapUiShadowLevel0;
14
+ @_sap_ui_layout_BlockLayout_BackgroundDashboardCellShadowOffset: 0;
15
+
16
+ @_sap_ui_layout_BlockLayout_LinkTextShadow: @sapUiShadowText;
17
+ @_sap_ui_layout_BlockLayout_CellTextColor: @sapUiContentForegroundTextColor;
16
18
 
17
19
  .setCellsColorDoubles (@evenCell, @oddCell) {
18
20
  // Match every even cell
@@ -36,7 +38,7 @@
36
38
  font-family: @sapUiFontFamily;
37
39
  font-weight: normal;
38
40
  font-size: 0.875rem;
39
- color: @sapUiContentForegroundTextColor;
41
+ color: @_sap_ui_layout_BlockLayout_CellTextColor;
40
42
  padding: 1rem;
41
43
 
42
44
  > .sapUiIcon {
@@ -129,11 +131,15 @@
129
131
  .sapUiBlockLayoutCell {
130
132
  font-weight: normal;
131
133
  color: @_sap_ui_layout_BlockLayout_BackgroundDashboardColor;
134
+
135
+ // use padding and negative margin to display box-shadow outside of the cell, because it has overflow: hidden
136
+ padding: @_sap_ui_layout_BlockLayout_BackgroundDashboardCellShadowOffset;
137
+ margin: -@_sap_ui_layout_BlockLayout_BackgroundDashboardCellShadowOffset;
132
138
  }
133
139
 
134
140
  .sapUiBlockCellContent {
135
141
  background-color: @sapUiGroupContentBackground;
136
- box-shadow: @sapUiShadowLevel0;
142
+ box-shadow: @_sap_ui_layout_BlockLayout_BackgroundDashboardCellShadow;
137
143
  margin: @_sap_ui_layout_BlockLayout_BackgroundDashboardMargin;
138
144
  border-radius: @_sap_ui_layout_BlockLayout_BackgroundDashboardBorderRadius;
139
145
  }
@@ -146,19 +152,44 @@
146
152
  }
147
153
 
148
154
  &:not(.sapUiBlockLayoutSizeS) {
149
- .sapUiBlockLayoutCell:first-of-type .sapUiBlockCellContent {
150
- margin-left: @_sap_ui_layout_BlockLayout_BackgroundDashboardEdgeChildMargin; // Adjust first cell in a row with 0.5rem on the left
155
+ .sapUiBlockLayoutCell:first-of-type {
156
+ margin-left: 0;
157
+ padding-left: 0;
158
+
159
+ .sapUiBlockCellContent {
160
+ margin-left: @_sap_ui_layout_BlockLayout_BackgroundDashboardEdgeChildMargin; // Adjust first cell in a row with 0.5rem on the left
161
+ }
151
162
  }
152
- .sapUiBlockLayoutCell:last-of-type .sapUiBlockCellContent {
153
- margin-right: @_sap_ui_layout_BlockLayout_BackgroundDashboardEdgeChildMargin; // Adjust last cell in a row with 0.5rem on the right
163
+
164
+ .sapUiBlockLayoutCell:last-of-type {
165
+ margin-right: 0;
166
+ padding-right: 0;
167
+
168
+ .sapUiBlockCellContent {
169
+ margin-right: @_sap_ui_layout_BlockLayout_BackgroundDashboardEdgeChildMargin; // Adjust last cell in a row with 0.5rem on the right
170
+ }
154
171
  }
155
172
 
156
- .sapUiBlockLayoutRow:first-of-type .sapUiBlockCellContent {
157
- margin-top: @_sap_ui_layout_BlockLayout_BackgroundDashboardEdgeChildMargin; // Adjust spacing at the top for all cells in the first row
173
+ .sapUiBlockLayoutRow:first-of-type {
174
+ .sapUiBlockLayoutCell {
175
+ margin-top: 0;
176
+ padding-top: 0;
177
+ }
178
+
179
+ .sapUiBlockCellContent {
180
+ margin-top: @_sap_ui_layout_BlockLayout_BackgroundDashboardEdgeChildMargin; // Adjust spacing at the top for all cells in the first row
181
+ }
158
182
  }
159
183
 
160
- .sapUiBlockLayoutRow:last-of-type .sapUiBlockCellContent {
161
- margin-bottom: @_sap_ui_layout_BlockLayout_BackgroundDashboardEdgeChildMargin; // Adjust spacing at the bottom for all cells in the last row
184
+ .sapUiBlockLayoutRow:last-of-type {
185
+ .sapUiBlockLayoutCell {
186
+ margin-bottom: 0;
187
+ padding-bottom: 0;
188
+ }
189
+
190
+ .sapUiBlockCellContent {
191
+ margin-bottom: @_sap_ui_layout_BlockLayout_BackgroundDashboardEdgeChildMargin; // Adjust spacing at the bottom for all cells in the last row
192
+ }
162
193
  }
163
194
  }
164
195
 
@@ -170,12 +201,26 @@
170
201
  margin-right: 0.5rem;
171
202
  }
172
203
 
173
- .sapUiBlockLayoutRow:first-of-type .sapUiBlockLayoutCell:first-of-type .sapUiBlockCellContent {
174
- margin-top: 0.5rem; // Add 0.5rem spacing for the first cell in the first row
204
+ .sapUiBlockLayoutRow:first-of-type {
205
+ .sapUiBlockLayoutCell {
206
+ margin-top: 0;
207
+ padding-top: 0;
208
+
209
+ &:first-of-type .sapUiBlockCellContent {
210
+ margin-top: 0.5rem; // Add 0.5rem spacing for the first cell in the first row
211
+ }
212
+ }
175
213
  }
176
214
 
177
- .sapUiBlockLayoutRow:last-of-type .sapUiBlockLayoutCell:last-of-type .sapUiBlockCellContent {
178
- margin-bottom: 0.5rem; // Add 0.5rem spacing for the last cell in the last row
215
+ .sapUiBlockLayoutRow:last-of-type {
216
+ .sapUiBlockLayoutCell {
217
+ margin-bottom: 0;
218
+ padding-bottom: 0;
219
+
220
+ &:last-of-type .sapUiBlockCellContent {
221
+ margin-bottom: 0.5rem; // Add 0.5rem spacing for the last cell in the last row
222
+ }
223
+ }
179
224
  }
180
225
  }
181
226
  }
@@ -6,8 +6,6 @@
6
6
  @_sap_ui_layout_BlockLayoutCell_background: transparent;
7
7
 
8
8
  .sapUiBlockLayoutCell {
9
- display: -webkit-box;
10
- display: -webkit-flex;
11
9
  display: flex;
12
10
  overflow: hidden;
13
11
  }
@@ -4,15 +4,12 @@
4
4
  /* ============================================= */
5
5
 
6
6
  .sapUiBlockScrollingRow {
7
- display: -webkit-box;
8
- display: -webkit-flex;
9
7
  display: flex;
10
- -webkit-flex-wrap: nowrap;
11
8
  flex-wrap: nowrap;
12
- overflow: auto;
9
+ overflow-x: auto;
10
+ overflow-y: hidden;
13
11
 
14
12
  .sapUiBlockScrollableCell {
15
- -webkit-flex-shrink: 0;
16
13
  flex-shrink: 0;
17
14
  width: 40%;
18
15
  }