@openui5/sap.ui.commons 1.105.1 → 1.107.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.
- package/.reuse/dep5 +20 -17
- package/THIRDPARTY.txt +31 -21
- package/package.json +4 -4
- package/src/sap/ui/commons/.library +1 -1
- package/src/sap/ui/commons/Accordion.js +1 -4
- package/src/sap/ui/commons/AccordionRenderer.js +5 -5
- package/src/sap/ui/commons/AccordionSection.js +4 -5
- package/src/sap/ui/commons/ApplicationHeader.js +1 -2
- package/src/sap/ui/commons/ApplicationHeaderRenderer.js +4 -4
- package/src/sap/ui/commons/Area.js +1 -2
- package/src/sap/ui/commons/AutoComplete.js +1 -3
- package/src/sap/ui/commons/Button.js +1 -3
- package/src/sap/ui/commons/ButtonRenderer.js +1 -1
- package/src/sap/ui/commons/Callout.js +1 -2
- package/src/sap/ui/commons/CalloutBase.js +8 -9
- package/src/sap/ui/commons/CalloutBaseRenderer.js +3 -3
- package/src/sap/ui/commons/Carousel.js +5 -8
- package/src/sap/ui/commons/CarouselRenderer.js +3 -3
- package/src/sap/ui/commons/CheckBox.js +1 -3
- package/src/sap/ui/commons/ColorPicker.js +1 -2
- package/src/sap/ui/commons/ComboBox.js +1 -2
- package/src/sap/ui/commons/ComboBoxRenderer.js +3 -3
- package/src/sap/ui/commons/DatePicker.js +8 -7
- package/src/sap/ui/commons/Dialog.js +10 -11
- package/src/sap/ui/commons/DropdownBox.js +11 -10
- package/src/sap/ui/commons/FileUploader.js +1 -2
- package/src/sap/ui/commons/FileUploaderParameter.js +1 -2
- package/src/sap/ui/commons/FormattedTextView.js +1 -3
- package/src/sap/ui/commons/HorizontalDivider.js +1 -2
- package/src/sap/ui/commons/Image.js +1 -2
- package/src/sap/ui/commons/ImageMap.js +1 -3
- package/src/sap/ui/commons/ImageMapRenderer.js +3 -3
- package/src/sap/ui/commons/InPlaceEdit.js +1 -3
- package/src/sap/ui/commons/Label.js +1 -2
- package/src/sap/ui/commons/Link.js +1 -3
- package/src/sap/ui/commons/ListBox.js +1 -2
- package/src/sap/ui/commons/ListBoxRenderer.js +1 -1
- package/src/sap/ui/commons/Menu.js +1 -2
- package/src/sap/ui/commons/MenuBar.js +7 -7
- package/src/sap/ui/commons/MenuBarRenderer.js +3 -3
- package/src/sap/ui/commons/MenuButton.js +1 -2
- package/src/sap/ui/commons/MenuButtonRenderer.js +3 -3
- package/src/sap/ui/commons/MenuItem.js +1 -2
- package/src/sap/ui/commons/MenuItemBase.js +1 -1
- package/src/sap/ui/commons/MenuTextFieldItem.js +1 -2
- package/src/sap/ui/commons/Message.js +6 -6
- package/src/sap/ui/commons/MessageBar.js +7 -8
- package/src/sap/ui/commons/MessageBox.js +1 -1
- package/src/sap/ui/commons/MessageList.js +5 -6
- package/src/sap/ui/commons/MessageToast.js +8 -9
- package/src/sap/ui/commons/Paginator.js +1 -2
- package/src/sap/ui/commons/Panel.js +7 -8
- package/src/sap/ui/commons/PanelRenderer.js +3 -3
- package/src/sap/ui/commons/PasswordField.js +1 -2
- package/src/sap/ui/commons/ProgressIndicator.js +1 -2
- package/src/sap/ui/commons/ProgressIndicatorRenderer.js +4 -4
- package/src/sap/ui/commons/RadioButton.js +1 -2
- package/src/sap/ui/commons/RadioButtonGroup.js +1 -4
- package/src/sap/ui/commons/RangeSlider.js +1 -2
- package/src/sap/ui/commons/RatingIndicator.js +1 -3
- package/src/sap/ui/commons/ResponsiveContainer.js +1 -2
- package/src/sap/ui/commons/ResponsiveContainerRange.js +1 -2
- package/src/sap/ui/commons/RichTooltip.js +1 -2
- package/src/sap/ui/commons/RichTooltipRenderer.js +3 -3
- package/src/sap/ui/commons/RoadMap.js +1 -2
- package/src/sap/ui/commons/RoadMapRenderer.js +15 -15
- package/src/sap/ui/commons/RoadMapStep.js +1 -2
- package/src/sap/ui/commons/RowRepeater.js +6 -15
- package/src/sap/ui/commons/RowRepeaterFilter.js +1 -2
- package/src/sap/ui/commons/RowRepeaterSorter.js +1 -2
- package/src/sap/ui/commons/SearchField.js +11 -11
- package/src/sap/ui/commons/SearchProvider.js +1 -2
- package/src/sap/ui/commons/SegmentedButton.js +1 -2
- package/src/sap/ui/commons/Slider.js +6 -6
- package/src/sap/ui/commons/Splitter.js +10 -9
- package/src/sap/ui/commons/Tab.js +1 -2
- package/src/sap/ui/commons/TabStrip.js +14 -12
- package/src/sap/ui/commons/TextArea.js +1 -2
- package/src/sap/ui/commons/TextField.js +9 -8
- package/src/sap/ui/commons/TextFieldRenderer.js +1 -1
- package/src/sap/ui/commons/TextView.js +1 -2
- package/src/sap/ui/commons/Title.js +1 -2
- package/src/sap/ui/commons/ToggleButton.js +1 -2
- package/src/sap/ui/commons/Toolbar.js +7 -6
- package/src/sap/ui/commons/ToolbarSeparator.js +1 -2
- package/src/sap/ui/commons/Tree.js +6 -8
- package/src/sap/ui/commons/TreeNode.js +5 -9
- package/src/sap/ui/commons/TriStateCheckBox.js +1 -3
- package/src/sap/ui/commons/ValueHelpField.js +1 -2
- package/src/sap/ui/commons/form/Form.js +1 -2
- package/src/sap/ui/commons/form/FormContainer.js +1 -2
- package/src/sap/ui/commons/form/FormElement.js +1 -2
- package/src/sap/ui/commons/form/FormLayout.js +1 -2
- package/src/sap/ui/commons/form/GridContainerData.js +1 -2
- package/src/sap/ui/commons/form/GridElementData.js +1 -2
- package/src/sap/ui/commons/form/GridLayout.js +1 -2
- package/src/sap/ui/commons/form/ResponsiveLayout.js +1 -2
- package/src/sap/ui/commons/form/SimpleForm.js +1 -2
- package/src/sap/ui/commons/layout/AbsoluteLayout.js +1 -10
- package/src/sap/ui/commons/layout/BorderLayout.js +1 -13
- package/src/sap/ui/commons/layout/BorderLayoutArea.js +1 -2
- package/src/sap/ui/commons/layout/BorderLayoutRenderer.js +5 -4
- package/src/sap/ui/commons/layout/HorizontalLayout.js +1 -2
- package/src/sap/ui/commons/layout/MatrixLayout.js +1 -3
- package/src/sap/ui/commons/layout/MatrixLayoutCell.js +1 -5
- package/src/sap/ui/commons/layout/MatrixLayoutRenderer.js +3 -3
- package/src/sap/ui/commons/layout/MatrixLayoutRow.js +1 -5
- package/src/sap/ui/commons/layout/PositionContainer.js +1 -3
- package/src/sap/ui/commons/layout/ResponsiveFlowLayout.js +1 -2
- package/src/sap/ui/commons/layout/ResponsiveFlowLayoutData.js +1 -2
- package/src/sap/ui/commons/layout/VerticalLayout.js +1 -2
- package/src/sap/ui/commons/library.js +2 -30
- package/src/sap/ui/commons/messagebundle_de.properties +1 -1
|
@@ -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 =
|
|
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.
|
|
41
|
+
* @version 1.107.0
|
|
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.
|
|
25
|
+
* @version 1.107.0
|
|
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.
|
|
47
|
+
* @version 1.107.0
|
|
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 (
|
|
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/
|
|
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.
|
|
51
|
+
* @version 1.107.0
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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/
|
|
20
|
-
|
|
21
|
-
|
|
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.
|
|
54
|
+
* @version 1.107.0
|
|
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 =
|
|
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")) {
|
|
@@ -19,10 +19,13 @@ sap.ui.define([
|
|
|
19
19
|
'sap/ui/dom/containsOrEquals',
|
|
20
20
|
'sap/ui/events/jquery/EventExtension',
|
|
21
21
|
'sap/ui/events/KeyCodes',
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
"sap/ui/core/Configuration",
|
|
23
|
+
// jQuery.fn.cursorPos
|
|
24
|
+
'sap/ui/dom/jquery/cursorPos',
|
|
25
|
+
// jQuery.fn.selectText
|
|
26
|
+
'sap/ui/dom/jquery/selectText'
|
|
24
27
|
],
|
|
25
|
-
function(jQuery, Log, ComboBox, library, History, SeparatorItem, DropdownBoxRenderer, Device, TextField, ListItem, containsOrEquals, EventExtension, KeyCodes) {
|
|
28
|
+
function(jQuery, Log, ComboBox, library, History, SeparatorItem, DropdownBoxRenderer, Device, TextField, ListItem, containsOrEquals, EventExtension, KeyCodes, Configuration) {
|
|
26
29
|
"use strict";
|
|
27
30
|
|
|
28
31
|
|
|
@@ -36,13 +39,12 @@ sap.ui.define([
|
|
|
36
39
|
* The control provides a field that allows end users to an entry out of a list of pre-defined items.
|
|
37
40
|
* The choosable items can be provided in the form of a complete <code>ListBox</code>, single <code>ListItems</code>.
|
|
38
41
|
* @extends sap.ui.commons.ComboBox
|
|
39
|
-
* @version 1.
|
|
42
|
+
* @version 1.107.0
|
|
40
43
|
*
|
|
41
44
|
* @constructor
|
|
42
45
|
* @public
|
|
43
46
|
* @deprecated as of version 1.38, replaced by {@link sap.m.ComboBox}
|
|
44
47
|
* @alias sap.ui.commons.DropdownBox
|
|
45
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
46
48
|
*/
|
|
47
49
|
var DropdownBox = ComboBox.extend("sap.ui.commons.DropdownBox", /** @lends sap.ui.commons.DropdownBox.prototype */ { metadata : {
|
|
48
50
|
|
|
@@ -774,7 +776,7 @@ sap.ui.define([
|
|
|
774
776
|
return;
|
|
775
777
|
}
|
|
776
778
|
|
|
777
|
-
var bRtl =
|
|
779
|
+
var bRtl = Configuration.getRTL();
|
|
778
780
|
if (!bRtl) {
|
|
779
781
|
this._updateSelection(1);
|
|
780
782
|
} else {
|
|
@@ -799,7 +801,7 @@ sap.ui.define([
|
|
|
799
801
|
return;
|
|
800
802
|
}
|
|
801
803
|
|
|
802
|
-
var bRtl =
|
|
804
|
+
var bRtl = Configuration.getRTL();
|
|
803
805
|
if (!bRtl) {
|
|
804
806
|
this._updateSelection( -1);
|
|
805
807
|
} else {
|
|
@@ -1367,9 +1369,9 @@ sap.ui.define([
|
|
|
1367
1369
|
};
|
|
1368
1370
|
|
|
1369
1371
|
/**
|
|
1370
|
-
*
|
|
1372
|
+
* Overrides the method inherited from {@link sap.ui.core.Element} by providing information on Search Help access (if needed)
|
|
1371
1373
|
*
|
|
1372
|
-
* @
|
|
1374
|
+
* @returns {string|undefined} string tooltip or <code>undefined</code>
|
|
1373
1375
|
* @public
|
|
1374
1376
|
*/
|
|
1375
1377
|
DropdownBox.prototype.getTooltip_AsString = function() {
|
|
@@ -1680,7 +1682,6 @@ sap.ui.define([
|
|
|
1680
1682
|
* This might be necessary if the items of the DropdownBox have changed. Otherwise invalid items may appear in the history.
|
|
1681
1683
|
*
|
|
1682
1684
|
* @public
|
|
1683
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1684
1685
|
*/
|
|
1685
1686
|
DropdownBox.prototype.clearHistory = function() {
|
|
1686
1687
|
|
|
@@ -26,14 +26,13 @@ sap.ui.define([
|
|
|
26
26
|
* @extends sap.ui.unified.FileUploader
|
|
27
27
|
*
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.107.0
|
|
30
30
|
*
|
|
31
31
|
* @constructor
|
|
32
32
|
* @public
|
|
33
33
|
* @deprecated Since version 1.21.0.
|
|
34
34
|
* Please use the control sap.ui.unified.FileUploader of the library sap.ui.unified instead.
|
|
35
35
|
* @alias sap.ui.commons.FileUploader
|
|
36
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
37
36
|
*/
|
|
38
37
|
var FileUploader = UnifiedFileUploader.extend("sap.ui.commons.FileUploader", /** @lends sap.ui.commons.FileUploader.prototype */ { metadata : {
|
|
39
38
|
|
|
@@ -20,14 +20,13 @@ sap.ui.define(['sap/base/Log', './library', 'sap/ui/unified/FileUploaderParamete
|
|
|
20
20
|
* @extends sap.ui.unified.FileUploaderParameter
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.107.0
|
|
24
24
|
*
|
|
25
25
|
* @constructor
|
|
26
26
|
* @public
|
|
27
27
|
* @deprecated Since version 1.21.0.
|
|
28
28
|
* Please use the element sap.ui.unified.FileUploaderParameter of the library sap.ui.unified instead.
|
|
29
29
|
* @alias sap.ui.commons.FileUploaderParameter
|
|
30
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
31
30
|
*/
|
|
32
31
|
var FileUploaderParameter = UnifiedFileUploaderParameter.extend("sap.ui.commons.FileUploaderParameter", /** @lends sap.ui.commons.FileUploaderParameter.prototype */ { metadata : {
|
|
33
32
|
|
|
@@ -30,14 +30,13 @@ sap.ui.define([
|
|
|
30
30
|
* @class
|
|
31
31
|
* The FormattedTextView control allows the usage of a limited set of HTML tags for display.
|
|
32
32
|
* @extends sap.ui.core.Control
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.107.0
|
|
34
34
|
*
|
|
35
35
|
* @constructor
|
|
36
36
|
* @public
|
|
37
37
|
* @since 1.9.0
|
|
38
38
|
* @deprecated Since version 1.38. Instead, use the <code>sap.ui.core.HTML</code> control.
|
|
39
39
|
* @alias sap.ui.commons.FormattedTextView
|
|
40
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
41
40
|
*/
|
|
42
41
|
var FormattedTextView = Control.extend("sap.ui.commons.FormattedTextView", /** @lends sap.ui.commons.FormattedTextView.prototype */ {
|
|
43
42
|
metadata: {
|
|
@@ -248,7 +247,6 @@ sap.ui.define([
|
|
|
248
247
|
*
|
|
249
248
|
* @param {string} sHtmlText Contains the corresponding HTML text
|
|
250
249
|
* @param {sap.ui.commons.FormattedTextViewControl} aControls Array of controls that should be used within given HTML text
|
|
251
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
252
250
|
* @public
|
|
253
251
|
*/
|
|
254
252
|
FormattedTextView.prototype.setContent = function (sHtmlText, aControls) {
|
|
@@ -32,13 +32,12 @@ sap.ui.define([
|
|
|
32
32
|
* @class
|
|
33
33
|
* Divides the screen in visual areas.
|
|
34
34
|
* @extends sap.ui.core.Control
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.107.0
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @public
|
|
39
39
|
* @deprecated Since version 1.38.
|
|
40
40
|
* @alias sap.ui.commons.HorizontalDivider
|
|
41
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
42
41
|
*/
|
|
43
42
|
var HorizontalDivider = Control.extend("sap.ui.commons.HorizontalDivider", /** @lends sap.ui.commons.HorizontalDivider.prototype */ { metadata : {
|
|
44
43
|
|
|
@@ -24,13 +24,12 @@ sap.ui.define(['./library', 'sap/ui/core/Control', './ImageRenderer'],
|
|
|
24
24
|
* @implements sap.ui.commons.ToolbarItem,sap.ui.commons.FormattedTextViewControl, sap.ui.core.IFormContent
|
|
25
25
|
*
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.107.0
|
|
28
28
|
*
|
|
29
29
|
* @constructor
|
|
30
30
|
* @public
|
|
31
31
|
* @deprecated as of version 1.38, replaced by {@link sap.m.Image}
|
|
32
32
|
* @alias sap.ui.commons.Image
|
|
33
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
34
33
|
*/
|
|
35
34
|
var Image = Control.extend("sap.ui.commons.Image", /** @lends sap.ui.commons.Image.prototype */ { metadata : {
|
|
36
35
|
|
|
@@ -29,13 +29,12 @@ sap.ui.define([
|
|
|
29
29
|
* @extends sap.ui.core.Control
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.107.0
|
|
33
33
|
*
|
|
34
34
|
* @constructor
|
|
35
35
|
* @public
|
|
36
36
|
* @deprecated as of version 1.38. There's not replacement because of the archaic design pattern.
|
|
37
37
|
* @alias sap.ui.commons.ImageMap
|
|
38
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
39
38
|
*/
|
|
40
39
|
var ImageMap = Control.extend("sap.ui.commons.ImageMap", /** @lends sap.ui.commons.ImageMap.prototype */ { metadata : {
|
|
41
40
|
|
|
@@ -81,7 +80,6 @@ sap.ui.define([
|
|
|
81
80
|
* @param {any} content Area content to add
|
|
82
81
|
* @return {this} <code>this</code> to allow method chaining
|
|
83
82
|
* @public
|
|
84
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
85
83
|
*/
|
|
86
84
|
ImageMap.prototype.createArea = function() {
|
|
87
85
|
var oArea = new Area();
|
|
@@ -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
|
|
|
@@ -25,7 +25,7 @@ sap.ui.define([],
|
|
|
25
25
|
*/
|
|
26
26
|
ImageMapRenderer.render = function(rm, oImageMap){
|
|
27
27
|
// convenience variable
|
|
28
|
-
var accessibility =
|
|
28
|
+
var accessibility = Configuration.getAccessibility();
|
|
29
29
|
var rb = sap.ui.getCore().getLibraryResourceBundle("sap.ui.commons");
|
|
30
30
|
|
|
31
31
|
rm.write('<span id="' + oImageMap.getId() + '-Descr" style="visibility: hidden; display: none; outline: none;">');
|
|
@@ -50,14 +50,13 @@ sap.ui.define([
|
|
|
50
50
|
* @class
|
|
51
51
|
* The InPlaceEdit is a functionality to have text in display mode that can be changed in place.
|
|
52
52
|
* @extends sap.ui.core.Control
|
|
53
|
-
* @version 1.
|
|
53
|
+
* @version 1.107.0
|
|
54
54
|
*
|
|
55
55
|
* @constructor
|
|
56
56
|
* @public
|
|
57
57
|
* @since 1.8.0
|
|
58
58
|
* @deprecated as of version 1.38, replaced by {@link sap.m.Input}
|
|
59
59
|
* @alias sap.ui.commons.InPlaceEdit
|
|
60
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
61
60
|
*/
|
|
62
61
|
var InPlaceEdit = Control.extend("sap.ui.commons.InPlaceEdit", /** @lends sap.ui.commons.InPlaceEdit.prototype */ { metadata : {
|
|
63
62
|
|
|
@@ -291,7 +290,6 @@ sap.ui.define([
|
|
|
291
290
|
* Clear the old text after a change to disable the undo functionality. If undoEnabled is false this has no effect.
|
|
292
291
|
*
|
|
293
292
|
* @public
|
|
294
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
295
293
|
*/
|
|
296
294
|
InPlaceEdit.prototype.clearOldText = function(){
|
|
297
295
|
|
|
@@ -41,13 +41,12 @@ sap.ui.define([
|
|
|
41
41
|
* @implements sap.ui.commons.ToolbarItem, sap.ui.core.Label
|
|
42
42
|
*
|
|
43
43
|
* @author SAP SE
|
|
44
|
-
* @version 1.
|
|
44
|
+
* @version 1.107.0
|
|
45
45
|
*
|
|
46
46
|
* @constructor
|
|
47
47
|
* @public
|
|
48
48
|
* @deprecated Since version 1.38. Instead, use the <code>sap.m.Label</code> control.
|
|
49
49
|
* @alias sap.ui.commons.Label
|
|
50
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
51
50
|
*/
|
|
52
51
|
var Label = Control.extend("sap.ui.commons.Label", /** @lends sap.ui.commons.Label.prototype */ { metadata : {
|
|
53
52
|
|
|
@@ -31,13 +31,12 @@ sap.ui.define([
|
|
|
31
31
|
* @implements sap.ui.commons.ToolbarItem,sap.ui.commons.FormattedTextViewControl, sap.ui.core.IFormContent
|
|
32
32
|
*
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.107.0
|
|
35
35
|
*
|
|
36
36
|
* @constructor
|
|
37
37
|
* @public
|
|
38
38
|
* @deprecated Since version 1.38. Instead, use the <code>sap.m.Link</code> control.
|
|
39
39
|
* @alias sap.ui.commons.Link
|
|
40
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
41
40
|
*/
|
|
42
41
|
var Link = Control.extend("sap.ui.commons.Link", /** @lends sap.ui.commons.Link.prototype */ { metadata : {
|
|
43
42
|
|
|
@@ -114,7 +113,6 @@ sap.ui.define([
|
|
|
114
113
|
* @function
|
|
115
114
|
* @type void
|
|
116
115
|
* @public
|
|
117
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
118
116
|
*/
|
|
119
117
|
|
|
120
118
|
|
|
@@ -34,13 +34,12 @@ sap.ui.define([
|
|
|
34
34
|
* @extends sap.ui.core.Control
|
|
35
35
|
*
|
|
36
36
|
* @author SAP SE
|
|
37
|
-
* @version 1.
|
|
37
|
+
* @version 1.107.0
|
|
38
38
|
*
|
|
39
39
|
* @constructor
|
|
40
40
|
* @public
|
|
41
41
|
* @deprecated Since version 1.38. Instead, use the <code>sap.m.List</code> control.
|
|
42
42
|
* @alias sap.ui.commons.ListBox
|
|
43
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
44
43
|
*/
|
|
45
44
|
var ListBox = Control.extend("sap.ui.commons.ListBox", /** @lends sap.ui.commons.ListBox.prototype */ { metadata : {
|
|
46
45
|
library : "sap.ui.commons",
|
|
@@ -28,14 +28,13 @@ sap.ui.define([
|
|
|
28
28
|
* @extends sap.ui.unified.Menu
|
|
29
29
|
*
|
|
30
30
|
* @author SAP SE
|
|
31
|
-
* @version 1.
|
|
31
|
+
* @version 1.107.0
|
|
32
32
|
* @since 1.0.0
|
|
33
33
|
*
|
|
34
34
|
* @constructor
|
|
35
35
|
* @public
|
|
36
36
|
* @deprecated as of version 1.21.0, replaced by {@link sap.ui.unified.Menu}
|
|
37
37
|
* @alias sap.ui.commons.Menu
|
|
38
|
-
* @ui5-metamodel This control/element will also be described in the UI5 (legacy) design time meta model
|
|
39
38
|
*/
|
|
40
39
|
var Menu = UnifiedMenu.extend("sap.ui.commons.Menu", /** @lends sap.ui.commons.Menu.prototype */ { metadata : {
|
|
41
40
|
|
|
@@ -16,9 +16,10 @@ sap.ui.define([
|
|
|
16
16
|
'sap/ui/core/ResizeHandler',
|
|
17
17
|
'sap/ui/core/Popup',
|
|
18
18
|
'sap/ui/events/checkMouseEnterOrLeave',
|
|
19
|
-
'sap/ui/events/KeyCodes'
|
|
19
|
+
'sap/ui/events/KeyCodes',
|
|
20
|
+
'sap/ui/core/Configuration'
|
|
20
21
|
],
|
|
21
|
-
function(jQuery, Menu, MenuItem, MenuItemBase, library, Control, MenuBarRenderer, ResizeHandler, Popup, checkMouseEnterOrLeave, KeyCodes) {
|
|
22
|
+
function(jQuery, Menu, MenuItem, MenuItemBase, library, Control, MenuBarRenderer, ResizeHandler, Popup, checkMouseEnterOrLeave, KeyCodes, Configuration) {
|
|
22
23
|
"use strict";
|
|
23
24
|
|
|
24
25
|
|
|
@@ -45,13 +46,12 @@ sap.ui.define([
|
|
|
45
46
|
* @extends sap.ui.core.Control
|
|
46
47
|
*
|
|
47
48
|
* @author SAP SE
|
|
48
|
-
* @version 1.
|
|
49
|
+
* @version 1.107.0
|
|
49
50
|
*
|
|
50
51
|
* @constructor
|
|
51
52
|
* @public
|
|
52
53
|
* @deprecated Since version 1.38. Instead, use the <code>sap.m.OverflowToolbar</code> control.
|
|
53
54
|
* @alias sap.ui.commons.MenuBar
|
|
54
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
55
55
|
*/
|
|
56
56
|
var MenuBar = Control.extend("sap.ui.commons.MenuBar", /** @lends sap.ui.commons.MenuBar.prototype */ { metadata : {
|
|
57
57
|
|
|
@@ -452,7 +452,7 @@ sap.ui.define([
|
|
|
452
452
|
var jAreaRef = oThis.$("area");
|
|
453
453
|
var jItems = jAreaRef.children();
|
|
454
454
|
|
|
455
|
-
var bRtl =
|
|
455
|
+
var bRtl = Configuration.getRTL();
|
|
456
456
|
var lastOffsetLeft = (bRtl ? 100000 : 0);
|
|
457
457
|
|
|
458
458
|
jItems.each(function(iIdx) {
|
|
@@ -525,7 +525,7 @@ sap.ui.define([
|
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
if (
|
|
528
|
+
if (Configuration.getAccessibility()) {
|
|
529
529
|
jItems.attr("aria-setsize", _iVisibleItems + 1);
|
|
530
530
|
jOvrFlwRef.attr("aria-posinset", _iVisibleItems + 1);
|
|
531
531
|
}
|
|
@@ -535,7 +535,7 @@ sap.ui.define([
|
|
|
535
535
|
oThis.oOvrFlwMnu.destroyItems();
|
|
536
536
|
}
|
|
537
537
|
oThis.sLastVisibleItemId = null;
|
|
538
|
-
if (
|
|
538
|
+
if (Configuration.getAccessibility()) {
|
|
539
539
|
jItems.attr("aria-setsize", _iVisibleItems);
|
|
540
540
|
jOvrFlwRef.attr("aria-posinset", 0);
|
|
541
541
|
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Provides default renderer for control sap.ui.commons.MenuBar
|
|
8
|
-
sap.ui.define(['sap/ui/commons/library'],
|
|
9
|
-
function(library) {
|
|
8
|
+
sap.ui.define(['sap/ui/commons/library', 'sap/ui/core/Configuration'],
|
|
9
|
+
function(library, Configuration) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
12
|
|
|
@@ -102,7 +102,7 @@ sap.ui.define(['sap/ui/commons/library'],
|
|
|
102
102
|
rm.writeAttributeEscaped("title", sText);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
if (!
|
|
105
|
+
if (!Configuration.getAccessibility()) {
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -30,13 +30,12 @@ sap.ui.define([
|
|
|
30
30
|
* Common button control that opens a menu when clicked by the user. The control provides an API for configuring the docking position
|
|
31
31
|
* of the menu.
|
|
32
32
|
* @extends sap.ui.commons.Button
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.107.0
|
|
34
34
|
*
|
|
35
35
|
* @constructor
|
|
36
36
|
* @public
|
|
37
37
|
* @deprecated Since version 1.38. Instead, use the <code>sap.m.MenuButton</code> control.
|
|
38
38
|
* @alias sap.ui.commons.MenuButton
|
|
39
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
40
39
|
*/
|
|
41
40
|
var MenuButton = Button.extend("sap.ui.commons.MenuButton", /** @lends sap.ui.commons.MenuButton.prototype */ { metadata : {
|
|
42
41
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Provides default renderer for control sap.ui.commons.MenuButton
|
|
8
|
-
sap.ui.define(['./ButtonRenderer', 'sap/ui/core/Renderer'],
|
|
9
|
-
function(ButtonRenderer, Renderer) {
|
|
8
|
+
sap.ui.define(['./ButtonRenderer', 'sap/ui/core/Renderer', "sap/ui/core/Configuration"],
|
|
9
|
+
function(ButtonRenderer, Renderer, Configuration) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
12
|
|
|
@@ -29,7 +29,7 @@ sap.ui.define(['./ButtonRenderer', 'sap/ui/core/Renderer'],
|
|
|
29
29
|
*/
|
|
30
30
|
MenuButtonRenderer.renderButtonAttributes = function(rm, oControl) {
|
|
31
31
|
//Add specific ARIA information for MenuButton
|
|
32
|
-
if (
|
|
32
|
+
if (Configuration.getAccessibility()) {
|
|
33
33
|
rm.writeAttribute("aria-haspopup", "true");
|
|
34
34
|
}
|
|
35
35
|
};
|