@openui5/sap.ui.layout 1.94.0 → 1.95.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 (63) hide show
  1. package/.reuse/dep5 +1 -6
  2. package/THIRDPARTY.txt +3 -9
  3. package/package.json +2 -2
  4. package/src/sap/ui/layout/.library +1 -1
  5. package/src/sap/ui/layout/AlignedFlowLayout.js +7 -3
  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 +1 -1
  11. package/src/sap/ui/layout/DynamicSideContent.js +1 -1
  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 +1 -1
  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 +1 -1
  23. package/src/sap/ui/layout/Splitter.js +1 -1
  24. package/src/sap/ui/layout/SplitterLayoutData.js +1 -1
  25. package/src/sap/ui/layout/VerticalLayout.js +1 -1
  26. package/src/sap/ui/layout/changeHandler/AddFormContainer.js +1 -1
  27. package/src/sap/ui/layout/changeHandler/AddFormField.js +1 -1
  28. package/src/sap/ui/layout/changeHandler/AddSimpleFormField.js +1 -1
  29. package/src/sap/ui/layout/changeHandler/AddSimpleFormGroup.js +1 -1
  30. package/src/sap/ui/layout/changeHandler/HideSimpleForm.js +11 -1
  31. package/src/sap/ui/layout/changeHandler/MoveSimpleForm.js +1 -1
  32. package/src/sap/ui/layout/changeHandler/RenameFormContainer.js +1 -1
  33. package/src/sap/ui/layout/changeHandler/RenameSimpleForm.js +1 -1
  34. package/src/sap/ui/layout/changeHandler/UnhideSimpleForm.js +11 -1
  35. package/src/sap/ui/layout/cssgrid/CSSGrid.js +72 -69
  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/GridItemLayoutData.js +1 -1
  39. package/src/sap/ui/layout/cssgrid/GridLayoutBase.js +1 -1
  40. package/src/sap/ui/layout/cssgrid/GridLayoutDelegate.js +1 -1
  41. package/src/sap/ui/layout/cssgrid/GridResponsiveLayout.js +1 -1
  42. package/src/sap/ui/layout/cssgrid/GridSettings.js +1 -1
  43. package/src/sap/ui/layout/cssgrid/ResponsiveColumnItemLayoutData.js +1 -1
  44. package/src/sap/ui/layout/cssgrid/ResponsiveColumnLayout.js +1 -1
  45. package/src/sap/ui/layout/designtime/form/Form.designtime.js +1 -1
  46. package/src/sap/ui/layout/designtime/form/SimpleForm.designtime.js +6 -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 +1 -1
  50. package/src/sap/ui/layout/form/Form.js +1 -1
  51. package/src/sap/ui/layout/form/FormContainer.js +1 -1
  52. package/src/sap/ui/layout/form/FormElement.js +1 -1
  53. package/src/sap/ui/layout/form/FormLayout.js +3 -3
  54. package/src/sap/ui/layout/form/FormLayoutRenderer.js +3 -2
  55. package/src/sap/ui/layout/form/GridContainerData.js +1 -1
  56. package/src/sap/ui/layout/form/GridElementData.js +1 -1
  57. package/src/sap/ui/layout/form/GridLayout.js +2 -2
  58. package/src/sap/ui/layout/form/ResponsiveGridLayout.js +1 -1
  59. package/src/sap/ui/layout/form/ResponsiveLayout.js +1 -1
  60. package/src/sap/ui/layout/form/SemanticFormElement.js +1 -1
  61. package/src/sap/ui/layout/form/SimpleForm.js +1 -1
  62. package/src/sap/ui/layout/library.js +2 -2
  63. package/src/sap/ui/layout/messagebundle_el.properties +1 -1
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: 2018 Mathias Nater
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
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.4
9
+ Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.12
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: 2.4.0
283
- Copyright: 2018 Mathias Nater
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.layout",
3
- "version": "1.94.0",
3
+ "version": "1.95.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.94.0"
17
+ "@openui5/sap.ui.core": "1.95.0"
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.94.0</version>
9
+ <version>1.95.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.94.0
43
+ * @version 1.95.0
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
  }
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.ui.layout.Splitter
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.94.0
28
+ * @version 1.95.0
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.94.0
65
+ * @version 1.95.0
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.94.0
30
+ * @version 1.95.0
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.94.0
21
+ * @version 1.95.0
22
22
  * @constructor
23
23
  * @public
