@openui5/sap.ui.commons 1.106.0 → 1.107.1

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 (111) hide show
  1. package/package.json +4 -4
  2. package/src/sap/ui/commons/.library +1 -1
  3. package/src/sap/ui/commons/Accordion.js +1 -4
  4. package/src/sap/ui/commons/AccordionRenderer.js +5 -5
  5. package/src/sap/ui/commons/AccordionSection.js +4 -5
  6. package/src/sap/ui/commons/ApplicationHeader.js +1 -2
  7. package/src/sap/ui/commons/ApplicationHeaderRenderer.js +4 -4
  8. package/src/sap/ui/commons/Area.js +1 -2
  9. package/src/sap/ui/commons/AutoComplete.js +1 -3
  10. package/src/sap/ui/commons/Button.js +1 -3
  11. package/src/sap/ui/commons/ButtonRenderer.js +1 -1
  12. package/src/sap/ui/commons/Callout.js +1 -2
  13. package/src/sap/ui/commons/CalloutBase.js +8 -9
  14. package/src/sap/ui/commons/CalloutBaseRenderer.js +3 -3
  15. package/src/sap/ui/commons/Carousel.js +5 -8
  16. package/src/sap/ui/commons/CarouselRenderer.js +3 -3
  17. package/src/sap/ui/commons/CheckBox.js +1 -3
  18. package/src/sap/ui/commons/ColorPicker.js +1 -2
  19. package/src/sap/ui/commons/ComboBox.js +1 -2
  20. package/src/sap/ui/commons/ComboBoxRenderer.js +3 -3
  21. package/src/sap/ui/commons/DatePicker.js +8 -7
  22. package/src/sap/ui/commons/Dialog.js +10 -11
  23. package/src/sap/ui/commons/DropdownBox.js +9 -8
  24. package/src/sap/ui/commons/FileUploader.js +1 -2
  25. package/src/sap/ui/commons/FileUploaderParameter.js +1 -2
  26. package/src/sap/ui/commons/FormattedTextView.js +1 -3
  27. package/src/sap/ui/commons/HorizontalDivider.js +1 -2
  28. package/src/sap/ui/commons/Image.js +1 -2
  29. package/src/sap/ui/commons/ImageMap.js +1 -3
  30. package/src/sap/ui/commons/ImageMapRenderer.js +3 -3
  31. package/src/sap/ui/commons/InPlaceEdit.js +1 -3
  32. package/src/sap/ui/commons/Label.js +1 -2
  33. package/src/sap/ui/commons/Link.js +1 -3
  34. package/src/sap/ui/commons/ListBox.js +1 -2
  35. package/src/sap/ui/commons/ListBoxRenderer.js +1 -1
  36. package/src/sap/ui/commons/Menu.js +1 -2
  37. package/src/sap/ui/commons/MenuBar.js +7 -7
  38. package/src/sap/ui/commons/MenuBarRenderer.js +3 -3
  39. package/src/sap/ui/commons/MenuButton.js +1 -2
  40. package/src/sap/ui/commons/MenuButtonRenderer.js +3 -3
  41. package/src/sap/ui/commons/MenuItem.js +1 -2
  42. package/src/sap/ui/commons/MenuItemBase.js +1 -1
  43. package/src/sap/ui/commons/MenuTextFieldItem.js +1 -2
  44. package/src/sap/ui/commons/Message.js +6 -6
  45. package/src/sap/ui/commons/MessageBar.js +7 -8
  46. package/src/sap/ui/commons/MessageBox.js +1 -1
  47. package/src/sap/ui/commons/MessageList.js +5 -6
  48. package/src/sap/ui/commons/MessageToast.js +8 -9
  49. package/src/sap/ui/commons/Paginator.js +1 -2
  50. package/src/sap/ui/commons/Panel.js +7 -8
  51. package/src/sap/ui/commons/PanelRenderer.js +3 -3
  52. package/src/sap/ui/commons/PasswordField.js +1 -2
  53. package/src/sap/ui/commons/ProgressIndicator.js +1 -2
  54. package/src/sap/ui/commons/ProgressIndicatorRenderer.js +4 -4
  55. package/src/sap/ui/commons/RadioButton.js +1 -2
  56. package/src/sap/ui/commons/RadioButtonGroup.js +1 -4
  57. package/src/sap/ui/commons/RangeSlider.js +1 -2
  58. package/src/sap/ui/commons/RatingIndicator.js +1 -3
  59. package/src/sap/ui/commons/ResponsiveContainer.js +1 -2
  60. package/src/sap/ui/commons/ResponsiveContainerRange.js +1 -2
  61. package/src/sap/ui/commons/RichTooltip.js +1 -2
  62. package/src/sap/ui/commons/RichTooltipRenderer.js +3 -3
  63. package/src/sap/ui/commons/RoadMap.js +1 -2
  64. package/src/sap/ui/commons/RoadMapRenderer.js +15 -15
  65. package/src/sap/ui/commons/RoadMapStep.js +1 -2
  66. package/src/sap/ui/commons/RowRepeater.js +6 -15
  67. package/src/sap/ui/commons/RowRepeaterFilter.js +1 -2
  68. package/src/sap/ui/commons/RowRepeaterSorter.js +1 -2
  69. package/src/sap/ui/commons/SearchField.js +11 -11
  70. package/src/sap/ui/commons/SearchProvider.js +1 -2
  71. package/src/sap/ui/commons/SegmentedButton.js +1 -2
  72. package/src/sap/ui/commons/Slider.js +6 -6
  73. package/src/sap/ui/commons/Splitter.js +10 -9
  74. package/src/sap/ui/commons/Tab.js +1 -2
  75. package/src/sap/ui/commons/TabStrip.js +14 -12
  76. package/src/sap/ui/commons/TextArea.js +1 -2
  77. package/src/sap/ui/commons/TextField.js +8 -7
  78. package/src/sap/ui/commons/TextFieldRenderer.js +1 -1
  79. package/src/sap/ui/commons/TextView.js +1 -2
  80. package/src/sap/ui/commons/Title.js +1 -2
  81. package/src/sap/ui/commons/ToggleButton.js +1 -2
  82. package/src/sap/ui/commons/Toolbar.js +7 -6
  83. package/src/sap/ui/commons/ToolbarSeparator.js +1 -2
  84. package/src/sap/ui/commons/Tree.js +6 -8
  85. package/src/sap/ui/commons/TreeNode.js +5 -9
  86. package/src/sap/ui/commons/TriStateCheckBox.js +1 -3
  87. package/src/sap/ui/commons/ValueHelpField.js +1 -2
  88. package/src/sap/ui/commons/form/Form.js +1 -2
  89. package/src/sap/ui/commons/form/FormContainer.js +1 -2
  90. package/src/sap/ui/commons/form/FormElement.js +1 -2
  91. package/src/sap/ui/commons/form/FormLayout.js +1 -2
  92. package/src/sap/ui/commons/form/GridContainerData.js +1 -2
  93. package/src/sap/ui/commons/form/GridElementData.js +1 -2
  94. package/src/sap/ui/commons/form/GridLayout.js +1 -2
  95. package/src/sap/ui/commons/form/ResponsiveLayout.js +1 -2
  96. package/src/sap/ui/commons/form/SimpleForm.js +1 -2
  97. package/src/sap/ui/commons/layout/AbsoluteLayout.js +1 -10
  98. package/src/sap/ui/commons/layout/BorderLayout.js +1 -13
  99. package/src/sap/ui/commons/layout/BorderLayoutArea.js +1 -2
  100. package/src/sap/ui/commons/layout/BorderLayoutRenderer.js +5 -4
  101. package/src/sap/ui/commons/layout/HorizontalLayout.js +1 -2
  102. package/src/sap/ui/commons/layout/MatrixLayout.js +1 -3
  103. package/src/sap/ui/commons/layout/MatrixLayoutCell.js +1 -5
  104. package/src/sap/ui/commons/layout/MatrixLayoutRenderer.js +3 -3
  105. package/src/sap/ui/commons/layout/MatrixLayoutRow.js +1 -5
  106. package/src/sap/ui/commons/layout/PositionContainer.js +1 -3
  107. package/src/sap/ui/commons/layout/ResponsiveFlowLayout.js +1 -2
  108. package/src/sap/ui/commons/layout/ResponsiveFlowLayoutData.js +1 -2
  109. package/src/sap/ui/commons/layout/VerticalLayout.js +1 -2
  110. package/src/sap/ui/commons/library.js +2 -30
  111. package/src/sap/ui/commons/messagebundle_de.properties +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.commons",
