@openui5/sap.ui.unified 1.84.27 → 1.84.29
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/package.json +2 -2
- package/src/sap/ui/unified/.library +1 -1
- package/src/sap/ui/unified/Calendar.js +2 -4
- package/src/sap/ui/unified/CalendarAppointment.js +1 -1
- package/src/sap/ui/unified/CalendarDateInterval.js +1 -1
- package/src/sap/ui/unified/CalendarLegend.js +1 -1
- package/src/sap/ui/unified/CalendarLegendItem.js +1 -1
- package/src/sap/ui/unified/CalendarMonthInterval.js +1 -1
- package/src/sap/ui/unified/CalendarOneMonthInterval.js +1 -1
- package/src/sap/ui/unified/CalendarRow.js +1 -1
- package/src/sap/ui/unified/CalendarTimeInterval.js +1 -1
- package/src/sap/ui/unified/CalendarWeekInterval.js +1 -1
- package/src/sap/ui/unified/ColorPicker.js +1 -1
- package/src/sap/ui/unified/ColorPickerPopover.js +1 -1
- package/src/sap/ui/unified/ContentSwitcher.js +1 -1
- package/src/sap/ui/unified/Currency.js +1 -1
- package/src/sap/ui/unified/CurrencyRenderer.js +1 -1
- package/src/sap/ui/unified/DateRange.js +1 -1
- package/src/sap/ui/unified/DateTypeRange.js +1 -1
- package/src/sap/ui/unified/FileUploader.js +1 -1
- package/src/sap/ui/unified/FileUploaderParameter.js +1 -1
- package/src/sap/ui/unified/FileUploaderXHRSettings.js +1 -1
- package/src/sap/ui/unified/Menu.js +1 -1
- package/src/sap/ui/unified/MenuItem.js +1 -1
- package/src/sap/ui/unified/MenuItemBase.js +1 -1
- package/src/sap/ui/unified/MenuRenderer.js +1 -1
- package/src/sap/ui/unified/MenuTextFieldItem.js +33 -6
- package/src/sap/ui/unified/Shell.js +1 -1
- package/src/sap/ui/unified/ShellHeadItem.js +1 -1
- package/src/sap/ui/unified/ShellHeadUserItem.js +1 -1
- package/src/sap/ui/unified/ShellLayout.js +1 -1
- package/src/sap/ui/unified/ShellOverlay.js +1 -1
- package/src/sap/ui/unified/SplitContainer.js +1 -1
- package/src/sap/ui/unified/calendar/DatesRow.js +1 -1
- package/src/sap/ui/unified/calendar/Header.js +1 -1
- package/src/sap/ui/unified/calendar/Month.js +1 -1
- package/src/sap/ui/unified/calendar/MonthPicker.js +1 -1
- package/src/sap/ui/unified/calendar/MonthRenderer.js +11 -1
- package/src/sap/ui/unified/calendar/MonthsRow.js +1 -1
- package/src/sap/ui/unified/calendar/OneMonthDatesRow.js +1 -1
- package/src/sap/ui/unified/calendar/TimesRow.js +1 -1
- package/src/sap/ui/unified/calendar/YearPicker.js +1 -1
- package/src/sap/ui/unified/calendar/YearRangePicker.js +1 -1
- package/src/sap/ui/unified/library.js +2 -2
- package/src/sap/ui/unified/messagebundle.properties +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.unified",
|
|
3
|
-
"version": "1.84.
|
|
3
|
+
"version": "1.84.29",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.unified",
|
|
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.84.
|
|
17
|
+
"@openui5/sap.ui.core": "1.84.29"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.84.
|
|
9
|
+
<version>1.84.29</version>
|
|
10
10
|
|
|
11
11
|
<documentation>Unified controls intended for both, mobile and desktop scenarios</documentation>
|
|
12
12
|
|
|
@@ -72,7 +72,7 @@ sap.ui.define([
|
|
|
72
72
|
* Basic Calendar.
|
|
73
73
|
* This calendar is used for DatePickers
|
|
74
74
|
* @extends sap.ui.core.Control
|
|
75
|
-
* @version 1.84.
|
|
75
|
+
* @version 1.84.29
|
|
76
76
|
*
|
|
77
77
|
* @constructor
|
|
78
78
|
* @public
|
|
@@ -797,6 +797,7 @@ sap.ui.define([
|
|
|
797
797
|
oMonth.attachEvent("_bindMousemove", _handleBindMousemove, this);
|
|
798
798
|
oMonth.attachEvent("_unbindMousemove", _handleUnbindMousemove, this);
|
|
799
799
|
oMonth._bNoThemeChange = true;
|
|
800
|
+
oMonth.setSecondaryCalendarType(this._getSecondaryCalendarType());
|
|
800
801
|
this.addAggregation("month",oMonth);
|
|
801
802
|
}
|
|
802
803
|
}else if (aMonths.length > iMonths){
|
|
@@ -2830,9 +2831,6 @@ sap.ui.define([
|
|
|
2830
2831
|
this._setPrimaryHeaderMonthButtonText();
|
|
2831
2832
|
this._toggleTwoMonthsInTwoColumnsCSS();
|
|
2832
2833
|
}
|
|
2833
|
-
} else if (_getMonths.call(this) > 1) {
|
|
2834
|
-
// on rerendering focus might be set on wrong month
|
|
2835
|
-
this._focusDate(this._getFocusedDate(), true, true);
|
|
2836
2834
|
}
|
|
2837
2835
|
|
|
2838
2836
|
}
|
|
@@ -21,7 +21,7 @@ sap.ui.define(['./DateTypeRange', 'sap/ui/core/format/DateFormat', 'sap/ui/core/
|
|
|
21
21
|
*
|
|
22
22
|
* Applications could inherit from this element to add own fields.
|
|
23
23
|
* @extends sap.ui.unified.DateTypeRange
|
|
24
|
-
* @version 1.84.
|
|
24
|
+
* @version 1.84.29
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @public
|
|
@@ -55,7 +55,7 @@ sap.ui.define([
|
|
|
55
55
|
* @class
|
|
56
56
|
* <code>CalendarDateInterval</code> only visualizes the dates in a one-line interval and allows the selection of a single day.
|
|
57
57
|
* @extends sap.ui.unified.Calendar
|
|
58
|
-
* @version 1.84.
|
|
58
|
+
* @version 1.84.29
|
|
59
59
|
*
|
|
60
60
|
* @constructor
|
|
61
61
|
* @public
|
|
@@ -65,7 +65,7 @@ sap.ui.define([
|
|
|
65
65
|
* <b>Note:</b> JavaScript Date objects are used to set and return the months, mark them as selected or as a special type.
|
|
66
66
|
* But the date part of the Date object is not used. If a Date object is returned the date will be set to the 1st of the corresponding month.
|
|
67
67
|
* @extends sap.ui.core.Control
|
|
68
|
-
* @version 1.84.
|
|
68
|
+
* @version 1.84.29
|
|
69
69
|
*
|
|
70
70
|
* @constructor
|
|
71
71
|
* @public
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* Navigation via year picker switches to the corresponding year and the same month as before the navigation.
|
|
58
58
|
*
|
|
59
59
|
* @extends sap.ui.unified.CalendarDateInterval
|
|
60
|
-
* @version 1.84.
|
|
60
|
+
* @version 1.84.29
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @private
|
|
@@ -39,7 +39,7 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarUtils', 'sap/ui/unified/calendar
|
|
|
39
39
|
* its start date to the first date of the same week as the date the user chose.
|
|
40
40
|
*
|
|
41
41
|
* @extends sap.ui.unified.CalendarDateInterval
|
|
42
|
-
* @version 1.84.
|
|
42
|
+
* @version 1.84.29
|
|
43
43
|
*
|
|
44
44
|
* @constructor
|
|
45
45
|
* @private
|
|
@@ -25,7 +25,7 @@ sap.ui.define(['./DateRange', './library'],
|
|
|
25
25
|
* @class
|
|
26
26
|
* Date range with calendar day type information. Used to visualize special days in the Calendar.
|
|
27
27
|
* @extends sap.ui.unified.DateRange
|
|
28
|
-
* @version 1.84.
|
|
28
|
+
* @version 1.84.29
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
|
@@ -13,6 +13,8 @@ sap.ui.define([
|
|
|
13
13
|
'sap/ui/Device',
|
|
14
14
|
'sap/base/Log',
|
|
15
15
|
'sap/ui/events/PseudoEvents',
|
|
16
|
+
'sap/ui/core/InvisibleText',
|
|
17
|
+
'sap/ui/core/Core',
|
|
16
18
|
'sap/ui/dom/jquery/cursorPos' // jQuery Plugin "cursorPos"
|
|
17
19
|
],
|
|
18
20
|
function(
|
|
@@ -22,7 +24,9 @@ sap.ui.define([
|
|
|
22
24
|
coreLibrary,
|
|
23
25
|
Device,
|
|
24
26
|
Log,
|
|
25
|
-
PseudoEvents
|
|
27
|
+
PseudoEvents,
|
|
28
|
+
InvisibleText,
|
|
29
|
+
Core
|
|
26
30
|
) {
|
|
27
31
|
"use strict";
|
|
28
32
|
|
|
@@ -45,7 +49,7 @@ sap.ui.define([
|
|
|
45
49
|
* @extends sap.ui.unified.MenuItemBase
|
|
46
50
|
*
|
|
47
51
|
* @author SAP SE
|
|
48
|
-
* @version 1.84.
|
|
52
|
+
* @version 1.84.29
|
|
49
53
|
* @since 1.21.0
|
|
50
54
|
*
|
|
51
55
|
* @constructor
|
|
@@ -135,8 +139,11 @@ sap.ui.define([
|
|
|
135
139
|
rm.write("<div id=\"" + itemId + "-str\" class=\"sapUiMnuTfItmStretch\"></div>"); // Helper to strech the width if needed
|
|
136
140
|
rm.write("<div class=\"sapUiMnuTfItemWrppr\">");
|
|
137
141
|
rm.write("<input id=\"" + itemId + "-tf\" tabindex=\"-1\"");
|
|
138
|
-
|
|
142
|
+
if (oItem.getValue()) {
|
|
143
|
+
rm.writeAttributeEscaped("value", oItem.getValue());
|
|
144
|
+
}
|
|
139
145
|
rm.writeAttribute("class", bIsEnabled ? "sapUiMnuTfItemTf sapUiMnuTfItemTfEnbl" : "sapUiMnuTfItemTf sapUiMnuTfItemTfDsbl");
|
|
146
|
+
|
|
140
147
|
if (!bIsEnabled) {
|
|
141
148
|
rm.writeAttribute("disabled", "disabled");
|
|
142
149
|
}
|
|
@@ -146,7 +153,7 @@ sap.ui.define([
|
|
|
146
153
|
disabled: null, // Prevent aria-disabled as a disabled attribute is enough
|
|
147
154
|
multiline: false,
|
|
148
155
|
autocomplete: "none",
|
|
149
|
-
|
|
156
|
+
describedby: itemId + "-lbl " + oItem._fnInvisibleCountInformationFactory(oInfo).getId()
|
|
150
157
|
});
|
|
151
158
|
}
|
|
152
159
|
rm.write("></div></div>");
|
|
@@ -157,6 +164,12 @@ sap.ui.define([
|
|
|
157
164
|
rm.write("</li>");
|
|
158
165
|
};
|
|
159
166
|
|
|
167
|
+
MenuTextFieldItem.prototype.exit = function() {
|
|
168
|
+
if (this._invisibleCountInformation) {
|
|
169
|
+
this._fnInvisibleCountInformationFactory().destroy();
|
|
170
|
+
this._invisibleCountInformation = null;
|
|
171
|
+
}
|
|
172
|
+
};
|
|
160
173
|
|
|
161
174
|
MenuTextFieldItem.prototype.hover = function(bHovered, oMenu){
|
|
162
175
|
this.$().toggleClass("sapUiMnuItmHov", bHovered);
|
|
@@ -307,7 +320,9 @@ sap.ui.define([
|
|
|
307
320
|
$tf.toggleClass("sapUiMnuTfItemTfErr", sValueState == ValueState.Error);
|
|
308
321
|
$tf.toggleClass("sapUiMnuTfItemTfWarn", sValueState == ValueState.Warning);
|
|
309
322
|
var sTooltip = ValueStateSupport.enrichTooltip(this, this.getTooltip_AsString());
|
|
310
|
-
|
|
323
|
+
if (sTooltip) {
|
|
324
|
+
this.$().attr("title", sTooltip);
|
|
325
|
+
}
|
|
311
326
|
return this;
|
|
312
327
|
};
|
|
313
328
|
|
|
@@ -326,7 +341,7 @@ sap.ui.define([
|
|
|
326
341
|
var $lbl = this.$("lbl");
|
|
327
342
|
var offsetLeft = $lbl.length ? $lbl.get(0).offsetLeft : 0;
|
|
328
343
|
|
|
329
|
-
if (
|
|
344
|
+
if (Core.getConfiguration().getRTL()) {
|
|
330
345
|
$tf.parent().css({"width": "auto", "right": (this.$().outerWidth(true) - offsetLeft + ($lbl.outerWidth(true) - $lbl.outerWidth())) + "px"});
|
|
331
346
|
} else {
|
|
332
347
|
$tf.parent().css({"width": "auto", "left": (offsetLeft + $lbl.outerWidth(true)) + "px"});
|
|
@@ -349,6 +364,18 @@ sap.ui.define([
|
|
|
349
364
|
return true;
|
|
350
365
|
};
|
|
351
366
|
|
|
367
|
+
MenuTextFieldItem.prototype._fnInvisibleCountInformationFactory = function(oInfo) {
|
|
368
|
+
if (!this._invisibleCountInformation) {
|
|
369
|
+
this._invisibleCountInformation = new InvisibleText({
|
|
370
|
+
text: Core.getLibraryResourceBundle("sap.ui.unified").getText("UNIFIED_MENU_ITEM_COUNT_TEXT", [
|
|
371
|
+
oInfo.iItemNo,
|
|
372
|
+
oInfo.iTotalItems
|
|
373
|
+
])
|
|
374
|
+
}).toStatic();
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
return this._invisibleCountInformation;
|
|
378
|
+
};
|
|
352
379
|
|
|
353
380
|
}());
|
|
354
381
|
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* If used inside the calendar the properties and aggregation are directly taken from the parent
|
|
33
33
|
* (To not duplicate and sync DateRanges and so on...)
|
|
34
34
|
* @extends sap.ui.unified.calendar.Month
|
|
35
|
-
* @version 1.84.
|
|
35
|
+
* @version 1.84.29
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @public
|
|
@@ -65,7 +65,7 @@ sap.ui.define([
|
|
|
65
65
|
* If used inside the calendar the properties and aggregation are directly taken from the parent
|
|
66
66
|
* (To not duplicate and sync DateRanges and so on...)
|
|
67
67
|
* @extends sap.ui.core.Control
|
|
68
|
-
* @version 1.84.
|
|
68
|
+
* @version 1.84.29
|
|
69
69
|
*
|
|
70
70
|
* @constructor
|
|
71
71
|
* @public
|
|
@@ -219,7 +219,11 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarUtils', 'sap/ui/unified/calendar
|
|
|
219
219
|
if (sWidth) {
|
|
220
220
|
oRm.style("width", sWidth);
|
|
221
221
|
}
|
|
222
|
-
oRm.accessibilityState(null, {
|
|
222
|
+
oRm.accessibilityState(null, {
|
|
223
|
+
role: "columnheader",
|
|
224
|
+
label: aWeekDaysWide[(i + iStartDay) % 7],
|
|
225
|
+
hidden: true
|
|
226
|
+
});
|
|
223
227
|
oRm.openEnd(); // div element
|
|
224
228
|
oRm.text(aWeekDays[(i + iStartDay) % 7]);
|
|
225
229
|
oRm.close("div");
|
|
@@ -389,6 +393,12 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarUtils', 'sap/ui/unified/calendar
|
|
|
389
393
|
bEnabled = false;
|
|
390
394
|
}
|
|
391
395
|
|
|
396
|
+
if (!bDayName) {
|
|
397
|
+
mAccProps["describedby"] = iNumber < 0
|
|
398
|
+
? oHelper.sId + "-WH" + iWeekDay
|
|
399
|
+
: oHelper.sId + "-WH" + iNumber;
|
|
400
|
+
}
|
|
401
|
+
|
|
392
402
|
oRm.openStart("div", oHelper.sId + "-" + sYyyymmdd);
|
|
393
403
|
oRm.class("sapUiCalItem");
|
|
394
404
|
oRm.class("sapUiCalWDay" + iWeekDay);
|
|
@@ -61,7 +61,7 @@ sap.ui.define([
|
|
|
61
61
|
* The MontsRow works with JavaScript Date objects, but only the month and the year are used to display and interact.
|
|
62
62
|
* As representation for a month, the 1st of the month will always be returned in the API.
|
|
63
63
|
* @extends sap.ui.core.Control
|
|
64
|
-
* @version 1.84.
|
|
64
|
+
* @version 1.84.29
|
|
65
65
|
*
|
|
66
66
|
* @constructor
|
|
67
67
|
* @public
|
|
@@ -56,7 +56,7 @@ sap.ui.define([
|
|
|
56
56
|
* As in all date-time controls, all pubic JS Date objects that are given (e.g. <code>setDate()</code>) or read
|
|
57
57
|
* (e.g. <code>getFirstRenderedDate</code>) with values which are considered as date objects in browser(local) timezone.
|
|
58
58
|
* @extends sap.ui.core.Control
|
|
59
|
-
* @version 1.84.
|
|
59
|
+
* @version 1.84.29
|
|
60
60
|
*
|
|
61
61
|
* @constructor
|
|
62
62
|
* @public
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
// delegate further initialization of this library to the Core
|
|
26
26
|
sap.ui.getCore().initLibrary({
|
|
27
27
|
name : "sap.ui.unified",
|
|
28
|
-
version: "1.84.
|
|
28
|
+
version: "1.84.29",
|
|
29
29
|
dependencies : ["sap.ui.core"],
|
|
30
30
|
designtime: "sap/ui/unified/designtime/library.designtime",
|
|
31
31
|
types: [
|
|
@@ -98,7 +98,7 @@ sap.ui.define([
|
|
|
98
98
|
* @namespace
|
|
99
99
|
* @alias sap.ui.unified
|
|
100
100
|
* @author SAP SE
|
|
101
|
-
* @version 1.84.
|
|
101
|
+
* @version 1.84.29
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
var thisLib = sap.ui.unified;
|
|
@@ -10,6 +10,9 @@ SHELL_OVERLAY_CLOSE=Close
|
|
|
10
10
|
#XACT: ARIA description of the Menu control
|
|
11
11
|
MNU_ARIA_NAME=Menu
|
|
12
12
|
|
|
13
|
+
#XACT: ARIA description of the MenuTextFiledItem control
|
|
14
|
+
UNIFIED_MENU_ITEM_COUNT_TEXT={0} of {1}
|
|
15
|
+
|
|
13
16
|
#XACT: Aria information for the Calendar dialog
|
|
14
17
|
CALENDAR_DIALOG=Calendar
|
|
15
18
|
|