24
24
  * @since 1.50.0
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @extends sap.ui.core.Control
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.94.0
39
+ * @version 1.95.0
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.94.0
97
+ * @version 1.95.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.94.0
55
+ * @version 1.95.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.94.0
62
+ * @version 1.95.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.94.0
31
+ * @version 1.95.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.94.0
18
+ * 1.95.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.94.0
25
+ * @version 1.95.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.94.0
27
+ * @version 1.95.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.94.0
40
+ * @version 1.95.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.94.0
25
+ * @version 1.95.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.94.0
73
+ * @version 1.95.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.94.0
27
+ * @version 1.95.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.94.0
29
+ * @version 1.95.0
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -66,7 +66,7 @@ sap.ui.define([
66
66
  * @extends sap.ui.core.Control
67
67
  *
68
68
  * @author SAP SE
69
- * @version 1.94.0
69
+ * @version 1.95.0
70
70
  *
71
71
  * @constructor
72
72
  * @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.94.0
27
+ * @version 1.95.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.94.0
28
+ * @version 1.95.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.94.0
24
+ * @version 1.95.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.94.0
22
+ * @version 1.95.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.94.0
94
+ * @version 1.95.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.94.0
22
+ * @version 1.95.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.94.0
20
+ * @version 1.95.0
21
21
  * @experimental Since 1.27.0
22
22
  */
23
23
  var HideForm = { };
@@ -40,6 +40,10 @@ sap.ui.define([
40
40
  return undefined;
41
41
  };
42
42
 
43
+ function _isXmlModifier(mPropertyBag) {
44
+ return mPropertyBag.modifier.targets === "xmlTree";
45
+ }
46
+
43
47
  /**
44
48
  * Hides a control.
45
49
  *
@@ -56,6 +60,12 @@ sap.ui.define([
56
60
 
57
61
  var oChangeDefinition = oChange.getDefinition();
58
62
 
63
+ // in case of custom fields the application needs to be on JS.
64
+ // In the other case the visuality of the hidden control will be overriden by the custom field binding afterwards
65
+ if (_isXmlModifier(mPropertyBag)) {
66
+ return Promise.reject(Error("Change cannot be applied in XML. Retrying in JS."));
67
+ }
68
+
59
69
  // !important : sHideId was used in 1.40, do not remove for compatibility!
60
70
  var oRemovedElement = oModifier.bySelector(oChangeDefinition.content.elementSelector || oChangeDefinition.content.sHideId, oAppComponent, oView);
61
71
  var aContent;
@@ -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.94.0
23
+ * @version 1.95.0
24
24
  * @experimental Since 1.34.0
25
25
  */
26
26
  var MoveSimpleForm = {};
@@ -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.94.0
21
+ * @version 1.95.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.
@@ -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.94.0
25
+ * @version 1.95.0
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.
@@ -13,11 +13,15 @@ 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.94.0
16
+ * @version 1.95.0
17
17
  * @experimental Since 1.27.0
18
18
  */
19
19
  var UnhideForm = { };
20
20
 
21
+ function _isXmlModifier(mPropertyBag) {
22
+ return mPropertyBag.modifier.targets === "xmlTree";
23
+ }
24
+
21
25
  /**
22
26
  * Unhides a control
23
27
  *
@@ -35,6 +39,12 @@ sap.ui.define([
35
39
 
36
40
  var oChangeDefinition = oChangeWrapper.getDefinition();
37
41
 
42
+ // in case of custom fields the application needs to be on JS.
43
+ // In the other case the visuality of the control will be overriden by the custom field binding afterwards
44
+ if (_isXmlModifier(mPropertyBag)) {
45
+ return Promise.reject(Error("Change cannot be applied in XML. Retrying in JS."));
46
+ }
47
+
38
48
  // !important : sUnhideId was used in 1.40, do not remove for compatibility reasons!
39
49
  var oControlToUnhide = oModifier.bySelector(oChangeDefinition.content.elementSelector || oChangeDefinition.content.sUnhideId, oAppComponent, oView);
40
50
  return Promise.resolve()
@@ -9,10 +9,10 @@ sap.ui.define([
9
9
  "sap/ui/layout/cssgrid/GridLayoutBase",
10
10
  "sap/ui/layout/cssgrid/GridBasicLayout",
11
11
  "sap/ui/layout/cssgrid/GridLayoutDelegate",
12
+ "./CSSGridRenderer",
12
13
  "sap/ui/base/ManagedObjectObserver",
13
- "sap/ui/layout/library",
14
- "./CSSGridRenderer"
15
- ], function (Control, GridLayoutBase, GridBasicLayout, GridLayoutDelegate, ManagedObjectObserver) {
14
+ "sap/ui/layout/library"
15
+ ], function (Control, GridLayoutBase, GridBasicLayout, GridLayoutDelegate, CSSGridRenderer, ManagedObjectObserver) {
16
16
  "use strict";
17
17
 
18
18
  /**
@@ -95,7 +95,7 @@ sap.ui.define([
95
95
  * @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout MDN web docs: CSS Grid Layout}
96
96
  *
97
97
  * @author SAP SE
98
- * @version 1.94.0
98
+ * @version 1.95.0
99
99
  *
100
100
  * @extends sap.ui.core.Control
101
101
  * @implements sap.ui.layout.cssgrid.IGridConfigurable
@@ -106,72 +106,75 @@ sap.ui.define([
106
106
  * @alias sap.ui.layout.cssgrid.CSSGrid
107
107
  * @ui5-metamodel This control/element will also be described in the UI5 (legacy) designtime metamodel
108
108
  */
109
- var CSSGrid = Control.extend("sap.ui.layout.cssgrid.CSSGrid", { metadata: {
110
- library: "sap.ui.layout",
111
- defaultAggregation: "items",
112
- interfaces: ["sap.ui.layout.cssgrid.IGridConfigurable"],
113
- properties: {
114
-
115
- /**
116
- * The width of the control
117
- */
118
- width: { type: "sap.ui.core.CSSSize", defaultValue: "100%" },
119
-
120
- /**
121
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns MDN web docs: grid-template-columns}
122
- */
123
- gridTemplateColumns: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
124
-
125
- /**
126
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows MDN web docs: grid-template-rows}
127
- */
128
- gridTemplateRows: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
129
-
130
- /**
131
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-gap MDN web docs: grid-row-gap}
132
- */
133
- gridRowGap: { type: "sap.ui.core.CSSSize", defaultValue: "" },
134
-
135
- /**
136
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-gap MDN web docs: grid-column-gap}
137
- */
138
- gridColumnGap: { type: "sap.ui.core.CSSSize", defaultValue: "" },
139
-
140
- /**
141
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-gap MDN web docs: grid-gap}
142
- * It is a shorthand for gridRowGap and gridColumnGap. If some of them is set, the gridGap value will have less priority and will be overwritten.
143
- */
144
- gridGap: { type: "sap.ui.layout.cssgrid.CSSGridGapShortHand", defaultValue: "" },
145
-
146
- /**
147
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows MDN web docs: grid-auto-rows}
148
- */
149
- gridAutoRows: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
150
-
151
- /**
152
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns MDN web docs: grid-auto-columns}
153
- */
154
- gridAutoColumns: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
155
-
156
- /**
157
- * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow MDN web docs: grid-auto-flow}
158
- */
159
- gridAutoFlow: { type: "sap.ui.layout.cssgrid.CSSGridAutoFlow", defaultValue: "Row" }
109
+ var CSSGrid = Control.extend("sap.ui.layout.cssgrid.CSSGrid", {
110
+ metadata: {
111
+ library: "sap.ui.layout",
112
+ defaultAggregation: "items",
113
+ interfaces: ["sap.ui.layout.cssgrid.IGridConfigurable"],
114
+ properties: {
115
+
116
+ /**
117
+ * The width of the control
118
+ */
119
+ width: { type: "sap.ui.core.CSSSize", defaultValue: "100%" },
120
+
121
+ /**
122
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns MDN web docs: grid-template-columns}
123
+ */
124
+ gridTemplateColumns: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
125
+
126
+ /**
127
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows MDN web docs: grid-template-rows}
128
+ */
129
+ gridTemplateRows: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
130
+
131
+ /**
132
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-gap MDN web docs: grid-row-gap}
133
+ */
134
+ gridRowGap: { type: "sap.ui.core.CSSSize", defaultValue: "" },
135
+
136
+ /**
137
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-gap MDN web docs: grid-column-gap}
138
+ */
139
+ gridColumnGap: { type: "sap.ui.core.CSSSize", defaultValue: "" },
140
+
141
+ /**
142
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-gap MDN web docs: grid-gap}
143
+ * It is a shorthand for gridRowGap and gridColumnGap. If some of them is set, the gridGap value will have less priority and will be overwritten.
144
+ */
145
+ gridGap: { type: "sap.ui.layout.cssgrid.CSSGridGapShortHand", defaultValue: "" },
146
+
147
+ /**
148
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows MDN web docs: grid-auto-rows}
149
+ */
150
+ gridAutoRows: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
151
+
152
+ /**
153
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns MDN web docs: grid-auto-columns}
154
+ */
155
+ gridAutoColumns: { type: "sap.ui.layout.cssgrid.CSSGridTrack", defaultValue: "" },
156
+
157
+ /**
158
+ * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow MDN web docs: grid-auto-flow}
159
+ */
160
+ gridAutoFlow: { type: "sap.ui.layout.cssgrid.CSSGridAutoFlow", defaultValue: "Row" }
161
+ },
162
+ aggregations: {
163
+
164
+ /**
165
+ * Defines a custom Grid layout for the control. If provided, it will override all of the grid properties.
166
+ */
167
+ customLayout: { type: "sap.ui.layout.cssgrid.GridLayoutBase", multiple: false },
168
+
169
+ /**
170
+ * The items contained by the control.
171
+ */
172
+ items: { type: "sap.ui.core.Control", multiple: true, singularName: "item", dnd: true }
173
+ },
174
+ dnd: { draggable: false, droppable: true }
160
175
  },
161
- aggregations: {
162
-
163
- /**
164
- * Defines a custom Grid layout for the control. If provided, it will override all of the grid properties.
165
- */
166
- customLayout: { type: "sap.ui.layout.cssgrid.GridLayoutBase", multiple: false },
167
-
168
- /**
169
- * The items contained by the control.
170
- */
171
- items: { type: "sap.ui.core.Control", multiple: true, singularName: "item", dnd: true }
172
- },
173
- dnd: { draggable: false, droppable: true }
174
- }});
176
+ renderer: CSSGridRenderer
177
+ });
175
178
 
176
179
  /**
177
180
  * =================== START of IGridConfigurable interface implementation ===================
@@ -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.94.0
24
+ * @version 1.95.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.94.0
51
+ * @version 1.95.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.94.0
32
+ * @version 1.95.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.94.0
39
+ * @version 1.95.0
40
40
  *
41
41
  * @extends sap.ui.base.ManagedObject
42
42
  *
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  *
21
21
  * @extends sap.ui.base.Object
22
22
  *
23
- * @version 1.94.0
23
+ * @version 1.95.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.94.0
24
+ * @version 1.95.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.94.0
23
+ * @version 1.95.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.94.0
23
+ * @version 1.95.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.94.0
36
+ * @version 1.95.0
37
37
  *
38
38
  * @extends sap.ui.layout.cssgrid.GridLayoutBase
39
39
  *
@@ -13,7 +13,7 @@ sap.ui.define([
13
13
  "use strict";
14
14
 
15
15
  function isChildOfFormElement(oElement) {
16
- return oElement.getParent().isA("sap.ui.layout.form.FormElement");
16
+ return oElement.getParent() && oElement.getParent().isA("sap.ui.layout.form.FormElement");
17
17
  }
18
18
 
19
19
  function fnIsLayoutSupported(oForm){
@@ -232,11 +232,15 @@ sap.ui.define([
232
232
  },
233
233
  remove: {
234
234
  changeType: "hideSimpleFormField",
235
- changeOnRelevantContainer: true
235
+ changeOnRelevantContainer: true,
236
+ // SimpleForm field visibility changes could be invalidated by custom field visibility settings
237
+ jsOnly: true
236
238
  },
237
239
  reveal: {
238
240
  changeType: "unhideSimpleFormField",
239
- changeOnRelevantContainer: true
241
+ changeOnRelevantContainer: true,
242
+ // SimpleForm field visibility changes could be invalidated by custom field visibility settings
243
+ jsOnly: true
240
244
  }
241
245
  },
242
246
  getStableElements: getStableElements
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.LayoutData
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.94.0
29
+ * @version 1.95.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.94.0
29
+ * @version 1.95.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.94.0
63
+ * @version 1.95.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.94.0
47
+ * @version 1.95.0
48
48
  *
49
49
  * @constructor
50
50
  * @public
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.ui.core.Element
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.94.0
31
+ * @version 1.95.0
32
32
  *
33
33
  * @constructor
34
34
  * @public
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.Element
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.94.0
29
+ * @version 1.95.0
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @extends sap.ui.core.Control
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.94.0
39
+ * @version 1.95.0
40
40
  *
41
41
  * @constructor
42
42
  * @public
@@ -901,7 +901,7 @@ sap.ui.define([
901
901
  FormLayout.prototype.getContainerRenderedDomRef = function(oContainer) {
902
902
 
903
903
  if (this.getDomRef()) {
904
- return (oContainer.getId() ? window.document.getElementById(oContainer.getId()) : null);
904
+ return oContainer.getDomRef();
905
905
  } else {
906
906
  return null;
907
907
  }
@@ -918,7 +918,7 @@ sap.ui.define([
918
918
  FormLayout.prototype.getElementRenderedDomRef = function(oElement) {
919
919
 
920
920
  if (this.getDomRef()) {
921
- return (oElement.getId() ? window.document.getElementById(oElement.getId()) : null);
921
+ return oElement.getDomRef();
922
922
  } else {
923
923
  return null;
924
924
  }
@@ -7,8 +7,9 @@
7
7
  sap.ui.define([
8
8
  'sap/ui/core/library',
9
9
  'sap/ui/layout/library',
10
- 'sap/ui/layout/form/Form'
11
- ], function(coreLibrary, library, Form) {
10
+ 'sap/ui/layout/form/Form',
11
+ 'sap/ui/core/IconPool' // as RenderManager.icon needs it
12
+ ], function(coreLibrary, library, Form, IconPool) {
12
13
  "use strict";
13
14
 
14
15
  // shortcut for sap.ui.core.TitleLevel
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.ui.core.LayoutData
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.94.0
25
+ * @version 1.95.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.94.0
25
+ * @version 1.95.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.94.0
31
+ * @version 1.95.0
32
32
  *
33
33
  * @constructor
34
34
  * @public
@@ -227,7 +227,7 @@ sap.ui.define(['sap/ui/layout/library', './FormLayout', './GridLayoutRenderer'],
227
227
  var oContainerData = this.getLayoutDataForElement(oContainer, "sap.ui.layout.form.GridContainerData");
228
228
 
229
229
  if ((bSingleColumn || !oContainerData || !oContainerData.getHalfGrid()) && !this.getRenderer().checkFullSizeElement(this, oElement) ) {
230
- return (oElement.getId() ? window.document.getElementById(oElement.getId()) : null);
230
+ return oElement.getDomRef();
231
231
  }
232
232
  }
233
233
 
@@ -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.94.0
56
+ * @version 1.95.0
57
57
  *
58
58
  * @constructor
59
59
  * @public
@@ -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.94.0
53
+ * @version 1.95.0
54
54
  *
55
55
  * @constructor
56
56
  * @public
@@ -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.94.0
33
+ * @version 1.95.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.94.0
70
+ * @version 1.95.0
71
71
  *
72
72
  * @constructor
73
73
  * @public
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @namespace
21
21
  * @name sap.ui.layout
22
22
  * @author SAP SE
23
- * @version 1.94.0
23
+ * @version 1.95.0
24
24
  * @since 1.15
25
25
  * @public
26
26
  */
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  // delegate further initialization of this library to the Core
29
29
  sap.ui.getCore().initLibrary({
30
30
  name : "sap.ui.layout",
31
- version: "1.94.0",
31
+ version: "1.95.0",
32
32
  dependencies: ["sap.ui.core"],
33
33
  designtime: "sap/ui/layout/designtime/library.designtime",
34
34
  types: [
@@ -2,7 +2,7 @@
2
2
  FORM_EXPAND=\u0395\u03C0\u03AD\u03BA\u03C4\u03B1\u03C3\u03B7
3
3
  FORM_COLLAPSE=\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7
4
4
 
5
- SPLITTER_MOVE=\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C4\u03B1 \u03BA\u03BB\u03B5\u03B9\u03B4\u03B9\u03AC \u0392\u0395\u039B\u039F\u03A5\u03A3 \u03B3\u03B9\u03B1 \u03BC\u03B5\u03C4\u03B1\u03BA\u03AF\u03BD\u03B7\u03C3\u03B7
5
+ SPLITTER_MOVE=\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C4\u03B1 \u03C0\u03BB\u03AE\u03BA\u03C4\u03C1\u03B1 \u0392\u0395\u039B\u039F\u03A5\u03A3 \u03B3\u03B9\u03B1 \u03BC\u03B5\u03C4\u03B1\u03BA\u03AF\u03BD\u03B7\u03C3\u03B7
6
6
 
7
7
  SIDE_CONTENT_LABEL=\u03A0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03B1 \u03A0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03B1
8
8