3
- "version": "1.106.0",
3
+ "version": "1.107.1",
4
4
  "description": "OpenUI5 UI Library sap.ui.commons",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,8 +14,8 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.ui.core": "1.106.0",
18
- "@openui5/sap.ui.layout": "1.106.0",
19
- "@openui5/sap.ui.unified": "1.106.0"
17
+ "@openui5/sap.ui.core": "1.107.1",
18
+ "@openui5/sap.ui.layout": "1.107.1",
19
+ "@openui5/sap.ui.unified": "1.107.1"
20
20
  }
21
21
  }
@@ -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.106.0</version>
9
+ <version>1.107.1</version>
10
10
 
11
11
  <documentation>Common basic controls, mainly intended for desktop scenarios</documentation>
12
12
 
@@ -32,13 +32,12 @@ sap.ui.define([
32
32
  * @extends sap.ui.core.Control
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.106.0
35
+ * @version 1.107.1
36
36
  *
37
37
  * @constructor
38
38
  * @public
39
39
  * @deprecated Since version 1.38.
40
40
  * @alias sap.ui.commons.Accordion
41
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
42
41
  */
43
42
  var Accordion = Control.extend("sap.ui.commons.Accordion", /** @lends sap.ui.commons.Accordion.prototype */ { metadata : {
44
43
 
@@ -629,7 +628,6 @@ sap.ui.define([
629
628
  * Id of the section that is being opened
630
629
  * @type void
631
630
  * @public
632
- * @ui5-metamodel This method also will be described in the UI5 (legacy) design time meta model
633
631
  */
634
632
  Accordion.prototype.openSection = function(sSectionId){
635
633
 
@@ -660,7 +658,6 @@ sap.ui.define([
660
658
  * Id of the section that is being closed
661
659
  * @type void
662
660
  * @public
663
- * @ui5-metamodel This method also will be described in the UI5 (legacy) design time meta model
664
661
  */
665
662
  Accordion.prototype.closeSection = function(sSectionId){
666
663
 
@@ -5,8 +5,8 @@
5
5
  */
6
6
 
7
7
  // Provides default renderer for control sap.ui.commons.Accordion
8
- sap.ui.define(['./AccordionSection'],
9
- function(AccordionSection) {
8
+ sap.ui.define(['./AccordionSection', "sap/ui/core/Configuration"],
9
+ function(AccordionSection, Configuration) {
10
10
  "use strict";
11
11
 
12
12
 
@@ -27,7 +27,7 @@ sap.ui.define(['./AccordionSection'],
27
27
  rm.write("<div");
28
28
  rm.writeControlData(oAccordion);
29
29
 
30
- if ( sap.ui.getCore().getConfiguration().getAccessibility()) {
30
+ if ( Configuration.getAccessibility()) {
31
31
  rm.writeAttribute('role', 'tablist');
32
32
  }
33
33
 
@@ -71,7 +71,7 @@ sap.ui.define(['./AccordionSection'],
71
71
 
72
72
 
73
73
  AccordionRenderer.renderSection = function(rm, oControl) {
74
- var accessibility = sap.ui.getCore().getConfiguration().getAccessibility();
74
+ var accessibility = Configuration.getAccessibility();
75
75
 
76
76
  var heightSet = AccordionSection._isSizeSet(oControl.getMaxHeight());
77
77
  var widthSet = AccordionSection._isSizeSet(oControl.getParent().getWidth());
@@ -203,7 +203,7 @@ sap.ui.define(['./AccordionSection'],
203
203
  rm.write(" style='position:relative;top:0px;'");
204
204
  }
205
205
 
206
- if ( sap.ui.getCore().getConfiguration().getAccessibility()) {
206
+ if ( Configuration.getAccessibility()) {
207
207
  rm.writeAttribute('role', 'tabpanel');
208
208
  }
209
209
 
@@ -5,8 +5,8 @@
5
5
  */
6
6
 
7
7
  // Provides control sap.ui.commons.AccordionSection.
8
- sap.ui.define(['./library', 'sap/ui/core/Element'],
9
- function(library, Element) {
8
+ sap.ui.define(['./library', 'sap/ui/core/Element', "sap/ui/core/Configuration"],
9
+ function(library, Element, Configuration) {
10
10
  "use strict";
11
11
 
12
12
 
@@ -22,13 +22,12 @@ sap.ui.define(['./library', 'sap/ui/core/Element'],
22
22
  * @extends sap.ui.core.Element
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.106.0
25
+ * @version 1.107.1
26
26
  *
27
27
  * @constructor
28
28
  * @public
29
29
  * @deprecated Since version 1.38.
30
30
  * @alias sap.ui.commons.AccordionSection
31
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) design time metamodel
32
31
  */
33
32
  var AccordionSection = Element.extend("sap.ui.commons.AccordionSection", /** @lends sap.ui.commons.AccordionSection.prototype */ { metadata : {
34
33
 
@@ -251,7 +250,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element'],
251
250
  AccordionSection.prototype._setCollapsedState = function(bCollapsed) {
252
251
  var tb = this.getDomRef("tb"),
253
252
  cont = this.getDomRef("cont"),
254
- accessibility = sap.ui.getCore().getConfiguration().getAccessibility();
253
+ accessibility = Configuration.getAccessibility();
255
254
  if (this.getDomRef()) {
256
255
  // after AccordionSection has been rendered
257
256
  if (bCollapsed) {
@@ -41,13 +41,12 @@ sap.ui.define([
41
41
  * @class
42
42
  * The application header control stands on the top of any application page. It consists of 4 areas: Logo area, Function area provided by application, Search area, Logout area.
43
43
  * @extends sap.ui.core.Control
44
- * @version 1.106.0
44
+ * @version 1.107.1
45
45
  *
46
46
  * @constructor
47
47
  * @public
48
48
  * @deprecated Since version 1.38. Instead, use the <code>sap.tnt.ToolHeader</code> control.
49
49
  * @alias sap.ui.commons.ApplicationHeader
50
- * @ui5-metamodel This control/element also will be described in the UI5 design-time metamodel
51
50
  */
52
51
  var ApplicationHeader = Control.extend("sap.ui.commons.ApplicationHeader", /** @lends sap.ui.commons.ApplicationHeader.prototype */ { metadata : {
53
52
 
@@ -5,8 +5,8 @@
5
5
  */
6
6
 
7
7
  // Provides default renderer for control sap.ui.commons.ApplicationHeader
8
- sap.ui.define(['sap/ui/core/theming/Parameters'],
9
- function(Parameters) {
8
+ sap.ui.define(['sap/ui/core/theming/Parameters', "sap/ui/core/Configuration"],
9
+ function(Parameters, Configuration) {
10
10
  "use strict";
11
11
 
12
12
 
@@ -64,7 +64,7 @@ sap.ui.define(['sap/ui/core/theming/Parameters'],
64
64
  sSrc = Parameters._getThemeImage(); // theme logo
65
65
  }
66
66
  if (!sSrc) {
67
- sSrc = sap.ui.resource("sap.ui.commons", "themes/" + sap.ui.getCore().getConfiguration().getTheme() + "/img/applicationheader/SAPLogo.png");
67
+ sSrc = sap.ui.resource("sap.ui.commons", "themes/" + Configuration.getTheme() + "/img/applicationheader/SAPLogo.png");
68
68
  }
69
69
 
70
70
  oAppHeader.oLogo.setSrc(sSrc);
@@ -93,7 +93,7 @@ sap.ui.define(['sap/ui/core/theming/Parameters'],
93
93
 
94
94
  var rb = sap.ui.getCore().getLibraryResourceBundle("sap.ui.commons");
95
95
 
96
- var padding = sap.ui.getCore().getConfiguration().getRTL() ? "padding-left" : "padding-right";
96
+ var padding = Configuration.getRTL() ? "padding-left" : "padding-right";
97
97
 
98
98
  //Add the user name if provided
99
99
  if (oAppHeader.getUserName() != "") {
@@ -22,13 +22,12 @@ sap.ui.define(['sap/ui/thirdparty/jquery', './library', 'sap/ui/core/Element', '
22
22
  * @extends sap.ui.core.Element
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.106.0
25
+ * @version 1.107.1
26
26
  *
27
27
  * @constructor
28
28
  * @public
29
29
  * @deprecated Since version 1.38.
30
30
  * @alias sap.ui.commons.Area
31
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
32
31
  */
33
32
  var Area = Element.extend("sap.ui.commons.Area", /** @lends sap.ui.commons.Area.prototype */ { metadata : {
34
33
 
@@ -32,14 +32,13 @@ sap.ui.define([
32
32
  * @implements sap.ui.commons.ToolbarItem
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.106.0
35
+ * @version 1.107.1
36
36
  *
37
37
  * @constructor
38
38
  * @public
39
39
  * @since 1.10.0
40
40
  * @deprecated Since version 1.38.
41
41
  * @alias sap.ui.commons.AutoComplete
42
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
43
42
  */
44
43
  var AutoComplete = ComboBox.extend("sap.ui.commons.AutoComplete", /** @lends sap.ui.commons.AutoComplete.prototype */ { metadata : {
45
44
 
@@ -106,7 +105,6 @@ sap.ui.define([
106
105
  *
107
106
  * @param {function} [fFilter] The filter function. If not set the default filter function will be used.
108
107
  * @public
109
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
110
108
  */
111
109
  AutoComplete.prototype.setFilterFunction = function(fFilter) {
112
110
  if (typeof (fFilter) == "function") {
@@ -35,13 +35,12 @@ sap.ui.define([
35
35
  * @implements sap.ui.commons.ToolbarItem, sap.ui.core.IFormContent
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.106.0
38
+ * @version 1.107.1
39
39
  *
40
40
  * @constructor
41
41
  * @public
42
42
  * @deprecated as of version 1.38, replaced by {@link sap.m.Button}
43
43
  * @alias sap.ui.commons.Button
44
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
45
44
  */
46
45
  var Button = Control.extend("sap.ui.commons.Button", /** @lends sap.ui.commons.Button.prototype */ { metadata : {
47
46
 
@@ -152,7 +151,6 @@ sap.ui.define([
152
151
  * @function
153
152
  * @type void
154
153
  * @public
155
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
156
154
  */
157
155
 
158
156
 
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
 
20
20
  /**
21
21
  * @author SAP SE
22
- * @version 1.106.0
22
+ * @version 1.107.1
23
23
  * @namespace
24
24
  */
25
25
  var ButtonRenderer = {
@@ -22,13 +22,12 @@ sap.ui.define(['./CalloutBase', './library', './CalloutRenderer'],
22
22
  * @extends sap.ui.commons.CalloutBase
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.106.0
25
+ * @version 1.107.1
26
26
  *
27
27
  * @constructor
28
28
  * @public
29
29
  * @deprecated Since version 1.38. If you want to achieve a similar behavior, use a <code>sap.m.Popover</code> control and open it next to your control.
30
30
  * @alias sap.ui.commons.Callout
31
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
32
31
  */
33
32
  var Callout = CalloutBase.extend("sap.ui.commons.Callout", /** @lends sap.ui.commons.Callout.prototype */ { metadata : {
34
33
 
@@ -14,10 +14,13 @@ sap.ui.define([
14
14
  'sap/ui/core/Popup',
15
15
  'sap/ui/events/ControlEvents',
16
16
  'sap/ui/events/KeyCodes',
17
- 'sap/ui/dom/jquery/control', // jQuery.fn.control
18
- 'sap/ui/dom/jquery/Focusable' // jQuery.fn.firstFocusableDomRef, jQuery.fn.lastFocusableDomRef,
17
+ "sap/ui/core/Configuration",
18
+ // jQuery.fn.control
19
+ 'sap/ui/dom/jquery/control',
20
+ // jQuery.fn.firstFocusableDomRef, jQuery.fn.lastFocusableDomRef,
21
+ 'sap/ui/dom/jquery/Focusable'
19
22
  ],
20
- function(jQuery, library, TooltipBase, CalloutBaseRenderer, Popup, ControlEvents, KeyCodes) {
23
+ function(jQuery, library, TooltipBase, CalloutBaseRenderer, Popup, ControlEvents, KeyCodes, Configuration) {
21
24
  "use strict";
22
25
 
23
26
 
@@ -38,13 +41,12 @@ sap.ui.define([
38
41
  * @extends sap.ui.core.TooltipBase
39
42
  *
40
43
  * @author SAP SE
41
- * @version 1.106.0
44
+ * @version 1.107.1
42
45
  *
43
46
  * @constructor
44
47
  * @public
45
48
  * @deprecated Since version 1.38.
46
49
  * @alias sap.ui.commons.CalloutBase
47
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
48
50
  */
49
51
  var CalloutBase = TooltipBase.extend("sap.ui.commons.CalloutBase", /** @lends sap.ui.commons.CalloutBase.prototype */ { metadata : {
50
52
 
@@ -262,7 +264,7 @@ sap.ui.define([
262
264
 
263
265
  if (dock.y) { // pointer on the top or bottom border
264
266
  // switch right to left in case of RTL for the relevant docking (begin & end):
265
- var bRtl = sap.ui.getCore().getConfiguration().getRTL();
267
+ var bRtl = Configuration.getRTL();
266
268
  if (bRtl) { myPosition.replace("begin", "right").replace("end", "left"); }
267
269
  var hPos = 0;
268
270
 
@@ -306,7 +308,6 @@ sap.ui.define([
306
308
  *
307
309
  * @type void
308
310
  * @public
309
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
310
311
  */
311
312
  CalloutBase.prototype.adjustPosition = function() {
312
313
 
@@ -384,7 +385,6 @@ sap.ui.define([
384
385
  *
385
386
  * @type void
386
387
  * @public
387
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
388
388
  */
389
389
  CalloutBase.prototype.close = function() {
390
390
  if (this.oPopup && this.oPopup.isOpen() && !this.sCloseNowTimeout) {
@@ -613,7 +613,6 @@ sap.ui.define([
613
613
  * @param {sap.ui.core.Dock} atPosition docking position of the parent control
614
614
  * @return {this} <code>this</code> to allow method chaining
615
615
  * @public
616
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
617
616
  */
618
617
  CalloutBase.prototype.setPosition = function(myPosition, atPosition){
619
618
 
@@ -4,8 +4,8 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
- sap.ui.define([],
8
- function() {
7
+ sap.ui.define(["sap/ui/core/Configuration"],
8
+ function(Configuration) {
9
9
  "use strict";
10
10
 
11
11
 
@@ -24,7 +24,7 @@ sap.ui.define([],
24
24
  */
25
25
  CalloutBaseRenderer.render = function(rm, oControl){
26
26
 
27
- var accessibility = sap.ui.getCore().getConfiguration().getAccessibility();
27
+ var accessibility = Configuration.getAccessibility();
28
28
  var sId = oControl.getId();
29
29
 
30
30
  //container
@@ -16,12 +16,13 @@ sap.ui.define([
16
16
  './CarouselRenderer',
17
17
  'sap/ui/Device',
18
18
  'sap/ui/events/KeyCodes',
19
+ "sap/ui/core/Configuration",
19
20
  // jQuery custom selectors ":sapFocusable"
20
21
  "sap/ui/dom/jquery/Selectors",
21
22
  // jQuery Plugin "firstFocusableDomRef"
22
23
  "sap/ui/dom/jquery/Focusable"
23
24
  ],
24
- function(jQuery, Log, capitalize, containsOrEquals, library, Control, ResizeHandler, ItemNavigation, CarouselRenderer, Device, KeyCodes) {
25
+ function(jQuery, Log, capitalize, containsOrEquals, library, Control, ResizeHandler, ItemNavigation, CarouselRenderer, Device, KeyCodes, Configuration) {
25
26
  "use strict";
26
27
 
27
28
 
@@ -42,14 +43,13 @@ sap.ui.define([
42
43
  * @extends sap.ui.core.Control
43
44
  *
44
45
  * @author SAP SE
45
- * @version 1.106.0
46
+ * @version 1.107.1
46
47
  *
47
48
  * @constructor
48
49
  * @public
49
50
  * @since 1.8.0
50
51
  * @deprecated Since version 1.38. Instead, use the <code>sap.m.Carousel</code> control.
51
52
  * @alias sap.ui.commons.Carousel
52
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
53
53
  */
54
54
  var Carousel = Control.extend("sap.ui.commons.Carousel", /** @lends sap.ui.commons.Carousel.prototype */ { metadata : {
55
55
 
@@ -176,7 +176,7 @@ sap.ui.define([
176
176
  if (this.getOrientation() == "vertical") {
177
177
  this._sAnimationAttribute = 'margin-top';
178
178
  } else {
179
- if (sap.ui.getCore().getConfiguration().getRTL()) {
179
+ if (Configuration.getRTL()) {
180
180
  this._sAnimationAttribute = 'margin-right';
181
181
  } else {
182
182
  this._sAnimationAttribute = 'margin-left';
@@ -226,7 +226,7 @@ sap.ui.define([
226
226
  }
227
227
  }
228
228
 
229
- if (sap.ui.getCore().getConfiguration().getRTL()) {
229
+ if (Configuration.getRTL()) {
230
230
  $ContentArea.scrollLeft($ScrollList.width() - $ContentArea.width());
231
231
  } else {
232
232
  $ContentArea.scrollLeft(0);
@@ -515,7 +515,6 @@ sap.ui.define([
515
515
  /**
516
516
  * Shows the previous item in carousel. This can be only used after the component is rendered.
517
517
  * @public
518
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
519
518
  */
520
519
  Carousel.prototype.showPrevious = function() {
521
520
  var that = this,
@@ -549,7 +548,6 @@ sap.ui.define([
549
548
  /**
550
549
  * Shows the next item in carousel. This can be only used after the component is rendered.
551
550
  * @public
552
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
553
551
  */
554
552
  Carousel.prototype.showNext = function() {
555
553
  var that = this,
@@ -583,7 +581,6 @@ sap.ui.define([
583
581
  * Shows the element with the specified Id. This can be only used after the component is rendered.
584
582
  * @param {string} sElementId Id of the element to slide to.
585
583
  * @public
586
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
587
584
  */
588
585
  Carousel.prototype.showElementWithId = function(sElementId) {
589
586
  this._showAllItems();
@@ -5,8 +5,8 @@
5
5
  */
6
6
 
7
7
  // Provides default renderer for control sap.ui.commons.Carousel
8
- sap.ui.define([],
9
- function() {
8
+ sap.ui.define(["sap/ui/core/Configuration"],
9
+ function(Configuration) {
10
10
  "use strict";
11
11
 
12
12
 
@@ -26,7 +26,7 @@ sap.ui.define([],
26
26
  */
27
27
  CarouselRenderer.render = function(rm, oControl) {
28
28
 
29
- var bRTL = sap.ui.getCore().getConfiguration().getRTL();
29
+ var bRTL = Configuration.getRTL();
30
30
 
31
31
  rm.write("<div");
32
32
  rm.addClass("sapUiCrsl");
@@ -38,13 +38,12 @@ sap.ui.define([
38
38
  * @implements sap.ui.core.IFormContent
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.106.0
41
+ * @version 1.107.1
42
42
  *
43
43
  * @constructor
44
44
  * @public
45
45
  * @deprecated Since version 1.38. Instead, use the <code>sap.m.CheckBox</code> control.
46
46
  * @alias sap.ui.commons.CheckBox
47
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
48
47
  */
49
48
  var CheckBox = Control.extend("sap.ui.commons.CheckBox", /** @lends sap.ui.commons.CheckBox.prototype */ { metadata : {
50
49
 
@@ -200,7 +199,6 @@ sap.ui.define([
200
199
  *
201
200
  * @type this
202
201
  * @public
203
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
204
202
  */
205
203
  CheckBox.prototype.toggle = function() {
206
204
  this.setChecked(!this.getChecked());
@@ -22,13 +22,12 @@ sap.ui.define(['./library', 'sap/ui/unified/ColorPicker', "sap/base/Log"],
22
22
  * @extends sap.ui.unified.ColorPicker
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.106.0
25
+ * @version 1.107.1
26
26
  *
27
27
  * @constructor
28
28
  * @public
29
29
  * @deprecated as of version 1.38, replaced by {@link sap.ui.unified.ColorPicker}
30
30
  * @alias sap.ui.commons.ColorPicker
31
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
32
31
  */
33
32
  var ColorPicker = UnifiedColorPicker.extend("sap.ui.commons.ColorPicker", /** @lends sap.ui.commons.ColorPicker.prototype */ {
34
33
  metadata : {
@@ -44,13 +44,12 @@ sap.ui.define([
44
44
  * @implements sap.ui.commons.ToolbarItem
45
45
  *
46
46
  * @author SAP SE
47
- * @version 1.106.0
47
+ * @version 1.107.1
48
48
  *
49
49
  * @constructor
50
50
  * @public
51
51
  * @deprecated as of version 1.38, replaced by {@link sap.m.ComboBox}
52
52
  * @alias sap.ui.commons.ComboBox
53
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
54
53
  */
55
54
  var ComboBox = TextField.extend("sap.ui.commons.ComboBox", /** @lends sap.ui.commons.ComboBox.prototype */ { metadata : {
56
55
 
@@ -5,8 +5,8 @@
5
5
  */
6
6
 
7
7
  // Provides default renderer for control sap.ui.commons.ComboBox
8
- sap.ui.define(['./TextFieldRenderer', 'sap/ui/core/Renderer', 'sap/ui/core/library'],
9
- function(TextFieldRenderer, Renderer, coreLibrary) {
8
+ sap.ui.define(['./TextFieldRenderer', 'sap/ui/core/Renderer', 'sap/ui/core/library', 'sap/ui/core/Configuration'],
9
+ function(TextFieldRenderer, Renderer, coreLibrary, Configuration) {
10
10
  "use strict";
11
11
 
12
12
 
@@ -49,7 +49,7 @@ sap.ui.define(['./TextFieldRenderer', 'sap/ui/core/Renderer', 'sap/ui/core/libra
49
49
  rm.write("<div");
50
50
  rm.writeAttributeEscaped('id', oCmb.getId() + '-icon');
51
51
  rm.writeAttribute('unselectable', 'on');
52
- if ( sap.ui.getCore().getConfiguration().getAccessibility()) {
52
+ if ( Configuration.getAccessibility()) {
53
53
  rm.writeAttribute("role", "presentation");
54
54
  }
55
55
  rm.addClass("sapUiTfComboIcon");
@@ -20,9 +20,11 @@ sap.ui.define([
20
20
  'sap/ui/core/LocaleData',
21
21
  'sap/ui/core/Popup',
22
22
  'sap/ui/dom/containsOrEquals',
23
- 'sap/ui/dom/jquery/cursorPos' // jQuery.fn.cursorPos
23
+ 'sap/ui/core/Configuration',
24
+ // jQuery.fn.cursorPos
25
+ 'sap/ui/dom/jquery/cursorPos'
24
26
  ],
25
- function(jQuery, Log, TextField, TypeDate, UniversalDate, library, DatePickerRenderer, DateFormat, coreLibrary, Device, Locale, LocaleData, Popup, containsOrEquals) {
27
+ function(jQuery, Log, TextField, TypeDate, UniversalDate, library, DatePickerRenderer, DateFormat, coreLibrary, Device, Locale, LocaleData, Popup, containsOrEquals, Configuration) {
26
28
  "use strict";
27
29
 
28
30
  // shortcut for sap.ui.core.Popup.Dock
@@ -46,13 +48,12 @@ sap.ui.define([
46
48
  * @extends sap.ui.commons.TextField
47
49
  *
48
50
  * @author SAP SE
49
- * @version 1.106.0
51
+ * @version 1.107.1
50
52
  *
51
53
  * @constructor
52
54
  * @public
53
55
  * @deprecated as of version 1.38, replaced by {@link sap.m.DatePicker}
54
56
  * @alias sap.ui.commons.DatePicker
55
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
56
57
  */
57
58
  var DatePicker = TextField.extend("sap.ui.commons.DatePicker", /** @lends sap.ui.commons.DatePicker.prototype */ { metadata : {
58
59
 
@@ -562,7 +563,7 @@ sap.ui.define([
562
563
  oLocale = _getUsedLocale(oThis);
563
564
  var oLocaleData = LocaleData.getInstance(oLocale);
564
565
  sPattern = oLocaleData.getDatePattern("medium");
565
- sCalendarType = sap.ui.getCore().getConfiguration().getCalendarType();
566
+ sCalendarType = Configuration.getCalendarType();
566
567
  }
567
568
 
568
569
  if (sPattern != oThis._sUsedPattern || sCalendarType != oThis._sUsedCalendarType) {
@@ -588,7 +589,7 @@ sap.ui.define([
588
589
  if (sLocale) {
589
590
  oLocale = oThis._oLocale;
590
591
  } else {
591
- oLocale = sap.ui.getCore().getConfiguration().getFormatSettings().getFormatLocale();
592
+ oLocale = Configuration.getFormatSettings().getFormatLocale();
592
593
  }
593
594
 
594
595
  return oLocale;
@@ -746,7 +747,7 @@ sap.ui.define([
746
747
  if (oBinding && oBinding.oType && (oBinding.oType instanceof TypeDate)) {
747
748
  sCalendarType = oBinding.oType.oOutputFormat.oFormatOptions.calendarType;
748
749
  } else {
749
- sCalendarType = sap.ui.getCore().getConfiguration().getCalendarType();
750
+ sCalendarType = Configuration.getCalendarType();
750
751
  }
751
752
  var oDate = UniversalDate.getInstance(new Date(oOldDate.getTime()), sCalendarType);
752
753
  oOldDate = UniversalDate.getInstance(new Date(oOldDate.getTime()), sCalendarType);
@@ -16,11 +16,15 @@ sap.ui.define([
16
16
  './DialogRenderer',
17
17
  'sap/ui/core/library',
18
18
  'sap/ui/core/ResizeHandler',
19
- "sap/ui/dom/jquery/rect", // jQuery Plugin "rect"
20
- 'sap/ui/dom/jquery/control', // jQuery.fn.control
21
- 'sap/ui/dom/jquery/Selectors' // sapTabbable
19
+ "sap/ui/core/Configuration",
20
+ // jQuery Plugin "rect"
21
+ "sap/ui/dom/jquery/rect",
22
+ // jQuery.fn.control
23
+ 'sap/ui/dom/jquery/control',
24
+ // sapTabbable
25
+ 'sap/ui/dom/jquery/Selectors'
22
26
  ],
23
- function(jQuery, Log, containsOrEquals, library, Control, Popup, RenderManager, DialogRenderer, coreLibrary, ResizeHandler) {
27
+ function(jQuery, Log, containsOrEquals, library, Control, Popup, RenderManager, DialogRenderer, coreLibrary, ResizeHandler, Configuration) {
24
28
  "use strict";
25
29
 
26
30
 
@@ -47,13 +51,12 @@ sap.ui.define([
47
51
  *
48
52
  * @namespace
49
53
  * @author SAP SE
50
- * @version 1.106.0
54
+ * @version 1.107.1
51
55
  *
52
56
  * @constructor
53
57
  * @public
54
58
  * @deprecated Since version 1.38. Instead, use the <code>sap.m.Dialog</code> control.
55
59
  * @alias sap.ui.commons.Dialog
56
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
57
60
  */
58
61
  var Dialog = Control.extend("sap.ui.commons.Dialog", /** @lends sap.ui.commons.Dialog.prototype */ {
59
62
  metadata: {
@@ -396,7 +399,6 @@ sap.ui.define([
396
399
  /**
397
400
  * Opens the dialog control instance.
398
401
  *
399
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
400
402
  * @public
401
403
  */
402
404
  Dialog.prototype.open = function () {
@@ -477,7 +479,6 @@ sap.ui.define([
477
479
  /**
478
480
  * Closes the dialog control instance.
479
481
  *
480
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
481
482
  * @public
482
483
  */
483
484
  Dialog.prototype.close = function () {
@@ -738,7 +739,6 @@ sap.ui.define([
738
739
  * Indicates whether the Dialog is open (this includes opening and closing animations).
739
740
  * For more detailed information about the current state check Dialog.getOpenState().
740
741
  *
741
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
742
742
  * @returns {boolean}
743
743
  * @public
744
744
  */
@@ -751,7 +751,6 @@ sap.ui.define([
751
751
  /**
752
752
  * Indicates whether the Dialog is currently open, closed, or transitioning between these states.
753
753
  *
754
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
755
754
  * @returns {sap.ui.core.OpenState}
756
755
  * @public
757
756
  */
@@ -821,7 +820,7 @@ sap.ui.define([
821
820
  var oSource = oEvent.target,
822
821
  sId = this.getId();
823
822
 
824
- this._bRtlMode = sap.ui.getCore().getConfiguration().getRTL(); // remember the RTL mode for the starting resize operation
823
+ this._bRtlMode = Configuration.getRTL(); // remember the RTL mode for the starting resize operation
825
824
  var oDomRef = this.getDomRef();
826
825
  if (containsOrEquals(this.getDomRef("hdr"), oSource)) {
827
826
  if (oSource.id != (sId + "-close")) {